sprof 0.0.112 → 0.0.113

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.
@@ -1,4 +1,4 @@
1
- (function(E,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(E=typeof globalThis<"u"?globalThis:E||self,n(E.sprof={},E.Vue))})(this,function(E,n){"use strict";var Of=Object.defineProperty;var qf=(E,n,Ee)=>n in E?Of(E,n,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):E[n]=Ee;var u=(E,n,Ee)=>qf(E,typeof n!="symbol"?n+"":n,Ee);var Oe,ge,H,me;var Ee=typeof document<"u"?document.currentScript:null,we=(e=>(e.Login="login",e.Register="register",e.Restore="restore",e.Refresh="refresh",e))(we||{}),de=(e=>(e.Primary="primary",e.Success="success",e.Warning="warning",e.Error="error",e.Info="info",e))(de||{});class je{constructor(t,i,o,r){u(this,"text","Сохранить");u(this,"type",de.Success);u(this,"condition",!0);u(this,"action");u(this,"id","button");u(this,"disabled",!1);this.text=t,this.type=o,this.action=i,r!==void 0&&(this.condition=r)}static Primary(t,i,o){return new je(t,i,de.Primary,o)}static Success(t,i,o){return new je(t,i,de.Success,o)}static Warning(t,i,o){return new je(t,i,de.Warning,o)}static Error(t,i,o){return new je(t,i,de.Error,o)}}class pi extends je{constructor(){super(...arguments);u(this,"id","auth-button");u(this,"status",we.Login);u(this,"submit",!1)}GetStatus(){return this.status}}let gi=class extends pi{constructor(){super(...arguments);u(this,"id","auth-button-login");u(this,"text","Войти");u(this,"isSubmit",!1);u(this,"disabled",!1)}};class yi extends pi{constructor(){super(...arguments);u(this,"id","auth-button-register");u(this,"text","Зарегистрироваться");u(this,"isSubmit",!1);u(this,"disabled",!1)}}class wi{constructor(){u(this,"value","");u(this,"label","");u(this,"placeholder","");u(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class fn extends wi{constructor(){super(...arguments);u(this,"method");u(this,"id","field-auth");u(this,"name","")}}var $t=(e=>(e.Login="login",e.Email="email",e.Phone="phone",e.VK="vk",e.ESIA="esia",e))($t||{});const Zs=/\S+@\S+\.\S+/;class Js{constructor(){u(this,"errors",[])}validate(t){return(t===""||!t)&&this.errors.push("Введите email"),Zs.test(t)||this.errors.push("Некорректный email"),this.errors}}class mn extends fn{constructor(){super(...arguments);u(this,"id","field-auth-email");u(this,"label","Email");u(this,"name","email");u(this,"placeholder","Введите email");u(this,"validator",new Js);u(this,"method",$t.Email)}}class Xs{constructor(){u(this,"errors",[]);u(this,"length",6)}validate(t){return t===""||!t?(this.errors.push("Введите пароль"),this.errors):(t.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class pn extends fn{constructor(){super(...arguments);u(this,"label","Пароль");u(this,"validator",new Xs);u(this,"name","password");u(this,"placeholder","Введите пароль");u(this,"id","field-auth-password")}}class Ys extends fn{constructor(){super(...arguments);u(this,"label","Повторите пароль");u(this,"id","field-auth-password-repeat")}}const Qs={allowRestore:!1,[we.Login]:{methods:[$t.Email],title:"Вход в систему",action:"login",buttons:[new gi,new yi],fields:[new mn,new pn],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[we.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new yi,new gi],fields:[new mn,new pn,new Ys],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[we.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[],fields:[new mn]},[we.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[],fields:[new pn]}};let Ks=class{constructor(){u(this,"settings",Qs);u(this,"status",we.Login);u(this,"selectedMethod",$t.Email)}async Block(t){await t()}GetValues(){const t=this.GetFields(),i=new Map;return t.forEach(o=>{o.value&&i.set(o.name,o.value)}),Object.fromEntries(i)}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(t=>!t.method||t.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Status(){return this.status}get Settings(){return this.settings}GetCurSet(){return this.settings[this.status]}IsLogin(){return this.status===we.Login}IsRegister(){return this.status===we.Register}IsRestore(){return this.status===we.Restore}IsRefresh(){return this.status===we.Refresh}SetStatus(t){this.status=t}GetTitle(){return this.GetCurSet().title}GetButtons(){const t=this.GetCurSet().buttons;return t.forEach(i=>{i.submit=!1}),t[0].submit=!0,t}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(t=>t.Reset())}Reset(){this.status=we.Login}};class ea{constructor(){u(this,"visible",!1);u(this,"closable",!1)}IsClosable(){return this.closable}IsVisible(){return this.visible}Close(){this.visible=!1}Open(t){t&&(this.closable=!0),this.visible=!0}}class bi{constructor(){u(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Ci extends bi{constructor(){super(...arguments);u(this,"type",de.Success);u(this,"text","");u(this,"title","")}showMessage(i,o){this.hide(),this.type=o,typeof i=="string"?this.text=i:(this.text=i.text,this.title=i.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(i){this.showMessage(i,de.Info)}Success(i){this.showMessage(i,de.Success)}Error(i){this.showMessage(i,de.Error)}Warning(i){this.showMessage(i,de.Warning)}FormMessage(i){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(i))i[r][0]&&i[r][0].message&&(o+=`<li>${i[r][0].message}</li>`);return o+="</ul>",o}}class gn{static Get(t,i,o="-"){return!t||!i?"":`${t}${o}${i}`}static In(t,i,o){return t>=i&&t<=o}static Intersects(t,i,o,r){return t===o||i===r||t>o&&t<r||i>o&&i<r||i>r&&t<o}}const Si=1e3,ki=60*Si,yn=60*ki;var pt=(e=>(e.FiveMinutes="5",e.HourQuarter="15",e.HourHalf="30",e.Hour="60",e))(pt||{});const It={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class q{static S(t){return Si*t}static M(t){return ki*t}static H(t){return yn*t}static D(t){return yn*t}static W(t){return yn*t}static NormalizeTime(t){return String(t).padStart(2,"0")}static HMtoM(t){const i=q.SplitHM(t);return i.length>1?q.HtoM(i[0])+i[1]:q.HtoM(i[0])}static HtoM(t){return Number(t)*60}static SplitHM(t){if(!t)return[];const i=t.split(":");return[Number(i[0]),Number(i[1])]}static HmsToHm(t){const i=q.SplitHM(t);return q.ConcatHM(i[0],i[1])}static AddMtoHM(t,i){const o=new Date,r=q.SplitHM(t);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),c=s.getMinutes();return q.ConcatHM(a,c)}static ConcatHM(t,i){return`${t}:${q.NormalizeTime(i)}`}static DiffM(t,i){return q.Gt(i,t)?q.HMtoM(i)-q.HMtoM(t):q.HMtoM(t)-q.HMtoM(i)}static GetPeriod(t,i){return gn.Get(t,i)}static Gt(t,i){return q.HMtoM(t)>q.HMtoM(i)}static GtOrEq(t,i){return q.Gt(t,i)||q.Eq(t,i)}static Eq(t,i){return q.HMtoM(t)===q.HMtoM(i)}static PeriodInPeriod(t,i,o,r){return q.HMtoM(t)>=q.HMtoM(o)&&q.HMtoM(i)<=q.HMtoM(r)}static PeriodsIntersects(t,i,o,r){return gn.Intersects(q.HMtoM(t),q.HMtoM(i),q.HMtoM(o),q.HMtoM(r))}}class gt{static Wait(t,i){return new Promise(o=>setTimeout(()=>o(i),t))}static WaitS(t,i){return gt.Wait(q.S(t),i)}static WaitM(t,i){return gt.Wait(q.M(t),i)}}class ta extends Ci{constructor(){super(...arguments);u(this,"duration",q.S(3))}showMessage(i,o){super.showMessage(i,o),typeof i!="string"&&(this.duration=i.duration??this.duration),gt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const i="В режиме разработки",o=de.Warning;super.showMessage(i,o)}Save(){const i="Изменения успешно сохранены",o=de.Success;super.showMessage(i,o)}}const yt=new ta;class ve{static Get(t){const i=localStorage.getItem(t);if(i)return JSON.parse(i)}static Set(t,i){i&&localStorage.setItem(t,JSON.stringify(i))}static Remove(t){localStorage.removeItem(t)}}var be=(e=>(e.User="user",e.AccessToken="accessToken",e.RefreshToken="refreshToken",e))(be||{});class na{set(t){this.setAccessToken(t.accessToken),this.setRefreshToken(t.refreshToken)}getAccessToken(){return ve.Get(be.AccessToken)}getRefreshToken(){return ve.Get(be.RefreshToken)}setAccessToken(t){ve.Set(be.AccessToken,t)}setRefreshToken(t){ve.Set(be.RefreshToken,t)}reset(){ve.Remove(be.AccessToken),ve.Remove(be.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class ia{constructor(){u(this,"user");u(this,"userConstructor")}AssignTo(t){t.user=this.get()}setUserConstructor(t){this.userConstructor=t}get(){if(this.userConstructor)return this.user=new this.userConstructor(ve.Get(be.User)),this.user}set(t){this.userConstructor&&(this.user=new this.userConstructor(t),ve.Set(be.User,this.user))}reset(){this.user=void 0,ve.Remove(be.User)}actualize(){const t=ve.Get(be.User);t&&this.set(t)}}class oa{constructor(){u(this,"isAuth",!1);u(this,"user",new ia);u(this,"tokens",new na);u(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(t){this.user.setUserConstructor(t)}SetState(t){this.user.set(t.user),this.tokens.set(t.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){yt.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}class ra{constructor(){u(this,"form",new Ks);u(this,"status",new oa);u(this,"modal",new ea)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const sa=new ra;var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
1
+ (function(E,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(E=typeof globalThis<"u"?globalThis:E||self,n(E.sprof={},E.Vue))})(this,function(E,n){"use strict";var Wf=Object.defineProperty;var Gf=(E,n,Ee)=>n in E?Wf(E,n,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):E[n]=Ee;var u=(E,n,Ee)=>Gf(E,typeof n!="symbol"?n+"":n,Ee);var ge,Oe,H,me;var Ee=typeof document<"u"?document.currentScript:null;class Nt{constructor(t){u(this,"id");u(this,"name","");u(this,"label","");x.H.Classes.BuildClass(this,t)}static Create(t,i){const o=new Nt;return o.id=x.H.Id.UUID(),o.name=t,o.label=i,o}}const Js=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Nt},Symbol.toStringTag,{value:"Module"}));let It;const Xs=new Uint8Array(16);function Ys(){if(!It&&(It=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!It))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return It(Xs)}const oe=[];for(let e=0;e<256;++e)oe.push((e+256).toString(16).slice(1));function Qs(e,t=0){return oe[e[t+0]]+oe[e[t+1]]+oe[e[t+2]]+oe[e[t+3]]+"-"+oe[e[t+4]]+oe[e[t+5]]+"-"+oe[e[t+6]]+oe[e[t+7]]+"-"+oe[e[t+8]]+oe[e[t+9]]+"-"+oe[e[t+10]]+oe[e[t+11]]+oe[e[t+12]]+oe[e[t+13]]+oe[e[t+14]]+oe[e[t+15]]}const gi={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tt(e,t,i){if(gi.randomUUID&&!t&&!e)return gi.randomUUID();e=e||{};const o=e.random||(e.rng||Ys)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Qs(o)}class qe{static Shuffle(t){for(let i=t.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[t[i],t[o]]=[t[o],t[i]]}}static GenerateNumsRange(t,i,o=1){return Array.from({length:(i-t)/o+1},(r,s)=>t+s*o)}static GetLast(t){return t[t.length-1]}static GetFirst(t){return t[0]}static GetRandEL(t){return t[Math.floor(Math.random()*t.length)]}static Sort(t){t.forEach((i,o)=>i.order=o)}static Refill(t,i){t.splice(0,t.length),t.push(...i)}static Eq(t,i){return t.length===i.length&&(t==null?void 0:t.every((o,r)=>t[r]==i[r]))}static SwipeById(t,i,o){const r=t.findIndex(a=>i.id===a.id),s=t.findIndex(a=>o.id===a.id);r||s||([t[r],t[s]]=[t[s],t[r]])}static Swap(t,i,o){if(i<0||i>=t.length||o<0||o>=t.length)return;const r=t[i];t[i]=t[o],t[o]=r}static MoveUp(t,i){t[i].order=i-1,t[i-1]&&(t[i-1].order=i),[t[i],t[i-1]]=[t[i-1],t[i]]}static MoveDown(t,i){t[i].order=i+1,t[i+1]&&(t[i+1].order=i),[t[i],t[i+1]]=[t[i+1],t[i]]}}var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
2
2
  Copyright (C) Microsoft. All rights reserved.
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
@@ -11,21 +11,21 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var vi;(function(e){(function(t){var i=typeof globalThis=="object"?globalThis:typeof Ei=="object"?Ei:typeof self=="object"?self:typeof this=="object"?this:c(),o=r(e);typeof i.Reflect<"u"&&(o=r(i.Reflect,o)),t(o,i),typeof i.Reflect>"u"&&(i.Reflect=e);function r(l,d){return function(h,f){Object.defineProperty(l,h,{configurable:!0,writable:!0,value:f}),d&&d(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(t,i){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,d=!c&&!l,h={create:c?function(){return mi(Object.create(null))}:l?function(){return mi({__proto__:null})}:function(){return mi({})},has:d?function(y,b){return o.call(y,b)}:function(y,b){return b in y},get:d?function(y,b){return o.call(y,b)?y[b]:void 0}:function(y,b){return y[b]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Tf(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Vf(),p=typeof WeakMap=="function"?WeakMap:Lf(),k=r?Symbol.for("@reflect-metadata:registry"):void 0,w=If(),M=Pf(w);function F(y,b,S,B){if(T(S)){if(!Fs(y))throw new TypeError;if(!Os(b))throw new TypeError;return vf(y,b)}else{if(!Fs(y))throw new TypeError;if(!K(b))throw new TypeError;if(!K(B)&&!T(B)&&!ft(B))throw new TypeError;return ft(B)&&(B=void 0),S=Te(S),xf(y,b,S,B)}}t("decorate",F);function O(y,b){function S(B,P){if(!K(B))throw new TypeError;if(!T(P)&&!Nf(P))throw new TypeError;zs(y,b,B,P)}return S}t("metadata",O);function L(y,b,S,B){if(!K(S))throw new TypeError;return T(B)||(B=Te(B)),zs(y,b,S,B)}t("defineMetadata",L);function z(y,b,S){if(!K(b))throw new TypeError;return T(S)||(S=Te(S)),$s(y,b,S)}t("hasMetadata",z);function ye(y,b,S){if(!K(b))throw new TypeError;return T(S)||(S=Te(S)),ui(y,b,S)}t("hasOwnMetadata",ye);function ke(y,b,S){if(!K(b))throw new TypeError;return T(S)||(S=Te(S)),Is(y,b,S)}t("getMetadata",ke);function Ge(y,b,S){if(!K(b))throw new TypeError;return T(S)||(S=Te(S)),Ps(y,b,S)}t("getOwnMetadata",Ge);function ht(y,b){if(!K(y))throw new TypeError;return T(b)||(b=Te(b)),Ts(y,b)}t("getMetadataKeys",ht);function un(y,b){if(!K(y))throw new TypeError;return T(b)||(b=Te(b)),Vs(y,b)}t("getOwnMetadataKeys",un);function Ef(y,b,S){if(!K(b))throw new TypeError;if(T(S)||(S=Te(S)),!K(b))throw new TypeError;T(S)||(S=Te(S));var B=Nt(b,S,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(y,b,S)}t("deleteMetadata",Ef);function vf(y,b){for(var S=y.length-1;S>=0;--S){var B=y[S],P=B(b);if(!T(P)&&!ft(P)){if(!Os(P))throw new TypeError;b=P}}return b}function xf(y,b,S,B){for(var P=y.length-1;P>=0;--P){var ie=y[P],ee=ie(b,S,B);if(!T(ee)&&!ft(ee)){if(!K(ee))throw new TypeError;B=ee}}return B}function $s(y,b,S){var B=ui(y,b,S);if(B)return!0;var P=fi(b);return ft(P)?!1:$s(y,P,S)}function ui(y,b,S){var B=Nt(b,S,!1);return T(B)?!1:Ds(B.OrdinaryHasOwnMetadata(y,b,S))}function Is(y,b,S){var B=ui(y,b,S);if(B)return Ps(y,b,S);var P=fi(b);if(!ft(P))return Is(y,P,S)}function Ps(y,b,S){var B=Nt(b,S,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(y,b,S)}function zs(y,b,S,B){var P=Nt(S,B,!0);P.OrdinaryDefineOwnMetadata(y,b,S,B)}function Ts(y,b){var S=Vs(y,b),B=fi(y);if(B===null)return S;var P=Ts(B,b);if(P.length<=0)return S;if(S.length<=0)return P;for(var ie=new g,ee=[],U=0,R=S;U<R.length;U++){var A=R[U],N=ie.has(A);N||(ie.add(A),ee.push(A))}for(var $=0,W=P;$<W.length;$++){var A=W[$],N=ie.has(A);N||(ie.add(A),ee.push(A))}return ee}function Vs(y,b){var S=Nt(y,b,!1);return S?S.OrdinaryOwnMetadataKeys(y,b):[]}function Ls(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function T(y){return y===void 0}function ft(y){return y===null}function Bf(y){return typeof y=="symbol"}function K(y){return typeof y=="object"?y!==null:typeof y=="function"}function Mf(y,b){switch(Ls(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var S="string",B=qs(y,s);if(B!==void 0){var P=B.call(y,S);if(K(P))throw new TypeError;return P}return Rf(y)}function Rf(y,b){var S,B;{var P=y.toString;if(hn(P)){var B=P.call(y);if(!K(B))return B}var S=y.valueOf;if(hn(S)){var B=S.call(y);if(!K(B))return B}}throw new TypeError}function Ds(y){return!!y}function Af(y){return""+y}function Te(y){var b=Mf(y);return Bf(b)?b:Af(b)}function Fs(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function hn(y){return typeof y=="function"}function Os(y){return typeof y=="function"}function Nf(y){switch(Ls(y)){case 3:return!0;case 4:return!0;default:return!1}}function hi(y,b){return y===b||y!==y&&b!==b}function qs(y,b){var S=y[b];if(S!=null){if(!hn(S))throw new TypeError;return S}}function Hs(y){var b=qs(y,a);if(!hn(b))throw new TypeError;var S=b.call(y);if(!K(S))throw new TypeError;return S}function Us(y){return y.value}function Ws(y){var b=y.next();return b.done?!1:b}function _s(y){var b=y.return;b&&b.call(y)}function fi(y){var b=Object.getPrototypeOf(y);if(typeof y!="function"||y===f||b!==f)return b;var S=y.prototype,B=S&&Object.getPrototypeOf(S);if(B==null||B===Object.prototype)return b;var P=B.constructor;return typeof P!="function"||P===y?b:P}function $f(){var y;!T(k)&&typeof i.Reflect<"u"&&!(k in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(y=zf(i.Reflect));var b,S,B,P=new p,ie={registerProvider:ee,getProvider:R,setProvider:N};return ie;function ee($){if(!Object.isExtensible(ie))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===$:break;case T(b):b=$;break;case b===$:break;case T(S):S=$;break;case S===$:break;default:B===void 0&&(B=new g),B.add($);break}}function U($,W){if(!T(b)){if(b.isProviderFor($,W))return b;if(!T(S)){if(S.isProviderFor($,W))return b;if(!T(B))for(var Z=Hs(B);;){var J=Ws(Z);if(!J)return;var Ae=Us(J);if(Ae.isProviderFor($,W))return _s(Z),Ae}}}if(!T(y)&&y.isProviderFor($,W))return y}function R($,W){var Z=P.get($),J;return T(Z)||(J=Z.get(W)),T(J)&&(J=U($,W),T(J)||(T(Z)&&(Z=new m,P.set($,Z)),Z.set(W,J))),J}function A($){if(T($))throw new TypeError;return b===$||S===$||!T(B)&&B.has($)}function N($,W,Z){if(!A(Z))throw new Error("Metadata provider not registered.");var J=R($,W);if(J!==Z){if(!T(J))return!1;var Ae=P.get($);T(Ae)&&(Ae=new m,P.set($,Ae)),Ae.set(W,Z)}return!0}}function If(){var y;return!T(k)&&K(i.Reflect)&&Object.isExtensible(i.Reflect)&&(y=i.Reflect[k]),T(y)&&(y=$f()),!T(k)&&K(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Pf(y){var b=new p,S={isProviderFor:function(A,N){var $=b.get(A);return T($)?!1:$.has(N)},OrdinaryDefineOwnMetadata:ee,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:U,OrdinaryDeleteMetadata:R};return w.registerProvider(S),S;function B(A,N,$){var W=b.get(A),Z=!1;if(T(W)){if(!$)return;W=new m,b.set(A,W),Z=!0}var J=W.get(N);if(T(J)){if(!$)return;if(J=new m,W.set(N,J),!y.setProvider(A,N,S))throw W.delete(N),Z&&b.delete(A),new Error("Wrong provider for target.")}return J}function P(A,N,$){var W=B(N,$,!1);return T(W)?!1:Ds(W.has(A))}function ie(A,N,$){var W=B(N,$,!1);if(!T(W))return W.get(A)}function ee(A,N,$,W){var Z=B($,W,!0);Z.set(A,N)}function U(A,N){var $=[],W=B(A,N,!1);if(T(W))return $;for(var Z=W.keys(),J=Hs(Z),Ae=0;;){var Gs=Ws(J);if(!Gs)return $.length=Ae,$;var Df=Us(Gs);try{$[Ae]=Df}catch(Ff){try{_s(J)}finally{throw Ff}}Ae++}}function R(A,N,$){var W=B(N,$,!1);if(T(W)||!W.delete(A))return!1;if(W.size===0){var Z=b.get(N);T(Z)||(Z.delete($),Z.size===0&&b.delete(Z))}return!0}}function zf(y){var b=y.defineMetadata,S=y.hasOwnMetadata,B=y.getOwnMetadata,P=y.getOwnMetadataKeys,ie=y.deleteMetadata,ee=new p,U={isProviderFor:function(R,A){var N=ee.get(R);return!T(N)&&N.has(A)?!0:P(R,A).length?(T(N)&&(N=new g,ee.set(R,N)),N.add(A),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:ie};return U}function Nt(y,b,S){var B=w.getProvider(y,b);if(!T(B))return B;if(S){if(w.setProvider(y,b,M))return M;throw new Error("Illegal state.")}}function Tf(){var y={},b=[],S=function(){function U(R,A,N){this._index=0,this._keys=R,this._values=A,this._selector=N}return U.prototype["@@iterator"]=function(){return this},U.prototype[a]=function(){return this},U.prototype.next=function(){var R=this._index;if(R>=0&&R<this._keys.length){var A=this._selector(this._keys[R],this._values[R]);return R+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:A,done:!1}}return{value:void 0,done:!0}},U.prototype.throw=function(R){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),R},U.prototype.return=function(R){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:R,done:!0}},U}(),B=function(){function U(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(U.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),U.prototype.has=function(R){return this._find(R,!1)>=0},U.prototype.get=function(R){var A=this._find(R,!1);return A>=0?this._values[A]:void 0},U.prototype.set=function(R,A){var N=this._find(R,!0);return this._values[N]=A,this},U.prototype.delete=function(R){var A=this._find(R,!1);if(A>=0){for(var N=this._keys.length,$=A+1;$<N;$++)this._keys[$-1]=this._keys[$],this._values[$-1]=this._values[$];return this._keys.length--,this._values.length--,hi(R,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},U.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},U.prototype.keys=function(){return new S(this._keys,this._values,P)},U.prototype.values=function(){return new S(this._keys,this._values,ie)},U.prototype.entries=function(){return new S(this._keys,this._values,ee)},U.prototype["@@iterator"]=function(){return this.entries()},U.prototype[a]=function(){return this.entries()},U.prototype._find=function(R,A){if(!hi(this._cacheKey,R)){this._cacheIndex=-1;for(var N=0;N<this._keys.length;N++)if(hi(this._keys[N],R)){this._cacheIndex=N;break}}return this._cacheIndex<0&&A&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},U}();return B;function P(U,R){return U}function ie(U,R){return R}function ee(U,R){return[U,R]}}function Vf(){var y=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(S){return this._map.has(S)},b.prototype.add=function(S){return this._map.set(S,S),this},b.prototype.delete=function(S){return this._map.delete(S)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return y}function Lf(){var y=16,b=h.create(),S=B();return function(){function R(){this._key=B()}return R.prototype.has=function(A){var N=P(A,!1);return N!==void 0?h.has(N,this._key):!1},R.prototype.get=function(A){var N=P(A,!1);return N!==void 0?h.get(N,this._key):void 0},R.prototype.set=function(A,N){var $=P(A,!0);return $[this._key]=N,this},R.prototype.delete=function(A){var N=P(A,!1);return N!==void 0?delete N[this._key]:!1},R.prototype.clear=function(){this._key=B()},R}();function B(){var R;do R="@@WeakMap@@"+U();while(h.has(b,R));return b[R]=!0,R}function P(R,A){if(!o.call(R,S)){if(!A)return;Object.defineProperty(R,S,{value:h.create()})}return R[S]}function ie(R,A){for(var N=0;N<A;++N)R[N]=Math.random()*255|0;return R}function ee(R){if(typeof Uint8Array=="function"){var A=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(A):typeof msCrypto<"u"?msCrypto.getRandomValues(A):ie(A,R),A}return ie(new Array(R),R)}function U(){var R=ee(y);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var A="",N=0;N<y;++N){var $=R[N];(N===4||N===6||N===8)&&(A+="-"),$<16&&(A+="0"),A+=$.toString(16).toLowerCase()}return A}}function mi(y){return y.__=void 0,delete y.__,y}})})(vi||(vi={}));let Pt;const aa=new Uint8Array(16);function la(){if(!Pt&&(Pt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pt(aa)}const oe=[];for(let e=0;e<256;++e)oe.push((e+256).toString(16).slice(1));function ca(e,t=0){return oe[e[t+0]]+oe[e[t+1]]+oe[e[t+2]]+oe[e[t+3]]+"-"+oe[e[t+4]]+oe[e[t+5]]+"-"+oe[e[t+6]]+oe[e[t+7]]+"-"+oe[e[t+8]]+oe[e[t+9]]+"-"+oe[e[t+10]]+oe[e[t+11]]+oe[e[t+12]]+oe[e[t+13]]+oe[e[t+14]]+oe[e[t+15]]}const xi={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tt(e,t,i){if(xi.randomUUID&&!t&&!e)return xi.randomUUID();e=e||{};const o=e.random||(e.rng||la)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,ca(o)}class xe{static UUID(){return tt()}static GUID(){const t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}const ut=class ut{static BuildClass(t,i){i&&Object.keys(i).forEach(o=>{const r=i[o];if(this.isPrimitive(r))t[o]instanceof Date?t[o]=new Date(r):t[o]=r;else if(r!=null&&!Array.isArray(r))if(t[o]&&t[o].constructor)t[o]=new t[o].constructor(r);else{const s=Reflect.getMetadata(o,t);s&&(t[o]=new s[o](r))}if(Array.isArray(r)){const s=Reflect.getMetadata(o,t);s&&(t[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(t){return t!==null&&typeof t<"u"&&t!==Object(t)}static RemoveFromClassByIndex(t,i,o){ut.RemoveFromClass(t,i,o)}static RemoveFromClassById(t,i,o){if(!t)return;const r=i.findIndex(s=>s.id===t);ut.RemoveFromClass(r,i,o)}static RemoveFromClass(t,i,o){if(t<0)return;const r=i[t].id;r&&o&&o.push(r),i.splice(t,1)}static GetPropertyName(t){const i=new t;return new Proxy(i,{get(o,r){return r}})}static InitClassInstance(t,i){const o=t.constructor(i);return ut.BuildClass(o),o.id=xe.UUID(),o}static ExistsWithId(t,i){return t.some(o=>o.id===i)}};u(ut,"GetClassConstructor",t=>(i,o)=>{const r=Reflect.getMetadata(`property:${o}`,i)||{};r[o]=t,Reflect.defineMetadata(o,r,i)});let V=ut;class wt{constructor(t){u(this,"id");u(this,"ratio",0);u(this,"src","");u(this,"store","");V.BuildClass(this,t)}static CreateCropper(t,i,o){const r=new wt;return r.src=t,r.id=o,i&&(r.ratio=i),r}}class Ze{constructor(t){u(this,"id");u(this,"address");u(this,"description");u(this,"contactId");V.BuildClass(this,t)}static Create(){const t=new Ze;return t.id=xe.UUID(),t}}class wn{static Setup(t){this.staticUrl=t}static get StaticUrl(){return this.staticUrl}}u(wn,"staticUrl","");class nt{constructor(t){u(this,"name","");u(this,"url","");u(this,"src","");u(this,"raw");u(this,"blob");u(this,"file");u(this,"id");u(this,"originalName","");u(this,"fileSystemPath","");V.BuildClass(this,t)}getFileUrl(){const t=this.url?this.url:`${wn.StaticUrl}/${this.fileSystemPath}`;return new URL(t,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ee&&Ee.tagName.toUpperCase()==="SCRIPT"&&Ee.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(t,i){const o=new nt;return o.id=i??xe.UUID(),o.originalName=t.name,o.file=t.blob,o.fileSystemPath=xe.UUID(),o}uploadNewFile(t){this.id||(this.id=xe.UUID()),this.originalName=t.name,this.file=t.blob,this.fileSystemPath=xe.UUID()}setFile(t){this.file=t,this.url=t.src}uploadAndSetFile(t){this.uploadNewFile(t),this.setFile(t),this.url=t.url}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(t,i){if(t.target){let o="";return i&&(o=`@/assets/img/${i}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ee&&Ee.tagName.toUpperCase()==="SCRIPT"&&Ee.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(t){const i=t.split(".");return i[i.length-1]}}class te{static Capitalize(t){return t?t[0].toUpperCase()+t.slice(1):""}static ToCamelCase(t){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return t.match(i).map((r,s)=>s===0?r.toLowerCase():te.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(t,i,o){return t.substring(t.indexOf(i)+2,t.lastIndexOf(o))}static Translit(t,i){const o={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return i&&/[а-яА-Я]/g.test(t)?t.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(c=>o[c]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):t.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(t){const i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return t.replace(i,"")}static CanBeTranslited(t){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(t)}static StringsEquals(t,i){const o=t.toLowerCase().replaceAll(/\s/g,""),r=i.toLowerCase().replaceAll(/\s/g,""),s=te.Translit(o),a=te.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(t,i){return te.StringsEquals(t,i)}static FormatToPercentage(t){return`${t}%`}static WrapSubStr(t,i){const o=new RegExp(te.GetVariants(i).join("|"),"gi");return t.replace(o,`<span class="search-text">${i}</span>`)}static GetVariants(t){const i=te.Translit(t);return[t,te.Capitalize(t),t.toLowerCase(),t.toUpperCase(),i,te.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(t){return/\d/.test(t)}static JoinSnake(...t){return t.join("_")}static GetDynamicCountName(t,i){const o=[2,0,1,1,1,2];return t.length+" "+i[t.length%100>4&&t.length%100<20?2:o[t.length%10<5?t.length%10:5]]}}class Bi{constructor(t){u(this,"id");u(this,"name","");u(this,"surname","");u(this,"patronymic","");u(this,"isMale",!0);u(this,"dateBirth",new Date);u(this,"contactId");u(this,"slug","");u(this,"postIndex","");u(this,"address","");u(this,"editNameMode",!1);V.BuildClass(this,t)}setEditNameMode(t){this.editNameMode=t}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(t){return t?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=te.Capitalize(this.name),this.surname=te.Capitalize(this.surname),this.patronymic=te.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(t){this.surname=t.surname,this.name=t.name,this.patronymic=t.patronymic}}class Je{constructor(t){u(this,"id");u(this,"number");u(this,"description");u(this,"contactId");V.BuildClass(this,t)}static Create(){const t=new Je;return t.id=xe.UUID(),t}}class zt{constructor(t){u(this,"id");u(this,"address");u(this,"description");V.BuildClass(this,t)}}class bn{constructor(t){u(this,"id");u(this,"address");u(this,"description");V.BuildClass(this,t)}}let da=(Oe=class{},u(Oe,"Phone",Je),u(Oe,"FileInfo",nt),u(Oe,"PostAddress",zt),u(Oe,"Website",bn),u(Oe,"Email",Ze),u(Oe,"Human",Bi),u(Oe,"Cropper",wt),Oe);class qe{static Shuffle(t){for(let i=t.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[t[i],t[o]]=[t[o],t[i]]}}static GenerateNumsRange(t,i,o=1){return Array.from({length:(i-t)/o+1},(r,s)=>t+s*o)}static GetLast(t){return t[t.length-1]}static GetFirst(t){return t[0]}static GetRandEL(t){return t[Math.floor(Math.random()*t.length)]}static Sort(t){t.forEach((i,o)=>i.order=o)}static Refill(t,i){t.splice(0,t.length),t.push(...i)}static Eq(t,i){return t.length===i.length&&(t==null?void 0:t.every((o,r)=>t[r]==i[r]))}static SwipeById(t,i,o){const r=t.findIndex(a=>i.id===a.id),s=t.findIndex(a=>o.id===a.id);r||s||([t[r],t[s]]=[t[s],t[r]])}static Swap(t,i,o){if(i<0||i>=t.length||o<0||o>=t.length)return;const r=t[i];t[i]=t[o],t[o]=r}static MoveUp(t,i){t[i].order=i-1,t[i-1]&&(t[i-1].order=i),[t[i],t[i-1]]=[t[i-1],t[i]]}static MoveDown(t,i){t[i].order=i+1,t[i+1]&&(t[i+1].order=i),[t[i],t[i+1]]=[t[i+1],t[i]]}}var X=(e=>(e.Date="date",e.String="string",e.Boolean="boolean",e.Number="number",e.Set="set",e.Join="join",e))(X||{}),le=(e=>(e.Eq="=",e.Ne="!=",e.Gt=">",e.Lt="<",e.Btw="between",e.In="in",e.Like="like",e.Null="is null",e.NotNull="is not null",e))(le||{}),ua=Object.defineProperty,ha=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&ua(t,i,r),r};const Mi=class mt{constructor(t){u(this,"id");u(this,"model","");u(this,"label","");u(this,"col","");u(this,"operator",le.Eq);u(this,"date1");u(this,"date2");u(this,"value1","");u(this,"boolean",!1);u(this,"number",0);u(this,"type",X.String);u(this,"set",[]);u(this,"isSet",!1);u(this,"joinTable","");u(this,"joinTableModel","");u(this,"joinTableFk","");u(this,"joinTablePk","");u(this,"joinTableId","");u(this,"joinTableIdCol","");V.BuildClass(this,t)}eq(t){if(!t)return!1;if(this.type===X.Join){const i=t.model===this.model&&t.operator===this.operator&&this.joinTableModel===t.joinTableModel;return t.operator===le.In?i&&qe.Eq(this.set,t.set):i}return t.model===this.model&&t.col===this.col&&t.operator===this.operator}valueEq(t){return!this||!t||!this.eq(t)?!1:this.type===X.Boolean?this.boolean===(t==null?void 0:t.boolean):this.type===X.String?this.value1===(t==null?void 0:t.value1):this.type===X.Join&&this.set.length?qe.Eq(this.set,t.set):!1}toUrlQuery(){const t=this.type?`"type":"${this.type}"`:"",i=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===X.Boolean?`"boolean":${this.boolean}`:"",c=this.type===X.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===X.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",d=this.type===X.Number?`"number":${this.number}`:"",h=this.type===X.Set||this.operator===le.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===X.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[t,i,o,r,s,a,c,l,d,h,f].filter(m=>m!=="").toString()}fromUrlQuery(t){this.model=t.get("model")??"",this.col=t.get("col")??"",this.label=t.get("label")??"",this.operator=t.get("operator")??"",this.value1=t.get("value1")??"",this.type=t.get("type")??"",this.boolean=!!(t.get("boolean")??""),this.joinTableModel=t.get("joinTableModel")??"",this.joinTableId=t.get("joinTableId")??"",this.joinTableFk=t.get("joinTableFk")??"",this.joinTableIdCol=t.get("joinTableIdCol")??"",this.joinTablePk=t.get("joinTablePk")??""}isUnaryFilter(){return this.operator===le.Eq||this.operator===le.Gt||this.operator===le.Lt}isBetweenFilter(){return this.operator===le.Btw}isSetFilter(){return this.operator===le.In}static Create(t,i,o){const r=new mt;return r.model=t.GetClassName(),r.col=i??"",r.type=o,r.type===X.Number&&(r.value1="0"),r.type===X.String&&(r.value1=""),r.type===X.Boolean&&(r.value1="false",r.operator=le.Eq),r}static CreateFilterModel(t,i,o){const r=new mt;return r.id=tt(),r.model=typeof t=="string"?t:t.GetClassName(),r.col=i??"",r.type=o,r.type===X.Number&&(r.value1="0"),r.type===X.String&&(r.value1=""),r.type===X.Boolean&&(r.value1="false"),r}static CreateFilterModelWithJoin(t,i,o,r,s,a,c,l){const d=new mt;return d.id=tt(),d.joinTable=o,d.joinTablePk=r,d.joinTableFk=s,d.col=i,d.type=a,c&&(d.joinTableId=c),l&&(d.joinTableIdCol=l),d}static CreateFilterModelWithJoinV2(t,i,o,r,s,a,c){const l=new mt;return l.model=t,l.joinTableModel=o,l.joinTablePk=r,l.joinTableFk=s,l.col=i,l.type=X.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(t,i){const o=new mt;return o.id=tt(),o.model=te.ToCamelCase(t.GetClassName()),o.joinTableModel=te.ToCamelCase(i.GetClassName()),o.type=X.Join,o}addToSet(...t){t.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(o=>o!==i)})}pushToSet(...t){t.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...t){this.set=t}setBoolean(t){this.boolean=t}toRef(){return n.ref(this)}setDate1(t){this.date1=t}setDate2(t){this.date2=t}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(t,i){if(!t&&!i){this.dropDates();return}if(!i){this.setDate1(t),this.operator=le.Eq;return}this.setDate2(i),this.operator=le.Btw}};ha([V.GetClassConstructor(String)],Mi.prototype,"set");let Ri=Mi;class fa{constructor(){u(this,"operation",le.Lt);u(this,"column","");u(this,"value");u(this,"initial",!0);u(this,"tableName","");u(this,"version","");u(this,"model","")}toUrlQuery(){const t=this.operation?`"operation":"${this.operation}"`:"",i=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[t,i,r,s,a].filter(c=>c!=="").toString()}fromUrlQuery(t){t.cursvalue&&(this.value=t.cursvalue),t.curscolumn&&(this.column=String(t.curscolumn)),t.cursinitial!==void 0&&(this.initial=!!t.cursinitial),t.curstableName&&(this.tableName=String(t.curstableName)),t.cursoperation&&(this.operation=t.cursoperation)}}class Tt{constructor(t){u(this,"offset",0);u(this,"limit",25);u(this,"cursor",new fa);u(this,"cursorMode",!1);u(this,"append",!1);u(this,"allLoaded",!1);u(this,"version","");V.BuildClass(this,t)}setLoadMore(t,i,o){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=le.Gt,this.cursor.column=i,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(t,i,o){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=le.Gt,this.cursor.column=i,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(t){this.offset=t}toUrlQuery(){const t=`"offset":${this.offset}`,i=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[t,i,o,r,s,a].toString()}fromUrlQuery(){const t=window.location.search,i=t.substring(t.indexOf("p=")+2,t.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.offset=Number(o.get("offset")),this.limit=Number(o.get("col"))}setAllLoaded(t){this.allLoaded=!(t>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,V.BuildClass(this)}}var Be=(e=>(e.Asc="asc",e.Desc="desc",e))(Be||{});class Cn{constructor(t){u(this,"model","");u(this,"col","");u(this,"order");u(this,"label","");u(this,"default",!1);u(this,"selected",!1);V.BuildClass(this,t)}static Create(t,i,o=Be.Asc,r,s){const a=new Cn;return a.model=t.GetClassName(),a.col=i??"",a.order=o??Be.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===Be.Asc}isDesc(){return this.order===Be.Desc}eq(t){return t.model===this.model&&t.col===this.col&&t.order===this.order}toUrlQuery(){const t=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[t,i,o].toString()}async fromUrlQuery(){const t=window.location.search,i=t.substring(t.indexOf("s=")+2,t.indexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}asc(){this.order=Be.Asc}desc(){this.order=Be.Desc}}class Vt{constructor(){u(this,"model","");u(this,"cols",[]);u(this,"models",[])}static Create(t,i){const o=new Vt;return o.model=t.GetClassName(),o.cols=i,o}}var ma=Object.defineProperty,Lt=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&ma(t,i,r),r};const bt=(ge=class{constructor(t){u(this,"id");u(this,"f",[]);u(this,"s",[]);u(this,"p",new Tt);u(this,"t",new Vt);V.BuildClass(this,t)}static Get(){return this.instance||(this.instance=new ge),this.instance}createFrom(t){const i=new ge(JSON.parse(t));this.f=i.f}clearForHTTP(){const t=new ge(this);return t.f=this.f.map(i=>ge.EmptyEntiries(i)),t.s=this.s.map(i=>ge.EmptyEntiries(i)),t.p=ge.EmptyEntiries(this.p),t.t=ge.EmptyEntiries(this.t),t}static EmptyEntiries(t){if(!t)return;const o=Object.entries(t).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(t){return this.f.find(i=>t.id===i.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(t){t&&(this.s[0]=t)}setS(t){this.s[0]=t}setF(t){this.f.push(t)}replaceF(t,i){this.removeF(i),t&&this.setF(t)}removeF(t){const i=this.f.findIndex(o=>o.eq(t));V.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new Tt}resetF(){this.f=[]}},u(ge,"instance"),ge);Lt([V.GetClassConstructor(Ri)],bt.prototype,"f"),Lt([V.GetClassConstructor(Cn)],bt.prototype,"s"),Lt([V.GetClassConstructor(Tt)],bt.prototype,"p"),Lt([V.GetClassConstructor(Vt)],bt.prototype,"t");let Ai=bt;function Ni(e,t){return function(){return e.apply(t,arguments)}}const{toString:pa}=Object.prototype,{getPrototypeOf:Sn}=Object,Dt=(e=>t=>{const i=pa.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Me=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ft=e=>t=>typeof t===e,{isArray:it}=Array,Ct=Ft("undefined");function ga(e){return e!==null&&!Ct(e)&&e.constructor!==null&&!Ct(e.constructor)&&pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $i=Me("ArrayBuffer");function ya(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$i(e.buffer),t}const wa=Ft("string"),pe=Ft("function"),Ii=Ft("number"),Ot=e=>e!==null&&typeof e=="object",ba=e=>e===!0||e===!1,qt=e=>{if(Dt(e)!=="object")return!1;const t=Sn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ca=Me("Date"),Sa=Me("File"),ka=Me("Blob"),Ea=Me("FileList"),va=e=>Ot(e)&&pe(e.pipe),xa=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pe(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&pe(e.toString)&&e.toString()==="[object FormData]"))},Ba=Me("URLSearchParams"),[Ma,Ra,Aa,Na]=["ReadableStream","Request","Response","Headers"].map(Me),$a=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function St(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),it(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function Pi(e,t){t=t.toLowerCase();const i=Object.keys(e);let o=i.length,r;for(;o-- >0;)if(r=i[o],t===r.toLowerCase())return r;return null}const Xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zi=e=>!Ct(e)&&e!==Xe;function kn(){const{caseless:e}=zi(this)&&this||{},t={},i=(o,r)=>{const s=e&&Pi(t,r)||r;qt(t[s])&&qt(o)?t[s]=kn(t[s],o):qt(o)?t[s]=kn({},o):it(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&St(arguments[o],i);return t}const Ia=(e,t,i,{allOwnKeys:o}={})=>(St(t,(r,s)=>{i&&pe(r)?e[s]=Ni(r,i):e[s]=r},{allOwnKeys:o}),e),Pa=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),za=(e,t,i,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},Ta=(e,t,i,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=i!==!1&&Sn(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},Va=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const o=e.indexOf(t,i);return o!==-1&&o===i},La=e=>{if(!e)return null;if(it(e))return e;let t=e.length;if(!Ii(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},Da=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sn(Uint8Array)),Fa=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},Oa=(e,t)=>{let i;const o=[];for(;(i=e.exec(t))!==null;)o.push(i);return o},qa=Me("HTMLFormElement"),Ha=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,r){return o.toUpperCase()+r}),Ti=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),Ua=Me("RegExp"),Vi=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),o={};St(i,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Wa=e=>{Vi(e,(t,i)=>{if(pe(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=e[i];if(pe(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},_a=(e,t)=>{const i={},o=r=>{r.forEach(s=>{i[s]=!0})};return it(e)?o(e):o(String(e).split(t)),i},Ga=()=>{},ja=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,En="abcdefghijklmnopqrstuvwxyz",Li="0123456789",Di={DIGIT:Li,ALPHA:En,ALPHA_DIGIT:En+En.toUpperCase()+Li},Za=(e=16,t=Di.ALPHA_DIGIT)=>{let i="";const{length:o}=t;for(;e--;)i+=t[Math.random()*o|0];return i};function Ja(e){return!!(e&&pe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xa=e=>{const t=new Array(10),i=(o,r)=>{if(Ot(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=it(o)?[]:{};return St(o,(a,c)=>{const l=i(a,r+1);!Ct(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return i(e,0)},Ya=Me("AsyncFunction"),Qa=e=>e&&(Ot(e)||pe(e))&&pe(e.then)&&pe(e.catch),Fi=((e,t)=>e?setImmediate:t?((i,o)=>(Xe.addEventListener("message",({source:r,data:s})=>{r===Xe&&s===i&&o.length&&o.shift()()},!1),r=>{o.push(r),Xe.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",pe(Xe.postMessage)),Ka=typeof queueMicrotask<"u"?queueMicrotask.bind(Xe):typeof process<"u"&&process.nextTick||Fi,C={isArray:it,isArrayBuffer:$i,isBuffer:ga,isFormData:xa,isArrayBufferView:ya,isString:wa,isNumber:Ii,isBoolean:ba,isObject:Ot,isPlainObject:qt,isReadableStream:Ma,isRequest:Ra,isResponse:Aa,isHeaders:Na,isUndefined:Ct,isDate:Ca,isFile:Sa,isBlob:ka,isRegExp:Ua,isFunction:pe,isStream:va,isURLSearchParams:Ba,isTypedArray:Da,isFileList:Ea,forEach:St,merge:kn,extend:Ia,trim:$a,stripBOM:Pa,inherits:za,toFlatObject:Ta,kindOf:Dt,kindOfTest:Me,endsWith:Va,toArray:La,forEachEntry:Fa,matchAll:Oa,isHTMLForm:qa,hasOwnProperty:Ti,hasOwnProp:Ti,reduceDescriptors:Vi,freezeMethods:Wa,toObjectSet:_a,toCamelCase:Ha,noop:Ga,toFiniteNumber:ja,findKey:Pi,global:Xe,isContextDefined:zi,ALPHABET:Di,generateString:Za,isSpecCompliantForm:Ja,toJSONObject:Xa,isAsyncFn:Ya,isThenable:Qa,setImmediate:Fi,asap:Ka};function D(e,t,i,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}C.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:C.toJSONObject(this.config),code:this.code,status:this.status}}});const Oi=D.prototype,qi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qi[e]={value:e}}),Object.defineProperties(D,qi),Object.defineProperty(Oi,"isAxiosError",{value:!0}),D.from=(e,t,i,o,r,s)=>{const a=Object.create(Oi);return C.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,e.message,t,i,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const el=null;function vn(e){return C.isPlainObject(e)||C.isArray(e)}function Hi(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Ui(e,t,i){return e?e.concat(t).map(function(r,s){return r=Hi(r),!i&&s?"["+r+"]":r}).join(i?".":""):t}function tl(e){return C.isArray(e)&&!e.some(vn)}const nl=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function Ht(e,t,i){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,w){return!C.isUndefined(w[k])});const o=i.metaTokens,r=i.visitor||h,s=i.dots,a=i.indexes,l=(i.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(t);if(!C.isFunction(r))throw new TypeError("visitor must be a function");function d(p){if(p===null)return"";if(C.isDate(p))return p.toISOString();if(!l&&C.isBlob(p))throw new D("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(p)||C.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,k,w){let M=p;if(p&&!w&&typeof p=="object"){if(C.endsWith(k,"{}"))k=o?k:k.slice(0,-2),p=JSON.stringify(p);else if(C.isArray(p)&&tl(p)||(C.isFileList(p)||C.endsWith(k,"[]"))&&(M=C.toArray(p)))return k=Hi(k),M.forEach(function(O,L){!(C.isUndefined(O)||O===null)&&t.append(a===!0?Ui([k],L,s):a===null?k:k+"[]",d(O))}),!1}return vn(p)?!0:(t.append(Ui(w,k,s),d(p)),!1)}const f=[],m=Object.assign(nl,{defaultVisitor:h,convertValue:d,isVisitable:vn});function g(p,k){if(!C.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+k.join("."));f.push(p),C.forEach(p,function(M,F){(!(C.isUndefined(M)||M===null)&&r.call(t,M,C.isString(F)?F.trim():F,k,m))===!0&&g(M,k?k.concat(F):[F])}),f.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Wi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function xn(e,t){this._pairs=[],e&&Ht(e,this,t)}const _i=xn.prototype;_i.append=function(t,i){this._pairs.push([t,i])},_i.toString=function(t){const i=t?function(o){return t.call(this,o,Wi)}:Wi;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function il(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gi(e,t,i){if(!t)return e;const o=i&&i.encode||il,r=i&&i.serialize;let s;if(r?s=r(t,i):s=C.isURLSearchParams(t)?t.toString():new xn(t,i).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class ji{constructor(){this.handlers=[]}use(t,i,o){return this.handlers.push({fulfilled:t,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){C.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Zi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ol={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:xn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Bn=typeof window<"u"&&typeof document<"u",Mn=typeof navigator=="object"&&navigator||void 0,rl=Bn&&(!Mn||["ReactNative","NativeScript","NS"].indexOf(Mn.product)<0),sl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",al=Bn&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bn,hasStandardBrowserEnv:rl,hasStandardBrowserWebWorkerEnv:sl,navigator:Mn,origin:al},Symbol.toStringTag,{value:"Module"})),...ol};function ll(e,t){return Ht(e,new ue.classes.URLSearchParams,Object.assign({visitor:function(i,o,r,s){return ue.isNode&&C.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cl(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dl(e){const t={},i=Object.keys(e);let o;const r=i.length;let s;for(o=0;o<r;o++)s=i[o],t[s]=e[s];return t}function Ji(e){function t(i,o,r,s){let a=i[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=i.length;return a=!a&&C.isArray(r)?r.length:a,l?(C.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!C.isObject(r[a]))&&(r[a]=[]),t(i,o,r[a],s)&&C.isArray(r[a])&&(r[a]=dl(r[a])),!c)}if(C.isFormData(e)&&C.isFunction(e.entries)){const i={};return C.forEachEntry(e,(o,r)=>{t(cl(o),r,i,0)}),i}return null}function ul(e,t,i){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const kt={transitional:Zi,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const o=i.getContentType()||"",r=o.indexOf("application/json")>-1,s=C.isObject(t);if(s&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return r?JSON.stringify(Ji(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t)||C.isReadableStream(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return ll(t,this.formSerializer).toString();if((c=C.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ht(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(i.setContentType("application/json",!1),ul(t)):t}],transformResponse:[function(t){const i=this.transitional||kt.transitional,o=i&&i.forcedJSONParsing,r=this.responseType==="json";if(C.isResponse(t)||C.isReadableStream(t))return t;if(t&&C.isString(t)&&(o&&!this.responseType||r)){const a=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{kt.headers[e]={}});const hl=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fl=e=>{const t={};let i,o,r;return e&&e.split(`
15
- `).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!i||t[i]&&hl[i])&&(i==="set-cookie"?t[i]?t[i].push(o):t[i]=[o]:t[i]=t[i]?t[i]+", "+o:o)}),t},Xi=Symbol("internals");function Et(e){return e&&String(e).trim().toLowerCase()}function Ut(e){return e===!1||e==null?e:C.isArray(e)?e.map(Ut):String(e)}function ml(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(e);)t[o[1]]=o[2];return t}const pl=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rn(e,t,i,o,r){if(C.isFunction(o))return o.call(this,t,i);if(r&&(t=i),!!C.isString(t)){if(C.isString(o))return t.indexOf(o)!==-1;if(C.isRegExp(o))return o.test(t)}}function gl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,o)=>i.toUpperCase()+o)}function yl(e,t){const i=C.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}class he{constructor(t){t&&this.set(t)}set(t,i,o){const r=this;function s(c,l,d){const h=Et(l);if(!h)throw new Error("header name must be a non-empty string");const f=C.findKey(r,h);(!f||r[f]===void 0||d===!0||d===void 0&&r[f]!==!1)&&(r[f||l]=Ut(c))}const a=(c,l)=>C.forEach(c,(d,h)=>s(d,h,l));if(C.isPlainObject(t)||t instanceof this.constructor)a(t,i);else if(C.isString(t)&&(t=t.trim())&&!pl(t))a(fl(t),i);else if(C.isHeaders(t))for(const[c,l]of t.entries())s(l,c,o);else t!=null&&s(i,t,o);return this}get(t,i){if(t=Et(t),t){const o=C.findKey(this,t);if(o){const r=this[o];if(!i)return r;if(i===!0)return ml(r);if(C.isFunction(i))return i.call(this,r,o);if(C.isRegExp(i))return i.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Et(t),t){const o=C.findKey(this,t);return!!(o&&this[o]!==void 0&&(!i||Rn(this,this[o],o,i)))}return!1}delete(t,i){const o=this;let r=!1;function s(a){if(a=Et(a),a){const c=C.findKey(o,a);c&&(!i||Rn(o,o[c],c,i))&&(delete o[c],r=!0)}}return C.isArray(t)?t.forEach(s):s(t),r}clear(t){const i=Object.keys(this);let o=i.length,r=!1;for(;o--;){const s=i[o];(!t||Rn(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const i=this,o={};return C.forEach(this,(r,s)=>{const a=C.findKey(o,s);if(a){i[a]=Ut(r),delete i[s];return}const c=t?gl(s):String(s).trim();c!==s&&delete i[s],i[c]=Ut(r),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return C.forEach(this,(o,r)=>{o!=null&&o!==!1&&(i[r]=t&&C.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
16
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const o=new this(t);return i.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Xi]=this[Xi]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Et(a);o[c]||(yl(r,a),o[c]=!0)}return C.isArray(t)?t.forEach(s):s(t),this}}he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(he.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[i]=o}}}),C.freezeMethods(he);function An(e,t){const i=this||kt,o=t||i,r=he.from(o.headers);let s=o.data;return C.forEach(e,function(c){s=c.call(i,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function Yi(e){return!!(e&&e.__CANCEL__)}function ot(e,t,i){D.call(this,e??"canceled",D.ERR_CANCELED,t,i),this.name="CanceledError"}C.inherits(ot,D,{__CANCEL__:!0});function Qi(e,t,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):t(new D("Request failed with status code "+i.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function wl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bl(e,t){e=e||10;const i=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),h=o[s];a||(a=d),i[r]=l,o[r]=d;let f=s,m=0;for(;f!==r;)m+=i[f++],f=f%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),d-a<t)return;const g=h&&d-h;return g?Math.round(m*1e3/g):void 0}}function Cl(e,t){let i=0,o=1e3/t,r,s;const a=(d,h=Date.now())=>{i=h,r=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const h=Date.now(),f=h-i;f>=o?a(d,h):(r=d,s||(s=setTimeout(()=>{s=null,a(r)},o-f)))},()=>r&&a(r)]}const Wt=(e,t,i=3)=>{let o=0;const r=bl(50,250);return Cl(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-o,d=r(l),h=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:d||void 0,estimated:d&&c&&h?(c-a)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},i)},Ki=(e,t)=>{const i=e!=null;return[o=>t[0]({lengthComputable:i,total:e,loaded:o}),t[1]]},eo=e=>(...t)=>C.asap(()=>e(...t)),Sl=ue.hasStandardBrowserEnv?function(){const t=ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent),i=document.createElement("a");let o;function r(s){let a=s;return t&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return o=r(window.location.href),function(a){const c=C.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),kl=ue.hasStandardBrowserEnv?{write(e,t,i,o,r,s){const a=[e+"="+encodeURIComponent(t)];C.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),C.isString(o)&&a.push("path="+o),C.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function El(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function to(e,t){return e&&!El(t)?vl(e,t):t}const no=e=>e instanceof he?{...e}:e;function Ye(e,t){t=t||{};const i={};function o(d,h,f){return C.isPlainObject(d)&&C.isPlainObject(h)?C.merge.call({caseless:f},d,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function r(d,h,f){if(C.isUndefined(h)){if(!C.isUndefined(d))return o(void 0,d,f)}else return o(d,h,f)}function s(d,h){if(!C.isUndefined(h))return o(void 0,h)}function a(d,h){if(C.isUndefined(h)){if(!C.isUndefined(d))return o(void 0,d)}else return o(void 0,h)}function c(d,h,f){if(f in t)return o(d,h);if(f in e)return o(void 0,d)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(d,h)=>r(no(d),no(h),!0)};return C.forEach(Object.keys(Object.assign({},e,t)),function(h){const f=l[h]||r,m=f(e[h],t[h],h);C.isUndefined(m)&&f!==c||(i[h]=m)}),i}const io=e=>{const t=Ye({},e);let{data:i,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=t;t.headers=a=he.from(a),t.url=Gi(to(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(C.isFormData(i)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[d,...h]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...h].join("; "))}}if(ue.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(t)),o||o!==!1&&Sl(t.url))){const d=r&&s&&kl.read(s);d&&a.set(r,d)}return t},xl=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,o){const r=io(e);let s=r.data;const a=he.from(r.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=r,h,f,m,g,p;function k(){g&&g(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function M(){if(!w)return;const O=he.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),z={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:e,request:w};Qi(function(ke){i(ke),k()},function(ke){o(ke),k()},z),w=null}"onloadend"in w?w.onloadend=M:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(M)},w.onabort=function(){w&&(o(new D("Request aborted",D.ECONNABORTED,e,w)),w=null)},w.onerror=function(){o(new D("Network Error",D.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let L=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const z=r.transitional||Zi;r.timeoutErrorMessage&&(L=r.timeoutErrorMessage),o(new D(L,z.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&C.forEach(a.toJSON(),function(L,z){w.setRequestHeader(z,L)}),C.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),c&&c!=="json"&&(w.responseType=r.responseType),d&&([m,p]=Wt(d,!0),w.addEventListener("progress",m)),l&&w.upload&&([f,g]=Wt(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(h=O=>{w&&(o(!O||O.type?new ot(null,e,w):O),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const F=wl(r.url);if(F&&ue.protocols.indexOf(F)===-1){o(new D("Unsupported protocol "+F+":",D.ERR_BAD_REQUEST,e));return}w.send(s||null)})},Bl=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let o=new AbortController,r;const s=function(d){if(!r){r=!0,c();const h=d instanceof Error?d:this.reason;o.abort(h instanceof D?h:new ot(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,s(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:l}=o;return l.unsubscribe=()=>C.asap(c),l}},Ml=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let o=0,r;for(;o<i;)r=o+t,yield e.slice(o,r),o=r},Rl=async function*(e,t){for await(const i of Al(e))yield*Ml(i,t)},Al=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:o}=await t.read();if(i)break;yield o}}finally{await t.cancel()}},oo=(e,t,i,o)=>{const r=Rl(e,t);let s=0,a,c=l=>{a||(a=!0,o&&o(l))};return new ReadableStream({async pull(l){try{const{done:d,value:h}=await r.next();if(d){c(),l.close();return}let f=h.byteLength;if(i){let m=s+=f;i(m)}l.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(l){return c(l),r.return()}},{highWaterMark:2})},_t=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ro=_t&&typeof ReadableStream=="function",Nl=_t&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),so=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$l=ro&&so(()=>{let e=!1;const t=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ao=64*1024,Nn=ro&&so(()=>C.isReadableStream(new Response("").body)),Gt={stream:Nn&&(e=>e.body)};_t&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gt[t]&&(Gt[t]=C.isFunction(e[t])?i=>i[t]():(i,o)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,o)})})})(new Response);const Il=async e=>{if(e==null)return 0;if(C.isBlob(e))return e.size;if(C.isSpecCompliantForm(e))return(await new Request(ue.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(C.isArrayBufferView(e)||C.isArrayBuffer(e))return e.byteLength;if(C.isURLSearchParams(e)&&(e=e+""),C.isString(e))return(await Nl(e)).byteLength},Pl=async(e,t)=>{const i=C.toFiniteNumber(e.getContentLength());return i??Il(t)},$n={http:el,xhr:xl,fetch:_t&&(async e=>{let{url:t,method:i,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:d,headers:h,withCredentials:f="same-origin",fetchOptions:m}=io(e);d=d?(d+"").toLowerCase():"text";let g=Bl([r,s&&s.toAbortSignal()],a),p;const k=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(l&&$l&&i!=="get"&&i!=="head"&&(w=await Pl(h,o))!==0){let z=new Request(t,{method:"POST",body:o,duplex:"half"}),ye;if(C.isFormData(o)&&(ye=z.headers.get("content-type"))&&h.setContentType(ye),z.body){const[ke,Ge]=Ki(w,Wt(eo(l)));o=oo(z.body,ao,ke,Ge)}}C.isString(f)||(f=f?"include":"omit");const M="credentials"in Request.prototype;p=new Request(t,{...m,signal:g,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:M?f:void 0});let F=await fetch(p);const O=Nn&&(d==="stream"||d==="response");if(Nn&&(c||O&&k)){const z={};["status","statusText","headers"].forEach(ht=>{z[ht]=F[ht]});const ye=C.toFiniteNumber(F.headers.get("content-length")),[ke,Ge]=c&&Ki(ye,Wt(eo(c),!0))||[];F=new Response(oo(F.body,ao,ke,()=>{Ge&&Ge(),k&&k()}),z)}d=d||"text";let L=await Gt[C.findKey(Gt,d)||"text"](F,e);return!O&&k&&k(),await new Promise((z,ye)=>{Qi(z,ye,{data:L,headers:he.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:p})})}catch(M){throw k&&k(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,p),{cause:M.cause||M}):D.from(M,M&&M.code,e,p)}})};C.forEach($n,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lo=e=>`- ${e}`,zl=e=>C.isFunction(e)||e===null||e===!1,co={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:t}=e;let i,o;const r={};for(let s=0;s<t;s++){i=e[s];let a;if(o=i,!zl(i)&&(o=$n[(a=String(i)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
17
- `+s.map(lo).join(`
18
- `):" "+lo(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:$n};function In(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function uo(e){return In(e),e.headers=he.from(e.headers),e.data=An.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),co.getAdapter(e.adapter||kt.adapter)(e).then(function(o){return In(e),o.data=An.call(e,e.transformResponse,o),o.headers=he.from(o.headers),o},function(o){return Yi(o)||(In(e),o&&o.response&&(o.response.data=An.call(e,e.transformResponse,o.response),o.response.headers=he.from(o.response.headers))),Promise.reject(o)})}const ho="1.7.7",Pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pn[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const fo={};Pn.transitional=function(t,i,o){function r(s,a){return"[Axios v"+ho+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(t===!1)throw new D(r(a," has been removed"+(i?" in "+i:"")),D.ERR_DEPRECATED);return i&&!fo[a]&&(fo[a]=!0,console.warn(r(a," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,a,c):!0}};function Tl(e,t,i){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],a=t[s];if(a){const c=e[s],l=c===void 0||a(c,s,e);if(l!==!0)throw new D("option "+s+" must be "+l,D.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const zn={assertOptions:Tl,validators:Pn},He=zn.validators;class Qe{constructor(t){this.defaults=t,this.interceptors={request:new ji,response:new ji}}async request(t,i){try{return await this._request(t,i)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
19
- `+s):o.stack=s}catch{}}throw o}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ye(this.defaults,i);const{transitional:o,paramsSerializer:r,headers:s}=i;o!==void 0&&zn.assertOptions(o,{silentJSONParsing:He.transitional(He.boolean),forcedJSONParsing:He.transitional(He.boolean),clarifyTimeoutError:He.transitional(He.boolean)},!1),r!=null&&(C.isFunction(r)?i.paramsSerializer={serialize:r}:zn.assertOptions(r,{encode:He.function,serialize:He.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=s&&C.merge(s.common,s[i.method]);s&&C.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),i.headers=he.concat(a,s);const c=[];let l=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(l=l&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let h,f=0,m;if(!l){const p=[uo.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),m=p.length,h=Promise.resolve(i);f<m;)h=h.then(p[f++],p[f++]);return h}m=c.length;let g=i;for(f=0;f<m;){const p=c[f++],k=c[f++];try{g=p(g)}catch(w){k.call(this,w);break}}try{h=uo.call(this,g)}catch(p){return Promise.reject(p)}for(f=0,m=d.length;f<m;)h=h.then(d[f++],d[f++]);return h}getUri(t){t=Ye(this.defaults,t);const i=to(t.baseURL,t.url);return Gi(i,t.params,t.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(t){Qe.prototype[t]=function(i,o){return this.request(Ye(o||{},{method:t,url:i,data:(o||{}).data}))}}),C.forEach(["post","put","patch"],function(t){function i(o){return function(s,a,c){return this.request(Ye(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Qe.prototype[t]=i(),Qe.prototype[t+"Form"]=i(!0)});class Tn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},t(function(s,a,c){o.reason||(o.reason=new ot(s,a,c),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=o=>{t.abort(o)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new Tn(function(r){t=r}),cancel:t}}}function Vl(e){return function(i){return e.apply(null,i)}}function Ll(e){return C.isObject(e)&&e.isAxiosError===!0}const Vn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vn).forEach(([e,t])=>{Vn[t]=e});function mo(e){const t=new Qe(e),i=Ni(Qe.prototype.request,t);return C.extend(i,Qe.prototype,t,{allOwnKeys:!0}),C.extend(i,t,null,{allOwnKeys:!0}),i.create=function(r){return mo(Ye(e,r))},i}const Y=mo(kt);Y.Axios=Qe,Y.CanceledError=ot,Y.CancelToken=Tn,Y.isCancel=Yi,Y.VERSION=ho,Y.toFormData=Ht,Y.AxiosError=D,Y.Cancel=Y.CanceledError,Y.all=function(t){return Promise.all(t)},Y.spread=Vl,Y.isAxiosError=Ll,Y.mergeConfig=Ye,Y.AxiosHeaders=he,Y.formToJSON=e=>Ji(C.isHTMLForm(e)?new FormData(e):e),Y.getAdapter=co.getAdapter,Y.HttpStatusCode=Vn,Y.default=Y;var vt=(e=>(e.GET="get",e.POST="post",e.PUT="put",e.DELETE="delete",e))(vt||{});const xt=(()=>{function e(){const l=r();return!(!l||l==="undefined")}function t(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function i(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function o(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(l){if(!e())return;const d=xt.getUser();d&&(d.human=l,localStorage.setItem("user",JSON.stringify(d)))}return{isAuth:e,setTokens:t,getAccessToken:r,getRefreshToken:s,getUserId:i,clearTokens:a,getUser:o,updateHuman:c}})();class Ln{constructor(t){u(this,"code",400);u(this,"err","");V.BuildClass(this,t)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(t,i){const o=t.config;if(t.response){if(t.response.status===401&&!o._retry)return o._retry=!0,i.defaults.headers.common.token=xt.getAccessToken(),t.config.headers.token=xt.getAccessToken(),t.config.baseURL=void 0,i.request(o);if(t.response.status>=500){if(t.response.data==="неверный логин или пароль"){yt.Error("Неверный логин или пароль");return}yt.Error("Ошибка на сервере, попробуйте позже")}if(t.response.status>=400&&t.response.status<500){const r=new Ln(t.response.data).getErr();r&&yt.Error(r)}return Promise.reject(t)}}}const rt=Y.create();rt.interceptors.response.use(e=>e,async e=>await Ln.Handle(e,rt));class Bt{static async Get(t,i,o){return await rt({method:vt.GET,url:t,headers:i,responseType:o})}static async Post(t,i,o,r){return i["Content-Type"]="multipart/form-data",await rt({method:vt.POST,url:t,headers:i,responseType:o,data:r})}static async Put(t,i,o){return i["Content-Type"]="multipart/form-data",await rt({method:vt.PUT,url:t,headers:i,data:o})}static async Delete(t,i){return await rt({method:vt.DELETE,url:t,headers:i})}}class jt{constructor(t){u(this,"name","");V.BuildClass(this,t)}static Set(){}static Get(t,i){const o=sessionStorage.getItem(t);if(o){const r=JSON.parse(o),s=new Date,a=new Date(r.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(i||10)?null:r.data}else return null}static async TryGet(t,i,o){let r;return r=jt.Get(t,o),r||(r=await i()),r}}var Dn=(e=>(e.ContentType="Content-Type",e.Token="token",e))(Dn||{}),po=(e=>(e.ApplicationJson="application/json",e.MultipartFormData="multipart/form-data",e))(po||{});const j=class j{static Setup(t,i,o){this.baseUrl=t,this.apiVersion=i,this.apiHost=o}static newWebSocket(t){const i=this.apiHost.replace("http","ws")+"/ws/"+t;return new WebSocket(i)}static download(t,i){const o=j.getDownloadFileName(t,i.headers),r=URL.createObjectURL(i.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(t,i){if(t)return t;const o=i["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(t){const i=ve.Get(be.AccessToken);return t||(t=j.headers),i&&(t[Dn.Token]=i),t??j.headers}static returnResponse(t,i){if(i)return t!=null&&t.isBlob?j.download(t.downloadFileName,i):i.data}static async Get(t){return j.returnResponse(t,await Bt.Get(j.buildUrl((t==null?void 0:t.query)??""),j.getHeaders(t==null?void 0:t.headers),j.getResponseType(t==null?void 0:t.isBlob)))}static async Post(t){return j.returnResponse(t,await Bt.Post(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers),j.getResponseType(t.isBlob),j.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Put(t){return j.returnResponse(t,await Bt.Put(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers),j.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Delete(t){return j.returnResponse(t,await Bt.Delete(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers)))}static async Subscribe(t){const{query:i}=t;return new EventSource(j.buildUrl(i))}static buildUrl(t){const i=t??"";return this.baseUrl+this.apiVersion+i}static getResponseType(t){return t?"blob":"json"}static createFormDataPayload(t,i){const o=new FormData;if(o.append("form",JSON.stringify(t)),i)for(const r of i)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};u(j,"baseUrl",""),u(j,"apiVersion",""),u(j,"apiHost",""),u(j,"headers",{[Dn.ContentType]:po.ApplicationJson});let re=j;const Dl={class:"bg"},Fl=n.defineComponent({__name:"AuthPage",setup(e){const t=async()=>{await x.S.Auth.Login()};return(i,o)=>{const r=n.resolveComponent("AuthForm");return n.openBlock(),n.createElementBlock("div",Dl,[n.createVNode(r,{width:"760px",margin:"0 auto",onSubmit:t})])}}}),v=(e,t)=>{const i=e.__vccOpts||e;for(const[o,r]of t)i[o]=r;return i},Fn=v(Fl,[["__scopeId","data-v-0f012ef7"]]),Ol={},ql={style:{"text-align":"center"}};function Hl(e,t){return n.openBlock(),n.createElementBlock("div",ql,t[0]||(t[0]=[n.createElementVNode("h1",null,"Страница не найдена",-1)]))}const On=v(Ol,[["render",Hl]]),Ul=[{path:"/",redirect:"/login"},{path:"/login",component:Fn,meta:{layout:"AuthLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:On}],_e=class _e{static Set(t){this.router=t,this.AddRoutes(Ul)}static Get(){return this.router}static AddRoutes(t){t.forEach(i=>{this.Get().addRoute(i)})}static async To(t){await this.Get().push(t)}static async ToHome(){}static async Replace(t){await this.Get().replace(t)}static Id(){return _e.GetStringParam("id")}static Slug(){return _e.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return _e.GetStringQueryParam("qid")}static Route(){return this.Get().currentRoute.value}static RouterPushBlank(t){const i=this.Get().resolve({path:t});window.open(i==null?void 0:i.href,"_blank")}static GetPath(){var i;const t=(i=_e.Route())==null?void 0:i.path.split("/");return!t||t.length<=0?"":t[t.length-1]}static async ToAdmin(t){if(!t){await this.Get().push("/admin");return}let i=t;i[0]==="/"&&(i=t.substring(1)),await _e.To(`/admin/${i}`)}static GetStringQueryParam(t){return String(this.Route().query[t])}static GetNumberQueryParam(t){return Number(this.Route().query[t]??0)}static GetStringParam(t){return this.Route().params[t]}static SetQueryParam(t,i){const o=new URL(window.location);o.searchParams.set(t,String(i)),history.replaceState(null,"",o)}static Resolve(t){return this.Get().resolve(t)}};u(_e,"router");let Ue=_e;class Ne{constructor(t,i){u(this,"items",n.reactive([]));u(this,"item");u(this,"count",n.ref(0));u(this,"classConstructor");u(this,"url","");this.classConstructor=t,this.item=n.reactive(new this.classConstructor),this.url=i}Set(t){Object.assign(this.item,new this.classConstructor(t))}getUrl(t){return t?`${this.url}/${t}`:this.url}async GetAll(t){let i;const o=re.Get;t&&t.withCache?i=await jt.TryGet(this.getUrl(),o):i=await o({query:this.getUrl()}),Array.isArray(i)?this.SetAll(i):this.SetAllWithCount(i)}async Get(t){t||(t=Ue.Id()),this.Set(await re.Get({query:this.getUrl(t)}))}async FTSP(t){var a;const o=((t==null?void 0:t.ftsp)??Ai.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await re.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(t){const i=t??this.item,o={payload:i,query:this.getUrl()};return i.getFileInfos&&(o.fileInfos=i.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await re.Post(o)}async CreateAndSet(t){const i=await this.Create(t);this.Set(i)}async CreateMany(t){if(!t)return;const i=[];t.forEach(o=>{i.push(new Promise(()=>this.Create(o)))}),Promise.all(i)}async Update(t){const i=t??this.item,o={query:this.getUrl(`${i.id}`),payload:i};return i.getFileInfos&&(o.fileInfos=i.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await re.Put(o)}async UpdateAndSet(t){const i=await this.Update(t);this.Set(i)}async UpdateAndReset(t){await this.Update(t??this.item),this.Set()}async Remove(t){if(!t){console.warn("BaseStore/Remove. id is undefined");return}await re.Delete({query:this.getUrl(`${t}`)}),this.RemoveItem(t)}async UpdateMany(t){if(t||(t=this.items),!t)return;const i=[];t.forEach(o=>{i.push(new Promise(()=>this.Update(o)))}),Promise.all(i)}SetAll(t){t&&(this.items.splice(0,this.items.length),this.items.push(...t.map(i=>new this.classConstructor(i))))}SetAllWithCount(t){t&&(this.SetAll(t.items),this.count.value=t.count)}RemoveItem(t){const i=this.items.findIndex(o=>o.id===t);this.items.splice(i,1)}AppendToAll(t){if(t){if(Array.isArray(t)){const i=t.map(o=>new this.classConstructor(o));this.items.push(...i);return}this.items.push(new this.classConstructor(t))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){V.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(t){if(t){if(Array.isArray(t)){const i=t.map(o=>new this.classConstructor(o));this.items.unshift(...i);return}this.items.unshift(new this.classConstructor(t))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}function Wl(e,t){e=="left"&&t.next(),e=="right"&&t.prev()}const _l=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Gl{static GetRandColor(t){return qe.GetRandEL(t??_l)}}function go(e,t){const i=[],o=t||Be.Asc,r=o===Be.Asc?Be.Desc:Be.Asc;return Object.values(e).forEach(s=>{i.push(s(o)),i.push(s(r))}),i.length>0&&!i.some(s=>s.default)&&(i[0].default=!0),t&&i.forEach(s=>{s.default&&(s.default=s.order===t)}),i}let jl=class{constructor(){u(this,"startHour",9);u(this,"endHour",19);u(this,"timelinePxHeight",50);u(this,"timelineStep",pt.FiveMinutes);u(this,"activeTime","");u(this,"activeObjectId","");u(this,"dragged",!1);u(this,"draggedStartTime","");u(this,"draggedEndTime","");u(this,"timelines",It[pt.FiveMinutes])}startDrag(t,i){this.draggedStartTime=t,this.draggedEndTime=i,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=It[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return qe.GenerateNumsRange(this.startHour,this.endHour)}};const qn=e=>e===8||e===46,Zl=e=>e>46&&e<58,Jl=e=>e>34&&e<41,Xl=e=>e+".",Yl=(e,t,i)=>{qn(t)||Jl(t)||(!Zl(t)||i>9)&&e.preventDefault()};function Ql(e,t){if(t>8){let i=e.substring(0,2).replace(".","1");Number(i)>31&&(i="31");let o=e.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=e.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),e=i+"."+o+"."+r}return e}function Kl(e){const t=e.keyCode;let i=e.srcElement.value;const o=i.length;Yl(e,t,o),!qn(t)&&(o===2||o===5)&&(i=Xl(i));const r=e.srcElement.value+String.fromCharCode(e.which);if(qn(t)){e.srcElement.value=i;return}i.length===0&&Number(r)>3&&(i="3",e.preventDefault()),i.length===1&&Number(r)>31&&(i="31",e.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(i=i.substring(0,3)+"12",e.preventDefault()),i=Ql(i,o),e.srcElement.value=i}const ec=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],tc="ru-RU";class Ve{constructor(){u(this,"locale","ru-RU")}static Format(t,i){if(!t)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return i&&(o.year=i.year||i.year===void 0?i.year:o.year,o.month=i.month||i.month===void 0?i.month:o.month,o.day=i.day||i.day===void 0?i.day:o.day,o.hour=i.hour??o.hour,o.minute=i.minute??o.minute),Intl.DateTimeFormat(tc,o).format(new Date(t))}static FromRuStr(t){const i=t.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetPeriod(t,i,o){return`${this.Format(t,o)}-${this.Format(i,o)}`}static GetShortDayName(t){return t?ec[t.getDay()]:""}static GetCurrentWeekPeriod(t){const i=new Date,o=new Date(i.getFullYear(),i.getMonth(),i.getDate()-i.getDay()+1),r=new Date(i.getFullYear(),i.getMonth(),o.getDate()+7);return this.GetPeriod(o,r,t||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(t,i){const o=new Date,r=new Date,s=Ve.SplitHourTime(t),a=Ve.SplitHourTime(i);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(t){const i=Ve.SplitHourTime(t);return i[0]*60+i[1]}static SplitHourTime(t){const i=t.split(":");return[Number(i[0]),Number(i[1])]}static AddMinutesToHM(t,i){const o=new Date,r=Ve.SplitHourTime(t);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}static GetMonthsDiff(t,i){return i.getMonth()-t.getMonth()+12*(i.getFullYear()-t.getFullYear())}static StringToDate(t){const i=t.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetDateOrToday(t){return t?t.date:new Date}static InPeriod(t,i,o){return new Date(t)>=new Date(i)&&new Date(t)<=new Date(o)}static GetDatesFromPeriod(t,i){const o=[new Date(t)];let r=t;for(;r<=i;)r=Ve.AddDays(r,1),o.push(r);return o}static AddDays(t,i){const o=new Date(t);return o.setDate(o.getDate()+i),o}static Eq(t,i){return t.getTime()===i.getTime()}}class nc{constructor(){u(this,"dragged",!1);u(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(t){this.dragged=!0,t&&t.dataTransfer&&t.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class ic{static Get(t){const i=t.split(".");return i[i.length-1]}}const oc=(()=>{function e(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function t(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function i(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){e(s,[a]);return}const l=c.split(",");l.push(a),e(s,l)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const l=c.split(",").filter(d=>d!==a);e(s,l)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:i,removeFromFavourite:o,setFavourite:e,isFavourite:t,clearFavourite:r}})();/*!
14
+ ***************************************************************************** */var wi;(function(e){(function(t){var i=typeof globalThis=="object"?globalThis:typeof yi=="object"?yi:typeof self=="object"?self:typeof this=="object"?this:c(),o=r(e);typeof i.Reflect<"u"&&(o=r(i.Reflect,o)),t(o,i),typeof i.Reflect>"u"&&(i.Reflect=e);function r(l,d){return function(h,f){Object.defineProperty(l,h,{configurable:!0,writable:!0,value:f}),d&&d(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(t,i){var o=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,d=!c&&!l,h={create:c?function(){return pi(Object.create(null))}:l?function(){return pi({__proto__:null})}:function(){return pi({})},has:d?function(y,b){return o.call(y,b)}:function(y,b){return b in y},get:d?function(y,b){return o.call(y,b)?y[b]:void 0}:function(y,b){return y[b]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Of(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qf(),p=typeof WeakMap=="function"?WeakMap:Hf(),k=r?Symbol.for("@reflect-metadata:registry"):void 0,w=Lf(),M=Df(w);function F(y,b,C,B){if(T(C)){if(!Os(y))throw new TypeError;if(!qs(b))throw new TypeError;return Af(y,b)}else{if(!Os(y))throw new TypeError;if(!K(b))throw new TypeError;if(!K(B)&&!T(B)&&!ft(B))throw new TypeError;return ft(B)&&(B=void 0),C=Te(C),$f(y,b,C,B)}}t("decorate",F);function O(y,b){function C(B,P){if(!K(B))throw new TypeError;if(!T(P)&&!Tf(P))throw new TypeError;Ts(y,b,B,P)}return C}t("metadata",O);function L(y,b,C,B){if(!K(C))throw new TypeError;return T(B)||(B=Te(B)),Ts(y,b,C,B)}t("defineMetadata",L);function z(y,b,C){if(!K(b))throw new TypeError;return T(C)||(C=Te(C)),Is(y,b,C)}t("hasMetadata",z);function ye(y,b,C){if(!K(b))throw new TypeError;return T(C)||(C=Te(C)),hi(y,b,C)}t("hasOwnMetadata",ye);function ke(y,b,C){if(!K(b))throw new TypeError;return T(C)||(C=Te(C)),Ps(y,b,C)}t("getMetadata",ke);function Ge(y,b,C){if(!K(b))throw new TypeError;return T(C)||(C=Te(C)),zs(y,b,C)}t("getOwnMetadata",Ge);function ht(y,b){if(!K(y))throw new TypeError;return T(b)||(b=Te(b)),Vs(y,b)}t("getMetadataKeys",ht);function hn(y,b){if(!K(y))throw new TypeError;return T(b)||(b=Te(b)),Ls(y,b)}t("getOwnMetadataKeys",hn);function Rf(y,b,C){if(!K(b))throw new TypeError;if(T(C)||(C=Te(C)),!K(b))throw new TypeError;T(C)||(C=Te(C));var B=$t(b,C,!1);return T(B)?!1:B.OrdinaryDeleteMetadata(y,b,C)}t("deleteMetadata",Rf);function Af(y,b){for(var C=y.length-1;C>=0;--C){var B=y[C],P=B(b);if(!T(P)&&!ft(P)){if(!qs(P))throw new TypeError;b=P}}return b}function $f(y,b,C,B){for(var P=y.length-1;P>=0;--P){var ie=y[P],ee=ie(b,C,B);if(!T(ee)&&!ft(ee)){if(!K(ee))throw new TypeError;B=ee}}return B}function Is(y,b,C){var B=hi(y,b,C);if(B)return!0;var P=mi(b);return ft(P)?!1:Is(y,P,C)}function hi(y,b,C){var B=$t(b,C,!1);return T(B)?!1:Fs(B.OrdinaryHasOwnMetadata(y,b,C))}function Ps(y,b,C){var B=hi(y,b,C);if(B)return zs(y,b,C);var P=mi(b);if(!ft(P))return Ps(y,P,C)}function zs(y,b,C){var B=$t(b,C,!1);if(!T(B))return B.OrdinaryGetOwnMetadata(y,b,C)}function Ts(y,b,C,B){var P=$t(C,B,!0);P.OrdinaryDefineOwnMetadata(y,b,C,B)}function Vs(y,b){var C=Ls(y,b),B=mi(y);if(B===null)return C;var P=Vs(B,b);if(P.length<=0)return C;if(C.length<=0)return P;for(var ie=new g,ee=[],U=0,R=C;U<R.length;U++){var A=R[U],$=ie.has(A);$||(ie.add(A),ee.push(A))}for(var N=0,_=P;N<_.length;N++){var A=_[N],$=ie.has(A);$||(ie.add(A),ee.push(A))}return ee}function Ls(y,b){var C=$t(y,b,!1);return C?C.OrdinaryOwnMetadataKeys(y,b):[]}function Ds(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function T(y){return y===void 0}function ft(y){return y===null}function Nf(y){return typeof y=="symbol"}function K(y){return typeof y=="object"?y!==null:typeof y=="function"}function If(y,b){switch(Ds(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var C="string",B=Hs(y,s);if(B!==void 0){var P=B.call(y,C);if(K(P))throw new TypeError;return P}return Pf(y)}function Pf(y,b){var C,B;{var P=y.toString;if(fn(P)){var B=P.call(y);if(!K(B))return B}var C=y.valueOf;if(fn(C)){var B=C.call(y);if(!K(B))return B}}throw new TypeError}function Fs(y){return!!y}function zf(y){return""+y}function Te(y){var b=If(y);return Nf(b)?b:zf(b)}function Os(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function fn(y){return typeof y=="function"}function qs(y){return typeof y=="function"}function Tf(y){switch(Ds(y)){case 3:return!0;case 4:return!0;default:return!1}}function fi(y,b){return y===b||y!==y&&b!==b}function Hs(y,b){var C=y[b];if(C!=null){if(!fn(C))throw new TypeError;return C}}function Us(y){var b=Hs(y,a);if(!fn(b))throw new TypeError;var C=b.call(y);if(!K(C))throw new TypeError;return C}function _s(y){return y.value}function Ws(y){var b=y.next();return b.done?!1:b}function Gs(y){var b=y.return;b&&b.call(y)}function mi(y){var b=Object.getPrototypeOf(y);if(typeof y!="function"||y===f||b!==f)return b;var C=y.prototype,B=C&&Object.getPrototypeOf(C);if(B==null||B===Object.prototype)return b;var P=B.constructor;return typeof P!="function"||P===y?b:P}function Vf(){var y;!T(k)&&typeof i.Reflect<"u"&&!(k in i.Reflect)&&typeof i.Reflect.defineMetadata=="function"&&(y=Ff(i.Reflect));var b,C,B,P=new p,ie={registerProvider:ee,getProvider:R,setProvider:$};return ie;function ee(N){if(!Object.isExtensible(ie))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===N:break;case T(b):b=N;break;case b===N:break;case T(C):C=N;break;case C===N:break;default:B===void 0&&(B=new g),B.add(N);break}}function U(N,_){if(!T(b)){if(b.isProviderFor(N,_))return b;if(!T(C)){if(C.isProviderFor(N,_))return b;if(!T(B))for(var Z=Us(B);;){var J=Ws(Z);if(!J)return;var $e=_s(J);if($e.isProviderFor(N,_))return Gs(Z),$e}}}if(!T(y)&&y.isProviderFor(N,_))return y}function R(N,_){var Z=P.get(N),J;return T(Z)||(J=Z.get(_)),T(J)&&(J=U(N,_),T(J)||(T(Z)&&(Z=new m,P.set(N,Z)),Z.set(_,J))),J}function A(N){if(T(N))throw new TypeError;return b===N||C===N||!T(B)&&B.has(N)}function $(N,_,Z){if(!A(Z))throw new Error("Metadata provider not registered.");var J=R(N,_);if(J!==Z){if(!T(J))return!1;var $e=P.get(N);T($e)&&($e=new m,P.set(N,$e)),$e.set(_,Z)}return!0}}function Lf(){var y;return!T(k)&&K(i.Reflect)&&Object.isExtensible(i.Reflect)&&(y=i.Reflect[k]),T(y)&&(y=Vf()),!T(k)&&K(i.Reflect)&&Object.isExtensible(i.Reflect)&&Object.defineProperty(i.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Df(y){var b=new p,C={isProviderFor:function(A,$){var N=b.get(A);return T(N)?!1:N.has($)},OrdinaryDefineOwnMetadata:ee,OrdinaryHasOwnMetadata:P,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:U,OrdinaryDeleteMetadata:R};return w.registerProvider(C),C;function B(A,$,N){var _=b.get(A),Z=!1;if(T(_)){if(!N)return;_=new m,b.set(A,_),Z=!0}var J=_.get($);if(T(J)){if(!N)return;if(J=new m,_.set($,J),!y.setProvider(A,$,C))throw _.delete($),Z&&b.delete(A),new Error("Wrong provider for target.")}return J}function P(A,$,N){var _=B($,N,!1);return T(_)?!1:Fs(_.has(A))}function ie(A,$,N){var _=B($,N,!1);if(!T(_))return _.get(A)}function ee(A,$,N,_){var Z=B(N,_,!0);Z.set(A,$)}function U(A,$){var N=[],_=B(A,$,!1);if(T(_))return N;for(var Z=_.keys(),J=Us(Z),$e=0;;){var js=Ws(J);if(!js)return N.length=$e,N;var Uf=_s(js);try{N[$e]=Uf}catch(_f){try{Gs(J)}finally{throw _f}}$e++}}function R(A,$,N){var _=B($,N,!1);if(T(_)||!_.delete(A))return!1;if(_.size===0){var Z=b.get($);T(Z)||(Z.delete(N),Z.size===0&&b.delete(Z))}return!0}}function Ff(y){var b=y.defineMetadata,C=y.hasOwnMetadata,B=y.getOwnMetadata,P=y.getOwnMetadataKeys,ie=y.deleteMetadata,ee=new p,U={isProviderFor:function(R,A){var $=ee.get(R);return!T($)&&$.has(A)?!0:P(R,A).length?(T($)&&($=new g,ee.set(R,$)),$.add(A),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:C,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:P,OrdinaryDeleteMetadata:ie};return U}function $t(y,b,C){var B=w.getProvider(y,b);if(!T(B))return B;if(C){if(w.setProvider(y,b,M))return M;throw new Error("Illegal state.")}}function Of(){var y={},b=[],C=function(){function U(R,A,$){this._index=0,this._keys=R,this._values=A,this._selector=$}return U.prototype["@@iterator"]=function(){return this},U.prototype[a]=function(){return this},U.prototype.next=function(){var R=this._index;if(R>=0&&R<this._keys.length){var A=this._selector(this._keys[R],this._values[R]);return R+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:A,done:!1}}return{value:void 0,done:!0}},U.prototype.throw=function(R){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),R},U.prototype.return=function(R){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:R,done:!0}},U}(),B=function(){function U(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(U.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),U.prototype.has=function(R){return this._find(R,!1)>=0},U.prototype.get=function(R){var A=this._find(R,!1);return A>=0?this._values[A]:void 0},U.prototype.set=function(R,A){var $=this._find(R,!0);return this._values[$]=A,this},U.prototype.delete=function(R){var A=this._find(R,!1);if(A>=0){for(var $=this._keys.length,N=A+1;N<$;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,fi(R,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},U.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},U.prototype.keys=function(){return new C(this._keys,this._values,P)},U.prototype.values=function(){return new C(this._keys,this._values,ie)},U.prototype.entries=function(){return new C(this._keys,this._values,ee)},U.prototype["@@iterator"]=function(){return this.entries()},U.prototype[a]=function(){return this.entries()},U.prototype._find=function(R,A){if(!fi(this._cacheKey,R)){this._cacheIndex=-1;for(var $=0;$<this._keys.length;$++)if(fi(this._keys[$],R)){this._cacheIndex=$;break}}return this._cacheIndex<0&&A&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},U}();return B;function P(U,R){return U}function ie(U,R){return R}function ee(U,R){return[U,R]}}function qf(){var y=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(C){return this._map.has(C)},b.prototype.add=function(C){return this._map.set(C,C),this},b.prototype.delete=function(C){return this._map.delete(C)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return y}function Hf(){var y=16,b=h.create(),C=B();return function(){function R(){this._key=B()}return R.prototype.has=function(A){var $=P(A,!1);return $!==void 0?h.has($,this._key):!1},R.prototype.get=function(A){var $=P(A,!1);return $!==void 0?h.get($,this._key):void 0},R.prototype.set=function(A,$){var N=P(A,!0);return N[this._key]=$,this},R.prototype.delete=function(A){var $=P(A,!1);return $!==void 0?delete $[this._key]:!1},R.prototype.clear=function(){this._key=B()},R}();function B(){var R;do R="@@WeakMap@@"+U();while(h.has(b,R));return b[R]=!0,R}function P(R,A){if(!o.call(R,C)){if(!A)return;Object.defineProperty(R,C,{value:h.create()})}return R[C]}function ie(R,A){for(var $=0;$<A;++$)R[$]=Math.random()*255|0;return R}function ee(R){if(typeof Uint8Array=="function"){var A=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(A):typeof msCrypto<"u"?msCrypto.getRandomValues(A):ie(A,R),A}return ie(new Array(R),R)}function U(){var R=ee(y);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var A="",$=0;$<y;++$){var N=R[$];($===4||$===6||$===8)&&(A+="-"),N<16&&(A+="0"),A+=N.toString(16).toLowerCase()}return A}}function pi(y){return y.__=void 0,delete y.__,y}})})(wi||(wi={}));class ve{static UUID(){return tt()}static GUID(){const t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}const ut=class ut{static BuildClass(t,i){i&&Object.keys(i).forEach(o=>{const r=i[o];if(this.isPrimitive(r))t[o]instanceof Date?t[o]=new Date(r):t[o]=r;else if(r!=null&&!Array.isArray(r))if(t[o]&&t[o].constructor)t[o]=new t[o].constructor(r);else{const s=Reflect.getMetadata(o,t);s&&(t[o]=new s[o](r))}if(Array.isArray(r)){const s=Reflect.getMetadata(o,t);s&&(t[o]=r.map(a=>new s[o](a)))}})}static isPrimitive(t){return t!==null&&typeof t<"u"&&t!==Object(t)}static RemoveFromClassByIndex(t,i,o){ut.RemoveFromClass(t,i,o)}static RemoveFromClassById(t,i,o){if(!t)return;const r=i.findIndex(s=>s.id===t);ut.RemoveFromClass(r,i,o)}static RemoveFromClass(t,i,o){if(t<0)return;const r=i[t].id;r&&o&&o.push(r),i.splice(t,1)}static GetPropertyName(t){const i=new t;return new Proxy(i,{get(o,r){return r}})}static InitClassInstance(t,i){const o=t.constructor(i);return ut.BuildClass(o),o.id=ve.UUID(),o}static ExistsWithId(t,i){return t.some(o=>o.id===i)}};u(ut,"GetClassConstructor",t=>(i,o)=>{const r=Reflect.getMetadata(`property:${o}`,i)||{};r[o]=t,Reflect.defineMetadata(o,r,i)});let V=ut;class te{static Capitalize(t){return t?t[0].toUpperCase()+t.slice(1):""}static ToCamelCase(t){const i=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return t.match(i).map((r,s)=>s===0?r.toLowerCase():te.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(t,i,o){return t.substring(t.indexOf(i)+2,t.lastIndexOf(o))}static Translit(t,i){const o={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return i&&/[а-яА-Я]/g.test(t)?t.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(o).find(c=>o[c]===r);return a||""}const s=Object.keys(o).find(a=>o[a]===r.toLowerCase());return s?s.toUpperCase():""}):t.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?o[r]:o[r.toLowerCase()].toUpperCase())}static RemoveEmoji(t){const i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return t.replace(i,"")}static CanBeTranslited(t){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(t)}static StringsEquals(t,i){const o=t.toLowerCase().replaceAll(/\s/g,""),r=i.toLowerCase().replaceAll(/\s/g,""),s=te.Translit(o),a=te.Translit(r);return o.includes(r)||s.includes(r)||o.includes(a)}static SearchIn(t,i){return te.StringsEquals(t,i)}static FormatToPercentage(t){return`${t}%`}static WrapSubStr(t,i){const o=new RegExp(te.GetVariants(i).join("|"),"gi");return t.replace(o,`<span class="search-text">${i}</span>`)}static GetVariants(t){const i=te.Translit(t);return[t,te.Capitalize(t),t.toLowerCase(),t.toUpperCase(),i,te.Capitalize(i),i.toLowerCase(),i.toUpperCase()]}static ContainsNum(t){return/\d/.test(t)}static JoinSnake(...t){return t.join("_")}static GetDynamicCountName(t,i){const o=[2,0,1,1,1,2];return t.length+" "+i[t.length%100>4&&t.length%100<20?2:o[t.length%10<5?t.length%10:5]]}}var X=(e=>(e.Date="date",e.String="string",e.Boolean="boolean",e.Number="number",e.Set="set",e.Join="join",e))(X||{}),le=(e=>(e.Eq="=",e.Ne="!=",e.Gt=">",e.Lt="<",e.Btw="between",e.In="in",e.Like="like",e.Null="is null",e.NotNull="is not null",e))(le||{}),Ks=Object.defineProperty,ea=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Ks(t,i,r),r};const bi=class mt{constructor(t){u(this,"id");u(this,"model","");u(this,"label","");u(this,"col","");u(this,"operator",le.Eq);u(this,"date1");u(this,"date2");u(this,"value1","");u(this,"boolean",!1);u(this,"number",0);u(this,"type",X.String);u(this,"set",[]);u(this,"isSet",!1);u(this,"joinTable","");u(this,"joinTableModel","");u(this,"joinTableFk","");u(this,"joinTablePk","");u(this,"joinTableId","");u(this,"joinTableIdCol","");V.BuildClass(this,t)}eq(t){if(!t)return!1;if(this.type===X.Join){const i=t.model===this.model&&t.operator===this.operator&&this.joinTableModel===t.joinTableModel;return t.operator===le.In?i&&qe.Eq(this.set,t.set):i}return t.model===this.model&&t.col===this.col&&t.operator===this.operator}valueEq(t){return!this||!t||!this.eq(t)?!1:this.type===X.Boolean?this.boolean===(t==null?void 0:t.boolean):this.type===X.String?this.value1===(t==null?void 0:t.value1):this.type===X.Join&&this.set.length?qe.Eq(this.set,t.set):!1}toUrlQuery(){const t=this.type?`"type":"${this.type}"`:"",i=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===X.Boolean?`"boolean":${this.boolean}`:"",c=this.type===X.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===X.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",d=this.type===X.Number?`"number":${this.number}`:"",h=this.type===X.Set||this.operator===le.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===X.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[t,i,o,r,s,a,c,l,d,h,f].filter(m=>m!=="").toString()}fromUrlQuery(t){this.model=t.get("model")??"",this.col=t.get("col")??"",this.label=t.get("label")??"",this.operator=t.get("operator")??"",this.value1=t.get("value1")??"",this.type=t.get("type")??"",this.boolean=!!(t.get("boolean")??""),this.joinTableModel=t.get("joinTableModel")??"",this.joinTableId=t.get("joinTableId")??"",this.joinTableFk=t.get("joinTableFk")??"",this.joinTableIdCol=t.get("joinTableIdCol")??"",this.joinTablePk=t.get("joinTablePk")??""}isUnaryFilter(){return this.operator===le.Eq||this.operator===le.Gt||this.operator===le.Lt}isBetweenFilter(){return this.operator===le.Btw}isSetFilter(){return this.operator===le.In}static Create(t,i,o){const r=new mt;return r.model=t.GetClassName(),r.col=i??"",r.type=o,r.type===X.Number&&(r.value1="0"),r.type===X.String&&(r.value1=""),r.type===X.Boolean&&(r.value1="false",r.operator=le.Eq),r}static CreateFilterModel(t,i,o){const r=new mt;return r.id=tt(),r.model=typeof t=="string"?t:t.GetClassName(),r.col=i??"",r.type=o,r.type===X.Number&&(r.value1="0"),r.type===X.String&&(r.value1=""),r.type===X.Boolean&&(r.value1="false"),r}static CreateFilterModelWithJoin(t,i,o,r,s,a,c,l){const d=new mt;return d.id=tt(),d.joinTable=o,d.joinTablePk=r,d.joinTableFk=s,d.col=i,d.type=a,c&&(d.joinTableId=c),l&&(d.joinTableIdCol=l),d}static CreateFilterModelWithJoinV2(t,i,o,r,s,a,c){const l=new mt;return l.model=t,l.joinTableModel=o,l.joinTablePk=r,l.joinTableFk=s,l.col=i,l.type=X.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(t,i){const o=new mt;return o.id=tt(),o.model=te.ToCamelCase(t.GetClassName()),o.joinTableModel=te.ToCamelCase(i.GetClassName()),o.type=X.Join,o}addToSet(...t){t.forEach(i=>{if(this.set.indexOf(i)===-1){this.set.push(i);return}this.set=this.set.filter(o=>o!==i)})}pushToSet(...t){t.forEach(i=>{this.set.indexOf(i)===-1&&this.set.push(i)})}replaceSet(...t){this.set=t}setBoolean(t){this.boolean=t}toRef(){return n.ref(this)}setDate1(t){this.date1=t}setDate2(t){this.date2=t}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(t,i){if(!t&&!i){this.dropDates();return}if(!i){this.setDate1(t),this.operator=le.Eq;return}this.setDate2(i),this.operator=le.Btw}};ea([V.GetClassConstructor(String)],bi.prototype,"set");let Si=bi;class ta{constructor(){u(this,"operation",le.Lt);u(this,"column","");u(this,"value");u(this,"initial",!0);u(this,"tableName","");u(this,"version","");u(this,"model","")}toUrlQuery(){const t=this.operation?`"operation":"${this.operation}"`:"",i=this.column?`"column":"${this.column}"`:"",o=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=o?`"value":"${o}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[t,i,r,s,a].filter(c=>c!=="").toString()}fromUrlQuery(t){t.cursvalue&&(this.value=t.cursvalue),t.curscolumn&&(this.column=String(t.curscolumn)),t.cursinitial!==void 0&&(this.initial=!!t.cursinitial),t.curstableName&&(this.tableName=String(t.curstableName)),t.cursoperation&&(this.operation=t.cursoperation)}}class Pt{constructor(t){u(this,"offset",0);u(this,"limit",25);u(this,"cursor",new ta);u(this,"cursorMode",!1);u(this,"append",!1);u(this,"allLoaded",!1);u(this,"version","");V.BuildClass(this,t)}setLoadMore(t,i,o){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=le.Gt,this.cursor.column=i,this.cursor.tableName=o,this.cursorMode=!0}setLoadMoreV2(t,i,o){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=le.Gt,this.cursor.column=i,this.cursor.model=o,this.cursorMode=!0,this.version="v2"}setOffset(t){this.offset=t}toUrlQuery(){const t=`"offset":${this.offset}`,i=`"limit":${this.limit}`,o=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[t,i,o,r,s,a].toString()}fromUrlQuery(){const t=window.location.search,i=t.substring(t.indexOf("p=")+2,t.lastIndexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.offset=Number(o.get("offset")),this.limit=Number(o.get("col"))}setAllLoaded(t){this.allLoaded=!(t>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,V.BuildClass(this)}}var xe=(e=>(e.Asc="asc",e.Desc="desc",e))(xe||{});class mn{constructor(t){u(this,"model","");u(this,"col","");u(this,"order");u(this,"label","");u(this,"default",!1);u(this,"selected",!1);V.BuildClass(this,t)}static Create(t,i,o=xe.Asc,r,s){const a=new mn;return a.model=t.GetClassName(),a.col=i??"",a.order=o??xe.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===xe.Asc}isDesc(){return this.order===xe.Desc}eq(t){return t.model===this.model&&t.col===this.col&&t.order===this.order}toUrlQuery(){const t=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",o=this.order?`"order":"${this.order}"`:"";return[t,i,o].toString()}async fromUrlQuery(){const t=window.location.search,i=t.substring(t.indexOf("s=")+2,t.indexOf("|")),o=new URLSearchParams(decodeURIComponent(i));this.model=o.get("model")??"",this.col=o.get("col")??"",this.label=o.get("label")??"",this.default=!!o.get("default"),this.order=o.get("order")??""}asc(){this.order=xe.Asc}desc(){this.order=xe.Desc}}class zt{constructor(){u(this,"model","");u(this,"cols",[]);u(this,"models",[])}static Create(t,i){const o=new zt;return o.model=t.GetClassName(),o.cols=i,o}}var na=Object.defineProperty,Tt=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&na(t,i,r),r};const pt=(ge=class{constructor(t){u(this,"id");u(this,"f",[]);u(this,"s",[]);u(this,"p",new Pt);u(this,"t",new zt);V.BuildClass(this,t)}static Get(){return this.instance||(this.instance=new ge),this.instance}createFrom(t){const i=new ge(JSON.parse(t));this.f=i.f}clearForHTTP(){const t=new ge(this);return t.f=this.f.map(i=>ge.EmptyEntiries(i)),t.s=this.s.map(i=>ge.EmptyEntiries(i)),t.p=ge.EmptyEntiries(this.p),t.t=ge.EmptyEntiries(this.t),t}static EmptyEntiries(t){if(!t)return;const o=Object.entries(t).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(o)}findFilterModel(t){return this.f.find(i=>t.id===i.id)}getFirstSortModel(){return qe.GetLast(this.s)}setSortModel(t){t&&(this.s[0]=t)}setS(t){this.s[0]=t}setF(t){this.f.push(t)}replaceF(t,i){this.removeF(i),t&&this.setF(t)}removeF(t){const i=this.f.findIndex(o=>o.eq(t));V.RemoveFromClassByIndex(i,this.f)}reset(){this.f=[],this.s=[],this.p=new Pt}resetF(){this.f=[]}},u(ge,"instance"),ge);Tt([V.GetClassConstructor(Si)],pt.prototype,"f"),Tt([V.GetClassConstructor(mn)],pt.prototype,"s"),Tt([V.GetClassConstructor(Pt)],pt.prototype,"p"),Tt([V.GetClassConstructor(zt)],pt.prototype,"t");let Ci=pt;class Vt{constructor(t){u(this,"name","");V.BuildClass(this,t)}static Set(){}static Get(t,i){const o=sessionStorage.getItem(t);if(o){const r=JSON.parse(o),s=new Date,a=new Date(r.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(i||10)?null:r.data}else return null}static async TryGet(t,i,o){let r;return r=Vt.Get(t,o),r||(r=await i()),r}}function ki(e,t){return function(){return e.apply(t,arguments)}}const{toString:ia}=Object.prototype,{getPrototypeOf:pn}=Object,Lt=(e=>t=>{const i=ia.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),t=>Lt(t)===e),Dt=e=>t=>typeof t===e,{isArray:nt}=Array,gt=Dt("undefined");function oa(e){return e!==null&&!gt(e)&&e.constructor!==null&&!gt(e.constructor)&&pe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ei=Be("ArrayBuffer");function ra(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ei(e.buffer),t}const sa=Dt("string"),pe=Dt("function"),vi=Dt("number"),Ft=e=>e!==null&&typeof e=="object",aa=e=>e===!0||e===!1,Ot=e=>{if(Lt(e)!=="object")return!1;const t=pn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},la=Be("Date"),ca=Be("File"),da=Be("Blob"),ua=Be("FileList"),ha=e=>Ft(e)&&pe(e.pipe),fa=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pe(e.append)&&((t=Lt(e))==="formdata"||t==="object"&&pe(e.toString)&&e.toString()==="[object FormData]"))},ma=Be("URLSearchParams"),[pa,ga,ya,wa]=["ReadableStream","Request","Response","Headers"].map(Be),ba=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yt(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),nt(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function xi(e,t){t=t.toLowerCase();const i=Object.keys(e);let o=i.length,r;for(;o-- >0;)if(r=i[o],t===r.toLowerCase())return r;return null}const je=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bi=e=>!gt(e)&&e!==je;function gn(){const{caseless:e}=Bi(this)&&this||{},t={},i=(o,r)=>{const s=e&&xi(t,r)||r;Ot(t[s])&&Ot(o)?t[s]=gn(t[s],o):Ot(o)?t[s]=gn({},o):nt(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&yt(arguments[o],i);return t}const Sa=(e,t,i,{allOwnKeys:o}={})=>(yt(t,(r,s)=>{i&&pe(r)?e[s]=ki(r,i):e[s]=r},{allOwnKeys:o}),e),Ca=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ka=(e,t,i,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},Ea=(e,t,i,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=i!==!1&&pn(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},va=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const o=e.indexOf(t,i);return o!==-1&&o===i},xa=e=>{if(!e)return null;if(nt(e))return e;let t=e.length;if(!vi(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},Ba=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pn(Uint8Array)),Ma=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},Ra=(e,t)=>{let i;const o=[];for(;(i=e.exec(t))!==null;)o.push(i);return o},Aa=Be("HTMLFormElement"),$a=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,r){return o.toUpperCase()+r}),Mi=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),Na=Be("RegExp"),Ri=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),o={};yt(i,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Ia=e=>{Ri(e,(t,i)=>{if(pe(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=e[i];if(pe(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Pa=(e,t)=>{const i={},o=r=>{r.forEach(s=>{i[s]=!0})};return nt(e)?o(e):o(String(e).split(t)),i},za=()=>{},Ta=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yn="abcdefghijklmnopqrstuvwxyz",Ai="0123456789",$i={DIGIT:Ai,ALPHA:yn,ALPHA_DIGIT:yn+yn.toUpperCase()+Ai},Va=(e=16,t=$i.ALPHA_DIGIT)=>{let i="";const{length:o}=t;for(;e--;)i+=t[Math.random()*o|0];return i};function La(e){return!!(e&&pe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Da=e=>{const t=new Array(10),i=(o,r)=>{if(Ft(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=nt(o)?[]:{};return yt(o,(a,c)=>{const l=i(a,r+1);!gt(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return i(e,0)},Fa=Be("AsyncFunction"),Oa=e=>e&&(Ft(e)||pe(e))&&pe(e.then)&&pe(e.catch),Ni=((e,t)=>e?setImmediate:t?((i,o)=>(je.addEventListener("message",({source:r,data:s})=>{r===je&&s===i&&o.length&&o.shift()()},!1),r=>{o.push(r),je.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",pe(je.postMessage)),qa=typeof queueMicrotask<"u"?queueMicrotask.bind(je):typeof process<"u"&&process.nextTick||Ni,S={isArray:nt,isArrayBuffer:Ei,isBuffer:oa,isFormData:fa,isArrayBufferView:ra,isString:sa,isNumber:vi,isBoolean:aa,isObject:Ft,isPlainObject:Ot,isReadableStream:pa,isRequest:ga,isResponse:ya,isHeaders:wa,isUndefined:gt,isDate:la,isFile:ca,isBlob:da,isRegExp:Na,isFunction:pe,isStream:ha,isURLSearchParams:ma,isTypedArray:Ba,isFileList:ua,forEach:yt,merge:gn,extend:Sa,trim:ba,stripBOM:Ca,inherits:ka,toFlatObject:Ea,kindOf:Lt,kindOfTest:Be,endsWith:va,toArray:xa,forEachEntry:Ma,matchAll:Ra,isHTMLForm:Aa,hasOwnProperty:Mi,hasOwnProp:Mi,reduceDescriptors:Ri,freezeMethods:Ia,toObjectSet:Pa,toCamelCase:$a,noop:za,toFiniteNumber:Ta,findKey:xi,global:je,isContextDefined:Bi,ALPHABET:$i,generateString:Va,isSpecCompliantForm:La,toJSONObject:Da,isAsyncFn:Fa,isThenable:Oa,setImmediate:Ni,asap:qa};function D(e,t,i,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}S.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.status}}});const Ii=D.prototype,Pi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pi[e]={value:e}}),Object.defineProperties(D,Pi),Object.defineProperty(Ii,"isAxiosError",{value:!0}),D.from=(e,t,i,o,r,s)=>{const a=Object.create(Ii);return S.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),D.call(a,e.message,t,i,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Ha=null;function wn(e){return S.isPlainObject(e)||S.isArray(e)}function zi(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ti(e,t,i){return e?e.concat(t).map(function(r,s){return r=zi(r),!i&&s?"["+r+"]":r}).join(i?".":""):t}function Ua(e){return S.isArray(e)&&!e.some(wn)}const _a=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function qt(e,t,i){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=S.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,w){return!S.isUndefined(w[k])});const o=i.metaTokens,r=i.visitor||h,s=i.dots,a=i.indexes,l=(i.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(r))throw new TypeError("visitor must be a function");function d(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(!l&&S.isBlob(p))throw new D("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,k,w){let M=p;if(p&&!w&&typeof p=="object"){if(S.endsWith(k,"{}"))k=o?k:k.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&Ua(p)||(S.isFileList(p)||S.endsWith(k,"[]"))&&(M=S.toArray(p)))return k=zi(k),M.forEach(function(O,L){!(S.isUndefined(O)||O===null)&&t.append(a===!0?Ti([k],L,s):a===null?k:k+"[]",d(O))}),!1}return wn(p)?!0:(t.append(Ti(w,k,s),d(p)),!1)}const f=[],m=Object.assign(_a,{defaultVisitor:h,convertValue:d,isVisitable:wn});function g(p,k){if(!S.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+k.join("."));f.push(p),S.forEach(p,function(M,F){(!(S.isUndefined(M)||M===null)&&r.call(t,M,S.isString(F)?F.trim():F,k,m))===!0&&g(M,k?k.concat(F):[F])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Vi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function bn(e,t){this._pairs=[],e&&qt(e,this,t)}const Li=bn.prototype;Li.append=function(t,i){this._pairs.push([t,i])},Li.toString=function(t){const i=t?function(o){return t.call(this,o,Vi)}:Vi;return this._pairs.map(function(r){return i(r[0])+"="+i(r[1])},"").join("&")};function Wa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Di(e,t,i){if(!t)return e;const o=i&&i.encode||Wa,r=i&&i.serialize;let s;if(r?s=r(t,i):s=S.isURLSearchParams(t)?t.toString():new bn(t,i).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Fi{constructor(){this.handlers=[]}use(t,i,o){return this.handlers.push({fulfilled:t,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Oi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ga={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:bn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Cn=typeof navigator=="object"&&navigator||void 0,ja=Sn&&(!Cn||["ReactNative","NativeScript","NS"].indexOf(Cn.product)<0),Za=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ja=Sn&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:ja,hasStandardBrowserWebWorkerEnv:Za,navigator:Cn,origin:Ja},Symbol.toStringTag,{value:"Module"})),...Ga};function Xa(e,t){return qt(e,new de.classes.URLSearchParams,Object.assign({visitor:function(i,o,r,s){return de.isNode&&S.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ya(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qa(e){const t={},i=Object.keys(e);let o;const r=i.length;let s;for(o=0;o<r;o++)s=i[o],t[s]=e[s];return t}function qi(e){function t(i,o,r,s){let a=i[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=i.length;return a=!a&&S.isArray(r)?r.length:a,l?(S.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!S.isObject(r[a]))&&(r[a]=[]),t(i,o,r[a],s)&&S.isArray(r[a])&&(r[a]=Qa(r[a])),!c)}if(S.isFormData(e)&&S.isFunction(e.entries)){const i={};return S.forEachEntry(e,(o,r)=>{t(Ya(o),r,i,0)}),i}return null}function Ka(e,t,i){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const wt={transitional:Oi,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const o=i.getContentType()||"",r=o.indexOf("application/json")>-1,s=S.isObject(t);if(s&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return r?JSON.stringify(qi(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Xa(t,this.formSerializer).toString();if((c=S.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return qt(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(i.setContentType("application/json",!1),Ka(t)):t}],transformResponse:[function(t){const i=this.transitional||wt.transitional,o=i&&i.forcedJSONParsing,r=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(o&&!this.responseType||r)){const a=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{wt.headers[e]={}});const el=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tl=e=>{const t={};let i,o,r;return e&&e.split(`
15
+ `).forEach(function(a){r=a.indexOf(":"),i=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!i||t[i]&&el[i])&&(i==="set-cookie"?t[i]?t[i].push(o):t[i]=[o]:t[i]=t[i]?t[i]+", "+o:o)}),t},Hi=Symbol("internals");function bt(e){return e&&String(e).trim().toLowerCase()}function Ht(e){return e===!1||e==null?e:S.isArray(e)?e.map(Ht):String(e)}function nl(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(e);)t[o[1]]=o[2];return t}const il=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kn(e,t,i,o,r){if(S.isFunction(o))return o.call(this,t,i);if(r&&(t=i),!!S.isString(t)){if(S.isString(o))return t.indexOf(o)!==-1;if(S.isRegExp(o))return o.test(t)}}function ol(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,o)=>i.toUpperCase()+o)}function rl(e,t){const i=S.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}class ue{constructor(t){t&&this.set(t)}set(t,i,o){const r=this;function s(c,l,d){const h=bt(l);if(!h)throw new Error("header name must be a non-empty string");const f=S.findKey(r,h);(!f||r[f]===void 0||d===!0||d===void 0&&r[f]!==!1)&&(r[f||l]=Ht(c))}const a=(c,l)=>S.forEach(c,(d,h)=>s(d,h,l));if(S.isPlainObject(t)||t instanceof this.constructor)a(t,i);else if(S.isString(t)&&(t=t.trim())&&!il(t))a(tl(t),i);else if(S.isHeaders(t))for(const[c,l]of t.entries())s(l,c,o);else t!=null&&s(i,t,o);return this}get(t,i){if(t=bt(t),t){const o=S.findKey(this,t);if(o){const r=this[o];if(!i)return r;if(i===!0)return nl(r);if(S.isFunction(i))return i.call(this,r,o);if(S.isRegExp(i))return i.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=bt(t),t){const o=S.findKey(this,t);return!!(o&&this[o]!==void 0&&(!i||kn(this,this[o],o,i)))}return!1}delete(t,i){const o=this;let r=!1;function s(a){if(a=bt(a),a){const c=S.findKey(o,a);c&&(!i||kn(o,o[c],c,i))&&(delete o[c],r=!0)}}return S.isArray(t)?t.forEach(s):s(t),r}clear(t){const i=Object.keys(this);let o=i.length,r=!1;for(;o--;){const s=i[o];(!t||kn(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const i=this,o={};return S.forEach(this,(r,s)=>{const a=S.findKey(o,s);if(a){i[a]=Ht(r),delete i[s];return}const c=t?ol(s):String(s).trim();c!==s&&delete i[s],i[c]=Ht(r),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return S.forEach(this,(o,r)=>{o!=null&&o!==!1&&(i[r]=t&&S.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
16
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const o=new this(t);return i.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Hi]=this[Hi]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=bt(a);o[c]||(rl(r,a),o[c]=!0)}return S.isArray(t)?t.forEach(s):s(t),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(ue.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[i]=o}}}),S.freezeMethods(ue);function En(e,t){const i=this||wt,o=t||i,r=ue.from(o.headers);let s=o.data;return S.forEach(e,function(c){s=c.call(i,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function Ui(e){return!!(e&&e.__CANCEL__)}function it(e,t,i){D.call(this,e??"canceled",D.ERR_CANCELED,t,i),this.name="CanceledError"}S.inherits(it,D,{__CANCEL__:!0});function _i(e,t,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):t(new D("Request failed with status code "+i.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function sl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function al(e,t){e=e||10;const i=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),h=o[s];a||(a=d),i[r]=l,o[r]=d;let f=s,m=0;for(;f!==r;)m+=i[f++],f=f%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),d-a<t)return;const g=h&&d-h;return g?Math.round(m*1e3/g):void 0}}function ll(e,t){let i=0,o=1e3/t,r,s;const a=(d,h=Date.now())=>{i=h,r=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const h=Date.now(),f=h-i;f>=o?a(d,h):(r=d,s||(s=setTimeout(()=>{s=null,a(r)},o-f)))},()=>r&&a(r)]}const Ut=(e,t,i=3)=>{let o=0;const r=al(50,250);return ll(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-o,d=r(l),h=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:d||void 0,estimated:d&&c&&h?(c-a)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},i)},Wi=(e,t)=>{const i=e!=null;return[o=>t[0]({lengthComputable:i,total:e,loaded:o}),t[1]]},Gi=e=>(...t)=>S.asap(()=>e(...t)),cl=de.hasStandardBrowserEnv?function(){const t=de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent),i=document.createElement("a");let o;function r(s){let a=s;return t&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return o=r(window.location.href),function(a){const c=S.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),dl=de.hasStandardBrowserEnv?{write(e,t,i,o,r,s){const a=[e+"="+encodeURIComponent(t)];S.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),S.isString(o)&&a.push("path="+o),S.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ul(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ji(e,t){return e&&!ul(t)?hl(e,t):t}const Zi=e=>e instanceof ue?{...e}:e;function Ze(e,t){t=t||{};const i={};function o(d,h,f){return S.isPlainObject(d)&&S.isPlainObject(h)?S.merge.call({caseless:f},d,h):S.isPlainObject(h)?S.merge({},h):S.isArray(h)?h.slice():h}function r(d,h,f){if(S.isUndefined(h)){if(!S.isUndefined(d))return o(void 0,d,f)}else return o(d,h,f)}function s(d,h){if(!S.isUndefined(h))return o(void 0,h)}function a(d,h){if(S.isUndefined(h)){if(!S.isUndefined(d))return o(void 0,d)}else return o(void 0,h)}function c(d,h,f){if(f in t)return o(d,h);if(f in e)return o(void 0,d)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(d,h)=>r(Zi(d),Zi(h),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(h){const f=l[h]||r,m=f(e[h],t[h],h);S.isUndefined(m)&&f!==c||(i[h]=m)}),i}const Ji=e=>{const t=Ze({},e);let{data:i,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=t;t.headers=a=ue.from(a),t.url=Di(ji(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(S.isFormData(i)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[d,...h]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...h].join("; "))}}if(de.hasStandardBrowserEnv&&(o&&S.isFunction(o)&&(o=o(t)),o||o!==!1&&cl(t.url))){const d=r&&s&&dl.read(s);d&&a.set(r,d)}return t},fl=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,o){const r=Ji(e);let s=r.data;const a=ue.from(r.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=r,h,f,m,g,p;function k(){g&&g(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function M(){if(!w)return;const O=ue.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),z={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:e,request:w};_i(function(ke){i(ke),k()},function(ke){o(ke),k()},z),w=null}"onloadend"in w?w.onloadend=M:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(M)},w.onabort=function(){w&&(o(new D("Request aborted",D.ECONNABORTED,e,w)),w=null)},w.onerror=function(){o(new D("Network Error",D.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let L=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const z=r.transitional||Oi;r.timeoutErrorMessage&&(L=r.timeoutErrorMessage),o(new D(L,z.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&S.forEach(a.toJSON(),function(L,z){w.setRequestHeader(z,L)}),S.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),c&&c!=="json"&&(w.responseType=r.responseType),d&&([m,p]=Ut(d,!0),w.addEventListener("progress",m)),l&&w.upload&&([f,g]=Ut(l),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(h=O=>{w&&(o(!O||O.type?new it(null,e,w):O),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const F=sl(r.url);if(F&&de.protocols.indexOf(F)===-1){o(new D("Unsupported protocol "+F+":",D.ERR_BAD_REQUEST,e));return}w.send(s||null)})},ml=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let o=new AbortController,r;const s=function(d){if(!r){r=!0,c();const h=d instanceof Error?d:this.reason;o.abort(h instanceof D?h:new it(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,s(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:l}=o;return l.unsubscribe=()=>S.asap(c),l}},pl=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let o=0,r;for(;o<i;)r=o+t,yield e.slice(o,r),o=r},gl=async function*(e,t){for await(const i of yl(e))yield*pl(i,t)},yl=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:o}=await t.read();if(i)break;yield o}}finally{await t.cancel()}},Xi=(e,t,i,o)=>{const r=gl(e,t);let s=0,a,c=l=>{a||(a=!0,o&&o(l))};return new ReadableStream({async pull(l){try{const{done:d,value:h}=await r.next();if(d){c(),l.close();return}let f=h.byteLength;if(i){let m=s+=f;i(m)}l.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(l){return c(l),r.return()}},{highWaterMark:2})},_t=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yi=_t&&typeof ReadableStream=="function",wl=_t&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bl=Yi&&Qi(()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ki=64*1024,vn=Yi&&Qi(()=>S.isReadableStream(new Response("").body)),Wt={stream:vn&&(e=>e.body)};_t&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wt[t]&&(Wt[t]=S.isFunction(e[t])?i=>i[t]():(i,o)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,o)})})})(new Response);const Sl=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(de.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await wl(e)).byteLength},Cl=async(e,t)=>{const i=S.toFiniteNumber(e.getContentLength());return i??Sl(t)},xn={http:Ha,xhr:fl,fetch:_t&&(async e=>{let{url:t,method:i,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:d,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Ji(e);d=d?(d+"").toLowerCase():"text";let g=ml([r,s&&s.toAbortSignal()],a),p;const k=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let w;try{if(l&&bl&&i!=="get"&&i!=="head"&&(w=await Cl(h,o))!==0){let z=new Request(t,{method:"POST",body:o,duplex:"half"}),ye;if(S.isFormData(o)&&(ye=z.headers.get("content-type"))&&h.setContentType(ye),z.body){const[ke,Ge]=Wi(w,Ut(Gi(l)));o=Xi(z.body,Ki,ke,Ge)}}S.isString(f)||(f=f?"include":"omit");const M="credentials"in Request.prototype;p=new Request(t,{...m,signal:g,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:M?f:void 0});let F=await fetch(p);const O=vn&&(d==="stream"||d==="response");if(vn&&(c||O&&k)){const z={};["status","statusText","headers"].forEach(ht=>{z[ht]=F[ht]});const ye=S.toFiniteNumber(F.headers.get("content-length")),[ke,Ge]=c&&Wi(ye,Ut(Gi(c),!0))||[];F=new Response(Xi(F.body,Ki,ke,()=>{Ge&&Ge(),k&&k()}),z)}d=d||"text";let L=await Wt[S.findKey(Wt,d)||"text"](F,e);return!O&&k&&k(),await new Promise((z,ye)=>{_i(z,ye,{data:L,headers:ue.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:p})})}catch(M){throw k&&k(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,p),{cause:M.cause||M}):D.from(M,M&&M.code,e,p)}})};S.forEach(xn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eo=e=>`- ${e}`,kl=e=>S.isFunction(e)||e===null||e===!1,to={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let i,o;const r={};for(let s=0;s<t;s++){i=e[s];let a;if(o=i,!kl(i)&&(o=xn[(a=String(i)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
17
+ `+s.map(eo).join(`
18
+ `):" "+eo(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:xn};function Bn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function no(e){return Bn(e),e.headers=ue.from(e.headers),e.data=En.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),to.getAdapter(e.adapter||wt.adapter)(e).then(function(o){return Bn(e),o.data=En.call(e,e.transformResponse,o),o.headers=ue.from(o.headers),o},function(o){return Ui(o)||(Bn(e),o&&o.response&&(o.response.data=En.call(e,e.transformResponse,o.response),o.response.headers=ue.from(o.response.headers))),Promise.reject(o)})}const io="1.7.7",Mn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mn[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const oo={};Mn.transitional=function(t,i,o){function r(s,a){return"[Axios v"+io+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(t===!1)throw new D(r(a," has been removed"+(i?" in "+i:"")),D.ERR_DEPRECATED);return i&&!oo[a]&&(oo[a]=!0,console.warn(r(a," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,a,c):!0}};function El(e,t,i){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],a=t[s];if(a){const c=e[s],l=c===void 0||a(c,s,e);if(l!==!0)throw new D("option "+s+" must be "+l,D.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const Rn={assertOptions:El,validators:Mn},He=Rn.validators;class Je{constructor(t){this.defaults=t,this.interceptors={request:new Fi,response:new Fi}}async request(t,i){try{return await this._request(t,i)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
19
+ `+s):o.stack=s}catch{}}throw o}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ze(this.defaults,i);const{transitional:o,paramsSerializer:r,headers:s}=i;o!==void 0&&Rn.assertOptions(o,{silentJSONParsing:He.transitional(He.boolean),forcedJSONParsing:He.transitional(He.boolean),clarifyTimeoutError:He.transitional(He.boolean)},!1),r!=null&&(S.isFunction(r)?i.paramsSerializer={serialize:r}:Rn.assertOptions(r,{encode:He.function,serialize:He.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=s&&S.merge(s.common,s[i.method]);s&&S.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),i.headers=ue.concat(a,s);const c=[];let l=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(i)===!1||(l=l&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let h,f=0,m;if(!l){const p=[no.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),m=p.length,h=Promise.resolve(i);f<m;)h=h.then(p[f++],p[f++]);return h}m=c.length;let g=i;for(f=0;f<m;){const p=c[f++],k=c[f++];try{g=p(g)}catch(w){k.call(this,w);break}}try{h=no.call(this,g)}catch(p){return Promise.reject(p)}for(f=0,m=d.length;f<m;)h=h.then(d[f++],d[f++]);return h}getUri(t){t=Ze(this.defaults,t);const i=ji(t.baseURL,t.url);return Di(i,t.params,t.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(i,o){return this.request(Ze(o||{},{method:t,url:i,data:(o||{}).data}))}}),S.forEach(["post","put","patch"],function(t){function i(o){return function(s,a,c){return this.request(Ze(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Je.prototype[t]=i(),Je.prototype[t+"Form"]=i(!0)});class An{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},t(function(s,a,c){o.reason||(o.reason=new it(s,a,c),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=o=>{t.abort(o)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new An(function(r){t=r}),cancel:t}}}function vl(e){return function(i){return e.apply(null,i)}}function xl(e){return S.isObject(e)&&e.isAxiosError===!0}const $n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($n).forEach(([e,t])=>{$n[t]=e});function ro(e){const t=new Je(e),i=ki(Je.prototype.request,t);return S.extend(i,Je.prototype,t,{allOwnKeys:!0}),S.extend(i,t,null,{allOwnKeys:!0}),i.create=function(r){return ro(Ze(e,r))},i}const Y=ro(wt);Y.Axios=Je,Y.CanceledError=it,Y.CancelToken=An,Y.isCancel=Ui,Y.VERSION=io,Y.toFormData=qt,Y.AxiosError=D,Y.Cancel=Y.CanceledError,Y.all=function(t){return Promise.all(t)},Y.spread=vl,Y.isAxiosError=xl,Y.mergeConfig=Ze,Y.AxiosHeaders=ue,Y.formToJSON=e=>qi(S.isHTMLForm(e)?new FormData(e):e),Y.getAdapter=to.getAdapter,Y.HttpStatusCode=$n,Y.default=Y;var St=(e=>(e.GET="get",e.POST="post",e.PUT="put",e.DELETE="delete",e))(St||{});const Ct=(()=>{function e(){const l=r();return!(!l||l==="undefined")}function t(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function i(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function o(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(l){if(!e())return;const d=Ct.getUser();d&&(d.human=l,localStorage.setItem("user",JSON.stringify(d)))}return{isAuth:e,setTokens:t,getAccessToken:r,getRefreshToken:s,getUserId:i,clearTokens:a,getUser:o,updateHuman:c}})();var he=(e=>(e.Primary="primary",e.Success="success",e.Warning="warning",e.Error="error",e.Info="info",e))(he||{});class so{constructor(){u(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class ao extends so{constructor(){super(...arguments);u(this,"type",he.Success);u(this,"text","");u(this,"title","")}showMessage(i,o){this.hide(),this.type=o,typeof i=="string"?this.text=i:(this.text=i.text,this.title=i.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(i){this.showMessage(i,he.Info)}Success(i){this.showMessage(i,he.Success)}Error(i){this.showMessage(i,he.Error)}Warning(i){this.showMessage(i,he.Warning)}FormMessage(i){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(i))i[r][0]&&i[r][0].message&&(o+=`<li>${i[r][0].message}</li>`);return o+="</ul>",o}}class Nn{static Get(t,i,o="-"){return!t||!i?"":`${t}${o}${i}`}static In(t,i,o){return t>=i&&t<=o}static Intersects(t,i,o,r){return t===o||i===r||t>o&&t<r||i>o&&i<r||i>r&&t<o}}const lo=1e3,co=60*lo,In=60*co;var kt=(e=>(e.FiveMinutes="5",e.HourQuarter="15",e.HourHalf="30",e.Hour="60",e))(kt||{});const Gt={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class q{static S(t){return lo*t}static M(t){return co*t}static H(t){return In*t}static D(t){return In*t}static W(t){return In*t}static NormalizeTime(t){return String(t).padStart(2,"0")}static HMtoM(t){const i=q.SplitHM(t);return i.length>1?q.HtoM(i[0])+i[1]:q.HtoM(i[0])}static HtoM(t){return Number(t)*60}static SplitHM(t){if(!t)return[];const i=t.split(":");return[Number(i[0]),Number(i[1])]}static HmsToHm(t){const i=q.SplitHM(t);return q.ConcatHM(i[0],i[1])}static AddMtoHM(t,i){const o=new Date,r=q.SplitHM(t);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),c=s.getMinutes();return q.ConcatHM(a,c)}static ConcatHM(t,i){return`${t}:${q.NormalizeTime(i)}`}static DiffM(t,i){return q.Gt(i,t)?q.HMtoM(i)-q.HMtoM(t):q.HMtoM(t)-q.HMtoM(i)}static GetPeriod(t,i){return Nn.Get(t,i)}static Gt(t,i){return q.HMtoM(t)>q.HMtoM(i)}static GtOrEq(t,i){return q.Gt(t,i)||q.Eq(t,i)}static Eq(t,i){return q.HMtoM(t)===q.HMtoM(i)}static PeriodInPeriod(t,i,o,r){return q.HMtoM(t)>=q.HMtoM(o)&&q.HMtoM(i)<=q.HMtoM(r)}static PeriodsIntersects(t,i,o,r){return Nn.Intersects(q.HMtoM(t),q.HMtoM(i),q.HMtoM(o),q.HMtoM(r))}}class Et{static Wait(t,i){return new Promise(o=>setTimeout(()=>o(i),t))}static WaitS(t,i){return Et.Wait(q.S(t),i)}static WaitM(t,i){return Et.Wait(q.M(t),i)}}class Bl extends ao{constructor(){super(...arguments);u(this,"duration",q.S(3))}showMessage(i,o){super.showMessage(i,o),typeof i!="string"&&(this.duration=i.duration??this.duration),Et.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const i="В режиме разработки",o=he.Warning;super.showMessage(i,o)}Save(){const i="Изменения успешно сохранены",o=he.Success;super.showMessage(i,o)}}const vt=new Bl;class Pn{constructor(t){u(this,"code",400);u(this,"err","");V.BuildClass(this,t)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(t,i){const o=t.config;if(t.response){if(t.response.status===401&&!o._retry)return o._retry=!0,i.defaults.headers.common.token=Ct.getAccessToken(),t.config.headers.token=Ct.getAccessToken(),t.config.baseURL=void 0,i.request(o);if(t.response.status>=500){if(t.response.data==="неверный логин или пароль"){vt.Error("Неверный логин или пароль");return}vt.Error("Ошибка на сервере, попробуйте позже")}if(t.response.status>=400&&t.response.status<500){const r=new Pn(t.response.data).getErr();r&&vt.Error(r)}return Promise.reject(t)}}}const ot=Y.create();ot.interceptors.response.use(e=>e,async e=>await Pn.Handle(e,ot));class xt{static async Get(t,i,o){return await ot({method:St.GET,url:t,headers:i,responseType:o})}static async Post(t,i,o,r){return i["Content-Type"]="multipart/form-data",await ot({method:St.POST,url:t,headers:i,responseType:o,data:r})}static async Put(t,i,o){return i["Content-Type"]="multipart/form-data",await ot({method:St.PUT,url:t,headers:i,data:o})}static async Delete(t,i){return await ot({method:St.DELETE,url:t,headers:i})}}class Me{static Get(t){const i=localStorage.getItem(t);if(i)return JSON.parse(i)}static Set(t,i){i&&localStorage.setItem(t,JSON.stringify(i))}static Remove(t){localStorage.removeItem(t)}}var we=(e=>(e.User="user",e.AccessToken="accessToken",e.RefreshToken="refreshToken",e))(we||{}),zn=(e=>(e.ContentType="Content-Type",e.Token="token",e))(zn||{}),uo=(e=>(e.ApplicationJson="application/json",e.MultipartFormData="multipart/form-data",e))(uo||{});const j=class j{static Setup(t,i,o){this.baseUrl=t,this.apiVersion=i,this.apiHost=o}static newWebSocket(t){const i=this.apiHost.replace("http","ws")+"/ws/"+t;return new WebSocket(i)}static download(t,i){const o=j.getDownloadFileName(t,i.headers),r=URL.createObjectURL(i.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(t,i){if(t)return t;const o=i["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(t){const i=Me.Get(we.AccessToken);return t||(t=j.headers),i&&(t[zn.Token]=i),t??j.headers}static returnResponse(t,i){if(i)return t!=null&&t.isBlob?j.download(t.downloadFileName,i):i.data}static async Get(t){return j.returnResponse(t,await xt.Get(j.buildUrl((t==null?void 0:t.query)??""),j.getHeaders(t==null?void 0:t.headers),j.getResponseType(t==null?void 0:t.isBlob)))}static async Post(t){return j.returnResponse(t,await xt.Post(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers),j.getResponseType(t.isBlob),j.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Put(t){return j.returnResponse(t,await xt.Put(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers),j.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Delete(t){return j.returnResponse(t,await xt.Delete(j.buildUrl(t==null?void 0:t.query),j.getHeaders(t==null?void 0:t.headers)))}static async Subscribe(t){const{query:i}=t;return new EventSource(j.buildUrl(i))}static buildUrl(t){const i=t??"";return this.baseUrl+this.apiVersion+i}static getResponseType(t){return t?"blob":"json"}static createFormDataPayload(t,i){const o=new FormData;if(o.append("form",JSON.stringify(t)),i)for(const r of i)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};u(j,"baseUrl",""),u(j,"apiVersion",""),u(j,"apiHost",""),u(j,"headers",{[zn.ContentType]:uo.ApplicationJson});let re=j;const Ml={class:"bg"},Rl=n.defineComponent({__name:"AuthPage",setup(e){const t=async()=>{await x.S.Auth.Login()};return(i,o)=>{const r=n.resolveComponent("AuthForm");return n.openBlock(),n.createElementBlock("div",Ml,[n.createVNode(r,{width:"760px",margin:"0 auto",onSubmit:t})])}}}),v=(e,t)=>{const i=e.__vccOpts||e;for(const[o,r]of t)i[o]=r;return i},Tn=v(Rl,[["__scopeId","data-v-0f012ef7"]]),Al={},$l={style:{"text-align":"center"}};function Nl(e,t){return n.openBlock(),n.createElementBlock("div",$l,t[0]||(t[0]=[n.createElementVNode("h1",null,"Страница не найдена",-1)]))}const Vn=v(Al,[["render",Nl]]),Il=[{path:"/",redirect:"/login"},{path:"/login",component:Tn,meta:{layout:"AuthLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:Vn}],We=class We{static Set(t){this.router=t,this.AddRoutes(Il)}static Get(){return this.router}static AddRoutes(t){t.forEach(i=>{this.Get().addRoute(i)})}static async To(t){await this.Get().push(t)}static async ToHome(){}static async Replace(t){await this.Get().replace(t)}static Id(){return We.GetStringParam("id")}static Slug(){return We.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return We.GetStringQueryParam("qid")}static Route(){return this.Get().currentRoute.value}static RouterPushBlank(t){const i=this.Get().resolve({path:t});window.open(i==null?void 0:i.href,"_blank")}static GetPath(){var i;const t=(i=We.Route())==null?void 0:i.path.split("/");return!t||t.length<=0?"":t[t.length-1]}static async ToAdmin(t){if(!t){await this.Get().push("/admin");return}let i=t;i[0]==="/"&&(i=t.substring(1)),await We.To(`/admin/${i}`)}static GetStringQueryParam(t){return String(this.Route().query[t])}static GetNumberQueryParam(t){return Number(this.Route().query[t]??0)}static GetStringParam(t){return this.Route().params[t]}static SetQueryParam(t,i){const o=new URL(window.location);o.searchParams.set(t,String(i)),history.replaceState(null,"",o)}static Resolve(t){return this.Get().resolve(t)}};u(We,"router");let Ue=We;class Re{constructor(t,i){u(this,"items",n.reactive([]));u(this,"item");u(this,"count",n.ref(0));u(this,"classConstructor");u(this,"url","");this.classConstructor=t,this.item=n.reactive(new this.classConstructor),this.url=i}Set(t){Object.assign(this.item,new this.classConstructor(t))}getUrl(t){return t?`${this.url}/${t}`:this.url}async GetAll(t){let i;const o=re.Get;t&&t.withCache?i=await Vt.TryGet(this.getUrl(),o):i=await o({query:this.getUrl()}),Array.isArray(i)?this.SetAll(i):this.SetAllWithCount(i)}async Get(t){t||(t=Ue.Id()),this.Set(await re.Get({query:this.getUrl(t)}))}async FTSP(t){var a;const o=((t==null?void 0:t.ftsp)??Ci.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await re.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(t){const i=t??this.item,o={payload:i,query:this.getUrl()};return i.getFileInfos&&(o.fileInfos=i.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await re.Post(o)}async CreateAndSet(t){const i=await this.Create(t);this.Set(i)}async CreateMany(t){if(!t)return;const i=[];t.forEach(o=>{i.push(new Promise(()=>this.Create(o)))}),Promise.all(i)}async Update(t){const i=t??this.item,o={query:this.getUrl(`${i.id}`),payload:i};return i.getFileInfos&&(o.fileInfos=i.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await re.Put(o)}async UpdateAndSet(t){const i=await this.Update(t);this.Set(i)}async UpdateAndReset(t){await this.Update(t??this.item),this.Set()}async Remove(t){if(!t){console.warn("BaseStore/Remove. id is undefined");return}await re.Delete({query:this.getUrl(`${t}`)}),this.RemoveItem(t)}async UpdateMany(t){if(t||(t=this.items),!t)return;const i=[];t.forEach(o=>{i.push(new Promise(()=>this.Update(o)))}),Promise.all(i)}SetAll(t){t&&(this.items.splice(0,this.items.length),this.items.push(...t.map(i=>new this.classConstructor(i))))}SetAllWithCount(t){t&&(this.SetAll(t.items),this.count.value=t.count)}RemoveItem(t){const i=this.items.findIndex(o=>o.id===t);this.items.splice(i,1)}AppendToAll(t){if(t){if(Array.isArray(t)){const i=t.map(o=>new this.classConstructor(o));this.items.push(...i);return}this.items.push(new this.classConstructor(t))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){V.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(t){if(t){if(Array.isArray(t)){const i=t.map(o=>new this.classConstructor(o));this.items.unshift(...i);return}this.items.unshift(new this.classConstructor(t))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}let Pl=class extends Re{constructor(){super(Nt,"color-themes")}};const zl=new Pl,Tl=Object.freeze(Object.defineProperty({__proto__:null,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Js,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:zl},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var be=(e=>(e.Login="login",e.Register="register",e.Restore="restore",e.Refresh="refresh",e))(be||{});class Xe{constructor(t,i,o,r){u(this,"text","Сохранить");u(this,"type",he.Success);u(this,"condition",!0);u(this,"action");u(this,"id","button");u(this,"disabled",!1);this.text=t,this.type=o,this.action=i,r!==void 0&&(this.condition=r)}static Primary(t,i,o){return new Xe(t,i,he.Primary,o)}static Success(t,i,o){return new Xe(t,i,he.Success,o)}static Warning(t,i,o){return new Xe(t,i,he.Warning,o)}static Error(t,i,o){return new Xe(t,i,he.Error,o)}}class ho extends Xe{constructor(){super(...arguments);u(this,"id","auth-button");u(this,"status",be.Login);u(this,"submit",!1)}GetStatus(){return this.status}}let fo=class extends ho{constructor(){super(...arguments);u(this,"id","auth-button-login");u(this,"text","Войти");u(this,"isSubmit",!1);u(this,"disabled",!1)}};class mo extends ho{constructor(){super(...arguments);u(this,"id","auth-button-register");u(this,"text","Зарегистрироваться");u(this,"isSubmit",!1);u(this,"disabled",!1)}}class po{constructor(){u(this,"value","");u(this,"label","");u(this,"placeholder","");u(this,"validator")}Validate(){return this.validator?(this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}class Ln extends po{constructor(){super(...arguments);u(this,"method");u(this,"id","field-auth");u(this,"name","")}}var jt=(e=>(e.Login="login",e.Email="email",e.Phone="phone",e.VK="vk",e.ESIA="esia",e))(jt||{});const Vl=/\S+@\S+\.\S+/;class Ll{constructor(){u(this,"errors",[])}validate(t){return(t===""||!t)&&this.errors.push("Введите email"),Vl.test(t)||this.errors.push("Некорректный email"),this.errors}}class Dn extends Ln{constructor(){super(...arguments);u(this,"id","field-auth-email");u(this,"label","Email");u(this,"name","email");u(this,"placeholder","Введите email");u(this,"validator",new Ll);u(this,"method",jt.Email)}}class Dl{constructor(){u(this,"errors",[]);u(this,"length",6)}validate(t){return t===""||!t?(this.errors.push("Введите пароль"),this.errors):(t.length<this.length&&this.errors.push("Пароль недостаточной длины"),this.errors)}}class Fn extends Ln{constructor(){super(...arguments);u(this,"label","Пароль");u(this,"validator",new Dl);u(this,"name","password");u(this,"placeholder","Введите пароль");u(this,"id","field-auth-password")}}class Fl extends Ln{constructor(){super(...arguments);u(this,"label","Повторите пароль");u(this,"id","field-auth-password-repeat")}}const Ol={allowRestore:!1,[be.Login]:{methods:[jt.Email],title:"Вход в систему",action:"login",buttons:[new fo,new mo],fields:[new Dn,new Fn],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[be.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new mo,new fo],fields:[new Dn,new Fn,new Fl],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[be.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[],fields:[new Dn]},[be.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[],fields:[new Fn]}};let ql=class{constructor(){u(this,"settings",Ol);u(this,"status",be.Login);u(this,"selectedMethod",jt.Email)}async Block(t){await t()}GetValues(){const t=this.GetFields(),i=new Map;return t.forEach(o=>{o.value&&i.set(o.name,o.value)}),Object.fromEntries(i)}Validate(){return[]}GetFields(){return this.GetCurSet().fields.filter(t=>!t.method||t.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Status(){return this.status}get Settings(){return this.settings}GetCurSet(){return this.settings[this.status]}IsLogin(){return this.status===be.Login}IsRegister(){return this.status===be.Register}IsRestore(){return this.status===be.Restore}IsRefresh(){return this.status===be.Refresh}SetStatus(t){this.status=t}GetTitle(){return this.GetCurSet().title}GetButtons(){const t=this.GetCurSet().buttons;return t.forEach(i=>{i.submit=!1}),t[0].submit=!0,t}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(t=>t.Reset())}Reset(){this.status=be.Login}};class Hl{constructor(){u(this,"visible",!1);u(this,"closable",!1)}IsClosable(){return this.closable}IsVisible(){return this.visible}Close(){this.visible=!1}Open(t){t&&(this.closable=!0),this.visible=!0}}class Ul{set(t){this.setAccessToken(t.accessToken),this.setRefreshToken(t.refreshToken)}getAccessToken(){return Me.Get(we.AccessToken)}getRefreshToken(){return Me.Get(we.RefreshToken)}setAccessToken(t){Me.Set(we.AccessToken,t)}setRefreshToken(t){Me.Set(we.RefreshToken,t)}reset(){Me.Remove(we.AccessToken),Me.Remove(we.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class _l{constructor(){u(this,"user");u(this,"userConstructor")}AssignTo(t){t.user=this.get()}setUserConstructor(t){this.userConstructor=t}get(){if(this.userConstructor)return this.user=new this.userConstructor(Me.Get(we.User)),this.user}set(t){this.userConstructor&&(this.user=new this.userConstructor(t),Me.Set(we.User,this.user))}reset(){this.user=void 0,Me.Remove(we.User)}actualize(){const t=Me.Get(we.User);t&&this.set(t)}}class Wl{constructor(){u(this,"isAuth",!1);u(this,"user",new _l);u(this,"tokens",new Ul);u(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(t){this.user.setUserConstructor(t)}SetState(t){this.user.set(t.user),this.tokens.set(t.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){vt.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}class Gl{constructor(){u(this,"form",new ql);u(this,"status",new Wl);u(this,"modal",new Hl)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const jl=new Gl;class Bt{constructor(t){u(this,"id");u(this,"ratio",0);u(this,"src","");u(this,"store","");V.BuildClass(this,t)}static CreateCropper(t,i,o){const r=new Bt;return r.src=t,r.id=o,i&&(r.ratio=i),r}}class Ye{constructor(t){u(this,"id");u(this,"address");u(this,"description");u(this,"contactId");V.BuildClass(this,t)}static Create(){const t=new Ye;return t.id=ve.UUID(),t}}class On{static Setup(t){this.staticUrl=t}static get StaticUrl(){return this.staticUrl}}u(On,"staticUrl","");class rt{constructor(t){u(this,"name","");u(this,"url","");u(this,"src","");u(this,"raw");u(this,"blob");u(this,"file");u(this,"id");u(this,"originalName","");u(this,"fileSystemPath","");V.BuildClass(this,t)}getFileUrl(){const t=this.url?this.url:`${On.StaticUrl}/${this.fileSystemPath}`;return new URL(t,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ee&&Ee.tagName.toUpperCase()==="SCRIPT"&&Ee.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(t,i){const o=new rt;return o.id=i??ve.UUID(),o.originalName=t.name,o.file=t.blob,o.fileSystemPath=ve.UUID(),o}uploadNewFile(t){this.id||(this.id=ve.UUID()),this.originalName=t.name,this.file=t.blob,this.fileSystemPath=ve.UUID()}setFile(t){this.file=t,this.url=t.src}uploadAndSetFile(t){this.uploadNewFile(t),this.setFile(t),this.url=t.url}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(t,i){if(t.target){let o="";return i&&(o=`@/assets/img/${i}`),new URL(o,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ee&&Ee.tagName.toUpperCase()==="SCRIPT"&&Ee.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(t){const i=t.split(".");return i[i.length-1]}}class go{constructor(t){u(this,"id");u(this,"name","");u(this,"surname","");u(this,"patronymic","");u(this,"isMale",!0);u(this,"dateBirth",new Date);u(this,"contactId");u(this,"slug","");u(this,"postIndex","");u(this,"address","");u(this,"editNameMode",!1);V.BuildClass(this,t)}setEditNameMode(t){this.editNameMode=t}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(t){return t?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=te.Capitalize(this.name),this.surname=te.Capitalize(this.surname),this.patronymic=te.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(t){this.surname=t.surname,this.name=t.name,this.patronymic=t.patronymic}}class Qe{constructor(t){u(this,"id");u(this,"number");u(this,"description");u(this,"contactId");V.BuildClass(this,t)}static Create(){const t=new Qe;return t.id=ve.UUID(),t}}class Zt{constructor(t){u(this,"id");u(this,"address");u(this,"description");V.BuildClass(this,t)}}class qn{constructor(t){u(this,"id");u(this,"address");u(this,"description");V.BuildClass(this,t)}}let Zl=(Oe=class{},u(Oe,"Phone",Qe),u(Oe,"FileInfo",rt),u(Oe,"PostAddress",Zt),u(Oe,"Website",qn),u(Oe,"Email",Ye),u(Oe,"Human",go),u(Oe,"Cropper",Bt),Oe);function Jl(e,t){e=="left"&&t.next(),e=="right"&&t.prev()}const Xl=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Yl{static GetRandColor(t){return qe.GetRandEL(t??Xl)}}function yo(e,t){const i=[],o=t||xe.Asc,r=o===xe.Asc?xe.Desc:xe.Asc;return Object.values(e).forEach(s=>{i.push(s(o)),i.push(s(r))}),i.length>0&&!i.some(s=>s.default)&&(i[0].default=!0),t&&i.forEach(s=>{s.default&&(s.default=s.order===t)}),i}let Ql=class{constructor(){u(this,"startHour",9);u(this,"endHour",19);u(this,"timelinePxHeight",50);u(this,"timelineStep",kt.FiveMinutes);u(this,"activeTime","");u(this,"activeObjectId","");u(this,"dragged",!1);u(this,"draggedStartTime","");u(this,"draggedEndTime","");u(this,"timelines",Gt[kt.FiveMinutes])}startDrag(t,i){this.draggedStartTime=t,this.draggedEndTime=i,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=Gt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return qe.GenerateNumsRange(this.startHour,this.endHour)}};const Hn=e=>e===8||e===46,Kl=e=>e>46&&e<58,ec=e=>e>34&&e<41,tc=e=>e+".",nc=(e,t,i)=>{Hn(t)||ec(t)||(!Kl(t)||i>9)&&e.preventDefault()};function ic(e,t){if(t>8){let i=e.substring(0,2).replace(".","1");Number(i)>31&&(i="31");let o=e.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=e.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),e=i+"."+o+"."+r}return e}function oc(e){const t=e.keyCode;let i=e.srcElement.value;const o=i.length;nc(e,t,o),!Hn(t)&&(o===2||o===5)&&(i=tc(i));const r=e.srcElement.value+String.fromCharCode(e.which);if(Hn(t)){e.srcElement.value=i;return}i.length===0&&Number(r)>3&&(i="3",e.preventDefault()),i.length===1&&Number(r)>31&&(i="31",e.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(i=i.substring(0,3)+"12",e.preventDefault()),i=ic(i,o),e.srcElement.value=i}const rc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],sc="ru-RU";class Ve{constructor(){u(this,"locale","ru-RU")}static Format(t,i){if(!t)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return i&&(o.year=i.year||i.year===void 0?i.year:o.year,o.month=i.month||i.month===void 0?i.month:o.month,o.day=i.day||i.day===void 0?i.day:o.day,o.hour=i.hour??o.hour,o.minute=i.minute??o.minute),Intl.DateTimeFormat(sc,o).format(new Date(t))}static FromRuStr(t){const i=t.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetPeriod(t,i,o){return`${this.Format(t,o)}-${this.Format(i,o)}`}static GetShortDayName(t){return t?rc[t.getDay()]:""}static GetCurrentWeekPeriod(t){const i=new Date,o=new Date(i.getFullYear(),i.getMonth(),i.getDate()-i.getDay()+1),r=new Date(i.getFullYear(),i.getMonth(),o.getDate()+7);return this.GetPeriod(o,r,t||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(t,i){const o=new Date,r=new Date,s=Ve.SplitHourTime(t),a=Ve.SplitHourTime(i);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(t){const i=Ve.SplitHourTime(t);return i[0]*60+i[1]}static SplitHourTime(t){const i=t.split(":");return[Number(i[0]),Number(i[1])]}static AddMinutesToHM(t,i){const o=new Date,r=Ve.SplitHourTime(t);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+i*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}static GetMonthsDiff(t,i){return i.getMonth()-t.getMonth()+12*(i.getFullYear()-t.getFullYear())}static StringToDate(t){const i=t.split(".");return new Date(`${i[2]}-${i[1]}-${i[0]}`)}static GetDateOrToday(t){return t?t.date:new Date}static InPeriod(t,i,o){return new Date(t)>=new Date(i)&&new Date(t)<=new Date(o)}static GetDatesFromPeriod(t,i){const o=[new Date(t)];let r=t;for(;r<=i;)r=Ve.AddDays(r,1),o.push(r);return o}static AddDays(t,i){const o=new Date(t);return o.setDate(o.getDate()+i),o}static Eq(t,i){return t.getTime()===i.getTime()}}class ac{constructor(){u(this,"dragged",!1);u(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(t){this.dragged=!0,t&&t.dataTransfer&&t.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class lc{static Get(t){const i=t.split(".");return i[i.length-1]}}const cc=(()=>{function e(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function t(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function i(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){e(s,[a]);return}const l=c.split(",");l.push(a),e(s,l)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const l=c.split(",").filter(d=>d!==a);e(s,l)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:i,removeFromFavourite:o,setFavourite:e,isFavourite:t,clearFavourite:r}})();/*!
20
20
  * vue-router v4.4.5
21
21
  * (c) 2024 Eduardo San Martin Morote
22
22
  * @license MIT
23
- */function yo(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}var wo;(function(e){e.pop="pop",e.push="push"})(wo||(wo={}));var bo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(bo||(bo={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Co;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Co||(Co={}));const rc=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function sc(e,t,i){const o=()=>{e[t].delete(i)};n.onUnmounted(o),n.onDeactivated(o),n.onActivated(()=>{e[t].add(i)}),e[t].add(i)}function ac(e){if(process.env.NODE_ENV!=="production"&&!n.getCurrentInstance()){yo("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const t=n.inject(rc,{}).value;if(!t){process.env.NODE_ENV!=="production"&&yo("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}sc(t,"leaveGuards",e)}class lc{constructor(){u(this,"list",[]);u(this,"defaultSortModel");u(this,"changeFlag",!1)}Set(t){this.Reset(),t&&(Array.isArray(t)?this.list=t:this.list=go(t),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(t=>t.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const $e=new lc;function cc(){const e=n.ref(!1),t=n.ref(!1);return{confirmLeave:e,saveButtonClick:t,beforeWindowUnload:s=>{e.value&&s.preventDefault()},formUpdated:()=>{e.value=!0},showConfirmModal:(s,a)=>{e.value&&!t.value?s():a()}}}const dc=(()=>{const e=(s,a)=>n.onBeforeMount(async()=>{var c;x.FTSP.Get().reset(),$e.Set(a==null?void 0:a.sortsLib),x.FTSP.Get().setSortModel($e.GetDefault()),$e.Set(a==null?void 0:a.sortsLib),x.FTSP.Get().setSortModel($e.GetDefault()),x.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:t,showConfirmModal:i}=cc(),o=s=>ac((a,c,l)=>{i((s||r)(),l)}),r=s=>async()=>{t.value=!0;try{s&&await s(),x.UI.Notify.Success("Сохранено")}catch(a){x.UI.Notify.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:e,onBeforeRouteLeave:o,submit:r}})();function So(e,t){const i=[];if(e)for(let o=0;o<Math.ceil(e.length/t);o++)i[o]=e.slice(o*t,o*t+t);return i}class Hn{constructor(){u(this,"items",[]);u(this,"idx",0);u(this,"key","")}preSelect(){const t=Ue.GetStringQueryParam(this.key);if(!t||t==="undefined"){this.Select(0);return}const i=this.items.findIndex(o=>o.slug===t);i>-1&&this.Select(i)}static Create(t,i){const o=new Hn;return o.key=t,o.items=i,o.items.length&&o.preSelect(),o}Select(t){if(this.items.length){if(t===void 0)return this.preSelect();this.idx=t,Ue.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const dn=class dn{static Format(t){let i=t;if(!i)t=i;else{(i[0]==="7"||i[0]==="8")&&i.length!==1&&(i=i.slice(1));const o=i.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:t="";break;case(r===1&&i.length===1&&o==="7"):case(r===1&&i.length===1&&o==="8"):t="+7 (";break;case r<4:t=`+7 (${o}`;break;case r<7:t=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:t=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:t=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return t}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};u(dn,"validatePhone",(t,i,o)=>{dn.getPhoneRegExp().test(i)||!i?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let Un=dn;class uc{static Count(t){const i=t.filter(s=>s.rating!==0);let o=0;i.forEach(s=>o=o+s.rating);const r=o/i.length;return isNaN(r)?0:Number((o/i.length).toFixed(2))}}class hc{static async Auth(t){t&&t()}static Dev(){}}class fc{constructor(){u(this,"startHour",9);u(this,"startHM",`${this.startHour}:00`);u(this,"endHour",19);u(this,"endHM",`${this.endHour}:00`);u(this,"timelinePxHeight",50);u(this,"timelineStep",pt.FiveMinutes);u(this,"timelines",It[pt.FiveMinutes])}periodIsCorrect(t,i){return q.GtOrEq(t,this.startHM)&&q.GtOrEq(this.endHM,i)}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=It[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return qe.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(t,i,o,r){return r.filter(s=>s.id!==o).every(s=>!q.PeriodsIntersects(t,i,s.startTime,s.endTime))}sortByStartTime(t){t.sort((i,o)=>q.HMtoM(i.startTime)-q.HMtoM(o.startTime))}}const mc=-68;function pc(e,t){if(!e){document.body.scrollTo({top:0,behavior:"smooth"});return}const i=document.querySelector(e),o=t??mc;let r=0;i&&(r=i.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class gc{static Sort(t){t.forEach((i,o)=>i.order=o)}}function yc(e,t){let i=!0;return e.value.validate(o=>(o||(i=!1),i)),i}const wc=e=>new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));const i=new MutationObserver(()=>{document.querySelector(e)&&(i.disconnect(),t(document.querySelector(e)))});i.observe(document.body,{childList:!0,subtree:!0})});class Zt{constructor(t){u(this,"id");u(this,"message","");u(this,"userName");u(this,"createdOn",new Date);u(this,"chatId");u(this,"type","message");V.BuildClass(this,t)}static Create(t,i,o,r){const s=new Zt;return s.id=tt(),s.chatId=t,s.message=o,s.userName=r,s}static CreatePingMessage(){const t=new Zt;return t.type="ping",t.id=tt(),t}isMessage(){return this.type==="message"||this.type===""}}const bc="";class Cc{constructor(t="",i="",o="set"){u(this,"client");u(this,"endpoint","");u(this,"query","");u(this,"period",2e4);V.BuildClass(this,{endpoint:t,query:i,mutation:o}),this.connect(),this.ping()}send(t){!this.client||this.client.readyState!==1||this.client.send(t)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Zt.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=t=>{t.data})}buildUrl(){const t=`ws/${this.endpoint}/${this.query}`;return new URL(t,bc.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}let Sc=(H=class{},u(H,"Arrays",qe),u(H,"Axios",Bt),u(H,"BaseStore",Ne),u(H,"Cache",jt),u(H,"Classes",V),u(H,"CarouselSwipe",Wl),u(H,"Color",Gl),u(H,"CreateSortModels",go),u(H,"Cursor",jl),u(H,"DateMask",Kl),u(H,"Dates",Ve),u(H,"Dragger",nc),u(H,"Extension",ic),u(H,"Favourite",oc),u(H,"Hooks",dc),u(H,"HttpClient",re),u(H,"Id",xe),u(H,"MakeCarousel",So),u(H,"Period",gn),u(H,"PhoneService",Un),u(H,"Rating",uc),u(H,"Router",Ue),u(H,"RouterGuard",hc),u(H,"Scheduler",fc),u(H,"Scroll",pc),u(H,"Sorter",gc),u(H,"Static",wn),u(H,"Strings",te),u(H,"Time",q),u(H,"Timer",gt),u(H,"Token",xt),u(H,"Menus",Hn),u(H,"validate",yc),u(H,"WaitElement",wc),u(H,"WebSocketClient",Cc),H);class kc{constructor(){u(this,"limit",25);u(this,"count",0);u(this,"curPage",1);u(this,"storeModule","")}setCurPage(t){this.curPage=t}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Ec=new kc;let vc=class{async Login(t){const i=t??x.Auth.Form.GetValues(),o=await re.Post({query:"auth/login",payload:i});if(!o)throw x.UI.Notify.Error("Ошибка авторизации"),"Ошибка авторизации";x.Auth.Status.SetState(o)}async LoginAs(t){if(!await re.Post({query:"auth/login-as",payload:{email:t}})){x.UI.Notify.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await re.Put({query:"auth/password-change"})}async RefreshToken(){await re.Post({query:"auth/refresh-token",payload:{refreshToken:xt.getRefreshToken()}})}async CheckUuid(t){await re.Get({query:`auth/check-uuid/${t.userId}/${t.uniqueId}`})}};const xc=new vc;var Bc=Object.defineProperty,Jt=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Bc(t,i,r),r};const Mt=class js{constructor(t){u(this,"id");u(this,"description","");u(this,"time","");u(this,"latitude","");u(this,"longitude","");u(this,"emails",[]);u(this,"postAddresses",[new zt]);u(this,"phones",[]);u(this,"websites",[]);V.BuildClass(this,t)}addEmail(){const t=Ze.Create();return t.contactId=this.id,this.emails.push(t),t}addPhone(){const t=Je.Create();return t.contactId=this.id,this.phones.push(t),t}static Create(){const t=new js;return t.id=xe.UUID(),t}removeEmail(t){V.RemoveFromClassById(t,this.emails)}removePhone(t){V.RemoveFromClassById(t,this.phones)}addPostAddress(){this.postAddresses.push(new zt)}addWebsite(){this.websites.push(new bn)}pushFirst(){this.emails.length||this.emails.push(new Ze),this.phones.length||this.phones.push(new Je)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(t){this.description=t}updateTime(t){this.time=t}updateLatitude(t){this.latitude=t}updateLongitutde(t){this.longitude=t}};Jt([V.GetClassConstructor(Ze)],Mt.prototype,"emails"),Jt([V.GetClassConstructor(zt)],Mt.prototype,"postAddresses"),Jt([V.GetClassConstructor(Je)],Mt.prototype,"phones"),Jt([V.GetClassConstructor(bn)],Mt.prototype,"websites");let Mc=Mt,Rc=class extends Ne{constructor(){super(Mc,"contacts")}};const Ac=new Rc;let Nc=class{constructor(){u(this,"cropper",new wt)}Open(t){this.cropper=t}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const $c=new Nc;let Ic=class extends Ne{constructor(){super(Ze,"emails")}};const Pc=new Ic;let zc=class extends Ne{constructor(){super(nt,"file-infos")}};const Tc=new zc;class Wn{constructor(t){u(this,"id");u(this,"ftsp");u(this,"name","");V.BuildClass(this,t)}static Create(t){const i=new Wn;return i.id=xe.UUID(),i.ftsp=JSON.stringify(t),i}}let Vc=class extends Ne{constructor(){super(Wn,"ftsp-presets")}};const Lc=new Vc;let Dc=class extends Ne{constructor(){super(Bi,"humans")}};const Fc=new Dc;let Oc=class extends Ne{constructor(){super(Je,"phones")}};const qc=new Oc;class Hc{constructor(t){u(this,"id");u(this,"nameRus","");V.BuildClass(this,t)}}var Uc=Object.defineProperty,Wc=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Uc(t,i,r),r};class ko{constructor(t){u(this,"id");u(this,"nameRus","");u(this,"fields",[]);V.BuildClass(this,t)}}Wc([V.GetClassConstructor(Hc)],ko.prototype,"fields");let _c=class extends Ne{constructor(){super(ko,"schemas")}};const Gc=new _c;class Eo{constructor(t){u(this,"id","");u(this,"value","");u(this,"label","");u(this,"key","");u(this,"description","");u(this,"route","");u(this,"searchElementMetas",[]);V.BuildClass(this,t)}}class jc{constructor(t){u(this,"id");u(this,"name","");u(this,"label","");V.BuildClass(this,t)}}var Zc=Object.defineProperty,vo=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Zc(t,i,r),r};class st{constructor(t){u(this,"id");u(this,"key","");u(this,"label","");u(this,"order",0);u(this,"route","");u(this,"table","");u(this,"active",!0);u(this,"searchColumn","");u(this,"descriptionColumn","");u(this,"labelColumn","");u(this,"valueColumn","");u(this,"options",[]);u(this,"searchGroupMetaColumns",[]);V.BuildClass(this,t)}}vo([V.GetClassConstructor(Eo)],st.prototype,"options"),vo([V.GetClassConstructor(jc)],st.prototype,"searchGroupMetaColumns");class _n{constructor(t){u(this,"query","");u(this,"key","");u(this,"params","");u(this,"suggester",!1);u(this,"mustBeTranslated",!0);u(this,"options",[]);u(this,"searchGroupId","");u(this,"searchGroups",[]);u(this,"searchGroup",new st);u(this,"searchObjects",[]);u(this,"pagination",new Tt);u(this,"count",0);t&&(this.query=t.query,t.searchGroups&&(this.searchGroups=t.searchGroups.map(i=>new st(i))),t.searchGroup&&(this.searchGroup=new st(t.searchGroup)),t.options&&(this.options=t.options.map(i=>new Eo(i))),this.count=t.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(t){const i=this.searchGroups.find(o=>o.id===t);i?this.searchGroup=i:this.searchGroup=new st}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ue.Route().query.groupId)}setQuery(){const t=Ue.Route().query.query;t&&(this.query=t)}}let Jc=class{constructor(){u(this,"isSearchDrawerOpen",n.ref(!1));u(this,"searchModel",n.reactive(new _n));u(this,"searchGroups",n.reactive([]));u(this,"count",0)}async Search(t){const i=await re.Get({query:`?key=${t.key}&query=${t.query}`});i&&i.searchGroup&&i.searchGroup.options.forEach(o=>{t.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(t){this.SetSearchModel(await re.Get({query:`/main?searchModel=${t.toUrl()}`}))}async Full(t){t.options=[],t.searchGroups.forEach(o=>{o.options=[]});const i=await re.Get({query:`main?searchModel=${t.toUrl()}`});this.SetSearchModel(i)}ToggleDrawer(t){this.isSearchDrawerOpen.value=t,this.searchModel=new _n}SetSearchModel(t){t&&(this.searchModel=new _n(t))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const Xc=new Jc;class Gn{constructor(t){u(this,"id");u(this,"login","");u(this,"email","");u(this,"password","");V.BuildClass(this,t)}static Create(){const t=new Gn;return t.id=xe.UUID(),t}}let Yc=class extends Ne{constructor(){super(Gn,"users-accounts")}};const Qc=new Yc;var xo=(e=>(e.simple="simple",e.oneToMany="oneToMany",e.manyToMany="manyToMany",e))(xo||{}),ce=(e=>(e.String="string",e.Text="text",e.Number="number",e.Date="date",e.DateTime="dateTime",e.Radio="radio",e.Set="set",e.Boolean="boolean",e.Files="files",e.File="file",e.MatrixRadio="matrixRadio",e.MatrixSet="matrixSet",e))(ce||{});class Kc{constructor(t){u(this,"id");u(this,"name",ce.String);u(this,"valueRelation",xo.simple);V.BuildClass(this,t)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===ce.Radio)return"RadioProp";if(this.name===ce.Set)return"SetProp";if(this.name===ce.Number)return"NumberProp";if(this.name===ce.String)return"StringProp"}}let ed=class extends Ne{constructor(){super(Kc,"value-types")}};const td=new ed;let nd=(me=class{},u(me,"Auth",xc),u(me,"Contacts",Ac),u(me,"Cropper",$c),u(me,"Emails",Pc),u(me,"FileInfos",Tc),u(me,"FTSPPresets",Lc),u(me,"Humans",Fc),u(me,"Phones",qc),u(me,"Schemas",Gc),u(me,"UserAccounts",Qc),u(me,"ValueTypes",td),u(me,"Search",Xc),me);class id{constructor(){u(this,"title","");u(this,"buttons",[])}Set(t="",i){typeof t=="function"?this.title=t():typeof t=="string"?this.title=t:this.title=t.value,this.buttons=i}}const od=new id;class rd{constructor(){u(this,"menu",[]);u(this,"path","");u(this,"isOpen",!0);u(this,"filterString","")}Set(t){this.menu=t}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(t=>{var i;return te.SearchIn(t.name,this.filterString)||((i=t.children)==null?void 0:i.some(o=>te.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(t){this.path=t}GetPath(){return this.path}SetFilter(t){this.filterString=t}GetChildren(t){var i;return this.filterString?(i=t.children)==null?void 0:i.filter(o=>te.SearchIn(o.name,this.filterString)):t.children}}const sd=new rd;class ad{constructor(){u(this,"Menu",n.reactive(sd));u(this,"Head",n.reactive(od))}}const ld=new ad;class cd extends Ci{constructor(){super(...arguments);u(this,"confirmButtonText","Да");u(this,"cancelButtonText","Нет");u(this,"resolve");u(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(i){return super.show(),typeof i!="string"&&(this.confirmButtonText=i.confirmButtonText,this.cancelButtonText=i.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const dd=new cd;class ud extends bi{Show(){super.show()}Hide(){super.hide()}}const hd=new ud;class Ke{}u(Ke,"Admin",ld),u(Ke,"Dialog",dd),u(Ke,"Loading",hd),u(Ke,"Notify",yt),u(Ke,"Btn",je),u(Ke,"Input",wi);class x{}u(x,"Auth",n.reactive(sa)),u(x,"UI",n.reactive(Ke)),u(x,"Paginator",n.reactive(Ec)),u(x,"FTSP",Ai),u(x,"S",nd),u(x,"H",Sc),u(x,"C",da);const fd={key:0,class:"mainblock"},md={class:"mainblock-right"},pd={class:"title"},gd={class:"body"},Bo=v(n.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(e){const t=e,i=n.ref(!1),o=n.ref(!0),r=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",fd,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,maxWidth:n.unref(r)?"100%":e.menuWidth,marginLeft:n.unref(r)?"-110%":"0",position:n.unref(r)?"fixed":"relative",top:n.unref(r)?"140px":""})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(r)?"auto":e.menuWidth,boxShadow:n.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!n.unref(o)&&n.unref(r)?"110%":"0",borderTopLeftRadius:n.unref(r)?"0":"",borderBottomLeftRadius:n.unref(r)?"0":""}),onClick:c[0]||(c[0]=l=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",md,[n.createElementVNode("div",pd,[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)]),n.createElementVNode("div",gd,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])])):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-df55a859"]]),yd={class:"mainblock-right"},wd={class:"body"},Mo=v(n.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=n.ref(!1),o=n.ref(!0),r=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",{key:0,class:"mainblock",style:n.normalizeStyle({display:n.unref(r)?"block":"flex"})},[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,display:e.leftWidth!=="0px"?"flex":"none",top:n.unref(r)?"58px":"80px"})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,boxShadow:n.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!n.unref(o)&&n.unref(r),"0"),overflowX:n.unref(r)?"scroll":"hidden",display:n.unref(r)?"flex":"block",background:n.unref(r)?"#ffffff":"",overflowY:n.unref(r)?"hidden":"auto"}),onClick:c[0]||(c[0]=l=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",yd,[n.createElementVNode("div",{class:"title",style:n.normalizeStyle({position:e.titleSticky?"sticky":"relative",top:e.titleSticky?n.unref(r)?"108px":"58px":"0",zIndex:e.titleSticky?"10":""})},[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)],4),n.createElementVNode("div",wd,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),bd={class:"item"},Cd={class:"move"},Sd={class:"item-tools"},kd=["onClick"],Ed={class:"item-description"},vd=["onUpdate:modelValue"],Ro=v(n.defineComponent({__name:"AdminGallery",props:{fileList:{type:Array,reguired:!0,default:()=>[]},fileListForDelete:{type:Array,default:()=>[]},defaultRatio:{type:Number,required:!1,default:1},upload:{type:Boolean,required:!1,default:!0}},emits:["addImage","ratio","remove"],setup(e,{emit:t}){const i=e,o=t,r=async a=>{o("addImage",a)},s=async a=>{x.H.Classes.RemoveFromClassById(a.id,i.fileList,[]),o("remove",a)};return(a,c)=>{const l=n.resolveComponent("UploderImage"),d=n.resolveComponent("draggable"),h=n.resolveComponent("Move");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{class:"groups",list:e.fileList,"item-key":"id",handle:".move",onEnd:c[0]||(c[0]=f=>n.unref(qe).Sort(e.fileList))},{item:n.withCtx(({element:f,index:m})=>[n.createElementVNode("div",bd,[n.createElementVNode("div",Cd,[n.createElementVNode("div",Sd,[c[1]||(c[1]=n.createElementVNode("svg",{class:"icon-move"},[n.createElementVNode("use",{"xlink:href":"#move"})],-1)),n.createElementVNode("button",{class:"admin-del2",onClick:n.withModifiers(g=>s(f),["prevent"])},"Удалить",8,kd)]),n.createVNode(l,{"file-info":f,height:150,"default-ratio":e.defaultRatio,onRemoveFile:g=>("PF"in a?a.PF:n.unref(x)).H.Classes.RemoveFromClassByIndex(m,e.fileList,e.fileListForDelete),onCrop:g=>r(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),n.createElementVNode("div",Ed,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":g=>f.description=g,class:"item-description-form",placeholder:"..."},null,8,vd),[[n.vModelText,f.description]])])])]),_:1},8,["list"]),n.createVNode(h)],64)}}}),[["__scopeId","data-v-25ea092d"]]);var Ao=(e=>(e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e))(Ao||{});const xd="p-button",Bd=n.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:Ao.M,required:!1},type:{type:String,default:de.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(e,{emit:t}){const i=e,o=t,r=()=>{o("click")},s=n.computed(()=>x.H.Strings.JoinSnake(xd,i.skin)),a=n.computed(()=>x.H.Strings.JoinSnake(s.value,i.type)),c=n.computed(()=>x.H.Strings.JoinSnake(s.value,i.size)),l=n.computed(()=>[s.value,a.value,c.value]);return(d,h)=>(n.openBlock(),n.createElementBlock("button",n.mergeProps(d.$attrs,{style:{margin:e.margin,padding:e.padding,maxWidth:e.width,minWidth:e.width,minHeight:e.height,maxHeight:e.height,fontSize:e.fontSize},class:n.unref(l),onClick:n.withModifiers(r,["prevent"])}),[n.renderSlot(d.$slots,"default",{},void 0,!0),n.createTextVNode(" "+n.toDisplayString(e.text),1)],16))}}),No=v(Bd,[["__scopeId","data-v-9df1aec7"]]),Md=["value"],$o=v(n.defineComponent({__name:"PCheckBox",props:n.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=t,r=()=>{o("change",i.value)};return(s,a)=>{const c=n.resolveComponent("IconCheckDefault");return n.openBlock(),n.createElementBlock("div",{id:"some",class:"check-line",style:n.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[n.createElementVNode("label",{class:"check-field__label",style:n.normalizeStyle({fontSize:e.fontSize})},[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>i.value=l),class:"check-field__input",type:"checkbox",value:e.value,onChange:r},null,40,Md),[[n.vModelCheckbox,i.value]]),n.createElementVNode("div",{id:"abc",class:"box",style:n.normalizeStyle({width:e.size,height:e.size,borderRadius:e.borderRadius})},[i.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"check-icon",style:n.normalizeStyle({width:e.size,height:e.size})},[n.createVNode(c,{margin:"auto",size:e.size},null,8,["size"])],4)):n.createCommentVNode("",!0)],4),n.createTextVNode(" "+n.toDisplayString(e.label),1)],4)],4)}}}),[["__scopeId","data-v-c948e235"]]),Rd=["for"],Ad={class:"field"},Nd={class:"left-field"},$d=["id","value","name"],Id={class:"right-field"},Io=v(n.defineComponent({__name:"PDatePicker",props:n.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=a=>{const l=a.target.valueAsDate;l?(o.value=l,i("input",s(o.value))):(o.value=null,i("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,c)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Rd)):n.createCommentVNode("",!0),n.createElementVNode("div",Ad,[n.createElementVNode("div",Nd,[n.renderSlot(a.$slots,"default",{},void 0,!0)]),n.createElementVNode("input",{id:e.label,max:"2100",min:"1900",value:s(o.value),class:"text-field__input",type:"date",name:e.label,onInput:r},null,40,$d),n.createElementVNode("div",Id,[n.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),Po=v(n.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"flex-line",style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,height:e.height,justifyContent:e.justifyContent,background:e.background,alignItems:e.alignItems})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-d9fdfe7d"]]);var Pd=Object.defineProperty,zd=(e,t,i)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Xt=(e,t,i)=>zd(e,typeof t!="symbol"?t+"":t,i);const zo={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},To=(e,t,i)=>e.replaceAll(t,"").replace(i,".").replace("..",".").replace(/[^.\d]/g,""),Vo=(e,t,i)=>{var o;return new Intl.NumberFormat(((o=i.number)==null?void 0:o.locale)??"en",{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:"trunc"})},Td=(e,t=!0,i)=>{var o,r,s,a;const c=((o=i.number)==null?void 0:o.unsigned)==null&&e.startsWith("-")?"-":"",l=((r=i.number)==null?void 0:r.fraction)??0;let d=Vo(0,l,i);const h=d.formatToParts(1000.12),f=((s=h.find(w=>w.type==="group"))==null?void 0:s.value)??" ",m=((a=h.find(w=>w.type==="decimal"))==null?void 0:a.value)??".",g=To(e,f,m);if(Number.isNaN(parseFloat(g)))return c;const p=g.split(".");if(p[1]!=null&&p[1].length>=1){const w=p[1].length<=l?p[1].length:l;d=Vo(w,l,i)}let k=d.format(parseFloat(g));return t?l>0&&g.endsWith(".")&&!g.slice(0,-1).includes(".")&&(k+=m):k=To(k,f,m),c+k};let Vd=class{constructor(t={}){Xt(this,"opts",{}),Xt(this,"memo",new Map);const i={...t};if(i.tokens!=null){i.tokens=i.tokensReplace?{...i.tokens}:{...zo,...i.tokens};for(const o of Object.values(i.tokens))typeof o.pattern=="string"&&(o.pattern=new RegExp(o.pattern))}else i.tokens=zo;Array.isArray(i.mask)&&(i.mask.length>1?i.mask=[...i.mask].sort((o,r)=>o.length-r.length):i.mask=i.mask[0]??""),i.mask===""&&(i.mask=null),this.opts=i}masked(t){return this.process(t,this.findMask(t))}unmasked(t){return this.process(t,this.findMask(t),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(t){const i=this.findMask(t);if(this.opts.mask==null||i==null)return!1;const o=this.process(t,i).length;return typeof this.opts.mask=="string"?o>=this.opts.mask.length:o>=i.length}findMask(t){const i=this.opts.mask;if(i==null)return null;if(typeof i=="string")return i;if(typeof i=="function")return i(t);const o=this.process(t,i.slice(-1).pop()??"",!1);return i.find(r=>this.process(t,r,!1).length>=o.length)??""}escapeMask(t){const i=[],o=[];return t.split("").forEach((r,s)=>{r==="!"&&t[s-1]!=="!"?o.push(s-o.length):i.push(r)}),{mask:i.join(""),escaped:o}}process(t,i,o=!0){if(this.opts.number!=null)return Td(t,o,this.opts);if(i==null)return t;const r=`v=${t},mr=${i},m=${o?1:0}`;if(this.memo.has(r))return this.memo.get(r);const{mask:s,escaped:a}=this.escapeMask(i),c=[],l=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,m=this.isReversed()?()=>w>-1&&M>-1:()=>w<s.length&&M<t.length,g=O=>!this.isReversed()&&O<=f||this.isReversed()&&O>=f;let p,k=-1,w=this.isReversed()?s.length-1:0,M=this.isReversed()?t.length-1:0,F=!1;for(;m();){const O=s.charAt(w),L=l[O],z=(L==null?void 0:L.transform)!=null?L.transform(t.charAt(M)):t.charAt(M);if(!a.includes(w)&&L!=null?(z.match(L.pattern)!=null?(c[h](z),L.repeated?(k===-1?k=w:w===f&&w!==k&&(w=k-d),f===k&&(w-=d)):L.multiple&&(F=!0,w-=d),w+=d):L.multiple?F&&(w+=d,M-=d,F=!1):z===p?p=void 0:L.optional&&(w+=d,M-=d),M+=d):(o&&!this.isEager()&&c[h](O),z===O&&!this.isEager()?M+=d:p=O,this.isEager()||(w+=d)),this.isEager())for(;g(w)&&(l[s.charAt(w)]==null||a.includes(w));){if(o){if(c[h](s.charAt(w)),t.charAt(M)===s.charAt(w)){w+=d,M+=d;continue}}else s.charAt(w)===t.charAt(M)&&(M+=d);w+=d}}return this.memo.set(r,c.join("")),this.memo.get(r)}};const Lo=e=>JSON.parse(e.replaceAll("'",'"')),Ld=(e,t={})=>{const i={...t};e.dataset.maska!=null&&e.dataset.maska!==""&&(i.mask=Dd(e.dataset.maska)),e.dataset.maskaEager!=null&&(i.eager=Yt(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(i.reversed=Yt(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(i.tokensReplace=Yt(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(i.tokens=Fd(e.dataset.maskaTokens));const o={};return e.dataset.maskaNumberLocale!=null&&(o.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(o.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(o.unsigned=Yt(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(o).length>0)&&(i.number=o),i},Yt=e=>e!==""?!!JSON.parse(e):!0,Dd=e=>e.startsWith("[")&&e.endsWith("]")?Lo(e):e,Fd=e=>{if(e.startsWith("{")&&e.endsWith("}"))return Lo(e);const t={};return e.split("|").forEach(i=>{const o=i.split(":");t[o[0]]={pattern:new RegExp(o[1]),optional:o[2]==="optional",multiple:o[2]==="multiple",repeated:o[2]==="repeated"}}),t};let Od=class{constructor(t,i={}){Xt(this,"items",new Map),Xt(this,"onInput",o=>{if(o instanceof CustomEvent&&o.type==="input"&&!o.isTrusted&&!o.bubbles)return;const r=o.target,s=this.items.get(r),a="inputType"in o&&o.inputType.startsWith("delete"),c=s.isEager(),l=a&&c&&s.unmasked(r.value)===""?"":r.value;this.fixCursor(r,a,()=>this.setValue(r,l))}),this.options=i,this.init(this.getInputs(t))}update(t={}){this.options={...t},this.init(Array.from(this.items.keys()))}updateValue(t){t.value!==""&&t.value!==this.processInput(t).masked&&this.setValue(t,t.value)}destroy(){for(const t of this.items.keys())t.removeEventListener("input",this.onInput);this.items.clear()}init(t){const i=this.getOptions(this.options);for(const o of t){this.items.has(o)||o.addEventListener("input",this.onInput,{capture:!0});const r=new Vd(Ld(o,i));this.items.set(o,r),queueMicrotask(()=>this.updateValue(o)),o.selectionStart===null&&r.isEager()&&console.warn("Maska: input of `%s` type is not supported",o.type)}}getInputs(t){return typeof t=="string"?Array.from(document.querySelectorAll(t)):"length"in t?Array.from(t):[t]}getOptions(t){const{onMaska:i,preProcess:o,postProcess:r,...s}=t;return s}fixCursor(t,i,o){const r=t.selectionStart,s=t.value;if(o(),r===null||r===s.length&&!i)return;const a=t.value,c=s.slice(0,r),l=a.slice(0,r),d=this.processInput(t,c).unmasked,h=this.processInput(t,l).unmasked;let f=r;c!==l&&(f+=i?a.length-s.length:d.length-h.length),t.setSelectionRange(f,f)}setValue(t,i){const o=this.processInput(t,i);t.value=o.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(r=>r(o)):this.options.onMaska(o)),t.dispatchEvent(new CustomEvent("maska",{detail:o})),t.dispatchEvent(new CustomEvent("input",{detail:o.masked}))}processInput(t,i){const o=this.items.get(t);let r=i??t.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let s=o.masked(r);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:o.unmasked(r),completed:o.completed(r)}}};const jn=new WeakMap,qd=(e,t)=>{if(e.arg==null||e.instance==null)return;const i="setup"in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:i&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Do=(e,t)=>{var i;const o=e instanceof HTMLInputElement?e:e.querySelector("input");if(o==null||(o==null?void 0:o.type)==="file")return;let r={};if(t.value!=null&&(r=typeof t.value=="string"?{mask:t.value}:{...t.value}),t.arg!=null){const s=a=>{const c=t.modifiers.unmasked?a.unmasked:t.modifiers.completed?a.completed:a.masked;qd(t,c)};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}jn.has(o)?(i=jn.get(o))==null||i.update(r):jn.set(o,new Od(o,r))},Hd=["for"],Ud={class:"left-field"},Wd=["disabled"],_d={class:"right-field"},Fo=v(n.defineComponent({__name:"PInput",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e){const t=n.useModel(e,"modelValue");return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Hd)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",Ud,[n.renderSlot(i.$slots,"default",{},void 0,!0)]),n.withDirectives(n.createElementVNode("input",n.mergeProps(i.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r),class:"text-field__input",style:{color:e.color},disabled:e.disabled,onBlur:o[1]||(o[1]=r=>i.$emit("blur",t.value)),onInput:o[2]||(o[2]=r=>i.$emit("input",t.value))}),null,16,Wd),[[n.vModelDynamic,t.value],[n.unref(Do),e.mask]]),n.createElementVNode("div",_d,[n.renderSlot(i.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-4e2bdb1a"]]),Oo=n.defineComponent({__name:"PInputDate",props:n.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:n.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=Ve.Format(o.value),s=n.ref(r),a=l=>{if(!c(l))return;const d=Ve.FromRuStr(l);o.value=d,i("beforeChange",d),i("change",d)},c=l=>l.length!=10?(s.value=r,x.UI.Notify.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,x.UI.Notify.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,x.UI.Notify.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,x.UI.Notify.Error("Неверный год"),!1):!0;return(l,d)=>{const h=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock("div",{class:"style-container",style:n.normalizeStyle({width:e.width,position:"relative"})},[n.createVNode(h,{modelValue:n.unref(s),"onUpdate:modelValue":d[0]||(d[0]=f=>n.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:e.placeholder,margin:e.margin,label:e.label,onBlur:a,onKeydown:n.withKeys(n.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Gd=v(n.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#minus"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),jd=v(n.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#plus"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),Zd=["for"],Jd={class:"number"},Xd=["disabled"],qo=v(n.defineComponent({__name:"PInputNumber",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:100,required:!1},min:{type:Number,default:-100,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:"0"},modelModifiers:{}}),emits:n.mergeModels(["blur","input","change"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=n.computed(()=>o.value??""),s=e,a=d=>{const h=d.toString();return h.includes(".")?h.split(".")[1].length:0},c=()=>{if(!s.disabled&&parseFloat(r.value)<s.max){const d=a(s.step);o.value=(parseFloat(r.value)+parseFloat(s.step.toString())).toFixed(d),i("change",o)}},l=()=>{if(!s.disabled&&parseFloat(r.value)>s.min){const d=a(s.step);o.value=(parseFloat(r.value)-parseFloat(s.step.toString())).toFixed(d),i("change",o)}};return n.onBeforeMount(()=>{parseFloat(r.value)<s.min&&(o.value=s.min.toString())}),(d,h)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Zd)):n.createCommentVNode("",!0),n.createElementVNode("div",Jd,[n.createElementVNode("button",{class:"number-minus",type:"button",onClick:l},[n.createElementVNode("div",{class:n.normalizeClass(e.disabled||parseFloat(o.value)<=e.min?"icon-minus-disabled":"icon-minus")},[n.createVNode(Gd)],2)]),n.withDirectives(n.createElementVNode("input",n.mergeProps(d.$attrs,{"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),class:"input-field",type:"number",disabled:e.disabled,style:{color:e.disabled?"#828587":e.color,background:e.disabled?"var(--input-readonly-background)":""},onBlur:h[1]||(h[1]=f=>d.$emit("blur",n.unref(r))),onInput:h[2]||(h[2]=f=>d.$emit("input",n.unref(r)))}),null,16,Xd),[[n.vModelText,o.value]]),n.createElementVNode("button",{class:"number-plus",style:n.normalizeStyle({transform:e.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:c},[n.createElementVNode("div",{class:n.normalizeClass(e.disabled||parseFloat(o.value)>=e.max?"icon-plus-disabled":"icon-plus")},[n.createVNode(jd)],2)],4)])],4))}}),[["__scopeId","data-v-b2c5d551"]]),Ho=v(n.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.shift?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle({minWidth:e.widthClosed,maxWidth:e.widthClosed})},null,4)),n.createElementVNode("div",{class:"LS-body",style:n.normalizeStyle({marginLeft:n.unref(r)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute",background:e.background})},[n.createElementVNode("div",{class:"LS-content",style:n.normalizeStyle({width:`calc(${e.widthOpened} - ${e.widthClosed})`})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({width:e.widthClosed}),onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-2af70fa2"]]),Uo=v(n.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("ul",{style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-eaa10a96"]]),Wo=v(n.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("li",{style:n.normalizeStyle({margin:e.margin,padding:e.padding,borderBottom:e.showDivider?"1px solid":"none"})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-93410b0d"]]),Yd=["for"],Qd=["id","name","checked","value"],_o=v(n.defineComponent({__name:"PRadio",props:n.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=t,r=e,s=x.H.Id.GUID(),a=n.computed(()=>i.value===r.value),c=()=>{o("change",r.value)};return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:"radio-line",style:n.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[n.createElementVNode("label",{class:"radio-field__label",for:n.unref(s),style:n.normalizeStyle({fontSize:e.fontSize})},[n.withDirectives(n.createElementVNode("input",{id:n.unref(s),"onUpdate:modelValue":d[0]||(d[0]=h=>i.value=h),name:e.name,checked:n.unref(a),class:"radio-field__input",type:"radio",value:e.value},null,8,Qd),[[n.vModelRadio,i.value]]),n.createElementVNode("div",{class:"box",style:n.normalizeStyle({width:e.size,height:e.size,borderRadius:e.borderRadius}),onClick:c},[i.value===e.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"radio-dot",style:n.normalizeStyle({width:`calc(${e.size} - 50%)`,height:`calc(${e.size} - 50%)`})},null,4)):n.createCommentVNode("",!0)],4),n.createElementVNode("span",{onClick:c},n.toDisplayString(e.label),1)],12,Yd)],4))}}),[["__scopeId","data-v-9607b8d0"]]),Kd={class:"wrapper"},eu={class:"content"},Go=v(n.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",Kd,[n.createElementVNode("div",eu,[n.renderSlot(a.$slots,"content",{},void 0,!0)]),n.createElementVNode("div",{class:"RS-body",style:n.normalizeStyle({marginRight:n.unref(r)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute"})},[n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({width:e.widthClosed}),onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),n.createElementVNode("div",{class:"RS-content",style:n.normalizeStyle({width:`calc(${e.widthOpened} - ${e.widthClosed} - 2px)`,background:e.background})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-e076619a"]]),Qt=v(n.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[n.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cbcad2a0"]]),tu=["for"],nu={class:"field"},iu={class:"left-field"},ou={class:"arrow"},ru={selected:"",hidden:""},su={class:"right-field"},jo=v(n.defineComponent({inheritAttrs:!1,__name:"PSelect",props:n.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["change","clear"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=n.ref(!0),r=t,s=n.ref(!1),a=()=>{o.value=!1,r("change",i.value)},c=()=>{i.value=void 0,r("clear",void 0),r("change",void 0),o.value=!0};return(l,d)=>{const h=n.resolveComponent("IconSelectArrow");return n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,tu)):n.createCommentVNode("",!0),n.createElementVNode("div",nu,[n.createElementVNode("div",iu,[n.renderSlot(l.$slots,"left",{},void 0,!0)]),n.createElementVNode("div",{class:"sl",onMouseover:d[1]||(d[1]=f=>s.value=!0),onMouseleave:d[2]||(d[2]=f=>s.value=!1)},[e.clearable?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,class:"clear",onClick:c},[n.createVNode(Qt,{margin:"0"})],512)),[[n.vShow,n.unref(s)]]):n.createCommentVNode("",!0),n.createElementVNode("div",ou,[n.createVNode(h,{margin:"2px 2px 0 0"})]),n.withDirectives(n.createElementVNode("select",n.mergeProps(l.$attrs,{"onUpdate:modelValue":d[0]||(d[0]=f=>i.value=f),class:"text-field__input",onChange:a}),[n.createElementVNode("option",ru,n.toDisplayString(e.placeholder),1),n.renderSlot(l.$slots,"default",{},void 0,!0)],16),[[n.vModelSelect,i.value]])],32),n.createElementVNode("div",su,[n.renderSlot(l.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-b6231bca"]]),Zo=v(n.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"sticky-block",style:n.normalizeStyle({zIndex:1+e.zIndex,top:e.top,background:e.background,padding:e.padding,boxShadow:e.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-01876330"]]),au=["innerHTML"],lu={key:1},Jo=v(n.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(e){const t=e,i={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight,background:t.background,padding:t.padding,width:t.width,maxWidth:t.width,minWidth:t.minWidth,margin:t.margin,justifyContent:t.justifyContent};return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["string",e.customClass]),style:i,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[e.isHtml?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:e.string},null,8,au)):(n.openBlock(),n.createElementBlock("span",lu,n.toDisplayString(e.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),cu=["for"],du={class:"left-field"},uu={class:"right-field"},Xo=v(n.defineComponent({__name:"PTextarea",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e){const t=n.useModel(e,"modelValue");return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,cu)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",du,[n.renderSlot(i.$slots,"default",{},void 0,!0)]),n.withDirectives(n.createElementVNode("textarea",n.mergeProps(i.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r),class:"text-field__input",style:{color:e.color},onBlur:o[1]||(o[1]=r=>i.$emit("blur",t.value)),onInput:o[2]||(o[2]=r=>i.$emit("input",t.value))}),null,16),[[n.vModelText,t.value],[n.unref(Do),e.mask]]),n.createElementVNode("div",uu,[n.renderSlot(i.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-2a2e858d"]]),hu={class:"top-slider-content"},fu={class:"center"},Yo=v(n.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=n.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(r)?"0":`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`,height:e.sliderOnHeight}),onClick:c[3]||(c[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",hu,[n.createElementVNode("div",fu,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({height:e.sliderOffHeight}),onClick:c[2]||(c[2]=l=>s(!n.unref(r)))},[n.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]),Qo=n.defineComponent({__name:"AuthModal",emits:["submit"],setup(e){const t=()=>{x.Auth.Form.Reset(),x.Auth.Modal.Close()};return(i,o)=>{const r=n.resolveComponent("AuthForm"),s=n.resolveComponent("PModal");return n.openBlock(),n.createBlock(s,{show:("PF"in i?i.PF:n.unref(x)).Auth.Modal.IsVisible(),closable:("PF"in i?i.PF:n.unref(x)).Auth.Modal.IsClosable(),onClose:t},{default:n.withCtx(()=>[n.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>i.$emit("submit"))})]),_:1},8,["show","closable"])}}}),Zn=v(n.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(e){return n.useCssVars(t=>({d143e9f0:e.maxWidth,b9d56180:e.width,"52bd0ff4":e.background,"1795aeac":e.gridGap,"0cfa7c52":e.gridTemplateColumns,"0c6d2a1f":e.gridTemplateRows,a3ccd918:e.margin})),(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["grid-block",e.customClass])},[n.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]);var Le=(e=>(e.None="None",e.Next="Next",e.Prev="Prev",e))(Le||{});const mu={class:"container"},pu={class:"slide-box"},gu={class:"link-number"},yu=["id","onClick"],Ko=v(n.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(e){n.useCssVars(g=>({a8527066:i}));const t=e,i=`${t.animationTime}ms`,o=n.ref(t.startActiveGroupIndex),r=n.ref(Le.None),s=n.ref(So(t.events,t.quantity)),a=n.computed(()=>s.value[o.value]);n.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,l=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,d=g=>{r.value=g,setTimeout(()=>r.value=Le.None,t.animationTime)},h=g=>{g!=o.value&&(d(g<o.value?Le.Prev:Le.Next),setTimeout(()=>o.value=g,t.animationTime/2))},f=()=>{d(Le.Next),setTimeout(c,t.animationTime/2)},m=()=>{d(Le.Prev),setTimeout(l,t.animationTime/2)};return(g,p)=>(n.openBlock(),n.createElementBlock("div",{class:"field",style:n.normalizeStyle({height:e.height,maxHeight:e.maxHeight})},[n.createElementVNode("div",mu,[(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:p[0]||(p[0]=n.withModifiers(k=>m(),["stop"]))},p[2]||(p[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),n.createElementVNode("div",pu,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(a),(k,w)=>(n.openBlock(),n.createElementBlock("div",{key:w,class:n.normalizeClass({animationnext:n.unref(r)===n.unref(Le).Next,animationprev:n.unref(r)===n.unref(Le).Prev})},p[3]||(p[3]=[n.createElementVNode("div",{class:"image"},[n.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:p[1]||(p[1]=n.withModifiers(k=>f(),["stop"]))},p[4]||(p[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),n.createElementVNode("div",gu,[n.createVNode(Zn,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(k,w)=>(n.openBlock(),n.createElementBlock("div",{id:w.toString(),key:w,class:"number",style:n.normalizeStyle({background:w.toString()===n.unref(o).toString()?"#9D9D9D":""}),onClick:n.withModifiers(M=>h(w),["stop"])},n.toDisplayString(w+1),13,yu))),128))]),_:1})])],4))}}),[["__scopeId","data-v-a5d87987"]]),er=n.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.x),s=n.ref(i.y),a=n.computed(()=>r.value+"px"),c=n.computed(()=>s.value+"px"),l=()=>{o("close")};return(d,h)=>{const f=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:"context-window",style:n.normalizeStyle({left:n.unref(a),top:n.unref(c)})},[n.renderSlot(d.$slots,"default")],4)),[[f,l]])}}}),wu={class:"date-range"},tr=v(n.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(e,{emit:t}){const i=e,o=t;n.watch(()=>[i.start,i.end],()=>{i.start||(r.value=void 0),i.end||(s.value=void 0)});const r=n.ref(i.start),s=n.ref(i.end),a=l=>{if(r.value=l,!i.end||l>i.end){x.UI.Notify.Warning("Дата начала больше даты окончания");return}o("update:start",l),o("setStart",l)},c=l=>{if(s.value=l,!i.start||l<i.start){x.UI.Notify.Warning("Дата начала больше даты окончания");return}o("update:end",l),o("setEnd",l)};return(l,d)=>{const h=n.resolveComponent("PInputDate");return n.openBlock(),n.createElementBlock("div",wu,[n.createVNode(h,{"model-value":n.unref(r),"onUpdate:modelValue":d[0]||(d[0]=f=>n.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),d[2]||(d[2]=n.createTextVNode(" - ")),n.createVNode(h,{"model-value":n.unref(s),"onUpdate:modelValue":d[1]||(d[1]=f=>n.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-57443115"]]),bu=n.defineComponent({name:"DateInputRangeV2"}),Cu={class:"date-range"};function Su(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock("div",Cu,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const nr=v(bu,[["render",Su],["__scopeId","data-v-d28c6f33"]]),ku={class:"drop-item"},Eu={key:0,class:"drop-item-list"},ir=v(n.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(e){const t=e,i=n.ref(t.rolledUp),o=async()=>{i.value=!i.value};return(r,s)=>{const a=n.resolveComponent("PString"),c=n.resolveComponent("IconArrowDrop");return n.openBlock(),n.createElementBlock("div",ku,[n.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=l=>o())},[n.createVNode(a,{"font-size":"13px","font-weight":"600",string:e.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),n.createElementVNode("div",{style:n.normalizeStyle({transform:n.unref(i)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[n.createVNode(c,{size:"10px",margin:"0"})],4)]),n.unref(i)?(n.openBlock(),n.createElementBlock("div",Eu,[n.renderSlot(r.$slots,"default",{},void 0,!0)])):n.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),or=v(n.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Ri,required:!0}},emits:["load"],setup(e,{emit:t}){const i=e,o=n.ref(!1),r=t,s=()=>{i.model.setBoolean(o.value),o.value?x.FTSP.Get().setF(i.model):x.FTSP.Get().removeF(i.model),r("load")};return(a,c)=>{const l=n.resolveComponent("PCheckBox");return n.openBlock(),n.createBlock(l,{modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=d=>n.isRef(o)?o.value=d:null),label:e.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-34818d7d"]]),rr=v(n.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const i=t,o=n.ref(void 0),r=async a=>{x.FTSP.Get().replaceF(a,o.value),o.value=a,x.FTSP.Get().p.drop()},s=async a=>{await r(a),i("load")};return(a,c)=>{const l=n.resolveComponent("PString"),d=n.resolveComponent("PButton"),h=n.resolveComponent("GridContainer"),f=n.resolveComponent("InfoItem");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(l,{string:e.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),n.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:n.withCtx(()=>c[0]||(c[0]=[])),default:n.withCtx(()=>[n.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.models,(m,g)=>(n.openBlock(),n.createBlock(d,{key:g,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(n.unref(o)),"toggle-mode":!0,inverse:e.inverse,onClick:p=>s(m.valueEq(n.unref(o))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-a6b6b5f0"]]),vu=["value","label"],sr=v(n.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const i=t,o=x.FTSP.Get(),r=n.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),i("load")};return(c,l)=>{const d=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(d,{modelValue:n.unref(r),"onUpdate:modelValue":l[0]||(l[0]=h=>n.isRef(r)?r.value=h:null),clearable:n.unref(r),placeholder:e.defaultLabel,onChange:a},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.models,(h,f)=>(n.openBlock(),n.createElementBlock("option",{key:f,value:h,label:h.label},null,8,vu))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-f611ee52"]]),ar=v(n.defineComponent({__name:"FTSPPanel",setup(e){return n.onBeforeMount(async()=>{}),(t,i)=>(n.openBlock(),n.createElementBlock("div"))}}),[["__scopeId","data-v-c3fae891"]]),lr=v(n.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"general-block-item",style:n.normalizeStyle({background:e.background,height:e.height,width:e.width,borderColor:e.borderColor,padding:e.padding,margin:e.margin,transform:e.scale&&n.unref(t)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},[n.createElementVNode("div",{class:"green",style:n.normalizeStyle({width:`${e.ready}`})},null,4),n.createElementVNode("div",{class:"general-block-item-title",style:n.normalizeStyle({fontSize:e.fontSize})},[n.renderSlot(i.$slots,"general-item",{},void 0,!0)],4),n.createElementVNode("div",{class:"tools-icon",style:n.normalizeStyle({display:e.withIcon?"flex":"none"})},o[2]||(o[2]=[n.createElementVNode("svg",{class:"icon-del"},[n.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[n.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-1056443d"]]),cr=v(n.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),n.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-94c18208"]]),dr=v(n.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),n.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-d11e6069"]]),ur=v(n.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[n.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ca16a90c"]]),hr=v(n.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-48c8e6e2"]]),fr=v(n.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),n.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-55ea5a5c"]]),mr=v(n.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-99358e0a"]]),pr=v(n.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[n.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-05547f14"]]),gr=v(n.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-131f6ba1"]]),yr=v(n.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-64e76eb7"]]),wr=v(n.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[n.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),n.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-4d8b581f"]]),br=v(n.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-ec3439ce"]]),Cr=v(n.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-cd0d3c21"]]),Sr=v(n.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-98099ad2"]]),kr=v(n.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-053c9917"]]),Er=v(n.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=n.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1798f31d></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1798f31d></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]);function vr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,o)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?vr(Object(i),!0).forEach(function(o){Ce(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):vr(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Ce(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function xu(e,t){if(e==null)return{};var i,o,r=function(a,c){if(a==null)return{};var l,d,h={},f=Object.keys(a);for(d=0;d<f.length;d++)l=f[d],c.indexOf(l)>=0||(h[l]=a[l]);return h}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function et(e){return function(t){if(Array.isArray(t))return Jn(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,i){if(t){if(typeof t=="string")return Jn(t,i);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Jn(t,i)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,o=new Array(t);i<t;i++)o[i]=e[i];return o}var xr,Bu,Kt,Q=(xr=function(e){/*!
23
+ */function wo(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}var bo;(function(e){e.pop="pop",e.push="push"})(bo||(bo={}));var So;(function(e){e.back="back",e.forward="forward",e.unknown=""})(So||(So={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Co;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Co||(Co={}));const dc=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function uc(e,t,i){const o=()=>{e[t].delete(i)};n.onUnmounted(o),n.onDeactivated(o),n.onActivated(()=>{e[t].add(i)}),e[t].add(i)}function hc(e){if(process.env.NODE_ENV!=="production"&&!n.getCurrentInstance()){wo("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const t=n.inject(dc,{}).value;if(!t){process.env.NODE_ENV!=="production"&&wo("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}uc(t,"leaveGuards",e)}class fc{constructor(){u(this,"list",[]);u(this,"defaultSortModel");u(this,"changeFlag",!1)}Set(t){this.Reset(),t&&(Array.isArray(t)?this.list=t:this.list=yo(t),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(t=>t.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const Ne=new fc;function mc(){const e=n.ref(!1),t=n.ref(!1);return{confirmLeave:e,saveButtonClick:t,beforeWindowUnload:s=>{e.value&&s.preventDefault()},formUpdated:()=>{e.value=!0},showConfirmModal:(s,a)=>{e.value&&!t.value?s():a()}}}const pc=(()=>{const e=(s,a)=>n.onBeforeMount(async()=>{var c;x.FTSP.Get().reset(),Ne.Set(a==null?void 0:a.sortsLib),x.FTSP.Get().setSortModel(Ne.GetDefault()),Ne.Set(a==null?void 0:a.sortsLib),x.FTSP.Get().setSortModel(Ne.GetDefault()),x.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:t,showConfirmModal:i}=mc(),o=s=>hc((a,c,l)=>{i((s||r)(),l)}),r=s=>async()=>{t.value=!0;try{s&&await s(),x.UI.Notify.Success("Сохранено")}catch(a){x.UI.Notify.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:e,onBeforeRouteLeave:o,submit:r}})();function ko(e,t){const i=[];if(e)for(let o=0;o<Math.ceil(e.length/t);o++)i[o]=e.slice(o*t,o*t+t);return i}class Un{constructor(){u(this,"items",[]);u(this,"idx",0);u(this,"key","")}preSelect(){const t=Ue.GetStringQueryParam(this.key);if(!t||t==="undefined"){this.Select(0);return}const i=this.items.findIndex(o=>o.slug===t);i>-1&&this.Select(i)}static Create(t,i){const o=new Un;return o.key=t,o.items=i,o.items.length&&o.preSelect(),o}Select(t){if(this.items.length){if(t===void 0)return this.preSelect();this.idx=t,Ue.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const un=class un{static Format(t){let i=t;if(!i)t=i;else{(i[0]==="7"||i[0]==="8")&&i.length!==1&&(i=i.slice(1));const o=i.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:t="";break;case(r===1&&i.length===1&&o==="7"):case(r===1&&i.length===1&&o==="8"):t="+7 (";break;case r<4:t=`+7 (${o}`;break;case r<7:t=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:t=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:t=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return t}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};u(un,"validatePhone",(t,i,o)=>{un.getPhoneRegExp().test(i)||!i?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let _n=un;class gc{static Count(t){const i=t.filter(s=>s.rating!==0);let o=0;i.forEach(s=>o=o+s.rating);const r=o/i.length;return isNaN(r)?0:Number((o/i.length).toFixed(2))}}class yc{static async Auth(t){t&&t()}static Dev(){}}class wc{constructor(){u(this,"startHour",9);u(this,"startHM",`${this.startHour}:00`);u(this,"endHour",19);u(this,"endHM",`${this.endHour}:00`);u(this,"timelinePxHeight",50);u(this,"timelineStep",kt.FiveMinutes);u(this,"timelines",Gt[kt.FiveMinutes])}periodIsCorrect(t,i){return q.GtOrEq(t,this.startHM)&&q.GtOrEq(this.endHM,i)}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=Gt[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return qe.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(t,i,o,r){return r.filter(s=>s.id!==o).every(s=>!q.PeriodsIntersects(t,i,s.startTime,s.endTime))}sortByStartTime(t){t.sort((i,o)=>q.HMtoM(i.startTime)-q.HMtoM(o.startTime))}}const bc=-68;function Sc(e,t){if(!e){document.body.scrollTo({top:0,behavior:"smooth"});return}const i=document.querySelector(e),o=t??bc;let r=0;i&&(r=i.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Cc{static Sort(t){t.forEach((i,o)=>i.order=o)}}function kc(e,t){let i=!0;return e.value.validate(o=>(o||(i=!1),i)),i}const Ec=e=>new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));const i=new MutationObserver(()=>{document.querySelector(e)&&(i.disconnect(),t(document.querySelector(e)))});i.observe(document.body,{childList:!0,subtree:!0})});class Jt{constructor(t){u(this,"id");u(this,"message","");u(this,"userName");u(this,"createdOn",new Date);u(this,"chatId");u(this,"type","message");V.BuildClass(this,t)}static Create(t,i,o,r){const s=new Jt;return s.id=tt(),s.chatId=t,s.message=o,s.userName=r,s}static CreatePingMessage(){const t=new Jt;return t.type="ping",t.id=tt(),t}isMessage(){return this.type==="message"||this.type===""}}const vc="";class xc{constructor(t="",i="",o="set"){u(this,"client");u(this,"endpoint","");u(this,"query","");u(this,"period",2e4);V.BuildClass(this,{endpoint:t,query:i,mutation:o}),this.connect(),this.ping()}send(t){!this.client||this.client.readyState!==1||this.client.send(t)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Jt.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=t=>{t.data})}buildUrl(){const t=`ws/${this.endpoint}/${this.query}`;return new URL(t,vc.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}let Bc=(H=class{},u(H,"Arrays",qe),u(H,"Axios",xt),u(H,"BaseStore",Re),u(H,"Cache",Vt),u(H,"Classes",V),u(H,"CarouselSwipe",Jl),u(H,"Color",Yl),u(H,"CreateSortModels",yo),u(H,"Cursor",Ql),u(H,"DateMask",oc),u(H,"Dates",Ve),u(H,"Dragger",ac),u(H,"Extension",lc),u(H,"Favourite",cc),u(H,"Hooks",pc),u(H,"HttpClient",re),u(H,"Id",ve),u(H,"MakeCarousel",ko),u(H,"Period",Nn),u(H,"PhoneService",_n),u(H,"Rating",gc),u(H,"Router",Ue),u(H,"RouterGuard",yc),u(H,"Scheduler",wc),u(H,"Scroll",Sc),u(H,"Sorter",Cc),u(H,"Static",On),u(H,"Strings",te),u(H,"Time",q),u(H,"Timer",Et),u(H,"Token",Ct),u(H,"Menus",Un),u(H,"validate",kc),u(H,"WaitElement",Ec),u(H,"WebSocketClient",xc),H);class Mc{constructor(){u(this,"limit",25);u(this,"count",0);u(this,"curPage",1);u(this,"storeModule","")}setCurPage(t){this.curPage=t}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Rc=new Mc;let Ac=class{async Login(t){const i=t??x.Auth.Form.GetValues(),o=await re.Post({query:"auth/login",payload:i});if(!o)throw x.UI.Notify.Error("Ошибка авторизации"),"Ошибка авторизации";x.Auth.Status.SetState(o)}async LoginAs(t){if(!await re.Post({query:"auth/login-as",payload:{email:t}})){x.UI.Notify.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await re.Put({query:"auth/password-change"})}async RefreshToken(){await re.Post({query:"auth/refresh-token",payload:{refreshToken:Ct.getRefreshToken()}})}async CheckUuid(t){await re.Get({query:`auth/check-uuid/${t.userId}/${t.uniqueId}`})}};const $c=new Ac;var Nc=Object.defineProperty,Xt=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Nc(t,i,r),r};const Mt=class Zs{constructor(t){u(this,"id");u(this,"description","");u(this,"time","");u(this,"latitude","");u(this,"longitude","");u(this,"emails",[]);u(this,"postAddresses",[new Zt]);u(this,"phones",[]);u(this,"websites",[]);V.BuildClass(this,t)}addEmail(){const t=Ye.Create();return t.contactId=this.id,this.emails.push(t),t}addPhone(){const t=Qe.Create();return t.contactId=this.id,this.phones.push(t),t}static Create(){const t=new Zs;return t.id=ve.UUID(),t}removeEmail(t){V.RemoveFromClassById(t,this.emails)}removePhone(t){V.RemoveFromClassById(t,this.phones)}addPostAddress(){this.postAddresses.push(new Zt)}addWebsite(){this.websites.push(new qn)}pushFirst(){this.emails.length||this.emails.push(new Ye),this.phones.length||this.phones.push(new Qe)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(t){this.description=t}updateTime(t){this.time=t}updateLatitude(t){this.latitude=t}updateLongitutde(t){this.longitude=t}};Xt([V.GetClassConstructor(Ye)],Mt.prototype,"emails"),Xt([V.GetClassConstructor(Zt)],Mt.prototype,"postAddresses"),Xt([V.GetClassConstructor(Qe)],Mt.prototype,"phones"),Xt([V.GetClassConstructor(qn)],Mt.prototype,"websites");let Ic=Mt,Pc=class extends Re{constructor(){super(Ic,"contacts")}};const zc=new Pc;let Tc=class{constructor(){u(this,"cropper",new Bt)}Open(t){this.cropper=t}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const Vc=new Tc;let Lc=class extends Re{constructor(){super(Ye,"emails")}};const Dc=new Lc;let Fc=class extends Re{constructor(){super(rt,"file-infos")}};const Oc=new Fc;class Wn{constructor(t){u(this,"id");u(this,"ftsp");u(this,"name","");V.BuildClass(this,t)}static Create(t){const i=new Wn;return i.id=ve.UUID(),i.ftsp=JSON.stringify(t),i}}let qc=class extends Re{constructor(){super(Wn,"ftsp-presets")}};const Hc=new qc;let Uc=class extends Re{constructor(){super(go,"humans")}};const _c=new Uc;let Wc=class extends Re{constructor(){super(Qe,"phones")}};const Gc=new Wc;class jc{constructor(t){u(this,"id");u(this,"nameRus","");V.BuildClass(this,t)}}var Zc=Object.defineProperty,Jc=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Zc(t,i,r),r};class Eo{constructor(t){u(this,"id");u(this,"nameRus","");u(this,"fields",[]);V.BuildClass(this,t)}}Jc([V.GetClassConstructor(jc)],Eo.prototype,"fields");let Xc=class extends Re{constructor(){super(Eo,"schemas")}};const Yc=new Xc;class vo{constructor(t){u(this,"id","");u(this,"value","");u(this,"label","");u(this,"key","");u(this,"description","");u(this,"route","");u(this,"searchElementMetas",[]);V.BuildClass(this,t)}}class Qc{constructor(t){u(this,"id");u(this,"name","");u(this,"label","");V.BuildClass(this,t)}}var Kc=Object.defineProperty,xo=(e,t,i,o)=>{for(var r=void 0,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=a(t,i,r)||r);return r&&Kc(t,i,r),r};class st{constructor(t){u(this,"id");u(this,"key","");u(this,"label","");u(this,"order",0);u(this,"route","");u(this,"table","");u(this,"active",!0);u(this,"searchColumn","");u(this,"descriptionColumn","");u(this,"labelColumn","");u(this,"valueColumn","");u(this,"options",[]);u(this,"searchGroupMetaColumns",[]);V.BuildClass(this,t)}}xo([V.GetClassConstructor(vo)],st.prototype,"options"),xo([V.GetClassConstructor(Qc)],st.prototype,"searchGroupMetaColumns");class Gn{constructor(t){u(this,"query","");u(this,"key","");u(this,"params","");u(this,"suggester",!1);u(this,"mustBeTranslated",!0);u(this,"options",[]);u(this,"searchGroupId","");u(this,"searchGroups",[]);u(this,"searchGroup",new st);u(this,"searchObjects",[]);u(this,"pagination",new Pt);u(this,"count",0);t&&(this.query=t.query,t.searchGroups&&(this.searchGroups=t.searchGroups.map(i=>new st(i))),t.searchGroup&&(this.searchGroup=new st(t.searchGroup)),t.options&&(this.options=t.options.map(i=>new vo(i))),this.count=t.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(t){const i=this.searchGroups.find(o=>o.id===t);i?this.searchGroup=i:this.searchGroup=new st}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ue.Route().query.groupId)}setQuery(){const t=Ue.Route().query.query;t&&(this.query=t)}}let ed=class{constructor(){u(this,"isSearchDrawerOpen",n.ref(!1));u(this,"searchModel",n.reactive(new Gn));u(this,"searchGroups",n.reactive([]));u(this,"count",0)}async Search(t){const i=await re.Get({query:`?key=${t.key}&query=${t.query}`});i&&i.searchGroup&&i.searchGroup.options.forEach(o=>{t.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(t){this.SetSearchModel(await re.Get({query:`/main?searchModel=${t.toUrl()}`}))}async Full(t){t.options=[],t.searchGroups.forEach(o=>{o.options=[]});const i=await re.Get({query:`main?searchModel=${t.toUrl()}`});this.SetSearchModel(i)}ToggleDrawer(t){this.isSearchDrawerOpen.value=t,this.searchModel=new Gn}SetSearchModel(t){t&&(this.searchModel=new Gn(t))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const td=new ed;class jn{constructor(t){u(this,"id");u(this,"login","");u(this,"email","");u(this,"password","");V.BuildClass(this,t)}static Create(){const t=new jn;return t.id=ve.UUID(),t}}let nd=class extends Re{constructor(){super(jn,"users-accounts")}};const id=new nd;var Bo=(e=>(e.simple="simple",e.oneToMany="oneToMany",e.manyToMany="manyToMany",e))(Bo||{}),ce=(e=>(e.String="string",e.Text="text",e.Number="number",e.Date="date",e.DateTime="dateTime",e.Radio="radio",e.Set="set",e.Boolean="boolean",e.Files="files",e.File="file",e.MatrixRadio="matrixRadio",e.MatrixSet="matrixSet",e))(ce||{});class od{constructor(t){u(this,"id");u(this,"name",ce.String);u(this,"valueRelation",Bo.simple);V.BuildClass(this,t)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===ce.Radio)return"RadioProp";if(this.name===ce.Set)return"SetProp";if(this.name===ce.Number)return"NumberProp";if(this.name===ce.String)return"StringProp"}}let rd=class extends Re{constructor(){super(od,"value-types")}};const sd=new rd;let ad=(me=class{},u(me,"Auth",$c),u(me,"Contacts",zc),u(me,"Cropper",Vc),u(me,"Emails",Dc),u(me,"FileInfos",Oc),u(me,"FTSPPresets",Hc),u(me,"Humans",_c),u(me,"Phones",Gc),u(me,"Schemas",Yc),u(me,"UserAccounts",id),u(me,"ValueTypes",sd),u(me,"Search",td),me);class ld{constructor(){u(this,"title","");u(this,"buttons",[])}Set(t="",i){typeof t=="function"?this.title=t():typeof t=="string"?this.title=t:this.title=t.value,this.buttons=i}}const cd=new ld;class dd{constructor(){u(this,"menu",[]);u(this,"path","");u(this,"isOpen",!0);u(this,"filterString","")}Set(t){this.menu=t}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(t=>{var i;return te.SearchIn(t.name,this.filterString)||((i=t.children)==null?void 0:i.some(o=>te.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(t){this.path=t}GetPath(){return this.path}SetFilter(t){this.filterString=t}GetChildren(t){var i;return this.filterString?(i=t.children)==null?void 0:i.filter(o=>te.SearchIn(o.name,this.filterString)):t.children}}const ud=new dd;class hd{constructor(){u(this,"Menu",n.reactive(ud));u(this,"Head",n.reactive(cd))}}const fd=new hd;class md extends ao{constructor(){super(...arguments);u(this,"confirmButtonText","Да");u(this,"cancelButtonText","Нет");u(this,"resolve");u(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(i){return super.show(),typeof i!="string"&&(this.confirmButtonText=i.confirmButtonText,this.cancelButtonText=i.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const pd=new md;class gd extends so{Show(){super.show()}Hide(){super.hide()}}const yd=new gd;class Ke{}u(Ke,"Admin",fd),u(Ke,"Dialog",pd),u(Ke,"Loading",yd),u(Ke,"Notify",vt),u(Ke,"Btn",Xe),u(Ke,"Input",po);class x{}u(x,"Auth",n.reactive(jl)),u(x,"UI",n.reactive(Ke)),u(x,"Paginator",n.reactive(Rc)),u(x,"FTSP",Ci),u(x,"S",ad),u(x,"H",Bc),u(x,"C",Zl);const wd={key:0,class:"mainblock"},bd={class:"mainblock-right"},Sd={class:"title"},Cd={class:"body"},Mo=v(n.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(e){const t=e,i=n.ref(!1),o=n.ref(!0),r=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",wd,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,maxWidth:n.unref(r)?"100%":e.menuWidth,marginLeft:n.unref(r)?"-110%":"0",position:n.unref(r)?"fixed":"relative",top:n.unref(r)?"140px":""})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(r)?"auto":e.menuWidth,boxShadow:n.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!n.unref(o)&&n.unref(r)?"110%":"0",borderTopLeftRadius:n.unref(r)?"0":"",borderBottomLeftRadius:n.unref(r)?"0":""}),onClick:c[0]||(c[0]=l=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",bd,[n.createElementVNode("div",Sd,[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)]),n.createElementVNode("div",Cd,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])])):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-df55a859"]]),kd={class:"mainblock-right"},Ed={class:"body"},Ro=v(n.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=n.ref(!1),o=n.ref(!0),r=n.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{o.value=!o.value};return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),i.value=!0}),(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(a.$slots,"main",{},void 0,!0),n.unref(i)?(n.openBlock(),n.createElementBlock("div",{key:0,class:"mainblock",style:n.normalizeStyle({display:n.unref(r)?"block":"flex"})},[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,display:e.leftWidth!=="0px"?"flex":"none",top:n.unref(r)?"58px":"80px"})},[n.createElementVNode("div",{class:"left-menu",style:n.normalizeStyle({minWidth:n.unref(r)?"100%":e.menuWidth,boxShadow:n.unref(r)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!n.unref(o)&&n.unref(r),"0"),overflowX:n.unref(r)?"scroll":"hidden",display:n.unref(r)?"flex":"block",background:n.unref(r)?"#ffffff":"",overflowY:n.unref(r)?"hidden":"auto"}),onClick:c[0]||(c[0]=l=>s())},[n.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),n.createElementVNode("div",kd,[n.createElementVNode("div",{class:"title",style:n.normalizeStyle({position:e.titleSticky?"sticky":"relative",top:e.titleSticky?n.unref(r)?"108px":"58px":"0",zIndex:e.titleSticky?"10":""})},[n.createElementVNode("div",{class:"icon",style:n.normalizeStyle({display:n.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[n.renderSlot(a.$slots,"icon",{},void 0,!0)],4),n.renderSlot(a.$slots,"title",{},void 0,!0)],4),n.createElementVNode("div",Ed,[n.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):n.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),vd={class:"item"},xd={class:"move"},Bd={class:"item-tools"},Md=["onClick"],Rd={class:"item-description"},Ad=["onUpdate:modelValue"],Ao=v(n.defineComponent({__name:"AdminGallery",props:{fileList:{type:Array,reguired:!0,default:()=>[]},fileListForDelete:{type:Array,default:()=>[]},defaultRatio:{type:Number,required:!1,default:1},upload:{type:Boolean,required:!1,default:!0}},emits:["addImage","ratio","remove"],setup(e,{emit:t}){const i=e,o=t,r=async a=>{o("addImage",a)},s=async a=>{x.H.Classes.RemoveFromClassById(a.id,i.fileList,[]),o("remove",a)};return(a,c)=>{const l=n.resolveComponent("UploderImage"),d=n.resolveComponent("draggable"),h=n.resolveComponent("Move");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(d,{class:"groups",list:e.fileList,"item-key":"id",handle:".move",onEnd:c[0]||(c[0]=f=>n.unref(qe).Sort(e.fileList))},{item:n.withCtx(({element:f,index:m})=>[n.createElementVNode("div",vd,[n.createElementVNode("div",xd,[n.createElementVNode("div",Bd,[c[1]||(c[1]=n.createElementVNode("svg",{class:"icon-move"},[n.createElementVNode("use",{"xlink:href":"#move"})],-1)),n.createElementVNode("button",{class:"admin-del2",onClick:n.withModifiers(g=>s(f),["prevent"])},"Удалить",8,Md)]),n.createVNode(l,{"file-info":f,height:150,"default-ratio":e.defaultRatio,onRemoveFile:g=>("PF"in a?a.PF:n.unref(x)).H.Classes.RemoveFromClassByIndex(m,e.fileList,e.fileListForDelete),onCrop:g=>r(f)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),n.createElementVNode("div",Rd,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":g=>f.description=g,class:"item-description-form",placeholder:"..."},null,8,Ad),[[n.vModelText,f.description]])])])]),_:1},8,["list"]),n.createVNode(h)],64)}}}),[["__scopeId","data-v-25ea092d"]]);var $o=(e=>(e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e))($o||{});const $d="p-button",Nd=n.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:$o.M,required:!1},type:{type:String,default:he.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(e,{emit:t}){const i=e,o=t,r=()=>{o("click")},s=n.computed(()=>x.H.Strings.JoinSnake($d,i.skin)),a=n.computed(()=>x.H.Strings.JoinSnake(s.value,i.type)),c=n.computed(()=>x.H.Strings.JoinSnake(s.value,i.size)),l=n.computed(()=>[s.value,a.value,c.value]);return(d,h)=>(n.openBlock(),n.createElementBlock("button",n.mergeProps(d.$attrs,{style:{margin:e.margin,padding:e.padding,maxWidth:e.width,minWidth:e.width,minHeight:e.height,maxHeight:e.height,fontSize:e.fontSize},class:n.unref(l),onClick:n.withModifiers(r,["prevent"])}),[n.renderSlot(d.$slots,"default",{},void 0,!0),n.createTextVNode(" "+n.toDisplayString(e.text),1)],16))}}),No=v(Nd,[["__scopeId","data-v-9df1aec7"]]),Id=["value"],Io=v(n.defineComponent({__name:"PCheckBox",props:n.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=t,r=()=>{o("change",i.value)};return(s,a)=>{const c=n.resolveComponent("IconCheckDefault");return n.openBlock(),n.createElementBlock("div",{id:"some",class:"check-line",style:n.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[n.createElementVNode("label",{class:"check-field__label",style:n.normalizeStyle({fontSize:e.fontSize})},[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>i.value=l),class:"check-field__input",type:"checkbox",value:e.value,onChange:r},null,40,Id),[[n.vModelCheckbox,i.value]]),n.createElementVNode("div",{id:"abc",class:"box",style:n.normalizeStyle({width:e.size,height:e.size,borderRadius:e.borderRadius})},[i.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"check-icon",style:n.normalizeStyle({width:e.size,height:e.size})},[n.createVNode(c,{margin:"auto",size:e.size},null,8,["size"])],4)):n.createCommentVNode("",!0)],4),n.createTextVNode(" "+n.toDisplayString(e.label),1)],4)],4)}}}),[["__scopeId","data-v-c948e235"]]),Pd=["for"],zd={class:"field"},Td={class:"left-field"},Vd=["id","value","name"],Ld={class:"right-field"},Po=v(n.defineComponent({__name:"PDatePicker",props:n.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=a=>{const l=a.target.valueAsDate;l?(o.value=l,i("input",s(o.value))):(o.value=null,i("input",null))},s=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,c)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Pd)):n.createCommentVNode("",!0),n.createElementVNode("div",zd,[n.createElementVNode("div",Td,[n.renderSlot(a.$slots,"default",{},void 0,!0)]),n.createElementVNode("input",{id:e.label,max:"2100",min:"1900",value:s(o.value),class:"text-field__input",type:"date",name:e.label,onInput:r},null,40,Vd),n.createElementVNode("div",Ld,[n.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),zo=v(n.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"flex-line",style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,height:e.height,justifyContent:e.justifyContent,background:e.background,alignItems:e.alignItems})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-d9fdfe7d"]]);var Dd=Object.defineProperty,Fd=(e,t,i)=>t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Yt=(e,t,i)=>Fd(e,typeof t!="symbol"?t+"":t,i);const To={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Vo=(e,t,i)=>e.replaceAll(t,"").replace(i,".").replace("..",".").replace(/[^.\d]/g,""),Lo=(e,t,i)=>{var o;return new Intl.NumberFormat(((o=i.number)==null?void 0:o.locale)??"en",{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:"trunc"})},Od=(e,t=!0,i)=>{var o,r,s,a;const c=((o=i.number)==null?void 0:o.unsigned)==null&&e.startsWith("-")?"-":"",l=((r=i.number)==null?void 0:r.fraction)??0;let d=Lo(0,l,i);const h=d.formatToParts(1000.12),f=((s=h.find(w=>w.type==="group"))==null?void 0:s.value)??" ",m=((a=h.find(w=>w.type==="decimal"))==null?void 0:a.value)??".",g=Vo(e,f,m);if(Number.isNaN(parseFloat(g)))return c;const p=g.split(".");if(p[1]!=null&&p[1].length>=1){const w=p[1].length<=l?p[1].length:l;d=Lo(w,l,i)}let k=d.format(parseFloat(g));return t?l>0&&g.endsWith(".")&&!g.slice(0,-1).includes(".")&&(k+=m):k=Vo(k,f,m),c+k};let qd=class{constructor(t={}){Yt(this,"opts",{}),Yt(this,"memo",new Map);const i={...t};if(i.tokens!=null){i.tokens=i.tokensReplace?{...i.tokens}:{...To,...i.tokens};for(const o of Object.values(i.tokens))typeof o.pattern=="string"&&(o.pattern=new RegExp(o.pattern))}else i.tokens=To;Array.isArray(i.mask)&&(i.mask.length>1?i.mask=[...i.mask].sort((o,r)=>o.length-r.length):i.mask=i.mask[0]??""),i.mask===""&&(i.mask=null),this.opts=i}masked(t){return this.process(t,this.findMask(t))}unmasked(t){return this.process(t,this.findMask(t),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(t){const i=this.findMask(t);if(this.opts.mask==null||i==null)return!1;const o=this.process(t,i).length;return typeof this.opts.mask=="string"?o>=this.opts.mask.length:o>=i.length}findMask(t){const i=this.opts.mask;if(i==null)return null;if(typeof i=="string")return i;if(typeof i=="function")return i(t);const o=this.process(t,i.slice(-1).pop()??"",!1);return i.find(r=>this.process(t,r,!1).length>=o.length)??""}escapeMask(t){const i=[],o=[];return t.split("").forEach((r,s)=>{r==="!"&&t[s-1]!=="!"?o.push(s-o.length):i.push(r)}),{mask:i.join(""),escaped:o}}process(t,i,o=!0){if(this.opts.number!=null)return Od(t,o,this.opts);if(i==null)return t;const r=`v=${t},mr=${i},m=${o?1:0}`;if(this.memo.has(r))return this.memo.get(r);const{mask:s,escaped:a}=this.escapeMask(i),c=[],l=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,m=this.isReversed()?()=>w>-1&&M>-1:()=>w<s.length&&M<t.length,g=O=>!this.isReversed()&&O<=f||this.isReversed()&&O>=f;let p,k=-1,w=this.isReversed()?s.length-1:0,M=this.isReversed()?t.length-1:0,F=!1;for(;m();){const O=s.charAt(w),L=l[O],z=(L==null?void 0:L.transform)!=null?L.transform(t.charAt(M)):t.charAt(M);if(!a.includes(w)&&L!=null?(z.match(L.pattern)!=null?(c[h](z),L.repeated?(k===-1?k=w:w===f&&w!==k&&(w=k-d),f===k&&(w-=d)):L.multiple&&(F=!0,w-=d),w+=d):L.multiple?F&&(w+=d,M-=d,F=!1):z===p?p=void 0:L.optional&&(w+=d,M-=d),M+=d):(o&&!this.isEager()&&c[h](O),z===O&&!this.isEager()?M+=d:p=O,this.isEager()||(w+=d)),this.isEager())for(;g(w)&&(l[s.charAt(w)]==null||a.includes(w));){if(o){if(c[h](s.charAt(w)),t.charAt(M)===s.charAt(w)){w+=d,M+=d;continue}}else s.charAt(w)===t.charAt(M)&&(M+=d);w+=d}}return this.memo.set(r,c.join("")),this.memo.get(r)}};const Do=e=>JSON.parse(e.replaceAll("'",'"')),Hd=(e,t={})=>{const i={...t};e.dataset.maska!=null&&e.dataset.maska!==""&&(i.mask=Ud(e.dataset.maska)),e.dataset.maskaEager!=null&&(i.eager=Qt(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(i.reversed=Qt(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(i.tokensReplace=Qt(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(i.tokens=_d(e.dataset.maskaTokens));const o={};return e.dataset.maskaNumberLocale!=null&&(o.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(o.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(o.unsigned=Qt(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(o).length>0)&&(i.number=o),i},Qt=e=>e!==""?!!JSON.parse(e):!0,Ud=e=>e.startsWith("[")&&e.endsWith("]")?Do(e):e,_d=e=>{if(e.startsWith("{")&&e.endsWith("}"))return Do(e);const t={};return e.split("|").forEach(i=>{const o=i.split(":");t[o[0]]={pattern:new RegExp(o[1]),optional:o[2]==="optional",multiple:o[2]==="multiple",repeated:o[2]==="repeated"}}),t};let Wd=class{constructor(t,i={}){Yt(this,"items",new Map),Yt(this,"onInput",o=>{if(o instanceof CustomEvent&&o.type==="input"&&!o.isTrusted&&!o.bubbles)return;const r=o.target,s=this.items.get(r),a="inputType"in o&&o.inputType.startsWith("delete"),c=s.isEager(),l=a&&c&&s.unmasked(r.value)===""?"":r.value;this.fixCursor(r,a,()=>this.setValue(r,l))}),this.options=i,this.init(this.getInputs(t))}update(t={}){this.options={...t},this.init(Array.from(this.items.keys()))}updateValue(t){t.value!==""&&t.value!==this.processInput(t).masked&&this.setValue(t,t.value)}destroy(){for(const t of this.items.keys())t.removeEventListener("input",this.onInput);this.items.clear()}init(t){const i=this.getOptions(this.options);for(const o of t){this.items.has(o)||o.addEventListener("input",this.onInput,{capture:!0});const r=new qd(Hd(o,i));this.items.set(o,r),queueMicrotask(()=>this.updateValue(o)),o.selectionStart===null&&r.isEager()&&console.warn("Maska: input of `%s` type is not supported",o.type)}}getInputs(t){return typeof t=="string"?Array.from(document.querySelectorAll(t)):"length"in t?Array.from(t):[t]}getOptions(t){const{onMaska:i,preProcess:o,postProcess:r,...s}=t;return s}fixCursor(t,i,o){const r=t.selectionStart,s=t.value;if(o(),r===null||r===s.length&&!i)return;const a=t.value,c=s.slice(0,r),l=a.slice(0,r),d=this.processInput(t,c).unmasked,h=this.processInput(t,l).unmasked;let f=r;c!==l&&(f+=i?a.length-s.length:d.length-h.length),t.setSelectionRange(f,f)}setValue(t,i){const o=this.processInput(t,i);t.value=o.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(r=>r(o)):this.options.onMaska(o)),t.dispatchEvent(new CustomEvent("maska",{detail:o})),t.dispatchEvent(new CustomEvent("input",{detail:o.masked}))}processInput(t,i){const o=this.items.get(t);let r=i??t.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let s=o.masked(r);return this.options.postProcess!=null&&(s=this.options.postProcess(s)),{masked:s,unmasked:o.unmasked(r),completed:o.completed(r)}}};const Zn=new WeakMap,Gd=(e,t)=>{if(e.arg==null||e.instance==null)return;const i="setup"in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:i&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Fo=(e,t)=>{var i;const o=e instanceof HTMLInputElement?e:e.querySelector("input");if(o==null||(o==null?void 0:o.type)==="file")return;let r={};if(t.value!=null&&(r=typeof t.value=="string"?{mask:t.value}:{...t.value}),t.arg!=null){const s=a=>{const c=t.modifiers.unmasked?a.unmasked:t.modifiers.completed?a.completed:a.masked;Gd(t,c)};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Zn.has(o)?(i=Zn.get(o))==null||i.update(r):Zn.set(o,new Wd(o,r))},jd=["for"],Zd={class:"left-field"},Jd=["disabled"],Xd={class:"right-field"},Oo=v(n.defineComponent({__name:"PInput",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e){const t=n.useModel(e,"modelValue");return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,jd)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",Zd,[n.renderSlot(i.$slots,"default",{},void 0,!0)]),n.withDirectives(n.createElementVNode("input",n.mergeProps(i.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r),class:"text-field__input",style:{color:e.color},disabled:e.disabled,onBlur:o[1]||(o[1]=r=>i.$emit("blur",t.value)),onInput:o[2]||(o[2]=r=>i.$emit("input",t.value))}),null,16,Jd),[[n.vModelDynamic,t.value],[n.unref(Fo),e.mask]]),n.createElementVNode("div",Xd,[n.renderSlot(i.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-4e2bdb1a"]]),qo=n.defineComponent({__name:"PInputDate",props:n.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:n.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=Ve.Format(o.value),s=n.ref(r),a=l=>{if(!c(l))return;const d=Ve.FromRuStr(l);o.value=d,i("beforeChange",d),i("change",d)},c=l=>l.length!=10?(s.value=r,x.UI.Notify.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,x.UI.Notify.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,x.UI.Notify.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,x.UI.Notify.Error("Неверный год"),!1):!0;return(l,d)=>{const h=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock("div",{class:"style-container",style:n.normalizeStyle({width:e.width,position:"relative"})},[n.createVNode(h,{modelValue:n.unref(s),"onUpdate:modelValue":d[0]||(d[0]=f=>n.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:e.placeholder,margin:e.margin,label:e.label,onBlur:a,onKeydown:n.withKeys(n.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Yd=v(n.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#minus"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),Qd=v(n.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#plus"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[n.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),Kd=["for"],eu={class:"number"},tu=["disabled"],Ho=v(n.defineComponent({__name:"PInputNumber",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:100,required:!1},min:{type:Number,default:-100,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:"0"},modelModifiers:{}}),emits:n.mergeModels(["blur","input","change"],["update:modelValue"]),setup(e,{emit:t}){const i=t,o=n.useModel(e,"modelValue"),r=n.computed(()=>o.value??""),s=e,a=d=>{const h=d.toString();return h.includes(".")?h.split(".")[1].length:0},c=()=>{if(!s.disabled&&parseFloat(r.value)<s.max){const d=a(s.step);o.value=(parseFloat(r.value)+parseFloat(s.step.toString())).toFixed(d),i("change",o)}},l=()=>{if(!s.disabled&&parseFloat(r.value)>s.min){const d=a(s.step);o.value=(parseFloat(r.value)-parseFloat(s.step.toString())).toFixed(d),i("change",o)}};return n.onBeforeMount(()=>{parseFloat(r.value)<s.min&&(o.value=s.min.toString())}),(d,h)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Kd)):n.createCommentVNode("",!0),n.createElementVNode("div",eu,[n.createElementVNode("button",{class:"number-minus",type:"button",onClick:l},[n.createElementVNode("div",{class:n.normalizeClass(e.disabled||parseFloat(o.value)<=e.min?"icon-minus-disabled":"icon-minus")},[n.createVNode(Yd)],2)]),n.withDirectives(n.createElementVNode("input",n.mergeProps(d.$attrs,{"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),class:"input-field",type:"number",disabled:e.disabled,style:{color:e.disabled?"#828587":e.color,background:e.disabled?"var(--input-readonly-background)":""},onBlur:h[1]||(h[1]=f=>d.$emit("blur",n.unref(r))),onInput:h[2]||(h[2]=f=>d.$emit("input",n.unref(r)))}),null,16,tu),[[n.vModelText,o.value]]),n.createElementVNode("button",{class:"number-plus",style:n.normalizeStyle({transform:e.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:c},[n.createElementVNode("div",{class:n.normalizeClass(e.disabled||parseFloat(o.value)>=e.max?"icon-plus-disabled":"icon-plus")},[n.createVNode(Qd)],2)],4)])],4))}}),[["__scopeId","data-v-b2c5d551"]]),Uo=v(n.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.shift?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle({minWidth:e.widthClosed,maxWidth:e.widthClosed})},null,4)),n.createElementVNode("div",{class:"LS-body",style:n.normalizeStyle({marginLeft:n.unref(r)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute",background:e.background})},[n.createElementVNode("div",{class:"LS-content",style:n.normalizeStyle({width:`calc(${e.widthOpened} - ${e.widthClosed})`})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({width:e.widthClosed}),onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-2af70fa2"]]),_o=v(n.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("ul",{style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-eaa10a96"]]),Wo=v(n.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("li",{style:n.normalizeStyle({margin:e.margin,padding:e.padding,borderBottom:e.showDivider?"1px solid":"none"})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-93410b0d"]]),nu=["for"],iu=["id","name","checked","value"],Go=v(n.defineComponent({__name:"PRadio",props:n.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=t,r=e,s=x.H.Id.GUID(),a=n.computed(()=>i.value===r.value),c=()=>{o("change",r.value)};return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:"radio-line",style:n.normalizeStyle({padding:e.padding,margin:e.margin,maxWidth:e.width})},[n.createElementVNode("label",{class:"radio-field__label",for:n.unref(s),style:n.normalizeStyle({fontSize:e.fontSize})},[n.withDirectives(n.createElementVNode("input",{id:n.unref(s),"onUpdate:modelValue":d[0]||(d[0]=h=>i.value=h),name:e.name,checked:n.unref(a),class:"radio-field__input",type:"radio",value:e.value},null,8,iu),[[n.vModelRadio,i.value]]),n.createElementVNode("div",{class:"box",style:n.normalizeStyle({width:e.size,height:e.size,borderRadius:e.borderRadius}),onClick:c},[i.value===e.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"radio-dot",style:n.normalizeStyle({width:`calc(${e.size} - 50%)`,height:`calc(${e.size} - 50%)`})},null,4)):n.createCommentVNode("",!0)],4),n.createElementVNode("span",{onClick:c},n.toDisplayString(e.label),1)],12,nu)],4))}}),[["__scopeId","data-v-9607b8d0"]]),ou={class:"wrapper"},ru={class:"content"},jo=v(n.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",ou,[n.createElementVNode("div",ru,[n.renderSlot(a.$slots,"content",{},void 0,!0)]),n.createElementVNode("div",{class:"RS-body",style:n.normalizeStyle({marginRight:n.unref(r)?"0":`calc(${e.widthClosed} - ${e.widthOpened})`,minWidth:e.widthOpened,maxWidth:e.widthOpened,boxShadow:e.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:e.shift?"relative":"absolute"})},[n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({width:e.widthClosed}),onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),n.createElementVNode("div",{class:"RS-content",style:n.normalizeStyle({width:`calc(${e.widthOpened} - ${e.widthClosed} - 2px)`,background:e.background})},[n.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-e076619a"]]),Kt=v(n.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[n.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cbcad2a0"]]),su=["for"],au={class:"field"},lu={class:"left-field"},cu={class:"arrow"},du={selected:"",hidden:""},uu={class:"right-field"},Zo=v(n.defineComponent({inheritAttrs:!1,__name:"PSelect",props:n.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["change","clear"],["update:modelValue"]),setup(e,{emit:t}){const i=n.useModel(e,"modelValue"),o=n.ref(!0),r=t,s=n.ref(!1),a=()=>{o.value=!1,r("change",i.value)},c=()=>{i.value=void 0,r("clear",void 0),r("change",void 0),o.value=!0};return(l,d)=>{const h=n.resolveComponent("IconSelectArrow");return n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding,width:e.width})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,su)):n.createCommentVNode("",!0),n.createElementVNode("div",au,[n.createElementVNode("div",lu,[n.renderSlot(l.$slots,"left",{},void 0,!0)]),n.createElementVNode("div",{class:"sl",onMouseover:d[1]||(d[1]=f=>s.value=!0),onMouseleave:d[2]||(d[2]=f=>s.value=!1)},[e.clearable?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,class:"clear",onClick:c},[n.createVNode(Kt,{margin:"0"})],512)),[[n.vShow,n.unref(s)]]):n.createCommentVNode("",!0),n.createElementVNode("div",cu,[n.createVNode(h,{margin:"2px 2px 0 0"})]),n.withDirectives(n.createElementVNode("select",n.mergeProps(l.$attrs,{"onUpdate:modelValue":d[0]||(d[0]=f=>i.value=f),class:"text-field__input",onChange:a}),[n.createElementVNode("option",du,n.toDisplayString(e.placeholder),1),n.renderSlot(l.$slots,"default",{},void 0,!0)],16),[[n.vModelSelect,i.value]])],32),n.createElementVNode("div",uu,[n.renderSlot(l.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-b6231bca"]]),Jo=v(n.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"sticky-block",style:n.normalizeStyle({zIndex:1+e.zIndex,top:e.top,background:e.background,padding:e.padding,boxShadow:e.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-01876330"]]),hu=["innerHTML"],fu={key:1},Xo=v(n.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(e){const t=e,i={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight,background:t.background,padding:t.padding,width:t.width,maxWidth:t.width,minWidth:t.minWidth,margin:t.margin,justifyContent:t.justifyContent};return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["string",e.customClass]),style:i,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[e.isHtml?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:e.string},null,8,hu)):(n.openBlock(),n.createElementBlock("span",fu,n.toDisplayString(e.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),mu=["for"],pu={class:"left-field"},gu={class:"right-field"},Yo=v(n.defineComponent({__name:"PTextarea",props:n.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:n.mergeModels(["blur","input"],["update:modelValue"]),setup(e){const t=n.useModel(e,"modelValue");return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,mu)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",pu,[n.renderSlot(i.$slots,"default",{},void 0,!0)]),n.withDirectives(n.createElementVNode("textarea",n.mergeProps(i.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r),class:"text-field__input",style:{color:e.color},onBlur:o[1]||(o[1]=r=>i.$emit("blur",t.value)),onInput:o[2]||(o[2]=r=>i.$emit("input",t.value))}),null,16),[[n.vModelText,t.value],[n.unref(Fo),e.mask]]),n.createElementVNode("div",gu,[n.renderSlot(i.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-2a2e858d"]]),yu={class:"top-slider-content"},wu={class:"center"},Qo=v(n.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.open);n.watch(()=>i.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=n.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(r)?"0":`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`,height:e.sliderOnHeight}),onClick:c[3]||(c[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",yu,[n.createElementVNode("div",wu,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({height:e.sliderOffHeight}),onClick:c[2]||(c[2]=l=>s(!n.unref(r)))},[n.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]),Ko=n.defineComponent({__name:"AuthModal",emits:["submit"],setup(e){const t=()=>{x.Auth.Form.Reset(),x.Auth.Modal.Close()};return(i,o)=>{const r=n.resolveComponent("AuthForm"),s=n.resolveComponent("PModal");return n.openBlock(),n.createBlock(s,{show:("PF"in i?i.PF:n.unref(x)).Auth.Modal.IsVisible(),closable:("PF"in i?i.PF:n.unref(x)).Auth.Modal.IsClosable(),onClose:t},{default:n.withCtx(()=>[n.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>i.$emit("submit"))})]),_:1},8,["show","closable"])}}}),Jn=v(n.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(e){return n.useCssVars(t=>({d143e9f0:e.maxWidth,b9d56180:e.width,"52bd0ff4":e.background,"1795aeac":e.gridGap,"0cfa7c52":e.gridTemplateColumns,"0c6d2a1f":e.gridTemplateRows,a3ccd918:e.margin})),(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["grid-block",e.customClass])},[n.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]);var Le=(e=>(e.None="None",e.Next="Next",e.Prev="Prev",e))(Le||{});const bu={class:"container"},Su={class:"slide-box"},Cu={class:"link-number"},ku=["id","onClick"],er=v(n.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(e){n.useCssVars(g=>({a8527066:i}));const t=e,i=`${t.animationTime}ms`,o=n.ref(t.startActiveGroupIndex),r=n.ref(Le.None),s=n.ref(ko(t.events,t.quantity)),a=n.computed(()=>s.value[o.value]);n.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,l=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,d=g=>{r.value=g,setTimeout(()=>r.value=Le.None,t.animationTime)},h=g=>{g!=o.value&&(d(g<o.value?Le.Prev:Le.Next),setTimeout(()=>o.value=g,t.animationTime/2))},f=()=>{d(Le.Next),setTimeout(c,t.animationTime/2)},m=()=>{d(Le.Prev),setTimeout(l,t.animationTime/2)};return(g,p)=>(n.openBlock(),n.createElementBlock("div",{class:"field",style:n.normalizeStyle({height:e.height,maxHeight:e.maxHeight})},[n.createElementVNode("div",bu,[(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:p[0]||(p[0]=n.withModifiers(k=>m(),["stop"]))},p[2]||(p[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),n.createElementVNode("div",Su,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(a),(k,w)=>(n.openBlock(),n.createElementBlock("div",{key:w,class:n.normalizeClass({animationnext:n.unref(r)===n.unref(Le).Next,animationprev:n.unref(r)===n.unref(Le).Prev})},p[3]||(p[3]=[n.createElementVNode("div",{class:"image"},[n.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(n.openBlock(),n.createElementBlock("svg",{class:"icon-arrow",onClick:p[1]||(p[1]=n.withModifiers(k=>f(),["stop"]))},p[4]||(p[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),n.createElementVNode("div",Cu,[n.createVNode(Jn,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(k,w)=>(n.openBlock(),n.createElementBlock("div",{id:w.toString(),key:w,class:"number",style:n.normalizeStyle({background:w.toString()===n.unref(o).toString()?"#9D9D9D":""}),onClick:n.withModifiers(M=>h(w),["stop"])},n.toDisplayString(w+1),13,ku))),128))]),_:1})])],4))}}),[["__scopeId","data-v-a5d87987"]]),tr=n.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.x),s=n.ref(i.y),a=n.computed(()=>r.value+"px"),c=n.computed(()=>s.value+"px"),l=()=>{o("close")};return(d,h)=>{const f=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:"context-window",style:n.normalizeStyle({left:n.unref(a),top:n.unref(c)})},[n.renderSlot(d.$slots,"default")],4)),[[f,l]])}}}),Eu={class:"date-range"},nr=v(n.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(e,{emit:t}){const i=e,o=t;n.watch(()=>[i.start,i.end],()=>{i.start||(r.value=void 0),i.end||(s.value=void 0)});const r=n.ref(i.start),s=n.ref(i.end),a=l=>{if(r.value=l,!i.end||l>i.end){x.UI.Notify.Warning("Дата начала больше даты окончания");return}o("update:start",l),o("setStart",l)},c=l=>{if(s.value=l,!i.start||l<i.start){x.UI.Notify.Warning("Дата начала больше даты окончания");return}o("update:end",l),o("setEnd",l)};return(l,d)=>{const h=n.resolveComponent("PInputDate");return n.openBlock(),n.createElementBlock("div",Eu,[n.createVNode(h,{"model-value":n.unref(r),"onUpdate:modelValue":d[0]||(d[0]=f=>n.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),d[2]||(d[2]=n.createTextVNode(" - ")),n.createVNode(h,{"model-value":n.unref(s),"onUpdate:modelValue":d[1]||(d[1]=f=>n.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-57443115"]]),vu=n.defineComponent({name:"DateInputRangeV2"}),xu={class:"date-range"};function Bu(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock("div",xu,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const ir=v(vu,[["render",Bu],["__scopeId","data-v-d28c6f33"]]),Mu={class:"drop-item"},Ru={key:0,class:"drop-item-list"},or=v(n.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(e){const t=e,i=n.ref(t.rolledUp),o=async()=>{i.value=!i.value};return(r,s)=>{const a=n.resolveComponent("PString"),c=n.resolveComponent("IconArrowDrop");return n.openBlock(),n.createElementBlock("div",Mu,[n.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=l=>o())},[n.createVNode(a,{"font-size":"13px","font-weight":"600",string:e.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),n.createElementVNode("div",{style:n.normalizeStyle({transform:n.unref(i)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[n.createVNode(c,{size:"10px",margin:"0"})],4)]),n.unref(i)?(n.openBlock(),n.createElementBlock("div",Ru,[n.renderSlot(r.$slots,"default",{},void 0,!0)])):n.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),rr=v(n.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Si,required:!0}},emits:["load"],setup(e,{emit:t}){const i=e,o=n.ref(!1),r=t,s=()=>{i.model.setBoolean(o.value),o.value?x.FTSP.Get().setF(i.model):x.FTSP.Get().removeF(i.model),r("load")};return(a,c)=>{const l=n.resolveComponent("PCheckBox");return n.openBlock(),n.createBlock(l,{modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=d=>n.isRef(o)?o.value=d:null),label:e.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-34818d7d"]]),sr=v(n.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const i=t,o=n.ref(void 0),r=async a=>{x.FTSP.Get().replaceF(a,o.value),o.value=a,x.FTSP.Get().p.drop()},s=async a=>{await r(a),i("load")};return(a,c)=>{const l=n.resolveComponent("PString"),d=n.resolveComponent("PButton"),h=n.resolveComponent("GridContainer"),f=n.resolveComponent("InfoItem");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(l,{string:e.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),n.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:n.withCtx(()=>c[0]||(c[0]=[])),default:n.withCtx(()=>[n.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.models,(m,g)=>(n.openBlock(),n.createBlock(d,{key:g,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(n.unref(o)),"toggle-mode":!0,inverse:e.inverse,onClick:p=>s(m.valueEq(n.unref(o))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-a6b6b5f0"]]),Au=["value","label"],ar=v(n.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(e,{emit:t}){const i=t,o=x.FTSP.Get(),r=n.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),i("load")};return(c,l)=>{const d=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(d,{modelValue:n.unref(r),"onUpdate:modelValue":l[0]||(l[0]=h=>n.isRef(r)?r.value=h:null),clearable:n.unref(r),placeholder:e.defaultLabel,onChange:a},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.models,(h,f)=>(n.openBlock(),n.createElementBlock("option",{key:f,value:h,label:h.label},null,8,Au))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-f611ee52"]]),lr=v(n.defineComponent({__name:"FTSPPanel",setup(e){return n.onBeforeMount(async()=>{}),(t,i)=>(n.openBlock(),n.createElementBlock("div"))}}),[["__scopeId","data-v-c3fae891"]]),cr=v(n.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock("div",{class:"general-block-item",style:n.normalizeStyle({background:e.background,height:e.height,width:e.width,borderColor:e.borderColor,padding:e.padding,margin:e.margin,transform:e.scale&&n.unref(t)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},[n.createElementVNode("div",{class:"green",style:n.normalizeStyle({width:`${e.ready}`})},null,4),n.createElementVNode("div",{class:"general-block-item-title",style:n.normalizeStyle({fontSize:e.fontSize})},[n.renderSlot(i.$slots,"general-item",{},void 0,!0)],4),n.createElementVNode("div",{class:"tools-icon",style:n.normalizeStyle({display:e.withIcon?"flex":"none"})},o[2]||(o[2]=[n.createElementVNode("svg",{class:"icon-del"},[n.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[n.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-1056443d"]]),dr=v(n.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),n.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-94c18208"]]),ur=v(n.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),n.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-d11e6069"]]),hr=v(n.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[n.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ca16a90c"]]),fr=v(n.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-48c8e6e2"]]),mr=v(n.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[n.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),n.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-55ea5a5c"]]),pr=v(n.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-99358e0a"]]),gr=v(n.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[n.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-05547f14"]]),yr=v(n.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-131f6ba1"]]),wr=v(n.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[n.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-64e76eb7"]]),br=v(n.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size})},i[0]||(i[0]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),i[1]||(i[1]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[n.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),n.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-4d8b581f"]]),Sr=v(n.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-ec3439ce"]]),Cr=v(n.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-cd0d3c21"]]),kr=v(n.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-98099ad2"]]),Er=v(n.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=n.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[n.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-053c9917"]]),vr=v(n.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(e){const t=n.ref(!1);return(i,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(["icon",e.iconClass]),style:n.normalizeStyle({margin:e.margin,width:e.size,height:e.size,fill:e.hoverColor?n.unref(t)?e.hoverColor:e.color:(n.unref(t),e.color)}),onMouseenter:o[0]||(o[0]=r=>t.value=!0),onMouseleave:o[1]||(o[1]=r=>t.value=!1)},o[2]||(o[2]=[n.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=n.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1798f31d></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1798f31d></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]);function xr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,o)}return i}function W(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?xr(Object(i),!0).forEach(function(o){Se(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xr(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Se(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function $u(e,t){if(e==null)return{};var i,o,r=function(a,c){if(a==null)return{};var l,d,h={},f=Object.keys(a);for(d=0;d<f.length;d++)l=f[d],c.indexOf(l)>=0||(h[l]=a[l]);return h}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function et(e){return function(t){if(Array.isArray(t))return Xn(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,i){if(t){if(typeof t=="string")return Xn(t,i);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Xn(t,i)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,o=new Array(t);i<t;i++)o[i]=e[i];return o}var Br,Nu,en,Q=(Br=function(e){/*!
25
25
  Copyright (c) 2018 Jed Watson.
26
26
  Licensed under the MIT License (MIT), see
27
27
  http://jedwatson.github.io/classnames
28
- */(function(){var t={}.hasOwnProperty;function i(){for(var o=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var c=i.apply(null,s);c&&o.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var l in s)t.call(s,l)&&s[l]&&o.push(l);else o.push(s.toString())}}return o.join(" ")}e.exports?(i.default=i,e.exports=i):window.classNames=i})()},xr(Kt={path:Bu,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&Kt.path)}},Kt.exports),Kt.exports),Re=function(e){return function(t,i){if(!t)return e;var o;typeof t=="string"?o=t:i=t;var r=e;return o&&(r+="__"+o),r+(i?Object.keys(i).reduce(function(s,a){var c=i[a];return c&&(s+=" "+(typeof c=="boolean"?r+"--"+a:r+"--"+a+"_"+c)),s},""):"")}};function Xn(e,t,i){var o,r,s,a,c;function l(){var h=Date.now()-a;h<t&&h>=0?o=setTimeout(l,t-h):(o=null,i||(c=e.apply(s,r),s=r=null))}t==null&&(t=100);var d=function(){s=this,r=arguments,a=Date.now();var h=i&&!o;return o||(o=setTimeout(l,t)),h&&(c=e.apply(s,r),s=r=null),c};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(c=e.apply(s,r),s=r=null,clearTimeout(o),o=null)},d}Xn.debounce=Xn;var Yn=Xn,I=function(){return I=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)};/*! *****************************************************************************
28
+ */(function(){var t={}.hasOwnProperty;function i(){for(var o=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var c=i.apply(null,s);c&&o.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var l in s)t.call(s,l)&&s[l]&&o.push(l);else o.push(s.toString())}}return o.join(" ")}e.exports?(i.default=i,e.exports=i):window.classNames=i})()},Br(en={path:Nu,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&en.path)}},en.exports),en.exports),Ae=function(e){return function(t,i){if(!t)return e;var o;typeof t=="string"?o=t:i=t;var r=e;return o&&(r+="__"+o),r+(i?Object.keys(i).reduce(function(s,a){var c=i[a];return c&&(s+=" "+(typeof c=="boolean"?r+"--"+a:r+"--"+a+"_"+c)),s},""):"")}};function Yn(e,t,i){var o,r,s,a,c;function l(){var h=Date.now()-a;h<t&&h>=0?o=setTimeout(l,t-h):(o=null,i||(c=e.apply(s,r),s=r=null))}t==null&&(t=100);var d=function(){s=this,r=arguments,a=Date.now();var h=i&&!o;return o||(o=setTimeout(l,t)),h&&(c=e.apply(s,r),s=r=null),c};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(c=e.apply(s,r),s=r=null,clearTimeout(o),o=null)},d}Yn.debounce=Yn;var Qn=Yn,I=function(){return I=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)};/*! *****************************************************************************
29
29
  Copyright (c) Microsoft Corporation.
30
30
 
31
31
  Permission to use, copy, modify, and/or distribute this software for any
@@ -38,5 +38,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
39
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
40
  PERFORMANCE OF THIS SOFTWARE.
41
- ***************************************************************************** */function Br(e,t){var i,o;return e&&t?(i=""+e+t[0].toUpperCase()+t.slice(1),o=e+"-"+t):(i=e||t,o=e||t),{name:i,classname:o}}function Mr(e){return/^blob:/.test(e)}function Rr(e){return Mr(e)||function(t){return/^data:/.test(t)}(e)}function at(e){return!!(e&&e.constructor&&e.call&&e.apply)}function ne(e){return e===void 0}function en(e){return typeof e=="object"&&e!==null}function Qn(e,t,i){var o={};return en(e)?(Object.keys(t).forEach(function(r){ne(e[r])?o[r]=t[r]:en(t[r])?en(e[r])?o[r]=Qn(e[r],t[r],i[r]):o[r]=e[r]?t[r]:i[r]:t[r]===!0||t[r]===!1?o[r]=!!e[r]:o[r]=e[r]}),o):e?t:i}function tn(e){var t=Number(e);return Number.isNaN(t)?e:t}function Ar(e){return typeof(e=="number"||function(t){return typeof t=="object"&&t!==null}(e)&&toString.call(e)=="[object Number]")&&!Nr(e)}function Nr(e){return e!=e}function $r(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}var Rt=function(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.type="manipulateImage",this.move=e,this.scale=t},Mu=function(e,t){t===void 0&&(t={}),this.type="resize",this.directions=e,this.params=t},Kn=function(e){this.type="move",this.directions=e},Ru=function(){function e(t,i,o,r,s){this.type="drag",this.nativeEvent=t,this.position=o,this.previousPosition=r,this.element=i,this.anchor=s}return e.prototype.shift=function(){var t=this,i=t.element,o=t.anchor,r=t.position;if(i){var s=i.getBoundingClientRect(),a=s.left,c=s.top;return{left:r.left-a-o.left,top:r.top-c-o.top}}return{left:0,top:0}},e}(),ei={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(e){e.cancelable&&!this.disabled&&e.touches.length===1&&(this.touches=et(e.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),e.touches.length&&this.initAnchor(this.touches.reduce(function(t,i){return{clientX:t.clientX+i.clientX/e.touches.length,clientY:t.clientY+i.clientY/e.touches.length}},{clientX:0,clientY:0})),e.preventDefault&&e.preventDefault(),e.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(e){this.touches.length&&(this.processMove(e,e.touches),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},onMouseDown:function(e){if(!this.disabled){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.draggable.getBoundingClientRect(),i=t.left,o=t.right,r=t.bottom,s=t.top;this.anchor={left:e.clientX-i,top:e.clientY-s,bottom:r-e.clientY,right:o-e.clientX}},processMove:function(e,t){var i=et(t);if(this.touches.length){if(this.touches.length===1&&i.length===1){var o=this.$refs.draggable;this.$emit("drag",new Ru(e,o,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};ei.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"draggable",class:i.classname,onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:t[3]||(t[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:t[4]||(t[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],34)};var ti=Re("vue-handler-wrapper"),Ir={name:"HandlerWrapper",components:{DraggableElement:ei},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var e;if(this.horizontalPosition||this.verticalPosition){var t,i=Br(this.horizontalPosition,this.verticalPosition);e=ti((Ce(t={},i.classname,!0),Ce(t,"disabled",this.disabled),t))}else e=ti({disabled:this.disabled});return{root:e,draggable:ti("draggable")}}},emits:["leave","enter","drag","drag-end"]};Ir.render=function(e,t,i,o,r,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.createBlock("div",{class:s.classes.root},[n.createVNode(a,{class:s.classes.draggable,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["class"])],2)};var Au=Re("vue-line-wrapper"),Pr={name:"LineWrapper",components:{DraggableElement:ei},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var e;return Au((Ce(e={},this.position,!0),Ce(e,"disabled",this.disabled),e))}},emits:["leave","enter","drag","drag-end"]};Pr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.createBlock(a,{class:s.classname,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["class"])};var Ie=["left","right","top","bottom"],Nu=["left","right"],$u=["top","bottom"],Iu=["left","top"],Pu=["fill-area","fit-area","stencil","none"],zr={left:0,top:0,width:0,height:0};function Tr(e,t,i){return!(i=i||["width","height","left","top"]).some(function(o){return e[o]!==t[o]})}function Pe(e){return{left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height}}function lt(e,t){return{left:e.left-t.left,top:e.top-t.top}}function se(e){return{left:e.left+e.width/2,top:e.top+e.height/2}}function At(e,t){var i={left:0,top:0,right:0,bottom:0};return Ie.forEach(function(o){var r=t[o],s=Pe(e)[o];i[o]=r!==void 0&&s!==void 0?o==="left"||o==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),i}function ze(e,t){return{left:e.left-t.left,top:e.top-t.top,width:e.width+t.left+t.right,height:e.height+t.top+t.bottom}}function nn(e){return{left:-e.left,top:-e.top}}function fe(e,t){return I(I({},e),{left:e.left+t.left,top:e.top+t.top})}function Se(e,t,i,o){if(t!==1){if(i){var r=se(e);return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2+(i.left-r.left)*(1-t),top:e.top+e.height*(1-t)/2+(i.top-r.top)*(1-t)}}return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2,top:e.top+e.height*(1-t)/2}}return e}function G(e){return e.width/e.height}function ct(e,t){return Math.min(t.right!==void 0&&t.left!==void 0?(t.right-t.left)/e.width:1/0,t.bottom!==void 0&&t.top!==void 0?(t.bottom-t.top)/e.height:1/0)}function dt(e,t){var i={left:0,top:0},o=At(e,t);return o.left&&o.left>0?i.left=o.left:o.right&&o.right>0&&(i.left=-o.right),o.top&&o.top>0?i.top=o.top:o.bottom&&o.bottom>0&&(i.top=-o.bottom),i}function ni(e,t){var i;return t.minimum&&e<t.minimum?i=t.minimum:t.maximum&&e>t.maximum&&(i=t.maximum),i}function Vr(e,t){var i=G(e),o=G(t);return t.width<1/0&&t.height<1/0?i>o?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t.width<1/0?{width:t.width,height:t.width/i}:t.height<1/0?{width:t.height*i,height:t.height}:e}function Lr(e,t){var i=t*Math.PI/180;return{width:Math.abs(e.width*Math.cos(i))+Math.abs(e.height*Math.sin(i)),height:Math.abs(e.width*Math.sin(i))+Math.abs(e.height*Math.cos(i))}}function We(e,t){var i=t*Math.PI/180;return{left:e.left*Math.cos(i)-e.top*Math.sin(i),top:e.left*Math.sin(i)+e.top*Math.cos(i)}}function on(e,t){var i=At(ae(e,t),t);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((e.width+i.left+i.right)/e.width,ct(e,t)):Math.min((e.height+i.top+i.bottom)/e.height,ct(e,t)):1}function ae(e,t,i){i===void 0&&(i=!1);var o=dt(e,t);return fe(e,i?nn(o):o)}function ii(e){return{width:e.right!==void 0&&e.left!==void 0?e.right-e.left:1/0,height:e.bottom!==void 0&&e.top!==void 0?e.bottom-e.top:1/0}}function zu(e,t){return I(I({},e),{minWidth:Math.min(t.width,e.minWidth),minHeight:Math.min(t.height,e.minHeight),maxWidth:Math.min(t.width,e.maxWidth),maxHeight:Math.min(t.height,e.maxHeight)})}function Dr(e,t,i){i===void 0&&(i=!0);var o={};return Ie.forEach(function(r){var s=e[r],a=t[r];s!==void 0&&a!==void 0?o[r]=r==="left"||r==="top"?i?Math.max(s,a):Math.min(s,a):i?Math.min(s,a):Math.max(s,a):a!==void 0?o[r]=a:s!==void 0&&(o[r]=s)}),o}function rn(e,t){return Dr(e,t,!0)}function Fr(e){var t=e.size,i=e.aspectRatio,o=e.ignoreMinimum,r=e.sizeRestrictions;return!!((t.correctRatio||G(t)>=i.minimum&&G(t)<=i.maximum)&&t.height<=r.maxHeight&&t.width<=r.maxWidth&&t.width&&t.height&&(o||t.height>=r.minHeight&&t.width>=r.minWidth))}function Or(e,t){return Math.pow(e.width-t.width,2)+Math.pow(e.height-t.height,2)}function De(e){var t=e.width,i=e.height,o=e.sizeRestrictions,r={minimum:e.aspectRatio&&e.aspectRatio.minimum||0,maximum:e.aspectRatio&&e.aspectRatio.maximum||1/0},s={width:Math.max(o.minWidth,Math.min(o.maxWidth,t)),height:Math.max(o.minHeight,Math.min(o.maxHeight,i))};function a(d,h){return h===void 0&&(h=!1),d.reduce(function(f,m){return Fr({size:m,aspectRatio:r,sizeRestrictions:o,ignoreMinimum:h})&&(!f||Or(m,{width:t,height:i})<Or(f,{width:t,height:i}))?m:f},null)}var c=[];r&&[r.minimum,r.maximum].forEach(function(d){d&&c.push({width:s.width,height:s.width/d,correctRatio:!0},{width:s.height*d,height:s.height,correctRatio:!0})}),Fr({size:s,aspectRatio:r,sizeRestrictions:o})&&c.push(s);var l=a(c)||a(c,!0);return l&&{width:l.width,height:l.height}}function oi(e){var t=e.event,i=e.coordinates,o=e.positionRestrictions,r=o===void 0?{}:o,s=fe(i,t.directions);return fe(s,dt(s,r))}function Tu(e){var t=e.coordinates,i=e.transform,o=e.imageSize,r=e.sizeRestrictions,s=e.positionRestrictions,a=e.aspectRatio,c=e.visibleArea,l=function(h,f){return oi({coordinates:h,positionRestrictions:s,event:new Kn({left:f.left-h.left,top:f.top-h.top})})},d=I({},t);return(Array.isArray(i)?i:[i]).forEach(function(h){var f={};ne((f=typeof h=="function"?h({coordinates:d,imageSize:o,visibleArea:c}):h).width)&&ne(f.height)||(d=function(m,g){var p=I(I(I({},m),De({width:g.width,height:g.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return l(p,{left:m.left,top:m.top})}(d,I(I({},d),f))),ne(f.left)&&ne(f.top)||(d=l(d,I(I({},d),f)))}),d}function Vu(e){e.event;var t=e.getAreaRestrictions,i=e.boundaries,o=e.coordinates,r=e.visibleArea;e.aspectRatio;var s=e.stencilSize,a=e.sizeRestrictions,c=e.positionRestrictions;e.stencilReference;var l,d,h,f=I({},o),m=I({},r),g=I({},s);l=G(g),d=G(f),h===void 0&&(h=.001),(l===0||d===0?Math.abs(d-l)<h:Math.abs(d/l)<1+h&&Math.abs(d/l)>1-h)||(f=I(I({},f),De({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(g),maximum:G(g)}})));var p=on(m=Se(m,f.width*i.width/(m.width*g.width)),t({visibleArea:m,type:"resize"}));return p!==1&&(m=Se(m,p),f=Se(f,p)),m=ae(m=fe(m,lt(se(f),se(m))),t({visibleArea:m,type:"move"})),{coordinates:f=ae(f,rn(Pe(m),c)),visibleArea:m}}function Lu(e){var t=e.event,i=e.getAreaRestrictions,o=e.boundaries,r=e.coordinates,s=e.visibleArea;e.aspectRatio,e.stencilSize,e.sizeRestrictions;var a=e.positionRestrictions;e.stencilReference;var c=I({},r),l=I({},s);if(r&&s&&t.type!=="manipulateImage"){var d={width:0,height:0};l.width,o.width,G(o)>G(c)?(d.height=.8*o.height,d.width=d.height*G(c)):(d.width=.8*o.width,d.height=d.width*G(c));var h=on(l=Se(l,c.width*o.width/(l.width*d.width)),i({visibleArea:l,type:"resize"}));l=Se(l,h),h!==1&&(d.height/=h,d.width/=h),l=ae(l=fe(l,lt(se(c),se(l))),i({visibleArea:l,type:"move"})),c=ae(c,rn(Pe(l),a))}return{coordinates:c,visibleArea:l}}function Du(e){var t=e.event,i=e.coordinates,o=e.visibleArea,r=e.getAreaRestrictions,s=I({},o),a=I({},i);if(t.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),l=Math.max(0,a.height-s.height);c>l?s=Se(s,Math.min(a.width/s.width,ct(s,r({visibleArea:s,type:"resize"})))):l>c&&(s=Se(s,Math.min(a.height/s.height,ct(s,r({visibleArea:s,type:"resize"}))))),s=ae(s=fe(s,nn(dt(a,Pe(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Fu(e){var t=e.imageSize,i=e.visibleArea,o=e.coordinates,r=i||t;return{left:(i?i.left:0)+r.width/2-o.width/2,top:(i?i.top:0)+r.height/2-o.height/2}}function Ou(e){var t=e.imageSize,i=e.visibleArea,o=e.aspectRatio,r=e.sizeRestrictions,s=i||t,a=Math.min(o.maximum||1/0,Math.max(o.minimum||0,G(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return De(I(I({},c),{aspectRatio:o,sizeRestrictions:r}))}function qu(e){var t,i,o=e.imageSize,r=e.visibleArea,s=e.boundaries,a=e.aspectRatio,c=e.sizeRestrictions,l=e.stencilSize,d=r||o;return G(d)>G(s)?i=(t=l.height*d.height/s.height)*G(l):t=(i=l.width*d.width/s.width)/G(l),De({width:i,height:t,aspectRatio:a,sizeRestrictions:c})}function Hu(e){var t=e.getAreaRestrictions,i=e.coordinates,o=e.imageSize,r=G(e.boundaries);if(i){var s={height:Math.max(i.height,o.height),width:Math.max(i.width,o.width)},a=Vr({width:G(s)>r?s.width:s.height*r,height:G(s)>r?s.width/r:s.height},ii(t())),c={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},l=At(i,Pe(I({left:0,top:0},o))),d={};return!l.left&&!l.right&&c.width<=o.width&&(d.left=0,d.right=o.width),!l.top&&!l.bottom&&c.height<=o.height&&(d.top=0,d.bottom=o.height),ae(c,d)}var h=G(o);return a={height:h>r?o.height:o.width/r,width:h>r?o.height*r:o.width},{left:o.width/2-a.width/2,top:o.height/2-a.height/2,width:a.width,height:a.height}}function sn(e,t){return Dr(e,Pe(t))}function Uu(e){var t=e.event,i=e.coordinates,o=e.visibleArea,r=e.sizeRestrictions,s=e.getAreaRestrictions,a=e.positionRestrictions,c=e.adjustStencil,l=t.scale,d=t.move,h=I({},o),f=I({},i),m=1,g=1,p=l.factor&&Math.abs(l.factor-1)>.001;h=fe(h,{left:d.left||0,top:d.top||0});var k={stencil:{minimum:Math.max(r.minWidth?r.minWidth/f.width:0,r.minHeight?r.minHeight/f.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/f.width:1/0,r.maxHeight?r.maxHeight/f.height:1/0,ct(f,a))},area:{maximum:ct(h,s({visibleArea:h,type:"resize"}))}};l.factor&&p&&(l.factor<1?(g=Math.max(l.factor,k.stencil.minimum))>1&&(g=1):l.factor>1&&(g=Math.min(l.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(g=1)),g&&(h=Se(h,g,l.center));var w=i.left-o.left,M=o.width+o.left-(i.width+i.left),F=i.top-o.top,O=o.height+o.top-(i.height+i.top);return h=ae(h=fe(h,dt(h,{left:a.left!==void 0?a.left-w*g:void 0,top:a.top!==void 0?a.top-F*g:void 0,bottom:a.bottom!==void 0?a.bottom+O*g:void 0,right:a.right!==void 0?a.right+M*g:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*g,f.height=f.height*g,f.left=h.left+w*g,f.top=h.top+F*g,f=ae(f,rn(Pe(h),a)),l.factor&&p&&c&&(l.factor>1?m=Math.min(k.area.maximum,l.factor)/g:l.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,l.factor/g)),m!==1&&(h=fe(h=ae(h=Se(h,m,l.factor>1?l.center:se(f)),s({visibleArea:h,type:"move"})),nn(dt(f,Pe(h)))))),{coordinates:f,visibleArea:h}}function Wu(e){var t=e.aspectRatio,i=e.getAreaRestrictions,o=e.coordinates,r=e.visibleArea,s=e.sizeRestrictions,a=e.positionRestrictions,c=e.imageSize,l=e.previousImageSize,d=e.angle,h=I({},o),f=I({},r),m=We(se(I({left:0,top:0},l)),d);return(h=I(I({},De({sizeRestrictions:s,aspectRatio:t,width:h.width,height:h.height})),We(se(h),d))).left-=m.left-c.width/2+h.width/2,h.top-=m.top-c.height/2+h.height/2,f=Se(f,on(f,i({visibleArea:f,type:"resize"}))),{coordinates:h=ae(h,a),visibleArea:f=ae(f=fe(f,lt(se(h),se(o))),i({visibleArea:f,type:"move"}))}}function _u(e){var t=e.flip,i=e.previousFlip,o=e.rotate,r=e.getAreaRestrictions,s=e.coordinates,a=e.visibleArea,c=e.imageSize,l=I({},s),d=I({},a),h=i.horizontal!==t.horizontal,f=i.vertical!==t.vertical;if(h||f){var m=We({left:c.width/2,top:c.height/2},-o),g=We(se(l),-o),p=We({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},o);l=fe(l,lt(p,se(l))),g=We(se(d),-o),d=ae(d=fe(d,lt(p=We({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},o),se(d))),r({visibleArea:d,type:"move"}))}return{coordinates:l,visibleArea:d}}function qr(e){var t=e.directions,i=e.coordinates,o=e.positionRestrictions,r=o===void 0?{}:o,s=e.sizeRestrictions,a=e.preserveRatio,c=e.compensate,l=I({},t),d=ze(i,l).width,h=ze(i,l).height;d<0&&(l.left<0&&l.right<0?(l.left=-(i.width-s.minWidth)/(l.left/l.right),l.right=-(i.width-s.minWidth)/(l.right/l.left)):l.left<0?l.left=-(i.width-s.minWidth):l.right<0&&(l.right=-(i.width-s.minWidth))),h<0&&(l.top<0&&l.bottom<0?(l.top=-(i.height-s.minHeight)/(l.top/l.bottom),l.bottom=-(i.height-s.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(i.height-s.minHeight):l.bottom<0&&(l.bottom=-(i.height-s.minHeight)));var f=At(ze(i,l),r);c&&(f.left&&f.left>0&&f.right===0?(l.right+=f.left,l.left-=f.left):f.right&&f.right>0&&f.left===0&&(l.left+=f.right,l.right-=f.right),f.top&&f.top>0&&f.bottom===0?(l.bottom+=f.top,l.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(l.top+=f.bottom,l.bottom-=f.bottom),f=At(ze(i,l),r));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Ie.forEach(function(k){var w=f[k];w&&l[k]&&(m[k]=Math.max(0,1-w/l[k]))}),a){var g=Math.min.apply(null,Ie.map(function(k){return m[k]}));g!==1/0&&Ie.forEach(function(k){l[k]*=g})}else Ie.forEach(function(k){m[k]!==1/0&&(l[k]*=m[k])});if(d=ze(i,l).width,h=ze(i,l).height,l.right+l.left&&(d>s.maxWidth?m.width=(s.maxWidth-i.width)/(l.right+l.left):d<s.minWidth&&(m.width=(s.minWidth-i.width)/(l.right+l.left))),l.bottom+l.top&&(h>s.maxHeight?m.height=(s.maxHeight-i.height)/(l.bottom+l.top):h<s.minHeight&&(m.height=(s.minHeight-i.height)/(l.bottom+l.top))),a){var p=Math.min(m.width,m.height);p!==1/0&&Ie.forEach(function(k){l[k]*=p})}else m.width!==1/0&&Nu.forEach(function(k){l[k]*=m.width}),m.height!==1/0&&$u.forEach(function(k){l[k]*=m.height});return l}function an(e,t,i){return t==0&&i==0?e/2:t==0?0:i==0?e:e*Math.abs(t/(t+i))}var Gu=Re("vue-simple-handler"),ju=Re("vue-simple-handler-wrapper"),ri={name:"SimpleHandler",components:{HandlerWrapper:Ir},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var e,t=(Ce(e={},this.horizontalPosition,!!this.horizontalPosition),Ce(e,this.verticalPosition,!!this.verticalPosition),Ce(e,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Ce(e,"hover",this.hover),e);return{default:Q(Gu(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:Q(ju(t),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};ri.render=function(e,t,i,o,r,s){var a=n.resolveComponent("HandlerWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,"vertical-position":i.verticalPosition,"horizontal-position":i.horizontalPosition,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Zu=Re("vue-simple-line"),Ju=Re("vue-simple-line-wrapper"),si={name:"SimpleLine",components:{LineWrapper:Pr},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Q(Zu(Ce({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Q(Ju(Ce({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};si.render=function(e,t,i,o,r,s){var a=n.resolveComponent("LineWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,position:i.position,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var ai=Re("vue-bounding-box"),Xu=["east","west",null],Yu=["south","north",null],Hr={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return ri}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return si}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var e=[];return Xu.forEach(function(t){Yu.forEach(function(i){if(t!==i){var o=Br(t,i),r=o.name,s=o.classname;e.push({name:r,classname:s,verticalDirection:i,horizontalDirection:t})}})}),{points:e}},computed:{style:function(){var e={};return this.width&&this.height&&(e.width="".concat(this.width,"px"),e.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),e},classes:function(){var e=this.handlersClasses,t=this.handlersWrappersClasses,i=this.linesClasses,o=this.linesWrappersClasses;return{root:ai(),handlers:e,handlersWrappers:t,lines:i,linesWrappers:o}},lineNodes:function(){var e=this,t=[];return this.points.forEach(function(i){i.horizontalDirection&&i.verticalDirection||!e.lines[i.name]||t.push({name:i.name,component:e.linesComponent,class:Q(e.classes.lines.default,e.classes.lines[i.name],!e.resizable&&e.classes.lines.disabled),wrapperClass:Q(e.classes.linesWrappers.default,e.classes.linesWrappers[i.name],!e.resizable&&e.classes.linesWrappers.disabled),hoverClass:e.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!e.resizable})}),t},handlerNodes:function(){var e=this,t=[],i=this.width,o=this.height;return this.points.forEach(function(r){if(e.handlers[r.name]){var s={name:r.name,component:e.handlersComponent,class:Q(e.classes.handlers.default,e.classes.handlers[r.name]),wrapperClass:Q(e.classes.handlersWrappers.default,e.classes.handlersWrappers[r.name]),hoverClass:e.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!e.resizable};if(i&&o){var a=r.horizontalDirection,c=r.verticalDirection,l=a==="east"?i:a==="west"?0:i/2,d=c==="south"?o:c==="north"?0:o/2;s.wrapperClass=ai("handler"),s.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(d,"px)")},e.transitions&&e.transitions.enabled&&(s.wrapperStyle.transition="".concat(e.transitions.time,"ms ").concat(e.transitions.timingFunction))}else s.wrapperClass=ai("handler",Ce({},r.classname,!0));t.push(s)}}),t}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(e,t,i){var o,r=e.shift(),s=r.left,a=r.top,c={left:0,right:0,top:0,bottom:0};t==="west"?c.left-=s:t==="east"&&(c.right+=s),i==="north"?c.top-=a:i==="south"&&(c.bottom+=a),!i&&t?o="width":i&&!t&&(o="height"),this.resizable&&this.$emit("resize",new Mu(c,{allowedDirections:{left:t==="west"||!t,right:t==="east"||!t,bottom:i==="south"||!i,top:i==="north"||!i},preserveAspectRatio:e.nativeEvent&&e.nativeEvent.shiftKey,respectDirection:o}))}},emits:["resize","resize-end"]};Hr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[n.renderSlot(e.$slots,"default"),n.createVNode("div",null,[(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.lineNodes,function(a){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[1]||(t[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.handlerNodes,function(a){return n.openBlock(),n.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[2]||(t[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Qu=Re("vue-draggable-area"),Ur={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Qu()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(e){if(e.cancelable){var t=this.movable&&e.touches.length===1;t&&(this.touches=et(e.touches)),(this.touchStarted||t)&&(e.preventDefault(),e.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(e){this.touches.length>=1&&(this.touchStarted?(this.processMove(e,e.touches),e.preventDefault(),e.stopPropagation()):$r({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:e.touches[0].clientX,y:e.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(e){if(this.movable&&e.button===0){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.cancelable&&e.preventDefault(),e.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.container.getBoundingClientRect(),i=t.left,o=t.top;this.anchor={x:e.clientX-i,y:e.clientY-o}},processMove:function(e,t){var i=et(t);if(this.touches.length){var o=this.$refs.container.getBoundingClientRect(),r=o.left,s=o.top;this.touches.length===1&&i.length===1&&this.$emit("move",new Kn({left:i[0].clientX-(r+this.anchor.x),top:i[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Ur.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],544)};function li(e){var t,i;return{rotate:e.rotate||0,flip:{horizontal:((t=e==null?void 0:e.flip)===null||t===void 0?void 0:t.horizontal)||!1,vertical:((i=e==null?void 0:e.flip)===null||i===void 0?void 0:i.vertical)||!1}}}function Ku(e){return new Promise(function(t,i){try{if(e)if(/^data:/i.test(e))t(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var d=atob(l),h=d.length,f=new ArrayBuffer(h),m=new Uint8Array(f),g=0;g<h;g++)m[g]=d.charCodeAt(g);return f}(e));else if(/^blob:/i.test(e)){var o=new FileReader;o.onload=function(l){t(l.target.result)},s=e,a=function(l){o.readAsArrayBuffer(l)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?t(r.response):i("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",e,!0),r.responseType="arraybuffer",r.send(null)}else i("Error: the image is empty")}catch(l){i(l)}var s,a,c})}function Wr(e){var t=e.rotate,i=e.flip,o=e.scaleX,r=e.scaleY,s="";return s+=" rotate("+t+"deg) ",s+=" scaleX("+o*(i.horizontal?-1:1)+") ",s+=" scaleY("+r*(i.vertical?-1:1)+") "}function eh(e){try{var t,i=new DataView(e),o=void 0,r=void 0,s=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var c=i.byteLength,l=2;l+1<c;){if(i.getUint8(l)===255&&i.getUint8(l+1)===225){s=l;break}l++}if(s&&(o=s+10,function(g,p,k){var w,M="";for(w=p,k+=p;w<k;w++)M+=String.fromCharCode(g.getUint8(w));return M}(i,s+4,4)==="Exif")){var d=i.getUint16(o);if(((r=d===18761)||d===19789)&&i.getUint16(o+2,r)===42){var h=i.getUint32(o+4,r);h>=8&&(a=o+h)}}if(a){for(var f=i.getUint16(a,r),m=0;m<f;m++)if(l=a+12*m+2,i.getUint16(l,r)===274){l+=8,t=i.getUint16(l,r),i.setUint16(l,1,r);break}}return t}catch{return null}}function _r(e,t){var i=t.getBoundingClientRect(),o=i.left,r=i.top,s={left:0,top:0},a=0;return e.forEach(function(c){s.left+=(c.clientX-o)/e.length,s.top+=(c.clientY-r)/e.length}),e.forEach(function(c){a+=$r({x:s.left,y:s.top},{x:c.clientX-o,y:c.clientY-r})}),{centerMass:s,spread:a,count:e.length}}var Gr={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Yn(this.processEnd),this.touches=[]},methods:{processMove:function(e,t){if(this.touches.length){if(this.touches.length===1&&t.length===1)this.$emit("move",new Rt({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=_r(t,this.$refs.container),o=this.oldGeometricProperties;o.count===i.count&&o.count>1&&this.$emit("resize",new Rt({left:o.centerMass.left-i.centerMass.left,top:o.centerMass.top-i.centerMass.top},{factor:o.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(e){return this.eventsFilter?this.eventsFilter(e,this.transforming)!==!1:(e.preventDefault(),e.stopPropagation(),!0)},onTouchStart:function(e){if(e.cancelable&&(this.touchMove||this.touchResize&&e.touches.length>1)&&this.processEvent(e)){var t=this.$refs.container,i=t.getBoundingClientRect(),o=i.left,r=i.top,s=i.bottom,a=i.right;this.touches=et(e.touches).filter(function(c){return c.clientX>o&&c.clientX<a&&c.clientY>r&&c.clientY<s}),this.oldGeometricProperties=_r(this.touches,t)}},onTouchEnd:function(e){e.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(e){var t=this;if(this.touches.length){var i=et(e.touches).filter(function(o){return!o.identifier||t.touches.find(function(r){return r.identifier===o.identifier})});this.processEvent(e)&&(this.processMove(e,i),this.processStart())}},onMouseDown:function(e){if(this.mouseMove&&"buttons"in e&&e.buttons===1&&this.processEvent(e)){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(e){this.touches.length&&this.processEvent(e)&&this.processMove(e,[{clientX:e.clientX,clientY:e.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(e){if(this.wheelResize&&this.processEvent(e)){var t=this.$refs.container.getBoundingClientRect(),i=t.left,o=t.top,r=1+this.wheelResize.ratio*(a=e.deltaY||e.detail||e.wheelDelta,(c=+a)==0||Nr(c)?c:c>0?1:-1),s={left:e.clientX-i,top:e.clientY-o};this.$emit("resize",new Rt({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};Gr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:t[3]||(t[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],544)};var ci={components:{TransformableImage:Gr},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};ci.render=function(e,t,i,o,r,s){var a=n.resolveComponent("transformable-image");return n.openBlock(),n.createBlock(a,{"touch-move":i.touchMove,"touch-resize":i.touchResize,"mouse-move":i.mouseMove,"wheel-resize":i.wheelResize,onMove:t[1]||(t[1]=function(c){return e.$emit("move",c)}),onResize:t[2]||(t[2]=function(c){return e.$emit("resize",c)})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var ln=Re("vue-preview"),jr={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:ln({fill:this.fill}),wrapper:ln("wrapper"),imageWrapper:ln("image-wrapper"),image:Q(ln("image"),this.imageClass)}},style:function(){if(this.fill)return{};var e={};return this.width&&(e.width="".concat(this.size.width,"px")),this.height&&(e.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},wrapperStyle:function(){var e={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){if(this.coordinates&&this.image){var e=this.coordinates.width/this.size.width,t=_(_({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/e,scaleY:1/e}),i=this.imageSize.width,o=this.imageSize.height,r=Lr({width:i,height:o},t.rotate),s={width:"".concat(i,"px"),height:"".concat(o,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-r.width)*t.scaleX/2,top:(o-r.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*i/2,top:(1-t.scaleY)*o/2}};return s.transform=`translate(
42
- `.concat(-this.coordinates.left/e-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/e-a.rotate.top-a.scale.top,"px) ")+Wr(t),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(e){(e.width||e.height)&&this.onChangeImage()}},mounted:function(){var e=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){e.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var e=this.$refs.image;this.calculatedImageSize.height=e.naturalHeight,this.calculatedImageSize.width=e.naturalWidth},refresh:function(){var e=this.$refs.root;this.width||(this.calculatedSize.width=e.clientWidth),this.height||(this.calculatedSize.height=e.clientHeight)},onChangeImage:function(){var e=this.$refs.image;e&&e.complete&&this.refreshImage(),this.refresh()}}};jr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[n.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[n.withDirectives(n.createVNode("img",{ref:"image",src:i.image&&i.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[n.vShow,i.image&&i.image.src]])],6)],6)};var Zr={components:{Preview:jr},inheritAttrs:!1};Zr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("preview");return n.openBlock(),n.createBlock(a,n.mergeProps(e.$attrs,{fill:!0}),null,16)};var di=Re("vue-rectangle-stencil"),Jr={name:"RectangleStencil",components:{StencilPreview:Zr,BoundingBox:Hr,DraggableArea:Ur},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return ri}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return si}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Q(di({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Q(di("preview"),this.previewClass),boundingBox:Q(di("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,i=e.width,o=e.left,r=e.top,s={width:"".concat(i,"px"),height:"".concat(t,"px"),transform:"translate(".concat(o,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Jr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("stencil-preview"),c=n.resolveComponent("draggable-area"),l=n.resolveComponent("bounding-box");return n.openBlock(),n.createBlock("div",{class:s.classes.stencil,style:s.style},[n.createVNode(l,{width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,transitions:i.transitions,class:s.classes.boundingBox,handlers:i.handlers,"handlers-component":i.handlersComponent,"handlers-classes":i.handlersClasses,"handlers-wrappers-classes":i.handlersWrappersClasses,lines:i.lines,"lines-component":i.linesComponent,"lines-classes":i.linesClasses,"lines-wrappers-classes":i.linesWrappersClasses,resizable:i.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:n.withCtx(function(){return[n.createVNode(c,{movable:i.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:n.withCtx(function(){return[n.createVNode(a,{image:i.image,coordinates:i.coordinates,width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,class:s.classes.preview,transitions:i.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var th=["transitions"],Fe=Re("vue-advanced-cropper"),Xr={name:"Cropper",components:{BackgroundWrapper:ci},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Jr}},backgroundWrapperComponent:{type:[Object,String],default:function(){return ci}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(e){return Pu.indexOf(e)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(e){return!(typeof e=="string"&&e!=="fill"&&e!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(e){var t=e.event,i=e.coordinates,o=e.aspectRatio,r=e.positionRestrictions,s=e.sizeRestrictions,a=I(I({},i),{right:i.left+i.width,bottom:i.top+i.height}),c=t.params||{},l=I({},t.directions),d=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(l.left=0,l.right=0),s.heightFrozen&&(l.top=0,l.bottom=0),Ie.forEach(function(L){d[L]||(l[L]=0)});var h=ze(a,l=qr({coordinates:a,directions:l,sizeRestrictions:s,positionRestrictions:r})).width,f=ze(a,l).height,m=c.preserveRatio?G(a):ni(h/f,o);if(m){var g=c.respectDirection;if(g||(g=a.width>=a.height||m===1?"width":"height"),g==="width"){var p=h/m-a.height;if(d.top&&d.bottom){var k=l.top,w=l.bottom;l.bottom=an(p,w,k),l.top=an(p,k,w)}else d.bottom?l.bottom=p:d.top?l.top=p:d.right?l.right=0:d.left&&(l.left=0)}else if(g==="height"){var M=a.width-f*m;if(d.left&&d.right){var F=l.left,O=l.right;l.left=-an(M,F,O),l.right=-an(M,O,F)}else d.left?l.left=-M:d.right?l.right=-M:d.top?l.top=0:d.bottom&&(l.bottom=0)}l=qr({directions:l,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:c.compensate})}return h=ze(a,l).width,f=ze(a,l).height,(m=c.preserveRatio?G(a):ni(h/f,o))&&Math.abs(m-h/f)>.001&&Ie.forEach(function(L){d[L]||(l[L]=0)}),oi({event:new Kn({left:-l.left,top:-l.top}),coordinates:{width:i.width+l.right+l.left,height:i.height+l.top+l.bottom,left:i.left,top:i.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:oi},initStretcher:{type:Function,default:function(e){var t=e.stretcher,i=e.imageSize,o=G(i);t.style.width=i.width+"px",t.style.height=t.clientWidth/o+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(e){var t=e.visibleArea,i=e.coordinates,o=e.aspectRatio,r=e.sizeRestrictions,s=e.positionRestrictions,a=I(I({},i),De({width:i.width,height:i.height,aspectRatio:o,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,r.minHeight),minWidth:Math.min(t.width,r.minWidth)}}));return a=ae(a=fe(a,lt(se(i),se(a))),rn(Pe(t),s))}},fitVisibleArea:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,o=e.getAreaRestrictions,r=e.coordinates,s=I({},t);s.height=s.width/G(i),s.top+=(t.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=Se(s,Math.max(r.height/s.height,r.width/s.width)));var a=nn(dt(r,Pe(s=Se(s,on(s,o({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=ae(s=fe(s,a),o({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,o=e.imageSize,r=e.imageRestriction,s=e.type,a={};return r==="fill-area"?a={left:0,top:0,right:o.width,bottom:o.height}:r==="fit-area"&&(G(i)>G(o)?(a={top:0,bottom:o.height},t&&s==="move"&&(t.width>o.width?(a.left=-(t.width-o.width)/2,a.right=o.width-a.left):(a.left=0,a.right=o.width))):(a={left:0,right:o.width},t&&s==="move"&&(t.height>o.height?(a.top=-(t.height-o.height)/2,a.bottom=o.height-a.top):(a.top=0,a.bottom=o.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(e){return{minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.imageSize,i={};return e.imageRestriction!=="none"&&(i={left:0,top:0,right:t.width,bottom:t.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:_({},zr)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var e=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(e))+Math.abs(this.imageAttributes.height*Math.sin(e)),height:Math.abs(this.imageAttributes.width*Math.sin(e))+Math.abs(this.imageAttributes.height*Math.cos(e))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var e=Qn(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Qn(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:e}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var e=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:ne(this.minWidth)?0:tn(this.minWidth),minHeight:ne(this.minHeight)?0:tn(this.minHeight),maxWidth:ne(this.maxWidth)?1/0:tn(this.maxWidth),maxHeight:ne(this.maxHeight)?1/0:tn(this.maxHeight)});if(e=function(o){var r=o.areaRestrictions,s=o.sizeRestrictions,a=o.boundaries,c=o.positionRestrictions,l=I(I({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,c.bottom-c.top));var d=ii(r),h=Vr(a,d);return d.width<1/0&&(!l.maxWidth||l.maxWidth>h.width)&&(l.maxWidth=Math.min(l.maxWidth,h.width)),d.height<1/0&&(!l.maxHeight||l.maxHeight>h.height)&&(l.maxHeight=Math.min(l.maxHeight,h.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({sizeRestrictions:e,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var t=this.getStencilSize(),i=ii(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));e.maxWidth=Math.min(e.maxWidth,i.width*t.width/this.boundaries.width),e.maxHeight=Math.min(e.maxHeight,i.height*t.height/this.boundaries.height),e.maxWidth<e.minWidth&&(e.minWidth=e.maxWidth),e.maxHeight<e.minHeight&&(e.minHeight=e.maxHeight)}return e}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Fe(),image:Q(Fe("image"),this.imageClass),stencil:Fe("stencil"),boundaries:Q(Fe("boundaries"),this.boundariesClass),stretcher:Q(Fe("stretcher")),background:Q(Fe("background"),this.backgroundClass),foreground:Q(Fe("foreground"),this.foregroundClass),imageWrapper:Q(Fe("image-wrapper")),cropperWrapper:Q(Fe("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var e=this.coordinates,t=e.width,i=e.height,o=e.left,r=e.top;return{width:t/this.coefficient,height:i/this.coefficient,left:(o-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var e={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(e.opacity="0"),e},imageStyle:function(){var e=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},t={left:(e.width-this.imageSize.width)/(2*this.coefficient),top:(e.height-this.imageSize.height)/(2*this.coefficient)},i={left:(1-1/this.coefficient)*e.width/2,top:(1-1/this.coefficient)*e.height/2},o=_(_({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/e.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/e.height)}),r={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t.left-i.left-this.imageTransforms.translateX,"px, ").concat(-t.top-i.top-this.imageTransforms.translateY,"px)")+Wr(o)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var e=this;this.$nextTick(function(){e.resetCoordinates(),e.runAutoZoom("setCoordinates"),e.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(e,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(i){return e[i]!==t[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Yn(this.update,this.debounce),this.debouncedDisableTransitions=Yn(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var e=this.initialized?this.prepareResult(_({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:_({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:e,visibleArea:this.visibleArea?_({},this.visibleArea):null,imageTransforms:t,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:e,visibleArea:this.visibleArea?_({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new Rt({},{factor:1/e,center:t}),{normalize:!1,transitions:r})},move:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new Rt({left:e||0,top:t||0}),{normalize:!1,transitions:r})},setCoordinates:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.autoZoom,r=o===void 0||o,s=i.transitions,a=s===void 0||s;this.$nextTick(function(){t.imageLoaded?(t.transitionsActive||(a&&t.enableTransitions(),t.coordinates=t.applyTransform(e),r&&t.runAutoZoom("setCoordinates"),a&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=e})},refresh:function(){var e=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then(function(){e.onChange()}):this.resetVisibleArea().then(function(){e.onChange()})},reset:function(){var e=this;return this.resetVisibleArea().then(function(){e.onChange(!1)})},awaitRender:function(e){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){e(),t.awaiting=!1}))},prepareResult:function(e){return this.roundResult?function(t){var i=t.coordinates,o=t.sizeRestrictions,r=t.positionRestrictions,s={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return s.width>o.maxWidth?s.width=Math.floor(i.width):s.width<o.minWidth&&(s.width=Math.ceil(i.width)),s.height>o.maxHeight?s.height=Math.floor(i.height):s.height<o.minHeight&&(s.height=Math.ceil(i.height)),ae(s,r)}(_(_({},this.getPublicProperties()),{},{positionRestrictions:sn(this.positionRestrictions,this.visibleArea),coordinates:e})):e},processAutoZoom:function(e,t,i,o){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?Vu:this.autoZoom?Lu:Du);var s=r({event:{type:e,params:o},visibleArea:t,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return _(_({},s),{},{changed:!Tr(s.visibleArea,t)||!Tr(s.coordinates,i)})},runAutoZoom:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,o=i!==void 0&&i,r=xu(t,th),s=this.processAutoZoom(e,this.visibleArea,this.coordinates,r),a=s.visibleArea,c=s.coordinates,l=s.changed;o&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,o&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(e){return function(t){var i=t.event,o=t.visibleArea,r=t.coefficient;if(i.type==="manipulateImage")return I(I({},i),{move:{left:i.move&&i.move.left?r*i.move.left:0,top:i.move&&i.move.top?r*i.move.top:0},scale:{factor:i.scale&&i.scale.factor?i.scale.factor:1,center:i.scale&&i.scale.center?{left:i.scale.center.left*r+o.left,top:i.scale.center.top*r+o.top}:null}});if(i.type==="resize"){var s=I(I({},i),{directions:I({},i.directions)});return Ie.forEach(function(c){s.directions[c]*=r}),s}if(i.type==="move"){var a=I(I({},i),{directions:I({},i.directions)});return Iu.forEach(function(c){a.directions[c]*=r}),a}return i}(_(_({},this.getPublicProperties()),{},{event:e}))},getCanvas:function(){if(this.$refs.canvas){var e=this.$refs.canvas,t=this.$refs.image,i=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,l,d){var h=d.rotate,f=d.flip,m={width:l.naturalWidth,height:l.naturalHeight},g=Lr(m,h),p=c.getContext("2d");c.height=g.height,c.width=g.width,p.save();var k=We(se(I({left:0,top:0},m)),h);return p.translate(-(k.left-g.width/2),-(k.top-g.height/2)),p.rotate(h*Math.PI/180),p.translate(f.horizontal?m.width:0,f.vertical?m.height:0),p.scale(f.horizontal?-1:1,f.vertical?-1:1),p.drawImage(l,0,0,m.width,m.height),p.restore(),c}(this.$refs.sourceCanvas,t,this.imageTransforms):t,o=_({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(c){return c.find(function(l){return d=l,!Number.isNaN(parseFloat(d))&&isFinite(d);var d})},s=De({sizeRestrictions:{minWidth:r([o.width,o.minWidth])||0,minHeight:r([o.height,o.minHeight])||0,maxWidth:r([o.width,o.maxWidth])||1/0,maxHeight:r([o.height,o.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(o.maxArea&&s.width*s.height>o.maxArea){var a=Math.sqrt(o.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,l,d,h,f){c.width=h?h.width:d.width,c.height=h?h.height:d.height;var m=c.getContext("2d");m.clearRect(0,0,c.width,c.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,c.width,c.height),m.save()));var g=d.left<0?-d.left:0,p=d.top<0?-d.top:0;m.drawImage(l,d.left+g,d.top+p,d.width,d.height,g*(c.width/d.width),p*(c.height/d.height),c.width,c.height)}(e,i,this.coordinates,s,o),e}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.visibleArea&&t?zu(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,o=this.visibleArea&&t?sn(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Tu({transform:e,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:o,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var e=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?qu:Ou);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var o=at(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,r=this.defaultPosition||Fu,s=[o,function(a){var c=a.coordinates;return _({},at(r)?r({coordinates:c,imageSize:e.imageSize,visibleArea:e.visibleArea}):e.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,et(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var e=this;this.imageLoaded=!1,setTimeout(function(){var t=e.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),e.coordinates=e.defaultCoordinates(),e.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var e=this,t=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then(function(){var o={cropper:i,imageSize:e.imageSize};if(at(e.defaultBoundaries)?e.boundaries=e.defaultBoundaries(o):e.defaultBoundaries==="fit"?e.boundaries=function(r){var s=r.cropper,a=r.imageSize,c=s.clientHeight,l=s.clientWidth,d=c,h=a.width*c/a.height;return h>l&&(h=l,d=a.height*l/a.width),{width:h,height:d}}(o):e.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(o),!e.boundaries.width||!e.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var e=this;return this.appliedImageTransforms=_(_({},this.defaultImageTransforms),{},{flip:_({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){e.priority!=="visible-area"&&(e.visibleArea=null,e.resetCoordinates());var t,i,o,r,s,a,c=e.defaultVisibleArea||Hu;e.visibleArea=at(c)?c({imageSize:e.imageSize,boundaries:e.boundaries,coordinates:e.priority!=="visible-area"?e.coordinates:null,getAreaRestrictions:e.getAreaRestrictions,stencilSize:e.getStencilSize()}):e.defaultVisibleArea,e.visibleArea=(t={visibleArea:e.visibleArea,boundaries:e.boundaries,getAreaRestrictions:e.getAreaRestrictions},i=t.visibleArea,o=t.boundaries,r=t.getAreaRestrictions,s=I({},i),a=G(o),s.width/s.height!==a&&(s.height=s.width/a),ae(s,r({visibleArea:s,type:"move"}))),e.priority==="visible-area"?e.resetCoordinates():e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("resetVisibleArea")}).catch(function(){e.visibleArea=null})},updateVisibleArea:function(){var e=this;return this.updateBoundaries().then(function(){e.visibleArea=e.fitVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,visibleArea:e.visibleArea,coordinates:e.coordinates,getAreaRestrictions:e.getAreaRestrictions}),e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("updateVisibleArea")}).catch(function(){e.visibleArea=null})},onChange:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];e&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var e,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(Rr(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(d){return d.port||((d.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&l(c)==l(s))}(this.src)){var i=ne(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var o=(e=this.src,new Promise(function(r){Ku(e).then(function(s){var a=eh(s);r(s?{source:e,arrayBuffer:s,orientation:a}:{source:e,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:e,arrayBuffer:null,orientation:null})})}));setTimeout(function(){o.then(t.onParseImage)},this.transitionTime)}else setTimeout(function(){t.onParseImage({source:t.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var e=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){e.$emit("ready"),e.onChange(!1)}))},onParseImage:function(e){var t=this,i=e.source,o=e.arrayBuffer,r=e.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,o&&r&&r>1?Mr(i)||!Rr(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([o])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var l=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(o):this.imageAttributes.src=i,at(this.defaultTransforms)?this.appliedImageTransforms=li(this.defaultTransforms()):en(this.defaultTransforms)?this.appliedImageTransforms=li(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=li({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=_(_({},this.appliedImageTransforms),{},{flip:_({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=t.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?t.onSuccessLoadImage():t.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(e){var t=this;this.transitionsOptions.enabled||this.awaitRender(function(){t.coordinates=t.moveAlgorithm(_(_({},t.getPublicProperties()),{},{positionRestrictions:sn(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(e)})),t.onChange()})},onResize:function(e){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var i=t.sizeRestrictions,o=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(_(_({},t.getPublicProperties()),{},{positionRestrictions:sn(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,t.visibleArea.width),maxHeight:Math.min(i.maxHeight,t.visibleArea.height),minWidth:Math.max(i.minWidth,o),minHeight:Math.max(i.minHeight,o)},event:t.normalizeEvent(e)})),t.onChange(),t.ticking=!1})},onManipulateImage:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=t.transitions,o=i!==void 0&&i,r=t.normalize,s=r===void 0||r;o&&this.enableTransitions();var a=Uu(_(_({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(e):e,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,l=a.coordinates;this.visibleArea=c,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),o&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.visibleArea,i=e.type,o=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:o})},getAspectRatio:function(e){var t,i,o=this.stencilProps,r=o.aspectRatio,s=o.minAspectRatio,a=o.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();t=c.minimum,i=c.maximum}if(ne(t)&&(t=ne(r)?s:r),ne(i)&&(i=ne(r)?a:r),!e&&(ne(t)||ne(i))){var l=this.getStencilSize(),d=l?G(l):null;ne(t)&&(t=Ar(d)?d:void 0),ne(i)&&(i=Ar(d)?d:void 0)}return{minimum:t,maximum:i}},getStencilSize:function(){if(this.stencilSize)return e={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},t=e.boundaries,i=e.stencilSize,o=e.aspectRatio,ni(G(r=at(i)?i({boundaries:t,aspectRatio:o}):i),o)&&(r=De({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:o.minimum,maximum:o.maximum}})),(r.width>t.width||r.height>t.height)&&(r=De({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:G(r),maximum:G(r)}})),r;var e,t,i,o,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return _({},zr)},flip:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;if(!this.transitionsActive){r&&this.enableTransitions();var s=_({},this.imageTransforms.flip),a=_u({flip:{horizontal:e?!s.horizontal:s.horizontal,vertical:t?!s.vertical:s.vertical},previousFlip:s,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,l=a.coordinates;e&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=l,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,o=i===void 0||i;if(!this.transitionsActive){o&&this.enableTransitions();var r=_({},this.imageSize);this.appliedImageTransforms.rotate+=e;var s=Wu({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:e,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,l=this.processAutoZoom("rotateImage",a,c);a=l.visibleArea,c=l.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),o&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},nh={key:0,ref:"canvas",style:{display:"none"}},ih={key:1,ref:"sourceCanvas",style:{display:"none"}};Xr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"cropper",class:s.classes.cropper},[n.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),n.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),n.createVNode("div",{class:s.classes.imageWrapper},[n.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:t[1]||(t[1]=n.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),n.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.stencilComponent),n.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},i.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[n.vShow,r.imageLoaded]]),i.canvas?(n.openBlock(),n.createBlock("canvas",nh,null,512)):n.createCommentVNode("",!0),i.canvas?(n.openBlock(),n.createBlock("canvas",ih,null,512)):n.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const oh={class:"background-container"},rh={class:"tools-line"},sh={class:"line-block"},ah={class:"dialog-footer"},Yr=v(n.defineComponent({__name:"ImageCropper",props:{open:{type:Boolean,required:!0},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","close"],setup(e,{emit:t}){const i=e,o=t,r=x.S.Cropper.Cropper(),s=n.ref(i.defaultRatio);r.ratio=s.value;const a=async()=>{s.value===0?r.ratio=0:r.ratio=s.value},c=n.ref({width:0,height:0,left:0,top:0}),l=n.ref(!1),d=n.ref(""),h=n.ref(),f=async()=>{l.value=!0;const g=h.value.getResult();r.ratio===0&&(s.value=c.value.width/c.value.height),g&&g.canvas.toBlob(p=>{var k;o("crop",{blob:p,src:(k=g.canvas)==null?void 0:k.toDataURL()})}),l.value=!1},m=g=>{var p;c.value=g.coordinates,d.value=(p=g.canvas)==null?void 0:p.toDataURL()};return(g,p)=>{const k=n.resolveComponent("PSelect"),w=n.resolveComponent("el-form-item"),M=n.resolveComponent("el-form"),F=n.resolveComponent("el-button"),O=n.resolveComponent("PModal");return n.openBlock(),n.createBlock(O,{show:e.open,title:"Настройка изображения","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},{default:n.withCtx(()=>[n.createElementVNode("div",oh,[n.createElementVNode("div",rh,[n.createElementVNode("div",sh,[n.createVNode(M,null,{default:n.withCtx(()=>[n.createVNode(w,{label:"Задайте пропорции фото:"},{default:n.withCtx(()=>[n.createVNode(k,{modelValue:n.unref(s),"onUpdate:modelValue":p[0]||(p[0]=L=>n.isRef(s)?s.value=L:null),label:"Пропорции изображения",onChange:a},{default:n.withCtx(()=>p[1]||(p[1]=[n.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),n.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),n.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),n.createElementVNode("option",{label:"3:2",value:3/2},null,-1),n.createElementVNode("option",{label:"16:9",value:16/9},null,-1),n.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),n.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"])]),_:1})]),_:1})])]),n.createVNode(n.unref(Xr),{ref_key:"cropperRef",ref:h,src:n.unref(r).src,"stencil-props":{aspectRatio:n.unref(r).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:m},null,8,["src","stencil-props"]),n.createElementVNode("div",ah,[n.createVNode(F,{loading:n.unref(l),type:"success",onClick:f},{default:n.withCtx(()=>p[2]||(p[2]=[n.createTextVNode(" Сохранить ")])),_:1},8,["loading"])])])]),_:1},8,["show"])}}}),[["__scopeId","data-v-b2600930"]]),lh={key:0,class:"blur"},ch={style:{display:"flex","justify-content":"center"}},cn=v(n.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(e,{emit:t}){const i=e,o=t,r=i.customClass!==""?i.customClass:"inside-class",s=n.ref(!1),a=n.ref(!1),c=n.ref(!1),l=n.ref(i.close);n.watch(()=>i.close,()=>{a.value=!1});const d=L=>{L.stopPropagation(),L.key==="Escape"&&(i.showSaveDialog?c.value=!0:a.value=!1)};n.watch(a,async()=>{var L,z;await n.nextTick(),a.value?((z=(L=document.getElementById("info-item-opened-content"))==null?void 0:L.querySelector("input"))==null||z.focus(),document.body.addEventListener("keydown",d)):document.body.removeEventListener("keydown",d,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!i.withOpenWindow,l.value!==i.close&&(a.value=!1,l.value=!l.value)},f=n.computed(()=>i.customClass===""?{width:i.width,minHeight:"40px",height:"auto",maxWidth:i.maxWidth,minWidth:i.minWidth,margin:i.baseBoxMargin}:void 0),m=n.computed(()=>a.value&&i.withOpenWindow),g=n.computed(()=>({background:i.background?i.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":i.padding,margin:i.margin,width:m.value?i.openWidth:i.width,height:m.value?i.openHeight:i.height,minHeight:"40px",maxWidth:i.maxWidth,minWidth:i.minWidth,borderColor:s.value||a.value?i.colorSelected:i.borderColor,color:s.value?i.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${i.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(i.withHover,"pointer")})),p=n.computed(()=>({height:m.value?"0":"",overflow:i.closeWindowOverflow,width:i.width})),k=n.computed(()=>({height:m.value?"auto":"0"})),w=n.computed(()=>({color:s.value?i.colorSelected:"#343E5C",fill:s.value?i.colorSelected:"#343E5C",background:i.background})),M=()=>{i.showSaveDialog?c.value=!0:a.value=!1},F=async()=>{await o("keyup-enter"),i.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(L,z)=>{const ye=n.resolveComponent("PString"),ke=n.resolveComponent("PButton"),Ge=n.resolveComponent("PModal"),ht=n.resolveDirective("click-outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)?(n.openBlock(),n.createElementBlock("div",lh)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"base-box",style:n.normalizeStyle(n.unref(f)),onClick:z[2]||(z[2]=n.withModifiers(un=>h(),["prevent","stop"]))},[n.createElementVNode("div",{class:n.normalizeClass(["body",n.unref(r)]),style:n.normalizeStyle(n.unref(g)),onMouseenter:z[0]||(z[0]=un=>e.withHover?s.value=!0:s.value=!1),onMouseleave:z[1]||(z[1]=un=>s.value=!1)},[n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["close-window",e.customClass]),style:n.normalizeStyle(n.unref(p))},[n.renderSlot(L.$slots,"default",{},void 0,!0)],6)),n.unref(a)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:n.normalizeStyle(n.unref(k))},[n.renderSlot(L.$slots,"open-inside-content",{},void 0,!0)],4)),[[ht,M,void 0,{prevent:!0}]]):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-title",style:n.normalizeStyle(n.unref(w))},[n.renderSlot(L.$slots,"title",{},()=>[n.createVNode(ye,{string:e.title,"font-size":"10px",padding:"0 0 0 3px",style:n.normalizeStyle({color:n.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),n.createVNode(Ge,{show:n.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:n.withCtx(()=>[n.createElementVNode("div",ch,[n.createVNode(ke,{text:"Не сохранять",onClick:O}),n.createVNode(ke,{text:"Сохранять",onClick:F})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),Qr=v(n.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=s=>{i.value=!i.value,o("select",s)};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PButton"),d=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(d,{close:n.unref(i),title:e.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,h=>(n.openBlock(),n.createBlock(l,{key:h,type:"admin",color:"blue",text:h,onClick:f=>r(h)},null,8,["text","onClick"]))),128)),n.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>r(void 0))})]),default:n.withCtx(()=>[n.createVNode(c,{string:e.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),dh={class:"mainblock"},uh={class:"mainline"},Kr=v(n.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",dh,[n.createElementVNode("div",uh,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:e.leftWidth,maxWidth:e.leftWidth,background:e.background,display:e.leftWidth!=="0px"?"block":"none"})},[n.renderSlot(t.$slots,"left",{},void 0,!0)],4),n.createElementVNode("div",{class:"mainblock-right",style:n.normalizeStyle({background:e.background})},[n.renderSlot(t.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),hh={class:"message-title"},fh={class:"message-text"},es=v(n.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",hh,n.toDisplayString(e.title),1),n.createElementVNode("div",fh,n.toDisplayString(e.text),1)]))}}),[["__scopeId","data-v-182d0640"]]),mh=n.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(e){const t=n.ref(e.initActiveIdx),i=o=>{t.value=o};return n.watch(()=>e.initActiveIdx,()=>{i(e.initActiveIdx)}),{changeActiveId:i,activeIdx:t}}});function ph(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default",{activeIdx:e.activeIdx,changeActiveId:e.changeActiveId})])}const ts=v(mh,[["render",ph]]),gh=n.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(e,{emit:t}){const i=n.ref(e.activeId==="0"),o=()=>{i.value=!i.value,t("changeActiveId",e.tabId)};return n.onUpdated(()=>{e.activeId&&e.activeId!==e.tabId&&(i.value=!0)}),n.onBeforeMount(()=>{e.activeId&&e.activeId!==e.tabId&&(i.value=!1)}),{collapsed:i,handleItemClick:o}}}),yh=["for"],wh={class:"inside-icon"};function bh(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:"tab",style:n.normalizeStyle({margin:e.margin,height:e.isCollaps&&e.collapsed?"60px":"","box-shadow":e.selectable&&e.activeId===e.tabId?"0px 0px 1px 2px #1979cf":""})},[e.isCollaps&&e.collapsed?(n.openBlock(),n.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:t[0]||(t[0]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},t[3]||(t[3]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):e.isCollaps&&!e.collapsed?(n.openBlock(),n.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:t[1]||(t[1]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},t[4]||(t[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):n.createCommentVNode("",!0),n.createElementVNode("label",{for:e.tabId,onClick:t[2]||(t[2]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},[n.createElementVNode("div",{style:n.normalizeStyle({cursor:e.isCollaps?"pointer":"default",background:e.changeColor?e.background:e.backgroundAttention,padding:e.padding,borderRadius:"5px"}),class:"tab-name"},[n.createElementVNode("div",wh,[n.renderSlot(e.$slots,"icon",{},void 0,!0)]),e.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-in",style:n.normalizeStyle({marginRight:e.isCollaps?"50px":"0",width:e.isCollaps?"calc(100% - 50px)":"100%"})},n.toDisplayString(e.title),5)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"title-in",style:n.normalizeStyle({marginRight:e.isCollaps?"50px":"0",width:e.isCollaps?"calc(100% - 50px)":"100%"})},[n.renderSlot(e.$slots,"inside-title",{},void 0,!0)],4)),n.createElementVNode("div",{class:n.normalizeClass(["tools-bar",{"hidden-part":e.showToolsOnHover}])},[n.renderSlot(e.$slots,"tools",{},void 0,!0)],2)],4)],8,yh),n.createElementVNode("div",{style:n.normalizeStyle({maxHeight:e.isCollaps?"":"1000000vh",background:e.changeColor?e.background:e.backgroundAttention}),class:n.normalizeClass(e.collapsed?"tab-content-down":"tab-content-up")},[n.renderSlot(e.$slots,"inside-content",{},void 0,!0)],6)],4),t[5]||(t[5]=n.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-0ea9a95f><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-0ea9a95f></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-0ea9a95f></path></symbol></svg>',1))],64)}const ns=v(gh,[["render",bh],["__scopeId","data-v-0ea9a95f"]]),Ch={class:"tab"},Sh={class:"rotate"},is=v(n.defineComponent({__name:"VerticalCollapseContainer",setup(e){const t=n.ref(!1),i=async()=>{t.value=!t.value};return(o,r)=>{const s=n.resolveComponent("ArrowRight"),a=n.resolveComponent("ArrowLeft");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",Ch,[n.renderSlot(o.$slots,"main",{},void 0,!0),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"50%":"20px",transition:"0.3s"}),class:"left"},[n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"100%":"0",transition:"0.3s"}),class:"left-content"},[n.renderSlot(o.$slots,"inside-content-left",{},void 0,!0)],4),n.createElementVNode("div",{class:"arrow-bar",onClick:i},[n.createElementVNode("div",Sh,[n.renderSlot(o.$slots,"inside-title",{},void 0,!0)]),n.unref(t)?(n.openBlock(),n.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(n.openBlock(),n.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"50%":"100%",transition:"0.3s"}),class:"right"},[n.renderSlot(o.$slots,"inside-content-right",{},void 0,!0)],4)]),n.createVNode(a),n.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),kh={class:"add-block_body"},os=v(n.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(e){return(t,i)=>{const o=n.resolveComponent("PSticky");return n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.createVNode(o,{top:e.top,"z-index":e.zIndex},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",kh,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),rs=v(n.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),Eh={class:"add-block_body"},ss=v(n.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(e){return(t,i)=>{const o=n.resolveComponent("PSticky"),r=n.resolveComponent("PContainer");return n.openBlock(),n.createBlock(r,{background:e.background,margin:e.margin,padding:e.padding},{default:n.withCtx(()=>[n.createVNode(o,{top:e.top,"z-index":e.zIndex},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",Eh,[n.renderSlot(t.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),vh={class:"del-block_title"},xh={class:"del-block_body"},as=v(n.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"del-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.createElementVNode("div",vh,[n.renderSlot(t.$slots,"title",{},void 0,!0)]),n.createElementVNode("div",xh,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),Bh={class:"btn-group"},ls=v(n.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(e,{emit:t}){const i=x.Auth.Form,o=n.ref(!1),r=t,s=n.computed(()=>i.GetButtons()),a=async c=>{if(!c.submit)return i.SetStatus(c.GetStatus());const l=i.Validate();if(l.length>0){x.UI.Notify.Error(l.join(", "));return}r("submit")};return n.onBeforeUnmount(()=>{i.Reset()}),(c,l)=>{const d=n.resolveComponent("PInput"),h=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock("div",{class:"auth-card",style:n.normalizeStyle({width:e.width,margin:e.margin,padding:e.padding})},[n.createElementVNode("div",null,n.toDisplayString(("PF"in c?c.PF:n.unref(x)).Auth.Form.GetTitle()),1),n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(("PF"in c?c.PF:n.unref(x)).Auth.Form.GetFields(),f=>(n.openBlock(),n.createBlock(d,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":m=>f.value=m,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),n.createElementVNode("div",Bh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),f=>(n.openBlock(),n.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:n.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:m=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-ee627d52"]]),cs=v(n.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},maxHeight:{type:String,default:"70vh"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const i=e,o=t,r=a=>{a.key==="Escape"&&s()};n.onMounted(()=>{document.body.addEventListener("keydown",r)}),n.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{i.closable&&o("close")};return(a,c)=>{const l=n.resolveComponent("IconClose");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.show?(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:s})):n.createCommentVNode("",!0),e.show?(n.openBlock(),n.createElementBlock("div",{key:1,class:"modal-w",style:n.normalizeStyle({maxWidth:e.width,width:e.width,margin:e.margin,padding:e.padding,top:e.top,maxHeight:e.maxHeight})},[e.closable?(n.openBlock(),n.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[n.createVNode(l,{size:"20px"})])):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3a1f6782"]]),Mh=["onClick"],ds=v(n.defineComponent({__name:"PTabs",props:{menus:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"}},emits:["select"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(window.innerWidth),s=n.ref(),a=n.ref(Number(i.tabHeight.replace(/[^+\d]/g,""))),c=()=>{r.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(i.tabHeight.replace(/[^+\d]/g,""))};n.onMounted(()=>window.addEventListener("resize",c)),n.onUnmounted(()=>window.removeEventListener("resize",c));const l=n.computed(()=>`calc(100% - ${a.value}px + 1px)`);n.onBeforeMount(()=>{i.menus.Select()});const d=h=>{i.menus.Select(h),o("select")};return(h,f)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({height:`calc(100% - ${e.outTopMargin} - ${e.tabHeight}`})},[n.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"top-menu",style:n.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${e.minMenuItemWidth}, 1fr))`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus.items,(m,g)=>(n.openBlock(),n.createElementBlock("div",{key:g},[n.createElementVNode("div",{class:n.normalizeClass({"selected-tab":g===e.menus.idx,tab:g!==e.menus.idx}),style:n.normalizeStyle({minHeight:e.tabHeight,maxHeight:e.tabHeight}),onClick:p=>d(g)},n.toDisplayString(m.name),15,Mh)]))),128))],4),n.createElementVNode("div",{class:"body-container",style:n.normalizeStyle({background:e.background,height:n.unref(l)})},[n.renderSlot(h.$slots,"default",{},()=>[e.menus.idx>-1?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.menus.GetComponent()),{key:0})):n.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-f631acc5"]]),Rh=["id"],Ah=["for"],Nh={class:"left-field"},$h=["href","download"],Ih={key:1,class:"text-field__input"},Ph={class:"right-field"},zh=n.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new nt},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(e,{emit:t}){const i=e,o=t,r=x.H.Id.GUID(),s=x.H.Id.GUID(),a=()=>{const d=document.getElementById(r);if(!d.files)return;const h=d.files[0];if(h){if(!l(h.name)){x.UI.Notify.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}i.fileInfo.uploadAndSetFile(h),o("upload",i.fileInfo)}},c=()=>{i.fileInfo.clearFile(),o("remove",i.fileInfo)};n.onMounted(()=>{const d=document.getElementById(s);d&&(d.onclick=()=>{var h;return(h=document.getElementById(r))==null?void 0:h.click()})});const l=d=>{let h=x.H.Extension.Get(d);return!!i.formats.includes(h.toLowerCase())};return(d,h)=>{const f=n.resolveComponent("PString"),m=n.resolveComponent("PFlex"),g=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:n.unref(r),type:"file",hidden:"",onChange:a},null,40,Rh),n.createElementVNode("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,Ah)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",Nh,[n.createVNode(m,null,{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default",{},void 0,!0),n.createVNode(f,{string:e.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),e.fileInfo&&e.fileInfo.originalName?(n.openBlock(),n.createElementBlock("div",{key:0,class:"text-field__input",style:n.normalizeStyle({color:e.color})},[n.createElementVNode("a",{href:e.fileInfo.getFileUrl(),target:"_blank",download:e.fileInfo.originalName},[n.createElementVNode("div",null,n.toDisplayString(e.fileInfo.originalName),1)],8,$h),n.createVNode(g,{skin:"text",type:"del",onClick:c},{default:n.withCtx(()=>[n.createVNode(Qt,{size:"20px",margin:"0 5px"})]),_:1})],4)):(n.openBlock(),n.createElementBlock("div",Ih,[n.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),n.createElementVNode("div",Ph,[n.createVNode(g,{id:n.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:e.fileInfo&&e.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),us=v(zh,[["__scopeId","data-v-cacad4ae"]]),Th={class:"container"},Vh={key:0,class:"result"},Lh={class:"list"},Dh=["onClick"],hs=v(n.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]}},emits:["select","input"],setup(e,{emit:t}){const i=t,o=e,r=n.ref(o.modelValue),s=n.ref([]);async function a(){i("input",r.value),await c()}async function c(){o.searchFunc&&(s.value=await o.searchFunc(r.value))}async function l(d){i("select",d)}return(d,h)=>{const f=n.resolveComponent("IconSearch"),m=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock("div",Th,[n.createVNode(m,{modelValue:n.unref(r),"onUpdate:modelValue":h[0]||(h[0]=g=>n.isRef(r)?r.value=g:null),placeholder:"Найти",onInput:a},{right:n.withCtx(()=>[n.createVNode(f)]),_:1},8,["modelValue"]),n.unref(r)?(n.openBlock(),n.createElementBlock("div",Vh,[n.createElementVNode("ul",Lh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),g=>(n.openBlock(),n.createElementBlock("li",{key:g.value,onClick:p=>l(g)},n.toDisplayString(g.label),9,Dh))),128))])])):n.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-67b698bb"]]),Fh={class:"footer"},fs=v(n.defineComponent({__name:"PDialog",setup(e){const t=n.computed(()=>{switch(x.UI.Dialog.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(i,o)=>{const r=n.resolveComponent("MessageBody"),s=n.resolveComponent("PButton");return n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>[("PF"in i?i.PF:n.unref(x)).UI.Dialog.IsVisible()?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(t))},[n.createVNode(r,{title:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetTitle(),text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetText()},null,8,["title","text"]),n.createElementVNode("div",Fh,[n.createVNode(s,{type:"primary",text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetConfirmButtonText(),margin:"10px 0 0 0",onClick:o[0]||(o[0]=a=>("PF"in i?i.PF:n.unref(x)).UI.Dialog.Submit())},null,8,["text"]),n.createVNode(s,{type:"warning",text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetCancelButtonText(),margin:"10px 0 0 0",onClick:o[1]||(o[1]=a=>("PF"in i?i.PF:n.unref(x)).UI.Dialog.Cancel())},null,8,["text"])])],2)):n.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-bf4d379c"]]),ms=v(n.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=n.useModel(e,"modelValue"),i=async()=>{await x.S.Phones.Update(t.value)};return(o,r)=>{const s=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(s,{modelValue:t.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>t.value.number=a),onBlur:i},null,8,["modelValue"]),n.createVNode(s,{modelValue:t.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>t.value.description=a),onBlur:i},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-f801a76e"]]),Oh={};function qh(e,t){return n.openBlock(),n.createElementBlock(n.Fragment,null,[t[0]||(t[0]=n.createElementVNode("div",{class:"blur"},null,-1)),t[1]||(t[1]=n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const ps=v(Oh,[["render",qh],["__scopeId","data-v-0f1f2f84"]]),gs=v(n.defineComponent({__name:"PNotification",setup(e){const t=n.computed(()=>{switch(x.UI.Notify.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(i,o)=>{const r=n.resolveComponent("MessageBody");return n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>[("PF"in i?i.PF:n.unref(x)).UI.Notify.IsVisible()?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(t))},[n.createVNode(r,{title:("PF"in i?i.PF:n.unref(x)).UI.Notify.GetTitle(),text:("PF"in i?i.PF:n.unref(x)).UI.Notify.GetText()},null,8,["title","text"])],2)):n.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-6d245bd5"]]),Hh={style:{display:"flex","justify-content":"center",width:"100%"}},Uh={class:"pag-number"},Wh={class:"pag-ul"},_h={key:2},ys=v(n.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(e,{emit:t}){const i=e,o=g=>g?"active":"neutral",r=g=>g?"not-active":"neutral",s=x.Paginator,a=n.ref(!1),c=n.ref(!1),l=t;s.count=i.store.Count.value;const d=async g=>{if(g!==s.curPage){if(g<1&&(g=1),g>s.pagesCount()&&(g=s.pagesCount()),!i.showConfirm)return await h(g);x.UI.Dialog.Save().then(async()=>{l("save"),await h(g)}).catch(async()=>{x.UI.Notify.Warning("Изменения не были сохранены"),l("cancel"),await h(g)})}},h=async(g,p)=>{s.setCurPage(g),x.FTSP.Get().p.offset=(g-1)*s.limit,await i.store.FTSP(),m()},f=n.computed(()=>{const g=s.pagesCount();return g<8?x.H.Arrays.GenerateNumsRange(2,g-1).filter(p=>p<g&&p>1):x.H.Arrays.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(p=>p<g&&p>1)}),m=()=>{const g=document.querySelector(".el-table__body-wrapper"),p=document.querySelector("#list");g?g.scrollTo({top:0}):p&&p.scrollTo({top:0})};return n.onBeforeUnmount(()=>{x.FTSP.Get().p.drop()}),(g,p)=>{const k=n.resolveComponent("ArrowLeft"),w=n.resolveComponent("PButton"),M=n.resolveComponent("DoubleArrowLeft"),F=n.resolveComponent("EllipsisSvg"),O=n.resolveComponent("DoubleArrowRight"),L=n.resolveComponent("ArrowRight");return n.openBlock(),n.createElementBlock("div",Hh,[n.createElementVNode("div",{class:"pag-container",style:n.normalizeStyle({justifyContent:e.justifyContent})},[n.createElementVNode("div",Uh,[n.createVNode(w,{skin:"pag",type:r(n.unref(s).curPage===1),onClick:p[0]||(p[0]=z=>d(n.unref(s).curPage-1))},{default:n.withCtx(()=>[n.createVNode(k)]),_:1},8,["type"]),n.createElementVNode("ul",Wh,[n.createElementVNode("li",null,[n.createVNode(w,{skin:"pag",type:o(n.unref(s).curPage===1),text:"1",onClick:p[1]||(p[1]=z=>d(1))},null,8,["type"])]),n.unref(s).pagesCount()>8&&n.unref(s).curPage>4?(n.openBlock(),n.createElementBlock("li",{key:0,onMouseenter:p[3]||(p[3]=z=>a.value=!0),onMouseleave:p[4]||(p[4]=z=>a.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:p[2]||(p[2]=z=>d(n.unref(s).curPage-5))},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(M,{key:0})):(n.openBlock(),n.createBlock(F,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(f),z=>(n.openBlock(),n.createElementBlock("li",{key:z},[n.createVNode(w,{skin:"pag",type:o(z===n.unref(s).curPage),text:z,onClick:ye=>d(z)},null,8,["type","text","onClick"])]))),128)),n.unref(s).pagesCount()>=8&&n.unref(s).curPage<n.unref(s).pagesCount()-3?(n.openBlock(),n.createElementBlock("li",{key:1,onMouseenter:p[6]||(p[6]=z=>c.value=!0),onMouseleave:p[7]||(p[7]=z=>c.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:p[5]||(p[5]=z=>d(n.unref(s).curPage+5))},{default:n.withCtx(()=>[n.unref(c)?(n.openBlock(),n.createBlock(O,{key:0})):(n.openBlock(),n.createBlock(F,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),n.unref(s).pagesCount()>1?(n.openBlock(),n.createElementBlock("li",_h,[n.createVNode(w,{skin:"pag",type:o(n.unref(s).pagesCount()===n.unref(s).curPage),text:n.unref(s).pagesCount(),onClick:p[8]||(p[8]=z=>d(n.unref(s).pagesCount()))},null,8,["type","text"])])):n.createCommentVNode("",!0)]),n.createVNode(w,{skin:"pag",type:r(n.unref(s).curPage===n.unref(s).pagesCount()),onClick:p[9]||(p[9]=z=>d(n.unref(s).curPage+1))},{default:n.withCtx(()=>[n.createVNode(L)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-1c6d4928"]]),ws=v(n.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},maxWidth:{type:[Number,String],default:350},focus:{type:Boolean,default:!1}},emits:["select","load","input"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.modelValue),s=n.ref(),a=x.S.Search.SearchModel();n.watch(()=>i.focus,()=>{i.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const c=async h=>{if(h.length<2)return;s.value.activated=!0,a.searchObjects=[],a.query=h,a.key=i.keyValue;const f=a.searchGroups.find(m=>m.key===i.keyValue);return f&&(a.searchGroup=f),await x.S.Search.Search(a),a.searchObjects},l=async h=>{o("select",h),r.value=""},d=h=>{o("input",h),h.length===0&&o("input","")};return(h,f)=>{const m=n.resolveComponent("PAutocomplete");return n.openBlock(),n.createBlock(m,{ref_key:"searchForm",ref:s,modelValue:n.unref(r),"onUpdate:modelValue":f[0]||(f[0]=g=>n.isRef(r)?r.value=g:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:e.placeholder,"search-func":c,"trigger-on-focus":e.showSuggestions,suggestions:n.unref(a).searchObjects,onSelect:l,onInput:d},{suffix:n.withCtx(()=>f[1]||(f[1]=[n.createElementVNode("i",{class:"el-icon-search"},null,-1)])),_:1},8,["modelValue","placeholder","trigger-on-focus","suggestions"])}}}),[["__scopeId","data-v-d3138f3a"]]),Gh={class:"mainblock-body"},jh={class:"mainblock-footer"},bs=v(n.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({background:e.background,padding:e.padding})},[n.createElementVNode("div",{class:"mainblock-header",style:n.normalizeStyle({background:e.background})},[n.renderSlot(t.$slots,"header",{},void 0,!0)],4),n.createElementVNode("div",Gh,[n.renderSlot(t.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",jh,[n.renderSlot(t.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Zh={class:"right-slider-content"},Jh={class:"right-slider-content-header"},Xh={class:"right-slider-content-box"},Yh={class:"right-slider-button"},Cs=v(n.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1);n.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",{class:"right-slider",style:n.normalizeStyle({marginRight:n.unref(r)?`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`:"0",width:e.sliderOnWidth})},[n.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),n.createElementVNode("div",Zh,[n.createElementVNode("div",Jh,[n.renderSlot(a.$slots,"header",{},void 0,!0)]),n.createElementVNode("div",Xh,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",Yh,[n.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Qh={class:"mainblock"},Kh={class:"body-block"},ef={class:"tab-block"},Ss=v(n.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1),s=n.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{o("toggle",l)},c=n.ref(!1);return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(i.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(l,d)=>(n.openBlock(),n.createElementBlock("div",Qh,[n.createElementVNode("div",{class:"slider-block",style:n.normalizeStyle({marginRight:n.unref(s)?e.isToggle?"49px":`calc(49px - ${e.sliderOnWidth})`:e.isToggle?e.sliderOffWidth:`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`,width:e.sliderOnWidth,minHeight:e.sliderOffWidth,height:e.isToggle?"auto":"100px"})},[n.createElementVNode("div",{class:"slider-icon",style:n.normalizeStyle({border:e.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:e.isToggle?"#ffffff":"#C7ECEA"}),onClick:d[0]||(d[0]=h=>a(!e.isToggle)),onMouseenter:d[1]||(d[1]=h=>c.value=!0),onMouseleave:d[2]||(d[2]=h=>c.value=!1)},[n.createElementVNode("div",{class:"icon-block",style:n.normalizeStyle({transform:n.unref(c)?e.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":e.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:e.isToggle?"#379FFF":"#00B5A4"})},[n.renderSlot(l.$slots,"icon",{},void 0,!0)],4)],36),n.createElementVNode("div",{class:"slider-info",style:n.normalizeStyle({width:`calc(${e.sliderOnWidth} - ${e.sliderOffWidth})`})},[n.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),n.createElementVNode("div",Kh,[n.renderSlot(l.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",ef,[n.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),tf=["label","value"],ks=v(n.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(e,{emit:t}){const i={[ce.String]:"Текстовый ответ",[ce.Text]:"Развёрнутый текстовый ответ",[ce.Number]:"Числовой ответ",[ce.Date]:"Ответ в виде даты",[ce.Radio]:"Выбор одного из вариантов",[ce.Set]:"Выбор нескольких вариантов",[ce.File]:"Ответ в виде файла",[ce.MatrixRadio]:"Матрица с одним выбором",[ce.MatrixSet]:"Матрица с несколькими выборами"},o=t,r=s=>{o("select",s)};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PSelect");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),n.createVNode(l,{"model-value":e.selectedType,placeholder:"Вид ответа",onChange:r},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(i,(d,h)=>n.createElementVNode("option",{key:d,label:d,value:h},null,8,tf)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),nf={class:"field"},Es=v(n.defineComponent({__name:"SingleNameToggleForm",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1),s=n.ref(),a=n.ref(i.withName.name),c=n.ref(!1),l=()=>{c.value=!1},d=async()=>{a.value.trim(),i.withName.setName&&i.withName.setName(a.value),r.value=!r.value,o("submit")};return(h,f)=>{const m=n.resolveComponent("PString"),g=n.resolveComponent("el-input"),p=n.resolveComponent("el-form-item"),k=n.resolveComponent("el-form"),w=n.resolveComponent("PButton");return n.openBlock(),n.createBlock(k,{ref_key:"form",ref:s,style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(cn,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:r.value,width:"100%",onKeyupEnter:d,onAfterClose:l},{"open-inside-content":n.withCtx(()=>[n.createVNode(cn,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:n.withCtx(()=>[n.createElementVNode("div",nf,[n.createVNode(k,null,{default:n.withCtx(()=>[n.createVNode(p,{style:{width:"100%"},prop:"surname"},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=M=>a.value=M),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1}),n.createVNode(w,{type:"admin",color:"blue",text:"Сохранить",onClick:d})]),default:n.withCtx(()=>[a.value.length?(n.openBlock(),n.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(n.openBlock(),n.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-cc488c49"]]),of=["label","value"],vs=v(n.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=n.ref();n.onBeforeMount(()=>{i.value=!0,r.value=$e.GetDefault(),x.FTSP.Get().setSortModel(r.value)});const s=async c=>{r.value=c??$e.GetDefault(),x.FTSP.Get().setSortModel(r.value),x.FTSP.Get().p.drop(),o("load")},a=async c=>{x.FTSP.Get().p.drop(),await s(c)};return(c,l)=>{var h;const d=n.resolveComponent("PSelect");return n.unref(i)?(n.openBlock(),n.createBlock(d,{key:0,modelValue:n.unref(r),"onUpdate:modelValue":l[0]||(l[0]=f=>n.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((h=n.unref(r))!=null&&h.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=f=>a())},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref($e).Get(),(f,m)=>(n.openBlock(),n.createElementBlock("option",{key:m,label:f.label,value:f},null,8,of))),128))]),_:1},8,["modelValue","clearable"])):n.createCommentVNode("",!0)}}}),[["__scopeId","data-v-0bac635d"]]),rf=["label","value"],xs=v(n.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const i=t,o=n.ref();n.onBeforeMount(()=>{o.value=$e.GetDefault()});const r=async a=>{a||(o.value=$e.GetDefault()),x.FTSP.Get().setSortModel(o.value),x.FTSP.Get().p.drop(),i("load")},s=async a=>{await r(a)};return(a,c)=>{var d;const l=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(l,{modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=h=>n.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((d=n.unref(o))!=null&&d.default),"value-key":"label",onChange:s},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref($e).Get(),(h,f)=>(n.openBlock(),n.createElementBlock("option",{key:f,label:h.label,value:h},null,8,rf))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-399c5a1b"]]),sf={class:"switch-container"},af={class:"line"},lf={class:"line"},Bs=v(n.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(e,{emit:t}){const i=e,o={background:"inherit",border:"1px solid #c4c4c4"},r=()=>i.firstModel.valueEq(d.value)?void 0:o,s=()=>d.value?o:void 0,a=()=>i.secondModel.valueEq(d.value)?void 0:o,c=f=>{var g;return{color:(g=d.value)!=null&&g.valueEq(f)?"#006bb4":"#B0A4C0"}},l=t,d=n.ref(void 0),h=async f=>{var m;(m=d.value)!=null&&m.valueEq(f)||(x.FTSP.Get().replaceF(f,d.value),d.value=f,l("load"))};return(f,m)=>{const g=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",sf,[n.createElementVNode("div",af,[n.createVNode(g,{string:e.firstModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(c(e.firstModel)),onClick:m[0]||(m[0]=p=>h(e.firstModel))},null,8,["string","style"]),n.createVNode(g,{string:"Все","font-size":"12px",padding:"0",style:n.normalizeStyle(c()),onClick:m[1]||(m[1]=p=>h())},null,8,["style"]),n.createVNode(g,{string:e.secondModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(c(e.secondModel)),onClick:m[2]||(m[2]=p=>h(e.secondModel))},null,8,["string","style"])]),n.createElementVNode("div",lf,[n.createElementVNode("div",{class:n.normalizeClass(["switch-knob1",{active:e.firstModel.valueEq(n.unref(d))}]),style:n.normalizeStyle(r()),onClick:m[3]||(m[3]=p=>h(e.firstModel))},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob2",{active:!n.unref(d)}]),style:n.normalizeStyle(s()),onClick:m[4]||(m[4]=p=>h())},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob3",{active:e.secondModel.valueEq(n.unref(d))}]),style:n.normalizeStyle(a()),onClick:m[5]||(m[5]=p=>h(e.secondModel))},null,6),m[6]||(m[6]=n.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=n.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=n.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=n.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ec5dae5e"]]),cf={},df={class:"flex"};function uf(e,t){return n.openBlock(),n.createElementBlock("div",df,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ms=v(cf,[["render",uf],["__scopeId","data-v-5023d414"]]),Rs=v(n.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=async()=>{o("submit"),i.value=!i.value};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PButton"),d=n.resolveComponent("GridContainer"),h=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(h,{title:e.title,icon:"edit-title","with-hover":!0,close:n.unref(i),width:"100%",onKeyupEnter:r},{"open-inside-content":n.withCtx(()=>[n.createVNode(d,{"custom-class":"grid"},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default",{},void 0,!0),n.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:n.withCtx(()=>[e.content.length>0?(n.openBlock(),n.createBlock(c,{key:0,string:e.content},null,8,["string"])):(n.openBlock(),n.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),hf={class:"top-slider-content"},ff={class:"center"},As=v(n.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!0);n.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=n.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(r)?`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`:"0",height:e.sliderOnHeight}),onClick:c[3]||(c[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",hf,[n.createElementVNode("div",ff,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({height:e.sliderOffHeight}),onClick:c[2]||(c[2]=l=>s(!n.unref(r)))},[n.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]),mf={id:"drop-area",class:"img-container"},pf={key:0},gf=["src"],yf={class:"tools-button"},wf={class:"ins"},bf={key:1},Cf=["id"],Ns=v(n.defineComponent({__name:"UploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:nt,required:!0},height:{type:Number,default:150},width:{type:Number,default:150},cropRatio:{type:Boolean,default:!0},emitCrop:{type:Boolean,default:!1},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","removeFile"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(void 0),s=x.H.Id.GUID(),a=n.ref(!1),c=n.ref(),l=w=>{const M=i.cropRatio?i.defaultRatio:0;x.S.Cropper.Open(wt.CreateCropper(w.url,M,i.fileInfo.id)),a.value=!0},d=()=>{x.UI.Dialog.Show({text:"Вы хотите удалить изображение",confirmButtonText:"Удалить",cancelButtonText:"Не удалять"}).then(()=>{r.value=void 0,c.value.clearFiles(),o("removeFile")})},h=w=>{i.fileInfo.setFile(w),i.fileInfo.fileSystemPath&&(r.value=i.fileInfo),a.value=!1,o("crop")};n.onBeforeMount(()=>{i.fileInfo.fileSystemPath&&(r.value=i.fileInfo,r.value.url=i.fileInfo.getFileUrl())});let f=null;n.onMounted(()=>{const w=document.getElementById("drop-area");w&&(w.addEventListener("dragover",M=>{m(M),w.classList.add("drag-over")}),w.addEventListener("dragleave",M=>{m(M),w.classList.remove("drag-over")}),w.addEventListener("dragenter",m),w.addEventListener("dragleave",m),w.addEventListener("drop",p),f=document.getElementById(s))});function m(w){w.preventDefault(),w.stopPropagation()}const g=()=>{f&&f.click()};function p(w){if(w.preventDefault(),!w.dataTransfer)return;const M=w.dataTransfer.files;M.length&&f&&(f.files=M,k())}const k=()=>{if(!f||!f.files||!f.files.length)return;const w=f.files[0];w.url=URL.createObjectURL(w),r.value=w,i.fileInfo.uploadNewFile(w),l(r.value)};return(w,M)=>{const F=n.resolveComponent("PButton"),O=n.resolveComponent("ImageCropper");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",mf,[n.unref(r)?(n.openBlock(),n.createElementBlock("div",pf,[n.createElementVNode("div",{class:"img-block",style:n.normalizeStyle({width:e.height*e.defaultRatio-2+"px",height:e.height+"px"})},[n.createElementVNode("img",{class:"el-upload-list__item-thumbnail",src:n.unref(r).url,alt:"upload-image"},null,8,gf)],4),n.createElementVNode("div",yf,[n.createElementVNode("div",wf,[n.createVNode(F,{skin:"text",text:"Изменить","font-size":"20px",width:"300px",margin:"100px 0 0 0",onClick:M[0]||(M[0]=L=>l(n.unref(r)))}),n.createVNode(F,{skin:"text",text:"Удалить","font-size":"20px",width:"300px",margin:"50px 0 0 0",onClick:M[1]||(M[1]=L=>d())})])])])):(n.openBlock(),n.createElementBlock("div",bf,[n.createElementVNode("div",{class:"add-button",style:n.normalizeStyle({width:e.height*e.defaultRatio-2+"px",height:e.height+"px"})},[n.createVNode(F,{skin:"text",text:"Добавить","font-size":"20px",onClick:g})],4)]))]),n.createElementVNode("input",{id:n.unref(s),type:"file",hidden:"",onChange:k},null,40,Cf),e.withCrop?(n.openBlock(),n.createBlock(O,{key:0,open:n.unref(a),"default-ratio":e.defaultRatio,onCrop:h,onClose:M[2]||(M[2]=L=>a.value=!1)},null,8,["open","default-ratio"])):n.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-4119c534"]]),Sf={install:function(e){e.component("PButton",No),e.component("PCheckBox",$o),e.component("PDatePicker",Io),e.component("PFlex",Po),e.component("PInput",Fo),e.component("PInputDate",Oo),e.component("PInputNumber",qo),e.component("PLeftSlider",Ho),e.component("PList",Uo),e.component("PListItem",Wo),e.component("PRadio",_o),e.component("PRightSlider",Go),e.component("PSelect",jo),e.component("PSticky",Zo),e.component("PString",Jo),e.component("PTextarea",Xo),e.component("PTopSlider",Yo),e.component("IconDownload",cr),e.component("IconFilter",dr),e.component("ArrowLeft",br),e.component("ArrowRight",Cr),e.component("DoubleArrowLeft",Sr),e.component("DoubleArrowRight",kr),e.component("EllipsisSvg",Er),e.component("IconArrowLeft",ur),e.component("IconCheckDefault",hr),e.component("IconClose",Qt),e.component("IconEdit",fr),e.component("IconEmail",mr),e.component("IconMove",pr),e.component("IconPhone",gr),e.component("IconSearch",yr),e.component("IconSelectArrow",wr),e.component("CollapseContainer",ts),e.component("CollapseItem",ns),e.component("VerticalCollapseContainer",is),e.component("PAdd",os),e.component("PContainer",rs),e.component("PContainerStickyHead",ss),e.component("PDel",as),e.component("PTabs",ds),e.component("UploaderFile",us),e.component("AuthForm",ls),e.component("PModal",cs),e.component("AuthPage",Fn),e.component("PageNotFound",On),e.component("AdaptiveContainer",Bo),e.component("AdaptiveContainerHorizontal",Mo),e.component("AdminGallery",Ro),e.component("AuthModal",Qo),e.component("CarouselImages",Ko),e.component("ContextWindow",er),e.component("DateInputRangeV2",nr),e.component("DateInputRange",tr),e.component("DropList",ir),e.component("FilterCheckbox",or),e.component("FiltersButtonsSelect",rr),e.component("FilterSelect",sr),e.component("FTSPPanel",ar),e.component("GeneralItem",lr),e.component("GridContainer",Zn),e.component("ImageCropper",Yr),e.component("InfoItem",cn),e.component("InfoItemSelectButtons",Qr),e.component("LeftRightContainer",Kr),e.component("MessageBody",es),e.component("PAutocomplete",hs),e.component("PDialog",fs),e.component("PhoneForm",ms),e.component("PLoader",ps),e.component("PNotification",gs),e.component("PPagination",ys),e.component("RemoteSearch",ws),e.component("ResearcheContainer",bs),e.component("RightSliderContainer",Cs),e.component("RightTabsContainer",Ss),e.component("SelectValueType",ks),e.component("SingleNameToggleForm",Es),e.component("SortList",vs),e.component("SortSelect",xs),e.component("Switch3Pos",Bs),e.component("ThemeWrapper",Ms),e.component("ToggleInfoItem",Rs),e.component("TopSliderContainer",As),e.component("UploaderImage",Ns)}},kf=["PF","PFM"];E.AdaptiveContainer=Bo,E.AdaptiveContainerHorizontal=Mo,E.AdminGallery=Ro,E.ArrowLeft=br,E.ArrowRight=Cr,E.AuthForm=ls,E.AuthModal=Qo,E.AuthPage=Fn,E.CarouselImages=Ko,E.CollapseContainer=ts,E.CollapseItem=ns,E.ContextWindow=er,E.DateInputRange=tr,E.DateInputRange_v2=nr,E.DoubleArrowLeft=Sr,E.DoubleArrowRight=kr,E.DropList=ir,E.EllipsisSvg=Er,E.FTSPPanel=ar,E.FilterCheckbox=or,E.FilterSelect=sr,E.FiltersButtonsSelect=rr,E.GeneralItem=lr,E.GridContainer=Zn,E.IconArrowLeft=ur,E.IconCheckDefault=hr,E.IconClose=Qt,E.IconDownload=cr,E.IconEdit=fr,E.IconEmail=mr,E.IconFilter=dr,E.IconMove=pr,E.IconPhone=gr,E.IconSearch=yr,E.IconSelectArrow=wr,E.ImageCropper=Yr,E.InfoItem=cn,E.InfoItemSelectButtons=Qr,E.LeftRightContainer=Kr,E.MessageBody=es,E.PAdd=os,E.PAutocomplete=hs,E.PButton=No,E.PCheckBox=$o,E.PContainer=rs,E.PContainerStickyHead=ss,E.PDatePicker=Io,E.PDel=as,E.PDialog=fs,E.PF=x,E.PFlex=Po,E.PInput=Fo,E.PInputDate=Oo,E.PInputNumber=qo,E.PLeftSlider=Ho,E.PList=Uo,E.PListItem=Wo,E.PLoader=ps,E.PModal=cs,E.PNotification=gs,E.PPagination=ys,E.PRadio=_o,E.PRightSlider=Go,E.PSelect=jo,E.PSticky=Zo,E.PString=Jo,E.PTabs=ds,E.PTextarea=Xo,E.PTopSlider=Yo,E.PageNotFound=On,E.PhoneForm=ms,E.RemoteSearch=ws,E.ResearcheContainer=bs,E.RightSliderContainer=Cs,E.RightTabsContainer=Ss,E.SelectValueType=ks,E.SingleNameToggleForm=Es,E.SortList=vs,E.SortSelect=xs,E.Switch3Pos=Bs,E.ThemeWrapper=Ms,E.ToggleInfoItem=Rs,E.TopSliderContainer=As,E.UploaderFile=us,E.UploaderImage=Ns,E.VerticalCollapseContainer=is,E.pfName=kf,E.servicesComponents=Sf,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
41
+ ***************************************************************************** */function Mr(e,t){var i,o;return e&&t?(i=""+e+t[0].toUpperCase()+t.slice(1),o=e+"-"+t):(i=e||t,o=e||t),{name:i,classname:o}}function Rr(e){return/^blob:/.test(e)}function Ar(e){return Rr(e)||function(t){return/^data:/.test(t)}(e)}function at(e){return!!(e&&e.constructor&&e.call&&e.apply)}function ne(e){return e===void 0}function tn(e){return typeof e=="object"&&e!==null}function Kn(e,t,i){var o={};return tn(e)?(Object.keys(t).forEach(function(r){ne(e[r])?o[r]=t[r]:tn(t[r])?tn(e[r])?o[r]=Kn(e[r],t[r],i[r]):o[r]=e[r]?t[r]:i[r]:t[r]===!0||t[r]===!1?o[r]=!!e[r]:o[r]=e[r]}),o):e?t:i}function nn(e){var t=Number(e);return Number.isNaN(t)?e:t}function $r(e){return typeof(e=="number"||function(t){return typeof t=="object"&&t!==null}(e)&&toString.call(e)=="[object Number]")&&!Nr(e)}function Nr(e){return e!=e}function Ir(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}var Rt=function(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.type="manipulateImage",this.move=e,this.scale=t},Iu=function(e,t){t===void 0&&(t={}),this.type="resize",this.directions=e,this.params=t},ei=function(e){this.type="move",this.directions=e},Pu=function(){function e(t,i,o,r,s){this.type="drag",this.nativeEvent=t,this.position=o,this.previousPosition=r,this.element=i,this.anchor=s}return e.prototype.shift=function(){var t=this,i=t.element,o=t.anchor,r=t.position;if(i){var s=i.getBoundingClientRect(),a=s.left,c=s.top;return{left:r.left-a-o.left,top:r.top-c-o.top}}return{left:0,top:0}},e}(),ti={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(e){e.cancelable&&!this.disabled&&e.touches.length===1&&(this.touches=et(e.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),e.touches.length&&this.initAnchor(this.touches.reduce(function(t,i){return{clientX:t.clientX+i.clientX/e.touches.length,clientY:t.clientY+i.clientY/e.touches.length}},{clientX:0,clientY:0})),e.preventDefault&&e.preventDefault(),e.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(e){this.touches.length&&(this.processMove(e,e.touches),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},onMouseDown:function(e){if(!this.disabled){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.draggable.getBoundingClientRect(),i=t.left,o=t.right,r=t.bottom,s=t.top;this.anchor={left:e.clientX-i,top:e.clientY-s,bottom:r-e.clientY,right:o-e.clientX}},processMove:function(e,t){var i=et(t);if(this.touches.length){if(this.touches.length===1&&i.length===1){var o=this.$refs.draggable;this.$emit("drag",new Pu(e,o,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};ti.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"draggable",class:i.classname,onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:t[3]||(t[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:t[4]||(t[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],34)};var ni=Ae("vue-handler-wrapper"),Pr={name:"HandlerWrapper",components:{DraggableElement:ti},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var e;if(this.horizontalPosition||this.verticalPosition){var t,i=Mr(this.horizontalPosition,this.verticalPosition);e=ni((Se(t={},i.classname,!0),Se(t,"disabled",this.disabled),t))}else e=ni({disabled:this.disabled});return{root:e,draggable:ni("draggable")}}},emits:["leave","enter","drag","drag-end"]};Pr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.createBlock("div",{class:s.classes.root},[n.createVNode(a,{class:s.classes.draggable,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["class"])],2)};var zu=Ae("vue-line-wrapper"),zr={name:"LineWrapper",components:{DraggableElement:ti},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var e;return zu((Se(e={},this.position,!0),Se(e,"disabled",this.disabled),e))}},emits:["leave","enter","drag","drag-end"]};zr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("DraggableElement");return n.openBlock(),n.createBlock(a,{class:s.classname,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["class"])};var Ie=["left","right","top","bottom"],Tu=["left","right"],Vu=["top","bottom"],Lu=["left","top"],Du=["fill-area","fit-area","stencil","none"],Tr={left:0,top:0,width:0,height:0};function Vr(e,t,i){return!(i=i||["width","height","left","top"]).some(function(o){return e[o]!==t[o]})}function Pe(e){return{left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height}}function lt(e,t){return{left:e.left-t.left,top:e.top-t.top}}function se(e){return{left:e.left+e.width/2,top:e.top+e.height/2}}function At(e,t){var i={left:0,top:0,right:0,bottom:0};return Ie.forEach(function(o){var r=t[o],s=Pe(e)[o];i[o]=r!==void 0&&s!==void 0?o==="left"||o==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),i}function ze(e,t){return{left:e.left-t.left,top:e.top-t.top,width:e.width+t.left+t.right,height:e.height+t.top+t.bottom}}function on(e){return{left:-e.left,top:-e.top}}function fe(e,t){return I(I({},e),{left:e.left+t.left,top:e.top+t.top})}function Ce(e,t,i,o){if(t!==1){if(i){var r=se(e);return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2+(i.left-r.left)*(1-t),top:e.top+e.height*(1-t)/2+(i.top-r.top)*(1-t)}}return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2,top:e.top+e.height*(1-t)/2}}return e}function G(e){return e.width/e.height}function ct(e,t){return Math.min(t.right!==void 0&&t.left!==void 0?(t.right-t.left)/e.width:1/0,t.bottom!==void 0&&t.top!==void 0?(t.bottom-t.top)/e.height:1/0)}function dt(e,t){var i={left:0,top:0},o=At(e,t);return o.left&&o.left>0?i.left=o.left:o.right&&o.right>0&&(i.left=-o.right),o.top&&o.top>0?i.top=o.top:o.bottom&&o.bottom>0&&(i.top=-o.bottom),i}function ii(e,t){var i;return t.minimum&&e<t.minimum?i=t.minimum:t.maximum&&e>t.maximum&&(i=t.maximum),i}function Lr(e,t){var i=G(e),o=G(t);return t.width<1/0&&t.height<1/0?i>o?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t.width<1/0?{width:t.width,height:t.width/i}:t.height<1/0?{width:t.height*i,height:t.height}:e}function Dr(e,t){var i=t*Math.PI/180;return{width:Math.abs(e.width*Math.cos(i))+Math.abs(e.height*Math.sin(i)),height:Math.abs(e.width*Math.sin(i))+Math.abs(e.height*Math.cos(i))}}function _e(e,t){var i=t*Math.PI/180;return{left:e.left*Math.cos(i)-e.top*Math.sin(i),top:e.left*Math.sin(i)+e.top*Math.cos(i)}}function rn(e,t){var i=At(ae(e,t),t);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((e.width+i.left+i.right)/e.width,ct(e,t)):Math.min((e.height+i.top+i.bottom)/e.height,ct(e,t)):1}function ae(e,t,i){i===void 0&&(i=!1);var o=dt(e,t);return fe(e,i?on(o):o)}function oi(e){return{width:e.right!==void 0&&e.left!==void 0?e.right-e.left:1/0,height:e.bottom!==void 0&&e.top!==void 0?e.bottom-e.top:1/0}}function Fu(e,t){return I(I({},e),{minWidth:Math.min(t.width,e.minWidth),minHeight:Math.min(t.height,e.minHeight),maxWidth:Math.min(t.width,e.maxWidth),maxHeight:Math.min(t.height,e.maxHeight)})}function Fr(e,t,i){i===void 0&&(i=!0);var o={};return Ie.forEach(function(r){var s=e[r],a=t[r];s!==void 0&&a!==void 0?o[r]=r==="left"||r==="top"?i?Math.max(s,a):Math.min(s,a):i?Math.min(s,a):Math.max(s,a):a!==void 0?o[r]=a:s!==void 0&&(o[r]=s)}),o}function sn(e,t){return Fr(e,t,!0)}function Or(e){var t=e.size,i=e.aspectRatio,o=e.ignoreMinimum,r=e.sizeRestrictions;return!!((t.correctRatio||G(t)>=i.minimum&&G(t)<=i.maximum)&&t.height<=r.maxHeight&&t.width<=r.maxWidth&&t.width&&t.height&&(o||t.height>=r.minHeight&&t.width>=r.minWidth))}function qr(e,t){return Math.pow(e.width-t.width,2)+Math.pow(e.height-t.height,2)}function De(e){var t=e.width,i=e.height,o=e.sizeRestrictions,r={minimum:e.aspectRatio&&e.aspectRatio.minimum||0,maximum:e.aspectRatio&&e.aspectRatio.maximum||1/0},s={width:Math.max(o.minWidth,Math.min(o.maxWidth,t)),height:Math.max(o.minHeight,Math.min(o.maxHeight,i))};function a(d,h){return h===void 0&&(h=!1),d.reduce(function(f,m){return Or({size:m,aspectRatio:r,sizeRestrictions:o,ignoreMinimum:h})&&(!f||qr(m,{width:t,height:i})<qr(f,{width:t,height:i}))?m:f},null)}var c=[];r&&[r.minimum,r.maximum].forEach(function(d){d&&c.push({width:s.width,height:s.width/d,correctRatio:!0},{width:s.height*d,height:s.height,correctRatio:!0})}),Or({size:s,aspectRatio:r,sizeRestrictions:o})&&c.push(s);var l=a(c)||a(c,!0);return l&&{width:l.width,height:l.height}}function ri(e){var t=e.event,i=e.coordinates,o=e.positionRestrictions,r=o===void 0?{}:o,s=fe(i,t.directions);return fe(s,dt(s,r))}function Ou(e){var t=e.coordinates,i=e.transform,o=e.imageSize,r=e.sizeRestrictions,s=e.positionRestrictions,a=e.aspectRatio,c=e.visibleArea,l=function(h,f){return ri({coordinates:h,positionRestrictions:s,event:new ei({left:f.left-h.left,top:f.top-h.top})})},d=I({},t);return(Array.isArray(i)?i:[i]).forEach(function(h){var f={};ne((f=typeof h=="function"?h({coordinates:d,imageSize:o,visibleArea:c}):h).width)&&ne(f.height)||(d=function(m,g){var p=I(I(I({},m),De({width:g.width,height:g.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return l(p,{left:m.left,top:m.top})}(d,I(I({},d),f))),ne(f.left)&&ne(f.top)||(d=l(d,I(I({},d),f)))}),d}function qu(e){e.event;var t=e.getAreaRestrictions,i=e.boundaries,o=e.coordinates,r=e.visibleArea;e.aspectRatio;var s=e.stencilSize,a=e.sizeRestrictions,c=e.positionRestrictions;e.stencilReference;var l,d,h,f=I({},o),m=I({},r),g=I({},s);l=G(g),d=G(f),h===void 0&&(h=.001),(l===0||d===0?Math.abs(d-l)<h:Math.abs(d/l)<1+h&&Math.abs(d/l)>1-h)||(f=I(I({},f),De({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(g),maximum:G(g)}})));var p=rn(m=Ce(m,f.width*i.width/(m.width*g.width)),t({visibleArea:m,type:"resize"}));return p!==1&&(m=Ce(m,p),f=Ce(f,p)),m=ae(m=fe(m,lt(se(f),se(m))),t({visibleArea:m,type:"move"})),{coordinates:f=ae(f,sn(Pe(m),c)),visibleArea:m}}function Hu(e){var t=e.event,i=e.getAreaRestrictions,o=e.boundaries,r=e.coordinates,s=e.visibleArea;e.aspectRatio,e.stencilSize,e.sizeRestrictions;var a=e.positionRestrictions;e.stencilReference;var c=I({},r),l=I({},s);if(r&&s&&t.type!=="manipulateImage"){var d={width:0,height:0};l.width,o.width,G(o)>G(c)?(d.height=.8*o.height,d.width=d.height*G(c)):(d.width=.8*o.width,d.height=d.width*G(c));var h=rn(l=Ce(l,c.width*o.width/(l.width*d.width)),i({visibleArea:l,type:"resize"}));l=Ce(l,h),h!==1&&(d.height/=h,d.width/=h),l=ae(l=fe(l,lt(se(c),se(l))),i({visibleArea:l,type:"move"})),c=ae(c,sn(Pe(l),a))}return{coordinates:c,visibleArea:l}}function Uu(e){var t=e.event,i=e.coordinates,o=e.visibleArea,r=e.getAreaRestrictions,s=I({},o),a=I({},i);if(t.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),l=Math.max(0,a.height-s.height);c>l?s=Ce(s,Math.min(a.width/s.width,ct(s,r({visibleArea:s,type:"resize"})))):l>c&&(s=Ce(s,Math.min(a.height/s.height,ct(s,r({visibleArea:s,type:"resize"}))))),s=ae(s=fe(s,on(dt(a,Pe(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function _u(e){var t=e.imageSize,i=e.visibleArea,o=e.coordinates,r=i||t;return{left:(i?i.left:0)+r.width/2-o.width/2,top:(i?i.top:0)+r.height/2-o.height/2}}function Wu(e){var t=e.imageSize,i=e.visibleArea,o=e.aspectRatio,r=e.sizeRestrictions,s=i||t,a=Math.min(o.maximum||1/0,Math.max(o.minimum||0,G(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return De(I(I({},c),{aspectRatio:o,sizeRestrictions:r}))}function Gu(e){var t,i,o=e.imageSize,r=e.visibleArea,s=e.boundaries,a=e.aspectRatio,c=e.sizeRestrictions,l=e.stencilSize,d=r||o;return G(d)>G(s)?i=(t=l.height*d.height/s.height)*G(l):t=(i=l.width*d.width/s.width)/G(l),De({width:i,height:t,aspectRatio:a,sizeRestrictions:c})}function ju(e){var t=e.getAreaRestrictions,i=e.coordinates,o=e.imageSize,r=G(e.boundaries);if(i){var s={height:Math.max(i.height,o.height),width:Math.max(i.width,o.width)},a=Lr({width:G(s)>r?s.width:s.height*r,height:G(s)>r?s.width/r:s.height},oi(t())),c={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},l=At(i,Pe(I({left:0,top:0},o))),d={};return!l.left&&!l.right&&c.width<=o.width&&(d.left=0,d.right=o.width),!l.top&&!l.bottom&&c.height<=o.height&&(d.top=0,d.bottom=o.height),ae(c,d)}var h=G(o);return a={height:h>r?o.height:o.width/r,width:h>r?o.height*r:o.width},{left:o.width/2-a.width/2,top:o.height/2-a.height/2,width:a.width,height:a.height}}function an(e,t){return Fr(e,Pe(t))}function Zu(e){var t=e.event,i=e.coordinates,o=e.visibleArea,r=e.sizeRestrictions,s=e.getAreaRestrictions,a=e.positionRestrictions,c=e.adjustStencil,l=t.scale,d=t.move,h=I({},o),f=I({},i),m=1,g=1,p=l.factor&&Math.abs(l.factor-1)>.001;h=fe(h,{left:d.left||0,top:d.top||0});var k={stencil:{minimum:Math.max(r.minWidth?r.minWidth/f.width:0,r.minHeight?r.minHeight/f.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/f.width:1/0,r.maxHeight?r.maxHeight/f.height:1/0,ct(f,a))},area:{maximum:ct(h,s({visibleArea:h,type:"resize"}))}};l.factor&&p&&(l.factor<1?(g=Math.max(l.factor,k.stencil.minimum))>1&&(g=1):l.factor>1&&(g=Math.min(l.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(g=1)),g&&(h=Ce(h,g,l.center));var w=i.left-o.left,M=o.width+o.left-(i.width+i.left),F=i.top-o.top,O=o.height+o.top-(i.height+i.top);return h=ae(h=fe(h,dt(h,{left:a.left!==void 0?a.left-w*g:void 0,top:a.top!==void 0?a.top-F*g:void 0,bottom:a.bottom!==void 0?a.bottom+O*g:void 0,right:a.right!==void 0?a.right+M*g:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*g,f.height=f.height*g,f.left=h.left+w*g,f.top=h.top+F*g,f=ae(f,sn(Pe(h),a)),l.factor&&p&&c&&(l.factor>1?m=Math.min(k.area.maximum,l.factor)/g:l.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,l.factor/g)),m!==1&&(h=fe(h=ae(h=Ce(h,m,l.factor>1?l.center:se(f)),s({visibleArea:h,type:"move"})),on(dt(f,Pe(h)))))),{coordinates:f,visibleArea:h}}function Ju(e){var t=e.aspectRatio,i=e.getAreaRestrictions,o=e.coordinates,r=e.visibleArea,s=e.sizeRestrictions,a=e.positionRestrictions,c=e.imageSize,l=e.previousImageSize,d=e.angle,h=I({},o),f=I({},r),m=_e(se(I({left:0,top:0},l)),d);return(h=I(I({},De({sizeRestrictions:s,aspectRatio:t,width:h.width,height:h.height})),_e(se(h),d))).left-=m.left-c.width/2+h.width/2,h.top-=m.top-c.height/2+h.height/2,f=Ce(f,rn(f,i({visibleArea:f,type:"resize"}))),{coordinates:h=ae(h,a),visibleArea:f=ae(f=fe(f,lt(se(h),se(o))),i({visibleArea:f,type:"move"}))}}function Xu(e){var t=e.flip,i=e.previousFlip,o=e.rotate,r=e.getAreaRestrictions,s=e.coordinates,a=e.visibleArea,c=e.imageSize,l=I({},s),d=I({},a),h=i.horizontal!==t.horizontal,f=i.vertical!==t.vertical;if(h||f){var m=_e({left:c.width/2,top:c.height/2},-o),g=_e(se(l),-o),p=_e({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},o);l=fe(l,lt(p,se(l))),g=_e(se(d),-o),d=ae(d=fe(d,lt(p=_e({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},o),se(d))),r({visibleArea:d,type:"move"}))}return{coordinates:l,visibleArea:d}}function Hr(e){var t=e.directions,i=e.coordinates,o=e.positionRestrictions,r=o===void 0?{}:o,s=e.sizeRestrictions,a=e.preserveRatio,c=e.compensate,l=I({},t),d=ze(i,l).width,h=ze(i,l).height;d<0&&(l.left<0&&l.right<0?(l.left=-(i.width-s.minWidth)/(l.left/l.right),l.right=-(i.width-s.minWidth)/(l.right/l.left)):l.left<0?l.left=-(i.width-s.minWidth):l.right<0&&(l.right=-(i.width-s.minWidth))),h<0&&(l.top<0&&l.bottom<0?(l.top=-(i.height-s.minHeight)/(l.top/l.bottom),l.bottom=-(i.height-s.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(i.height-s.minHeight):l.bottom<0&&(l.bottom=-(i.height-s.minHeight)));var f=At(ze(i,l),r);c&&(f.left&&f.left>0&&f.right===0?(l.right+=f.left,l.left-=f.left):f.right&&f.right>0&&f.left===0&&(l.left+=f.right,l.right-=f.right),f.top&&f.top>0&&f.bottom===0?(l.bottom+=f.top,l.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(l.top+=f.bottom,l.bottom-=f.bottom),f=At(ze(i,l),r));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Ie.forEach(function(k){var w=f[k];w&&l[k]&&(m[k]=Math.max(0,1-w/l[k]))}),a){var g=Math.min.apply(null,Ie.map(function(k){return m[k]}));g!==1/0&&Ie.forEach(function(k){l[k]*=g})}else Ie.forEach(function(k){m[k]!==1/0&&(l[k]*=m[k])});if(d=ze(i,l).width,h=ze(i,l).height,l.right+l.left&&(d>s.maxWidth?m.width=(s.maxWidth-i.width)/(l.right+l.left):d<s.minWidth&&(m.width=(s.minWidth-i.width)/(l.right+l.left))),l.bottom+l.top&&(h>s.maxHeight?m.height=(s.maxHeight-i.height)/(l.bottom+l.top):h<s.minHeight&&(m.height=(s.minHeight-i.height)/(l.bottom+l.top))),a){var p=Math.min(m.width,m.height);p!==1/0&&Ie.forEach(function(k){l[k]*=p})}else m.width!==1/0&&Tu.forEach(function(k){l[k]*=m.width}),m.height!==1/0&&Vu.forEach(function(k){l[k]*=m.height});return l}function ln(e,t,i){return t==0&&i==0?e/2:t==0?0:i==0?e:e*Math.abs(t/(t+i))}var Yu=Ae("vue-simple-handler"),Qu=Ae("vue-simple-handler-wrapper"),si={name:"SimpleHandler",components:{HandlerWrapper:Pr},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var e,t=(Se(e={},this.horizontalPosition,!!this.horizontalPosition),Se(e,this.verticalPosition,!!this.verticalPosition),Se(e,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Se(e,"hover",this.hover),e);return{default:Q(Yu(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:Q(Qu(t),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};si.render=function(e,t,i,o,r,s){var a=n.resolveComponent("HandlerWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,"vertical-position":i.verticalPosition,"horizontal-position":i.horizontalPosition,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Ku=Ae("vue-simple-line"),eh=Ae("vue-simple-line-wrapper"),ai={name:"SimpleLine",components:{LineWrapper:zr},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Q(Ku(Se({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Q(eh(Se({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};ai.render=function(e,t,i,o,r,s){var a=n.resolveComponent("LineWrapper");return n.openBlock(),n.createBlock(a,{class:s.classes.wrapper,position:i.position,disabled:i.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var li=Ae("vue-bounding-box"),th=["east","west",null],nh=["south","north",null],Ur={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return si}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return ai}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var e=[];return th.forEach(function(t){nh.forEach(function(i){if(t!==i){var o=Mr(t,i),r=o.name,s=o.classname;e.push({name:r,classname:s,verticalDirection:i,horizontalDirection:t})}})}),{points:e}},computed:{style:function(){var e={};return this.width&&this.height&&(e.width="".concat(this.width,"px"),e.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),e},classes:function(){var e=this.handlersClasses,t=this.handlersWrappersClasses,i=this.linesClasses,o=this.linesWrappersClasses;return{root:li(),handlers:e,handlersWrappers:t,lines:i,linesWrappers:o}},lineNodes:function(){var e=this,t=[];return this.points.forEach(function(i){i.horizontalDirection&&i.verticalDirection||!e.lines[i.name]||t.push({name:i.name,component:e.linesComponent,class:Q(e.classes.lines.default,e.classes.lines[i.name],!e.resizable&&e.classes.lines.disabled),wrapperClass:Q(e.classes.linesWrappers.default,e.classes.linesWrappers[i.name],!e.resizable&&e.classes.linesWrappers.disabled),hoverClass:e.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!e.resizable})}),t},handlerNodes:function(){var e=this,t=[],i=this.width,o=this.height;return this.points.forEach(function(r){if(e.handlers[r.name]){var s={name:r.name,component:e.handlersComponent,class:Q(e.classes.handlers.default,e.classes.handlers[r.name]),wrapperClass:Q(e.classes.handlersWrappers.default,e.classes.handlersWrappers[r.name]),hoverClass:e.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!e.resizable};if(i&&o){var a=r.horizontalDirection,c=r.verticalDirection,l=a==="east"?i:a==="west"?0:i/2,d=c==="south"?o:c==="north"?0:o/2;s.wrapperClass=li("handler"),s.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(d,"px)")},e.transitions&&e.transitions.enabled&&(s.wrapperStyle.transition="".concat(e.transitions.time,"ms ").concat(e.transitions.timingFunction))}else s.wrapperClass=li("handler",Se({},r.classname,!0));t.push(s)}}),t}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(e,t,i){var o,r=e.shift(),s=r.left,a=r.top,c={left:0,right:0,top:0,bottom:0};t==="west"?c.left-=s:t==="east"&&(c.right+=s),i==="north"?c.top-=a:i==="south"&&(c.bottom+=a),!i&&t?o="width":i&&!t&&(o="height"),this.resizable&&this.$emit("resize",new Iu(c,{allowedDirections:{left:t==="west"||!t,right:t==="east"||!t,bottom:i==="south"||!i,top:i==="north"||!i},preserveAspectRatio:e.nativeEvent&&e.nativeEvent.shiftKey,respectDirection:o}))}},emits:["resize","resize-end"]};Ur.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[n.renderSlot(e.$slots,"default"),n.createVNode("div",null,[(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.lineNodes,function(a){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[1]||(t[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(n.openBlock(!0),n.createBlock(n.Fragment,null,n.renderList(s.handlerNodes,function(a){return n.openBlock(),n.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[2]||(t[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var ih=Ae("vue-draggable-area"),_r={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:ih()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(e){if(e.cancelable){var t=this.movable&&e.touches.length===1;t&&(this.touches=et(e.touches)),(this.touchStarted||t)&&(e.preventDefault(),e.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(e){this.touches.length>=1&&(this.touchStarted?(this.processMove(e,e.touches),e.preventDefault(),e.stopPropagation()):Ir({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:e.touches[0].clientX,y:e.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(e){if(this.movable&&e.button===0){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.cancelable&&e.preventDefault(),e.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.container.getBoundingClientRect(),i=t.left,o=t.top;this.anchor={x:e.clientX-i,y:e.clientY-o}},processMove:function(e,t){var i=et(t);if(this.touches.length){var o=this.$refs.container.getBoundingClientRect(),r=o.left,s=o.top;this.touches.length===1&&i.length===1&&this.$emit("move",new ei({left:i[0].clientX-(r+this.anchor.x),top:i[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};_r.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],544)};function ci(e){var t,i;return{rotate:e.rotate||0,flip:{horizontal:((t=e==null?void 0:e.flip)===null||t===void 0?void 0:t.horizontal)||!1,vertical:((i=e==null?void 0:e.flip)===null||i===void 0?void 0:i.vertical)||!1}}}function oh(e){return new Promise(function(t,i){try{if(e)if(/^data:/i.test(e))t(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var d=atob(l),h=d.length,f=new ArrayBuffer(h),m=new Uint8Array(f),g=0;g<h;g++)m[g]=d.charCodeAt(g);return f}(e));else if(/^blob:/i.test(e)){var o=new FileReader;o.onload=function(l){t(l.target.result)},s=e,a=function(l){o.readAsArrayBuffer(l)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?t(r.response):i("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",e,!0),r.responseType="arraybuffer",r.send(null)}else i("Error: the image is empty")}catch(l){i(l)}var s,a,c})}function Wr(e){var t=e.rotate,i=e.flip,o=e.scaleX,r=e.scaleY,s="";return s+=" rotate("+t+"deg) ",s+=" scaleX("+o*(i.horizontal?-1:1)+") ",s+=" scaleY("+r*(i.vertical?-1:1)+") "}function rh(e){try{var t,i=new DataView(e),o=void 0,r=void 0,s=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var c=i.byteLength,l=2;l+1<c;){if(i.getUint8(l)===255&&i.getUint8(l+1)===225){s=l;break}l++}if(s&&(o=s+10,function(g,p,k){var w,M="";for(w=p,k+=p;w<k;w++)M+=String.fromCharCode(g.getUint8(w));return M}(i,s+4,4)==="Exif")){var d=i.getUint16(o);if(((r=d===18761)||d===19789)&&i.getUint16(o+2,r)===42){var h=i.getUint32(o+4,r);h>=8&&(a=o+h)}}if(a){for(var f=i.getUint16(a,r),m=0;m<f;m++)if(l=a+12*m+2,i.getUint16(l,r)===274){l+=8,t=i.getUint16(l,r),i.setUint16(l,1,r);break}}return t}catch{return null}}function Gr(e,t){var i=t.getBoundingClientRect(),o=i.left,r=i.top,s={left:0,top:0},a=0;return e.forEach(function(c){s.left+=(c.clientX-o)/e.length,s.top+=(c.clientY-r)/e.length}),e.forEach(function(c){a+=Ir({x:s.left,y:s.top},{x:c.clientX-o,y:c.clientY-r})}),{centerMass:s,spread:a,count:e.length}}var jr={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Qn(this.processEnd),this.touches=[]},methods:{processMove:function(e,t){if(this.touches.length){if(this.touches.length===1&&t.length===1)this.$emit("move",new Rt({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=Gr(t,this.$refs.container),o=this.oldGeometricProperties;o.count===i.count&&o.count>1&&this.$emit("resize",new Rt({left:o.centerMass.left-i.centerMass.left,top:o.centerMass.top-i.centerMass.top},{factor:o.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(e){return this.eventsFilter?this.eventsFilter(e,this.transforming)!==!1:(e.preventDefault(),e.stopPropagation(),!0)},onTouchStart:function(e){if(e.cancelable&&(this.touchMove||this.touchResize&&e.touches.length>1)&&this.processEvent(e)){var t=this.$refs.container,i=t.getBoundingClientRect(),o=i.left,r=i.top,s=i.bottom,a=i.right;this.touches=et(e.touches).filter(function(c){return c.clientX>o&&c.clientX<a&&c.clientY>r&&c.clientY<s}),this.oldGeometricProperties=Gr(this.touches,t)}},onTouchEnd:function(e){e.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(e){var t=this;if(this.touches.length){var i=et(e.touches).filter(function(o){return!o.identifier||t.touches.find(function(r){return r.identifier===o.identifier})});this.processEvent(e)&&(this.processMove(e,i),this.processStart())}},onMouseDown:function(e){if(this.mouseMove&&"buttons"in e&&e.buttons===1&&this.processEvent(e)){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(e){this.touches.length&&this.processEvent(e)&&this.processMove(e,[{clientX:e.clientX,clientY:e.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(e){if(this.wheelResize&&this.processEvent(e)){var t=this.$refs.container.getBoundingClientRect(),i=t.left,o=t.top,r=1+this.wheelResize.ratio*(a=e.deltaY||e.detail||e.wheelDelta,(c=+a)==0||Nr(c)?c:c>0?1:-1),s={left:e.clientX-i,top:e.clientY-o};this.$emit("resize",new Rt({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};jr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:t[3]||(t[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[n.renderSlot(e.$slots,"default")],544)};var di={components:{TransformableImage:jr},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};di.render=function(e,t,i,o,r,s){var a=n.resolveComponent("transformable-image");return n.openBlock(),n.createBlock(a,{"touch-move":i.touchMove,"touch-resize":i.touchResize,"mouse-move":i.mouseMove,"wheel-resize":i.wheelResize,onMove:t[1]||(t[1]=function(c){return e.$emit("move",c)}),onResize:t[2]||(t[2]=function(c){return e.$emit("resize",c)})},{default:n.withCtx(function(){return[n.renderSlot(e.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var cn=Ae("vue-preview"),Zr={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:cn({fill:this.fill}),wrapper:cn("wrapper"),imageWrapper:cn("image-wrapper"),image:Q(cn("image"),this.imageClass)}},style:function(){if(this.fill)return{};var e={};return this.width&&(e.width="".concat(this.size.width,"px")),this.height&&(e.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},wrapperStyle:function(){var e={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){if(this.coordinates&&this.image){var e=this.coordinates.width/this.size.width,t=W(W({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/e,scaleY:1/e}),i=this.imageSize.width,o=this.imageSize.height,r=Dr({width:i,height:o},t.rotate),s={width:"".concat(i,"px"),height:"".concat(o,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-r.width)*t.scaleX/2,top:(o-r.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*i/2,top:(1-t.scaleY)*o/2}};return s.transform=`translate(
42
+ `.concat(-this.coordinates.left/e-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/e-a.rotate.top-a.scale.top,"px) ")+Wr(t),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(e){(e.width||e.height)&&this.onChangeImage()}},mounted:function(){var e=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){e.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var e=this.$refs.image;this.calculatedImageSize.height=e.naturalHeight,this.calculatedImageSize.width=e.naturalWidth},refresh:function(){var e=this.$refs.root;this.width||(this.calculatedSize.width=e.clientWidth),this.height||(this.calculatedSize.height=e.clientHeight)},onChangeImage:function(){var e=this.$refs.image;e&&e.complete&&this.refreshImage(),this.refresh()}}};Zr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[n.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[n.withDirectives(n.createVNode("img",{ref:"image",src:i.image&&i.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[n.vShow,i.image&&i.image.src]])],6)],6)};var Jr={components:{Preview:Zr},inheritAttrs:!1};Jr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("preview");return n.openBlock(),n.createBlock(a,n.mergeProps(e.$attrs,{fill:!0}),null,16)};var ui=Ae("vue-rectangle-stencil"),Xr={name:"RectangleStencil",components:{StencilPreview:Jr,BoundingBox:Ur,DraggableArea:_r},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return si}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return ai}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Q(ui({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Q(ui("preview"),this.previewClass),boundingBox:Q(ui("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,i=e.width,o=e.left,r=e.top,s={width:"".concat(i,"px"),height:"".concat(t,"px"),transform:"translate(".concat(o,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Xr.render=function(e,t,i,o,r,s){var a=n.resolveComponent("stencil-preview"),c=n.resolveComponent("draggable-area"),l=n.resolveComponent("bounding-box");return n.openBlock(),n.createBlock("div",{class:s.classes.stencil,style:s.style},[n.createVNode(l,{width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,transitions:i.transitions,class:s.classes.boundingBox,handlers:i.handlers,"handlers-component":i.handlersComponent,"handlers-classes":i.handlersClasses,"handlers-wrappers-classes":i.handlersWrappersClasses,lines:i.lines,"lines-component":i.linesComponent,"lines-classes":i.linesClasses,"lines-wrappers-classes":i.linesWrappersClasses,resizable:i.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:n.withCtx(function(){return[n.createVNode(c,{movable:i.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:n.withCtx(function(){return[n.createVNode(a,{image:i.image,coordinates:i.coordinates,width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,class:s.classes.preview,transitions:i.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var sh=["transitions"],Fe=Ae("vue-advanced-cropper"),Yr={name:"Cropper",components:{BackgroundWrapper:di},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Xr}},backgroundWrapperComponent:{type:[Object,String],default:function(){return di}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(e){return Du.indexOf(e)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(e){return!(typeof e=="string"&&e!=="fill"&&e!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(e){var t=e.event,i=e.coordinates,o=e.aspectRatio,r=e.positionRestrictions,s=e.sizeRestrictions,a=I(I({},i),{right:i.left+i.width,bottom:i.top+i.height}),c=t.params||{},l=I({},t.directions),d=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(l.left=0,l.right=0),s.heightFrozen&&(l.top=0,l.bottom=0),Ie.forEach(function(L){d[L]||(l[L]=0)});var h=ze(a,l=Hr({coordinates:a,directions:l,sizeRestrictions:s,positionRestrictions:r})).width,f=ze(a,l).height,m=c.preserveRatio?G(a):ii(h/f,o);if(m){var g=c.respectDirection;if(g||(g=a.width>=a.height||m===1?"width":"height"),g==="width"){var p=h/m-a.height;if(d.top&&d.bottom){var k=l.top,w=l.bottom;l.bottom=ln(p,w,k),l.top=ln(p,k,w)}else d.bottom?l.bottom=p:d.top?l.top=p:d.right?l.right=0:d.left&&(l.left=0)}else if(g==="height"){var M=a.width-f*m;if(d.left&&d.right){var F=l.left,O=l.right;l.left=-ln(M,F,O),l.right=-ln(M,O,F)}else d.left?l.left=-M:d.right?l.right=-M:d.top?l.top=0:d.bottom&&(l.bottom=0)}l=Hr({directions:l,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:c.compensate})}return h=ze(a,l).width,f=ze(a,l).height,(m=c.preserveRatio?G(a):ii(h/f,o))&&Math.abs(m-h/f)>.001&&Ie.forEach(function(L){d[L]||(l[L]=0)}),ri({event:new ei({left:-l.left,top:-l.top}),coordinates:{width:i.width+l.right+l.left,height:i.height+l.top+l.bottom,left:i.left,top:i.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:ri},initStretcher:{type:Function,default:function(e){var t=e.stretcher,i=e.imageSize,o=G(i);t.style.width=i.width+"px",t.style.height=t.clientWidth/o+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(e){var t=e.visibleArea,i=e.coordinates,o=e.aspectRatio,r=e.sizeRestrictions,s=e.positionRestrictions,a=I(I({},i),De({width:i.width,height:i.height,aspectRatio:o,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,r.minHeight),minWidth:Math.min(t.width,r.minWidth)}}));return a=ae(a=fe(a,lt(se(i),se(a))),sn(Pe(t),s))}},fitVisibleArea:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,o=e.getAreaRestrictions,r=e.coordinates,s=I({},t);s.height=s.width/G(i),s.top+=(t.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=Ce(s,Math.max(r.height/s.height,r.width/s.width)));var a=on(dt(r,Pe(s=Ce(s,rn(s,o({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=ae(s=fe(s,a),o({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,o=e.imageSize,r=e.imageRestriction,s=e.type,a={};return r==="fill-area"?a={left:0,top:0,right:o.width,bottom:o.height}:r==="fit-area"&&(G(i)>G(o)?(a={top:0,bottom:o.height},t&&s==="move"&&(t.width>o.width?(a.left=-(t.width-o.width)/2,a.right=o.width-a.left):(a.left=0,a.right=o.width))):(a={left:0,right:o.width},t&&s==="move"&&(t.height>o.height?(a.top=-(t.height-o.height)/2,a.bottom=o.height-a.top):(a.top=0,a.bottom=o.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(e){return{minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.imageSize,i={};return e.imageRestriction!=="none"&&(i={left:0,top:0,right:t.width,bottom:t.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:W({},Tr)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var e=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(e))+Math.abs(this.imageAttributes.height*Math.sin(e)),height:Math.abs(this.imageAttributes.width*Math.sin(e))+Math.abs(this.imageAttributes.height*Math.cos(e))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var e=Kn(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Kn(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:e}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var e=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:ne(this.minWidth)?0:nn(this.minWidth),minHeight:ne(this.minHeight)?0:nn(this.minHeight),maxWidth:ne(this.maxWidth)?1/0:nn(this.maxWidth),maxHeight:ne(this.maxHeight)?1/0:nn(this.maxHeight)});if(e=function(o){var r=o.areaRestrictions,s=o.sizeRestrictions,a=o.boundaries,c=o.positionRestrictions,l=I(I({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,c.bottom-c.top));var d=oi(r),h=Lr(a,d);return d.width<1/0&&(!l.maxWidth||l.maxWidth>h.width)&&(l.maxWidth=Math.min(l.maxWidth,h.width)),d.height<1/0&&(!l.maxHeight||l.maxHeight>h.height)&&(l.maxHeight=Math.min(l.maxHeight,h.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({sizeRestrictions:e,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var t=this.getStencilSize(),i=oi(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));e.maxWidth=Math.min(e.maxWidth,i.width*t.width/this.boundaries.width),e.maxHeight=Math.min(e.maxHeight,i.height*t.height/this.boundaries.height),e.maxWidth<e.minWidth&&(e.minWidth=e.maxWidth),e.maxHeight<e.minHeight&&(e.minHeight=e.maxHeight)}return e}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Fe(),image:Q(Fe("image"),this.imageClass),stencil:Fe("stencil"),boundaries:Q(Fe("boundaries"),this.boundariesClass),stretcher:Q(Fe("stretcher")),background:Q(Fe("background"),this.backgroundClass),foreground:Q(Fe("foreground"),this.foregroundClass),imageWrapper:Q(Fe("image-wrapper")),cropperWrapper:Q(Fe("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var e=this.coordinates,t=e.width,i=e.height,o=e.left,r=e.top;return{width:t/this.coefficient,height:i/this.coefficient,left:(o-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var e={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(e.opacity="0"),e},imageStyle:function(){var e=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},t={left:(e.width-this.imageSize.width)/(2*this.coefficient),top:(e.height-this.imageSize.height)/(2*this.coefficient)},i={left:(1-1/this.coefficient)*e.width/2,top:(1-1/this.coefficient)*e.height/2},o=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/e.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/e.height)}),r={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t.left-i.left-this.imageTransforms.translateX,"px, ").concat(-t.top-i.top-this.imageTransforms.translateY,"px)")+Wr(o)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var e=this;this.$nextTick(function(){e.resetCoordinates(),e.runAutoZoom("setCoordinates"),e.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(e,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(i){return e[i]!==t[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Qn(this.update,this.debounce),this.debouncedDisableTransitions=Qn(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var e=this.initialized?this.prepareResult(W({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:W({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:e,visibleArea:this.visibleArea?W({},this.visibleArea):null,imageTransforms:t,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:e,visibleArea:this.visibleArea?W({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new Rt({},{factor:1/e,center:t}),{normalize:!1,transitions:r})},move:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;this.onManipulateImage(new Rt({left:e||0,top:t||0}),{normalize:!1,transitions:r})},setCoordinates:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.autoZoom,r=o===void 0||o,s=i.transitions,a=s===void 0||s;this.$nextTick(function(){t.imageLoaded?(t.transitionsActive||(a&&t.enableTransitions(),t.coordinates=t.applyTransform(e),r&&t.runAutoZoom("setCoordinates"),a&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=e})},refresh:function(){var e=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then(function(){e.onChange()}):this.resetVisibleArea().then(function(){e.onChange()})},reset:function(){var e=this;return this.resetVisibleArea().then(function(){e.onChange(!1)})},awaitRender:function(e){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){e(),t.awaiting=!1}))},prepareResult:function(e){return this.roundResult?function(t){var i=t.coordinates,o=t.sizeRestrictions,r=t.positionRestrictions,s={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return s.width>o.maxWidth?s.width=Math.floor(i.width):s.width<o.minWidth&&(s.width=Math.ceil(i.width)),s.height>o.maxHeight?s.height=Math.floor(i.height):s.height<o.minHeight&&(s.height=Math.ceil(i.height)),ae(s,r)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:an(this.positionRestrictions,this.visibleArea),coordinates:e})):e},processAutoZoom:function(e,t,i,o){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?qu:this.autoZoom?Hu:Uu);var s=r({event:{type:e,params:o},visibleArea:t,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return W(W({},s),{},{changed:!Vr(s.visibleArea,t)||!Vr(s.coordinates,i)})},runAutoZoom:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,o=i!==void 0&&i,r=$u(t,sh),s=this.processAutoZoom(e,this.visibleArea,this.coordinates,r),a=s.visibleArea,c=s.coordinates,l=s.changed;o&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,o&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(e){return function(t){var i=t.event,o=t.visibleArea,r=t.coefficient;if(i.type==="manipulateImage")return I(I({},i),{move:{left:i.move&&i.move.left?r*i.move.left:0,top:i.move&&i.move.top?r*i.move.top:0},scale:{factor:i.scale&&i.scale.factor?i.scale.factor:1,center:i.scale&&i.scale.center?{left:i.scale.center.left*r+o.left,top:i.scale.center.top*r+o.top}:null}});if(i.type==="resize"){var s=I(I({},i),{directions:I({},i.directions)});return Ie.forEach(function(c){s.directions[c]*=r}),s}if(i.type==="move"){var a=I(I({},i),{directions:I({},i.directions)});return Lu.forEach(function(c){a.directions[c]*=r}),a}return i}(W(W({},this.getPublicProperties()),{},{event:e}))},getCanvas:function(){if(this.$refs.canvas){var e=this.$refs.canvas,t=this.$refs.image,i=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,l,d){var h=d.rotate,f=d.flip,m={width:l.naturalWidth,height:l.naturalHeight},g=Dr(m,h),p=c.getContext("2d");c.height=g.height,c.width=g.width,p.save();var k=_e(se(I({left:0,top:0},m)),h);return p.translate(-(k.left-g.width/2),-(k.top-g.height/2)),p.rotate(h*Math.PI/180),p.translate(f.horizontal?m.width:0,f.vertical?m.height:0),p.scale(f.horizontal?-1:1,f.vertical?-1:1),p.drawImage(l,0,0,m.width,m.height),p.restore(),c}(this.$refs.sourceCanvas,t,this.imageTransforms):t,o=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(c){return c.find(function(l){return d=l,!Number.isNaN(parseFloat(d))&&isFinite(d);var d})},s=De({sizeRestrictions:{minWidth:r([o.width,o.minWidth])||0,minHeight:r([o.height,o.minHeight])||0,maxWidth:r([o.width,o.maxWidth])||1/0,maxHeight:r([o.height,o.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(o.maxArea&&s.width*s.height>o.maxArea){var a=Math.sqrt(o.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,l,d,h,f){c.width=h?h.width:d.width,c.height=h?h.height:d.height;var m=c.getContext("2d");m.clearRect(0,0,c.width,c.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,c.width,c.height),m.save()));var g=d.left<0?-d.left:0,p=d.top<0?-d.top:0;m.drawImage(l,d.left+g,d.top+p,d.width,d.height,g*(c.width/d.width),p*(c.height/d.height),c.width,c.height)}(e,i,this.coordinates,s,o),e}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.visibleArea&&t?Fu(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,o=this.visibleArea&&t?an(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Ou({transform:e,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:o,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var e=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?Gu:Wu);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var o=at(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,r=this.defaultPosition||_u,s=[o,function(a){var c=a.coordinates;return W({},at(r)?r({coordinates:c,imageSize:e.imageSize,visibleArea:e.visibleArea}):e.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,et(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var e=this;this.imageLoaded=!1,setTimeout(function(){var t=e.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),e.coordinates=e.defaultCoordinates(),e.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var e=this,t=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then(function(){var o={cropper:i,imageSize:e.imageSize};if(at(e.defaultBoundaries)?e.boundaries=e.defaultBoundaries(o):e.defaultBoundaries==="fit"?e.boundaries=function(r){var s=r.cropper,a=r.imageSize,c=s.clientHeight,l=s.clientWidth,d=c,h=a.width*c/a.height;return h>l&&(h=l,d=a.height*l/a.width),{width:h,height:d}}(o):e.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(o),!e.boundaries.width||!e.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var e=this;return this.appliedImageTransforms=W(W({},this.defaultImageTransforms),{},{flip:W({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){e.priority!=="visible-area"&&(e.visibleArea=null,e.resetCoordinates());var t,i,o,r,s,a,c=e.defaultVisibleArea||ju;e.visibleArea=at(c)?c({imageSize:e.imageSize,boundaries:e.boundaries,coordinates:e.priority!=="visible-area"?e.coordinates:null,getAreaRestrictions:e.getAreaRestrictions,stencilSize:e.getStencilSize()}):e.defaultVisibleArea,e.visibleArea=(t={visibleArea:e.visibleArea,boundaries:e.boundaries,getAreaRestrictions:e.getAreaRestrictions},i=t.visibleArea,o=t.boundaries,r=t.getAreaRestrictions,s=I({},i),a=G(o),s.width/s.height!==a&&(s.height=s.width/a),ae(s,r({visibleArea:s,type:"move"}))),e.priority==="visible-area"?e.resetCoordinates():e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("resetVisibleArea")}).catch(function(){e.visibleArea=null})},updateVisibleArea:function(){var e=this;return this.updateBoundaries().then(function(){e.visibleArea=e.fitVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,visibleArea:e.visibleArea,coordinates:e.coordinates,getAreaRestrictions:e.getAreaRestrictions}),e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("updateVisibleArea")}).catch(function(){e.visibleArea=null})},onChange:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];e&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var e,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(Ar(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(d){return d.port||((d.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&l(c)==l(s))}(this.src)){var i=ne(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var o=(e=this.src,new Promise(function(r){oh(e).then(function(s){var a=rh(s);r(s?{source:e,arrayBuffer:s,orientation:a}:{source:e,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:e,arrayBuffer:null,orientation:null})})}));setTimeout(function(){o.then(t.onParseImage)},this.transitionTime)}else setTimeout(function(){t.onParseImage({source:t.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var e=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){e.$emit("ready"),e.onChange(!1)}))},onParseImage:function(e){var t=this,i=e.source,o=e.arrayBuffer,r=e.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,o&&r&&r>1?Rr(i)||!Ar(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([o])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var l=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(o):this.imageAttributes.src=i,at(this.defaultTransforms)?this.appliedImageTransforms=ci(this.defaultTransforms()):tn(this.defaultTransforms)?this.appliedImageTransforms=ci(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=ci({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=W(W({},this.appliedImageTransforms),{},{flip:W({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=t.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?t.onSuccessLoadImage():t.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(e){var t=this;this.transitionsOptions.enabled||this.awaitRender(function(){t.coordinates=t.moveAlgorithm(W(W({},t.getPublicProperties()),{},{positionRestrictions:an(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(e)})),t.onChange()})},onResize:function(e){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var i=t.sizeRestrictions,o=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(W(W({},t.getPublicProperties()),{},{positionRestrictions:an(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,t.visibleArea.width),maxHeight:Math.min(i.maxHeight,t.visibleArea.height),minWidth:Math.max(i.minWidth,o),minHeight:Math.max(i.minHeight,o)},event:t.normalizeEvent(e)})),t.onChange(),t.ticking=!1})},onManipulateImage:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=t.transitions,o=i!==void 0&&i,r=t.normalize,s=r===void 0||r;o&&this.enableTransitions();var a=Zu(W(W({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(e):e,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,l=a.coordinates;this.visibleArea=c,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),o&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.visibleArea,i=e.type,o=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:o})},getAspectRatio:function(e){var t,i,o=this.stencilProps,r=o.aspectRatio,s=o.minAspectRatio,a=o.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();t=c.minimum,i=c.maximum}if(ne(t)&&(t=ne(r)?s:r),ne(i)&&(i=ne(r)?a:r),!e&&(ne(t)||ne(i))){var l=this.getStencilSize(),d=l?G(l):null;ne(t)&&(t=$r(d)?d:void 0),ne(i)&&(i=$r(d)?d:void 0)}return{minimum:t,maximum:i}},getStencilSize:function(){if(this.stencilSize)return e={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},t=e.boundaries,i=e.stencilSize,o=e.aspectRatio,ii(G(r=at(i)?i({boundaries:t,aspectRatio:o}):i),o)&&(r=De({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:o.minimum,maximum:o.maximum}})),(r.width>t.width||r.height>t.height)&&(r=De({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:G(r),maximum:G(r)}})),r;var e,t,i,o,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return W({},Tr)},flip:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.transitions,r=o===void 0||o;if(!this.transitionsActive){r&&this.enableTransitions();var s=W({},this.imageTransforms.flip),a=Xu({flip:{horizontal:e?!s.horizontal:s.horizontal,vertical:t?!s.vertical:s.vertical},previousFlip:s,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,l=a.coordinates;e&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=l,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,o=i===void 0||i;if(!this.transitionsActive){o&&this.enableTransitions();var r=W({},this.imageSize);this.appliedImageTransforms.rotate+=e;var s=Ju({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:e,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,l=this.processAutoZoom("rotateImage",a,c);a=l.visibleArea,c=l.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),o&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},ah={key:0,ref:"canvas",style:{display:"none"}},lh={key:1,ref:"sourceCanvas",style:{display:"none"}};Yr.render=function(e,t,i,o,r,s){return n.openBlock(),n.createBlock("div",{ref:"cropper",class:s.classes.cropper},[n.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),n.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:n.withCtx(function(){return[n.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),n.createVNode("div",{class:s.classes.imageWrapper},[n.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:t[1]||(t[1]=n.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),n.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.stencilComponent),n.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},i.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[n.vShow,r.imageLoaded]]),i.canvas?(n.openBlock(),n.createBlock("canvas",ah,null,512)):n.createCommentVNode("",!0),i.canvas?(n.openBlock(),n.createBlock("canvas",lh,null,512)):n.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const ch={class:"background-container"},dh={class:"tools-line"},uh={class:"line-block"},hh={class:"dialog-footer"},Qr=v(n.defineComponent({__name:"ImageCropper",props:{open:{type:Boolean,required:!0},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","close"],setup(e,{emit:t}){const i=e,o=t,r=x.S.Cropper.Cropper(),s=n.ref(i.defaultRatio);r.ratio=s.value;const a=async()=>{s.value===0?r.ratio=0:r.ratio=s.value},c=n.ref({width:0,height:0,left:0,top:0}),l=n.ref(!1),d=n.ref(""),h=n.ref(),f=async()=>{l.value=!0;const g=h.value.getResult();r.ratio===0&&(s.value=c.value.width/c.value.height),g&&g.canvas.toBlob(p=>{var k;o("crop",{blob:p,src:(k=g.canvas)==null?void 0:k.toDataURL()})}),l.value=!1},m=g=>{var p;c.value=g.coordinates,d.value=(p=g.canvas)==null?void 0:p.toDataURL()};return(g,p)=>{const k=n.resolveComponent("PSelect"),w=n.resolveComponent("el-form-item"),M=n.resolveComponent("el-form"),F=n.resolveComponent("el-button"),O=n.resolveComponent("PModal");return n.openBlock(),n.createBlock(O,{show:e.open,title:"Настройка изображения","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},{default:n.withCtx(()=>[n.createElementVNode("div",ch,[n.createElementVNode("div",dh,[n.createElementVNode("div",uh,[n.createVNode(M,null,{default:n.withCtx(()=>[n.createVNode(w,{label:"Задайте пропорции фото:"},{default:n.withCtx(()=>[n.createVNode(k,{modelValue:n.unref(s),"onUpdate:modelValue":p[0]||(p[0]=L=>n.isRef(s)?s.value=L:null),label:"Пропорции изображения",onChange:a},{default:n.withCtx(()=>p[1]||(p[1]=[n.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),n.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),n.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),n.createElementVNode("option",{label:"3:2",value:3/2},null,-1),n.createElementVNode("option",{label:"16:9",value:16/9},null,-1),n.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),n.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"])]),_:1})]),_:1})])]),n.createVNode(n.unref(Yr),{ref_key:"cropperRef",ref:h,src:n.unref(r).src,"stencil-props":{aspectRatio:n.unref(r).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:m},null,8,["src","stencil-props"]),n.createElementVNode("div",hh,[n.createVNode(F,{loading:n.unref(l),type:"success",onClick:f},{default:n.withCtx(()=>p[2]||(p[2]=[n.createTextVNode(" Сохранить ")])),_:1},8,["loading"])])])]),_:1},8,["show"])}}}),[["__scopeId","data-v-b2600930"]]),fh={key:0,class:"blur"},mh={style:{display:"flex","justify-content":"center"}},dn=v(n.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(e,{emit:t}){const i=e,o=t,r=i.customClass!==""?i.customClass:"inside-class",s=n.ref(!1),a=n.ref(!1),c=n.ref(!1),l=n.ref(i.close);n.watch(()=>i.close,()=>{a.value=!1});const d=L=>{L.stopPropagation(),L.key==="Escape"&&(i.showSaveDialog?c.value=!0:a.value=!1)};n.watch(a,async()=>{var L,z;await n.nextTick(),a.value?((z=(L=document.getElementById("info-item-opened-content"))==null?void 0:L.querySelector("input"))==null||z.focus(),document.body.addEventListener("keydown",d)):document.body.removeEventListener("keydown",d,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!i.withOpenWindow,l.value!==i.close&&(a.value=!1,l.value=!l.value)},f=n.computed(()=>i.customClass===""?{width:i.width,minHeight:"40px",height:"auto",maxWidth:i.maxWidth,minWidth:i.minWidth,margin:i.baseBoxMargin}:void 0),m=n.computed(()=>a.value&&i.withOpenWindow),g=n.computed(()=>({background:i.background?i.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":i.padding,margin:i.margin,width:m.value?i.openWidth:i.width,height:m.value?i.openHeight:i.height,minHeight:"40px",maxWidth:i.maxWidth,minWidth:i.minWidth,borderColor:s.value||a.value?i.colorSelected:i.borderColor,color:s.value?i.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${i.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(i.withHover,"pointer")})),p=n.computed(()=>({height:m.value?"0":"",overflow:i.closeWindowOverflow,width:i.width})),k=n.computed(()=>({height:m.value?"auto":"0"})),w=n.computed(()=>({color:s.value?i.colorSelected:"#343E5C",fill:s.value?i.colorSelected:"#343E5C",background:i.background})),M=()=>{i.showSaveDialog?c.value=!0:a.value=!1},F=async()=>{await o("keyup-enter"),i.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(L,z)=>{const ye=n.resolveComponent("PString"),ke=n.resolveComponent("PButton"),Ge=n.resolveComponent("PModal"),ht=n.resolveDirective("click-outside");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)?(n.openBlock(),n.createElementBlock("div",fh)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"base-box",style:n.normalizeStyle(n.unref(f)),onClick:z[2]||(z[2]=n.withModifiers(hn=>h(),["prevent","stop"]))},[n.createElementVNode("div",{class:n.normalizeClass(["body",n.unref(r)]),style:n.normalizeStyle(n.unref(g)),onMouseenter:z[0]||(z[0]=hn=>e.withHover?s.value=!0:s.value=!1),onMouseleave:z[1]||(z[1]=hn=>s.value=!1)},[n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["close-window",e.customClass]),style:n.normalizeStyle(n.unref(p))},[n.renderSlot(L.$slots,"default",{},void 0,!0)],6)),n.unref(a)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:n.normalizeStyle(n.unref(k))},[n.renderSlot(L.$slots,"open-inside-content",{},void 0,!0)],4)),[[ht,M,void 0,{prevent:!0}]]):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-title",style:n.normalizeStyle(n.unref(w))},[n.renderSlot(L.$slots,"title",{},()=>[n.createVNode(ye,{string:e.title,"font-size":"10px",padding:"0 0 0 3px",style:n.normalizeStyle({color:n.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),n.createVNode(Ge,{show:n.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:n.withCtx(()=>[n.createElementVNode("div",mh,[n.createVNode(ke,{text:"Не сохранять",onClick:O}),n.createVNode(ke,{text:"Сохранять",onClick:F})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),Kr=v(n.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=s=>{i.value=!i.value,o("select",s)};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PButton"),d=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(d,{close:n.unref(i),title:e.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,h=>(n.openBlock(),n.createBlock(l,{key:h,type:"admin",color:"blue",text:h,onClick:f=>r(h)},null,8,["text","onClick"]))),128)),n.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>r(void 0))})]),default:n.withCtx(()=>[n.createVNode(c,{string:e.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),ph={class:"mainblock"},gh={class:"mainline"},es=v(n.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",ph,[n.createElementVNode("div",gh,[n.createElementVNode("div",{class:"mainblock-left",style:n.normalizeStyle({minWidth:e.leftWidth,maxWidth:e.leftWidth,background:e.background,display:e.leftWidth!=="0px"?"block":"none"})},[n.renderSlot(t.$slots,"left",{},void 0,!0)],4),n.createElementVNode("div",{class:"mainblock-right",style:n.normalizeStyle({background:e.background})},[n.renderSlot(t.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),yh={class:"message-title"},wh={class:"message-text"},ts=v(n.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",yh,n.toDisplayString(e.title),1),n.createElementVNode("div",wh,n.toDisplayString(e.text),1)]))}}),[["__scopeId","data-v-182d0640"]]),bh=n.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(e){const t=n.ref(e.initActiveIdx),i=o=>{t.value=o};return n.watch(()=>e.initActiveIdx,()=>{i(e.initActiveIdx)}),{changeActiveId:i,activeIdx:t}}});function Sh(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default",{activeIdx:e.activeIdx,changeActiveId:e.changeActiveId})])}const ns=v(bh,[["render",Sh]]),Ch=n.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(e,{emit:t}){const i=n.ref(e.activeId==="0"),o=()=>{i.value=!i.value,t("changeActiveId",e.tabId)};return n.onUpdated(()=>{e.activeId&&e.activeId!==e.tabId&&(i.value=!0)}),n.onBeforeMount(()=>{e.activeId&&e.activeId!==e.tabId&&(i.value=!1)}),{collapsed:i,handleItemClick:o}}}),kh=["for"],Eh={class:"inside-icon"};function vh(e,t,i,o,r,s){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:"tab",style:n.normalizeStyle({margin:e.margin,height:e.isCollaps&&e.collapsed?"60px":"","box-shadow":e.selectable&&e.activeId===e.tabId?"0px 0px 1px 2px #1979cf":""})},[e.isCollaps&&e.collapsed?(n.openBlock(),n.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:t[0]||(t[0]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},t[3]||(t[3]=[n.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):e.isCollaps&&!e.collapsed?(n.openBlock(),n.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:t[1]||(t[1]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},t[4]||(t[4]=[n.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):n.createCommentVNode("",!0),n.createElementVNode("label",{for:e.tabId,onClick:t[2]||(t[2]=(...a)=>e.handleItemClick&&e.handleItemClick(...a))},[n.createElementVNode("div",{style:n.normalizeStyle({cursor:e.isCollaps?"pointer":"default",background:e.changeColor?e.background:e.backgroundAttention,padding:e.padding,borderRadius:"5px"}),class:"tab-name"},[n.createElementVNode("div",Eh,[n.renderSlot(e.$slots,"icon",{},void 0,!0)]),e.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-in",style:n.normalizeStyle({marginRight:e.isCollaps?"50px":"0",width:e.isCollaps?"calc(100% - 50px)":"100%"})},n.toDisplayString(e.title),5)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"title-in",style:n.normalizeStyle({marginRight:e.isCollaps?"50px":"0",width:e.isCollaps?"calc(100% - 50px)":"100%"})},[n.renderSlot(e.$slots,"inside-title",{},void 0,!0)],4)),n.createElementVNode("div",{class:n.normalizeClass(["tools-bar",{"hidden-part":e.showToolsOnHover}])},[n.renderSlot(e.$slots,"tools",{},void 0,!0)],2)],4)],8,kh),n.createElementVNode("div",{style:n.normalizeStyle({maxHeight:e.isCollaps?"":"1000000vh",background:e.changeColor?e.background:e.backgroundAttention}),class:n.normalizeClass(e.collapsed?"tab-content-down":"tab-content-up")},[n.renderSlot(e.$slots,"inside-content",{},void 0,!0)],6)],4),t[5]||(t[5]=n.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-0ea9a95f><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-0ea9a95f></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-0ea9a95f><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-0ea9a95f></path></symbol></svg>',1))],64)}const is=v(Ch,[["render",vh],["__scopeId","data-v-0ea9a95f"]]),xh={class:"tab"},Bh={class:"rotate"},os=v(n.defineComponent({__name:"VerticalCollapseContainer",setup(e){const t=n.ref(!1),i=async()=>{t.value=!t.value};return(o,r)=>{const s=n.resolveComponent("ArrowRight"),a=n.resolveComponent("ArrowLeft");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",xh,[n.renderSlot(o.$slots,"main",{},void 0,!0),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"50%":"20px",transition:"0.3s"}),class:"left"},[n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"100%":"0",transition:"0.3s"}),class:"left-content"},[n.renderSlot(o.$slots,"inside-content-left",{},void 0,!0)],4),n.createElementVNode("div",{class:"arrow-bar",onClick:i},[n.createElementVNode("div",Bh,[n.renderSlot(o.$slots,"inside-title",{},void 0,!0)]),n.unref(t)?(n.openBlock(),n.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(n.openBlock(),n.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),n.createElementVNode("div",{style:n.normalizeStyle({width:n.unref(t)?"50%":"100%",transition:"0.3s"}),class:"right"},[n.renderSlot(o.$slots,"inside-content-right",{},void 0,!0)],4)]),n.createVNode(a),n.createVNode(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),Mh={class:"add-block_body"},rs=v(n.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(e){return(t,i)=>{const o=n.resolveComponent("PSticky");return n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.createVNode(o,{top:e.top,"z-index":e.zIndex},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",Mh,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),ss=v(n.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"add-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),Rh={class:"add-block_body"},as=v(n.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(e){return(t,i)=>{const o=n.resolveComponent("PSticky"),r=n.resolveComponent("PContainer");return n.openBlock(),n.createBlock(r,{background:e.background,margin:e.margin,padding:e.padding},{default:n.withCtx(()=>[n.createVNode(o,{top:e.top,"z-index":e.zIndex},{default:n.withCtx(()=>[n.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),n.createElementVNode("div",Rh,[n.renderSlot(t.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),Ah={class:"del-block_title"},$h={class:"del-block_body"},ls=v(n.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"del-block",style:n.normalizeStyle({margin:e.margin,background:e.background,padding:e.padding})},[n.createElementVNode("div",Ah,[n.renderSlot(t.$slots,"title",{},void 0,!0)]),n.createElementVNode("div",$h,[n.renderSlot(t.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),Nh={class:"btn-group"},cs=v(n.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(e,{emit:t}){const i=x.Auth.Form,o=n.ref(!1),r=t,s=n.computed(()=>i.GetButtons()),a=async c=>{if(!c.submit)return i.SetStatus(c.GetStatus());const l=i.Validate();if(l.length>0){x.UI.Notify.Error(l.join(", "));return}r("submit")};return n.onBeforeUnmount(()=>{i.Reset()}),(c,l)=>{const d=n.resolveComponent("PInput"),h=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock("div",{class:"auth-card",style:n.normalizeStyle({width:e.width,margin:e.margin,padding:e.padding})},[n.createElementVNode("div",null,n.toDisplayString(("PF"in c?c.PF:n.unref(x)).Auth.Form.GetTitle()),1),n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(("PF"in c?c.PF:n.unref(x)).Auth.Form.GetFields(),f=>(n.openBlock(),n.createBlock(d,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":m=>f.value=m,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),n.createElementVNode("div",Nh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),f=>(n.openBlock(),n.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:n.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:m=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-ee627d52"]]),ds=v(n.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},maxHeight:{type:String,default:"70vh"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const i=e,o=t,r=a=>{a.key==="Escape"&&s()};n.onMounted(()=>{document.body.addEventListener("keydown",r)}),n.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{i.closable&&o("close")};return(a,c)=>{const l=n.resolveComponent("IconClose");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.show?(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:s})):n.createCommentVNode("",!0),e.show?(n.openBlock(),n.createElementBlock("div",{key:1,class:"modal-w",style:n.normalizeStyle({maxWidth:e.width,width:e.width,margin:e.margin,padding:e.padding,top:e.top,maxHeight:e.maxHeight})},[e.closable?(n.openBlock(),n.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[n.createVNode(l,{size:"20px"})])):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3a1f6782"]]),Ih=["onClick"],us=v(n.defineComponent({__name:"PTabs",props:{menus:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"}},emits:["select"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(window.innerWidth),s=n.ref(),a=n.ref(Number(i.tabHeight.replace(/[^+\d]/g,""))),c=()=>{r.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(i.tabHeight.replace(/[^+\d]/g,""))};n.onMounted(()=>window.addEventListener("resize",c)),n.onUnmounted(()=>window.removeEventListener("resize",c));const l=n.computed(()=>`calc(100% - ${a.value}px + 1px)`);n.onBeforeMount(()=>{i.menus.Select()});const d=h=>{i.menus.Select(h),o("select")};return(h,f)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({height:`calc(100% - ${e.outTopMargin} - ${e.tabHeight}`})},[n.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"top-menu",style:n.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${e.minMenuItemWidth}, 1fr))`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus.items,(m,g)=>(n.openBlock(),n.createElementBlock("div",{key:g},[n.createElementVNode("div",{class:n.normalizeClass({"selected-tab":g===e.menus.idx,tab:g!==e.menus.idx}),style:n.normalizeStyle({minHeight:e.tabHeight,maxHeight:e.tabHeight}),onClick:p=>d(g)},n.toDisplayString(m.name),15,Ih)]))),128))],4),n.createElementVNode("div",{class:"body-container",style:n.normalizeStyle({background:e.background,height:n.unref(l)})},[n.renderSlot(h.$slots,"default",{},()=>[e.menus.idx>-1?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.menus.GetComponent()),{key:0})):n.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-f631acc5"]]),Ph=["id"],zh=["for"],Th={class:"left-field"},Vh=["href","download"],Lh={key:1,class:"text-field__input"},Dh={class:"right-field"},Fh=n.defineComponent({__name:"UploaderFile",props:{fileInfo:{type:Object,required:!1,default:new rt},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(e,{emit:t}){const i=e,o=t,r=x.H.Id.GUID(),s=x.H.Id.GUID(),a=()=>{const d=document.getElementById(r);if(!d.files)return;const h=d.files[0];if(h){if(!l(h.name)){x.UI.Notify.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}i.fileInfo.uploadAndSetFile(h),o("upload",i.fileInfo)}},c=()=>{i.fileInfo.clearFile(),o("remove",i.fileInfo)};n.onMounted(()=>{const d=document.getElementById(s);d&&(d.onclick=()=>{var h;return(h=document.getElementById(r))==null?void 0:h.click()})});const l=d=>{let h=x.H.Extension.Get(d);return!!i.formats.includes(h.toLowerCase())};return(d,h)=>{const f=n.resolveComponent("PString"),m=n.resolveComponent("PFlex"),g=n.resolveComponent("PButton");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("input",{id:n.unref(r),type:"file",hidden:"",onChange:a},null,40,Ph),n.createElementVNode("div",{class:"text-field",style:n.normalizeStyle({margin:e.margin,padding:e.padding})},[e.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:"text-field__label",for:e.label},n.toDisplayString(e.label),9,zh)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"field",style:n.normalizeStyle({borderColor:e.borderColor})},[n.createElementVNode("div",Th,[n.createVNode(m,null,{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default",{},void 0,!0),n.createVNode(f,{string:e.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),e.fileInfo&&e.fileInfo.originalName?(n.openBlock(),n.createElementBlock("div",{key:0,class:"text-field__input",style:n.normalizeStyle({color:e.color})},[n.createElementVNode("a",{href:e.fileInfo.getFileUrl(),target:"_blank",download:e.fileInfo.originalName},[n.createElementVNode("div",null,n.toDisplayString(e.fileInfo.originalName),1)],8,Vh),n.createVNode(g,{skin:"text",type:"del",onClick:c},{default:n.withCtx(()=>[n.createVNode(Kt,{size:"20px",margin:"0 5px"})]),_:1})],4)):(n.openBlock(),n.createElementBlock("div",Lh,[n.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),n.createElementVNode("div",Dh,[n.createVNode(g,{id:n.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:e.fileInfo&&e.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),hs=v(Fh,[["__scopeId","data-v-cacad4ae"]]),Oh={class:"container"},qh={key:0,class:"result"},Hh={class:"list"},Uh=["onClick"],fs=v(n.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]}},emits:["select","input"],setup(e,{emit:t}){const i=t,o=e,r=n.ref(o.modelValue),s=n.ref([]);async function a(){i("input",r.value),await c()}async function c(){o.searchFunc&&(s.value=await o.searchFunc(r.value))}async function l(d){i("select",d)}return(d,h)=>{const f=n.resolveComponent("IconSearch"),m=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock("div",Oh,[n.createVNode(m,{modelValue:n.unref(r),"onUpdate:modelValue":h[0]||(h[0]=g=>n.isRef(r)?r.value=g:null),placeholder:"Найти",onInput:a},{right:n.withCtx(()=>[n.createVNode(f)]),_:1},8,["modelValue"]),n.unref(r)?(n.openBlock(),n.createElementBlock("div",qh,[n.createElementVNode("ul",Hh,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),g=>(n.openBlock(),n.createElementBlock("li",{key:g.value,onClick:p=>l(g)},n.toDisplayString(g.label),9,Uh))),128))])])):n.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-67b698bb"]]),_h={class:"footer"},ms=v(n.defineComponent({__name:"PDialog",setup(e){const t=n.computed(()=>{switch(x.UI.Dialog.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(i,o)=>{const r=n.resolveComponent("MessageBody"),s=n.resolveComponent("PButton");return n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>[("PF"in i?i.PF:n.unref(x)).UI.Dialog.IsVisible()?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(t))},[n.createVNode(r,{title:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetTitle(),text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetText()},null,8,["title","text"]),n.createElementVNode("div",_h,[n.createVNode(s,{type:"primary",text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetConfirmButtonText(),margin:"10px 0 0 0",onClick:o[0]||(o[0]=a=>("PF"in i?i.PF:n.unref(x)).UI.Dialog.Submit())},null,8,["text"]),n.createVNode(s,{type:"warning",text:("PF"in i?i.PF:n.unref(x)).UI.Dialog.GetCancelButtonText(),margin:"10px 0 0 0",onClick:o[1]||(o[1]=a=>("PF"in i?i.PF:n.unref(x)).UI.Dialog.Cancel())},null,8,["text"])])],2)):n.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-bf4d379c"]]),ps=v(n.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=n.useModel(e,"modelValue"),i=async()=>{await x.S.Phones.Update(t.value)};return(o,r)=>{const s=n.resolveComponent("PInput");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(s,{modelValue:t.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>t.value.number=a),onBlur:i},null,8,["modelValue"]),n.createVNode(s,{modelValue:t.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>t.value.description=a),onBlur:i},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-f801a76e"]]),Wh={};function Gh(e,t){return n.openBlock(),n.createElementBlock(n.Fragment,null,[t[0]||(t[0]=n.createElementVNode("div",{class:"blur"},null,-1)),t[1]||(t[1]=n.createElementVNode("div",{class:"loader-container"},[n.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const gs=v(Wh,[["render",Gh],["__scopeId","data-v-0f1f2f84"]]),ys=v(n.defineComponent({__name:"PNotification",setup(e){const t=n.computed(()=>{switch(x.UI.Notify.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(i,o)=>{const r=n.resolveComponent("MessageBody");return n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>[("PF"in i?i.PF:n.unref(x)).UI.Notify.IsVisible()?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(t))},[n.createVNode(r,{title:("PF"in i?i.PF:n.unref(x)).UI.Notify.GetTitle(),text:("PF"in i?i.PF:n.unref(x)).UI.Notify.GetText()},null,8,["title","text"])],2)):n.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-6d245bd5"]]),jh={style:{display:"flex","justify-content":"center",width:"100%"}},Zh={class:"pag-number"},Jh={class:"pag-ul"},Xh={key:2},ws=v(n.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(e,{emit:t}){const i=e,o=g=>g?"active":"neutral",r=g=>g?"not-active":"neutral",s=x.Paginator,a=n.ref(!1),c=n.ref(!1),l=t;s.count=i.store.Count.value;const d=async g=>{if(g!==s.curPage){if(g<1&&(g=1),g>s.pagesCount()&&(g=s.pagesCount()),!i.showConfirm)return await h(g);x.UI.Dialog.Save().then(async()=>{l("save"),await h(g)}).catch(async()=>{x.UI.Notify.Warning("Изменения не были сохранены"),l("cancel"),await h(g)})}},h=async(g,p)=>{s.setCurPage(g),x.FTSP.Get().p.offset=(g-1)*s.limit,await i.store.FTSP(),m()},f=n.computed(()=>{const g=s.pagesCount();return g<8?x.H.Arrays.GenerateNumsRange(2,g-1).filter(p=>p<g&&p>1):x.H.Arrays.GenerateNumsRange(s.curPage-2,s.curPage+3).filter(p=>p<g&&p>1)}),m=()=>{const g=document.querySelector(".el-table__body-wrapper"),p=document.querySelector("#list");g?g.scrollTo({top:0}):p&&p.scrollTo({top:0})};return n.onBeforeUnmount(()=>{x.FTSP.Get().p.drop()}),(g,p)=>{const k=n.resolveComponent("ArrowLeft"),w=n.resolveComponent("PButton"),M=n.resolveComponent("DoubleArrowLeft"),F=n.resolveComponent("EllipsisSvg"),O=n.resolveComponent("DoubleArrowRight"),L=n.resolveComponent("ArrowRight");return n.openBlock(),n.createElementBlock("div",jh,[n.createElementVNode("div",{class:"pag-container",style:n.normalizeStyle({justifyContent:e.justifyContent})},[n.createElementVNode("div",Zh,[n.createVNode(w,{skin:"pag",type:r(n.unref(s).curPage===1),onClick:p[0]||(p[0]=z=>d(n.unref(s).curPage-1))},{default:n.withCtx(()=>[n.createVNode(k)]),_:1},8,["type"]),n.createElementVNode("ul",Jh,[n.createElementVNode("li",null,[n.createVNode(w,{skin:"pag",type:o(n.unref(s).curPage===1),text:"1",onClick:p[1]||(p[1]=z=>d(1))},null,8,["type"])]),n.unref(s).pagesCount()>8&&n.unref(s).curPage>4?(n.openBlock(),n.createElementBlock("li",{key:0,onMouseenter:p[3]||(p[3]=z=>a.value=!0),onMouseleave:p[4]||(p[4]=z=>a.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:p[2]||(p[2]=z=>d(n.unref(s).curPage-5))},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(M,{key:0})):(n.openBlock(),n.createBlock(F,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(f),z=>(n.openBlock(),n.createElementBlock("li",{key:z},[n.createVNode(w,{skin:"pag",type:o(z===n.unref(s).curPage),text:z,onClick:ye=>d(z)},null,8,["type","text","onClick"])]))),128)),n.unref(s).pagesCount()>=8&&n.unref(s).curPage<n.unref(s).pagesCount()-3?(n.openBlock(),n.createElementBlock("li",{key:1,onMouseenter:p[6]||(p[6]=z=>c.value=!0),onMouseleave:p[7]||(p[7]=z=>c.value=!1)},[n.createVNode(w,{skin:"pag",type:"neutral",onClick:p[5]||(p[5]=z=>d(n.unref(s).curPage+5))},{default:n.withCtx(()=>[n.unref(c)?(n.openBlock(),n.createBlock(O,{key:0})):(n.openBlock(),n.createBlock(F,{key:1}))]),_:1})],32)):n.createCommentVNode("",!0),n.unref(s).pagesCount()>1?(n.openBlock(),n.createElementBlock("li",Xh,[n.createVNode(w,{skin:"pag",type:o(n.unref(s).pagesCount()===n.unref(s).curPage),text:n.unref(s).pagesCount(),onClick:p[8]||(p[8]=z=>d(n.unref(s).pagesCount()))},null,8,["type","text"])])):n.createCommentVNode("",!0)]),n.createVNode(w,{skin:"pag",type:r(n.unref(s).curPage===n.unref(s).pagesCount()),onClick:p[9]||(p[9]=z=>d(n.unref(s).curPage+1))},{default:n.withCtx(()=>[n.createVNode(L)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-1c6d4928"]]),bs=v(n.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},maxWidth:{type:[Number,String],default:350},focus:{type:Boolean,default:!1}},emits:["select","load","input"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(i.modelValue),s=n.ref(),a=x.S.Search.SearchModel();n.watch(()=>i.focus,()=>{i.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const c=async h=>{if(h.length<2)return;s.value.activated=!0,a.searchObjects=[],a.query=h,a.key=i.keyValue;const f=a.searchGroups.find(m=>m.key===i.keyValue);return f&&(a.searchGroup=f),await x.S.Search.Search(a),a.searchObjects},l=async h=>{o("select",h),r.value=""},d=h=>{o("input",h),h.length===0&&o("input","")};return(h,f)=>{const m=n.resolveComponent("PAutocomplete");return n.openBlock(),n.createBlock(m,{ref_key:"searchForm",ref:s,modelValue:n.unref(r),"onUpdate:modelValue":f[0]||(f[0]=g=>n.isRef(r)?r.value=g:null),"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:e.placeholder,"search-func":c,"trigger-on-focus":e.showSuggestions,suggestions:n.unref(a).searchObjects,onSelect:l,onInput:d},{suffix:n.withCtx(()=>f[1]||(f[1]=[n.createElementVNode("i",{class:"el-icon-search"},null,-1)])),_:1},8,["modelValue","placeholder","trigger-on-focus","suggestions"])}}}),[["__scopeId","data-v-d3138f3a"]]),Yh={class:"mainblock-body"},Qh={class:"mainblock-footer"},Ss=v(n.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(e){return(t,i)=>(n.openBlock(),n.createElementBlock("div",{class:"mainblock",style:n.normalizeStyle({background:e.background,padding:e.padding})},[n.createElementVNode("div",{class:"mainblock-header",style:n.normalizeStyle({background:e.background})},[n.renderSlot(t.$slots,"header",{},void 0,!0)],4),n.createElementVNode("div",Yh,[n.renderSlot(t.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",Qh,[n.renderSlot(t.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Kh={class:"right-slider-content"},ef={class:"right-slider-content-header"},tf={class:"right-slider-content-box"},nf={class:"right-slider-button"},Cs=v(n.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1);n.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>{const l=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",{class:"right-slider",style:n.normalizeStyle({marginRight:n.unref(r)?`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`:"0",width:e.sliderOnWidth})},[n.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=d=>s(!n.unref(r)))},[n.unref(r)?(n.openBlock(),n.createBlock(l,{key:0,string:e.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):n.createCommentVNode("",!0),n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(l,{key:1,string:e.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),n.createElementVNode("div",Kh,[n.createElementVNode("div",ef,[n.renderSlot(a.$slots,"header",{},void 0,!0)]),n.createElementVNode("div",tf,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",nf,[n.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),of={class:"mainblock"},rf={class:"body-block"},sf={class:"tab-block"},ks=v(n.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1),s=n.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{o("toggle",l)},c=n.ref(!1);return n.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(i.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(l,d)=>(n.openBlock(),n.createElementBlock("div",of,[n.createElementVNode("div",{class:"slider-block",style:n.normalizeStyle({marginRight:n.unref(s)?e.isToggle?"49px":`calc(49px - ${e.sliderOnWidth})`:e.isToggle?e.sliderOffWidth:`calc(${e.sliderOffWidth} - ${e.sliderOnWidth})`,width:e.sliderOnWidth,minHeight:e.sliderOffWidth,height:e.isToggle?"auto":"100px"})},[n.createElementVNode("div",{class:"slider-icon",style:n.normalizeStyle({border:e.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:e.isToggle?"#ffffff":"#C7ECEA"}),onClick:d[0]||(d[0]=h=>a(!e.isToggle)),onMouseenter:d[1]||(d[1]=h=>c.value=!0),onMouseleave:d[2]||(d[2]=h=>c.value=!1)},[n.createElementVNode("div",{class:"icon-block",style:n.normalizeStyle({transform:n.unref(c)?e.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":e.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:e.isToggle?"#379FFF":"#00B5A4"})},[n.renderSlot(l.$slots,"icon",{},void 0,!0)],4)],36),n.createElementVNode("div",{class:"slider-info",style:n.normalizeStyle({width:`calc(${e.sliderOnWidth} - ${e.sliderOffWidth})`})},[n.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),n.createElementVNode("div",rf,[n.renderSlot(l.$slots,"body",{},void 0,!0)]),n.createElementVNode("div",sf,[n.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),af=["label","value"],Es=v(n.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(e,{emit:t}){const i={[ce.String]:"Текстовый ответ",[ce.Text]:"Развёрнутый текстовый ответ",[ce.Number]:"Числовой ответ",[ce.Date]:"Ответ в виде даты",[ce.Radio]:"Выбор одного из вариантов",[ce.Set]:"Выбор нескольких вариантов",[ce.File]:"Ответ в виде файла",[ce.MatrixRadio]:"Матрица с одним выбором",[ce.MatrixSet]:"Матрица с несколькими выборами"},o=t,r=s=>{o("select",s)};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PSelect");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),n.createVNode(l,{"model-value":e.selectedType,placeholder:"Вид ответа",onChange:r},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(i,(d,h)=>n.createElementVNode("option",{key:d,label:d,value:h},null,8,af)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),lf={class:"field"},vs=v(n.defineComponent({__name:"SingleNameToggleForm",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!1),s=n.ref(),a=n.ref(i.withName.name),c=n.ref(!1),l=()=>{c.value=!1},d=async()=>{a.value.trim(),i.withName.setName&&i.withName.setName(a.value),r.value=!r.value,o("submit")};return(h,f)=>{const m=n.resolveComponent("PString"),g=n.resolveComponent("el-input"),p=n.resolveComponent("el-form-item"),k=n.resolveComponent("el-form"),w=n.resolveComponent("PButton");return n.openBlock(),n.createBlock(k,{ref_key:"form",ref:s,style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(dn,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:r.value,width:"100%",onKeyupEnter:d,onAfterClose:l},{"open-inside-content":n.withCtx(()=>[n.createVNode(dn,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:n.withCtx(()=>[n.createElementVNode("div",lf,[n.createVNode(k,null,{default:n.withCtx(()=>[n.createVNode(p,{style:{width:"100%"},prop:"surname"},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=M=>a.value=M),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1}),n.createVNode(w,{type:"admin",color:"blue",text:"Сохранить",onClick:d})]),default:n.withCtx(()=>[a.value.length?(n.openBlock(),n.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(n.openBlock(),n.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-cc488c49"]]),cf=["label","value"],xs=v(n.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=n.ref();n.onBeforeMount(()=>{i.value=!0,r.value=Ne.GetDefault(),x.FTSP.Get().setSortModel(r.value)});const s=async c=>{r.value=c??Ne.GetDefault(),x.FTSP.Get().setSortModel(r.value),x.FTSP.Get().p.drop(),o("load")},a=async c=>{x.FTSP.Get().p.drop(),await s(c)};return(c,l)=>{var h;const d=n.resolveComponent("PSelect");return n.unref(i)?(n.openBlock(),n.createBlock(d,{key:0,modelValue:n.unref(r),"onUpdate:modelValue":l[0]||(l[0]=f=>n.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((h=n.unref(r))!=null&&h.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=f=>a())},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(Ne).Get(),(f,m)=>(n.openBlock(),n.createElementBlock("option",{key:m,label:f.label,value:f},null,8,cf))),128))]),_:1},8,["modelValue","clearable"])):n.createCommentVNode("",!0)}}}),[["__scopeId","data-v-0bac635d"]]),df=["label","value"],Bs=v(n.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(e,{emit:t}){const i=t,o=n.ref();n.onBeforeMount(()=>{o.value=Ne.GetDefault()});const r=async a=>{a||(o.value=Ne.GetDefault()),x.FTSP.Get().setSortModel(o.value),x.FTSP.Get().p.drop(),i("load")},s=async a=>{await r(a)};return(a,c)=>{var d;const l=n.resolveComponent("PSelect");return n.openBlock(),n.createBlock(l,{modelValue:n.unref(o),"onUpdate:modelValue":c[0]||(c[0]=h=>n.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((d=n.unref(o))!=null&&d.default),"value-key":"label",onChange:s},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(Ne).Get(),(h,f)=>(n.openBlock(),n.createElementBlock("option",{key:f,label:h.label,value:h},null,8,df))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-399c5a1b"]]),uf={class:"switch-container"},hf={class:"line"},ff={class:"line"},Ms=v(n.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(e,{emit:t}){const i=e,o={background:"inherit",border:"1px solid #c4c4c4"},r=()=>i.firstModel.valueEq(d.value)?void 0:o,s=()=>d.value?o:void 0,a=()=>i.secondModel.valueEq(d.value)?void 0:o,c=f=>{var g;return{color:(g=d.value)!=null&&g.valueEq(f)?"#006bb4":"#B0A4C0"}},l=t,d=n.ref(void 0),h=async f=>{var m;(m=d.value)!=null&&m.valueEq(f)||(x.FTSP.Get().replaceF(f,d.value),d.value=f,l("load"))};return(f,m)=>{const g=n.resolveComponent("PString");return n.openBlock(),n.createElementBlock("div",uf,[n.createElementVNode("div",hf,[n.createVNode(g,{string:e.firstModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(c(e.firstModel)),onClick:m[0]||(m[0]=p=>h(e.firstModel))},null,8,["string","style"]),n.createVNode(g,{string:"Все","font-size":"12px",padding:"0",style:n.normalizeStyle(c()),onClick:m[1]||(m[1]=p=>h())},null,8,["style"]),n.createVNode(g,{string:e.secondModel.label,"font-size":"12px",padding:"0",style:n.normalizeStyle(c(e.secondModel)),onClick:m[2]||(m[2]=p=>h(e.secondModel))},null,8,["string","style"])]),n.createElementVNode("div",ff,[n.createElementVNode("div",{class:n.normalizeClass(["switch-knob1",{active:e.firstModel.valueEq(n.unref(d))}]),style:n.normalizeStyle(r()),onClick:m[3]||(m[3]=p=>h(e.firstModel))},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob2",{active:!n.unref(d)}]),style:n.normalizeStyle(s()),onClick:m[4]||(m[4]=p=>h())},null,6),n.createElementVNode("div",{class:n.normalizeClass(["switch-knob3",{active:e.secondModel.valueEq(n.unref(d))}]),style:n.normalizeStyle(a()),onClick:m[5]||(m[5]=p=>h(e.secondModel))},null,6),m[6]||(m[6]=n.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=n.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=n.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=n.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ec5dae5e"]]),mf={},pf={class:"flex"};function gf(e,t){return n.openBlock(),n.createElementBlock("div",pf,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const Rs=v(mf,[["render",gf],["__scopeId","data-v-5023d414"]]),As=v(n.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(e,{emit:t}){const i=n.ref(!1),o=t,r=async()=>{o("submit"),i.value=!i.value};return(s,a)=>{const c=n.resolveComponent("PString"),l=n.resolveComponent("PButton"),d=n.resolveComponent("GridContainer"),h=n.resolveComponent("InfoItem");return n.openBlock(),n.createBlock(h,{title:e.title,icon:"edit-title","with-hover":!0,close:n.unref(i),width:"100%",onKeyupEnter:r},{"open-inside-content":n.withCtx(()=>[n.createVNode(d,{"custom-class":"grid"},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default",{},void 0,!0),n.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:n.withCtx(()=>[e.content.length>0?(n.openBlock(),n.createBlock(c,{key:0,string:e.content},null,8,["string"])):(n.openBlock(),n.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),yf={class:"top-slider-content"},wf={class:"center"},$s=v(n.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(!0);n.watch(()=>i.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("toggle",a)};return(a,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(r)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=n.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=n.withModifiers(()=>{},["stop"]))]})),n.createElementVNode("div",{class:"top-slider",style:n.normalizeStyle({marginTop:n.unref(r)?`calc(${e.sliderOffHeight} - ${e.sliderOnHeight})`:"0",height:e.sliderOnHeight}),onClick:c[3]||(c[3]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",yf,[n.createElementVNode("div",wf,[n.renderSlot(a.$slots,"default",{},void 0,!0)])]),n.createElementVNode("div",{class:"click-line",style:n.normalizeStyle({height:e.sliderOffHeight}),onClick:c[2]||(c[2]=l=>s(!n.unref(r)))},[n.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]),bf={id:"drop-area",class:"img-container"},Sf={key:0},Cf=["src"],kf={class:"tools-button"},Ef={class:"ins"},vf={key:1},xf=["id"],Ns=v(n.defineComponent({__name:"UploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:rt,required:!0},height:{type:Number,default:150},width:{type:Number,default:150},cropRatio:{type:Boolean,default:!0},emitCrop:{type:Boolean,default:!1},defaultRatio:{type:Number,required:!1,default:1}},emits:["crop","removeFile"],setup(e,{emit:t}){const i=e,o=t,r=n.ref(void 0),s=x.H.Id.GUID(),a=n.ref(!1),c=n.ref(),l=w=>{const M=i.cropRatio?i.defaultRatio:0;x.S.Cropper.Open(Bt.CreateCropper(w.url,M,i.fileInfo.id)),a.value=!0},d=()=>{x.UI.Dialog.Show({text:"Вы хотите удалить изображение",confirmButtonText:"Удалить",cancelButtonText:"Не удалять"}).then(()=>{r.value=void 0,c.value.clearFiles(),o("removeFile")})},h=w=>{i.fileInfo.setFile(w),i.fileInfo.fileSystemPath&&(r.value=i.fileInfo),a.value=!1,o("crop")};n.onBeforeMount(()=>{i.fileInfo.fileSystemPath&&(r.value=i.fileInfo,r.value.url=i.fileInfo.getFileUrl())});let f=null;n.onMounted(()=>{const w=document.getElementById("drop-area");w&&(w.addEventListener("dragover",M=>{m(M),w.classList.add("drag-over")}),w.addEventListener("dragleave",M=>{m(M),w.classList.remove("drag-over")}),w.addEventListener("dragenter",m),w.addEventListener("dragleave",m),w.addEventListener("drop",p),f=document.getElementById(s))});function m(w){w.preventDefault(),w.stopPropagation()}const g=()=>{f&&f.click()};function p(w){if(w.preventDefault(),!w.dataTransfer)return;const M=w.dataTransfer.files;M.length&&f&&(f.files=M,k())}const k=()=>{if(!f||!f.files||!f.files.length)return;const w=f.files[0];w.url=URL.createObjectURL(w),r.value=w,i.fileInfo.uploadNewFile(w),l(r.value)};return(w,M)=>{const F=n.resolveComponent("PButton"),O=n.resolveComponent("ImageCropper");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",bf,[n.unref(r)?(n.openBlock(),n.createElementBlock("div",Sf,[n.createElementVNode("div",{class:"img-block",style:n.normalizeStyle({width:e.height*e.defaultRatio-2+"px",height:e.height+"px"})},[n.createElementVNode("img",{class:"el-upload-list__item-thumbnail",src:n.unref(r).url,alt:"upload-image"},null,8,Cf)],4),n.createElementVNode("div",kf,[n.createElementVNode("div",Ef,[n.createVNode(F,{skin:"text",text:"Изменить","font-size":"20px",width:"300px",margin:"100px 0 0 0",onClick:M[0]||(M[0]=L=>l(n.unref(r)))}),n.createVNode(F,{skin:"text",text:"Удалить","font-size":"20px",width:"300px",margin:"50px 0 0 0",onClick:M[1]||(M[1]=L=>d())})])])])):(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",{class:"add-button",style:n.normalizeStyle({width:e.height*e.defaultRatio-2+"px",height:e.height+"px"})},[n.createVNode(F,{skin:"text",text:"Добавить","font-size":"20px",onClick:g})],4)]))]),n.createElementVNode("input",{id:n.unref(s),type:"file",hidden:"",onChange:k},null,40,xf),e.withCrop?(n.openBlock(),n.createBlock(O,{key:0,open:n.unref(a),"default-ratio":e.defaultRatio,onCrop:h,onClose:M[2]||(M[2]=L=>a.value=!1)},null,8,["open","default-ratio"])):n.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-4119c534"]]),Bf={install:function(e){e.component("PButton",No),e.component("PCheckBox",Io),e.component("PDatePicker",Po),e.component("PFlex",zo),e.component("PInput",Oo),e.component("PInputDate",qo),e.component("PInputNumber",Ho),e.component("PLeftSlider",Uo),e.component("PList",_o),e.component("PListItem",Wo),e.component("PRadio",Go),e.component("PRightSlider",jo),e.component("PSelect",Zo),e.component("PSticky",Jo),e.component("PString",Xo),e.component("PTextarea",Yo),e.component("PTopSlider",Qo),e.component("IconDownload",dr),e.component("IconFilter",ur),e.component("ArrowLeft",Sr),e.component("ArrowRight",Cr),e.component("DoubleArrowLeft",kr),e.component("DoubleArrowRight",Er),e.component("EllipsisSvg",vr),e.component("IconArrowLeft",hr),e.component("IconCheckDefault",fr),e.component("IconClose",Kt),e.component("IconEdit",mr),e.component("IconEmail",pr),e.component("IconMove",gr),e.component("IconPhone",yr),e.component("IconSearch",wr),e.component("IconSelectArrow",br),e.component("CollapseContainer",ns),e.component("CollapseItem",is),e.component("VerticalCollapseContainer",os),e.component("PAdd",rs),e.component("PContainer",ss),e.component("PContainerStickyHead",as),e.component("PDel",ls),e.component("PTabs",us),e.component("UploaderFile",hs),e.component("AuthForm",cs),e.component("PModal",ds),e.component("AuthPage",Tn),e.component("PageNotFound",Vn),e.component("AdaptiveContainer",Mo),e.component("AdaptiveContainerHorizontal",Ro),e.component("AdminGallery",Ao),e.component("AuthModal",Ko),e.component("CarouselImages",er),e.component("ContextWindow",tr),e.component("DateInputRangeV2",ir),e.component("DateInputRange",nr),e.component("DropList",or),e.component("FilterCheckbox",rr),e.component("FiltersButtonsSelect",sr),e.component("FilterSelect",ar),e.component("FTSPPanel",lr),e.component("GeneralItem",cr),e.component("GridContainer",Jn),e.component("ImageCropper",Qr),e.component("InfoItem",dn),e.component("InfoItemSelectButtons",Kr),e.component("LeftRightContainer",es),e.component("MessageBody",ts),e.component("PAutocomplete",fs),e.component("PDialog",ms),e.component("PhoneForm",ps),e.component("PLoader",gs),e.component("PNotification",ys),e.component("PPagination",ws),e.component("RemoteSearch",bs),e.component("ResearcheContainer",Ss),e.component("RightSliderContainer",Cs),e.component("RightTabsContainer",ks),e.component("SelectValueType",Es),e.component("SingleNameToggleForm",vs),e.component("SortList",xs),e.component("SortSelect",Bs),e.component("Switch3Pos",Ms),e.component("ThemeWrapper",Rs),e.component("ToggleInfoItem",As),e.component("TopSliderContainer",$s),e.component("UploaderImage",Ns)}},Mf=["PF","PFM"];E.AdaptiveContainer=Mo,E.AdaptiveContainerHorizontal=Ro,E.AdminGallery=Ao,E.ArrowLeft=Sr,E.ArrowRight=Cr,E.AuthForm=cs,E.AuthModal=Ko,E.AuthPage=Tn,E.CarouselImages=er,E.CollapseContainer=ns,E.CollapseItem=is,E.ContextWindow=tr,E.DateInputRange=nr,E.DateInputRange_v2=ir,E.DoubleArrowLeft=kr,E.DoubleArrowRight=Er,E.DropList=or,E.EllipsisSvg=vr,E.FTSPPanel=lr,E.FilterCheckbox=rr,E.FilterSelect=ar,E.FiltersButtonsSelect=sr,E.GeneralItem=cr,E.GridContainer=Jn,E.IconArrowLeft=hr,E.IconCheckDefault=fr,E.IconClose=Kt,E.IconDownload=dr,E.IconEdit=mr,E.IconEmail=pr,E.IconFilter=ur,E.IconMove=gr,E.IconPhone=yr,E.IconSearch=wr,E.IconSelectArrow=br,E.ImageCropper=Qr,E.InfoItem=dn,E.InfoItemSelectButtons=Kr,E.LeftRightContainer=es,E.MessageBody=ts,E.PAdd=rs,E.PAutocomplete=fs,E.PButton=No,E.PCheckBox=Io,E.PContainer=ss,E.PContainerStickyHead=as,E.PDatePicker=Po,E.PDel=ls,E.PDialog=ms,E.PF=x,E.PFM=Tl,E.PFlex=zo,E.PInput=Oo,E.PInputDate=qo,E.PInputNumber=Ho,E.PLeftSlider=Uo,E.PList=_o,E.PListItem=Wo,E.PLoader=gs,E.PModal=ds,E.PNotification=ys,E.PPagination=ws,E.PRadio=Go,E.PRightSlider=jo,E.PSelect=Zo,E.PSticky=Jo,E.PString=Xo,E.PTabs=us,E.PTextarea=Yo,E.PTopSlider=Qo,E.PageNotFound=Vn,E.PhoneForm=ps,E.RemoteSearch=bs,E.ResearcheContainer=Ss,E.RightSliderContainer=Cs,E.RightTabsContainer=ks,E.SelectValueType=Es,E.SingleNameToggleForm=vs,E.SortList=xs,E.SortSelect=Bs,E.Switch3Pos=Ms,E.ThemeWrapper=Rs,E.ToggleInfoItem=As,E.TopSliderContainer=$s,E.UploaderFile=hs,E.UploaderImage=Ns,E.VerticalCollapseContainer=os,E.pfName=Mf,E.servicesComponents=Bf,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});