diff --git a/dist/assets/Add-BCBjjH0K.js b/dist/assets/Add-DRm_H-MT.js similarity index 81% rename from dist/assets/Add-BCBjjH0K.js rename to dist/assets/Add-DRm_H-MT.js index 4ce6e53..8f9fe2c 100644 --- a/dist/assets/Add-BCBjjH0K.js +++ b/dist/assets/Add-DRm_H-MT.js @@ -1 +1 @@ -import{M as e,k as t}from"./client-E8nWUy_w.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file +import{M as e,k as t}from"./client-BBfBDiVG.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file diff --git a/dist/assets/Alert-BwySuMew.js b/dist/assets/Alert-DsjLN_Ag.js similarity index 95% rename from dist/assets/Alert-BwySuMew.js rename to dist/assets/Alert-DsjLN_Ag.js index 93e699b..d67577e 100644 --- a/dist/assets/Alert-BwySuMew.js +++ b/dist/assets/Alert-DsjLN_Ag.js @@ -1,4 +1,4 @@ -import{I as e,M as t,b as n,ft as r,k as i}from"./client-E8nWUy_w.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-Dq0naAvE.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-C9tdVP4f.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-DrmfX-S2.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,` +import{I as e,M as t,b as n,ft as r,k as i}from"./client-BBfBDiVG.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-DqAV2QCd.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-C_Onglzh.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-DnUl8nHF.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,` line-height: var(--n-line-height); border-radius: var(--n-border-radius); position: relative; diff --git a/dist/assets/Button-Cr3XRKS5.js b/dist/assets/Button-DAM1cqtA.js similarity index 97% rename from dist/assets/Button-Cr3XRKS5.js rename to dist/assets/Button-DAM1cqtA.js index 288fa6a..50243b4 100644 --- a/dist/assets/Button-Cr3XRKS5.js +++ b/dist/assets/Button-DAM1cqtA.js @@ -1,4 +1,4 @@ -import{B as e,L as t,M as n,P as r,b as i,ft as a,ht as o,k as s}from"./client-E8nWUy_w.js";import{B as c,G as l,J as u,K as d,M as f,N as p,V as m,X as h,Y as g,Z as _,a as v,i as y,o as b,r as x,z as S}from"./light-Dq0naAvE.js";import{i as C,n as w,r as T}from"./use-form-item-CVzWkQI_.js";import{a as E,n as D}from"./resolve-slot-C9tdVP4f.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-DrmfX-S2.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[l(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),l(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` +import{B as e,L as t,M as n,P as r,b as i,ft as a,ht as o,k as s}from"./client-BBfBDiVG.js";import{B as c,G as l,J as u,K as d,M as f,N as p,V as m,X as h,Y as g,Z as _,a as v,i as y,o as b,r as x,z as S}from"./light-DqAV2QCd.js";import{i as C,n as w,r as T}from"./use-form-item-ajbhslgm.js";import{a as E,n as D}from"./resolve-slot-C_Onglzh.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-DnUl8nHF.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[l(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),l(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; diff --git a/dist/assets/Card-D_Y8VzWl.js b/dist/assets/Card-Cze8lALH.js similarity index 98% rename from dist/assets/Card-D_Y8VzWl.js rename to dist/assets/Card-Cze8lALH.js index 9b35441..8da8f3c 100644 --- a/dist/assets/Card-D_Y8VzWl.js +++ b/dist/assets/Card-Cze8lALH.js @@ -1,4 +1,4 @@ -import{A as e,B as t,H as n,I as r,J as i,M as a,R as o,V as s,b as c,et as l,ft as u,h as d,k as f}from"./client-E8nWUy_w.js";import{$ as p,G as m,J as h,K as g,M as _,N as v,Q as y,W as b,Y as x,Z as S,o as C,r as w}from"./light-Dq0naAvE.js";import{i as T,r as E,t as D}from"./css-DEmdllcC.js";import{r as O}from"./use-form-item-CVzWkQI_.js";import{a as k,t as A}from"./resolve-slot-C9tdVP4f.js";import{t as j}from"./fade-in.cssr-C7FS-iQO.js";import{r as ee,t as M}from"./light-BIkcYbx-.js";import{F as N,Q as P}from"./index-DrmfX-S2.js";function te(e){return e.composedPath()[0]||null}function F(e){return e.composedPath()[0]}var ne={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function re(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(F(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(F(n))},i=r=>{e&&(t.contains(F(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function ie(e,t,n){let r=ne[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=re(e,t,n)),a}function ae(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=F(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ae(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(I(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:R,off:z}=L(),oe=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function se(){return oe}function ce(e){let t={isDeactivated:!1},n=!1;return o(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),s(()=>{t.isDeactivated=!0,n||=!0}),t}function B(e,t){console.error(`[vueuc/${e}]: ${t}`)}var V=[],le=function(){return V.some(function(e){return e.activeTargets.length>0})},ue=function(){return V.some(function(e){return e.skippedTargets.length>0})},de=`ResizeObserver loop completed with undelivered notifications.`,fe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:de}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=de),window.dispatchEvent(e)},H;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(H||={});var U=function(e){return Object.freeze(e)},pe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,U(this)}return e}(),me=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,U(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},he=function(e){if(W(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},G=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},ge=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},K=typeof window<`u`?window:{},q=new WeakMap,_e=/auto|scroll/,J=/^tb|vertical/,ve=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),Y=function(e){return parseFloat(e||`0`)},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new pe((n?t:e)||0,(n?e:t)||0)},ye=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new me(0,0,0,0)}),be=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(he(e))return q.set(e,ye),ye;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!ve&&n.boxSizing===`border-box`,a=J.test(n.writingMode||``),o=!r&&_e.test(n.overflowY||``),s=!r&&_e.test(n.overflowX||``),c=r?0:Y(n.paddingTop),l=r?0:Y(n.paddingRight),u=r?0:Y(n.paddingBottom),d=r?0:Y(n.paddingLeft),f=r?0:Y(n.borderTopWidth),p=r?0:Y(n.borderRightWidth),m=r?0:Y(n.borderBottomWidth),h=r?0:Y(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:Y(n.width)-S-x,T=r?r.height:Y(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=U({devicePixelContentBoxSize:X(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:X(E,D,a),contentBoxSize:X(w,T,a),contentRect:new me(d,c,w,T)});return q.set(e,O),O},xe=function(e,t,n){var r=be(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case H.DEVICE_PIXEL_CONTENT_BOX:return o;case H.BORDER_BOX:return i;default:return a}},Se=function(){function e(e){var t=be(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=U([t.borderBoxSize]),this.contentBoxSize=U([t.contentBoxSize]),this.devicePixelContentBoxSize=U([t.devicePixelContentBoxSize])}return e}(),Ce=function(e){if(he(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},we=function(){var e=1/0,t=[];V.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Se(t.target),i=Ce(t.target);r.push(n),t.lastReportedSize=xe(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Ee=function(){var e=0;for(Te(e);le();)e=we(),Te(e);return ue()&&fe(),e>0},Z,De=[],Oe=function(){return De.splice(0).forEach(function(e){return e()})},ke=function(e){if(!Z){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Oe()}).observe(n,{characterData:!0}),Z=function(){n.textContent=`${t?t--:t++}`}}De.push(e),Z()},Ae=function(e){ke(function(){requestAnimationFrame(e)})},Q=0,je=function(){return!!Q},Me=250,Ne={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pe=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Fe=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,Le=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Me),!Ie){Ie=!0;var n=Fe(e);Ae(function(){var r=!1;try{r=Ee()}finally{if(Ie=!1,e=n-Fe(),!je())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Ne)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pe.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Pe.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Re=function(e){!Q&&e>0&&Le.start(),Q+=e,!Q&&Le.stop()},ze=function(e){return!W(e)&&!ge(e)&&getComputedStyle(e).display===`inline`},Be=function(){function e(e,t){this.target=e,this.observedBox=t||H.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=xe(this.target,this.observedBox,!0);return ze(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ve=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),He=new WeakMap,Ue=function(e,t){for(var n=0;n=0&&(i&&V.splice(V.indexOf(n),1),n.observationTargets.splice(r,1),Re(-1))},e.disconnect=function(e){var t=this,n=He.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),We=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);$.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!G(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!G(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.unobserve(this,e)},e.prototype.disconnect=function(){$.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Ge=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||We)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ke=f({name:`ResizeObserver`,props:{onResize:Function},setup(r){let i=!1,a=e().proxy;function o(e){let{onResize:t}=r;t!==void 0&&t(e)}n(()=>{let e=a.$el;if(e===void 0){B(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){B(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,o),i=!0)}),t(()=>{i&&Ge.unregisterHandler(a.$el.nextElementSibling)})},render(){return i(this.$slots,`default`)}});function qe(e){let{left:t,right:n,top:r,bottom:i}=E(e);return`${r} ${t} ${i} ${n}`}function Je(e){return Object.keys(e)}var Ye=f({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=g(`scrollbar`,` +import{A as e,B as t,H as n,I as r,J as i,M as a,R as o,V as s,b as c,et as l,ft as u,h as d,k as f}from"./client-BBfBDiVG.js";import{$ as p,G as m,J as h,K as g,M as _,N as v,Q as y,W as b,Y as x,Z as S,o as C,r as w}from"./light-DqAV2QCd.js";import{i as T,r as E,t as D}from"./css-DEmdllcC.js";import{r as O}from"./use-form-item-ajbhslgm.js";import{a as k,t as A}from"./resolve-slot-C_Onglzh.js";import{t as j}from"./fade-in.cssr-CKxOL_aH.js";import{r as ee,t as M}from"./light-BPWFFUAb.js";import{F as N,Q as P}from"./index-DnUl8nHF.js";function te(e){return e.composedPath()[0]||null}function F(e){return e.composedPath()[0]}var ne={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function re(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(F(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(F(n))},i=r=>{e&&(t.contains(F(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function ie(e,t,n){let r=ne[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=re(e,t,n)),a}function ae(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=F(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ae(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(I(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:R,off:z}=L(),oe=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function se(){return oe}function ce(e){let t={isDeactivated:!1},n=!1;return o(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),s(()=>{t.isDeactivated=!0,n||=!0}),t}function B(e,t){console.error(`[vueuc/${e}]: ${t}`)}var V=[],le=function(){return V.some(function(e){return e.activeTargets.length>0})},ue=function(){return V.some(function(e){return e.skippedTargets.length>0})},de=`ResizeObserver loop completed with undelivered notifications.`,fe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:de}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=de),window.dispatchEvent(e)},H;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(H||={});var U=function(e){return Object.freeze(e)},pe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,U(this)}return e}(),me=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,U(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},he=function(e){if(W(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},G=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},ge=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},K=typeof window<`u`?window:{},q=new WeakMap,_e=/auto|scroll/,J=/^tb|vertical/,ve=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),Y=function(e){return parseFloat(e||`0`)},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new pe((n?t:e)||0,(n?e:t)||0)},ye=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new me(0,0,0,0)}),be=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(he(e))return q.set(e,ye),ye;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!ve&&n.boxSizing===`border-box`,a=J.test(n.writingMode||``),o=!r&&_e.test(n.overflowY||``),s=!r&&_e.test(n.overflowX||``),c=r?0:Y(n.paddingTop),l=r?0:Y(n.paddingRight),u=r?0:Y(n.paddingBottom),d=r?0:Y(n.paddingLeft),f=r?0:Y(n.borderTopWidth),p=r?0:Y(n.borderRightWidth),m=r?0:Y(n.borderBottomWidth),h=r?0:Y(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:Y(n.width)-S-x,T=r?r.height:Y(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=U({devicePixelContentBoxSize:X(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:X(E,D,a),contentBoxSize:X(w,T,a),contentRect:new me(d,c,w,T)});return q.set(e,O),O},xe=function(e,t,n){var r=be(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case H.DEVICE_PIXEL_CONTENT_BOX:return o;case H.BORDER_BOX:return i;default:return a}},Se=function(){function e(e){var t=be(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=U([t.borderBoxSize]),this.contentBoxSize=U([t.contentBoxSize]),this.devicePixelContentBoxSize=U([t.devicePixelContentBoxSize])}return e}(),Ce=function(e){if(he(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},we=function(){var e=1/0,t=[];V.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Se(t.target),i=Ce(t.target);r.push(n),t.lastReportedSize=xe(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Ee=function(){var e=0;for(Te(e);le();)e=we(),Te(e);return ue()&&fe(),e>0},Z,De=[],Oe=function(){return De.splice(0).forEach(function(e){return e()})},ke=function(e){if(!Z){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Oe()}).observe(n,{characterData:!0}),Z=function(){n.textContent=`${t?t--:t++}`}}De.push(e),Z()},Ae=function(e){ke(function(){requestAnimationFrame(e)})},Q=0,je=function(){return!!Q},Me=250,Ne={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pe=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Fe=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,Le=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Me),!Ie){Ie=!0;var n=Fe(e);Ae(function(){var r=!1;try{r=Ee()}finally{if(Ie=!1,e=n-Fe(),!je())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Ne)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pe.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Pe.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Re=function(e){!Q&&e>0&&Le.start(),Q+=e,!Q&&Le.stop()},ze=function(e){return!W(e)&&!ge(e)&&getComputedStyle(e).display===`inline`},Be=function(){function e(e,t){this.target=e,this.observedBox=t||H.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=xe(this.target,this.observedBox,!0);return ze(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ve=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),He=new WeakMap,Ue=function(e,t){for(var n=0;n=0&&(i&&V.splice(V.indexOf(n),1),n.observationTargets.splice(r,1),Re(-1))},e.disconnect=function(e){var t=this,n=He.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),We=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);$.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!G(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!G(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.unobserve(this,e)},e.prototype.disconnect=function(){$.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Ge=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||We)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ke=f({name:`ResizeObserver`,props:{onResize:Function},setup(r){let i=!1,a=e().proxy;function o(e){let{onResize:t}=r;t!==void 0&&t(e)}n(()=>{let e=a.$el;if(e===void 0){B(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){B(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,o),i=!0)}),t(()=>{i&&Ge.unregisterHandler(a.$el.nextElementSibling)})},render(){return i(this.$slots,`default`)}});function qe(e){let{left:t,right:n,top:r,bottom:i}=E(e);return`${r} ${t} ${i} ${n}`}function Je(e){return Object.keys(e)}var Ye=f({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=g(`scrollbar`,` overflow: hidden; position: relative; z-index: auto; diff --git a/dist/assets/CatalogView-UFhJJ2Oh.js b/dist/assets/CatalogView-DgbmMV8h.js similarity index 88% rename from dist/assets/CatalogView-UFhJJ2Oh.js rename to dist/assets/CatalogView-DgbmMV8h.js index 537cc7c..6193d97 100644 --- a/dist/assets/CatalogView-UFhJJ2Oh.js +++ b/dist/assets/CatalogView-DgbmMV8h.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-E8nWUy_w.js";import{t as g}from"./Tag-Bb42yLml.js";import{t as _}from"./Rate-DJirJCYw.js";import{n as v}from"./es-CBOun6Az.js";import{t as y}from"./HeaderMenu-D_gj_b_i.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={class:`scenario-label`},j=b(u({__name:`CatalogPage`,setup(u){let b=v(),j=c([]),M=p();async function N(){j.value=[];let e=await b.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,u)=>(r(),m(l,null,[h(`div`,x,[h(`div`,S,[(r(!0),m(l,null,d(j.value,c=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>P(c.id),key:c.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${c.image})`})},null,4),h(`div`,w,[h(`p`,T,n(c.name),1),h(`p`,E,n(c.description),1),h(`div`,D,[c.reviewsCount?(r(),o(s(_),{key:0,value:c.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),c.reviewsCount?(r(),m(`span`,O,n(c.averageRating?.toFixed(1))+` · `+n(c.reviewsCount),1)):(r(),m(`span`,k,`Пока нет оценок`))]),h(`p`,A,[i(s(g),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(`Автор: `+n(c.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-a11b829e`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(r(),o(j))}});export{M as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-BBfBDiVG.js";import{t as g}from"./Tag-YulbLI_X.js";import{t as _}from"./Rate-CNH6p4IB.js";import{n as v}from"./es-D90fN3qV.js";import{t as y}from"./HeaderMenu-CqYU4ywX.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={class:`scenario-label`},j=b(u({__name:`CatalogPage`,setup(u){let b=v(),j=c([]),M=p();async function N(){j.value=[];let e=await b.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,u)=>(r(),m(l,null,[h(`div`,x,[h(`div`,S,[(r(!0),m(l,null,d(j.value,c=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>P(c.id),key:c.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${c.image})`})},null,4),h(`div`,w,[h(`p`,T,n(c.name),1),h(`p`,E,n(c.description),1),h(`div`,D,[c.reviewsCount?(r(),o(s(_),{key:0,value:c.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),c.reviewsCount?(r(),m(`span`,O,n(c.averageRating?.toFixed(1))+` · `+n(c.reviewsCount),1)):(r(),m(`span`,k,`Пока нет оценок`))]),h(`p`,A,[i(s(g),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(`Автор: `+n(c.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-a11b829e`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(r(),o(j))}});export{M as default}; \ No newline at end of file diff --git a/dist/assets/ConsentView-CWwmrkGq.js b/dist/assets/ConsentView-CWwmrkGq.js deleted file mode 100644 index 6ad7a6e..0000000 --- a/dist/assets/ConsentView-CWwmrkGq.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,O as t,h as n,k as r,w as i}from"./client-E8nWUy_w.js";import{t as a}from"./DocsPage-F0VrNYfv.js";import{t as o}from"./HeaderMenu-D_gj_b_i.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`consent`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/ConsentView-DJNUY8n2.js b/dist/assets/ConsentView-DJNUY8n2.js new file mode 100644 index 0000000..41bc9f5 --- /dev/null +++ b/dist/assets/ConsentView-DJNUY8n2.js @@ -0,0 +1 @@ +import{G as e,O as t,h as n,k as r,w as i}from"./client-BBfBDiVG.js";import{t as a}from"./DocsPage-BsboAE3e.js";import{t as o}from"./HeaderMenu-CqYU4ywX.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`consent`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/DocsPage-F0VrNYfv.js b/dist/assets/DocsPage-BsboAE3e.js similarity index 91% rename from dist/assets/DocsPage-F0VrNYfv.js rename to dist/assets/DocsPage-BsboAE3e.js index 8a248ba..e5935cc 100644 --- a/dist/assets/DocsPage-F0VrNYfv.js +++ b/dist/assets/DocsPage-BsboAE3e.js @@ -1,4 +1,4 @@ -import{D as e,Ft as t,G as n,H as r,M as i,O as a,S as o,_t as s,a as c,b as l,et as u,ft as d,k as f,tt as p,w as m,x as h}from"./client-E8nWUy_w.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-Dq0naAvE.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-ChIWeUtn.js";import{t as T}from"./fade-in.cssr-C7FS-iQO.js";import{t as E}from"./Alert-BwySuMew.js";import{M as D,N as O,Q as k,s as A}from"./index-DrmfX-S2.js";import{n as j}from"./es-CBOun6Az.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-Cu9OePP6.js";var P=g([g(`@keyframes spin-rotate`,` +import{D as e,Ft as t,G as n,H as r,M as i,O as a,S as o,_t as s,a as c,b as l,et as u,ft as d,k as f,tt as p,w as m,x as h}from"./client-BBfBDiVG.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-DqAV2QCd.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-kfiJdYfv.js";import{t as T}from"./fade-in.cssr-CKxOL_aH.js";import{t as E}from"./Alert-DsjLN_Ag.js";import{M as D,N as O,Q as k,s as A}from"./index-DnUl8nHF.js";import{n as j}from"./es-D90fN3qV.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-OoQfyl23.js";var P=g([g(`@keyframes spin-rotate`,` from { transform: rotate(0); } diff --git a/dist/assets/Flex-7TW8da2P.js b/dist/assets/Flex-BIB1uWhx.js similarity index 77% rename from dist/assets/Flex-7TW8da2P.js rename to dist/assets/Flex-BIB1uWhx.js index ee092ac..5d585ce 100644 --- a/dist/assets/Flex-7TW8da2P.js +++ b/dist/assets/Flex-BIB1uWhx.js @@ -1 +1 @@ -import{M as e,b as t,k as n}from"./client-E8nWUy_w.js";import{N as r,Z as i,o as a,r as o}from"./light-Dq0naAvE.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-Pfh9hmmw.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-DrmfX-S2.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=s(n);return{horizontal:c(a),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file +import{M as e,b as t,k as n}from"./client-BBfBDiVG.js";import{N as r,Z as i,o as a,r as o}from"./light-DqAV2QCd.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-ClDK_waP.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-DnUl8nHF.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=s(n);return{horizontal:c(a),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file diff --git a/dist/assets/Follower-Bj8mg9ex.js b/dist/assets/Follower-DIc7TcHi.js similarity index 97% rename from dist/assets/Follower-Bj8mg9ex.js rename to dist/assets/Follower-DIc7TcHi.js index 20be813..da1f0c7 100644 --- a/dist/assets/Follower-Bj8mg9ex.js +++ b/dist/assets/Follower-DIc7TcHi.js @@ -1 +1 @@ -import{$ as e,A as t,B as n,H as r,K as i,L as a,M as o,P as s,ft as c,ht as l,k as u,nt as d}from"./client-E8nWUy_w.js";import{R as f,et as p,z as m}from"./light-Dq0naAvE.js";import{d as h,u as g}from"./Card-D_Y8VzWl.js";import{a as _,c as v,h as y,i as b,l as x,p as S,s as C,u as w}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{X as T,Y as E}from"./index-DrmfX-S2.js";var D=[],O=new WeakMap;function k(){D.forEach(e=>e(...O.get(e))),D=[]}function A(e,...t){O.set(e,t),!D.includes(e)&&D.push(e)===1&&requestAnimationFrame(k)}var j=y?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;r(()=>{M||j?.then(()=>{t||e()})}),n(()=>{t=!0})}var P=m(`n-internal-select-menu`),F=m(`n-internal-select-menu-body`),I=`__disabled__`;function L(e){let t=s(w,null),i=s(S,null),a=s(x,null),o=s(F,null),l=c();if(typeof document<`u`){l.value=document.fullscreenElement;let e=()=>{l.value=document.fullscreenElement};r(()=>{h(`fullscreenchange`,document,e)}),n(()=>{g(`fullscreenchange`,document,e)})}return T(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:i?.value?i.value:a?.value?a.value:o?.value?o.value:n??(l.value||`body`):n===!1?I:n===!0?l.value||`body`:n})}L.tdkey=I,L.propTo={type:[String,Object,Boolean],default:void 0};var R=null;function z(){if(R===null&&(R=document.getElementById(`v-binder-view-measurer`),R===null)){R=document.createElement(`div`),R.id=`v-binder-view-measurer`;let{style:e}=R;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(R)}return R.getBoundingClientRect()}function B(e,t){let n=z();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function V(e){let t=e.getBoundingClientRect(),n=z();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function H(e){return e.nodeType===9?null:e.parentNode}function U(e){if(e===null)return null;let t=H(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return U(t)}var W=u({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){i(`VBinder`,t()?.proxy);let r=s(`VBinder`,null),a=c(null),o=t=>{a.value=t,r&&e.syncTargetWithParent&&r.setTargetRef(t)},l=[],u=()=>{let e=a.value;for(;e=U(e),e!==null;)l.push(e);for(let e of l)h(`scroll`,e,_,!0)},d=()=>{for(let e of l)g(`scroll`,e,_,!0);l=[]},f=new Set,p=e=>{f.size===0&&u(),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&d()},_=()=>{A(v)},v=()=>{f.forEach(e=>e())},y=new Set,b=e=>{y.size===0&&h(`resize`,window,S),y.has(e)||y.add(e)},x=e=>{y.has(e)&&y.delete(e),y.size===0&&g(`resize`,window,S)},S=()=>{y.forEach(e=>e())};return n(()=>{g(`resize`,window,S),d()}),{targetRef:a,setTargetRef:o,addScrollListener:p,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return v(`binder`,this.$slots)}}),G=u({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=s(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?d(C(`follower`,this.$slots),[[t]]):C(`follower`,this.$slots)}}),{c:K}=p(),q=`vueuc-style`,J={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Y={start:`end`,center:`center`,end:`start`},X={top:`height`,bottom:`height`,left:`width`,right:`width`},Z={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},ee={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},te={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Q={top:!0,bottom:!1,left:!0,right:!1},$={top:`end`,bottom:`start`,left:`end`,right:`start`};function ne(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Q[i]?c:-c:o=Q[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=te[e],i=J[r],a=X[r];if(n[a]>t[a]){if(t[r]+t[a]t[i]&&(c=Y[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=J[e],i=X[e],a=(n[i]-t[i])/2;(t[e]t[r]?(c=$[e],l=u(i,e,d)):(c=$[r],l=u(i,r,d)))}let f=o;return t[o] *`,{pointerEvents:`all`})])]),oe=u({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){let i=s(`VBinder`),o=T(()=>t.enabled===void 0?t.show:t.enabled),u=c(null),d=c(null),p=()=>{let{syncTrigger:e}=t;e.includes(`scroll`)&&i.addScrollListener(g),e.includes(`resize`)&&i.addResizeListener(g)},m=()=>{i.removeScrollListener(g),i.removeResizeListener(g)};r(()=>{o.value&&(g(),p())});let h=f();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),n(()=>{m()}),N(()=>{o.value&&g()});let g=()=>{if(!o.value)return;let e=u.value;if(e===null)return;let n=i.targetRef,{x:r,y:a,overlap:s}=t,c=r!==void 0&&a!==void 0?B(r,a):V(n);e.style.setProperty(`--v-target-width`,`${Math.round(c.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(c.height)}px`);let{width:l,minWidth:f,placement:p,internalShift:m,flip:h}=t;e.setAttribute(`v-placement`,p),s?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;l===`target`?g.width=`${c.width}px`:l===void 0?g.width=``:g.width=l,f===`target`?g.minWidth=`${c.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(e),v=V(d.value),{left:y,top:b,placement:x}=ne(p,c,_,m,h,s),S=re(x,s),{left:C,top:w,transform:T}=ie(x,v,c,b,y,s);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${T}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};e(o,e=>{e?(p(),_()):m()});let _=()=>{a().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(n=>{e(l(t,n),g)}),[`teleportDisabled`].forEach(n=>{e(l(t,n),_)}),e(l(t,`syncTrigger`),e=>{e.includes(`resize`)?i.addResizeListener(g):i.removeResizeListener(g),e.includes(`scroll`)?i.addScrollListener(g):i.removeScrollListener(g)});let v=E();return{VBinder:i,mergedEnabled:o,offsetContainerRef:d,followerRef:u,mergedTo:T(()=>{let{to:e}=t;if(e!==void 0)return e;v.value}),syncPosition:g}},render(){return o(b,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?d(t,[[_,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});export{W as a,P as c,G as i,N as l,K as n,L as o,q as r,F as s,oe as t,A as u}; \ No newline at end of file +import{$ as e,A as t,B as n,H as r,K as i,L as a,M as o,P as s,ft as c,ht as l,k as u,nt as d}from"./client-BBfBDiVG.js";import{R as f,et as p,z as m}from"./light-DqAV2QCd.js";import{d as h,u as g}from"./Card-Cze8lALH.js";import{a as _,c as v,h as y,i as b,l as x,p as S,s as C,u as w}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{X as T,Y as E}from"./index-DnUl8nHF.js";var D=[],O=new WeakMap;function k(){D.forEach(e=>e(...O.get(e))),D=[]}function A(e,...t){O.set(e,t),!D.includes(e)&&D.push(e)===1&&requestAnimationFrame(k)}var j=y?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;r(()=>{M||j?.then(()=>{t||e()})}),n(()=>{t=!0})}var P=m(`n-internal-select-menu`),F=m(`n-internal-select-menu-body`),I=`__disabled__`;function L(e){let t=s(w,null),i=s(S,null),a=s(x,null),o=s(F,null),l=c();if(typeof document<`u`){l.value=document.fullscreenElement;let e=()=>{l.value=document.fullscreenElement};r(()=>{h(`fullscreenchange`,document,e)}),n(()=>{g(`fullscreenchange`,document,e)})}return T(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:i?.value?i.value:a?.value?a.value:o?.value?o.value:n??(l.value||`body`):n===!1?I:n===!0?l.value||`body`:n})}L.tdkey=I,L.propTo={type:[String,Object,Boolean],default:void 0};var R=null;function z(){if(R===null&&(R=document.getElementById(`v-binder-view-measurer`),R===null)){R=document.createElement(`div`),R.id=`v-binder-view-measurer`;let{style:e}=R;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(R)}return R.getBoundingClientRect()}function B(e,t){let n=z();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function V(e){let t=e.getBoundingClientRect(),n=z();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function H(e){return e.nodeType===9?null:e.parentNode}function U(e){if(e===null)return null;let t=H(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return U(t)}var W=u({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){i(`VBinder`,t()?.proxy);let r=s(`VBinder`,null),a=c(null),o=t=>{a.value=t,r&&e.syncTargetWithParent&&r.setTargetRef(t)},l=[],u=()=>{let e=a.value;for(;e=U(e),e!==null;)l.push(e);for(let e of l)h(`scroll`,e,_,!0)},d=()=>{for(let e of l)g(`scroll`,e,_,!0);l=[]},f=new Set,p=e=>{f.size===0&&u(),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&d()},_=()=>{A(v)},v=()=>{f.forEach(e=>e())},y=new Set,b=e=>{y.size===0&&h(`resize`,window,S),y.has(e)||y.add(e)},x=e=>{y.has(e)&&y.delete(e),y.size===0&&g(`resize`,window,S)},S=()=>{y.forEach(e=>e())};return n(()=>{g(`resize`,window,S),d()}),{targetRef:a,setTargetRef:o,addScrollListener:p,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return v(`binder`,this.$slots)}}),G=u({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=s(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?d(C(`follower`,this.$slots),[[t]]):C(`follower`,this.$slots)}}),{c:K}=p(),q=`vueuc-style`,J={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Y={start:`end`,center:`center`,end:`start`},X={top:`height`,bottom:`height`,left:`width`,right:`width`},Z={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},ee={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},te={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Q={top:!0,bottom:!1,left:!0,right:!1},$={top:`end`,bottom:`start`,left:`end`,right:`start`};function ne(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Q[i]?c:-c:o=Q[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=te[e],i=J[r],a=X[r];if(n[a]>t[a]){if(t[r]+t[a]t[i]&&(c=Y[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=J[e],i=X[e],a=(n[i]-t[i])/2;(t[e]t[r]?(c=$[e],l=u(i,e,d)):(c=$[r],l=u(i,r,d)))}let f=o;return t[o] *`,{pointerEvents:`all`})])]),oe=u({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(t){let i=s(`VBinder`),o=T(()=>t.enabled===void 0?t.show:t.enabled),u=c(null),d=c(null),p=()=>{let{syncTrigger:e}=t;e.includes(`scroll`)&&i.addScrollListener(g),e.includes(`resize`)&&i.addResizeListener(g)},m=()=>{i.removeScrollListener(g),i.removeResizeListener(g)};r(()=>{o.value&&(g(),p())});let h=f();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),n(()=>{m()}),N(()=>{o.value&&g()});let g=()=>{if(!o.value)return;let e=u.value;if(e===null)return;let n=i.targetRef,{x:r,y:a,overlap:s}=t,c=r!==void 0&&a!==void 0?B(r,a):V(n);e.style.setProperty(`--v-target-width`,`${Math.round(c.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(c.height)}px`);let{width:l,minWidth:f,placement:p,internalShift:m,flip:h}=t;e.setAttribute(`v-placement`,p),s?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;l===`target`?g.width=`${c.width}px`:l===void 0?g.width=``:g.width=l,f===`target`?g.minWidth=`${c.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(e),v=V(d.value),{left:y,top:b,placement:x}=ne(p,c,_,m,h,s),S=re(x,s),{left:C,top:w,transform:T}=ie(x,v,c,b,y,s);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${T}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};e(o,e=>{e?(p(),_()):m()});let _=()=>{a().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(n=>{e(l(t,n),g)}),[`teleportDisabled`].forEach(n=>{e(l(t,n),_)}),e(l(t,`syncTrigger`),e=>{e.includes(`resize`)?i.addResizeListener(g):i.removeResizeListener(g),e.includes(`scroll`)?i.addScrollListener(g):i.removeScrollListener(g)});let v=E();return{VBinder:i,mergedEnabled:o,offsetContainerRef:d,followerRef:u,mergedTo:T(()=>{let{to:e}=t;if(e!==void 0)return e;v.value}),syncPosition:g}},render(){return o(b,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?d(t,[[_,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});export{W as a,P as c,G as i,N as l,K as n,L as o,q as r,F as s,oe as t,A as u}; \ No newline at end of file diff --git a/dist/assets/GameResultsView-BM7dwLFo.js b/dist/assets/GameResultsView-CLr9oPCb.js similarity index 94% rename from dist/assets/GameResultsView-BM7dwLFo.js rename to dist/assets/GameResultsView-CLr9oPCb.js index 3cec32f..819486d 100644 --- a/dist/assets/GameResultsView-BM7dwLFo.js +++ b/dist/assets/GameResultsView-CLr9oPCb.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,Nt as ee,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as te,q as d,tt as f,u as p,w as m,x as h}from"./client-E8nWUy_w.js";import{t as g}from"./Button-Cr3XRKS5.js";import{t as ne}from"./use-message-BD6Lw0qA.js";import{t as _}from"./Flex-7TW8da2P.js";import{t as v}from"./index-DrmfX-S2.js";import{n as y,t as b}from"./es-CBOun6Az.js";import{t as x}from"./HeaderMenu-D_gj_b_i.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},re=u({name:`TrophyFilled`,render:function(e,t){return r(),m(`svg`,C,t[0]||=[h(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm18-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),ie={class:`center-block-custom`},ae={class:`width1200`},oe={class:`page-header`},se={key:0,class:`game-name`},w={key:0,class:`winner-block`},T={class:`winner-cup`,"aria-hidden":`true`},E={class:`winner-label`},D={class:`winner-names`},O={class:`winner-stats`},k={key:1,class:`info-block`},A={key:2,class:`info-block`},j={class:`info-title`},M={key:3,class:`info-block`},N={key:4,class:`table-scroll`},P={class:`results-table`},F=[`title`],I={class:`question-text`},L={class:`place-col`},R={key:1,class:`place-plain`},ce={class:`team-col`},z={class:`number-col`},B={class:`number-col`},V=S(u({__name:`GameResultsPage`,setup(a){let u=y(),S=v(),C=ne(),V=te(),H=p(),U=V.params.id,W=c(!1),G=c(!1),K=c(``),q=c(!1),J=c(!1),Y=c([]),X=c([]),Z=c(``);async function le(){W.value=!1,G.value=!1,J.value=!1,q.value=!1;try{let e=await u.GetGameResults({gameId:Number(U)});if(e.error!=``){K.value=e.error||`Не удалось загрузить результаты`,C.error(K.value),G.value=!0;return}Y.value=e.questions||[],X.value=e.teams||[],W.value=!0}catch{S.isAuthenticated?(K.value=`Не удалось загрузить результаты`,C.error(K.value),q.value=!0,G.value=!0):J.value=!0}}le();async function Q(){try{let e=await u.GetGame({id:Number(U)});Z.value=e.game?.name||``}catch{}}Q();function ue(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.score??`—`}let $=s(()=>{let e=X.value.map(e=>e.place).filter(e=>e!=null);if(e.length==0)return[];let t=Math.min(...e);return X.value.filter(e=>e.place===t)}),de=s(()=>$.value.length>1?`Победители`:`Победитель`),fe=s(()=>{let e=$.value.map(e=>e.team?.name||``).filter(e=>e!=``);return e.length<=1?e[0]||``:e.length==2?e[0]+` и `+e[1]:e.slice(0,-1).join(`, `)+` и `+e[e.length-1]});function pe(){H.push(`/login`)}function me(){S.logout(),H.push(`/login`)}function he(){if(window.history.state?.back){H.back();return}H.push(`/games`)}return(a,s)=>(r(),m(l,null,[h(`div`,ie,[h(`div`,ae,[h(`div`,oe,[i(o(_),{justify:`space-between`,align:`center`},{default:f(()=>[h(`div`,null,[s[0]||=h(`div`,{class:`page-title`},`Итоги игры`,-1),Z.value?(r(),m(`div`,se,n(Z.value),1)):e(``,!0)]),i(o(g),{quaternary:``,onClick:he},{default:f(()=>[...s[1]||=[t(`Назад`,-1)]]),_:1})]),_:1})]),W.value&&$.value.length>0?(r(),m(`div`,w,[h(`span`,T,[i(o(b),{size:`56`},{default:f(()=>[i(o(re))]),_:1})]),h(`div`,E,n(de.value),1),h(`div`,D,n(fe.value),1),h(`div`,O,` Баллы: `+n($.value[0]?.totalScore??0)+` · Поездки: `+n($.value[0]?.actionsCount??0),1),s[2]||=h(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):e(``,!0),J.value?(r(),m(`div`,k,[s[4]||=h(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),i(o(_),{justify:`end`},{default:f(()=>[i(o(g),{onClick:pe},{default:f(()=>[...s[3]||=[t(`Войти`,-1)]]),_:1})]),_:1})])):G.value?(r(),m(`div`,A,[h(`p`,j,n(K.value),1),q.value?(r(),m(l,{key:0},[s[6]||=h(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),i(o(_),{justify:`end`},{default:f(()=>[i(o(g),{onClick:me},{default:f(()=>[...s[5]||=[t(`Войти заново`,-1)]]),_:1})]),_:1})],64)):e(``,!0)])):W.value&&X.value.length==0?(r(),m(`div`,M,[...s[7]||=[h(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):W.value?(r(),m(`div`,N,[h(`table`,P,[h(`thead`,null,[h(`tr`,null,[s[8]||=h(`th`,{class:`place-col`},`Место`,-1),s[9]||=h(`th`,{class:`team-col`},`Команда`,-1),(r(!0),m(l,null,d(Y.value,e=>(r(),m(`th`,{key:e.code,class:`question-col`,title:e.text},[h(`div`,I,n(e.text),1)],8,F))),128)),s[10]||=h(`th`,{class:`number-col`},`Сумма`,-1),s[11]||=h(`th`,{class:`number-col`},`Поездки`,-1)])]),h(`tbody`,null,[(r(!0),m(l,null,d(X.value,e=>(r(),m(`tr`,{key:e.team?.id},[h(`td`,L,[e.place!=null&&e.place>=1&&e.place<=3?(r(),m(`span`,{key:0,class:ee([`place-badge`,`place-`+e.place])},n(e.place),3)):(r(),m(`span`,R,n(e.place),1))]),h(`td`,ce,n(e.team?.name),1),(r(!0),m(l,null,d(Y.value,t=>(r(),m(`td`,{key:t.code,class:`number-col`},n(ue(e,t.code)),1))),128)),h(`td`,z,n(e.totalScore),1),h(`td`,B,n(e.actionsCount),1)]))),128))])])])):e(``,!0)])]),i(x,{active:`games`})],64))}}),[[`__scopeId`,`data-v-e6db10a5`]]),H=u({__name:`GameResultsView`,setup(e){return(e,t)=>(r(),a(V))}});export{H as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,Nt as ee,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as te,q as d,tt as f,u as p,w as m,x as h}from"./client-BBfBDiVG.js";import{t as g}from"./Button-DAM1cqtA.js";import{t as ne}from"./use-message-DyQW5yAL.js";import{t as _}from"./Flex-BIB1uWhx.js";import{t as v}from"./index-DnUl8nHF.js";import{n as y,t as b}from"./es-D90fN3qV.js";import{t as x}from"./HeaderMenu-CqYU4ywX.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},re=u({name:`TrophyFilled`,render:function(e,t){return r(),m(`svg`,C,t[0]||=[h(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm18-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),ie={class:`center-block-custom`},ae={class:`width1200`},oe={class:`page-header`},se={key:0,class:`game-name`},w={key:0,class:`winner-block`},T={class:`winner-cup`,"aria-hidden":`true`},E={class:`winner-label`},D={class:`winner-names`},O={class:`winner-stats`},k={key:1,class:`info-block`},A={key:2,class:`info-block`},j={class:`info-title`},M={key:3,class:`info-block`},N={key:4,class:`table-scroll`},P={class:`results-table`},F=[`title`],I={class:`question-text`},L={class:`place-col`},R={key:1,class:`place-plain`},ce={class:`team-col`},z={class:`number-col`},B={class:`number-col`},V=S(u({__name:`GameResultsPage`,setup(a){let u=y(),S=v(),C=ne(),V=te(),H=p(),U=V.params.id,W=c(!1),G=c(!1),K=c(``),q=c(!1),J=c(!1),Y=c([]),X=c([]),Z=c(``);async function le(){W.value=!1,G.value=!1,J.value=!1,q.value=!1;try{let e=await u.GetGameResults({gameId:Number(U)});if(e.error!=``){K.value=e.error||`Не удалось загрузить результаты`,C.error(K.value),G.value=!0;return}Y.value=e.questions||[],X.value=e.teams||[],W.value=!0}catch{S.isAuthenticated?(K.value=`Не удалось загрузить результаты`,C.error(K.value),q.value=!0,G.value=!0):J.value=!0}}le();async function Q(){try{let e=await u.GetGame({id:Number(U)});Z.value=e.game?.name||``}catch{}}Q();function ue(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.score??`—`}let $=s(()=>{let e=X.value.map(e=>e.place).filter(e=>e!=null);if(e.length==0)return[];let t=Math.min(...e);return X.value.filter(e=>e.place===t)}),de=s(()=>$.value.length>1?`Победители`:`Победитель`),fe=s(()=>{let e=$.value.map(e=>e.team?.name||``).filter(e=>e!=``);return e.length<=1?e[0]||``:e.length==2?e[0]+` и `+e[1]:e.slice(0,-1).join(`, `)+` и `+e[e.length-1]});function pe(){H.push(`/login`)}function me(){S.logout(),H.push(`/login`)}function he(){if(window.history.state?.back){H.back();return}H.push(`/games`)}return(a,s)=>(r(),m(l,null,[h(`div`,ie,[h(`div`,ae,[h(`div`,oe,[i(o(_),{justify:`space-between`,align:`center`},{default:f(()=>[h(`div`,null,[s[0]||=h(`div`,{class:`page-title`},`Итоги игры`,-1),Z.value?(r(),m(`div`,se,n(Z.value),1)):e(``,!0)]),i(o(g),{quaternary:``,onClick:he},{default:f(()=>[...s[1]||=[t(`Назад`,-1)]]),_:1})]),_:1})]),W.value&&$.value.length>0?(r(),m(`div`,w,[h(`span`,T,[i(o(b),{size:`56`},{default:f(()=>[i(o(re))]),_:1})]),h(`div`,E,n(de.value),1),h(`div`,D,n(fe.value),1),h(`div`,O,` Баллы: `+n($.value[0]?.totalScore??0)+` · Поездки: `+n($.value[0]?.actionsCount??0),1),s[2]||=h(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):e(``,!0),J.value?(r(),m(`div`,k,[s[4]||=h(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),i(o(_),{justify:`end`},{default:f(()=>[i(o(g),{onClick:pe},{default:f(()=>[...s[3]||=[t(`Войти`,-1)]]),_:1})]),_:1})])):G.value?(r(),m(`div`,A,[h(`p`,j,n(K.value),1),q.value?(r(),m(l,{key:0},[s[6]||=h(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),i(o(_),{justify:`end`},{default:f(()=>[i(o(g),{onClick:me},{default:f(()=>[...s[5]||=[t(`Войти заново`,-1)]]),_:1})]),_:1})],64)):e(``,!0)])):W.value&&X.value.length==0?(r(),m(`div`,M,[...s[7]||=[h(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):W.value?(r(),m(`div`,N,[h(`table`,P,[h(`thead`,null,[h(`tr`,null,[s[8]||=h(`th`,{class:`place-col`},`Место`,-1),s[9]||=h(`th`,{class:`team-col`},`Команда`,-1),(r(!0),m(l,null,d(Y.value,e=>(r(),m(`th`,{key:e.code,class:`question-col`,title:e.text},[h(`div`,I,n(e.text),1)],8,F))),128)),s[10]||=h(`th`,{class:`number-col`},`Сумма`,-1),s[11]||=h(`th`,{class:`number-col`},`Поездки`,-1)])]),h(`tbody`,null,[(r(!0),m(l,null,d(X.value,e=>(r(),m(`tr`,{key:e.team?.id},[h(`td`,L,[e.place!=null&&e.place>=1&&e.place<=3?(r(),m(`span`,{key:0,class:ee([`place-badge`,`place-`+e.place])},n(e.place),3)):(r(),m(`span`,R,n(e.place),1))]),h(`td`,ce,n(e.team?.name),1),(r(!0),m(l,null,d(Y.value,t=>(r(),m(`td`,{key:t.code,class:`number-col`},n(ue(e,t.code)),1))),128)),h(`td`,z,n(e.totalScore),1),h(`td`,B,n(e.actionsCount),1)]))),128))])])])):e(``,!0)])]),i(x,{active:`games`})],64))}}),[[`__scopeId`,`data-v-e6db10a5`]]),H=u({__name:`GameResultsView`,setup(e){return(e,t)=>(r(),a(V))}});export{H as default}; \ No newline at end of file diff --git a/dist/assets/GameView-B595UwmM.css b/dist/assets/GameView-B595UwmM.css new file mode 100644 index 0000000..7dd1619 --- /dev/null +++ b/dist/assets/GameView-B595UwmM.css @@ -0,0 +1 @@ +.screen-preview[data-v-429be1f4]{aspect-ratio:16/9;color:#eee;text-align:center;background-color:#111;background-position:50%;background-size:cover;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.timer-preview[data-v-429be1f4]{max-width:95%}.timer-preview h2[data-v-429be1f4],.preview-message[data-v-429be1f4],.preview-results h2[data-v-429be1f4]{margin:0 0 10px;font-size:clamp(16px,3vw,32px)}.timer-preview strong[data-v-429be1f4]{font-variant-numeric:tabular-nums;font-size:clamp(48px,10vw,120px);line-height:.9;display:block}.screen-preview audio[data-v-429be1f4],.preview-video[data-v-429be1f4]{pointer-events:none;width:90%;max-width:90%}.preview-video[data-v-429be1f4]{object-fit:contain;height:100%}.preview-cover[data-v-429be1f4]{object-fit:contain;width:100%;height:100%}.preview-results[data-v-429be1f4]{width:100%;max-width:96%;max-height:90%;overflow:hidden}.preview-results table[data-v-429be1f4]{border-collapse:collapse;width:100%;font-size:10px}.preview-results th[data-v-429be1f4],.preview-results td[data-v-429be1f4]{text-align:left;border-bottom:1px solid #ffffff2e;padding:3px}.team-block[data-v-bfbdd3fa]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.reviews-summary[data-v-bfbdd3fa]{margin-bottom:20px}.review-row[data-v-bfbdd3fa]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-bfbdd3fa]{white-space:pre-wrap}.team-block-hover[data-v-bfbdd3fa]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-bfbdd3fa]{padding:20px}.team-name-block[data-v-bfbdd3fa]{font-size:20px;font-weight:600}.settings-icon[data-v-bfbdd3fa]{width:20px}.link-button[data-v-bfbdd3fa]{width:100%;margin-top:20px}.place-image-plus[data-v-bfbdd3fa]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-bfbdd3fa]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-bfbdd3fa]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-bfbdd3fa]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-bfbdd3fa]{width:100%}.give-application-audio[data-v-bfbdd3fa]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-bfbdd3fa]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-bfbdd3fa]{color:#777}.answers-question-block[data-v-bfbdd3fa]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-bfbdd3fa]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-bfbdd3fa]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-bfbdd3fa]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-bfbdd3fa]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-bfbdd3fa]{width:180px;font-weight:600}.answers-team-answer[data-v-bfbdd3fa]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-bfbdd3fa]{width:110px}.screens-block[data-v-bfbdd3fa]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-bfbdd3fa]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-bfbdd3fa]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-bfbdd3fa]{color:#aaa;font-size:13px}.screen-error[data-v-bfbdd3fa]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-bfbdd3fa]{margin-top:12px}.map-preview-layout[data-v-bfbdd3fa]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:12px;display:grid}.map-block[data-v-bfbdd3fa],.screen-preview-panel[data-v-bfbdd3fa]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screen-preview-placeholder[data-v-bfbdd3fa]{aspect-ratio:16/9;color:#aaa;text-align:center;background-color:#111;justify-content:center;align-items:center;display:flex}.map-field[data-v-bfbdd3fa]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-bfbdd3fa]:active{cursor:grabbing}.map-canvas[data-v-bfbdd3fa]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-bfbdd3fa]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-bfbdd3fa]:active{cursor:grabbing}.map-screen[data-v-bfbdd3fa]{background-color:#355b75}.map-organizer-desk[data-v-bfbdd3fa]{background-color:#48633a}.map-team[data-v-bfbdd3fa]{background-color:#222}.map-team[data-v-bfbdd3fa],.map-team[data-v-bfbdd3fa]:active{cursor:default}.map-team-handle[data-v-bfbdd3fa]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-bfbdd3fa]:active{cursor:grabbing}.map-team-applications[data-v-bfbdd3fa]{margin-top:8px}.map-team-needs-applications[data-v-bfbdd3fa]{outline:2px solid gold}.map-item small[data-v-bfbdd3fa]{opacity:.75;display:block}.map-item-hide[data-v-bfbdd3fa]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-bfbdd3fa]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-bfbdd3fa]{margin-top:10px}@media (width<1024px){.map-preview-layout[data-v-bfbdd3fa]{grid-template-columns:1fr}}.issued-ticket[data-v-bfbdd3fa]{border-top:1px solid #777;flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px;display:flex} diff --git a/dist/assets/GameView-D8y-B3MH.css b/dist/assets/GameView-D8y-B3MH.css deleted file mode 100644 index 0312191..0000000 --- a/dist/assets/GameView-D8y-B3MH.css +++ /dev/null @@ -1 +0,0 @@ -.team-block[data-v-9ae226f4]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.reviews-summary[data-v-9ae226f4]{margin-bottom:20px}.review-row[data-v-9ae226f4]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-9ae226f4]{white-space:pre-wrap}.team-block-hover[data-v-9ae226f4]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-9ae226f4]{padding:20px}.team-name-block[data-v-9ae226f4]{font-size:20px;font-weight:600}.settings-icon[data-v-9ae226f4]{width:20px}.link-button[data-v-9ae226f4]{width:100%;margin-top:20px}.place-image-plus[data-v-9ae226f4]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-9ae226f4]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-9ae226f4]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-9ae226f4]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-9ae226f4]{width:100%}.give-application-audio[data-v-9ae226f4]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-9ae226f4]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-9ae226f4]{color:#777}.answers-question-block[data-v-9ae226f4]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-9ae226f4]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-9ae226f4]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-9ae226f4]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-9ae226f4]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-9ae226f4]{width:180px;font-weight:600}.answers-team-answer[data-v-9ae226f4]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-9ae226f4]{width:110px}.screens-block[data-v-9ae226f4]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-9ae226f4]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-9ae226f4]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-9ae226f4]{color:#aaa;font-size:13px}.screen-error[data-v-9ae226f4]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-9ae226f4]{margin-top:12px}.map-block[data-v-9ae226f4]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-9ae226f4]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-9ae226f4]:active{cursor:grabbing}.map-canvas[data-v-9ae226f4]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-9ae226f4]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-9ae226f4]:active{cursor:grabbing}.map-screen[data-v-9ae226f4]{background-color:#355b75}.map-team[data-v-9ae226f4]{background-color:#222}.map-team[data-v-9ae226f4],.map-team[data-v-9ae226f4]:active{cursor:default}.map-team-handle[data-v-9ae226f4]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-9ae226f4]:active{cursor:grabbing}.map-team-applications[data-v-9ae226f4]{margin-top:8px}.map-team-needs-applications[data-v-9ae226f4]{outline:2px solid gold}.map-item small[data-v-9ae226f4]{opacity:.75;display:block}.map-item-hide[data-v-9ae226f4]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-9ae226f4]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-9ae226f4]{margin-top:10px}.issued-ticket[data-v-9ae226f4]{border-top:1px solid #777;flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px;display:flex} diff --git a/dist/assets/GameView-DD4R1RyB.js b/dist/assets/GameView-DD4R1RyB.js deleted file mode 100644 index 8e5b974..0000000 --- a/dist/assets/GameView-DD4R1RyB.js +++ /dev/null @@ -1,7 +0,0 @@ -import{$ as e,C as t,D as n,Ft as r,G as i,L as a,M as o,Nt as s,O as c,Pt as l,S as u,_t as d,b as ee,ft as f,h as p,ht as m,k as h,l as te,nt as ne,q as g,r as _,tt as v,u as re,w as y,x as b}from"./client-E8nWUy_w.js";import{G as x,H as S,K as C,N as w,n as T,o as ie,r as E,t as D}from"./light-Dq0naAvE.js";import{d as ae,t as O}from"./Card-D_Y8VzWl.js";import{t as k}from"./Modal-D1InIULi.js";import{t as oe}from"./use-merged-state-C1ccSDEx.js";import{n as A,t as j}from"./Button-Cr3XRKS5.js";import{t as se}from"./Select-DV69pW8T.js";import{n as ce,r as M}from"./use-form-item-CVzWkQI_.js";import{a as le,r as N}from"./resolve-slot-C9tdVP4f.js";import{r as ue}from"./Suffix-D4EvRHEf.js";import{t as de}from"./Add-BCBjjH0K.js";import{t as P}from"./Input-BkQuBf9P.js";import{t as F}from"./Remove-ChrN075i.js";import{t as fe}from"./Tag-Bb42yLml.js";import{t as pe}from"./use-message-BD6Lw0qA.js";import{t as I}from"./Space-LOHABRdD.js";import{t as L}from"./Flex-7TW8da2P.js";import{t as me}from"./Rate-DJirJCYw.js";import{t as he}from"./QrCode-DayNjdR9.js";import{t as R}from"./text-DLGdGDO6.js";import{S as z,U as B,X as V,rt as H,tt as ge,w as U}from"./index-DrmfX-S2.js";import{n as _e,t as W}from"./es-CBOun6Az.js";import{t as ve}from"./HeaderMenu-D_gj_b_i.js";import{t as G}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./Settings-BsptM00R.js";import{t as be}from"./binary_client-CtnHO7V-.js";import{t as xe}from"./useSimplePolling-CrvIPr6O.js";import{n as Se,r as Ce}from"./application-Cen-5gWT.js";import{n as we,t as Te}from"./datetime-BJNH0M1T.js";function Ee(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var De=T({name:`InputNumber`,common:D,peers:{Button:z,Input:U},self:Ee}),Oe=x([C(`input-number-suffix`,` - display: inline-block; - margin-right: 10px; - `),C(`input-number-prefix`,` - display: inline-block; - margin-left: 10px; - `)]);function ke(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function K(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function q(e){return e==null?!0:!Number.isNaN(e)}function J(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function Y(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var X=800,Z=100,Ae=h({name:`InputNumber`,props:Object.assign(Object.assign({},E.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(t){let{mergedBorderedRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:o}=w(t),s=E(`InputNumber`,`-input-number`,Oe,De,t,r),{localeRef:c}=ue(`InputNumber`),l=ce(t,{mergedSize:e=>{let{size:n}=t;if(n)return n;let{mergedSize:r}=e||{};return r?.value?r.value:o?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:p}=l,h=f(null),te=f(null),ne=f(null),g=f(t.defaultValue),_=oe(m(t,`value`),g),v=f(``),re=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},y=e=>{let n=[t.min,t.max,t.step,e].map(e=>e===void 0?0:re(e));return Math.max(...n)},b=V(()=>{let{placeholder:e}=t;return e===void 0?c.value.placeholder:e}),x=V(()=>{let e=Y(t.step);return e===null||e===0?1:Math.abs(e)}),C=V(()=>{let e=Y(t.min);return e===null?null:e}),T=V(()=>{let e=Y(t.max);return e===null?null:e}),D=()=>{let{value:e}=_;if(q(e)){let{format:n,precision:r}=t;n?v.value=n(e):e===null||r===void 0||re(e)>r?v.value=J(e,void 0):v.value=J(e,r)}else v.value=String(e)};D();let O=e=>{let{value:n}=_;if(e===n){D();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=t,{nTriggerFormInput:o,nTriggerFormChange:s}=l;a&&M(a,e),i&&M(i,e),r&&M(r,e),g.value=e,o(),s()},k=({offset:e,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=v;if(i&&K(a))return!1;let o=(t.parse||ke)(a);if(o===null)return n&&O(null),null;if(q(o)){let a=re(o),{precision:s}=t;if(s!==void 0&&se){if(!n||i)return!1;c=e}if(r!==null&&ck({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),j=V(()=>{let{value:e}=_;if(t.validator&&e===null)return!1;let{value:n}=x;return k({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),se=V(()=>{let{value:e}=_;if(t.validator&&e===null)return!1;let{value:n}=x;return k({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function le(e){let{onFocus:n}=t,{nTriggerFormFocus:r}=l;n&&M(n,e),r()}function N(e){if(e.target===h.value?.wrapperElRef)return;let n=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=h.value?.inputElRef;e&&(e.value=String(n||``)),_.value===n&&D()}else D();let{onBlur:r}=t,{nTriggerFormBlur:i}=l;r&&M(r,e),i(),a(()=>{D()})}function de(e){let{onClear:n}=t;n&&M(n,e)}function P(){let{value:e}=se;if(!e){ge();return}let{value:n}=_;if(n===null)t.validator||O(I());else{let{value:e}=x;k({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function F(){let{value:e}=j;if(!e){B();return}let{value:n}=_;if(n===null)t.validator||O(I());else{let{value:e}=x;k({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let fe=le,pe=N;function I(){if(t.validator)return null;let{value:e}=C,{value:n}=T;return e===null?n===null?0:Math.min(0,n):Math.max(0,e)}function L(e){de(e),O(null)}function me(e){var t;ne.value?.$el.contains(e.target)&&e.preventDefault(),te.value?.$el.contains(e.target)&&e.preventDefault(),(t=h.value)==null||t.activate()}let he=null,R=null,z=null;function B(){z&&=(window.clearTimeout(z),null),he&&=(window.clearInterval(he),null)}let H=null;function ge(){H&&=(window.clearTimeout(H),null),R&&=(window.clearInterval(R),null)}function U(){B(),z=window.setTimeout(()=>{he=window.setInterval(()=>{F()},Z)},X),ae(`mouseup`,document,B,{once:!0})}function _e(){ge(),H=window.setTimeout(()=>{R=window.setInterval(()=>{P()},Z)},X),ae(`mouseup`,document,ge,{once:!0})}let W=()=>{R||P()},ve=()=>{he||F()};function G(e){var n;if(e.key===`Enter`){if(e.target===h.value?.wrapperElRef)return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=h.value)==null||n.deactivate())}else if(e.key===`ArrowUp`){if(!se.value||t.keyboard.ArrowUp===!1)return;e.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&P()}else if(e.key===`ArrowDown`){if(!j.value||t.keyboard.ArrowDown===!1)return;e.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}}function ye(e){v.value=e,t.updateValueOnInput&&!t.format&&!t.parse&&t.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}e(_,()=>{D()});let be={focus:()=>h.value?.focus(),blur:()=>h.value?.blur(),select:()=>h.value?.select()},xe=ie(`InputNumber`,i,r);return Object.assign(Object.assign({},be),{rtlEnabled:xe,inputInstRef:h,minusButtonInstRef:te,addButtonInstRef:ne,mergedClsPrefix:r,mergedBordered:n,uncontrolledValue:g,mergedValue:_,mergedPlaceholder:b,displayedValueInvalid:A,mergedSize:u,mergedDisabled:d,displayedValue:v,addable:se,minusable:j,mergedStatus:p,handleFocus:fe,handleBlur:pe,handleClear:L,handleMouseDown:me,handleAddClick:W,handleMinusClick:ve,handleAddMousedown:_e,handleMinusMousedown:U,handleKeyDown:G,handleUpdateDisplayedValue:ye,mergedTheme:s,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:ee(()=>{let{self:{iconColorDisabled:e}}=s.value,[t,n,r,i]=S(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>o(A,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>N(t[`minus-icon`],()=>[o(B,{clsPrefix:e},{default:()=>o(F,null)})])}),r=()=>o(A,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>N(t[`add-icon`],()=>[o(B,{clsPrefix:e},{default:()=>o(de,null)})])});return o(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},o(P,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[n(),le(t.prefix,t=>t?o(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[le(t.suffix,t=>t?o(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),je={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Me=h({name:`Flag`,render:function(e,t){return i(),y(`svg`,je,t[0]||=[b(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,fill:`currentColor`},null,-1)])}}),Ne={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Pe=h({name:`Pause`,render:function(e,t){return i(),y(`svg`,Ne,t[0]||=[b(`path`,{d:`M12 8v16H8V8h4m0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1),b(`path`,{d:`M24 8v16h-4V8h4m0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1)])}}),Fe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ie=h({name:`Play`,render:function(e,t){return i(),y(`svg`,Fe,t[0]||=[b(`path`,{d:`M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28zM8 6.69V25.31L24.925 16z`,fill:`currentColor`},null,-1)])}}),Le={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Re=h({name:`Reset`,render:function(e,t){return i(),y(`svg`,Le,t[0]||=[b(`path`,{d:`M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10z`,fill:`currentColor`},null,-1)])}}),ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Be=h({name:`Trophy`,render:function(e,t){return i(),y(`svg`,ze,t[0]||=[b(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm14 0a6 6 0 0 1-6.186 5.997A6.2 6.2 0 0 1 10 13.707V6h12zm4-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),Ve={class:`center-block-custom`},He={class:`width1200`},Ue={class:`settings-block`},We={key:0,class:`screens-block`},Ge={class:`screen-status`},Ke={key:0,class:`screen-error`},qe={class:`map-block`},Je=[`onPointerdown`],Ye=[`onPointerdown`],Xe={key:2},Ze=[`onClick`],Qe={class:`team-content-block`},$e={class:`title-block`},et={class:`team-name-block`},tt={key:0},nt={key:1},rt={key:0},it={key:0},at={key:1},ot={key:2},st={key:3},ct={key:4},lt={key:0,class:`give-application-image-block`},ut=[`src`],dt=[`src`],ft=[`href`],pt=[`href`],mt={class:`qr-block`},ht={key:0,class:`answers-empty`},gt={class:`answers-question-title`},_t={class:`answers-question-answer`},vt={class:`correct-answer`},yt={class:`answers-team-name`},bt={class:`answers-team-answer`},xt={key:0,class:`answers-empty`},St=G(h({__name:`GamePage`,setup(e){let a=_e(),o=be(),m=f(!1),h=re(),x=te().params.id,S=pe(),C=f(!1),w=f({name:``,description:``,format:`online`,location:``}),T=f(!1),ie=f(!1),E=f(!1),D=f(!1),ae=f(``),oe=f(``),A=f(``),ce=f(!1),M=f(``),le=f(``),N=f(!1),ue=f(1),de=f([]),F=f(!1),z=f({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),B=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],V=ee(()=>(z.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),U=ee(()=>new Map((z.value.teams||[]).filter(e=>e.applications?.length).map(e=>[e.id,e]))),G=f([]),Ee=f([]),De=f(!1),Oe=f(100),ke=f(0),K=ee(()=>{let e=G.value.map(e=>e.mode).filter(Boolean);if(!(!e.length||e.some(t=>t!==e[0])))return e[0]}),q=f(1),J=f({x:0,y:0}),Y,X;async function Z(e){let t=await a.GetGame({id:e});if(t.error!=``){S.error(t.error);return}z.value=t.game,z.value.teams=z.value.teams?.sort((e,t)=>{let n=0;(e.applications?.length||0)>0&&(n=1);let r=0;if((t.applications?.length||0)>0&&(r=1),n>r)return-1;if(na?1:iURL.revokeObjectURL(n),1e3)}catch(e){S.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{m.value=!1}}}function Ft(){h.push(`/games/`+x+`/results`)}function It(){w.value={name:z.value.name||``,description:z.value.description||``,format:z.value.format||`online`,location:z.value.location||``},C.value=!0}function Lt(){C.value=!1}async function Rt(){let e=await a.UpdateGame({id:z.value.id,name:w.value.name,description:w.value.description,format:w.value.format,location:w.value.location.trim(),startAt:z.value.startAt,scenarioId:z.value.scenario?.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id),C.value=!1}let zt=f({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),Bt=f(``),Vt=f({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),$=f({name:``,image:``,file_type:``}),Ht=window.location.href;function Ut(e,t){zt.value=e,$.value=t,T.value=!0}async function Wt(){let e=await a.AddTeam({gameId:z.value.id,name:ae.value,captainEmail:oe.value.trim()});if(e.error!=``){S.error(e.error);return}await Z(z.value.id),ie.value=!1,oe.value=``}async function Gt(){let e=await a.GiveTeamApplications({id:zt.value.id,name:$.value.name});if(e.error!=``){S.error(e.error);return}await Z(z.value.id),T.value=!1}async function Kt(e){Vt.value=e,E.value=!0}async function qt(){let e=await a.DeleteTeam({id:Vt.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id),E.value=!1}async function Jt(){let e=await a.DeleteGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}S.success(`Игра удалена`),h.push(`/games`)}function Yt(e,t){return _()+`/team-story/`+e+`?password=`+t}async function Xt(e,t){M.value=e,le.value=t,ce.value=!0}function Zt(){ue.value=1,de.value=[],N.value=!0}async function Qt(){if(!(F.value||!z.value.id)){F.value=!0;try{let e=await a.IssueGameTickets({gameId:z.value.id,count:ue.value});if(e.error!=``){S.error(e.error);return}de.value=e.tickets||[],S.success(`Выпущено билетов: ${de.value.length}`)}catch(e){S.error(e instanceof Error?e.message:`Не удалось выпустить билеты`)}finally{F.value=!1}}}xe(()=>{Z(Number(x)),je(),Ne()},2e3);async function $t(){let e=await a.ResetGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id)}async function en(){let e=await a.StartGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id)}async function tn(){let e=await a.PauseGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id)}async function nn(){let e=await a.PlayGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id)}async function rn(){let e=await a.FinishGame({id:z.value.id});if(e.error!=``){S.error(e.error);return}await Z(z.value.id)}let an=f(!1),on=f(!1),sn=f([]),cn=f(0),ln=f(0),un=f([]),dn=f([]),fn=f({});function pn(e,t){return(e??``)+`:`+(t??``)}function mn(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function hn(e,t){fn.value[e]=t===null?void 0:t}async function gn(){let e=await a.GetGameAnswers({gameId:Number(x)});if(e.error!=``){S.error(e.error);return}un.value=e.questions||[],dn.value=e.teams||[];let t={};for(let e of dn.value)for(let n of e.answers||[])t[pn(e.team?.id,n.questionCode)]=n.score;fn.value=t}async function _n(){an.value=!0,await gn()}async function vn(){on.value=!0;let e=await a.GetGameReviewsForModeration({gameId:Number(x)});if(e.error!=``){S.error(e.error);return}sn.value=e.reviews||[],cn.value=e.averageRating||0,ln.value=e.reviewsCount||0}async function yn(e,t){let n=await a.ModerateGameReview({id:e.id,status:t});if(n.error!=``){S.error(n.error);return}await vn()}async function bn(){for(let e of un.value)for(let t of dn.value){let n=fn.value[pn(t.team?.id,e.code)],r=await a.SetTeamAnswerScore({id:t.team?.id,questionCode:e.code,score:n??void 0});if(r.error!=``){S.error(r.error);return}}S.success(`Баллы сохранены`),await gn()}function xn(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function Sn(e,t){if(e==``)return`Игра ещё не началась`;let n=we(e),r=xn();t!=``&&(r=we(t));let i=r.getTime()-n.getTime();if(i<0)return`Игра ещё не началась`;let a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),l=Math.floor(c/30),u=Math.floor(c/365);return u>0?`${u}г ${c%365}д`:l>0?`${l}мес ${c%30}д`:c>0?`${c}д ${s%24}ч`:s>0?`${s}ч ${o%60}м`:o>0?`${o}м ${a%60}с`:`${a}с`}let Cn=f(``);return xe(()=>{Cn.value=Sn(z.value.startedAt||``,z.value.endedAt||``)},1e3),(e,a)=>(i(),y(p,null,[b(`div`,Ve,[b(`div`,He,[b(`div`,Ue,[c(d(L),{justify:`space-between`},{default:v(()=>[c(d(I),null,{default:v(()=>[c(d(fe),{bordered:!1,type:`info`},{default:v(()=>[n(` Участвуют команд: `+r(V.value),1)]),_:1}),c(d(fe),{type:`info`},{default:v(()=>[n(r(Cn.value),1)]),_:1}),d(Te)(z.value.startAt)?(i(),u(d(fe),{key:0,type:`info`},{default:v(()=>[n(` Начало: `+r(d(Te)(z.value.startAt)),1)]),_:1})):t(``,!0)]),_:1}),c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{quaternary:``,onClick:a[0]||=e=>Xt(d(Ht),`Админка`)},{default:v(()=>[...a[65]||=[n(` QR `,-1)]]),_:1}),c(d(j),{quaternary:``,onClick:a[1]||=e=>Zt()},{default:v(()=>[...a[66]||=[n(` Выпустить билеты `,-1)]]),_:1}),c(d(j),{quaternary:``,onClick:a[2]||=e=>_n()},{default:v(()=>[...a[67]||=[n(` Ответы команд `,-1)]]),_:1}),z.value.status==`finish`?(i(),u(d(j),{key:0,quaternary:``,onClick:a[3]||=e=>Ft()},{default:v(()=>[c(d(W),{class:`settings-icon`},{default:v(()=>[c(d(Be))]),_:1}),a[68]||=n(` Итоги `,-1)]),_:1})):t(``,!0),V.value?(i(),u(d(j),{key:1,quaternary:``,loading:m.value,disabled:m.value,onClick:a[4]||=e=>Pt()},{default:v(()=>[...a[69]||=[n(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):t(``,!0),c(d(j),{quaternary:``,onClick:a[5]||=e=>It()},{default:v(()=>[c(d(W),{class:`settings-icon`},{default:v(()=>[c(d(ye))]),_:1}),a[70]||=n(` Настройки `,-1)]),_:1}),(z.value.teams?.length||0)==0?(i(),u(d(j),{key:2,type:`error`,quaternary:``,onClick:a[6]||=e=>D.value=!0},{default:v(()=>[...a[71]||=[n(` Удалить игру `,-1)]]),_:1})):t(``,!0),c(d(I),null,{default:v(()=>[z.value.status==`draft`?t(``,!0):(i(),u(d(j),{key:0,type:`info`,dashed:``,onClick:a[7]||=e=>$t()},{default:v(()=>[c(d(W),null,{default:v(()=>[c(d(Re))]),_:1})]),_:1})),z.value.status==`draft`?(i(),u(d(j),{key:1,type:`info`,dashed:``,onClick:a[8]||=e=>en()},{default:v(()=>[c(d(W),null,{default:v(()=>[c(d(Ie))]),_:1})]),_:1})):t(``,!0),z.value.status==`pause`?(i(),u(d(j),{key:2,type:`info`,dashed:``,onClick:a[9]||=e=>nn()},{default:v(()=>[c(d(W),null,{default:v(()=>[c(d(Ie))]),_:1})]),_:1})):t(``,!0),z.value.status==`run`?(i(),u(d(j),{key:3,type:`info`,dashed:``,onClick:a[10]||=e=>tn()},{default:v(()=>[c(d(W),null,{default:v(()=>[c(d(Pe))]),_:1})]),_:1})):t(``,!0),z.value.status==`finish`?t(``,!0):(i(),u(d(j),{key:4,type:`info`,dashed:``,onClick:a[11]||=e=>rn()},{default:v(()=>[c(d(W),null,{default:v(()=>[c(d(Me))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),G.value.length>0?(i(),y(`div`,We,[a[90]||=b(`p`,{class:`screens-title`},`Экраны`,-1),(i(!0),y(p,null,g(G.value,e=>(i(),y(`div`,{key:e.id,class:`screen-row`},[b(`div`,null,[b(`div`,null,`Экран `+r(e.id),1),b(`div`,Ge,r(e.status),1),e.error?(i(),y(`div`,Ke,r(e.error),1)):t(``,!0)]),c(d(L),{justify:`end`},{default:v(()=>[e.soundEnabled?(i(),u(d(fe),{key:0,type:`success`},{default:v(()=>[...a[72]||=[n(`Со звуком`,-1)]]),_:1})):(i(),u(d(j),{key:1,size:`small`,onClick:t=>At(e)},{default:v(()=>[...a[73]||=[n(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),c(d(j),{size:`small`,type:`error`,ghost:``,onClick:t=>jt(e)},{default:v(()=>[...a[74]||=[n(`Отвязать`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128)),c(d(I),{class:`screen-mode-controls`},{default:v(()=>[c(d(j),{size:`small`,type:K.value===`SCREEN_MODE_COVER`?`primary`:`default`,onClick:a[12]||=e=>Mt(`SCREEN_MODE_COVER`)},{default:v(()=>[...a[75]||=[n(`Обложка`,-1)]]),_:1},8,[`type`]),c(d(j),{size:`small`,type:K.value===`SCREEN_MODE_INTRO`?`primary`:`default`,onClick:a[13]||=e=>Mt(`SCREEN_MODE_INTRO`)},{default:v(()=>[...a[76]||=[n(`Введение`,-1)]]),_:1},8,[`type`]),c(d(j),{size:`small`,type:K.value===`SCREEN_MODE_INTRO_DONE`?`primary`:`default`,onClick:a[14]||=e=>Mt(`SCREEN_MODE_INTRO_DONE`)},{default:v(()=>[...a[77]||=[n(`Успехов`,-1)]]),_:1},8,[`type`]),c(d(j),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION`?`primary`:`default`,onClick:a[15]||=e=>Mt(`SCREEN_MODE_CONCLUSION`)},{default:v(()=>[...a[78]||=[n(`Закрывашка`,-1)]]),_:1},8,[`type`]),c(d(j),{size:`small`,type:K.value===`SCREEN_MODE_CONCLUSION_DONE`?`primary`:`default`,onClick:a[16]||=e=>Mt(`SCREEN_MODE_CONCLUSION_DONE`)},{default:v(()=>[...a[79]||=[n(`Спасибо за игру!`,-1)]]),_:1},8,[`type`]),z.value.status===`finish`?(i(),u(d(j),{key:0,size:`small`,type:K.value===`SCREEN_MODE_RESULTS`?`primary`:`default`,onClick:a[17]||=e=>Mt(`SCREEN_MODE_RESULTS`)},{default:v(()=>[...a[80]||=[n(`Результаты`,-1)]]),_:1},8,[`type`])):t(``,!0)]),_:1}),c(d(I),{class:`screen-mode-controls`},{default:v(()=>[c(d(j),{size:`small`,onClick:a[18]||=e=>Q(`SCREEN_COMMAND_PLAY`)},{default:v(()=>[...a[81]||=[n(`Запуск`,-1)]]),_:1}),c(d(j),{size:`small`,onClick:a[19]||=e=>Q(`SCREEN_COMMAND_PAUSE`)},{default:v(()=>[...a[82]||=[n(`Пауза`,-1)]]),_:1}),c(d(j),{size:`small`,onClick:a[20]||=e=>Q(`SCREEN_COMMAND_RESUME`)},{default:v(()=>[...a[83]||=[n(`Продолжить`,-1)]]),_:1}),c(d(j),{size:`small`,onClick:a[21]||=e=>Q(`SCREEN_COMMAND_STOP`)},{default:v(()=>[...a[84]||=[n(`Стоп`,-1)]]),_:1}),c(d(j),{size:`small`,onClick:a[22]||=e=>Q(`SCREEN_COMMAND_REPLAY`)},{default:v(()=>[...a[85]||=[n(`Повтор`,-1)]]),_:1})]),_:1}),c(d(I),{class:`screen-mode-controls`,align:`center`},{default:v(()=>[c(d(R),null,{default:v(()=>[...a[86]||=[n(`Громкость`,-1)]]),_:1}),c(d(Ae),{value:Oe.value,"onUpdate:value":a[23]||=e=>Oe.value=e,min:0,max:100,step:5,size:`small`},null,8,[`value`]),c(d(j),{size:`small`,onClick:a[24]||=e=>Q(`SCREEN_COMMAND_VOLUME`)},{default:v(()=>[...a[87]||=[n(`Применить`,-1)]]),_:1}),c(d(R),null,{default:v(()=>[...a[88]||=[n(`Позиция, сек.`,-1)]]),_:1}),c(d(Ae),{value:ke.value,"onUpdate:value":a[25]||=e=>ke.value=e,min:0,step:5,size:`small`},null,8,[`value`]),c(d(j),{size:`small`,onClick:a[26]||=e=>Q(`SCREEN_COMMAND_SEEK`)},{default:v(()=>[...a[89]||=[n(`Перемотать`,-1)]]),_:1})]),_:1})])):t(``,!0),b(`div`,qe,[c(d(L),{align:`center`,justify:`space-between`},{default:v(()=>[a[94]||=b(`p`,{class:`screens-title`},`Карта помещения`,-1),c(d(I),null,{default:v(()=>[c(d(j),{size:`small`,onClick:a[27]||=e=>wt(-.1)},{default:v(()=>[...a[91]||=[n(`−`,-1)]]),_:1}),c(d(R),null,{default:v(()=>[n(r(Math.round(q.value*100))+`%`,1)]),_:1}),c(d(j),{size:`small`,onClick:a[28]||=e=>wt(.1)},{default:v(()=>[...a[92]||=[n(`+`,-1)]]),_:1}),c(d(j),{size:`small`,onClick:Tt},{default:v(()=>[...a[93]||=[n(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),b(`div`,{class:`map-field`,onPointerdown:Et,onWheel:kt},[b(`div`,{class:`map-canvas`,style:l({transform:`translate(${J.value.x}px, ${J.value.y}px) scale(${q.value})`})},[(i(!0),y(p,null,g(Ee.value,e=>ne((i(),y(`div`,{key:`${e.kind}-${e.itemId}`,class:s([`map-item`,[e.kind===`screen`?`map-screen`:`map-team`,{"map-team-needs-applications":e.kind===`team`&&U.value.has(e.itemId)}]]),style:l({left:`${e.x||0}px`,top:`${e.y||0}px`}),onPointerdown:H(t=>e.kind===`screen`&&Le(e,t),[`stop`])},[e.kind===`team`?(i(),y(`div`,{key:0,class:`map-team-handle`,onPointerdown:H(t=>Le(e,t),[`stop`])},null,40,Ye)):t(``,!0),b(`span`,null,r(e.label),1),e.kind===`team`&&U.value.has(e.itemId)?(i(),u(d(I),{key:1,class:`map-team-applications`,vertical:``},{default:v(()=>[(i(!0),y(p,null,g(U.value.get(e.itemId)?.applications,t=>(i(),u(d(j),{key:t.name,size:`small`,onClick:n=>Ut(U.value.get(e.itemId),t)},{default:v(()=>[n(` Выдать: `+r(t.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):t(``,!0),e.kind===`screen`?(i(),y(`small`,Xe,r(e.status)+r(e.soundEnabled?` · звук`:``),1)):t(``,!0),b(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:a[29]||=H(()=>{},[`stop`]),onClick:H(t=>Ct(e),[`stop`])},` × `,40,Ze)],46,Je)),[[ge,!e.hidden]])),128))],4)],32),Ee.value.some(e=>e.hidden)?(i(),u(d(I),{key:0,class:`map-hidden-items`},{default:v(()=>[(i(!0),y(p,null,g(Ee.value.filter(e=>e.hidden),e=>(i(),u(d(j),{key:`hidden-${e.kind}-${e.itemId}`,size:`small`,onClick:t=>Ct(e)},{default:v(()=>[n(` Добавить `+r(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):t(``,!0)]),b(`div`,{class:`team-block team-block-hover`,onClick:a[30]||=e=>ie.value=!0},[...a[95]||=[b(`p`,{class:`place-image-plus`},`+`,-1)]]),(i(!0),y(p,null,g(z.value.teams,e=>(i(),y(`div`,{key:e.id,class:`team-block`},[b(`div`,Qe,[c(d(L),{justify:`space-between`},{default:v(()=>[b(`div`,$e,[b(`span`,et,[n(r(e.name)+` `,1),e.captainEmail?(i(),y(`small`,tt,` — `+r(e.captainEmail),1)):t(``,!0),e.participantsCount?(i(),y(`small`,nt,` · Участников: `+r(e.participantsCount),1)):t(``,!0)]),e.captainEmail||e.participationStatus!==`pending`?(i(),y(`div`,rt,[n(r(B.find(t=>t.value===e.participationStatus)?.label),1),e.participationSource===`automatic`?(i(),y(`span`,it,` · автоматически`)):t(``,!0)])):t(``,!0),e.captainEmail?e.participationEmailError?(i(),y(`div`,ot,` Ошибка отправки: `+r(e.participationEmailError),1)):e.participationEmailSent?(i(),y(`div`,st,`Письмо отправлено`)):t(``,!0):(i(),y(`div`,at,`Почта капитана не указана`)),e.participationStatus===`cancelled`?t(``,!0):(i(),y(`div`,ct,` Поездки: `+r(e.actionsCount),1))]),c(d(L),{justify:`end`},{default:v(()=>[e.participationStatus===`cancelled`?t(``,!0):(i(),u(d(j),{key:0,onClick:t=>Xt(Yt(e.id,e.password),`Подсмотреть игру`)},{default:v(()=>[...a[96]||=[n(` QR `,-1)]]),_:1},8,[`onClick`])),e.participationStatus===`cancelled`?t(``,!0):(i(),u(d(j),{key:1,onClick:t=>Nt(e.id,e.password,!0)},{default:v(()=>[...a[97]||=[n(` Подсмотреть игру `,-1)]]),_:1},8,[`onClick`])),c(d(j),{type:`error`,ghost:``,onClick:t=>Kt(e)},{default:v(()=>[...a[98]||=[n(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(i(!0),y(p,null,g(e.applications,t=>(i(),u(d(j),{key:t.name,class:`link-button`,onClick:n=>Ut(e,t)},{default:v(()=>[n(` Выдать: `+r(t.name),1)]),_:2},1032,[`onClick`]))),128))])]))),128))])]),c(d(k),{show:C.value,"onUpdate:show":a[37]||=e=>C.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[31]||=e=>Lt()},{default:v(()=>[...a[99]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[36]||=e=>Rt(),ghost:``},{default:v(()=>[...a[104]||=[n(` Сохранить изменения `,-1)]]),_:1})]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[a[100]||=b(`p`,null,`Название`,-1),c(d(P),{value:w.value.name,"onUpdate:value":a[32]||=e=>w.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a[101]||=b(`p`,{class:`settings-header`},`Формат игры`,-1),c(d(se),{value:w.value.format,"onUpdate:value":a[33]||=e=>w.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),a[102]||=b(`p`,{class:`settings-header`},`Описание`,-1),c(d(P),{value:w.value.description,"onUpdate:value":a[34]||=e=>w.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),a[103]||=b(`p`,{class:`settings-header`},`Место проведения`,-1),c(d(P),{value:w.value.location,"onUpdate:value":a[35]||=e=>w.value.location=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:T.value,"onUpdate:show":a[40]||=e=>T.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[38]||=e=>T.value=!1},{default:v(()=>[...a[105]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[39]||=e=>Gt(),ghost:``},{default:v(()=>[...a[108]||=[n(` Выдать `,-1)]]),_:1})]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[a[106]||=b(`p`,null,`Команда`,-1),b(`h3`,null,r(zt.value.name),1),a[107]||=b(`p`,null,`Улика`,-1),b(`h3`,null,r($.value.name),1),d(Se)($.value)==`image`&&$.value.image?(i(),y(`div`,lt,[b(`img`,{src:d(Ce)($.value.image),class:`give-application-image`},null,8,ut)])):d(Se)($.value)==`audio`&&$.value.image?(i(),y(`audio`,{key:1,src:d(Ce)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,dt)):d(Se)($.value)==`pdf`&&$.value.image?(i(),y(`a`,{key:2,href:d(Ce)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,ft)):t(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:ie.value,"onUpdate:show":a[45]||=e=>ie.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[41]||=e=>ie.value=!1},{default:v(()=>[...a[109]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[44]||=e=>Wt(),disabled:ae.value.length==0},{default:v(()=>[...a[110]||=[n(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[c(d(P),{value:ae.value,"onUpdate:value":a[42]||=e=>ae.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),c(d(P),{value:oe.value,"onUpdate:value":a[43]||=e=>oe.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:E.value,"onUpdate:show":a[49]||=e=>E.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[46]||=e=>E.value=!1},{default:v(()=>[...a[111]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[48]||=e=>qt(),disabled:Bt.value!=Vt.value.name},{default:v(()=>[...a[114]||=[n(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[b(`p`,null,[a[112]||=n(` Введите название команды `,-1),c(d(R),{class:`name-text`,strong:``},{default:v(()=>[n(r(Vt.value.name),1)]),_:1}),a[113]||=n(` чтобы удалить его `,-1)]),c(d(P),{value:Bt.value,"onUpdate:value":a[47]||=e=>Bt.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:D.value,"onUpdate:show":a[53]||=e=>D.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[50]||=e=>D.value=!1},{default:v(()=>[...a[115]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[52]||=e=>Jt(),disabled:A.value!=z.value.name},{default:v(()=>[...a[118]||=[n(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[b(`p`,null,[a[116]||=n(` Введите название игры `,-1),c(d(R),{class:`name-text`,strong:``},{default:v(()=>[n(r(z.value.name),1)]),_:1}),a[117]||=n(` чтобы удалить её `,-1)]),c(d(P),{value:A.value,"onUpdate:value":a[51]||=e=>A.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:N.value,"onUpdate:show":a[57]||=e=>N.value=e},{default:v(()=>[c(d(O),{style:{width:`min(94vw, 700px)`},title:`Выпуск билетов`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[54]||=e=>N.value=!1},{default:v(()=>[...a[119]||=[n(` x `,-1)]]),_:1})]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[c(d(Ae),{value:ue.value,"onUpdate:value":a[55]||=e=>ue.value=e,min:1,max:100},null,8,[`value`]),c(d(j),{type:`primary`,loading:F.value,disabled:F.value,onClick:a[56]||=e=>Qt()},{default:v(()=>[...a[120]||=[n(` Выпустить `,-1)]]),_:1},8,[`loading`,`disabled`]),(i(!0),y(p,null,g(de.value,e=>(i(),y(`div`,{key:e.id,class:`issued-ticket`},[b(`div`,null,`Билет №`+r(e.id),1),b(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`},`Открыть страницу билета`,8,pt),c(d(j),{size:`small`,onClick:t=>Xt(e.url,`Билет №${e.id}`)},{default:v(()=>[...a[121]||=[n(` Показать QR `,-1)]]),_:1},8,[`onClick`])]))),128))]),_:1})]),_:1})]),_:1},8,[`show`]),c(d(k),{show:ce.value,"onUpdate:show":a[59]||=e=>ce.value=e},{default:v(()=>[c(d(O),{style:{width:`600px`},title:le.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[c(d(j),{onClick:a[58]||=e=>ce.value=!1},{default:v(()=>[...a[122]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[...a[123]||=[]]),default:v(()=>[c(d(I),{vertical:``},{default:v(()=>[b(`div`,mt,[c(d(he),{value:M.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),c(d(k),{show:an.value,"onUpdate:show":a[62]||=e=>an.value=e},{default:v(()=>[c(d(O),{style:{width:`min(94vw, 900px)`},title:`Ответы команд`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":v(()=>[c(d(j),{onClick:a[60]||=e=>an.value=!1},{default:v(()=>[...a[124]||=[n(` x `,-1)]]),_:1})]),footer:v(()=>[c(d(L),{justify:`end`},{default:v(()=>[c(d(j),{onClick:a[61]||=e=>bn(),disabled:un.value.length==0},{default:v(()=>[...a[127]||=[n(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[un.value.length==0?(i(),y(`div`,ht,` Вопросы дела не заданы или команды ещё не отвечали. `)):t(``,!0),(i(!0),y(p,null,g(un.value,e=>(i(),y(`div`,{key:e.code,class:`answers-question-block`},[b(`p`,gt,r(e.code)+`: `+r(e.text),1),b(`p`,_t,[a[125]||=n(` Правильный ответ:`,-1),a[126]||=b(`br`,null,null,-1),b(`span`,vt,r(e.answer||`—`),1)]),(i(!0),y(p,null,g(dn.value,t=>(i(),y(`div`,{key:t.team?.id,class:`answers-team-row`},[b(`div`,yt,r(t.team?.name),1),b(`div`,bt,r(mn(t,e.code)||`—`),1),c(d(Ae),{value:fn.value[pn(t.team?.id,e.code)],"onUpdate:value":n=>hn(pn(t.team?.id,e.code),n),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]))),128))]),_:1})]),_:1},8,[`show`]),c(d(k),{show:on.value,"onUpdate:show":a[64]||=e=>on.value=e},{default:v(()=>[c(d(O),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":v(()=>[c(d(j),{onClick:a[63]||=e=>on.value=!1},{default:v(()=>[...a[128]||=[n(` x `,-1)]]),_:1})]),default:v(()=>[c(d(L),{align:`center`,class:`reviews-summary`},{default:v(()=>[c(d(me),{value:cn.value,readonly:``,"allow-half":``},null,8,[`value`]),b(`span`,null,r(ln.value?`${cn.value.toFixed(1)} · ${ln.value}`:`Пока нет отзывов`),1)]),_:1}),sn.value.length==0?(i(),y(`div`,xt,`Отзывов пока нет.`)):t(``,!0),(i(!0),y(p,null,g(sn.value,e=>(i(),y(`div`,{key:e.id,class:`review-row`},[c(d(L),{justify:`space-between`,align:`center`},{default:v(()=>[b(`strong`,null,r(e.teamName),1),c(d(fe),null,{default:v(()=>[n(r(e.status),1)]),_:2},1024)]),_:2},1024),c(d(me),{value:e.rating,readonly:``,size:`small`},null,8,[`value`]),b(`p`,null,r(e.text),1),e.status==`pending`?(i(),u(d(L),{key:0,justify:`end`},{default:v(()=>[c(d(j),{type:`success`,onClick:t=>yn(e,`approved`)},{default:v(()=>[...a[129]||=[n(`Одобрить`,-1)]]),_:1},8,[`onClick`]),c(d(j),{type:`error`,ghost:``,onClick:t=>yn(e,`rejected`)},{default:v(()=>[...a[130]||=[n(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e.status==`approved`?(i(),u(d(L),{key:1,justify:`end`},{default:v(()=>[c(d(j),{type:`error`,ghost:``,onClick:t=>yn(e,`hidden`)},{default:v(()=>[...a[131]||=[n(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):t(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),c(ve,{active:`games`})],64))}}),[[`__scopeId`,`data-v-9ae226f4`]]),Ct=h({__name:`GameView`,setup(e){return(e,t)=>(i(),u(St))}});export{Ct as default}; \ No newline at end of file diff --git a/dist/assets/GameView-DNUqMOHP.js b/dist/assets/GameView-DNUqMOHP.js new file mode 100644 index 0000000..895908b --- /dev/null +++ b/dist/assets/GameView-DNUqMOHP.js @@ -0,0 +1,7 @@ +import{$ as e,C as t,D as n,Ft as r,G as i,H as a,L as o,M as s,Nt as c,O as l,Pt as ee,S as u,U as te,_t as d,b as f,ft as p,h as m,ht as h,k as g,l as ne,nt as _,q as v,r as re,tt as y,u as ie,w as b,x}from"./client-BBfBDiVG.js";import{G as S,H as C,K as w,N as ae,n as T,o as oe,r as se,t as E}from"./light-DqAV2QCd.js";import{d as ce,t as D}from"./Card-Cze8lALH.js";import{t as O}from"./Modal-DbiX6wvm.js";import{t as le}from"./use-merged-state-DRpgLPWV.js";import{n as k,t as A}from"./Button-DAM1cqtA.js";import{t as ue}from"./Select-B-sTbBIa.js";import{n as de,r as j}from"./use-form-item-ajbhslgm.js";import{a as M,r as N}from"./resolve-slot-C_Onglzh.js";import{r as fe}from"./Suffix-DM_ippuo.js";import{t as P}from"./Add-DRm_H-MT.js";import{t as F}from"./Input-2L35DdEz.js";import{t as pe}from"./Remove-CjPWnsYa.js";import{t as I}from"./Tag-YulbLI_X.js";import{t as me}from"./use-message-DyQW5yAL.js";import{t as L}from"./Space-_Xn7R9gX.js";import{t as R}from"./Flex-BIB1uWhx.js";import{t as he}from"./Rate-CNH6p4IB.js";import{t as ge}from"./QrCode-BOyg-J5s.js";import{t as z}from"./text-ERnkmyYu.js";import{S as _e,U as B,X as V,rt as ve,tt as ye,w as be}from"./index-DnUl8nHF.js";import{n as xe,t as H}from"./es-D90fN3qV.js";import{t as Se}from"./HeaderMenu-CqYU4ywX.js";import{t as U}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as Ce}from"./Settings-DDsOcEqz.js";import{t as we}from"./binary_client-CGYCXafS.js";import{n as Te,r as Ee}from"./application-DO6jjJW-.js";import{t as De}from"./useSimplePolling-CSXqe4IY.js";import{n as Oe,t as ke}from"./datetime-BJNH0M1T.js";function Ae(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var je=T({name:`InputNumber`,common:E,peers:{Button:_e,Input:be},self:Ae}),Me=S([w(`input-number-suffix`,` + display: inline-block; + margin-right: 10px; + `),w(`input-number-prefix`,` + display: inline-block; + margin-left: 10px; + `)]);function Ne(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function Pe(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function W(e){return e==null?!0:!Number.isNaN(e)}function Fe(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function G(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var Ie=800,Le=100,Re=g({name:`InputNumber`,props:Object.assign(Object.assign({},se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(t){let{mergedBorderedRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=ae(t),s=se(`InputNumber`,`-input-number`,Me,je,t,r),{localeRef:c}=fe(`InputNumber`),l=de(t,{mergedSize:e=>{let{size:n}=t;if(n)return n;let{mergedSize:r}=e||{};return r?.value?r.value:a?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:ee,mergedDisabledRef:u,mergedStatusRef:te}=l,d=p(null),m=p(null),g=p(null),ne=p(t.defaultValue),_=le(h(t,`value`),ne),v=p(``),re=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},y=e=>{let n=[t.min,t.max,t.step,e].map(e=>e===void 0?0:re(e));return Math.max(...n)},ie=V(()=>{let{placeholder:e}=t;return e===void 0?c.value.placeholder:e}),b=V(()=>{let e=G(t.step);return e===null||e===0?1:Math.abs(e)}),x=V(()=>{let e=G(t.min);return e===null?null:e}),S=V(()=>{let e=G(t.max);return e===null?null:e}),w=()=>{let{value:e}=_;if(W(e)){let{format:n,precision:r}=t;n?v.value=n(e):e===null||r===void 0||re(e)>r?v.value=Fe(e,void 0):v.value=Fe(e,r)}else v.value=String(e)};w();let T=e=>{let{value:n}=_;if(e===n){w();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=t,{nTriggerFormInput:o,nTriggerFormChange:s}=l;a&&j(a,e),i&&j(i,e),r&&j(r,e),ne.value=e,o(),s()},E=({offset:e,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=v;if(i&&Pe(a))return!1;let o=(t.parse||Ne)(a);if(o===null)return n&&T(null),null;if(W(o)){let a=re(o),{precision:s}=t;if(s!==void 0&&se){if(!n||i)return!1;c=e}if(r!==null&&cE({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),O=V(()=>{let{value:e}=_;if(t.validator&&e===null)return!1;let{value:n}=b;return E({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),k=V(()=>{let{value:e}=_;if(t.validator&&e===null)return!1;let{value:n}=b;return E({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(e){let{onFocus:n}=t,{nTriggerFormFocus:r}=l;n&&j(n,e),r()}function ue(e){if(e.target===d.value?.wrapperElRef)return;let n=E({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=d.value?.inputElRef;e&&(e.value=String(n||``)),_.value===n&&w()}else w();let{onBlur:r}=t,{nTriggerFormBlur:i}=l;r&&j(r,e),i(),o(()=>{w()})}function M(e){let{onClear:n}=t;n&&j(n,e)}function N(){let{value:e}=k;if(!e){B();return}let{value:n}=_;if(n===null)t.validator||T(I());else{let{value:e}=b;E({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function P(){let{value:e}=O;if(!e){z();return}let{value:n}=_;if(n===null)t.validator||T(I());else{let{value:e}=b;E({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let F=A,pe=ue;function I(){if(t.validator)return null;let{value:e}=x,{value:n}=S;return e===null?n===null?0:Math.min(0,n):Math.max(0,e)}function me(e){M(e),T(null)}function L(e){var t;g.value?.$el.contains(e.target)&&e.preventDefault(),m.value?.$el.contains(e.target)&&e.preventDefault(),(t=d.value)==null||t.activate()}let R=null,he=null,ge=null;function z(){ge&&=(window.clearTimeout(ge),null),R&&=(window.clearInterval(R),null)}let _e=null;function B(){_e&&=(window.clearTimeout(_e),null),he&&=(window.clearInterval(he),null)}function ve(){z(),ge=window.setTimeout(()=>{R=window.setInterval(()=>{P()},Le)},Ie),ce(`mouseup`,document,z,{once:!0})}function ye(){B(),_e=window.setTimeout(()=>{he=window.setInterval(()=>{N()},Le)},Ie),ce(`mouseup`,document,B,{once:!0})}let be=()=>{he||N()},xe=()=>{R||P()};function H(e){var n;if(e.key===`Enter`){if(e.target===d.value?.wrapperElRef)return;E({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=d.value)==null||n.deactivate())}else if(e.key===`ArrowUp`){if(!k.value||t.keyboard.ArrowUp===!1)return;e.preventDefault(),E({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&N()}else if(e.key===`ArrowDown`){if(!O.value||t.keyboard.ArrowDown===!1)return;e.preventDefault(),E({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&P()}}function Se(e){v.value=e,t.updateValueOnInput&&!t.format&&!t.parse&&t.precision===void 0&&E({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}e(_,()=>{w()});let U={focus:()=>d.value?.focus(),blur:()=>d.value?.blur(),select:()=>d.value?.select()},Ce=oe(`InputNumber`,i,r);return Object.assign(Object.assign({},U),{rtlEnabled:Ce,inputInstRef:d,minusButtonInstRef:m,addButtonInstRef:g,mergedClsPrefix:r,mergedBordered:n,uncontrolledValue:ne,mergedValue:_,mergedPlaceholder:ie,displayedValueInvalid:D,mergedSize:ee,mergedDisabled:u,displayedValue:v,addable:k,minusable:O,mergedStatus:te,handleFocus:F,handleBlur:pe,handleClear:me,handleMouseDown:L,handleAddClick:be,handleMinusClick:xe,handleAddMousedown:ye,handleMinusMousedown:ve,handleKeyDown:H,handleUpdateDisplayedValue:Se,mergedTheme:s,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:f(()=>{let{self:{iconColorDisabled:e}}=s.value,[t,n,r,i]=C(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>s(k,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>N(t[`minus-icon`],()=>[s(B,{clsPrefix:e},{default:()=>s(pe,null)})])}),r=()=>s(k,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>N(t[`add-icon`],()=>[s(B,{clsPrefix:e},{default:()=>s(P,null)})])});return s(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},s(F,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[n(),M(t.prefix,t=>t?s(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[M(t.suffix,t=>t?s(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Be=g({name:`Flag`,render:function(e,t){return i(),b(`svg`,ze,t[0]||=[x(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,fill:`currentColor`},null,-1)])}}),Ve={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},He=g({name:`Pause`,render:function(e,t){return i(),b(`svg`,Ve,t[0]||=[x(`path`,{d:`M12 8v16H8V8h4m0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1),x(`path`,{d:`M24 8v16h-4V8h4m0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1)])}}),K={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ue=g({name:`Play`,render:function(e,t){return i(),b(`svg`,K,t[0]||=[x(`path`,{d:`M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28zM8 6.69V25.31L24.925 16z`,fill:`currentColor`},null,-1)])}}),q={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},We=g({name:`Reset`,render:function(e,t){return i(),b(`svg`,q,t[0]||=[x(`path`,{d:`M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10z`,fill:`currentColor`},null,-1)])}}),J={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ge=g({name:`Trophy`,render:function(e,t){return i(),b(`svg`,J,t[0]||=[x(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm14 0a6 6 0 0 1-6.186 5.997A6.2 6.2 0 0 1 10 13.707V6h12zm4-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),Y={key:0,class:`timer-preview`},X=[`src`],Ke=[`src`],qe={key:3,class:`preview-message`},Je={key:4,class:`preview-message`},Ye={key:5,class:`preview-message`},Xe={key:6,class:`preview-results`},Ze=[`src`],Qe=U(g({__name:`ScreenPreview`,props:{state:{},questions:{},teams:{}},setup(n){let o=n,s=p(Date.now()),c=p(0),l=p(Date.now()),u=p(),d=null,h=f(()=>{let e=o.state.backgroundImage||o.state.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}}),g=f(()=>o.state.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,c.value-(s.value-l.value)/1e3):c.value),ne=f(()=>{let e=Math.floor(g.value/60),t=Math.floor(g.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),_=f(()=>Ee(o.state.introAudio)),re=f(()=>Ee(o.state.conclusionVideo));return e(()=>[o.state.timerRemainingSeconds,o.state.timerState,o.state.stateVersion],()=>{let e=Math.max(0,Number(o.state.timerRemainingSeconds||0));if(o.state.timerState===`SCREEN_TIMER_STATE_RUNNING`&&u.value===o.state.timerState){let t=Math.max(0,c.value-(Date.now()-l.value)/1e3);if(Math.abs(e-t)<=.5)return}c.value=e,l.value=Date.now(),u.value=o.state.timerState},{immediate:!0}),a(()=>{d=window.setInterval(()=>{s.value=Date.now()},250)}),te(()=>{d!=null&&window.clearInterval(d)}),(e,a)=>(i(),b(`div`,{class:`screen-preview`,style:ee(h.value)},[n.state.mode===`SCREEN_MODE_TIMER`?(i(),b(`div`,Y,[x(`h2`,null,r(n.state.timerLabel||`Перерыв`),1),x(`strong`,null,r(ne.value),1)])):n.state.mode===`SCREEN_MODE_INTRO`&&_.value?(i(),b(`audio`,{key:1,src:_.value,controls:``},null,8,X)):n.state.mode===`SCREEN_MODE_CONCLUSION`&&re.value?(i(),b(`video`,{key:2,src:re.value,autoplay:``,class:`preview-video`,loop:``,muted:``,playsinline:``},null,8,Ke)):n.state.mode===`SCREEN_MODE_CONCLUSION`?(i(),b(`div`,qe,` Видео закрывашки не задано `)):n.state.mode===`SCREEN_MODE_INTRO_DONE`?(i(),b(`div`,Je,`Успехов`)):n.state.mode===`SCREEN_MODE_CONCLUSION_DONE`?(i(),b(`div`,Ye,` Спасибо за игру! `)):n.state.mode===`SCREEN_MODE_RESULTS`?(i(),b(`div`,Xe,[a[4]||=x(`h2`,null,`Результаты`,-1),x(`table`,null,[x(`thead`,null,[x(`tr`,null,[a[0]||=x(`th`,null,`Место`,-1),a[1]||=x(`th`,null,`Команда`,-1),(i(!0),b(m,null,v(n.questions,e=>(i(),b(`th`,{key:e.code},r(e.code),1))),128)),a[2]||=x(`th`,null,`Сумма`,-1),a[3]||=x(`th`,null,`Ходы`,-1)])]),x(`tbody`,null,[(i(!0),b(m,null,v(n.teams,e=>(i(),b(`tr`,{key:e.team?.id},[x(`td`,null,r(e.place),1),x(`td`,null,r(e.team?.name),1),(i(!0),b(m,null,v(n.questions,t=>(i(),b(`td`,{key:t.code},r(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),x(`td`,null,r(e.totalScore),1),x(`td`,null,r(e.actionsCount),1)]))),128))])])])):n.state.coverImage?(i(),b(`img`,{key:7,src:n.state.coverImage,alt:`Обложка дела`,class:`preview-cover`},null,8,Ze)):t(``,!0)],4))}}),[[`__scopeId`,`data-v-429be1f4`]]),$e={class:`center-block-custom`},et={class:`width1200`},tt={class:`settings-block`},nt={key:0,class:`screens-block`},rt={class:`screen-status`},it={key:0,class:`screen-error`},at={class:`map-preview-layout`},ot={class:`map-block`},st=[`onPointerdown`],ct=[`onPointerdown`],lt={key:2},ut=[`onClick`],dt={class:`screen-preview-panel`},ft={key:1,class:`screen-preview-placeholder`},pt={class:`team-content-block`},mt={class:`title-block`},ht={class:`team-name-block`},gt={key:0},_t={key:1},vt={key:0},yt={key:0},bt={key:1},xt={key:2},St={key:3},Ct={key:4},wt={key:0,class:`give-application-image-block`},Tt=[`src`],Et=[`src`],Dt=[`href`],Ot=[`href`],kt={class:`qr-block`},At={key:0,class:`answers-empty`},jt={class:`answers-question-title`},Mt={class:`answers-question-answer`},Nt={class:`correct-answer`},Pt={class:`answers-team-name`},Ft={class:`answers-team-answer`},It={key:0,class:`answers-empty`},Lt=U(g({__name:`GamePage`,setup(e){let a=xe(),o=we(),s=p(!1),te=ie(),h=ne().params.id,g=me(),S=p(!1),C=p({name:``,description:``,format:`online`,location:``}),w=p(!1),ae=p(!1),T=p(!1),oe=p(!1),se=p(``),E=p(``),ce=p(``),le=p(!1),k=p(``),de=p(``),j=p(!1),M=p(1),N=p([]),fe=p(!1),P=p({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),pe=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],_e=f(()=>(P.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),B=f(()=>new Map((P.value.teams||[]).filter(e=>e.applications?.length).map(e=>[e.id,e]))),V=p([]),be=p([]),U=p([]),Ae=p([]),je=p(!1),Me=p(100),Ne=p(0),Pe=p(10),W=p(`Перерыв`),Fe=p(!1),G=f(()=>{let e=V.value.map(e=>e.mode).filter(Boolean);if(!(!e.length||e.some(t=>t!==e[0])))return e[0]}),Ie=f(()=>V.value[0]),Le=f(()=>V.value.find(e=>e.status===`connected`)||V.value[0]),ze=f(()=>{switch(Ie.value?.timerState){case`SCREEN_TIMER_STATE_RUNNING`:return`Идёт`;case`SCREEN_TIMER_STATE_PAUSED`:return`Пауза`;case`SCREEN_TIMER_STATE_FINISHED`:return`Завершён`;default:return`Остановлен`}}),Ve=f(()=>{let e=Math.max(0,Ie.value?.timerRemainingSeconds||0);return`${String(Math.floor(e/60)).padStart(2,`0`)}:${String(e%60).padStart(2,`0`)}`}),K=p(1),q=p({x:0,y:0}),J,Y;async function X(e){let t=await a.GetGame({id:e});if(t.error!=``){g.error(t.error);return}P.value=t.game,P.value.teams=P.value.teams?.sort((e,t)=>{let n=0;(e.applications?.length||0)>0&&(n=1);let r=0;if((t.applications?.length||0)>0&&(r=1),n>r)return-1;if(na?1:iURL.revokeObjectURL(n),1e3)}catch(e){g.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{s.value=!1}}}function Yt(){te.push(`/games/`+h+`/results`)}function Xt(){C.value={name:P.value.name||``,description:P.value.description||``,format:P.value.format||`online`,location:P.value.location||``},S.value=!0}function Zt(){S.value=!1}async function Qt(){let e=await a.UpdateGame({id:P.value.id,name:C.value.name,description:C.value.description,format:C.value.format,location:C.value.location.trim(),startAt:P.value.startAt,scenarioId:P.value.scenario?.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id),S.value=!1}let $t=p({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),en=p(``),tn=p({id:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),$=p({name:``,image:``,file_type:``}),nn=window.location.href;function rn(e,t){$t.value=e,$.value=t,w.value=!0}async function an(){let e=await a.AddTeam({gameId:P.value.id,name:se.value,captainEmail:E.value.trim()});if(e.error!=``){g.error(e.error);return}await X(P.value.id),ae.value=!1,E.value=``}async function on(){let e=await a.GiveTeamApplications({id:$t.value.id,name:$.value.name});if(e.error!=``){g.error(e.error);return}await X(P.value.id),w.value=!1}async function sn(e){tn.value=e,T.value=!0}async function cn(){let e=await a.DeleteTeam({id:tn.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id),T.value=!1}async function ln(){let e=await a.DeleteGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}g.success(`Игра удалена`),te.push(`/games`)}function un(e,t){return re()+`/team-story/`+e+`?password=`+t}async function dn(e,t){k.value=e,de.value=t,le.value=!0}function fn(){M.value=1,N.value=[],j.value=!0}async function pn(){if(!(fe.value||!P.value.id)){fe.value=!0;try{let e=await a.IssueGameTickets({gameId:P.value.id,count:M.value});if(e.error!=``){g.error(e.error);return}N.value=e.tickets||[],g.success(`Выпущено билетов: ${N.value.length}`)}catch(e){g.error(e instanceof Error?e.message:`Не удалось выпустить билеты`)}finally{fe.value=!1}}}De(()=>{X(Number(h)),Ke(),qe()},2e3);async function mn(){let e=await a.ResetGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id)}async function hn(){let e=await a.StartGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id)}async function gn(){let e=await a.PauseGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id)}async function _n(){let e=await a.PlayGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id)}async function vn(){let e=await a.FinishGame({id:P.value.id});if(e.error!=``){g.error(e.error);return}await X(P.value.id)}let yn=p(!1),bn=p(!1),xn=p([]),Sn=p(0),Cn=p(0),wn=p([]),Tn=p([]),En=p({});function Dn(e,t){return(e??``)+`:`+(t??``)}function On(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function kn(e,t){En.value[e]=t===null?void 0:t}async function An(){let e=await a.GetGameAnswers({gameId:Number(h)});if(e.error!=``){g.error(e.error);return}wn.value=e.questions||[],Tn.value=e.teams||[];let t={};for(let e of Tn.value)for(let n of e.answers||[])t[Dn(e.team?.id,n.questionCode)]=n.score;En.value=t}async function jn(){yn.value=!0,await An()}async function Mn(){bn.value=!0;let e=await a.GetGameReviewsForModeration({gameId:Number(h)});if(e.error!=``){g.error(e.error);return}xn.value=e.reviews||[],Sn.value=e.averageRating||0,Cn.value=e.reviewsCount||0}async function Nn(e,t){let n=await a.ModerateGameReview({id:e.id,status:t});if(n.error!=``){g.error(n.error);return}await Mn()}async function Pn(){for(let e of wn.value)for(let t of Tn.value){let n=En.value[Dn(t.team?.id,e.code)],r=await a.SetTeamAnswerScore({id:t.team?.id,questionCode:e.code,score:n??void 0});if(r.error!=``){g.error(r.error);return}}g.success(`Баллы сохранены`),await An()}function Fn(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function In(e,t){if(e==``)return`Игра ещё не началась`;let n=Oe(e),r=Fn();t!=``&&(r=Oe(t));let i=r.getTime()-n.getTime();if(i<0)return`Игра ещё не началась`;let a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),l=Math.floor(c/30),ee=Math.floor(c/365);return ee>0?`${ee}г ${c%365}д`:l>0?`${l}мес ${c%30}д`:c>0?`${c}д ${s%24}ч`:s>0?`${s}ч ${o%60}м`:o>0?`${o}м ${a%60}с`:`${a}с`}let Ln=p(``);return De(()=>{Ln.value=In(P.value.startedAt||``,P.value.endedAt||``)},1e3),(e,a)=>(i(),b(m,null,[x(`div`,$e,[x(`div`,et,[x(`div`,tt,[l(d(R),{justify:`space-between`},{default:y(()=>[l(d(L),null,{default:y(()=>[l(d(I),{bordered:!1,type:`info`},{default:y(()=>[n(` Участвуют команд: `+r(_e.value),1)]),_:1}),l(d(I),{type:`info`},{default:y(()=>[n(r(Ln.value),1)]),_:1}),d(ke)(P.value.startAt)?(i(),u(d(I),{key:0,type:`info`},{default:y(()=>[n(` Начало: `+r(d(ke)(P.value.startAt)),1)]),_:1})):t(``,!0)]),_:1}),l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{quaternary:``,onClick:a[0]||=e=>dn(d(nn),`Админка`)},{default:y(()=>[...a[72]||=[n(` QR `,-1)]]),_:1}),l(d(A),{quaternary:``,onClick:a[1]||=e=>fn()},{default:y(()=>[...a[73]||=[n(` Выпустить билеты `,-1)]]),_:1}),l(d(A),{quaternary:``,onClick:a[2]||=e=>jn()},{default:y(()=>[...a[74]||=[n(` Ответы команд `,-1)]]),_:1}),P.value.status==`finish`?(i(),u(d(A),{key:0,quaternary:``,onClick:a[3]||=e=>Yt()},{default:y(()=>[l(d(H),{class:`settings-icon`},{default:y(()=>[l(d(Ge))]),_:1}),a[75]||=n(` Итоги `,-1)]),_:1})):t(``,!0),_e.value?(i(),u(d(A),{key:1,quaternary:``,loading:s.value,disabled:s.value,onClick:a[4]||=e=>Jt()},{default:y(()=>[...a[76]||=[n(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):t(``,!0),l(d(A),{quaternary:``,onClick:a[5]||=e=>Xt()},{default:y(()=>[l(d(H),{class:`settings-icon`},{default:y(()=>[l(d(Ce))]),_:1}),a[77]||=n(` Настройки `,-1)]),_:1}),(P.value.teams?.length||0)==0?(i(),u(d(A),{key:2,type:`error`,quaternary:``,onClick:a[6]||=e=>oe.value=!0},{default:y(()=>[...a[78]||=[n(` Удалить игру `,-1)]]),_:1})):t(``,!0),l(d(L),null,{default:y(()=>[P.value.status==`draft`?t(``,!0):(i(),u(d(A),{key:0,type:`info`,dashed:``,onClick:a[7]||=e=>mn()},{default:y(()=>[l(d(H),null,{default:y(()=>[l(d(We))]),_:1})]),_:1})),P.value.status==`draft`?(i(),u(d(A),{key:1,type:`info`,dashed:``,onClick:a[8]||=e=>hn()},{default:y(()=>[l(d(H),null,{default:y(()=>[l(d(Ue))]),_:1})]),_:1})):t(``,!0),P.value.status==`pause`?(i(),u(d(A),{key:2,type:`info`,dashed:``,onClick:a[9]||=e=>_n()},{default:y(()=>[l(d(H),null,{default:y(()=>[l(d(Ue))]),_:1})]),_:1})):t(``,!0),P.value.status==`run`?(i(),u(d(A),{key:3,type:`info`,dashed:``,onClick:a[10]||=e=>gn()},{default:y(()=>[l(d(H),null,{default:y(()=>[l(d(He))]),_:1})]),_:1})):t(``,!0),P.value.status==`finish`?t(``,!0):(i(),u(d(A),{key:4,type:`info`,dashed:``,onClick:a[11]||=e=>vn()},{default:y(()=>[l(d(H),null,{default:y(()=>[l(d(Be))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),V.value.length>0?(i(),b(`div`,nt,[a[103]||=x(`p`,{class:`screens-title`},`Экраны`,-1),(i(!0),b(m,null,v(V.value,e=>(i(),b(`div`,{key:e.id,class:`screen-row`},[x(`div`,null,[x(`div`,null,`Экран `+r(e.id),1),x(`div`,rt,r(e.status),1),e.error?(i(),b(`div`,it,r(e.error),1)):t(``,!0)]),l(d(R),{justify:`end`},{default:y(()=>[e.soundEnabled?(i(),u(d(I),{key:0,type:`success`},{default:y(()=>[...a[79]||=[n(`Со звуком`,-1)]]),_:1})):(i(),u(d(A),{key:1,size:`small`,onClick:t=>Wt(e)},{default:y(()=>[...a[80]||=[n(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),l(d(A),{size:`small`,type:`error`,ghost:``,onClick:t=>Gt(e)},{default:y(()=>[...a[81]||=[n(`Отвязать`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128)),l(d(L),{class:`screen-mode-controls`},{default:y(()=>[l(d(A),{size:`small`,type:G.value===`SCREEN_MODE_COVER`?`primary`:`default`,onClick:a[12]||=e=>Z(`SCREEN_MODE_COVER`)},{default:y(()=>[...a[82]||=[n(`Обложка`,-1)]]),_:1},8,[`type`]),l(d(A),{size:`small`,type:G.value===`SCREEN_MODE_INTRO`?`primary`:`default`,onClick:a[13]||=e=>Z(`SCREEN_MODE_INTRO`)},{default:y(()=>[...a[83]||=[n(`Введение`,-1)]]),_:1},8,[`type`]),l(d(A),{size:`small`,type:G.value===`SCREEN_MODE_INTRO_DONE`?`primary`:`default`,onClick:a[14]||=e=>Z(`SCREEN_MODE_INTRO_DONE`)},{default:y(()=>[...a[84]||=[n(`Успехов`,-1)]]),_:1},8,[`type`]),l(d(A),{size:`small`,type:G.value===`SCREEN_MODE_CONCLUSION`?`primary`:`default`,onClick:a[15]||=e=>Z(`SCREEN_MODE_CONCLUSION`)},{default:y(()=>[...a[85]||=[n(`Закрывашка`,-1)]]),_:1},8,[`type`]),l(d(A),{size:`small`,type:G.value===`SCREEN_MODE_CONCLUSION_DONE`?`primary`:`default`,onClick:a[16]||=e=>Z(`SCREEN_MODE_CONCLUSION_DONE`)},{default:y(()=>[...a[86]||=[n(`Спасибо за игру!`,-1)]]),_:1},8,[`type`]),P.value.status===`finish`?(i(),u(d(A),{key:0,size:`small`,type:G.value===`SCREEN_MODE_RESULTS`?`primary`:`default`,onClick:a[17]||=e=>Z(`SCREEN_MODE_RESULTS`)},{default:y(()=>[...a[87]||=[n(`Результаты`,-1)]]),_:1},8,[`type`])):t(``,!0),l(d(A),{type:G.value===`SCREEN_MODE_TIMER`?`primary`:`default`,onClick:a[18]||=e=>Z(`SCREEN_MODE_TIMER`)},{default:y(()=>[...a[88]||=[n(`Таймер`,-1)]]),_:1},8,[`type`])]),_:1}),l(d(L),{class:`screen-mode-controls`,align:`center`},{default:y(()=>[l(d(Re),{value:Pe.value,"onUpdate:value":a[19]||=e=>Pe.value=e,min:1,max:1440,step:1,size:`small`,placeholder:`Минуты`},null,8,[`value`]),l(d(F),{value:W.value,"onUpdate:value":a[20]||=e=>W.value=e,size:`small`,placeholder:`Надпись таймера`},null,8,[`value`]),l(d(A),{size:`small`,onClick:Kt},{default:y(()=>[...a[89]||=[n(`Настроить таймер`,-1)]]),_:1}),l(d(I),{type:`info`},{default:y(()=>[n(r(ze.value)+` · `+r(Ve.value),1)]),_:1})]),_:1}),l(d(L),{class:`screen-mode-controls`},{default:y(()=>[l(d(A),{size:`small`,onClick:a[21]||=e=>Q(`SCREEN_COMMAND_TIMER_START`)},{default:y(()=>[...a[90]||=[n(`Старт таймера`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[22]||=e=>Q(`SCREEN_COMMAND_TIMER_PAUSE`)},{default:y(()=>[...a[91]||=[n(`Пауза таймера`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[23]||=e=>Q(`SCREEN_COMMAND_TIMER_RESUME`)},{default:y(()=>[...a[92]||=[n(`Продолжить таймер`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[24]||=e=>Q(`SCREEN_COMMAND_TIMER_RESET`)},{default:y(()=>[...a[93]||=[n(`Сбросить таймер`,-1)]]),_:1})]),_:1}),l(d(L),{class:`screen-mode-controls`},{default:y(()=>[l(d(A),{size:`small`,onClick:a[25]||=e=>Q(`SCREEN_COMMAND_PLAY`)},{default:y(()=>[...a[94]||=[n(`Запуск`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[26]||=e=>Q(`SCREEN_COMMAND_PAUSE`)},{default:y(()=>[...a[95]||=[n(`Пауза`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[27]||=e=>Q(`SCREEN_COMMAND_RESUME`)},{default:y(()=>[...a[96]||=[n(`Продолжить`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[28]||=e=>Q(`SCREEN_COMMAND_STOP`)},{default:y(()=>[...a[97]||=[n(`Стоп`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:a[29]||=e=>Q(`SCREEN_COMMAND_REPLAY`)},{default:y(()=>[...a[98]||=[n(`Повтор`,-1)]]),_:1})]),_:1}),l(d(L),{class:`screen-mode-controls`,align:`center`},{default:y(()=>[l(d(z),null,{default:y(()=>[...a[99]||=[n(`Громкость`,-1)]]),_:1}),l(d(Re),{value:Me.value,"onUpdate:value":a[30]||=e=>Me.value=e,min:0,max:100,step:5,size:`small`},null,8,[`value`]),l(d(A),{size:`small`,onClick:a[31]||=e=>Q(`SCREEN_COMMAND_VOLUME`)},{default:y(()=>[...a[100]||=[n(`Применить`,-1)]]),_:1}),l(d(z),null,{default:y(()=>[...a[101]||=[n(`Позиция, сек.`,-1)]]),_:1}),l(d(Re),{value:Ne.value,"onUpdate:value":a[32]||=e=>Ne.value=e,min:0,step:5,size:`small`},null,8,[`value`]),l(d(A),{size:`small`,onClick:a[33]||=e=>Q(`SCREEN_COMMAND_SEEK`)},{default:y(()=>[...a[102]||=[n(`Перемотать`,-1)]]),_:1})]),_:1})])):t(``,!0),x(`div`,at,[x(`div`,ot,[l(d(R),{align:`center`,justify:`space-between`},{default:y(()=>[a[107]||=x(`p`,{class:`screens-title`},`Карта помещения`,-1),l(d(L),null,{default:y(()=>[l(d(A),{size:`small`,onClick:a[34]||=e=>Rt(-.1)},{default:y(()=>[...a[104]||=[n(`−`,-1)]]),_:1}),l(d(z),null,{default:y(()=>[n(r(Math.round(K.value*100))+`%`,1)]),_:1}),l(d(A),{size:`small`,onClick:a[35]||=e=>Rt(.1)},{default:y(()=>[...a[105]||=[n(`+`,-1)]]),_:1}),l(d(A),{size:`small`,onClick:zt},{default:y(()=>[...a[106]||=[n(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),x(`div`,{class:`map-field`,onPointerdown:Bt,onWheel:Ut},[x(`div`,{class:`map-canvas`,style:ee({transform:`translate(${q.value.x}px, ${q.value.y}px) scale(${K.value})`})},[(i(!0),b(m,null,v(Ae.value,e=>_((i(),b(`div`,{key:`${e.kind}-${e.itemId}`,class:c([`map-item`,[e.kind===`screen`?`map-screen`:e.kind===`organizer_desk`?`map-organizer-desk`:`map-team`,{"map-team-needs-applications":e.kind===`team`&&B.value.has(e.itemId)}]]),style:ee({left:`${e.x||0}px`,top:`${e.y||0}px`}),onPointerdown:ve(t=>e.kind!==`team`&&Ye(e,t),[`stop`])},[e.kind===`team`?(i(),b(`div`,{key:0,class:`map-team-handle`,onPointerdown:ve(t=>Ye(e,t),[`stop`])},null,40,ct)):t(``,!0),x(`span`,null,r(e.label),1),e.kind===`team`&&B.value.has(e.itemId)?(i(),u(d(L),{key:1,class:`map-team-applications`,vertical:``},{default:y(()=>[(i(!0),b(m,null,v(B.value.get(e.itemId)?.applications,t=>(i(),u(d(A),{key:t.name,size:`small`,onClick:n=>rn(B.value.get(e.itemId),t)},{default:y(()=>[n(` Выдать: `+r(t.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):t(``,!0),e.kind===`screen`?(i(),b(`small`,lt,r(e.status)+r(e.soundEnabled?` · звук`:``),1)):t(``,!0),x(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:a[36]||=ve(()=>{},[`stop`]),onClick:ve(t=>Lt(e),[`stop`])},` × `,40,ut)],46,st)),[[ye,!e.hidden]])),128))],4)],32),Ae.value.some(e=>e.hidden)?(i(),u(d(L),{key:0,class:`map-hidden-items`},{default:y(()=>[(i(!0),b(m,null,v(Ae.value.filter(e=>e.hidden),e=>(i(),u(d(A),{key:`hidden-${e.kind}-${e.itemId}`,size:`small`,onClick:t=>Lt(e)},{default:y(()=>[n(` Добавить `+r(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):t(``,!0)]),x(`aside`,dt,[a[108]||=x(`p`,{class:`screens-title`},`Превью экрана`,-1),Le.value?.status===`connected`?(i(),u(Qe,{key:0,state:Le.value,questions:be.value,teams:U.value},null,8,[`state`,`questions`,`teams`])):(i(),b(`div`,ft,`Экран не подключён`))])]),x(`div`,{class:`team-block team-block-hover`,onClick:a[37]||=e=>ae.value=!0},[...a[109]||=[x(`p`,{class:`place-image-plus`},`+`,-1)]]),(i(!0),b(m,null,v(P.value.teams,e=>(i(),b(`div`,{key:e.id,class:`team-block`},[x(`div`,pt,[l(d(R),{justify:`space-between`},{default:y(()=>[x(`div`,mt,[x(`span`,ht,[n(r(e.name)+` `,1),e.captainEmail?(i(),b(`small`,gt,` — `+r(e.captainEmail),1)):t(``,!0),e.participantsCount?(i(),b(`small`,_t,` · Участников: `+r(e.participantsCount),1)):t(``,!0)]),e.captainEmail||e.participationStatus!==`pending`?(i(),b(`div`,vt,[n(r(pe.find(t=>t.value===e.participationStatus)?.label),1),e.participationSource===`automatic`?(i(),b(`span`,yt,` · автоматически`)):t(``,!0)])):t(``,!0),e.captainEmail?e.participationEmailError?(i(),b(`div`,xt,` Ошибка отправки: `+r(e.participationEmailError),1)):e.participationEmailSent?(i(),b(`div`,St,`Письмо отправлено`)):t(``,!0):(i(),b(`div`,bt,`Почта капитана не указана`)),e.participationStatus===`cancelled`?t(``,!0):(i(),b(`div`,Ct,` Поездки: `+r(e.actionsCount),1))]),l(d(R),{justify:`end`},{default:y(()=>[e.participationStatus===`cancelled`?t(``,!0):(i(),u(d(A),{key:0,onClick:t=>dn(un(e.id,e.password),`Подсмотреть игру`)},{default:y(()=>[...a[110]||=[n(` QR `,-1)]]),_:1},8,[`onClick`])),e.participationStatus===`cancelled`?t(``,!0):(i(),u(d(A),{key:1,onClick:t=>qt(e.id,e.password,!0)},{default:y(()=>[...a[111]||=[n(` Подсмотреть игру `,-1)]]),_:1},8,[`onClick`])),l(d(A),{type:`error`,ghost:``,onClick:t=>sn(e)},{default:y(()=>[...a[112]||=[n(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(i(!0),b(m,null,v(e.applications,t=>(i(),u(d(A),{key:t.name,class:`link-button`,onClick:n=>rn(e,t)},{default:y(()=>[n(` Выдать: `+r(t.name),1)]),_:2},1032,[`onClick`]))),128))])]))),128))])]),l(d(O),{show:S.value,"onUpdate:show":a[44]||=e=>S.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[38]||=e=>Zt()},{default:y(()=>[...a[113]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[43]||=e=>Qt(),ghost:``},{default:y(()=>[...a[118]||=[n(` Сохранить изменения `,-1)]]),_:1})]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[a[114]||=x(`p`,null,`Название`,-1),l(d(F),{value:C.value.name,"onUpdate:value":a[39]||=e=>C.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a[115]||=x(`p`,{class:`settings-header`},`Формат игры`,-1),l(d(ue),{value:C.value.format,"onUpdate:value":a[40]||=e=>C.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),a[116]||=x(`p`,{class:`settings-header`},`Описание`,-1),l(d(F),{value:C.value.description,"onUpdate:value":a[41]||=e=>C.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),a[117]||=x(`p`,{class:`settings-header`},`Место проведения`,-1),l(d(F),{value:C.value.location,"onUpdate:value":a[42]||=e=>C.value.location=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:w.value,"onUpdate:show":a[47]||=e=>w.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[45]||=e=>w.value=!1},{default:y(()=>[...a[119]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[46]||=e=>on(),ghost:``},{default:y(()=>[...a[122]||=[n(` Выдать `,-1)]]),_:1})]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[a[120]||=x(`p`,null,`Команда`,-1),x(`h3`,null,r($t.value.name),1),a[121]||=x(`p`,null,`Улика`,-1),x(`h3`,null,r($.value.name),1),d(Te)($.value)==`image`&&$.value.image?(i(),b(`div`,wt,[x(`img`,{src:d(Ee)($.value.image),class:`give-application-image`},null,8,Tt)])):d(Te)($.value)==`audio`&&$.value.image?(i(),b(`audio`,{key:1,src:d(Ee)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,Et)):d(Te)($.value)==`pdf`&&$.value.image?(i(),b(`a`,{key:2,href:d(Ee)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,Dt)):t(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:ae.value,"onUpdate:show":a[52]||=e=>ae.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[48]||=e=>ae.value=!1},{default:y(()=>[...a[123]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[51]||=e=>an(),disabled:se.value.length==0},{default:y(()=>[...a[124]||=[n(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[l(d(F),{value:se.value,"onUpdate:value":a[49]||=e=>se.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),l(d(F),{value:E.value,"onUpdate:value":a[50]||=e=>E.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:T.value,"onUpdate:show":a[56]||=e=>T.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[53]||=e=>T.value=!1},{default:y(()=>[...a[125]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[55]||=e=>cn(),disabled:en.value!=tn.value.name},{default:y(()=>[...a[128]||=[n(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[x(`p`,null,[a[126]||=n(` Введите название команды `,-1),l(d(z),{class:`name-text`,strong:``},{default:y(()=>[n(r(tn.value.name),1)]),_:1}),a[127]||=n(` чтобы удалить его `,-1)]),l(d(F),{value:en.value,"onUpdate:value":a[54]||=e=>en.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:oe.value,"onUpdate:show":a[60]||=e=>oe.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[57]||=e=>oe.value=!1},{default:y(()=>[...a[129]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[59]||=e=>ln(),disabled:ce.value!=P.value.name},{default:y(()=>[...a[132]||=[n(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[x(`p`,null,[a[130]||=n(` Введите название игры `,-1),l(d(z),{class:`name-text`,strong:``},{default:y(()=>[n(r(P.value.name),1)]),_:1}),a[131]||=n(` чтобы удалить её `,-1)]),l(d(F),{value:ce.value,"onUpdate:value":a[58]||=e=>ce.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:j.value,"onUpdate:show":a[64]||=e=>j.value=e},{default:y(()=>[l(d(D),{style:{width:`min(94vw, 700px)`},title:`Выпуск билетов`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[61]||=e=>j.value=!1},{default:y(()=>[...a[133]||=[n(` x `,-1)]]),_:1})]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[l(d(Re),{value:M.value,"onUpdate:value":a[62]||=e=>M.value=e,min:1,max:100},null,8,[`value`]),l(d(A),{type:`primary`,loading:fe.value,disabled:fe.value,onClick:a[63]||=e=>pn()},{default:y(()=>[...a[134]||=[n(` Выпустить `,-1)]]),_:1},8,[`loading`,`disabled`]),(i(!0),b(m,null,v(N.value,e=>(i(),b(`div`,{key:e.id,class:`issued-ticket`},[x(`div`,null,`Билет №`+r(e.id),1),x(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`},`Открыть страницу билета`,8,Ot),l(d(A),{size:`small`,onClick:t=>dn(e.url,`Билет №${e.id}`)},{default:y(()=>[...a[135]||=[n(` Показать QR `,-1)]]),_:1},8,[`onClick`])]))),128))]),_:1})]),_:1})]),_:1},8,[`show`]),l(d(O),{show:le.value,"onUpdate:show":a[66]||=e=>le.value=e},{default:y(()=>[l(d(D),{style:{width:`600px`},title:de.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":y(()=>[l(d(A),{onClick:a[65]||=e=>le.value=!1},{default:y(()=>[...a[136]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[...a[137]||=[]]),default:y(()=>[l(d(L),{vertical:``},{default:y(()=>[x(`div`,kt,[l(d(ge),{value:k.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),l(d(O),{show:yn.value,"onUpdate:show":a[69]||=e=>yn.value=e},{default:y(()=>[l(d(D),{style:{width:`min(94vw, 900px)`},title:`Ответы команд`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":y(()=>[l(d(A),{onClick:a[67]||=e=>yn.value=!1},{default:y(()=>[...a[138]||=[n(` x `,-1)]]),_:1})]),footer:y(()=>[l(d(R),{justify:`end`},{default:y(()=>[l(d(A),{onClick:a[68]||=e=>Pn(),disabled:wn.value.length==0},{default:y(()=>[...a[141]||=[n(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:y(()=>[wn.value.length==0?(i(),b(`div`,At,` Вопросы дела не заданы или команды ещё не отвечали. `)):t(``,!0),(i(!0),b(m,null,v(wn.value,e=>(i(),b(`div`,{key:e.code,class:`answers-question-block`},[x(`p`,jt,r(e.code)+`: `+r(e.text),1),x(`p`,Mt,[a[139]||=n(` Правильный ответ:`,-1),a[140]||=x(`br`,null,null,-1),x(`span`,Nt,r(e.answer||`—`),1)]),(i(!0),b(m,null,v(Tn.value,t=>(i(),b(`div`,{key:t.team?.id,class:`answers-team-row`},[x(`div`,Pt,r(t.team?.name),1),x(`div`,Ft,r(On(t,e.code)||`—`),1),l(d(Re),{value:En.value[Dn(t.team?.id,e.code)],"onUpdate:value":n=>kn(Dn(t.team?.id,e.code),n),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]))),128))]),_:1})]),_:1},8,[`show`]),l(d(O),{show:bn.value,"onUpdate:show":a[71]||=e=>bn.value=e},{default:y(()=>[l(d(D),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":y(()=>[l(d(A),{onClick:a[70]||=e=>bn.value=!1},{default:y(()=>[...a[142]||=[n(` x `,-1)]]),_:1})]),default:y(()=>[l(d(R),{align:`center`,class:`reviews-summary`},{default:y(()=>[l(d(he),{value:Sn.value,readonly:``,"allow-half":``},null,8,[`value`]),x(`span`,null,r(Cn.value?`${Sn.value.toFixed(1)} · ${Cn.value}`:`Пока нет отзывов`),1)]),_:1}),xn.value.length==0?(i(),b(`div`,It,`Отзывов пока нет.`)):t(``,!0),(i(!0),b(m,null,v(xn.value,e=>(i(),b(`div`,{key:e.id,class:`review-row`},[l(d(R),{justify:`space-between`,align:`center`},{default:y(()=>[x(`strong`,null,r(e.teamName),1),l(d(I),null,{default:y(()=>[n(r(e.status),1)]),_:2},1024)]),_:2},1024),l(d(he),{value:e.rating,readonly:``,size:`small`},null,8,[`value`]),x(`p`,null,r(e.text),1),e.status==`pending`?(i(),u(d(R),{key:0,justify:`end`},{default:y(()=>[l(d(A),{type:`success`,onClick:t=>Nn(e,`approved`)},{default:y(()=>[...a[143]||=[n(`Одобрить`,-1)]]),_:1},8,[`onClick`]),l(d(A),{type:`error`,ghost:``,onClick:t=>Nn(e,`rejected`)},{default:y(()=>[...a[144]||=[n(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e.status==`approved`?(i(),u(d(R),{key:1,justify:`end`},{default:y(()=>[l(d(A),{type:`error`,ghost:``,onClick:t=>Nn(e,`hidden`)},{default:y(()=>[...a[145]||=[n(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):t(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),l(Se,{active:`games`})],64))}}),[[`__scopeId`,`data-v-bfbdd3fa`]]),Rt=g({__name:`GameView`,setup(e){return(e,t)=>(i(),u(Lt))}});export{Rt as default}; \ No newline at end of file diff --git a/dist/assets/GamesView-BwGN5ktl.js b/dist/assets/GamesView-cyoiD7oM.js similarity index 99% rename from dist/assets/GamesView-BwGN5ktl.js rename to dist/assets/GamesView-cyoiD7oM.js index 518308f..acebe6b 100644 --- a/dist/assets/GamesView-BwGN5ktl.js +++ b/dist/assets/GamesView-cyoiD7oM.js @@ -1,4 +1,4 @@ -import{$ as e,B as t,C as n,D as r,Ft as i,G as a,H as o,K as s,L as c,M as l,O as u,P as d,S as ee,_t as f,b as p,dt as m,et as te,ft as h,h as ne,ht as g,k as _,nt as v,q as re,tt as y,u as b,ut as x,w as S,x as C,z as w}from"./client-E8nWUy_w.js";import{G as T,I as E,J as D,K as O,L as ie,M as ae,N as oe,X as k,Y as A,Z as se,r as ce,z as j}from"./light-Dq0naAvE.js";import{a as le,i as M,o as N,t as ue}from"./Follower-Bj8mg9ex.js";import{l as de,s as P,u as fe}from"./utils-CBUf6KKJ.js";import{d as pe,f as me,i as F,t as he,u as ge}from"./Card-D_Y8VzWl.js";import{m as _e,o as ve,t as ye}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{t as be}from"./Modal-D1InIULi.js";import{t as xe}from"./use-merged-state-C1ccSDEx.js";import{n as Se,t as I}from"./Button-Cr3XRKS5.js";import{r as Ce}from"./keep-BpqC6iXB.js";import{t as L}from"./Select-DV69pW8T.js";import{n as we,r as R}from"./use-form-item-CVzWkQI_.js";import{a as Te,i as z,r as B}from"./resolve-slot-C9tdVP4f.js";import{i as Ee,r as De}from"./Suffix-D4EvRHEf.js";import{t as Oe}from"./Input-BkQuBf9P.js";import{t as ke}from"./use-message-BD6Lw0qA.js";import{t as Ae}from"./Space-LOHABRdD.js";import{t as je}from"./Flex-7TW8da2P.js";import{Q as Me,U as Ne,V as Pe,Y as Fe,_ as Ie,g as Le,rt as Re}from"./index-DrmfX-S2.js";import{n as ze}from"./es-CBOun6Az.js";import{t as Be}from"./HeaderMenu-D_gj_b_i.js";import{t as Ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as He}from"./datetime-BJNH0M1T.js";function Ue(n={},r){let i=x({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:a,keyup:o}=n,s=e=>{switch(e.key){case`Control`:i.ctrl=!0;break;case`Meta`:i.command=!0,i.win=!0;break;case`Shift`:i.shift=!0;break;case`Tab`:i.tab=!0;break}a!==void 0&&Object.keys(a).forEach(t=>{if(t!==e.key)return;let n=a[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=e=>{switch(e.key){case`Control`:i.ctrl=!1;break;case`Meta`:i.command=!1,i.win=!1;break;case`Shift`:i.shift=!1;break;case`Tab`:i.tab=!1;break}o!==void 0&&Object.keys(o).forEach(t=>{if(t!==e.key)return;let n=o[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},l=()=>{(r===void 0||r.value)&&(pe(`keydown`,document,s),pe(`keyup`,document,c)),r!==void 0&&e(r,e=>{e?(pe(`keydown`,document,s),pe(`keyup`,document,c)):(ge(`keydown`,document,s),ge(`keyup`,document,c))})};return _e()?(w(l),t(()=>{(r===void 0||r.value)&&(ge(`keydown`,document,s),ge(`keyup`,document,c))})):l(),m(i)}var We=365.2425,Ge=6048e5,Ke=864e5,qe=6e4,Je=36e5,Ye=1e3,Xe=3600*24;Xe*7,Xe*We/12*3;var Ze=Symbol.for(`constructDateFrom`);function V(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ze in e?e[Ze](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qe(e,...t){let n=V.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var $e={};function et(){return $e}function H(e,t){return V(t||e,e)}function tt(e,t){let n=et(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=H(e,t?.in),a=i.getDay(),o=(al(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},l(`g`,{"fill-rule":`nonzero`},l(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`}))))),at=_({name:`FastBackward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},l(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},l(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`}))))}}),ot=_({name:`FastForward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},l(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},l(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`}))))}}),st=_({name:`Forward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},l(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`}))}}),ct=Pe(`time`,()=>l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},l(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` +import{$ as e,B as t,C as n,D as r,Ft as i,G as a,H as o,K as s,L as c,M as l,O as u,P as d,S as ee,_t as f,b as p,dt as m,et as te,ft as h,h as ne,ht as g,k as _,nt as v,q as re,tt as y,u as b,ut as x,w as S,x as C,z as w}from"./client-BBfBDiVG.js";import{G as T,I as E,J as D,K as O,L as ie,M as ae,N as oe,X as k,Y as A,Z as se,r as ce,z as j}from"./light-DqAV2QCd.js";import{a as le,i as M,o as N,t as ue}from"./Follower-DIc7TcHi.js";import{l as de,s as P,u as fe}from"./utils-bNShwiNe.js";import{d as pe,f as me,i as F,t as he,u as ge}from"./Card-Cze8lALH.js";import{m as _e,o as ve,t as ye}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{t as be}from"./Modal-DbiX6wvm.js";import{t as xe}from"./use-merged-state-DRpgLPWV.js";import{n as Se,t as I}from"./Button-DAM1cqtA.js";import{r as Ce}from"./keep-zbFcxtME.js";import{t as L}from"./Select-B-sTbBIa.js";import{n as we,r as R}from"./use-form-item-ajbhslgm.js";import{a as Te,i as z,r as B}from"./resolve-slot-C_Onglzh.js";import{i as Ee,r as De}from"./Suffix-DM_ippuo.js";import{t as Oe}from"./Input-2L35DdEz.js";import{t as ke}from"./use-message-DyQW5yAL.js";import{t as Ae}from"./Space-_Xn7R9gX.js";import{t as je}from"./Flex-BIB1uWhx.js";import{Q as Me,U as Ne,V as Pe,Y as Fe,_ as Ie,g as Le,rt as Re}from"./index-DnUl8nHF.js";import{n as ze}from"./es-D90fN3qV.js";import{t as Be}from"./HeaderMenu-CqYU4ywX.js";import{t as Ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as He}from"./datetime-BJNH0M1T.js";function Ue(n={},r){let i=x({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:a,keyup:o}=n,s=e=>{switch(e.key){case`Control`:i.ctrl=!0;break;case`Meta`:i.command=!0,i.win=!0;break;case`Shift`:i.shift=!0;break;case`Tab`:i.tab=!0;break}a!==void 0&&Object.keys(a).forEach(t=>{if(t!==e.key)return;let n=a[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=e=>{switch(e.key){case`Control`:i.ctrl=!1;break;case`Meta`:i.command=!1,i.win=!1;break;case`Shift`:i.shift=!1;break;case`Tab`:i.tab=!1;break}o!==void 0&&Object.keys(o).forEach(t=>{if(t!==e.key)return;let n=o[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},l=()=>{(r===void 0||r.value)&&(pe(`keydown`,document,s),pe(`keyup`,document,c)),r!==void 0&&e(r,e=>{e?(pe(`keydown`,document,s),pe(`keyup`,document,c)):(ge(`keydown`,document,s),ge(`keyup`,document,c))})};return _e()?(w(l),t(()=>{(r===void 0||r.value)&&(ge(`keydown`,document,s),ge(`keyup`,document,c))})):l(),m(i)}var We=365.2425,Ge=6048e5,Ke=864e5,qe=6e4,Je=36e5,Ye=1e3,Xe=3600*24;Xe*7,Xe*We/12*3;var Ze=Symbol.for(`constructDateFrom`);function V(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ze in e?e[Ze](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qe(e,...t){let n=V.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var $e={};function et(){return $e}function H(e,t){return V(t||e,e)}function tt(e,t){let n=et(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=H(e,t?.in),a=i.getDay(),o=(al(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},l(`g`,{"fill-rule":`nonzero`},l(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`}))))),at=_({name:`FastBackward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},l(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},l(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`}))))}}),ot=_({name:`FastForward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},l(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},l(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`}))))}}),st=_({name:`Forward`,render(){return l(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},l(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`}))}}),ct=Pe(`time`,()=>l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},l(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` fill: none; stroke: currentColor; stroke-miterlimit: 10; diff --git a/dist/assets/HeaderMenu-D_gj_b_i.js b/dist/assets/HeaderMenu-CqYU4ywX.js similarity index 92% rename from dist/assets/HeaderMenu-D_gj_b_i.js rename to dist/assets/HeaderMenu-CqYU4ywX.js index 58c5d43..71b0084 100644 --- a/dist/assets/HeaderMenu-D_gj_b_i.js +++ b/dist/assets/HeaderMenu-CqYU4ywX.js @@ -1 +1 @@ -import{C as e,G as t,Nt as n,O as r,_t as i,ft as a,k as o,tt as s,u as c,w as l,x as u}from"./client-E8nWUy_w.js";import{t as d}from"./index-DrmfX-S2.js";import{n as f,t as p}from"./es-CBOun6Az.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=o({name:`MenuOutlined`,render:function(e,n){return t(),l(`svg`,h,n[0]||=[u(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(o({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(o){let m=o,h=d(),y=c(),b=f(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(t(),l(`div`,_,[u(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[r(i(p),{class:`burger-icon`,size:`28`},{default:s(()=>[r(i(g))]),_:1})]),u(`div`,{class:n([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[u(`div`,{class:n([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>i(y).push(`/`)},` Главная `,2),i(h).hasRole(`user`)?(t(),l(`div`,{key:0,class:n([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>i(y).push(`/office`)},` Кабинет `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:1,class:n([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>i(y).push(`/games`)},` Игры `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:2,class:`menu-item-block`,onClick:o[4]||=e=>i(y).push(`/tickets/check`)},` Проверка билетов `)):e(``,!0),u(`div`,{class:n([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[5]||=e=>i(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(t(),l(`div`,{key:3,class:n([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[6]||=e=>i(y).push(`/scenarios`)},` Мои сценарии `,2)):e(``,!0),C(`users_page`)?(t(),l(`div`,{key:4,class:n([`menu-item-block`,{active:m.active==`users`}]),onClick:o[7]||=e=>i(y).push(`/users`)},` Пользователи `,2)):e(``,!0),C(`reviews_page`)?(t(),l(`div`,{key:5,class:n([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[8]||=e=>i(y).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),u(`div`,v,[i(h).isAuthenticated?e(``,!0):(t(),l(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),i(h).isAuthenticated?(t(),l(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-e76ab6da`]]);export{y as t}; \ No newline at end of file +import{C as e,G as t,Nt as n,O as r,_t as i,ft as a,k as o,tt as s,u as c,w as l,x as u}from"./client-BBfBDiVG.js";import{t as d}from"./index-DnUl8nHF.js";import{n as f,t as p}from"./es-D90fN3qV.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=o({name:`MenuOutlined`,render:function(e,n){return t(),l(`svg`,h,n[0]||=[u(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(o({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(o){let m=o,h=d(),y=c(),b=f(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(t(),l(`div`,_,[u(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[r(i(p),{class:`burger-icon`,size:`28`},{default:s(()=>[r(i(g))]),_:1})]),u(`div`,{class:n([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[u(`div`,{class:n([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>i(y).push(`/`)},` Главная `,2),i(h).hasRole(`user`)?(t(),l(`div`,{key:0,class:n([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>i(y).push(`/office`)},` Кабинет `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:1,class:n([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>i(y).push(`/games`)},` Игры `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:2,class:`menu-item-block`,onClick:o[4]||=e=>i(y).push(`/tickets/check`)},` Проверка билетов `)):e(``,!0),u(`div`,{class:n([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[5]||=e=>i(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(t(),l(`div`,{key:3,class:n([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[6]||=e=>i(y).push(`/scenarios`)},` Мои сценарии `,2)):e(``,!0),C(`users_page`)?(t(),l(`div`,{key:4,class:n([`menu-item-block`,{active:m.active==`users`}]),onClick:o[7]||=e=>i(y).push(`/users`)},` Пользователи `,2)):e(``,!0),C(`reviews_page`)?(t(),l(`div`,{key:5,class:n([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[8]||=e=>i(y).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),u(`div`,v,[i(h).isAuthenticated?e(``,!0):(t(),l(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),i(h).isAuthenticated?(t(),l(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-e76ab6da`]]);export{y as t}; \ No newline at end of file diff --git a/dist/assets/HeaderText-Cu9OePP6.js b/dist/assets/HeaderText-OoQfyl23.js similarity index 79% rename from dist/assets/HeaderText-Cu9OePP6.js rename to dist/assets/HeaderText-OoQfyl23.js index be295dc..e942dee 100644 --- a/dist/assets/HeaderText-Cu9OePP6.js +++ b/dist/assets/HeaderText-OoQfyl23.js @@ -1 +1 @@ -import{G as e,J as t,k as n,w as r}from"./client-E8nWUy_w.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(n({__name:`HeaderText`,setup(n){return(n,i)=>(e(),r(`span`,a,[t(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file +import{G as e,J as t,k as n,w as r}from"./client-BBfBDiVG.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(n({__name:`HeaderText`,setup(n){return(n,i)=>(e(),r(`span`,a,[t(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file diff --git a/dist/assets/HomeView-BxGZqvR0.js b/dist/assets/HomeView-DxIBlwY5.js similarity index 74% rename from dist/assets/HomeView-BxGZqvR0.js rename to dist/assets/HomeView-DxIBlwY5.js index a7d105d..f768d8b 100644 --- a/dist/assets/HomeView-BxGZqvR0.js +++ b/dist/assets/HomeView-DxIBlwY5.js @@ -1 +1 @@ -import{G as e,O as t,h as n,k as r,w as i,x as a}from"./client-E8nWUy_w.js";import{t as o}from"./HeaderMenu-D_gj_b_i.js";var s=r({__name:`HomeView`,setup(r){return(r,s)=>(e(),i(n,null,[s[0]||=a(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[a(`div`,null,[a(`h1`,{class:`font-text`},`Вечерний детектив`),a(`h3`,{class:`font-text`},`Дело №0`),a(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(o,{active:`main`})],64))}});export{s as default}; \ No newline at end of file +import{G as e,O as t,h as n,k as r,w as i,x as a}from"./client-BBfBDiVG.js";import{t as o}from"./HeaderMenu-CqYU4ywX.js";var s=r({__name:`HomeView`,setup(r){return(r,s)=>(e(),i(n,null,[s[0]||=a(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[a(`div`,null,[a(`h1`,{class:`font-text`},`Вечерний детектив`),a(`h3`,{class:`font-text`},`Дело №0`),a(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(o,{active:`main`})],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/Input-BkQuBf9P.js b/dist/assets/Input-2L35DdEz.js similarity index 98% rename from dist/assets/Input-BkQuBf9P.js rename to dist/assets/Input-2L35DdEz.js index 838ccf1..321aac0 100644 --- a/dist/assets/Input-BkQuBf9P.js +++ b/dist/assets/Input-2L35DdEz.js @@ -1,4 +1,4 @@ -import{$ as e,A as t,H as n,K as r,L as i,M as a,P as o,b as s,et as c,ft as l,h as u,ht as d,k as f}from"./client-E8nWUy_w.js";import{G as p,J as m,K as h,M as ee,N as te,X as g,Y as _,Z as v,i as ne,o as re,r as ie,z as y}from"./light-Dq0naAvE.js";import{c as b,d as x,i as S,u as C}from"./Card-D_Y8VzWl.js";import{r as ae}from"./css-DEmdllcC.js";import{t as oe}from"./use-merged-state-C1ccSDEx.js";import{i as se}from"./Button-Cr3XRKS5.js";import{n as ce,r as w}from"./use-form-item-CVzWkQI_.js";import{a as T,i as E,r as D}from"./resolve-slot-C9tdVP4f.js";import{n as O,r as le,t as k}from"./Suffix-D4EvRHEf.js";import{U as A,X as j,w as ue}from"./index-DrmfX-S2.js";var M=f({name:`Eye`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),a(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=f({name:`EyeOff`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),a(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),a(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),a(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),a(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=h(`input`,` +import{$ as e,A as t,H as n,K as r,L as i,M as a,P as o,b as s,et as c,ft as l,h as u,ht as d,k as f}from"./client-BBfBDiVG.js";import{G as p,J as m,K as h,M as ee,N as te,X as g,Y as _,Z as v,i as ne,o as re,r as ie,z as y}from"./light-DqAV2QCd.js";import{c as b,d as x,i as S,u as C}from"./Card-Cze8lALH.js";import{r as ae}from"./css-DEmdllcC.js";import{t as oe}from"./use-merged-state-DRpgLPWV.js";import{i as se}from"./Button-DAM1cqtA.js";import{n as ce,r as w}from"./use-form-item-ajbhslgm.js";import{a as T,i as E,r as D}from"./resolve-slot-C_Onglzh.js";import{n as O,r as le,t as k}from"./Suffix-DM_ippuo.js";import{U as A,X as j,w as ue}from"./index-DnUl8nHF.js";var M=f({name:`Eye`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),a(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=f({name:`EyeOff`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),a(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),a(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),a(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),a(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=h(`input`,` max-width: 100%; cursor: text; line-height: 1.5; diff --git a/dist/assets/LoginView-Bi3FC9u_.js b/dist/assets/LoginView-V5w0IrrB.js similarity index 98% rename from dist/assets/LoginView-Bi3FC9u_.js rename to dist/assets/LoginView-V5w0IrrB.js index 00204a1..50f3530 100644 --- a/dist/assets/LoginView-Bi3FC9u_.js +++ b/dist/assets/LoginView-V5w0IrrB.js @@ -1,4 +1,4 @@ -import{$ as e,D as t,G as n,H as r,I as i,K as a,L as o,M as s,O as c,P as l,_t as u,b as d,et as f,ft as p,h as m,ht as h,k as g,nt as _,tt as v,u as y,w as b,x,y as S}from"./client-E8nWUy_w.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as k,N as A,Q as j,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-Dq0naAvE.js";import{a as B,i as V,l as ee,n as H,o as U,r as W,t as G}from"./Follower-Bj8mg9ex.js";import{a as te,o as ne,t as re}from"./utils-CBUf6KKJ.js";import{c as K,d as ie,f as ae,t as q}from"./Card-D_Y8VzWl.js";import{r as J,t as oe}from"./css-DEmdllcC.js";import{o as Y,r as se,t as ce}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{t as X}from"./use-merged-state-C1ccSDEx.js";import{t as le}from"./use-compitable-ChIWeUtn.js";import{t as Z}from"./Button-Cr3XRKS5.js";import{n as Q,r as $}from"./use-form-item-CVzWkQI_.js";import{t as ue}from"./flatten-Pfh9hmmw.js";import{a as de}from"./resolve-slot-C9tdVP4f.js";import{t as fe}from"./Add-BCBjjH0K.js";import{t as pe}from"./Input-BkQuBf9P.js";import{t as me}from"./use-message-BD6Lw0qA.js";import{t as he}from"./Space-LOHABRdD.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-DrmfX-S2.js";import{t as Ne}from"./HeaderMenu-D_gj_b_i.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=H(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[H(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=g({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=p(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,` +import{$ as e,D as t,G as n,H as r,I as i,K as a,L as o,M as s,O as c,P as l,_t as u,b as d,et as f,ft as p,h as m,ht as h,k as g,nt as _,tt as v,u as y,w as b,x,y as S}from"./client-BBfBDiVG.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as k,N as A,Q as j,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-DqAV2QCd.js";import{a as B,i as V,l as ee,n as H,o as U,r as W,t as G}from"./Follower-DIc7TcHi.js";import{a as te,o as ne,t as re}from"./utils-bNShwiNe.js";import{c as K,d as ie,f as ae,t as q}from"./Card-Cze8lALH.js";import{r as J,t as oe}from"./css-DEmdllcC.js";import{o as Y,r as se,t as ce}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{t as X}from"./use-merged-state-DRpgLPWV.js";import{t as le}from"./use-compitable-kfiJdYfv.js";import{t as Z}from"./Button-DAM1cqtA.js";import{n as Q,r as $}from"./use-form-item-ajbhslgm.js";import{t as ue}from"./flatten-ClDK_waP.js";import{a as de}from"./resolve-slot-C_Onglzh.js";import{t as fe}from"./Add-DRm_H-MT.js";import{t as pe}from"./Input-2L35DdEz.js";import{t as me}from"./use-message-DyQW5yAL.js";import{t as he}from"./Space-_Xn7R9gX.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-DnUl8nHF.js";import{t as Ne}from"./HeaderMenu-CqYU4ywX.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=H(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[H(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=g({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=p(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,` z-index: auto; position: relative; display: inline-flex; diff --git a/dist/assets/MessagePaper-Cy3nagN1.js b/dist/assets/MessagePaper-HXyPZ4jl.js similarity index 85% rename from dist/assets/MessagePaper-Cy3nagN1.js rename to dist/assets/MessagePaper-HXyPZ4jl.js index ae0ae4a..b5bfabb 100644 --- a/dist/assets/MessagePaper-Cy3nagN1.js +++ b/dist/assets/MessagePaper-HXyPZ4jl.js @@ -1 +1 @@ -import{G as e,J as t,k as n,w as r,x as i}from"./client-E8nWUy_w.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(n({__name:`MessagePaper`,setup(n){return(n,a)=>(e(),r(`div`,o,[a[0]||=i(`div`,{class:`message-cloud-3`},null,-1),a[1]||=i(`div`,{class:`message-cloud-2`},null,-1),i(`div`,s,[t(n.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t}; \ No newline at end of file +import{G as e,J as t,k as n,w as r,x as i}from"./client-BBfBDiVG.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(n({__name:`MessagePaper`,setup(n){return(n,a)=>(e(),r(`div`,o,[a[0]||=i(`div`,{class:`message-cloud-3`},null,-1),a[1]||=i(`div`,{class:`message-cloud-2`},null,-1),i(`div`,s,[t(n.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t}; \ No newline at end of file diff --git a/dist/assets/Modal-D1InIULi.js b/dist/assets/Modal-DbiX6wvm.js similarity index 96% rename from dist/assets/Modal-D1InIULi.js rename to dist/assets/Modal-DbiX6wvm.js index 507a905..9c5ce89 100644 --- a/dist/assets/Modal-D1InIULi.js +++ b/dist/assets/Modal-DbiX6wvm.js @@ -1,4 +1,4 @@ -import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,Nt as s,P as c,U as l,b as u,dt as d,ft as f,ht as p,k as m,nt as h,y as g,z as _}from"./client-E8nWUy_w.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-Dq0naAvE.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-D_Y8VzWl.js";import{r as ae}from"./css-DEmdllcC.js";import{a as oe,d as se,f as ce,h as le,i as ue,l as de,m as P,o as fe,p as pe,r as me,t as he,u as ge}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{a as _e,t as F}from"./Button-Cr3XRKS5.js";import{i as ve,n as ye,t as I}from"./keep-BpqC6iXB.js";import{r as L}from"./use-form-item-CVzWkQI_.js";import{a as R,r as z}from"./resolve-slot-C9tdVP4f.js";import{t as be}from"./fade-in.cssr-C7FS-iQO.js";import{B as xe,F as Se,L as Ce,Q as B,R as we,U as Te,Y as Ee,h as De,m as Oe,q as V,tt as H,z as U}from"./index-DrmfX-S2.js";var W=f(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!le)return d(f(null));K===0&&j(`click`,document,G,!0);let e=()=>{K+=1};return(ke&&=P())?(_(e),t(()=>{--K,K===0&&N(`click`,document,G,!0)})):e(),d(W)}var je=f(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!le)return d(f(!1));let n=f(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},e)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=P())?(_(o),t(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),d(n)}var J=f(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(_(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),t(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=f(`0px`);function Ue(r){if(typeof document>`u`)return;let i=document.documentElement,a,o=!1,s=()=>{i.style.marginRight=Re,i.style.overflow=ze,i.style.overflowX=Be,i.style.overflowY=Ve,He.value=`0px`};n(()=>{a=e(r,e=>{if(e){if(!X){let e=window.innerWidth-i.offsetWidth;e>0&&(Re=i.style.marginRight,i.style.marginRight=`${e}px`,He.value=`${e}px`),ze=i.style.overflow,Be=i.style.overflowX,Ve=i.style.overflowY,i.style.overflow=`hidden`,i.style.overflowX=`hidden`,i.style.overflowY=`hidden`}o=!0,X++}else X--,X||s(),o=!1},{immediate:!0})}),t(()=>{a?.(),o&&=(X--,X||s(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`dialog`,` +import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,Nt as s,P as c,U as l,b as u,dt as d,ft as f,ht as p,k as m,nt as h,y as g,z as _}from"./client-BBfBDiVG.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-DqAV2QCd.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-Cze8lALH.js";import{r as ae}from"./css-DEmdllcC.js";import{a as oe,d as se,f as ce,h as le,i as ue,l as de,m as P,o as fe,p as pe,r as me,t as he,u as ge}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{a as _e,t as F}from"./Button-DAM1cqtA.js";import{i as ve,n as ye,t as I}from"./keep-zbFcxtME.js";import{r as L}from"./use-form-item-ajbhslgm.js";import{a as R,r as z}from"./resolve-slot-C_Onglzh.js";import{t as be}from"./fade-in.cssr-CKxOL_aH.js";import{B as xe,F as Se,L as Ce,Q as B,R as we,U as Te,Y as Ee,h as De,m as Oe,q as V,tt as H,z as U}from"./index-DnUl8nHF.js";var W=f(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!le)return d(f(null));K===0&&j(`click`,document,G,!0);let e=()=>{K+=1};return(ke&&=P())?(_(e),t(()=>{--K,K===0&&N(`click`,document,G,!0)})):e(),d(W)}var je=f(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!le)return d(f(!1));let n=f(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},e)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=P())?(_(o),t(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),d(n)}var J=f(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(_(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),t(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=f(`0px`);function Ue(r){if(typeof document>`u`)return;let i=document.documentElement,a,o=!1,s=()=>{i.style.marginRight=Re,i.style.overflow=ze,i.style.overflowX=Be,i.style.overflowY=Ve,He.value=`0px`};n(()=>{a=e(r,e=>{if(e){if(!X){let e=window.innerWidth-i.offsetWidth;e>0&&(Re=i.style.marginRight,i.style.marginRight=`${e}px`,He.value=`${e}px`),ze=i.style.overflow,Be=i.style.overflowX,Ve=i.style.overflowY,i.style.overflow=`hidden`,i.style.overflowX=`hidden`,i.style.overflowY=`hidden`}o=!0,X++}else X--,X||s(),o=!1},{immediate:!0})}),t(()=>{a?.(),o&&=(X--,X||s(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`dialog`,` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); diff --git a/dist/assets/OfficeView-DMA2VaRa.js b/dist/assets/OfficeView-jlUXrZ46.js similarity index 97% rename from dist/assets/OfficeView-DMA2VaRa.js rename to dist/assets/OfficeView-jlUXrZ46.js index c1a45e8..48a3f3a 100644 --- a/dist/assets/OfficeView-DMA2VaRa.js +++ b/dist/assets/OfficeView-jlUXrZ46.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,tt as u,u as d,w as f,x as p}from"./client-E8nWUy_w.js";import{t as m}from"./Modal-D1InIULi.js";import{t as h}from"./Button-Cr3XRKS5.js";import{t as g}from"./Input-BkQuBf9P.js";import{t as _}from"./Alert-BwySuMew.js";import{t as v}from"./use-message-BD6Lw0qA.js";import{nt as y,t as b}from"./index-DrmfX-S2.js";import{n as x}from"./es-CBOun6Az.js";import{t as S}from"./HeaderMenu-D_gj_b_i.js";import{t as C}from"./_plugin-vue_export-helper-BDNMzG2s.js";var w={class:`center-block-custom`},T={class:`width700`},E={class:`danger-zone`},D={key:0,class:`delete-modal-error`},O={class:`delete-modal-buttons`},k=C(l({__name:`OfficePage`,setup(a){let l=b(),C=d(),k=v(),A=x(),j=s([]);async function M(){j.value=[];let e=await A.GetPermissions({});j.value=e.permissions}M();function N(){let e=new Date,t=e.getDay(),n=e.getDate(),r=e.getMonth()+1,i=t===1,a=t===5&&n===13,o=r===1&&n===1||r===12&&n===31,s=r>=6&&r<=8,c=r===12||r<=2,l=n%5==0,u=[`Всегда носи с собой запасную ручку — признания любят записывать в самый неподходящий момент.`,`Если подозреваемый слишком вежлив, он либо дипломат, либо прячет труп в гараже.`,`Кофе в участке — это не напиток, это яд для улик. Пей только свой.`,`Следы на месте преступления всегда ведут к тому, кто забыл закрыть дверь.`,`Лучший способ разговорить молчуна — предложить ему чай с тремя ложками сахара.`,`Если всё указывает на дворецкого, ищи того, кто нанимал дворецкого.`,`Записывай каждую мелочь. Особенно цвет носков убитого.`,`Не верь алиби, которое начинается со слов 'Я бы никогда...'`,`Преступник всегда возвращается на место преступления. Или за забытым телефоном.`,`Ищи того, кому есть что терять, кроме своего времени.`,`Если женщина плачет в кабинете — дай ей платок. Если мужчина — дай ему стакан воды.`,`Самое опасное оружие — не пистолет, а бухгалтерская книга.`,`Собака всегда знает убийцу. Но она не говорит, потому что у неё контракт.`,`Проверяй чеки, билеты и смс. Ложь не терпит документации.`,`Если у тела нет врагов — ты плохо искал врагов.`,`Лупа нужна не для увеличения улик, а для того, чтобы выглядеть умнее.`,`Интуиция — это когда ты уже знаешь ответ, но хочешь убедиться, что не ошибся.`,`Подозревай всех, даже самого себя. Иногда преступник — это ты в прошлом.`,`Хороший детектив видит улики. Великий — видит их отсутствие.`,`Никогда не допрашивай свидетеля на голодный желудок. И себя тоже.`,`Если дело зашло в тупик, переверни бумаги вверх ногами.`,`Самый ценный свидетель — это камера наблюдения, у которой сломана защита.`,`Не ищи мотив. Ищи возможность.`,`Преступник не оставляет следов. Он оставляет выбор.`,`Если дверь была закрыта изнутри — ищи люк, который открывается снаружи.`,`Лучший детектив — тот, кого не замечают в толпе.`,`Учись читать по губам. Пригодится на допросах с адвокатом.`,`Запах духов на месте преступления важнее запаха пороха.`,`Если ты нашел отпечаток пальца — проверь, не твой ли он.`,`Раскрыть дело — это искусство. Не раскрыть — тоже искусство, но другое.`,`Никогда не спорь с баллистикой. Она всегда права, даже если ты не согласен.`,`В каждом деле есть одна странная деталь. Найди её — и пазл сложится.`,`Если преступник умный — он оставит ложный след. Если глупый — он оставит следы в соцсетях.`,`Лучший друг детектива — тишина. Второй друг — кофе.`,`Если свидетель говорит слишком много, он врет. Если молчит — он тоже врет.`,`Преступление редко бывает идеальным. Идеальным бывает только алиби жены.`,`Всегда смотри на часы на трупе. Возможно, они показывают время, когда он перестал верить в людей.`,`Воры любят темноту. Детективы — свет. А маньяки — полную луну.`,`Если ты поймал преступника, не радуйся раньше времени — может, он просто лжец.`,`В каждом городе есть одно место, где собираются все сплетники. Начни оттуда.`,`Не верь в совпадения. Но верь в удачу.`,`Если у тебя нет улик — придумай их. Но только мысленно, чтобы знать, где искать.`,`Жертва всегда знала убийцу. Даже если она не знала, что знает.`,`Проверяй алиби на разрыв. Если оно выдерживает — ты ошибся.`,`Самый страшный враг детектива — не маньяк, а его собственная лень.`,`Если преступник оставил записку — прочитай её. И сожги, чтобы никто не узнал твой почерк.`,`Всегда носи с собой фонарик. Даже днём. Для эффекта.`,`В деле важно всё: от укуса комара до размера обуви.`,`Если ты думаешь, что дело простое — значит, ты не додумал.`,`Убийца всегда ищет внимания. Или наоборот, избегает его.`,`Стук в дверь в полночь — это либо полиция, либо заказчик.`,`Никогда не давай обещаний родственникам жертвы. Только факты.`,`Если у тебя есть три версии — выбирай четвёртую.`,`Лучшее оружие — это бумага. На ней можно написать что угодно.`,`Когда ты смотришь на улику, смотри на неё глазами преступника.`,`Все любят детективы, пока не становятся подозреваемыми.`,`Следы крови важны. Но важнее — следы лжи.`,`Если ты не спишь третьи сутки, значит, ты либо гений, либо дурак.`,`Проверяй каждого, кто говорит 'Я ничего не видел'.`,`В каждом деле есть один человек, который знает всё. И он не говорит.`,`Не суди преступника по одежде. Суди по тому, как он её снимал.`,`Дыра в алиби — это как дыра в лодке. Рано или поздно она утонет.`,`Если преступник использует перчатки — он профессионал. Если нет — он любитель.`,`Запомни: первая версия — всегда неверная.`,`Если у тебя кончились идеи, иди в бар. Там всегда есть кто-то, кто расскажет тебе дело.`,`Свидетель с фотороботом — это как слепой с компасом.`,`Никогда не смейся над уликами. Они могут обидеться и исчезнуть.`,`Если ты нашёл оружие — не трогай его. Иначе твои отпечатки будут на нём.`,`Преступник умён, но ты умнее. Потому что ты пьёшь правильный кофе.`,`Всегда пересматривай видеозаписи. Особенно в два раза медленнее.`,`Если на месте преступления есть кот — он видел всё. Но он не скажет.`,`Лучший способ поймать преступника — пригласить его на обед.`,`Если подозреваемый улыбается, он либо невиновен, либо психопат.`,`Проверяй мусор. В нём всегда есть что-то полезное.`,`Никогда не доверяй красивым историям. Только уродливым фактам.`,`Если ты нашёл улику слишком легко — это ловушка.`,`Убийца всегда оставляет послание. Даже если это просто тишина.`,`Если ты запнулся на допросе — делай вид, что так и задумано.`,`Помни: все врут. Даже я тебе советую.`,`Если ты боишься темноты — стань детективом. Страх пройдёт.`,`Самые лучшие признания случаются под утро, когда все устали.`,`Если преступник использовал компьютер, значит, он либо хакер, либо дурак.`,`Следы шин — это как подпись на дороге.`,`Никогда не забывай про запах. Он помнит дольше, чем люди.`,`Если ты не знаешь, что делать — съешь шоколадку.`,`В каждом деле есть одна минута слабости. Найди её.`,`Преступник всегда нервничает. Даже если он не нервничает.`,`Если у тебя есть подозреваемый и нет улик — подожди. Улики появятся.`,`Не верь в чудеса. Верь в логику.`,`Если ты устал — возьми отпуск. Преступление никуда не денется.`,`Запомни: самый опасный преступник — тот, кто читал детективы.`,`Если ты думаешь, что всё кончено — значит, ты пропустил поворот.`,`Следы на полу важнее следов в душе.`,`Если преступник оставил окурок — он курил. Или хотел, чтобы ты так думал.`,`Хороший детектив всегда голоден. Это помогает мыслить.`,`Не суди по первому впечатлению. Суди по второму, когда увидишь его в наручниках.`,`Если у тебя есть тайный агент — не доверяй ему.`,`В деле всегда есть тот, кто знает больше, чем говорит.`,`Если ты не можешь найти убийцу — стань им (в мыслях).`,`И последнее: всегда проверяй, закрыл ли ты дверь участка.`],d=[];i&&d.push(`☕ Понедельник: Сегодня даже преступники не хотят работать. Проверь тех, кто был слишком бодр.`),a&&d.push(`🔮 Пятница 13-е: Если улики ведут к чёрной кошке, ищи чёрного кота с алиби.`),o&&d.push(`🎄 Новый год: Свидетель в костюме Деда Мороза врёт. Настоящий Дед Мороз всегда в отпуске.`),s&&d.push(`☀️ Лето: В жару преступники забывают улики в карманах, потому что снимают пиджаки.`),c&&d.push(`❄️ Зима: Следы на снегу ведут к тому, у кого самые холодные руки.`),l&&d.push(`🌕 Полнолуние: Если подозреваемый воет на луну, он либо оборотень, либо фанат рока.`);let f=u.concat(d),p=f[Math.floor(Math.random()*f.length)],m=[`🔍 Заметки сыщика:`,`📓 Из дневника инспектора:`,`🕵️ Мудрость Шерлока:`,`🧠 Гениально и просто:`,`📌 Правило большого пальца:`,`☕ Кофейная истина:`];return{header:m[Math.floor(Math.random()*m.length)],text:p}}let P=N(),F=s(!1),I=s(``),L=s(``);async function R(){if(L.value=``,!await l.deleteAccount(I.value)){L.value=l.error||`Не удалось удалить аккаунт`;return}k.success(`Аккаунт и персональные данные удалены`),F.value=!1,C.push(`/login`)}return(a,s)=>(r(),f(c,null,[p(`div`,w,[p(`div`,T,[i(o(_),{title:o(P).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:u(()=>[t(n(o(P).text),1)]),_:1},8,[`title`]),p(`p`,null,`Доброго времени суток, `+n(o(l).username)+`.`,1),p(`div`,E,[s[5]||=p(`div`,{class:`danger-zone-text`},[p(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),p(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),i(o(h),{type:`error`,ghost:``,onClick:s[0]||=e=>F.value=!0},{default:u(()=>[...s[4]||=[t(`Удалить аккаунт`,-1)]]),_:1})])])]),i(o(m),{show:F.value,"onUpdate:show":s[3]||=e=>F.value=e,preset:`card`,title:`Удаление аккаунта`,class:`delete-modal`},{default:u(()=>[s[8]||=p(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),i(o(g),{value:I.value,"onUpdate:value":s[1]||=e=>I.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:y(R,[`enter`])},null,8,[`value`]),L.value?(r(),f(`p`,D,n(L.value),1)):e(``,!0),p(`div`,O,[i(o(h),{onClick:s[2]||=e=>F.value=!1},{default:u(()=>[...s[6]||=[t(`Отмена`,-1)]]),_:1}),i(o(h),{type:`error`,disabled:I.value.length==0,loading:o(l).isLoading,onClick:R},{default:u(()=>[...s[7]||=[t(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1},8,[`show`]),i(S,{active:`office`})],64))}}),[[`__scopeId`,`data-v-34dfe8a1`]]),A=l({__name:`OfficeView`,setup(e){return(e,t)=>(r(),a(k))}});export{A as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,tt as u,u as d,w as f,x as p}from"./client-BBfBDiVG.js";import{t as m}from"./Modal-DbiX6wvm.js";import{t as h}from"./Button-DAM1cqtA.js";import{t as g}from"./Input-2L35DdEz.js";import{t as _}from"./Alert-DsjLN_Ag.js";import{t as v}from"./use-message-DyQW5yAL.js";import{nt as y,t as b}from"./index-DnUl8nHF.js";import{n as x}from"./es-D90fN3qV.js";import{t as S}from"./HeaderMenu-CqYU4ywX.js";import{t as C}from"./_plugin-vue_export-helper-BDNMzG2s.js";var w={class:`center-block-custom`},T={class:`width700`},E={class:`danger-zone`},D={key:0,class:`delete-modal-error`},O={class:`delete-modal-buttons`},k=C(l({__name:`OfficePage`,setup(a){let l=b(),C=d(),k=v(),A=x(),j=s([]);async function M(){j.value=[];let e=await A.GetPermissions({});j.value=e.permissions}M();function N(){let e=new Date,t=e.getDay(),n=e.getDate(),r=e.getMonth()+1,i=t===1,a=t===5&&n===13,o=r===1&&n===1||r===12&&n===31,s=r>=6&&r<=8,c=r===12||r<=2,l=n%5==0,u=[`Всегда носи с собой запасную ручку — признания любят записывать в самый неподходящий момент.`,`Если подозреваемый слишком вежлив, он либо дипломат, либо прячет труп в гараже.`,`Кофе в участке — это не напиток, это яд для улик. Пей только свой.`,`Следы на месте преступления всегда ведут к тому, кто забыл закрыть дверь.`,`Лучший способ разговорить молчуна — предложить ему чай с тремя ложками сахара.`,`Если всё указывает на дворецкого, ищи того, кто нанимал дворецкого.`,`Записывай каждую мелочь. Особенно цвет носков убитого.`,`Не верь алиби, которое начинается со слов 'Я бы никогда...'`,`Преступник всегда возвращается на место преступления. Или за забытым телефоном.`,`Ищи того, кому есть что терять, кроме своего времени.`,`Если женщина плачет в кабинете — дай ей платок. Если мужчина — дай ему стакан воды.`,`Самое опасное оружие — не пистолет, а бухгалтерская книга.`,`Собака всегда знает убийцу. Но она не говорит, потому что у неё контракт.`,`Проверяй чеки, билеты и смс. Ложь не терпит документации.`,`Если у тела нет врагов — ты плохо искал врагов.`,`Лупа нужна не для увеличения улик, а для того, чтобы выглядеть умнее.`,`Интуиция — это когда ты уже знаешь ответ, но хочешь убедиться, что не ошибся.`,`Подозревай всех, даже самого себя. Иногда преступник — это ты в прошлом.`,`Хороший детектив видит улики. Великий — видит их отсутствие.`,`Никогда не допрашивай свидетеля на голодный желудок. И себя тоже.`,`Если дело зашло в тупик, переверни бумаги вверх ногами.`,`Самый ценный свидетель — это камера наблюдения, у которой сломана защита.`,`Не ищи мотив. Ищи возможность.`,`Преступник не оставляет следов. Он оставляет выбор.`,`Если дверь была закрыта изнутри — ищи люк, который открывается снаружи.`,`Лучший детектив — тот, кого не замечают в толпе.`,`Учись читать по губам. Пригодится на допросах с адвокатом.`,`Запах духов на месте преступления важнее запаха пороха.`,`Если ты нашел отпечаток пальца — проверь, не твой ли он.`,`Раскрыть дело — это искусство. Не раскрыть — тоже искусство, но другое.`,`Никогда не спорь с баллистикой. Она всегда права, даже если ты не согласен.`,`В каждом деле есть одна странная деталь. Найди её — и пазл сложится.`,`Если преступник умный — он оставит ложный след. Если глупый — он оставит следы в соцсетях.`,`Лучший друг детектива — тишина. Второй друг — кофе.`,`Если свидетель говорит слишком много, он врет. Если молчит — он тоже врет.`,`Преступление редко бывает идеальным. Идеальным бывает только алиби жены.`,`Всегда смотри на часы на трупе. Возможно, они показывают время, когда он перестал верить в людей.`,`Воры любят темноту. Детективы — свет. А маньяки — полную луну.`,`Если ты поймал преступника, не радуйся раньше времени — может, он просто лжец.`,`В каждом городе есть одно место, где собираются все сплетники. Начни оттуда.`,`Не верь в совпадения. Но верь в удачу.`,`Если у тебя нет улик — придумай их. Но только мысленно, чтобы знать, где искать.`,`Жертва всегда знала убийцу. Даже если она не знала, что знает.`,`Проверяй алиби на разрыв. Если оно выдерживает — ты ошибся.`,`Самый страшный враг детектива — не маньяк, а его собственная лень.`,`Если преступник оставил записку — прочитай её. И сожги, чтобы никто не узнал твой почерк.`,`Всегда носи с собой фонарик. Даже днём. Для эффекта.`,`В деле важно всё: от укуса комара до размера обуви.`,`Если ты думаешь, что дело простое — значит, ты не додумал.`,`Убийца всегда ищет внимания. Или наоборот, избегает его.`,`Стук в дверь в полночь — это либо полиция, либо заказчик.`,`Никогда не давай обещаний родственникам жертвы. Только факты.`,`Если у тебя есть три версии — выбирай четвёртую.`,`Лучшее оружие — это бумага. На ней можно написать что угодно.`,`Когда ты смотришь на улику, смотри на неё глазами преступника.`,`Все любят детективы, пока не становятся подозреваемыми.`,`Следы крови важны. Но важнее — следы лжи.`,`Если ты не спишь третьи сутки, значит, ты либо гений, либо дурак.`,`Проверяй каждого, кто говорит 'Я ничего не видел'.`,`В каждом деле есть один человек, который знает всё. И он не говорит.`,`Не суди преступника по одежде. Суди по тому, как он её снимал.`,`Дыра в алиби — это как дыра в лодке. Рано или поздно она утонет.`,`Если преступник использует перчатки — он профессионал. Если нет — он любитель.`,`Запомни: первая версия — всегда неверная.`,`Если у тебя кончились идеи, иди в бар. Там всегда есть кто-то, кто расскажет тебе дело.`,`Свидетель с фотороботом — это как слепой с компасом.`,`Никогда не смейся над уликами. Они могут обидеться и исчезнуть.`,`Если ты нашёл оружие — не трогай его. Иначе твои отпечатки будут на нём.`,`Преступник умён, но ты умнее. Потому что ты пьёшь правильный кофе.`,`Всегда пересматривай видеозаписи. Особенно в два раза медленнее.`,`Если на месте преступления есть кот — он видел всё. Но он не скажет.`,`Лучший способ поймать преступника — пригласить его на обед.`,`Если подозреваемый улыбается, он либо невиновен, либо психопат.`,`Проверяй мусор. В нём всегда есть что-то полезное.`,`Никогда не доверяй красивым историям. Только уродливым фактам.`,`Если ты нашёл улику слишком легко — это ловушка.`,`Убийца всегда оставляет послание. Даже если это просто тишина.`,`Если ты запнулся на допросе — делай вид, что так и задумано.`,`Помни: все врут. Даже я тебе советую.`,`Если ты боишься темноты — стань детективом. Страх пройдёт.`,`Самые лучшие признания случаются под утро, когда все устали.`,`Если преступник использовал компьютер, значит, он либо хакер, либо дурак.`,`Следы шин — это как подпись на дороге.`,`Никогда не забывай про запах. Он помнит дольше, чем люди.`,`Если ты не знаешь, что делать — съешь шоколадку.`,`В каждом деле есть одна минута слабости. Найди её.`,`Преступник всегда нервничает. Даже если он не нервничает.`,`Если у тебя есть подозреваемый и нет улик — подожди. Улики появятся.`,`Не верь в чудеса. Верь в логику.`,`Если ты устал — возьми отпуск. Преступление никуда не денется.`,`Запомни: самый опасный преступник — тот, кто читал детективы.`,`Если ты думаешь, что всё кончено — значит, ты пропустил поворот.`,`Следы на полу важнее следов в душе.`,`Если преступник оставил окурок — он курил. Или хотел, чтобы ты так думал.`,`Хороший детектив всегда голоден. Это помогает мыслить.`,`Не суди по первому впечатлению. Суди по второму, когда увидишь его в наручниках.`,`Если у тебя есть тайный агент — не доверяй ему.`,`В деле всегда есть тот, кто знает больше, чем говорит.`,`Если ты не можешь найти убийцу — стань им (в мыслях).`,`И последнее: всегда проверяй, закрыл ли ты дверь участка.`],d=[];i&&d.push(`☕ Понедельник: Сегодня даже преступники не хотят работать. Проверь тех, кто был слишком бодр.`),a&&d.push(`🔮 Пятница 13-е: Если улики ведут к чёрной кошке, ищи чёрного кота с алиби.`),o&&d.push(`🎄 Новый год: Свидетель в костюме Деда Мороза врёт. Настоящий Дед Мороз всегда в отпуске.`),s&&d.push(`☀️ Лето: В жару преступники забывают улики в карманах, потому что снимают пиджаки.`),c&&d.push(`❄️ Зима: Следы на снегу ведут к тому, у кого самые холодные руки.`),l&&d.push(`🌕 Полнолуние: Если подозреваемый воет на луну, он либо оборотень, либо фанат рока.`);let f=u.concat(d),p=f[Math.floor(Math.random()*f.length)],m=[`🔍 Заметки сыщика:`,`📓 Из дневника инспектора:`,`🕵️ Мудрость Шерлока:`,`🧠 Гениально и просто:`,`📌 Правило большого пальца:`,`☕ Кофейная истина:`];return{header:m[Math.floor(Math.random()*m.length)],text:p}}let P=N(),F=s(!1),I=s(``),L=s(``);async function R(){if(L.value=``,!await l.deleteAccount(I.value)){L.value=l.error||`Не удалось удалить аккаунт`;return}k.success(`Аккаунт и персональные данные удалены`),F.value=!1,C.push(`/login`)}return(a,s)=>(r(),f(c,null,[p(`div`,w,[p(`div`,T,[i(o(_),{title:o(P).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:u(()=>[t(n(o(P).text),1)]),_:1},8,[`title`]),p(`p`,null,`Доброго времени суток, `+n(o(l).username)+`.`,1),p(`div`,E,[s[5]||=p(`div`,{class:`danger-zone-text`},[p(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),p(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),i(o(h),{type:`error`,ghost:``,onClick:s[0]||=e=>F.value=!0},{default:u(()=>[...s[4]||=[t(`Удалить аккаунт`,-1)]]),_:1})])])]),i(o(m),{show:F.value,"onUpdate:show":s[3]||=e=>F.value=e,preset:`card`,title:`Удаление аккаунта`,class:`delete-modal`},{default:u(()=>[s[8]||=p(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),i(o(g),{value:I.value,"onUpdate:value":s[1]||=e=>I.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:y(R,[`enter`])},null,8,[`value`]),L.value?(r(),f(`p`,D,n(L.value),1)):e(``,!0),p(`div`,O,[i(o(h),{onClick:s[2]||=e=>F.value=!1},{default:u(()=>[...s[6]||=[t(`Отмена`,-1)]]),_:1}),i(o(h),{type:`error`,disabled:I.value.length==0,loading:o(l).isLoading,onClick:R},{default:u(()=>[...s[7]||=[t(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1},8,[`show`]),i(S,{active:`office`})],64))}}),[[`__scopeId`,`data-v-34dfe8a1`]]),A=l({__name:`OfficeView`,setup(e){return(e,t)=>(r(),a(k))}});export{A as default}; \ No newline at end of file diff --git a/dist/assets/ParticipationView-DdLT12jH.js b/dist/assets/ParticipationView-COtA08mM.js similarity index 91% rename from dist/assets/ParticipationView-DdLT12jH.js rename to dist/assets/ParticipationView-COtA08mM.js index 6efbbc8..852463d 100644 --- a/dist/assets/ParticipationView-DdLT12jH.js +++ b/dist/assets/ParticipationView-COtA08mM.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,H as i,O as a,S as o,_t as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-E8nWUy_w.js";import{t as g}from"./Card-D_Y8VzWl.js";import{t as _}from"./Button-Cr3XRKS5.js";import{t as v}from"./use-message-BD6Lw0qA.js";import{t as y}from"./Space-LOHABRdD.js";import{t as b}from"./index-DrmfX-S2.js";import{t as x}from"./HeaderMenu-D_gj_b_i.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=u({__name:`ParticipationPage`,setup(u){let k=d(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=c(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=f(),P=b(),F=v(),I=c(),L=c(!1),R=c(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return i(z),(i,c)=>(r(),m(l,null,[s(P).isAuthenticated?(r(),o(x,{key:0})):e(``,!0),h(`div`,C,[h(`div`,w,[a(s(g),{title:`Участие в игре`},{default:p(()=>[R.value?(r(),m(`p`,T,n(R.value),1)):e(``,!0),I.value?(r(),m(l,{key:1},[h(`h2`,null,n(I.value.gameName),1),h(`p`,null,`Команда: `+n(I.value.teamName),1),h(`p`,null,`Начало: `+n(s(S)(I.value.startAt)),1),h(`p`,null,`Участников: `+n(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),m(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),m(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),m(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),m(l,{key:3},[c[4]||=h(`p`,null,[h(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),c[5]||=h(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),a(s(y),{vertical:``},{default:p(()=>[a(s(y),null,{default:p(()=>[a(s(_),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:c[0]||=e=>M.value=`confirmed`},{default:p(()=>[...c[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),a(s(_),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:c[1]||=e=>M.value=`cancelled`},{default:p(()=>[...c[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),a(s(_),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:p(()=>[t(n(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),o(s(_),{key:2,loading:L.value,onClick:z},{default:p(()=>[t(n(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=u({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),o(k))}});export{A as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,H as i,O as a,S as o,_t as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-BBfBDiVG.js";import{t as g}from"./Card-Cze8lALH.js";import{t as _}from"./Button-DAM1cqtA.js";import{t as v}from"./use-message-DyQW5yAL.js";import{t as y}from"./Space-_Xn7R9gX.js";import{t as b}from"./index-DnUl8nHF.js";import{t as x}from"./HeaderMenu-CqYU4ywX.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=u({__name:`ParticipationPage`,setup(u){let k=d(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=c(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=f(),P=b(),F=v(),I=c(),L=c(!1),R=c(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return i(z),(i,c)=>(r(),m(l,null,[s(P).isAuthenticated?(r(),o(x,{key:0})):e(``,!0),h(`div`,C,[h(`div`,w,[a(s(g),{title:`Участие в игре`},{default:p(()=>[R.value?(r(),m(`p`,T,n(R.value),1)):e(``,!0),I.value?(r(),m(l,{key:1},[h(`h2`,null,n(I.value.gameName),1),h(`p`,null,`Команда: `+n(I.value.teamName),1),h(`p`,null,`Начало: `+n(s(S)(I.value.startAt)),1),h(`p`,null,`Участников: `+n(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),m(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),m(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),m(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),m(l,{key:3},[c[4]||=h(`p`,null,[h(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),c[5]||=h(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),a(s(y),{vertical:``},{default:p(()=>[a(s(y),null,{default:p(()=>[a(s(_),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:c[0]||=e=>M.value=`confirmed`},{default:p(()=>[...c[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),a(s(_),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:c[1]||=e=>M.value=`cancelled`},{default:p(()=>[...c[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),a(s(_),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:p(()=>[t(n(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),o(s(_),{key:2,loading:L.value,onClick:z},{default:p(()=>[t(n(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=u({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),o(k))}});export{A as default}; \ No newline at end of file diff --git a/dist/assets/PlaceBlock-C4rcxpbT.js b/dist/assets/PlaceBlock-C1FV-h-w.js similarity index 97% rename from dist/assets/PlaceBlock-C4rcxpbT.js rename to dist/assets/PlaceBlock-C1FV-h-w.js index 13ff583..a3a92fe 100644 --- a/dist/assets/PlaceBlock-C4rcxpbT.js +++ b/dist/assets/PlaceBlock-C1FV-h-w.js @@ -1,4 +1,4 @@ -import{C as e,D as t,E as n,Ft as r,G as i,J as a,K as o,M as s,Nt as c,O as l,P as u,Pt as d,S as f,_t as p,at as m,b as h,ft as g,h as _,ht as v,k as y,mt as b,q as x,r as S,tt as C,w,x as T}from"./client-E8nWUy_w.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as ee,n as te,o as F,r as I,t as ne,z as L}from"./light-Dq0naAvE.js";import{t as re}from"./Card-D_Y8VzWl.js";import{i as R,t as z}from"./css-DEmdllcC.js";import{t as ie}from"./Modal-D1InIULi.js";import{t as ae}from"./use-merged-state-C1ccSDEx.js";import{r as oe,t as B}from"./Button-Cr3XRKS5.js";import{n as se,r as V,t as ce}from"./use-form-item-CVzWkQI_.js";import{n as le,t as ue}from"./Upload-UneDPhCs.js";import{a as H,i as de,n as fe,r as pe}from"./resolve-slot-C9tdVP4f.js";import{r as me}from"./Suffix-D4EvRHEf.js";import{t as he}from"./Add-BCBjjH0K.js";import{t as U}from"./Input-BkQuBf9P.js";import{t as ge}from"./Remove-ChrN075i.js";import{t as _e}from"./Tag-Bb42yLml.js";import{t as W}from"./Space-LOHABRdD.js";import{t as G}from"./text-DLGdGDO6.js";import{H as ve,I as ye,M as be,S as xe,U as K,Z as Se,f as Ce,o as we,rt as q,w as Te}from"./index-DrmfX-S2.js";import{t as Ee}from"./es-CBOun6Az.js";import{t as De}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as J,r as Y,t as Oe}from"./application-Cen-5gWT.js";import{t as ke}from"./MessagePaper-Cy3nagN1.js";var Ae=y({name:`ArrowDown`,render(){return s(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),je=y({name:`ArrowUp`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},s(`g`,{fill:`none`},s(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Me=k(`input-group`,` +import{C as e,D as t,E as n,Ft as r,G as i,J as a,K as o,M as s,Nt as c,O as l,P as u,Pt as d,S as f,_t as p,at as m,b as h,ft as g,h as _,ht as v,k as y,mt as b,q as x,r as S,tt as C,w,x as T}from"./client-BBfBDiVG.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as ee,n as te,o as F,r as I,t as ne,z as L}from"./light-DqAV2QCd.js";import{t as re}from"./Card-Cze8lALH.js";import{i as R,t as z}from"./css-DEmdllcC.js";import{t as ie}from"./Modal-DbiX6wvm.js";import{t as ae}from"./use-merged-state-DRpgLPWV.js";import{r as oe,t as B}from"./Button-DAM1cqtA.js";import{n as se,r as V,t as ce}from"./use-form-item-ajbhslgm.js";import{n as le,t as ue}from"./Upload-ByR1zA4h.js";import{a as H,i as de,n as fe,r as pe}from"./resolve-slot-C_Onglzh.js";import{r as me}from"./Suffix-DM_ippuo.js";import{t as he}from"./Add-DRm_H-MT.js";import{t as U}from"./Input-2L35DdEz.js";import{t as ge}from"./Remove-CjPWnsYa.js";import{t as _e}from"./Tag-YulbLI_X.js";import{t as W}from"./Space-_Xn7R9gX.js";import{t as G}from"./text-ERnkmyYu.js";import{H as ve,I as ye,M as be,S as xe,U as K,Z as Se,f as Ce,o as we,rt as q,w as Te}from"./index-DnUl8nHF.js";import{t as Ee}from"./es-D90fN3qV.js";import{t as De}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as J,r as Y,t as Oe}from"./application-DO6jjJW-.js";import{t as ke}from"./MessagePaper-HXyPZ4jl.js";var Ae=y({name:`ArrowDown`,render(){return s(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),je=y({name:`ArrowUp`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},s(`g`,{fill:`none`},s(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Me=k(`input-group`,` display: inline-flex; width: 100%; flex-wrap: nowrap; diff --git a/dist/assets/Popover-DjXPu6IJ.js b/dist/assets/Popover-I7RatnYr.js similarity index 96% rename from dist/assets/Popover-DjXPu6IJ.js rename to dist/assets/Popover-I7RatnYr.js index 4996d4e..f152533 100644 --- a/dist/assets/Popover-DjXPu6IJ.js +++ b/dist/assets/Popover-I7RatnYr.js @@ -1,4 +1,4 @@ -import{$ as e,B as t,I as n,K as r,M as i,P as a,_ as o,b as s,et as c,ft as l,h as u,ht as d,k as f,nt as p,y as m}from"./client-E8nWUy_w.js";import{A as h,C as g,D as _,E as v,G as y,J as b,K as x,M as S,N as C,O as w,S as T,T as E,X as D,Y as O,_ as k,b as A,c as j,d as ee,f as M,g as N,h as te,j as P,k as F,l as ne,m as re,o as ie,p as ae,q as oe,r as se,u as I,v as ce,w as L,x as le,y as ue}from"./light-Dq0naAvE.js";import{a as de,i as fe,o as R,t as pe}from"./Follower-Bj8mg9ex.js";import{a as me,d as z,f as he,u as B}from"./Card-D_Y8VzWl.js";import{a as ge,l as _e,n as ve,o as ye,p as be,u as xe}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{t as Se}from"./use-merged-state-C1ccSDEx.js";import{t as Ce}from"./use-compitable-ChIWeUtn.js";import{i as we,t as Te}from"./keep-BpqC6iXB.js";import{r as V}from"./use-form-item-CVzWkQI_.js";import{a as Ee,i as De,n as Oe,o as H,r as U,t as ke}from"./get-DETsKAHF.js";import{a as W,n as Ae}from"./resolve-slot-C9tdVP4f.js";import{G as je,Q as Me,X as Ne,Y as Pe,k as Fe,tt as Ie}from"./index-DrmfX-S2.js";var G=`@@mmoContext`,Le={mounted(e,{value:t}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[G];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[G].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[G];t&&B(`mousemoveoutside`,e,t),e[G].handler=void 0}},K;function Re(){return K===void 0&&(K=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),K}var q=g(P,`WeakMap`),ze=ae(Object.keys,Object),Be=Object.prototype.hasOwnProperty;function Ve(e){if(!ce(e))return ze(e);var t=[];for(var n in Object(e))Be.call(e,n)&&n!=`constructor`&&t.push(n);return t}function He(e){return ue(e)?re(e):Ve(e)}function Ue(e,t){for(var n=-1,r=t.length,i=e.length;++ns))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vt?new Y:void 0;for(a.set(e,t),a.set(t,e);++ds))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vt?new Y:void 0;for(a.set(e,t),a.set(t,e);++d(e(),i(n,null,[t(a,{kind:`privacy`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/PrivacyPolicyView-Bl65pvPH.js b/dist/assets/PrivacyPolicyView-Bl65pvPH.js deleted file mode 100644 index a5823d8..0000000 --- a/dist/assets/PrivacyPolicyView-Bl65pvPH.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,O as t,h as n,k as r,w as i}from"./client-E8nWUy_w.js";import{t as a}from"./DocsPage-F0VrNYfv.js";import{t as o}from"./HeaderMenu-D_gj_b_i.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`privacy`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/QrCode-DayNjdR9.js b/dist/assets/QrCode-BOyg-J5s.js similarity index 99% rename from dist/assets/QrCode-DayNjdR9.js rename to dist/assets/QrCode-BOyg-J5s.js index c23d6e8..eec7579 100644 --- a/dist/assets/QrCode-DayNjdR9.js +++ b/dist/assets/QrCode-BOyg-J5s.js @@ -1,4 +1,4 @@ -import{H as e,M as t,b as n,et as r,ft as i,k as a}from"./client-E8nWUy_w.js";import{G as o,K as s,M as c,N as l,r as u,t as d}from"./light-Dq0naAvE.js";function f(e){return{borderRadius:e.borderRadius}}var p={name:`QrCode`,common:d,self:f},m;(function(e){class t{static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,o=40,s=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=o&&o<=t.MAX_VERSION)||s<-1||s>7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,` +import{M as e,b as t,ft as n,ht as r,k as i,q as a}from"./client-BBfBDiVG.js";import{G as o,J as s,K as c,M as l,N as u,X as d,Y as f,Z as p,r as m,t as h}from"./light-DqAV2QCd.js";import{t as g}from"./use-merged-state-DRpgLPWV.js";import{i as _,n as v,r as y}from"./use-form-item-ajbhslgm.js";import{U as b}from"./index-DnUl8nHF.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,` transition: transform .1s var(--n-bezier), color .3s var(--n-bezier); diff --git a/dist/assets/Remove-ChrN075i.js b/dist/assets/Remove-CjPWnsYa.js similarity index 83% rename from dist/assets/Remove-ChrN075i.js rename to dist/assets/Remove-CjPWnsYa.js index a41cce5..a29c3f6 100644 --- a/dist/assets/Remove-ChrN075i.js +++ b/dist/assets/Remove-CjPWnsYa.js @@ -1,4 +1,4 @@ -import{M as e,k as t}from"./client-E8nWUy_w.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` +import{M as e,k as t}from"./client-BBfBDiVG.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/dist/assets/ReviewsView-B4RQglLO.js b/dist/assets/ReviewsView-B_r6_KYM.js similarity index 81% rename from dist/assets/ReviewsView-B4RQglLO.js rename to dist/assets/ReviewsView-B_r6_KYM.js index b6fd9e3..30d1aa9 100644 --- a/dist/assets/ReviewsView-B4RQglLO.js +++ b/dist/assets/ReviewsView-B_r6_KYM.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,q as u,tt as d,w as f,x as p}from"./client-E8nWUy_w.js";import{t as m}from"./Card-D_Y8VzWl.js";import{t as h}from"./Button-Cr3XRKS5.js";import{t as g}from"./Tag-Bb42yLml.js";import{t as _}from"./use-message-BD6Lw0qA.js";import{t as v}from"./Flex-7TW8da2P.js";import{t as y}from"./Rate-DJirJCYw.js";import{n as b}from"./es-CBOun6Az.js";import{t as x}from"./HeaderMenu-D_gj_b_i.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(l({__name:`ReviewsPage`,setup(l){let S=b(),O=_(),k=s([]);async function A(){let e=await S.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await S.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,l)=>(r(),f(c,null,[p(`div`,C,[p(`div`,w,[p(`div`,T,[l[1]||=p(`h1`,null,`Отзывы`,-1),i(o(h),{onClick:A},{default:d(()=>[...l[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),a(o(m),{key:0},{default:d(()=>[...l[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),f(c,null,u(k.value,s=>(r(),a(o(m),{key:s.id,class:`review-card`},{default:d(()=>[i(o(v),{justify:`space-between`,align:`center`},{default:d(()=>[p(`div`,null,[p(`div`,E,n(s.gameName),1),p(`strong`,null,n(s.teamName),1)]),i(o(g),null,{default:d(()=>[t(n(s.status),1)]),_:2},1024)]),_:2},1024),i(o(y),{value:s.rating,readonly:``},null,8,[`value`]),p(`p`,D,n(s.text),1),s.status==`pending`?(r(),a(o(v),{key:0,justify:`end`},{default:d(()=>[i(o(h),{type:`success`,onClick:e=>j(s,`approved`)},{default:d(()=>[...l[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`rejected`)},{default:d(()=>[...l[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):s.status==`approved`?(r(),a(o(v),{key:1,justify:`end`},{default:d(()=>[i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`hidden`)},{default:d(()=>[...l[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),i(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=l({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),a(O))}});export{k as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,q as u,tt as d,w as f,x as p}from"./client-BBfBDiVG.js";import{t as m}from"./Card-Cze8lALH.js";import{t as h}from"./Button-DAM1cqtA.js";import{t as g}from"./Tag-YulbLI_X.js";import{t as _}from"./use-message-DyQW5yAL.js";import{t as v}from"./Flex-BIB1uWhx.js";import{t as y}from"./Rate-CNH6p4IB.js";import{n as b}from"./es-D90fN3qV.js";import{t as x}from"./HeaderMenu-CqYU4ywX.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(l({__name:`ReviewsPage`,setup(l){let S=b(),O=_(),k=s([]);async function A(){let e=await S.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await S.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,l)=>(r(),f(c,null,[p(`div`,C,[p(`div`,w,[p(`div`,T,[l[1]||=p(`h1`,null,`Отзывы`,-1),i(o(h),{onClick:A},{default:d(()=>[...l[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),a(o(m),{key:0},{default:d(()=>[...l[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),f(c,null,u(k.value,s=>(r(),a(o(m),{key:s.id,class:`review-card`},{default:d(()=>[i(o(v),{justify:`space-between`,align:`center`},{default:d(()=>[p(`div`,null,[p(`div`,E,n(s.gameName),1),p(`strong`,null,n(s.teamName),1)]),i(o(g),null,{default:d(()=>[t(n(s.status),1)]),_:2},1024)]),_:2},1024),i(o(y),{value:s.rating,readonly:``},null,8,[`value`]),p(`p`,D,n(s.text),1),s.status==`pending`?(r(),a(o(v),{key:0,justify:`end`},{default:d(()=>[i(o(h),{type:`success`,onClick:e=>j(s,`approved`)},{default:d(()=>[...l[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`rejected`)},{default:d(()=>[...l[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):s.status==`approved`?(r(),a(o(v),{key:1,justify:`end`},{default:d(()=>[i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`hidden`)},{default:d(()=>[...l[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),i(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=l({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),a(O))}});export{k as default}; \ No newline at end of file diff --git a/dist/assets/ScenarioView-BFwr5qHX.js b/dist/assets/ScenarioView-CPAdhwjt.js similarity index 90% rename from dist/assets/ScenarioView-BFwr5qHX.js rename to dist/assets/ScenarioView-CPAdhwjt.js index 1449c12..a6a5586 100644 --- a/dist/assets/ScenarioView-BFwr5qHX.js +++ b/dist/assets/ScenarioView-CPAdhwjt.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,l as u,q as d,tt as f,w as p,x as m}from"./client-E8nWUy_w.js";import{t as h}from"./Tag-Bb42yLml.js";import{t as g}from"./use-message-BD6Lw0qA.js";import{t as _}from"./Rate-DJirJCYw.js";import{n as v}from"./es-CBOun6Az.js";import{t as y}from"./HeaderMenu-D_gj_b_i.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={class:`scenario-author`},P={key:0,class:`reviews-section`},F={class:`review-heading`},I={class:`review-game`},L={class:`review-text`},R=b(l({__name:`ScenarioPage`,setup(l){let b=g(),R=v(),z=u().params.id,B=s([]),V=s({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function H(e){let t=await R.GetScenario({id:e});if(t.error!=``){b.error(t.error);return}V.value=t.scenario}H(Number(z));async function U(e){let t=await R.GetScenarioReviews({scenarioId:e});if(t.error!=``){b.error(t.error);return}B.value=t.reviews||[]}return U(Number(z)),(s,l)=>(r(),p(c,null,[m(`div`,x,[m(`div`,S,[m(`section`,C,[m(`div`,w,[l[0]||=m(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),m(`h1`,T,n(V.value.name),1)]),m(`div`,E,[m(`img`,{class:`scenario-image`,src:V.value.image,alt:V.value.name},null,8,D)]),m(`div`,O,[m(`p`,k,n(V.value.description),1),m(`div`,A,[V.value.reviewsCount?(r(),a(o(_),{key:0,value:V.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),V.value.reviewsCount?(r(),p(`span`,j,n(V.value.averageRating?.toFixed(1))+` · `+n(V.value.reviewsCount)+` отзывов`,1)):(r(),p(`span`,M,`Пока нет оценок`))]),m(`div`,N,[i(o(h),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(` Автор: `+n(V.value.author?.username),1)]),_:1})]),B.value.length?(r(),p(`section`,P,[l[1]||=m(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),p(c,null,d(B.value,e=>(r(),p(`article`,{key:e.id,class:`review-card`},[m(`div`,F,[m(`strong`,null,n(e.teamName),1),i(o(_),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),m(`div`,I,n(e.gameName),1),m(`p`,L,n(e.text),1)]))),128))])):e(``,!0)])])])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-1fc7bf2a`]]),z=l({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),a(R))}});export{z as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,l as u,q as d,tt as f,w as p,x as m}from"./client-BBfBDiVG.js";import{t as h}from"./Tag-YulbLI_X.js";import{t as g}from"./use-message-DyQW5yAL.js";import{t as _}from"./Rate-CNH6p4IB.js";import{n as v}from"./es-D90fN3qV.js";import{t as y}from"./HeaderMenu-CqYU4ywX.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={class:`scenario-author`},P={key:0,class:`reviews-section`},F={class:`review-heading`},I={class:`review-game`},L={class:`review-text`},R=b(l({__name:`ScenarioPage`,setup(l){let b=g(),R=v(),z=u().params.id,B=s([]),V=s({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function H(e){let t=await R.GetScenario({id:e});if(t.error!=``){b.error(t.error);return}V.value=t.scenario}H(Number(z));async function U(e){let t=await R.GetScenarioReviews({scenarioId:e});if(t.error!=``){b.error(t.error);return}B.value=t.reviews||[]}return U(Number(z)),(s,l)=>(r(),p(c,null,[m(`div`,x,[m(`div`,S,[m(`section`,C,[m(`div`,w,[l[0]||=m(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),m(`h1`,T,n(V.value.name),1)]),m(`div`,E,[m(`img`,{class:`scenario-image`,src:V.value.image,alt:V.value.name},null,8,D)]),m(`div`,O,[m(`p`,k,n(V.value.description),1),m(`div`,A,[V.value.reviewsCount?(r(),a(o(_),{key:0,value:V.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),V.value.reviewsCount?(r(),p(`span`,j,n(V.value.averageRating?.toFixed(1))+` · `+n(V.value.reviewsCount)+` отзывов`,1)):(r(),p(`span`,M,`Пока нет оценок`))]),m(`div`,N,[i(o(h),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(` Автор: `+n(V.value.author?.username),1)]),_:1})]),B.value.length?(r(),p(`section`,P,[l[1]||=m(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),p(c,null,d(B.value,e=>(r(),p(`article`,{key:e.id,class:`review-card`},[m(`div`,F,[m(`strong`,null,n(e.teamName),1),i(o(_),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),m(`div`,I,n(e.gameName),1),m(`p`,L,n(e.text),1)]))),128))])):e(``,!0)])])])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-1fc7bf2a`]]),z=l({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),a(R))}});export{z as default}; \ No newline at end of file diff --git a/dist/assets/ScenariosEditorView-DfUIMGGf.js b/dist/assets/ScenariosEditorView-CWgs-slH.js similarity index 96% rename from dist/assets/ScenariosEditorView-DfUIMGGf.js rename to dist/assets/ScenariosEditorView-CWgs-slH.js index b81176d..bc8e69d 100644 --- a/dist/assets/ScenariosEditorView-DfUIMGGf.js +++ b/dist/assets/ScenariosEditorView-CWgs-slH.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,J as i,O as a,S as o,_t as s,b as c,ft as l,h as u,k as d,l as f,q as p,tt as m,w as h,x as g}from"./client-E8nWUy_w.js";import{t as _}from"./Card-D_Y8VzWl.js";import{t as v}from"./Modal-D1InIULi.js";import{t as y}from"./Button-Cr3XRKS5.js";import{n as ee,t as b}from"./Upload-UneDPhCs.js";import{n as te,r as x,t as ne}from"./PlaceBlock-C4rcxpbT.js";import{t as S}from"./Input-BkQuBf9P.js";import{t as re}from"./Tag-Bb42yLml.js";import{t as ie}from"./Alert-BwySuMew.js";import{t as ae}from"./use-message-BD6Lw0qA.js";import{t as C}from"./Space-LOHABRdD.js";import{t as w}from"./Flex-7TW8da2P.js";import{t as T}from"./text-DLGdGDO6.js";import{n as oe,t as se}from"./index-DrmfX-S2.js";import{n as ce,t as le}from"./es-CBOun6Az.js";import{t as ue}from"./HeaderMenu-D_gj_b_i.js";import{t as E}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as de}from"./Settings-BsptM00R.js";import{t as fe}from"./binary_client-CtnHO7V-.js";import{r as pe}from"./application-Cen-5gWT.js";var D={key:1,class:`place-block`},O={class:`message-header`},k={class:`message-content`},A={key:0},j={class:`correct-answer`},M={key:1,class:`intro-empty`},N={key:3,class:`place-block`},P={class:`slot-block`},me=E(d({__name:`QuestionBlock`,props:{newQuestionCode:{type:String},newQuestionText:{type:String},newQuestionAnswer:{type:String},question:{type:Object},mode:{type:String,required:!0}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(o,{emit:c}){let l=o,d=c,f=e=>{d(`update:newQuestionCode`,e)},p=e=>{d(`update:newQuestionText`,e)},_=e=>{d(`update:newQuestionAnswer`,e)},v=e=>{d(`update:mode`,e)};return(c,d)=>(r(),h(u,null,[o.mode==`mini-add`?(r(),h(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:d[0]||=e=>v(`add`)},[...d[5]||=[g(`p`,{class:`place-image-plus`},`+`,-1)]])):e(``,!0),o.mode==`add`?(r(),h(`div`,D,[a(s(C),{vertical:``},{default:m(()=>[a(s(x),null,{default:m(()=>[a(s(S),{style:{width:`25%`},value:o.newQuestionCode,"onUpdate:value":f,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(s(S),{style:{width:`75%`},value:o.newQuestionText,"onUpdate:value":p,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),a(s(S),{value:o.newQuestionAnswer,"onUpdate:value":_,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),i(c.$slots,`default`,{},void 0,!0)]),_:3})])):e(``,!0),o.mode==`show-editor`?(r(),h(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:d[1]||=e=>v(`edit`)},[g(`div`,O,n(l.question?.code)+`: `+n(l.question?.text),1),d[8]||=g(`hr`,{class:`hr`},null,-1),g(`div`,k,[l.question?.answer?(r(),h(`span`,A,[d[6]||=t(` Ответ:`,-1),d[7]||=g(`br`,null,null,-1),g(`span`,j,n(l.question.answer),1)])):(r(),h(`span`,M,`Ответ не задан`))])])):e(``,!0),o.mode==`edit`?(r(),h(`div`,N,[a(s(C),{vertical:``},{default:m(()=>[a(s(x),null,{default:m(()=>[a(s(S),{style:{width:`25%`},value:l.question.code,"onUpdate:value":d[2]||=e=>l.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(s(S),{style:{width:`75%`},value:l.question.text,"onUpdate:value":d[3]||=e=>l.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),d[10]||=g(`p`,{class:`settings-header`},`Правильный ответ`,-1),a(s(S),{value:l.question.answer,"onUpdate:value":d[4]||=e=>l.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),a(s(T),{class:`hint`,depth:`3`},{default:m(()=>[...d[9]||=[t(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),g(`div`,P,[i(c.$slots,`default`,{},void 0,!0)])]),_:3})])):e(``,!0)],64))}}),[[`__scopeId`,`data-v-7bd7e4c0`]]),he={class:`width700`},ge={class:`places-container`},_e={class:`settings-block`},ve=[`src`],ye=[`src`],be=[`aria-label`],F=E(d({__name:`ScenariosEditorPage`,setup(i){let d=se(),x=ce(),E=fe(),D=f().params.id,O=l(!1),k=l(``),A=l(``),j=l(!1),M=ae(),N=l([]),P=l({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0}),F=l([]),I=l(!1),L=l({text:``,audio:``}),R=l(`show-editor`),z=l({text:``,video:``}),B=l([]),V=l(!1),xe=c(()=>pe(z.value.video));function H(){z.value={text:``,video:``,...P.value.story?.conclusion},B.value=[]}function Se(){z.value.video=``,B.value=[]}async function Ce(e=!1){V.value=!0;try{let t=qe(z.value.video);if(!e&&B.value.length){let e=B.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+P.value.id+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){M.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:z.value.text,video:t},r=await x.UpdateScenarioConclusion({id:P.value.id,conclusion:n});if(r.error){M.error(r.error);return}P.value.story.conclusion=n,H(),M.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{M.error(`Не удалось сохранить закрывашку`)}finally{V.value=!1}}let we=c(()=>P.value.story?.places||[]),Te=l(null),U=new Map;function Ee(e){let t=e?we.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Te.value;if(!n||!r){M.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let De=c(()=>P.value.story?.questions||[]);async function W(e){let t=await x.GetFullScenario({id:e});if(t.error!=``){M.error(t.error);return}P.value=t.scenario,H(),P.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),P.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),L.value=P.value.story?.introduction||{text:``,audio:``},R.value=`show-editor`}W(Number(D));async function Oe(e){let t=await x.DeleteScenario({id:e});if(t.error!=``){M.error(t.error);return}oe.push(`/scenarios`)}async function ke(e){let t=await x.PublicScenario({id:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),k.value=``,O.value=!1}async function Ae(e,t){let n=new Date().toISOString(),r=await x.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,location:``,format:`online`,startAt:n,scenarioId:t});if(r.error!=``){M.error(r.error);return}let i=await x.AddTeam({name:`Тестовая команда`,captainEmail:``,gameId:r.id});if(i.error!=``){M.error(i.error);return}oe.push(`/team-story/`+i.id+`?password=`+i.password)}async function je(e){let t=await x.DraftScenario({id:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),k.value=``,O.value=!1}async function Me(){j.value=!0;try{let{blob:e,filename:t}=await E.downloadScenarioArchive(P.value.id),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),M.success(`Архив сценария скачан`)}catch(e){M.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{j.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await x.UploadFile({filename:t,data:Pe(r)});return i.error==``?{filename:i.filename||``,fileType:i.file_type||``}:(M.error(i.error),{filename:``,fileType:``})}async function Ne(){let e=``;if(N.value&&N.value.length>0){let t=N.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.id+`_`+t.name);if(n.filename===``)return;e=n.filename}let t=await x.UpdateScenario({id:P.value.id,name:P.value.name,description:P.value.description,image:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),O.value=!1}function Pe(e){let t=Fe(e);return btoa(t)}function Fe(e){let t=``;for(let n=0;ne.code==n.code)==null){let t=await x.AddScenarioPlace({id:e.id,place:{code:n.code,name:n.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(t.error!=``){M.error(t.error);return}}}async function ze(e){await W(Number(D)),e.mode=`show-editor`}async function Be(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.id+`_place_`+e.code+`_`+t.name);if(n.filename===``)return;e.image=n.filename}let t=e.applications||[];for(let n of t){if(!n.fileList||n.fileList.length==0)continue;let t=n.fileList[0].file||null;if(t==null)continue;let r=await G(t,`scenarios_`+P.value.id+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Re(P.value,e);let n=await x.UpdateScenarioPlace({id:P.value.id,code:e.oldCode,place:e});if(n.error!=``){M.error(n.error);return}await W(Number(D)),e.mode=`show-editor`}async function Ve(e){let t=await x.DeleteScenarioPlace({id:P.value.id,code:e.oldCode});if(t.error!=``){M.error(t.error);return}await W(Number(D))}let X=l(``),Z=l(``),Q=l(``),$=l(`mini-add`);async function He(){let e=await x.AddScenarioQuestion({id:P.value.id,question:{code:X.value,text:Z.value,answer:Q.value}});if(e.error!=``){M.error(e.error);return}await W(Number(D)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Ue(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function We(e){let t=await x.UpdateScenarioQuestion({id:P.value.id,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}});if(t.error!=``){M.error(t.error);return}await W(Number(D)),e.mode=`show-editor`}async function Ge(e){await W(Number(D)),e.mode=`show-editor`}async function Ke(e){let t=await x.DeleteScenarioQuestion({id:P.value.id,code:e.oldCode});if(t.error!=``){M.error(t.error);return}await W(Number(D))}function qe(e){return e&&e.split(`/`).pop()||``}async function Je(){let e=``;if(L.value.fileList&&L.value.fileList.length>0){let t=L.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+P.value.id+`_intro_`+t.name)).filename,e===``))return}else e=qe(L.value.audio);let t=await x.UpdateScenarioIntro({id:P.value.id,introduction:{text:L.value.text,audio:e}});if(t.error!=``){M.error(t.error);return}await W(Number(D))}async function Ye(e=!1){I.value=!0;try{let t=``;if(!e){let e=F.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+P.value.id+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){M.error(`Фон дела должен быть изображением`);return}t=n.filename}let n=await x.UpdateScenarioBackground({id:P.value.id,background:t});if(n.error){M.error(n.error);return}await W(Number(D)),F.value=[]}catch{M.error(`Не удалось сохранить фон дела`)}finally{I.value=!1}}async function Xe(){await W(Number(D))}function Ze(){let e=[{text:`Настя, ты просто ослепительна сегодня!`,nameForm:`Настя`},{text:`У Насти невероятный вкус!`,nameForm:`Насти`},{text:`Настенька, твоя улыбка делает мир ярче.`,nameForm:`Настенька`},{text:`С Настей всегда интересно общаться.`,nameForm:`Настей`},{text:`Настя, ты — источник вдохновения для всех вокруг.`,nameForm:`Настя`},{text:`Мне нравится, как Настя смотрит на мир.`,nameForm:`Настя`},{text:`Настюха, ты супер!`,nameForm:`Настюха`},{text:`Талант Насти поражает!`,nameForm:`Насти`},{text:`Настя, твоя энергия заряжает батарейки!`,nameForm:`Настя`},{text:`С Настей хочется проводить каждую минуту.`,nameForm:`Настей`},{text:`Настенька, ты — самое красивое, что случилось в этом мире.`,nameForm:`Настенька`},{text:`У Насти золотое сердце.`,nameForm:`Насти`}];return e[Math.floor(Math.random()*e.length)].text}return(i,c)=>(r(),h(u,null,[g(`div`,{ref_key:`scrollContainer`,ref:Te,class:`center-block-custom`},[g(`div`,he,[g(`div`,ge,[P.value.status==`public`?(r(),o(s(ie),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:m(()=>[...c[39]||=[t(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):e(``,!0),s(d).user?.id==2?(r(),o(s(ie),{key:1,title:Ze(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):e(``,!0),g(`div`,_e,[t(` Точек: `+n(P.value.story?.places?.length)+`, Вопросов: `+n(P.value.story?.questions?.length)+` `,1),a(s(y),{quaternary:``,onClick:c[0]||=e=>O.value=!0,class:`settings-button`},{default:m(()=>[a(s(le),{class:`settings-icon`},{default:m(()=>[a(s(de))]),_:1}),c[40]||=t(` Настройки `,-1)]),_:1})]),a(s(_),{title:`Фон дела`},{default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[P.value.story?.background?(r(),h(`img`,{key:0,src:P.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,ve)):e(``,!0),a(s(b),{"file-list":F.value,"onUpdate:fileList":c[1]||=e=>F.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:I.value},{default:m(()=>[a(s(y),{disabled:I.value},{default:m(()=>[...c[41]||=[t(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(s(w),null,{default:m(()=>[a(s(y),{loading:I.value,disabled:!F.value.length||I.value,onClick:c[2]||=e=>Ye()},{default:m(()=>[...c[42]||=[t(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),P.value.story?.background?(r(),o(s(y),{key:0,disabled:I.value,onClick:c[3]||=e=>Ye(!0)},{default:m(()=>[...c[43]||=[t(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1})]),_:1}),a(te,{introduction:L.value,mode:R.value,"onUpdate:mode":c[6]||=e=>R.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[4]||=e=>Xe()},{default:m(()=>[...c[44]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[5]||=e=>Je()},{default:m(()=>[...c[45]||=[t(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),a(s(_),{title:`Закрывашка сценария`},{default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[a(s(T),{depth:`3`},{default:m(()=>[...c[46]||=[t(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),a(s(S),{value:z.value.text,"onUpdate:value":c[7]||=e=>z.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:V.value},null,8,[`value`,`disabled`]),xe.value?(r(),h(`video`,{key:0,src:xe.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,ye)):e(``,!0),z.value.video?(r(),o(s(y),{key:1,disabled:V.value,onClick:c[8]||=e=>Se()},{default:m(()=>[...c[47]||=[t(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(s(b),{"file-list":B.value,"onUpdate:fileList":c[9]||=e=>B.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:V.value},{default:m(()=>[a(s(y),{disabled:V.value},{default:m(()=>[...c[48]||=[t(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(s(w),{justify:`end`},{default:m(()=>[P.value.story?.conclusion?.text||P.value.story?.conclusion?.video?(r(),o(s(y),{key:0,disabled:V.value,onClick:c[10]||=e=>Ce(!0)},{default:m(()=>[...c[49]||=[t(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(s(y),{disabled:V.value,onClick:c[11]||=e=>H()},{default:m(()=>[...c[50]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(s(y),{loading:V.value,disabled:V.value||!P.value.story,onClick:c[12]||=e=>Ce()},{default:m(()=>[...c[51]||=[t(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),c[62]||=g(`div`,{class:`questions-header`},`Вопросы дела`,-1),a(me,{mode:$.value,"onUpdate:mode":c[15]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":c[16]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":c[17]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":c[18]||=e=>Q.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[13]||=e=>Ue()},{default:m(()=>[...c[52]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[14]||=e=>He(),disabled:!X.value},{default:m(()=>[...c[53]||=[t(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(r(!0),h(u,null,p(De.value,e=>(r(),o(me,{question:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.oldCode??e.code??``},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:t=>Ke(e),type:`error`,ghost:``},{default:m(()=>[...c[54]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>Ge(e)},{default:m(()=>[...c[55]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>We(e),disabled:e.code==``},{default:m(()=>[...c[56]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),a(ne,{mode:Y.value,"onUpdate:mode":c[21]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":c[22]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":c[23]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":c[24]||=e=>J.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[19]||=e=>Le()},{default:m(()=>[...c[57]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[20]||=e=>Ie(),disabled:!K.value},{default:m(()=>[...c[58]||=[t(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(r(!0),h(u,null,p(we.value,e=>(r(),h(`div`,{key:e.oldCode??e.code??``,ref_for:!0,ref:t=>t?s(U).set(e,t):s(U).delete(e),class:`place-card`,tabindex:`-1`,role:`group`,"aria-label":`${e.code}: ${e.name}`},[a(ne,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,onNavigate:Ee},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:t=>Ve(e),type:`error`,ghost:``},{default:m(()=>[...c[59]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>ze(e)},{default:m(()=>[...c[60]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>Be(e),disabled:e.code==``},{default:m(()=>[...c[61]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,be))),128))])])],512),a(s(v),{show:O.value,"onUpdate:show":c[38]||=e=>O.value=e},{default:m(()=>[a(s(_),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":m(()=>[a(s(y),{onClick:c[25]||=e=>O.value=!1},{default:m(()=>[...c[63]||=[t(` x `,-1)]]),_:1})]),footer:m(()=>[...c[87]||=[]]),default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[c[76]||=g(`p`,null,`Название`,-1),a(s(S),{value:P.value.name,"onUpdate:value":c[26]||=e=>P.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),c[77]||=g(`p`,{class:`settings-header`},`Описание`,-1),a(s(S),{value:P.value.description,"onUpdate:value":c[27]||=e=>P.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),c[78]||=g(`p`,{class:`settings-header`},`Картинка`,-1),a(s(S),{value:P.value.image,"onUpdate:value":c[28]||=e=>P.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),a(s(b),{"directory-dnd":``,max:1,"file-list":N.value,"onUpdate:fileList":c[29]||=e=>N.value=e},{default:m(()=>[a(s(ee),null,{default:m(()=>[a(s(T),{style:{"font-size":`16px`}},{default:m(()=>[...c[64]||=[t(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),a(s(y),{onClick:c[30]||=e=>Ne(),ghost:``},{default:m(()=>[...c[65]||=[t(` Сохранить изменения `,-1)]]),_:1}),c[79]||=g(`hr`,{class:`settings-hr`},null,-1),c[80]||=g(`p`,{class:`settings-header`},`Архив сценария`,-1),c[81]||=g(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),a(s(y),{loading:j.value,disabled:!P.value.id,ghost:``,onClick:c[31]||=e=>Me()},{default:m(()=>[...c[66]||=[t(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),c[82]||=g(`hr`,{class:`settings-hr`},null,-1),c[83]||=g(`p`,null,`Создать тестовую игру`,-1),a(s(y),{onClick:c[32]||=e=>Ae(P.value.name||``,P.value.id),ghost:``},{default:m(()=>[...c[67]||=[t(` Создать игру `,-1)]]),_:1}),c[84]||=g(`hr`,{class:`settings-hr`},null,-1),c[85]||=g(`p`,null,`Публикация`,-1),g(`p`,null,[P.value.status==`public`?(r(),o(s(re),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:m(()=>[...c[68]||=[t(` Опубликовано `,-1)]]),_:1})):e(``,!0),P.value.status==`draft`?(r(),o(s(re),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:m(()=>[...c[69]||=[t(` В разработке `,-1)]]),_:1})):e(``,!0)]),g(`p`,null,[c[70]||=t(` Введите название сценария `,-1),a(s(T),{class:`name-text`,strong:``},{default:m(()=>[t(n(P.value.name),1)]),_:1})]),a(s(S),{value:k.value,"onUpdate:value":c[33]||=e=>k.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),P.value.status==`public`?e(``,!0):(r(),o(s(y),{key:0,onClick:c[34]||=e=>ke(P.value.id),ghost:``,disabled:k.value!=P.value.name},{default:m(()=>[...c[71]||=[t(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),P.value.status==`draft`?e(``,!0):(r(),o(s(y),{key:1,onClick:c[35]||=e=>je(P.value.id),ghost:``,disabled:k.value!=P.value.name},{default:m(()=>[...c[72]||=[t(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),c[86]||=g(`hr`,{class:`settings-hr`},null,-1),g(`p`,null,[c[73]||=t(` Введите название сценария `,-1),a(s(T),{class:`name-text`,strong:``},{default:m(()=>[t(n(P.value.name),1)]),_:1}),c[74]||=t(` чтобы удалить его `,-1)]),a(s(S),{value:A.value,"onUpdate:value":c[36]||=e=>A.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a(s(y),{onClick:c[37]||=e=>Oe(P.value.id),type:`error`,ghost:``,disabled:A.value!=P.value.name},{default:m(()=>[...c[75]||=[t(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(ue,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-79f033d7`]]),I=d({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(r(),o(F))}});export{I as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,J as i,O as a,S as o,_t as s,b as c,ft as l,h as u,k as d,l as f,q as p,tt as m,w as h,x as g}from"./client-BBfBDiVG.js";import{t as _}from"./Card-Cze8lALH.js";import{t as v}from"./Modal-DbiX6wvm.js";import{t as y}from"./Button-DAM1cqtA.js";import{n as ee,t as b}from"./Upload-ByR1zA4h.js";import{n as te,r as x,t as ne}from"./PlaceBlock-C1FV-h-w.js";import{t as S}from"./Input-2L35DdEz.js";import{t as re}from"./Tag-YulbLI_X.js";import{t as ie}from"./Alert-DsjLN_Ag.js";import{t as ae}from"./use-message-DyQW5yAL.js";import{t as C}from"./Space-_Xn7R9gX.js";import{t as w}from"./Flex-BIB1uWhx.js";import{t as T}from"./text-ERnkmyYu.js";import{n as oe,t as se}from"./index-DnUl8nHF.js";import{n as ce,t as le}from"./es-D90fN3qV.js";import{t as ue}from"./HeaderMenu-CqYU4ywX.js";import{t as E}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as de}from"./Settings-DDsOcEqz.js";import{t as fe}from"./binary_client-CGYCXafS.js";import{r as pe}from"./application-DO6jjJW-.js";var D={key:1,class:`place-block`},O={class:`message-header`},k={class:`message-content`},A={key:0},j={class:`correct-answer`},M={key:1,class:`intro-empty`},N={key:3,class:`place-block`},P={class:`slot-block`},me=E(d({__name:`QuestionBlock`,props:{newQuestionCode:{type:String},newQuestionText:{type:String},newQuestionAnswer:{type:String},question:{type:Object},mode:{type:String,required:!0}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(o,{emit:c}){let l=o,d=c,f=e=>{d(`update:newQuestionCode`,e)},p=e=>{d(`update:newQuestionText`,e)},_=e=>{d(`update:newQuestionAnswer`,e)},v=e=>{d(`update:mode`,e)};return(c,d)=>(r(),h(u,null,[o.mode==`mini-add`?(r(),h(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:d[0]||=e=>v(`add`)},[...d[5]||=[g(`p`,{class:`place-image-plus`},`+`,-1)]])):e(``,!0),o.mode==`add`?(r(),h(`div`,D,[a(s(C),{vertical:``},{default:m(()=>[a(s(x),null,{default:m(()=>[a(s(S),{style:{width:`25%`},value:o.newQuestionCode,"onUpdate:value":f,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(s(S),{style:{width:`75%`},value:o.newQuestionText,"onUpdate:value":p,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),a(s(S),{value:o.newQuestionAnswer,"onUpdate:value":_,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),i(c.$slots,`default`,{},void 0,!0)]),_:3})])):e(``,!0),o.mode==`show-editor`?(r(),h(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:d[1]||=e=>v(`edit`)},[g(`div`,O,n(l.question?.code)+`: `+n(l.question?.text),1),d[8]||=g(`hr`,{class:`hr`},null,-1),g(`div`,k,[l.question?.answer?(r(),h(`span`,A,[d[6]||=t(` Ответ:`,-1),d[7]||=g(`br`,null,null,-1),g(`span`,j,n(l.question.answer),1)])):(r(),h(`span`,M,`Ответ не задан`))])])):e(``,!0),o.mode==`edit`?(r(),h(`div`,N,[a(s(C),{vertical:``},{default:m(()=>[a(s(x),null,{default:m(()=>[a(s(S),{style:{width:`25%`},value:l.question.code,"onUpdate:value":d[2]||=e=>l.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(s(S),{style:{width:`75%`},value:l.question.text,"onUpdate:value":d[3]||=e=>l.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),d[10]||=g(`p`,{class:`settings-header`},`Правильный ответ`,-1),a(s(S),{value:l.question.answer,"onUpdate:value":d[4]||=e=>l.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),a(s(T),{class:`hint`,depth:`3`},{default:m(()=>[...d[9]||=[t(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),g(`div`,P,[i(c.$slots,`default`,{},void 0,!0)])]),_:3})])):e(``,!0)],64))}}),[[`__scopeId`,`data-v-7bd7e4c0`]]),he={class:`width700`},ge={class:`places-container`},_e={class:`settings-block`},ve=[`src`],ye=[`src`],be=[`aria-label`],F=E(d({__name:`ScenariosEditorPage`,setup(i){let d=se(),x=ce(),E=fe(),D=f().params.id,O=l(!1),k=l(``),A=l(``),j=l(!1),M=ae(),N=l([]),P=l({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0}),F=l([]),I=l(!1),L=l({text:``,audio:``}),R=l(`show-editor`),z=l({text:``,video:``}),B=l([]),V=l(!1),xe=c(()=>pe(z.value.video));function H(){z.value={text:``,video:``,...P.value.story?.conclusion},B.value=[]}function Se(){z.value.video=``,B.value=[]}async function Ce(e=!1){V.value=!0;try{let t=qe(z.value.video);if(!e&&B.value.length){let e=B.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+P.value.id+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){M.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:z.value.text,video:t},r=await x.UpdateScenarioConclusion({id:P.value.id,conclusion:n});if(r.error){M.error(r.error);return}P.value.story.conclusion=n,H(),M.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{M.error(`Не удалось сохранить закрывашку`)}finally{V.value=!1}}let we=c(()=>P.value.story?.places||[]),Te=l(null),U=new Map;function Ee(e){let t=e?we.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Te.value;if(!n||!r){M.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let De=c(()=>P.value.story?.questions||[]);async function W(e){let t=await x.GetFullScenario({id:e});if(t.error!=``){M.error(t.error);return}P.value=t.scenario,H(),P.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),P.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),L.value=P.value.story?.introduction||{text:``,audio:``},R.value=`show-editor`}W(Number(D));async function Oe(e){let t=await x.DeleteScenario({id:e});if(t.error!=``){M.error(t.error);return}oe.push(`/scenarios`)}async function ke(e){let t=await x.PublicScenario({id:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),k.value=``,O.value=!1}async function Ae(e,t){let n=new Date().toISOString(),r=await x.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,location:``,format:`online`,startAt:n,scenarioId:t});if(r.error!=``){M.error(r.error);return}let i=await x.AddTeam({name:`Тестовая команда`,captainEmail:``,gameId:r.id});if(i.error!=``){M.error(i.error);return}oe.push(`/team-story/`+i.id+`?password=`+i.password)}async function je(e){let t=await x.DraftScenario({id:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),k.value=``,O.value=!1}async function Me(){j.value=!0;try{let{blob:e,filename:t}=await E.downloadScenarioArchive(P.value.id),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),M.success(`Архив сценария скачан`)}catch(e){M.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{j.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await x.UploadFile({filename:t,data:Pe(r)});return i.error==``?{filename:i.filename||``,fileType:i.file_type||``}:(M.error(i.error),{filename:``,fileType:``})}async function Ne(){let e=``;if(N.value&&N.value.length>0){let t=N.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.id+`_`+t.name);if(n.filename===``)return;e=n.filename}let t=await x.UpdateScenario({id:P.value.id,name:P.value.name,description:P.value.description,image:e});if(t.error!=``){M.error(t.error);return}await W(Number(D)),O.value=!1}function Pe(e){let t=Fe(e);return btoa(t)}function Fe(e){let t=``;for(let n=0;ne.code==n.code)==null){let t=await x.AddScenarioPlace({id:e.id,place:{code:n.code,name:n.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(t.error!=``){M.error(t.error);return}}}async function ze(e){await W(Number(D)),e.mode=`show-editor`}async function Be(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.id+`_place_`+e.code+`_`+t.name);if(n.filename===``)return;e.image=n.filename}let t=e.applications||[];for(let n of t){if(!n.fileList||n.fileList.length==0)continue;let t=n.fileList[0].file||null;if(t==null)continue;let r=await G(t,`scenarios_`+P.value.id+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Re(P.value,e);let n=await x.UpdateScenarioPlace({id:P.value.id,code:e.oldCode,place:e});if(n.error!=``){M.error(n.error);return}await W(Number(D)),e.mode=`show-editor`}async function Ve(e){let t=await x.DeleteScenarioPlace({id:P.value.id,code:e.oldCode});if(t.error!=``){M.error(t.error);return}await W(Number(D))}let X=l(``),Z=l(``),Q=l(``),$=l(`mini-add`);async function He(){let e=await x.AddScenarioQuestion({id:P.value.id,question:{code:X.value,text:Z.value,answer:Q.value}});if(e.error!=``){M.error(e.error);return}await W(Number(D)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Ue(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function We(e){let t=await x.UpdateScenarioQuestion({id:P.value.id,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}});if(t.error!=``){M.error(t.error);return}await W(Number(D)),e.mode=`show-editor`}async function Ge(e){await W(Number(D)),e.mode=`show-editor`}async function Ke(e){let t=await x.DeleteScenarioQuestion({id:P.value.id,code:e.oldCode});if(t.error!=``){M.error(t.error);return}await W(Number(D))}function qe(e){return e&&e.split(`/`).pop()||``}async function Je(){let e=``;if(L.value.fileList&&L.value.fileList.length>0){let t=L.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+P.value.id+`_intro_`+t.name)).filename,e===``))return}else e=qe(L.value.audio);let t=await x.UpdateScenarioIntro({id:P.value.id,introduction:{text:L.value.text,audio:e}});if(t.error!=``){M.error(t.error);return}await W(Number(D))}async function Ye(e=!1){I.value=!0;try{let t=``;if(!e){let e=F.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+P.value.id+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){M.error(`Фон дела должен быть изображением`);return}t=n.filename}let n=await x.UpdateScenarioBackground({id:P.value.id,background:t});if(n.error){M.error(n.error);return}await W(Number(D)),F.value=[]}catch{M.error(`Не удалось сохранить фон дела`)}finally{I.value=!1}}async function Xe(){await W(Number(D))}function Ze(){let e=[{text:`Настя, ты просто ослепительна сегодня!`,nameForm:`Настя`},{text:`У Насти невероятный вкус!`,nameForm:`Насти`},{text:`Настенька, твоя улыбка делает мир ярче.`,nameForm:`Настенька`},{text:`С Настей всегда интересно общаться.`,nameForm:`Настей`},{text:`Настя, ты — источник вдохновения для всех вокруг.`,nameForm:`Настя`},{text:`Мне нравится, как Настя смотрит на мир.`,nameForm:`Настя`},{text:`Настюха, ты супер!`,nameForm:`Настюха`},{text:`Талант Насти поражает!`,nameForm:`Насти`},{text:`Настя, твоя энергия заряжает батарейки!`,nameForm:`Настя`},{text:`С Настей хочется проводить каждую минуту.`,nameForm:`Настей`},{text:`Настенька, ты — самое красивое, что случилось в этом мире.`,nameForm:`Настенька`},{text:`У Насти золотое сердце.`,nameForm:`Насти`}];return e[Math.floor(Math.random()*e.length)].text}return(i,c)=>(r(),h(u,null,[g(`div`,{ref_key:`scrollContainer`,ref:Te,class:`center-block-custom`},[g(`div`,he,[g(`div`,ge,[P.value.status==`public`?(r(),o(s(ie),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:m(()=>[...c[39]||=[t(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):e(``,!0),s(d).user?.id==2?(r(),o(s(ie),{key:1,title:Ze(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):e(``,!0),g(`div`,_e,[t(` Точек: `+n(P.value.story?.places?.length)+`, Вопросов: `+n(P.value.story?.questions?.length)+` `,1),a(s(y),{quaternary:``,onClick:c[0]||=e=>O.value=!0,class:`settings-button`},{default:m(()=>[a(s(le),{class:`settings-icon`},{default:m(()=>[a(s(de))]),_:1}),c[40]||=t(` Настройки `,-1)]),_:1})]),a(s(_),{title:`Фон дела`},{default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[P.value.story?.background?(r(),h(`img`,{key:0,src:P.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,ve)):e(``,!0),a(s(b),{"file-list":F.value,"onUpdate:fileList":c[1]||=e=>F.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:I.value},{default:m(()=>[a(s(y),{disabled:I.value},{default:m(()=>[...c[41]||=[t(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(s(w),null,{default:m(()=>[a(s(y),{loading:I.value,disabled:!F.value.length||I.value,onClick:c[2]||=e=>Ye()},{default:m(()=>[...c[42]||=[t(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),P.value.story?.background?(r(),o(s(y),{key:0,disabled:I.value,onClick:c[3]||=e=>Ye(!0)},{default:m(()=>[...c[43]||=[t(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1})]),_:1}),a(te,{introduction:L.value,mode:R.value,"onUpdate:mode":c[6]||=e=>R.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[4]||=e=>Xe()},{default:m(()=>[...c[44]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[5]||=e=>Je()},{default:m(()=>[...c[45]||=[t(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),a(s(_),{title:`Закрывашка сценария`},{default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[a(s(T),{depth:`3`},{default:m(()=>[...c[46]||=[t(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),a(s(S),{value:z.value.text,"onUpdate:value":c[7]||=e=>z.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:V.value},null,8,[`value`,`disabled`]),xe.value?(r(),h(`video`,{key:0,src:xe.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,ye)):e(``,!0),z.value.video?(r(),o(s(y),{key:1,disabled:V.value,onClick:c[8]||=e=>Se()},{default:m(()=>[...c[47]||=[t(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(s(b),{"file-list":B.value,"onUpdate:fileList":c[9]||=e=>B.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:V.value},{default:m(()=>[a(s(y),{disabled:V.value},{default:m(()=>[...c[48]||=[t(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(s(w),{justify:`end`},{default:m(()=>[P.value.story?.conclusion?.text||P.value.story?.conclusion?.video?(r(),o(s(y),{key:0,disabled:V.value,onClick:c[10]||=e=>Ce(!0)},{default:m(()=>[...c[49]||=[t(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(s(y),{disabled:V.value,onClick:c[11]||=e=>H()},{default:m(()=>[...c[50]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(s(y),{loading:V.value,disabled:V.value||!P.value.story,onClick:c[12]||=e=>Ce()},{default:m(()=>[...c[51]||=[t(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),c[62]||=g(`div`,{class:`questions-header`},`Вопросы дела`,-1),a(me,{mode:$.value,"onUpdate:mode":c[15]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":c[16]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":c[17]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":c[18]||=e=>Q.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[13]||=e=>Ue()},{default:m(()=>[...c[52]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[14]||=e=>He(),disabled:!X.value},{default:m(()=>[...c[53]||=[t(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(r(!0),h(u,null,p(De.value,e=>(r(),o(me,{question:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.oldCode??e.code??``},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:t=>Ke(e),type:`error`,ghost:``},{default:m(()=>[...c[54]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>Ge(e)},{default:m(()=>[...c[55]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>We(e),disabled:e.code==``},{default:m(()=>[...c[56]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),a(ne,{mode:Y.value,"onUpdate:mode":c[21]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":c[22]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":c[23]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":c[24]||=e=>J.value=e},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:c[19]||=e=>Le()},{default:m(()=>[...c[57]||=[t(`Отмена`,-1)]]),_:1}),a(s(y),{onClick:c[20]||=e=>Ie(),disabled:!K.value},{default:m(()=>[...c[58]||=[t(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(r(!0),h(u,null,p(we.value,e=>(r(),h(`div`,{key:e.oldCode??e.code??``,ref_for:!0,ref:t=>t?s(U).set(e,t):s(U).delete(e),class:`place-card`,tabindex:`-1`,role:`group`,"aria-label":`${e.code}: ${e.name}`},[a(ne,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,onNavigate:Ee},{default:m(()=>[a(s(w),{justify:`end`},{default:m(()=>[a(s(y),{onClick:t=>Ve(e),type:`error`,ghost:``},{default:m(()=>[...c[59]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>ze(e)},{default:m(()=>[...c[60]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(s(y),{onClick:t=>Be(e),disabled:e.code==``},{default:m(()=>[...c[61]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,be))),128))])])],512),a(s(v),{show:O.value,"onUpdate:show":c[38]||=e=>O.value=e},{default:m(()=>[a(s(_),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":m(()=>[a(s(y),{onClick:c[25]||=e=>O.value=!1},{default:m(()=>[...c[63]||=[t(` x `,-1)]]),_:1})]),footer:m(()=>[...c[87]||=[]]),default:m(()=>[a(s(C),{vertical:``},{default:m(()=>[c[76]||=g(`p`,null,`Название`,-1),a(s(S),{value:P.value.name,"onUpdate:value":c[26]||=e=>P.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),c[77]||=g(`p`,{class:`settings-header`},`Описание`,-1),a(s(S),{value:P.value.description,"onUpdate:value":c[27]||=e=>P.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),c[78]||=g(`p`,{class:`settings-header`},`Картинка`,-1),a(s(S),{value:P.value.image,"onUpdate:value":c[28]||=e=>P.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),a(s(b),{"directory-dnd":``,max:1,"file-list":N.value,"onUpdate:fileList":c[29]||=e=>N.value=e},{default:m(()=>[a(s(ee),null,{default:m(()=>[a(s(T),{style:{"font-size":`16px`}},{default:m(()=>[...c[64]||=[t(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),a(s(y),{onClick:c[30]||=e=>Ne(),ghost:``},{default:m(()=>[...c[65]||=[t(` Сохранить изменения `,-1)]]),_:1}),c[79]||=g(`hr`,{class:`settings-hr`},null,-1),c[80]||=g(`p`,{class:`settings-header`},`Архив сценария`,-1),c[81]||=g(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),a(s(y),{loading:j.value,disabled:!P.value.id,ghost:``,onClick:c[31]||=e=>Me()},{default:m(()=>[...c[66]||=[t(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),c[82]||=g(`hr`,{class:`settings-hr`},null,-1),c[83]||=g(`p`,null,`Создать тестовую игру`,-1),a(s(y),{onClick:c[32]||=e=>Ae(P.value.name||``,P.value.id),ghost:``},{default:m(()=>[...c[67]||=[t(` Создать игру `,-1)]]),_:1}),c[84]||=g(`hr`,{class:`settings-hr`},null,-1),c[85]||=g(`p`,null,`Публикация`,-1),g(`p`,null,[P.value.status==`public`?(r(),o(s(re),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:m(()=>[...c[68]||=[t(` Опубликовано `,-1)]]),_:1})):e(``,!0),P.value.status==`draft`?(r(),o(s(re),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:m(()=>[...c[69]||=[t(` В разработке `,-1)]]),_:1})):e(``,!0)]),g(`p`,null,[c[70]||=t(` Введите название сценария `,-1),a(s(T),{class:`name-text`,strong:``},{default:m(()=>[t(n(P.value.name),1)]),_:1})]),a(s(S),{value:k.value,"onUpdate:value":c[33]||=e=>k.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),P.value.status==`public`?e(``,!0):(r(),o(s(y),{key:0,onClick:c[34]||=e=>ke(P.value.id),ghost:``,disabled:k.value!=P.value.name},{default:m(()=>[...c[71]||=[t(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),P.value.status==`draft`?e(``,!0):(r(),o(s(y),{key:1,onClick:c[35]||=e=>je(P.value.id),ghost:``,disabled:k.value!=P.value.name},{default:m(()=>[...c[72]||=[t(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),c[86]||=g(`hr`,{class:`settings-hr`},null,-1),g(`p`,null,[c[73]||=t(` Введите название сценария `,-1),a(s(T),{class:`name-text`,strong:``},{default:m(()=>[t(n(P.value.name),1)]),_:1}),c[74]||=t(` чтобы удалить его `,-1)]),a(s(S),{value:A.value,"onUpdate:value":c[36]||=e=>A.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a(s(y),{onClick:c[37]||=e=>Oe(P.value.id),type:`error`,ghost:``,disabled:A.value!=P.value.name},{default:m(()=>[...c[75]||=[t(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(ue,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-79f033d7`]]),I=d({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(r(),o(F))}});export{I as default}; \ No newline at end of file diff --git a/dist/assets/ScenariosView-ur_EjM8c.js b/dist/assets/ScenariosView-CtBJm7Md.js similarity index 89% rename from dist/assets/ScenariosView-ur_EjM8c.js rename to dist/assets/ScenariosView-CtBJm7Md.js index d77cbe5..ffbdb22 100644 --- a/dist/assets/ScenariosView-ur_EjM8c.js +++ b/dist/assets/ScenariosView-CtBJm7Md.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-E8nWUy_w.js";import{t as g}from"./Card-D_Y8VzWl.js";import{t as _}from"./Modal-D1InIULi.js";import{t as v}from"./Button-Cr3XRKS5.js";import{n as y,t as b}from"./Upload-UneDPhCs.js";import{t as x}from"./Input-BkQuBf9P.js";import{t as S}from"./Tag-Bb42yLml.js";import{t as C}from"./use-message-BD6Lw0qA.js";import{t as w}from"./Flex-7TW8da2P.js";import{t as T}from"./text-DLGdGDO6.js";import{n as E,t as D}from"./es-CBOun6Az.js";import{t as O}from"./HeaderMenu-D_gj_b_i.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as A}from"./binary_client-CtnHO7V-.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=u({name:`Archive`,render:function(e,t){return r(),m(`svg`,j,t[0]||=[h(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),h(`path`,{d:`M6 2v26a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2zm18 26H8V16h16zm0-14H8v-4h16zM8 8V4h16v4z`,fill:`currentColor`},null,-1)])}}),N={class:`center-block-custom`},P={class:`width1200 display-table catalog-grid`},F={class:`scenario-image-block scenario-image-plus import-icon`},I=[`onClick`],L={class:`scenario-content-block`},R={class:`scenario-title`},z={class:`scenario-label`},B=k(u({__name:`ScenariosPage`,setup(u){let k=E(),j=A(),B=c([]),V=p(),H=C(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){B.value=[];let e=await k.GetMyScenarios({});B.value=e.scenarios}async function Y(e){let t=await k.AddScenario({name:e});if(t.error!=``){H.error(t.error);return}await X(t.id)}async function X(e){V.push(`/scenarios/`+e+`/editor`)}function Z(){K.value=[],G.value=!1}async function Q(){let e=K.value[0]?.file;if(e){q.value=!0;try{let t=await j.uploadScenarioArchive(e);if(t.error){H.error(t.error);return}H.success(`Сценарий импортирован из архива`),Z(),await X(t.id)}catch(e){H.error(e instanceof Error?e.message:`Не удалось импортировать архив`)}finally{q.value=!1}}}return J(),(c,u)=>(r(),m(l,null,[h(`div`,N,[h(`div`,P,[h(`div`,{class:`scenario-block`,onClick:u[0]||=e=>U.value=!0},[...u[11]||=[h(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),h(`div`,{class:`scenario-content-block`},[h(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),h(`div`,{class:`scenario-block`,onClick:u[1]||=e=>G.value=!0},[h(`div`,F,[i(s(D),null,{default:f(()=>[i(s(M))]),_:1})]),u[12]||=h(`div`,{class:`scenario-content-block`},[h(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(r(!0),m(l,null,d(B.value,i=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>X(i.id),key:i.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${i.image})`})},null,4),h(`div`,L,[h(`p`,R,n(i.name),1),h(`p`,z,[i.status==`public`?(r(),o(s(S),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[...u[13]||=[t(`Опубликовано`,-1)]]),_:1})):e(``,!0),i.status==`draft`?(r(),o(s(S),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:f(()=>[...u[14]||=[t(`В разработке`,-1)]]),_:1})):e(``,!0)])])],8,I))),128))])]),i(s(_),{show:U.value,"onUpdate:show":u[5]||=e=>U.value=e},{default:f(()=>[i(s(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":f(()=>[i(s(v),{onClick:u[2]||=e=>U.value=!1},{default:f(()=>[...u[15]||=[t(` x `,-1)]]),_:1})]),footer:f(()=>[i(s(w),{justify:`end`},{default:f(()=>[i(s(v),{onClick:u[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:f(()=>[...u[16]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:f(()=>[i(s(x),{value:W.value,"onUpdate:value":u[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),i(s(_),{show:G.value,"onUpdate:show":u[10]||=e=>G.value=e},{default:f(()=>[i(s(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":f(()=>[i(s(v),{onClick:u[6]||=e=>Z()},{default:f(()=>[...u[17]||=[t(` x `,-1)]]),_:1})]),footer:f(()=>[i(s(w),{justify:`end`},{default:f(()=>[i(s(v),{onClick:u[8]||=e=>Z()},{default:f(()=>[...u[19]||=[t(`Отмена`,-1)]]),_:1}),i(s(v),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:u[9]||=e=>Q()},{default:f(()=>[...u[20]||=[t(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:f(()=>[u[21]||=h(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),i(s(b),{max:1,"file-list":K.value,"onUpdate:fileList":u[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:f(()=>[i(s(y),null,{default:f(()=>[i(s(T),{style:{"font-size":`16px`}},{default:f(()=>[...u[18]||=[t(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),i(O,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-0398a638`]]),V=u({__name:`ScenariosView`,setup(e){return(e,t)=>(r(),o(B))}});export{V as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-BBfBDiVG.js";import{t as g}from"./Card-Cze8lALH.js";import{t as _}from"./Modal-DbiX6wvm.js";import{t as v}from"./Button-DAM1cqtA.js";import{n as y,t as b}from"./Upload-ByR1zA4h.js";import{t as x}from"./Input-2L35DdEz.js";import{t as S}from"./Tag-YulbLI_X.js";import{t as C}from"./use-message-DyQW5yAL.js";import{t as w}from"./Flex-BIB1uWhx.js";import{t as T}from"./text-ERnkmyYu.js";import{n as E,t as D}from"./es-D90fN3qV.js";import{t as O}from"./HeaderMenu-CqYU4ywX.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as A}from"./binary_client-CGYCXafS.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=u({name:`Archive`,render:function(e,t){return r(),m(`svg`,j,t[0]||=[h(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),h(`path`,{d:`M6 2v26a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2zm18 26H8V16h16zm0-14H8v-4h16zM8 8V4h16v4z`,fill:`currentColor`},null,-1)])}}),N={class:`center-block-custom`},P={class:`width1200 display-table catalog-grid`},F={class:`scenario-image-block scenario-image-plus import-icon`},I=[`onClick`],L={class:`scenario-content-block`},R={class:`scenario-title`},z={class:`scenario-label`},B=k(u({__name:`ScenariosPage`,setup(u){let k=E(),j=A(),B=c([]),V=p(),H=C(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){B.value=[];let e=await k.GetMyScenarios({});B.value=e.scenarios}async function Y(e){let t=await k.AddScenario({name:e});if(t.error!=``){H.error(t.error);return}await X(t.id)}async function X(e){V.push(`/scenarios/`+e+`/editor`)}function Z(){K.value=[],G.value=!1}async function Q(){let e=K.value[0]?.file;if(e){q.value=!0;try{let t=await j.uploadScenarioArchive(e);if(t.error){H.error(t.error);return}H.success(`Сценарий импортирован из архива`),Z(),await X(t.id)}catch(e){H.error(e instanceof Error?e.message:`Не удалось импортировать архив`)}finally{q.value=!1}}}return J(),(c,u)=>(r(),m(l,null,[h(`div`,N,[h(`div`,P,[h(`div`,{class:`scenario-block`,onClick:u[0]||=e=>U.value=!0},[...u[11]||=[h(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),h(`div`,{class:`scenario-content-block`},[h(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),h(`div`,{class:`scenario-block`,onClick:u[1]||=e=>G.value=!0},[h(`div`,F,[i(s(D),null,{default:f(()=>[i(s(M))]),_:1})]),u[12]||=h(`div`,{class:`scenario-content-block`},[h(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(r(!0),m(l,null,d(B.value,i=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>X(i.id),key:i.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${i.image})`})},null,4),h(`div`,L,[h(`p`,R,n(i.name),1),h(`p`,z,[i.status==`public`?(r(),o(s(S),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[...u[13]||=[t(`Опубликовано`,-1)]]),_:1})):e(``,!0),i.status==`draft`?(r(),o(s(S),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:f(()=>[...u[14]||=[t(`В разработке`,-1)]]),_:1})):e(``,!0)])])],8,I))),128))])]),i(s(_),{show:U.value,"onUpdate:show":u[5]||=e=>U.value=e},{default:f(()=>[i(s(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":f(()=>[i(s(v),{onClick:u[2]||=e=>U.value=!1},{default:f(()=>[...u[15]||=[t(` x `,-1)]]),_:1})]),footer:f(()=>[i(s(w),{justify:`end`},{default:f(()=>[i(s(v),{onClick:u[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:f(()=>[...u[16]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:f(()=>[i(s(x),{value:W.value,"onUpdate:value":u[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),i(s(_),{show:G.value,"onUpdate:show":u[10]||=e=>G.value=e},{default:f(()=>[i(s(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":f(()=>[i(s(v),{onClick:u[6]||=e=>Z()},{default:f(()=>[...u[17]||=[t(` x `,-1)]]),_:1})]),footer:f(()=>[i(s(w),{justify:`end`},{default:f(()=>[i(s(v),{onClick:u[8]||=e=>Z()},{default:f(()=>[...u[19]||=[t(`Отмена`,-1)]]),_:1}),i(s(v),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:u[9]||=e=>Q()},{default:f(()=>[...u[20]||=[t(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:f(()=>[u[21]||=h(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),i(s(b),{max:1,"file-list":K.value,"onUpdate:fileList":u[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:f(()=>[i(s(y),null,{default:f(()=>[i(s(T),{style:{"font-size":`16px`}},{default:f(()=>[...u[18]||=[t(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),i(O,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-0398a638`]]),V=u({__name:`ScenariosView`,setup(e){return(e,t)=>(r(),o(B))}});export{V as default}; \ No newline at end of file diff --git a/dist/assets/ScreenView-B1tWvr7Y.css b/dist/assets/ScreenView-B1tWvr7Y.css new file mode 100644 index 0000000..41e245e --- /dev/null +++ b/dist/assets/ScreenView-B1tWvr7Y.css @@ -0,0 +1 @@ +.binding-card[data-v-6d6a0382],.qr-card[data-v-6d6a0382],.ready-card[data-v-6d6a0382]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-6d6a0382],.qr-card p[data-v-6d6a0382],.ready-card p[data-v-6d6a0382]{margin:0 0 16px}.binding-card .n-select[data-v-6d6a0382]{margin-bottom:8px}.binding-card .n-button[data-v-6d6a0382],.qr-card .n-button[data-v-6d6a0382],.ready-card .n-button[data-v-6d6a0382]{margin-top:8px}.ready-title[data-v-6d6a0382]{font-size:28px}.screen-qr[data-v-6d6a0382]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-6d6a0382]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-6d6a0382]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-6d6a0382]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-6d6a0382]{z-index:2;background:#6b2d2d;border-radius:8px;margin:0;padding:10px 14px;position:fixed;top:20px;left:20px;right:20px}.screen-cover[data-v-6d6a0382]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-6d6a0382]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-6d6a0382]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-6d6a0382]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-6d6a0382]{margin-bottom:16px;font-weight:700}.screen-message[data-v-6d6a0382]{font-size:clamp(42px,10vw,140px);font-weight:700}.timer-screen[data-v-6d6a0382]{flex-direction:column;justify-content:center;align-items:center;gap:24px;max-width:90vw;display:flex}.timer-label[data-v-6d6a0382]{margin:0;font-size:clamp(32px,6vw,88px)}.timer-value[data-v-6d6a0382]{font-variant-numeric:tabular-nums;font-size:clamp(96px,24vw,360px);font-weight:700;line-height:.9}.screen-media[data-v-6d6a0382]{width:900px;max-width:90vw}.screen-media audio[data-v-6d6a0382],.screen-media video[data-v-6d6a0382]{width:100%;max-height:75dvh}.conclusion-screen[data-v-6d6a0382]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-6d6a0382]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-6d6a0382]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-6d6a0382]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-6d6a0382]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-6d6a0382],.results-screen td[data-v-6d6a0382]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-6d6a0382]:nth-child(odd){background:#ffffff14} diff --git a/dist/assets/ScreenView-C8WZZfh8.js b/dist/assets/ScreenView-C8WZZfh8.js new file mode 100644 index 0000000..acfe573 --- /dev/null +++ b/dist/assets/ScreenView-C8WZZfh8.js @@ -0,0 +1 @@ +import{$ as e,C as t,D as n,Ft as r,G as i,H as a,L as o,O as s,Pt as ee,S as c,U as te,_t as l,b as u,ft as d,h as f,k as p,l as ne,q as m,tt as h,w as g,x as _}from"./client-BBfBDiVG.js";import{t as v}from"./Card-Cze8lALH.js";import{t as y}from"./Button-DAM1cqtA.js";import{t as re}from"./Select-B-sTbBIa.js";import{t as ie}from"./use-message-DyQW5yAL.js";import{t as ae}from"./QrCode-BOyg-J5s.js";import{n as oe}from"./es-D90fN3qV.js";import{t as se}from"./HeaderMenu-CqYU4ywX.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{r as x}from"./application-DO6jjJW-.js";import{t as ce}from"./datetime-BJNH0M1T.js";var le={key:0,class:`screen-center`},ue={key:1,class:`screen-page`},de={key:0,class:`screen-center`},fe={key:0,class:`screen-center`},pe={key:0,class:`screen-qr`},me={key:0,class:`media-error`},he={key:1,class:`screen-media`},ge=[`src`,`muted`],_e={key:2,class:`conclusion-screen`},ve=[`src`,`muted`],ye={key:3,class:`screen-message`},be={key:4,class:`screen-message`},xe={key:5,class:`screen-message`},Se={key:6,class:`timer-screen`},Ce={class:`timer-label`},we={class:`timer-value`},Te={key:8,class:`screen-cover`},Ee=[`src`],De={key:1,class:`cover-controls`},S=`evening-detective-screen-session`,C=b(p({__name:`ScreenPage`,setup(p){let b=oe(),C=ie(),w=ne(),T=d(``),E=d(``),D=d(),O=d([]),k=d([]),A=d(),j,M=!1,N=d([]),P=d(null),F=d(!1),I=d(``),L=d(!0),R=d(!1),z=d(!1),B=d(Date.now()),V=d(0),H=d(Date.now()),U=d(),W=d(),G=d(),K=0,q=null,J=null,Y=u(()=>!!(w.query.screenId&&w.query.accessToken)),X=u(()=>{if(!T.value||!E.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,T.value),e.searchParams.set(`accessToken`,E.value),e.toString()}),Oe=u(()=>N.value.map(e=>({label:`${ce(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.id}`}`,value:e.id}))),Z=u(()=>D.value?.mode||`SCREEN_MODE_COVER`),Q=u(()=>D.value?.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,V.value-(B.value-H.value)/1e3):V.value),ke=u(()=>{let e=Math.floor(Q.value/60),t=Math.floor(Q.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),Ae=u(()=>x(D.value?.introAudio)),je=u(()=>x(D.value?.conclusionVideo)),Me=u(()=>{let e=D.value?.backgroundImage||D.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Ne(){sessionStorage.setItem(S,JSON.stringify({screenId:T.value,accessToken:E.value}))}function Pe(e){let t=Math.max(0,Number(e?.timerRemainingSeconds||0));if(e?.timerState===`SCREEN_TIMER_STATE_RUNNING`&&U.value===e.timerState){let e=Math.max(0,V.value-(Date.now()-H.value)/1e3);if(Math.abs(t-e)<=.5)return}V.value=t,H.value=Date.now(),U.value=e?.timerState}function Fe(){try{let e=JSON.parse(sessionStorage.getItem(S)||`{}`);T.value=e.screenId||``,E.value=e.accessToken||``}catch{sessionStorage.removeItem(S)}}async function Ie(){let e=await b.CreateScreenSession({});if(e.error||!e.screenId||!e.accessToken)throw Error(e.error||`Не удалось создать сессию экрана`);T.value=e.screenId,E.value=e.accessToken,Ne()}async function Le(){if(!(!T.value||!E.value))try{let e=await b.GetScreenState({screenId:T.value,accessToken:E.value});if(e.error)throw Error(e.error);D.value=e.state,Pe(D.value),D.value?.gameId&&D.value.mode===`SCREEN_MODE_RESULTS`&&await Re()}catch(e){C.error(e instanceof Error?e.message:`Не удалось получить состояние экрана`)}}async function Re(){if(!T.value||!E.value)return;let e=await b.GetScreenResults({screenId:T.value,accessToken:E.value});if(e.error==``&&(k.value=e.questions||[],O.value=e.teams||[],!M)){M=!0,await o();let e=A.value;e&&(e.scrollTop=e.scrollHeight,j=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&j!=null&&(window.clearInterval(j),j=void 0)},1e3))}}async function ze(){try{let e=await b.GetGames({});if(e.error)throw Error(e.error);N.value=e.games||[]}catch(e){C.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}e(D,async e=>{if(!e||!e.command||e.stateVersion===K)return;K=e.stateVersion||0,await o();let t=Z.value===`SCREEN_MODE_CONCLUSION`?G.value:W.value;t&&(t.currentTime=(e.positionMs||0)/1e3,t.volume=Math.max(0,Math.min(1,(e.volume??100)/100)),e.command!==`SCREEN_COMMAND_SEEK`&&e.command!==`SCREEN_COMMAND_VOLUME`&&(e.command===`SCREEN_COMMAND_PLAY`||e.command===`SCREEN_COMMAND_RESUME`||e.command===`SCREEN_COMMAND_REPLAY`?(e.command===`SCREEN_COMMAND_REPLAY`&&(t.currentTime=0),t.play().catch(()=>{I.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});async function Be(){if(!(!P.value||!w.query.screenId||!w.query.accessToken)){R.value=!0;try{let e=await b.BindScreen({screenId:String(w.query.screenId),accessToken:String(w.query.accessToken),gameId:P.value});if(e.error)throw Error(e.error);z.value=!0}catch(e){C.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{R.value=!1}}}async function $(){try{await document.documentElement.requestFullscreen?.()}catch{C.warning(`Полноэкранный режим недоступен в этом браузере`)}F.value=!0}return a(async()=>{if(Y.value){await ze(),L.value=!1;return}Fe();try{(!T.value||!E.value)&&await Ie(),await Le(),q=window.setInterval(Le,1e3),J=window.setInterval(()=>{B.value=Date.now()},250)}catch(e){C.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{L.value=!1}}),te(()=>{q!=null&&window.clearInterval(q),J!=null&&window.clearInterval(J),j!=null&&window.clearInterval(j)}),(e,a)=>(i(),g(f,null,[Y.value?(i(),g(`div`,le,[s(l(v),{class:`binding-card`,title:`Привязка экрана`},{default:h(()=>[z.value?(i(),g(f,{key:0},[a[1]||=_(`p`,null,`Экран привязан к игре.`,-1),a[2]||=_(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(i(),g(f,{key:1},[a[4]||=_(`p`,null,`Выберите игру, к которой привязать экран.`,-1),s(l(re),{value:P.value,"onUpdate:value":a[0]||=e=>P.value=e,options:Oe.value,placeholder:`Игра`},null,8,[`value`,`options`]),s(l(y),{type:`primary`,loading:R.value,disabled:P.value==null,onClick:Be},{default:h(()=>[...a[3]||=[n(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(i(),g(`div`,ue,[L.value?(i(),g(`div`,de,`Подготовка экрана…`)):(i(),g(f,{key:1},[D.value?.gameId?(i(),g(`div`,{key:1,class:`screen-content`,style:ee(Me.value)},[I.value?(i(),g(`p`,me,r(I.value),1)):t(``,!0),Z.value===`SCREEN_MODE_INTRO`&&D.value.introAudio?(i(),g(`div`,he,[_(`audio`,{ref_key:`introAudioElement`,ref:W,src:Ae.value,muted:!D.value.soundEnabled,controls:``},null,8,ge)])):Z.value===`SCREEN_MODE_CONCLUSION`&&D.value.conclusionVideo?(i(),g(`div`,_e,[_(`video`,{ref_key:`conclusionVideoElement`,ref:G,src:je.value,muted:!D.value.soundEnabled,playsinline:``},null,8,ve)])):Z.value===`SCREEN_MODE_CONCLUSION`?(i(),g(`div`,ye,`Видео закрывашки не задано`)):Z.value===`SCREEN_MODE_INTRO_DONE`?(i(),g(`div`,be,`Успехов`)):Z.value===`SCREEN_MODE_CONCLUSION_DONE`?(i(),g(`div`,xe,`Спасибо за игру!`)):Z.value===`SCREEN_MODE_TIMER`?(i(),g(`div`,Se,[_(`h1`,Ce,r(D.value.timerLabel||`Перерыв`),1),_(`div`,we,r(ke.value),1)])):Z.value===`SCREEN_MODE_RESULTS`?(i(),g(`div`,{key:7,ref_key:`resultsContainer`,ref:A,class:`results-screen`},[a[11]||=_(`h1`,null,`Результаты`,-1),_(`table`,null,[_(`thead`,null,[_(`tr`,null,[a[7]||=_(`th`,null,`Место`,-1),a[8]||=_(`th`,null,`Команда`,-1),(i(!0),g(f,null,m(k.value,e=>(i(),g(`th`,{key:e.code},r(e.code),1))),128)),a[9]||=_(`th`,null,`Сумма`,-1),a[10]||=_(`th`,null,`Ходы`,-1)])]),_(`tbody`,null,[(i(!0),g(f,null,m(O.value,e=>(i(),g(`tr`,{key:e.team?.id},[_(`td`,null,r(e.place),1),_(`td`,null,r(e.team?.name),1),(i(!0),g(f,null,m(k.value,t=>(i(),g(`td`,{key:t.code},r(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),_(`td`,null,r(e.totalScore),1),_(`td`,null,r(e.actionsCount),1)]))),128))])])],512)):(i(),g(`div`,Te,[D.value.coverImage?(i(),g(`img`,{key:0,src:D.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,Ee)):t(``,!0),F.value?t(``,!0):(i(),g(`div`,De,[s(l(y),{type:`primary`,onClick:$},{default:h(()=>[...a[12]||=[n(`Подготовить экран`,-1)]]),_:1})]))]))],4)):(i(),g(`div`,fe,[s(l(v),{class:`qr-card`,title:`Подключение экрана`},{default:h(()=>[X.value?(i(),g(`div`,pe,[s(l(ae),{value:X.value,size:260,padding:0},null,8,[`value`])])):t(``,!0),a[6]||=_(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),F.value?t(``,!0):(i(),c(l(y),{key:1,type:`primary`,onClick:$},{default:h(()=>[...a[5]||=[n(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),Y.value?(i(),c(se,{key:2,active:`games`})):t(``,!0)],64))}}),[[`__scopeId`,`data-v-6d6a0382`]]),w=p({__name:`ScreenView`,setup(e){return(e,t)=>(i(),c(C))}});export{w as default}; \ No newline at end of file diff --git a/dist/assets/ScreenView-CaQPsgMz.css b/dist/assets/ScreenView-CaQPsgMz.css deleted file mode 100644 index 560378a..0000000 --- a/dist/assets/ScreenView-CaQPsgMz.css +++ /dev/null @@ -1 +0,0 @@ -.binding-card[data-v-e2e3dbf3],.qr-card[data-v-e2e3dbf3],.ready-card[data-v-e2e3dbf3]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-e2e3dbf3],.qr-card p[data-v-e2e3dbf3],.ready-card p[data-v-e2e3dbf3]{margin:0 0 16px}.binding-card .n-select[data-v-e2e3dbf3]{margin-bottom:8px}.binding-card .n-button[data-v-e2e3dbf3],.qr-card .n-button[data-v-e2e3dbf3],.ready-card .n-button[data-v-e2e3dbf3]{margin-top:8px}.ready-title[data-v-e2e3dbf3]{font-size:28px}.screen-qr[data-v-e2e3dbf3]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-e2e3dbf3]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-e2e3dbf3]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-e2e3dbf3]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-e2e3dbf3]{z-index:2;background:#6b2d2d;border-radius:8px;margin:0;padding:10px 14px;position:fixed;top:20px;left:20px;right:20px}.screen-cover[data-v-e2e3dbf3]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-e2e3dbf3]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-e2e3dbf3]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-e2e3dbf3]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-e2e3dbf3]{margin-bottom:16px;font-weight:700}.screen-message[data-v-e2e3dbf3]{font-size:clamp(42px,10vw,140px);font-weight:700}.screen-media[data-v-e2e3dbf3]{width:900px;max-width:90vw}.screen-media audio[data-v-e2e3dbf3],.screen-media video[data-v-e2e3dbf3]{width:100%;max-height:75dvh}.conclusion-screen[data-v-e2e3dbf3]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-e2e3dbf3]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-e2e3dbf3]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-e2e3dbf3]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-e2e3dbf3]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-e2e3dbf3],.results-screen td[data-v-e2e3dbf3]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-e2e3dbf3]:nth-child(odd){background:#ffffff14} diff --git a/dist/assets/ScreenView-EuPQ1US_.js b/dist/assets/ScreenView-EuPQ1US_.js deleted file mode 100644 index bfe40ae..0000000 --- a/dist/assets/ScreenView-EuPQ1US_.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,C as t,D as n,Ft as r,G as i,H as a,L as o,O as s,Pt as c,S as l,U as u,_t as d,b as f,ft as p,h as m,k as h,l as ee,q as g,tt as _,w as v,x as y}from"./client-E8nWUy_w.js";import{t as b}from"./Card-D_Y8VzWl.js";import{t as x}from"./Button-Cr3XRKS5.js";import{t as te}from"./Select-DV69pW8T.js";import{t as ne}from"./use-message-BD6Lw0qA.js";import{t as re}from"./QrCode-DayNjdR9.js";import{n as S}from"./es-CBOun6Az.js";import{t as C}from"./HeaderMenu-D_gj_b_i.js";import{t as w}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{r as T}from"./application-Cen-5gWT.js";import{t as ie}from"./datetime-BJNH0M1T.js";var ae={key:0,class:`screen-center`},oe={key:1,class:`screen-page`},se={key:0,class:`screen-center`},ce={key:0,class:`screen-center`},le={key:0,class:`screen-qr`},ue={key:0,class:`media-error`},de={key:1,class:`screen-media`},fe=[`src`,`muted`],pe={key:2,class:`conclusion-screen`},me=[`src`,`muted`],he={key:3,class:`screen-message`},ge={key:4,class:`screen-message`},_e={key:5,class:`screen-message`},ve={key:7,class:`screen-cover`},ye=[`src`],be={key:1,class:`cover-controls`},E=`evening-detective-screen-session`,D=w(h({__name:`ScreenPage`,setup(h){let w=S(),D=ne(),O=ee(),k=p(``),A=p(``),j=p(),M=p([]),N=p([]),P=p(),F,I=!1,L=p([]),R=p(null),z=p(!1),B=p(``),V=p(!0),H=p(!1),U=p(!1),W=p(),G=p(),K=0,q=null,J=f(()=>!!(O.query.screenId&&O.query.accessToken)),Y=f(()=>{if(!k.value||!A.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,k.value),e.searchParams.set(`accessToken`,A.value),e.toString()}),xe=f(()=>L.value.map(e=>({label:`${ie(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.id}`}`,value:e.id}))),X=f(()=>j.value?.mode||`SCREEN_MODE_COVER`),Se=f(()=>T(j.value?.introAudio)),Ce=f(()=>T(j.value?.conclusionVideo)),we=f(()=>{let e=j.value?.backgroundImage||j.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Te(){sessionStorage.setItem(E,JSON.stringify({screenId:k.value,accessToken:A.value}))}function Z(){try{let e=JSON.parse(sessionStorage.getItem(E)||`{}`);k.value=e.screenId||``,A.value=e.accessToken||``}catch{sessionStorage.removeItem(E)}}async function Ee(){let e=await w.CreateScreenSession({});if(e.error||!e.screenId||!e.accessToken)throw Error(e.error||`Не удалось создать сессию экрана`);k.value=e.screenId,A.value=e.accessToken,Te()}async function Q(){if(!(!k.value||!A.value))try{let e=await w.GetScreenState({screenId:k.value,accessToken:A.value});if(e.error)throw Error(e.error);j.value=e.state,j.value?.gameId&&j.value.mode===`SCREEN_MODE_RESULTS`&&await De()}catch(e){D.error(e instanceof Error?e.message:`Не удалось получить состояние экрана`)}}async function De(){if(!k.value||!A.value)return;let e=await w.GetScreenResults({screenId:k.value,accessToken:A.value});if(e.error==``&&(N.value=e.questions||[],M.value=e.teams||[],!I)){I=!0,await o();let e=P.value;e&&(e.scrollTop=e.scrollHeight,F=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&F!=null&&(window.clearInterval(F),F=void 0)},1e3))}}async function Oe(){try{let e=await w.GetGames({});if(e.error)throw Error(e.error);L.value=e.games||[]}catch(e){D.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}e(j,async e=>{if(!e||!e.command||e.stateVersion===K)return;K=e.stateVersion||0,await o();let t=X.value===`SCREEN_MODE_CONCLUSION`?G.value:W.value;t&&(t.currentTime=(e.positionMs||0)/1e3,t.volume=Math.max(0,Math.min(1,(e.volume??100)/100)),e.command!==`SCREEN_COMMAND_SEEK`&&e.command!==`SCREEN_COMMAND_VOLUME`&&(e.command===`SCREEN_COMMAND_PLAY`||e.command===`SCREEN_COMMAND_RESUME`||e.command===`SCREEN_COMMAND_REPLAY`?(e.command===`SCREEN_COMMAND_REPLAY`&&(t.currentTime=0),t.play().catch(()=>{B.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});async function ke(){if(!(!R.value||!O.query.screenId||!O.query.accessToken)){H.value=!0;try{let e=await w.BindScreen({screenId:String(O.query.screenId),accessToken:String(O.query.accessToken),gameId:R.value});if(e.error)throw Error(e.error);U.value=!0}catch(e){D.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{H.value=!1}}}async function $(){try{await document.documentElement.requestFullscreen?.()}catch{D.warning(`Полноэкранный режим недоступен в этом браузере`)}z.value=!0}return a(async()=>{if(J.value){await Oe(),V.value=!1;return}Z();try{(!k.value||!A.value)&&await Ee(),await Q(),q=window.setInterval(Q,1e3)}catch(e){D.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{V.value=!1}}),u(()=>{q!=null&&window.clearInterval(q),F!=null&&window.clearInterval(F)}),(e,a)=>(i(),v(m,null,[J.value?(i(),v(`div`,ae,[s(d(b),{class:`binding-card`,title:`Привязка экрана`},{default:_(()=>[U.value?(i(),v(m,{key:0},[a[1]||=y(`p`,null,`Экран привязан к игре.`,-1),a[2]||=y(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(i(),v(m,{key:1},[a[4]||=y(`p`,null,`Выберите игру, к которой привязать экран.`,-1),s(d(te),{value:R.value,"onUpdate:value":a[0]||=e=>R.value=e,options:xe.value,placeholder:`Игра`},null,8,[`value`,`options`]),s(d(x),{type:`primary`,loading:H.value,disabled:R.value==null,onClick:ke},{default:_(()=>[...a[3]||=[n(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(i(),v(`div`,oe,[V.value?(i(),v(`div`,se,`Подготовка экрана…`)):(i(),v(m,{key:1},[j.value?.gameId?(i(),v(`div`,{key:1,class:`screen-content`,style:c(we.value)},[B.value?(i(),v(`p`,ue,r(B.value),1)):t(``,!0),X.value===`SCREEN_MODE_INTRO`&&j.value.introAudio?(i(),v(`div`,de,[y(`audio`,{ref_key:`introAudioElement`,ref:W,src:Se.value,muted:!j.value.soundEnabled,controls:``},null,8,fe)])):X.value===`SCREEN_MODE_CONCLUSION`&&j.value.conclusionVideo?(i(),v(`div`,pe,[y(`video`,{ref_key:`conclusionVideoElement`,ref:G,src:Ce.value,muted:!j.value.soundEnabled,playsinline:``},null,8,me)])):X.value===`SCREEN_MODE_CONCLUSION`?(i(),v(`div`,he,`Видео закрывашки не задано`)):X.value===`SCREEN_MODE_INTRO_DONE`?(i(),v(`div`,ge,`Успехов`)):X.value===`SCREEN_MODE_CONCLUSION_DONE`?(i(),v(`div`,_e,`Спасибо за игру!`)):X.value===`SCREEN_MODE_RESULTS`?(i(),v(`div`,{key:6,ref_key:`resultsContainer`,ref:P,class:`results-screen`},[a[11]||=y(`h1`,null,`Результаты`,-1),y(`table`,null,[y(`thead`,null,[y(`tr`,null,[a[7]||=y(`th`,null,`Место`,-1),a[8]||=y(`th`,null,`Команда`,-1),(i(!0),v(m,null,g(N.value,e=>(i(),v(`th`,{key:e.code},r(e.code),1))),128)),a[9]||=y(`th`,null,`Сумма`,-1),a[10]||=y(`th`,null,`Ходы`,-1)])]),y(`tbody`,null,[(i(!0),v(m,null,g(M.value,e=>(i(),v(`tr`,{key:e.team?.id},[y(`td`,null,r(e.place),1),y(`td`,null,r(e.team?.name),1),(i(!0),v(m,null,g(N.value,t=>(i(),v(`td`,{key:t.code},r(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),y(`td`,null,r(e.totalScore),1),y(`td`,null,r(e.actionsCount),1)]))),128))])])],512)):(i(),v(`div`,ve,[j.value.coverImage?(i(),v(`img`,{key:0,src:j.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,ye)):t(``,!0),z.value?t(``,!0):(i(),v(`div`,be,[s(d(x),{type:`primary`,onClick:$},{default:_(()=>[...a[12]||=[n(`Подготовить экран`,-1)]]),_:1})]))]))],4)):(i(),v(`div`,ce,[s(d(b),{class:`qr-card`,title:`Подключение экрана`},{default:_(()=>[Y.value?(i(),v(`div`,le,[s(d(re),{value:Y.value,size:260,padding:0},null,8,[`value`])])):t(``,!0),a[6]||=y(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),z.value?t(``,!0):(i(),l(d(x),{key:1,type:`primary`,onClick:$},{default:_(()=>[...a[5]||=[n(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),J.value?(i(),l(C,{key:2,active:`games`})):t(``,!0)],64))}}),[[`__scopeId`,`data-v-e2e3dbf3`]]),O=h({__name:`ScreenView`,setup(e){return(e,t)=>(i(),l(D))}});export{O as default}; \ No newline at end of file diff --git a/dist/assets/Select-DV69pW8T.js b/dist/assets/Select-B-sTbBIa.js similarity index 97% rename from dist/assets/Select-DV69pW8T.js rename to dist/assets/Select-B-sTbBIa.js index d61cd12..5cef706 100644 --- a/dist/assets/Select-DV69pW8T.js +++ b/dist/assets/Select-B-sTbBIa.js @@ -1,4 +1,4 @@ -import{$ as e,H as t,J as n,L as r,M as i,b as a,et as o,ft as s,h as c,ht as l,k as u,nt as d}from"./client-E8nWUy_w.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-Dq0naAvE.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-Bj8mg9ex.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-CBUf6KKJ.js";import{f as re,o as P}from"./Card-D_Y8VzWl.js";import{r as ie}from"./css-DEmdllcC.js";import{o as F,t as I}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{t as L}from"./use-merged-state-C1ccSDEx.js";import{t as R}from"./use-compitable-ChIWeUtn.js";import{t as z}from"./Popover-DjXPu6IJ.js";import{r as ae}from"./keep-BpqC6iXB.js";import{n as oe,r as B}from"./use-form-item-CVzWkQI_.js";import{r as se,t as V}from"./Suffix-D4EvRHEf.js";import{t as H}from"./Tag-Bb42yLml.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-DrmfX-S2.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=u({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=s(null),i=s(null);function a(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;tu){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let o=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:o}),t(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:a}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),i(`div`,{class:`v-overflow`,ref:`selfRef`},[n(e,`default`),e.counter?e.counter():i(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([m(`base-selection`,` +import{$ as e,H as t,J as n,L as r,M as i,b as a,et as o,ft as s,h as c,ht as l,k as u,nt as d}from"./client-BBfBDiVG.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-DqAV2QCd.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-DIc7TcHi.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-bNShwiNe.js";import{f as re,o as P}from"./Card-Cze8lALH.js";import{r as ie}from"./css-DEmdllcC.js";import{o as F,t as I}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{t as L}from"./use-merged-state-DRpgLPWV.js";import{t as R}from"./use-compitable-kfiJdYfv.js";import{t as z}from"./Popover-I7RatnYr.js";import{r as ae}from"./keep-zbFcxtME.js";import{n as oe,r as B}from"./use-form-item-ajbhslgm.js";import{r as se,t as V}from"./Suffix-DM_ippuo.js";import{t as H}from"./Tag-YulbLI_X.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-DnUl8nHF.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=u({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=s(null),i=s(null);function a(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;tu){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let o=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:o}),t(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:a}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),i(`div`,{class:`v-overflow`,ref:`selfRef`},[n(e,`default`),e.counter?e.counter():i(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([m(`base-selection`,` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; diff --git a/dist/assets/Settings-BsptM00R.js b/dist/assets/Settings-DDsOcEqz.js similarity index 95% rename from dist/assets/Settings-BsptM00R.js rename to dist/assets/Settings-DDsOcEqz.js index 2ddfcee..7399548 100644 --- a/dist/assets/Settings-BsptM00R.js +++ b/dist/assets/Settings-DDsOcEqz.js @@ -1 +1 @@ -import{G as e,k as t,w as n,x as r}from"./client-E8nWUy_w.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=t({name:`Settings`,render:function(t,a){return e(),n(`svg`,i,a[0]||=[r(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),r(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t}; \ No newline at end of file +import{G as e,k as t,w as n,x as r}from"./client-BBfBDiVG.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=t({name:`Settings`,render:function(t,a){return e(),n(`svg`,i,a[0]||=[r(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),r(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t}; \ No newline at end of file diff --git a/dist/assets/Space-LOHABRdD.js b/dist/assets/Space-_Xn7R9gX.js similarity index 85% rename from dist/assets/Space-LOHABRdD.js rename to dist/assets/Space-_Xn7R9gX.js index 5ec4301..e116488 100644 --- a/dist/assets/Space-LOHABRdD.js +++ b/dist/assets/Space-_Xn7R9gX.js @@ -1 +1 @@ -import{M as e,b as t,k as n,m as r}from"./client-E8nWUy_w.js";import{N as i,Z as a,o,r as s}from"./light-Dq0naAvE.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-Cr3XRKS5.js";import{t as d}from"./flatten-Pfh9hmmw.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-DrmfX-S2.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=n({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,i)=>n.type===r?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t}; \ No newline at end of file +import{M as e,b as t,k as n,m as r}from"./client-BBfBDiVG.js";import{N as i,Z as a,o,r as s}from"./light-DqAV2QCd.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-DAM1cqtA.js";import{t as d}from"./flatten-ClDK_waP.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-DnUl8nHF.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=n({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,i)=>n.type===r?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t}; \ No newline at end of file diff --git a/dist/assets/Suffix-D4EvRHEf.js b/dist/assets/Suffix-DM_ippuo.js similarity index 98% rename from dist/assets/Suffix-D4EvRHEf.js rename to dist/assets/Suffix-DM_ippuo.js index b8b3d3b..99fe66b 100644 --- a/dist/assets/Suffix-D4EvRHEf.js +++ b/dist/assets/Suffix-DM_ippuo.js @@ -1,4 +1,4 @@ -import{M as e,P as t,b as n,ht as r,k as i}from"./client-E8nWUy_w.js";import{G as a,J as o,K as s,P as c,i as l}from"./light-Dq0naAvE.js";import{r as u}from"./resolve-slot-C9tdVP4f.js";import{H as d,I as f,M as p,U as m,V as h}from"./index-DrmfX-S2.js";var g={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function _(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function v(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function y(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,e=>e.test(o)):b(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var C={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},w=(e,t,n)=>{let r,i=C[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},T={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},E=(e,t,n,r)=>T[e],D={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:v({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:v({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:v({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},O={ordinalNumber:S({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},k={code:`en-US`,formatDistance:w,formatLong:{date:_({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:E,localize:D,match:O,options:{weekStartsOn:0,firstWeekContainsDate:1}},A={name:`en-US`,locale:k};function j(e){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(c,null)||{},a=n(()=>r?.value?.[e]??g[e]);return{dateLocaleRef:n(()=>i?.value??A),localeRef:a}}var M=i({name:`ChevronDown`,render(){return e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),N=h(`clear`,()=>e(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},e(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},e(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),P=s(`base-clear`,` +import{M as e,P as t,b as n,ht as r,k as i}from"./client-BBfBDiVG.js";import{G as a,J as o,K as s,P as c,i as l}from"./light-DqAV2QCd.js";import{r as u}from"./resolve-slot-C_Onglzh.js";import{H as d,I as f,M as p,U as m,V as h}from"./index-DnUl8nHF.js";var g={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function _(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function v(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function y(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,e=>e.test(o)):b(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var C={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},w=(e,t,n)=>{let r,i=C[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},T={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},E=(e,t,n,r)=>T[e],D={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:v({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:v({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:v({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},O={ordinalNumber:S({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},k={code:`en-US`,formatDistance:w,formatLong:{date:_({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:E,localize:D,match:O,options:{weekStartsOn:0,firstWeekContainsDate:1}},A={name:`en-US`,locale:k};function j(e){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(c,null)||{},a=n(()=>r?.value?.[e]??g[e]);return{dateLocaleRef:n(()=>i?.value??A),localeRef:a}}var M=i({name:`ChevronDown`,render(){return e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),N=h(`clear`,()=>e(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},e(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},e(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),P=s(`base-clear`,` flex-shrink: 0; height: 1em; width: 1em; diff --git a/dist/assets/Tag-Bb42yLml.js b/dist/assets/Tag-YulbLI_X.js similarity index 96% rename from dist/assets/Tag-Bb42yLml.js rename to dist/assets/Tag-YulbLI_X.js index 99c8697..a916d29 100644 --- a/dist/assets/Tag-Bb42yLml.js +++ b/dist/assets/Tag-YulbLI_X.js @@ -1,4 +1,4 @@ -import{K as e,M as t,b as n,ft as r,ht as i,k as a}from"./client-E8nWUy_w.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-Dq0naAvE.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CVzWkQI_.js";import{a as S}from"./resolve-slot-C9tdVP4f.js";import{F as C,O as w}from"./index-DrmfX-S2.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,` +import{K as e,M as t,b as n,ft as r,ht as i,k as a}from"./client-BBfBDiVG.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-DqAV2QCd.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-ajbhslgm.js";import{a as S}from"./resolve-slot-C_Onglzh.js";import{F as C,O as w}from"./index-DnUl8nHF.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; diff --git a/dist/assets/TeamStoryView-BHCd4RjC.js b/dist/assets/TeamStoryView-CqCSRKxB.js similarity index 94% rename from dist/assets/TeamStoryView-BHCd4RjC.js rename to dist/assets/TeamStoryView-CqCSRKxB.js index f34f7d9..011d022 100644 --- a/dist/assets/TeamStoryView-BHCd4RjC.js +++ b/dist/assets/TeamStoryView-CqCSRKxB.js @@ -1 +1 @@ -import{C as e,D as t,Ft as n,G as r,J as i,L as a,Nt as o,O as s,Pt as c,S as l,Y as u,_t as d,b as f,ft as p,h as m,k as h,l as ee,nt as g,q as _,tt as v,w as y,x as b}from"./client-E8nWUy_w.js";import{t as te}from"./Button-Cr3XRKS5.js";import{n as ne,t as re}from"./PlaceBlock-C4rcxpbT.js";import{t as x}from"./Input-BkQuBf9P.js";import{t as ie}from"./use-message-BD6Lw0qA.js";import{t as S}from"./Flex-7TW8da2P.js";import{t as ae}from"./Rate-DJirJCYw.js";import{t as oe}from"./QrCode-DayNjdR9.js";import{b as C,et as w,t as T}from"./index-DrmfX-S2.js";import{n as E,t as D}from"./es-CBOun6Az.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./HeaderText-Cu9OePP6.js";import{t as se}from"./useSimplePolling-CrvIPr6O.js";import{t as A}from"./MessagePaper-Cy3nagN1.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},M=h({name:`ContactMailRound`,render:function(e,t){return r(),y(`svg`,j,t[0]||=[b(`path`,{d:`M21 8V7l-3 2l-3-2v1l2.72 1.82a.5.5 0 0 0 .55 0L21 8zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm7.5-6h-7c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v5c0 .28-.22.5-.5.5z`,fill:`currentColor`},null,-1)])}}),N={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`},P=h({name:`Footsteps`,render:function(e,t){return r(),y(`svg`,N,t[0]||=[b(`path`,{d:`M133.83 361.27c-22.61 0-41-8.17-54.79-24.39s-22.84-40.29-28.11-75.31c-7.76-51.61-.06-95.11 21.68-122.48c12.8-16.12 29.6-25.44 48.58-26.94c16.25-1.3 40.54 5.29 64 44c14.69 24.24 25.86 56.44 30.65 88.34c5.79 38.51 1.48 66.86-13.18 86.65c-11.64 15.72-29.54 25.46-53.21 29a106.46 106.46 0 0 1-15.62 1.13z`,fill:`currentColor`},null,-1),b(`path`,{d:`M173 496c-13.21 0-26.6-4.23-38.66-12.36a79.79 79.79 0 0 1-33.52-50.6c-2.85-14.66-1.14-26.31 5.22-35.64c10.33-15.15 28.87-18.56 48.49-22.18c2.07-.38 4.17-.76 6.3-1.17c4.52-.86 9.14-2 13.62-3.11c16.78-4.14 34.14-8.43 48.47 1.75c9.59 6.8 15 18.36 16.62 35.32c1.84 19.57-2.36 39.1-11.83 55c-10.19 17.11-25.47 28.42-43 31.86A61 61 0 0 1 173 496z`,fill:`currentColor`},null,-1),b(`path`,{d:`M378.17 265.27a106.69 106.69 0 0 1-15.6-1.2c-23.66-3.5-41.56-13.25-53.2-29c-14.66-19.79-19-48.13-13.18-86.65c4.79-31.93 15.93-64.1 30.55-88.25c23.34-38.57 47.66-45.26 64-44.08c18.92 1.38 35.69 10.57 48.51 26.6c21.89 27.37 29.65 71 21.86 122.84c-5.27 35-14.2 58.95-28.11 75.31s-32.22 24.43-54.83 24.43z`,fill:`currentColor`},null,-1),b(`path`,{d:`M339 400a61 61 0 0 1-11.68-1.13c-17.56-3.44-32.84-14.75-43-31.86c-9.47-15.9-13.67-35.43-11.83-55c1.6-17 7-28.52 16.62-35.33c14.33-10.17 31.69-5.89 48.47-1.74c4.48 1.1 9.1 2.24 13.62 3.11l6.29 1.17c19.63 3.61 38.17 7 48.5 22.17c6.36 9.33 8.07 21 5.22 35.64a79.78 79.78 0 0 1-33.52 50.61C365.56 395.78 352.17 400 339 400z`,fill:`currentColor`},null,-1)])}}),F={},I={class:`belt-block`};function L(e,t){return r(),y(`div`,null,[t[0]||=b(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=b(`div`,{class:`shadow shadow-bottom`},null,-1),b(`div`,I,[i(e.$slots,`default`,{},void 0,!0)])])}var R=O(F,[[`render`,L],[`__scopeId`,`data-v-bec154c5`]]),z={},B={class:`plate-block`},V={class:`metal-plate-block`};function H(e,t){return r(),y(`div`,B,[b(`div`,V,[i(e.$slots,`default`,{},void 0,!0)]),t[0]||=b(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=b(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=b(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=b(`div`,{class:`pin pin-bottom-left`},null,-1)])}var U=O(z,[[`render`,H],[`__scopeId`,`data-v-4833fe7e`]]),W={class:`form-custom`},G={class:`center-block-700`},K={class:`controller`},q={class:`counters-block`},J={class:`counter-block`},Y={class:`places-text`},X={class:`counter-block`},Z={class:`places-text`},Q={class:`game-input`},$=[`placeholder`,`disabled`],ce=[`disabled`],le=O(h({__name:`GameInputForm`,props:{addAction:{type:Function,required:!0},allPlacesCount:{type:Number,required:!0},newPlacesCount:{type:Number,required:!0},gameStatus:{type:String,required:!0}},setup(i){let a=p(``),o=i;async function c(){await o.addAction(a.value),a.value=``}function u(e){e%=100;let t=Math.floor(e/10)%10,n=e%10,r=`–`,i=`–`;return t>0&&(r=String(t)),(n>0||t>0)&&(i=String(n)),[r,i]}return(f,p)=>(r(),y(`div`,W,[s(R,{class:`input-form`},{default:v(()=>[s(U,{class:`controller-metal controller-metal-left`}),s(U,{class:`controller-metal controller-metal-right`}),b(`div`,G,[b(`div`,K,[b(`div`,q,[b(`div`,J,[b(`div`,Y,[s(d(D),{class:`icon-for-counter`},{default:v(()=>[s(d(P))]),_:1})]),(r(!0),y(m,null,_(u(i.allPlacesCount),(e,t)=>(r(),y(`div`,{key:t,class:`places-text places-text-number`},n(e),1))),128))]),b(`div`,X,[b(`div`,Z,[s(d(D),{class:`icon-for-counter`},{default:v(()=>[s(d(M))]),_:1})]),(r(!0),y(m,null,_(u(i.newPlacesCount),(e,t)=>(r(),y(`div`,{key:t,class:`places-text places-text-number`},n(e),1))),128))])]),b(`div`,Q,[g(b(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":p[0]||=e=>a.value=e,type:`text`,placeholder:o.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:o.gameStatus!=`run`},null,8,$),[[w,a.value]])]),p[4]||=b(`div`,{class:`game-button-run-shadow`},null,-1),b(`button`,{class:`game-button-run`,type:`submit`,disabled:a.value.length==0,onClick:c},[o.gameStatus==`run`?(r(),l(k,{key:0},{default:v(()=>[...p[1]||=[t(`Поехали`,-1)]]),_:1})):e(``,!0),o.gameStatus==`pause`||o.gameStatus==`draft`?(r(),l(k,{key:1},{default:v(()=>[...p[2]||=[t(`Ждём`,-1)]]),_:1})):e(``,!0),o.gameStatus==`finish`?(r(),l(k,{key:2},{default:v(()=>[...p[3]||=[t(`Всё`,-1)]]),_:1})):e(``,!0)],8,ce)])])]),_:1})]))}}),[[`__scopeId`,`data-v-4d904ded`]]),ue={key:0,class:`width700`},de=[`disabled`],fe={key:1,class:`width700`},pe={class:`question-text`},me={class:`qr-block`},he={key:3,class:`edit-panel`},ge=O(h({__name:`TeamStoryPage`,setup(i){let h=T(),g=E(),w=ie(),D=ee(),O=D.params.id,k=D.query.password,j=p(0),M=p([]),N=p(),P=p({introduction:void 0,places:[],questions:[]}),F=p({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),I=p(``),L=`game-review-${O}`,R=p(localStorage.getItem(L)===`1`),z=p(0),B=p(``),V=p(!1),H=window.location.href,U=()=>{let e=N.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<1:!1};async function W(){let e=P.value,t=await g.GetTeamStory({id:Number(O),password:k});if(t.error!=``){w.error(t.error);return}F.value=t.game;let n=U();n&&(j.value=0);let r=P.value.places.length;P.value={background:t.story.background,introduction:t.story.introduction,places:t.story.places?.map((t,n)=>(console.log(e?.places[n]?.mode),{place:t,mode:e?.places[n]?.mode||`show`}))||[],questions:t.story.questions||[]},M.value=t.actions||[];let i=P.value.places.length;if(i>r&&r!=0&&(j.value+=i-r),await a(),n&&r!=0){let e=N.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}W(),q();async function G(e){let t=await g.AddTeamAction({id:Number(O),password:k,code:e});if(t.error!=``){w.error(t.error);return}await W(),I.value=``,await a(),j.value=0}let K=p({});async function q(){let e=await g.GetTeamAnswers({id:Number(O),password:k});if(e.error!=``){w.error(e.error);return}let t={};for(let n of e.answers||[])t[n.questionCode||``]=n.answer||``;K.value=t}async function J(){let e=await g.SubmitTeamAnswers({id:Number(O),password:k,answers:(P.value.questions||[]).map(e=>({questionCode:e.code,answer:K.value[e.code||``]||``}))});if(e.error!=``){w.error(e.error);return}w.success(`Ответы сохранены`),await q()}let Y=f(()=>F.value?.format!==`offline`&&(F.value?.status==`run`||F.value?.status==`pause`)),X=f(()=>F.value?.format!==`offline`&&(P.value.questions?.length||0)>0),Z={Input:{border:`1px dashed black`,borderDisabled:`1px dashed black`,borderFocus:`1px solid black`,borderHover:`1px dashed black`,boxShadowFocus:`0 0 0 1px black`,caretColor:`black`,color:`transparent`,colorDisabled:`transparent`,colorFocus:`transparent`,fontSizeMedium:`18px`,placeholderColor:`black`,placeholderColorDisabled:`black`,textColor:`black`,textColorDisabled:`black`},Rate:{itemColor:`black`,itemColorHover:`#b8860b`,itemColorActive:`#b8860b`}};async function Q(){if(!z.value||B.value.trim()===``){w.error(`Поставьте оценку и напишите отзыв`);return}V.value=!0;let e=await g.CreateGameReview({gameId:Number(F.value?.id),teamId:Number(O),password:k,rating:z.value,text:B.value.trim()});if(V.value=!1,e.error!=``){w.error(e.error);return}R.value=!0,localStorage.setItem(L,`1`),w.success(`Спасибо за отзыв`)}async function $(){let e=await g.DeleteLastTeamAction({id:Number(O)});if(e.error!=``){w.error(e.error);return}await W(),I.value=``}return se(()=>{W()},2e3),(i,a)=>{let f=u(`n-space`);return r(),y(m,null,[P.value.background?(r(),y(`div`,{key:0,class:`case-background`,style:c({backgroundImage:`url(${JSON.stringify(P.value.background)})`}),"aria-hidden":`true`},null,4)):e(``,!0),b(`div`,{class:o([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":F.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:N},[F.value?.status===`finish`?(r(),y(`div`,ue,[s(A,{role:`status`},{default:v(()=>[...a[3]||=[b(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),R.value?e(``,!0):(r(),l(A,{key:0,class:`review-block`},{default:v(()=>[a[5]||=b(`div`,{class:`font`},`Оцените игру`,-1),a[6]||=b(`hr`,{class:`questions-hr`},null,-1),s(d(C),{"theme-overrides":Z},{default:v(()=>[a[4]||=b(`div`,{class:`review-rating font`},`Оценка`,-1),s(d(ae),{value:z.value,"onUpdate:value":a[0]||=e=>z.value=e,count:5,class:`review-rate`},null,8,[`value`]),s(d(x),{value:B.value,"onUpdate:value":a[1]||=e=>B.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),s(d(S),{justify:`end`,class:`questions-actions`},{default:v(()=>[b(`button`,{type:`button`,class:`paper-button`,disabled:V.value,onClick:Q},` Отправить отзыв `,8,de)]),_:1})]),_:1})]),_:1}))])):(r(),y(`div`,fe,[s(le,{addAction:G,allPlacesCount:P.value.places.length,newPlacesCount:j.value,gameStatus:F.value?.status||``},null,8,[`allPlacesCount`,`newPlacesCount`,`gameStatus`]),F.value?.format!==`offline`&&F.value?.status&&F.value.status!=`draft`&&P.value.introduction&&(P.value.introduction.text||P.value.introduction.audio)?(r(),l(ne,{key:0,introduction:P.value.introduction,mode:`show`},null,8,[`introduction`])):e(``,!0),X.value&&F.value?.status&&F.value.status!=`draft`?(r(),l(A,{key:1,class:`questions-block`},{default:v(()=>[a[7]||=b(`div`,{class:`font`},`Вопросы дела`,-1),a[8]||=b(`hr`,{class:`questions-hr`},null,-1),a[9]||=b(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),s(d(C),{"theme-overrides":Z},{default:v(()=>[(r(!0),y(m,null,_(P.value.questions,e=>(r(),y(`div`,{key:e.code,class:`question-item font`},[b(`div`,pe,n(e.code)+`: `+n(e.text),1),s(d(x),{value:K.value[e.code||``],"onUpdate:value":t=>K.value[e.code||``]=t,type:`textarea`,autosize:{minRows:2,maxRows:6},disabled:!Y.value,placeholder:`Ваш ответ...`},null,8,[`value`,`onUpdate:value`,`disabled`])]))),128)),Y.value?(r(),l(d(S),{key:0,justify:`end`,class:`questions-actions`},{default:v(()=>[b(`button`,{type:`button`,class:`paper-button`,onClick:a[2]||=e=>J()},` Сохранить ответы `)]),_:1})):e(``,!0)]),_:1})]),_:1})):e(``,!0),(r(!0),y(m,null,_(P.value.places,(e,t)=>(r(),l(re,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${F.value?.format}:${e.place.code}`,mcp:d(h).hasRole(`author`)&&M.value[t]?.mcp,addAction:G},null,8,[`place`,`mode`,`onUpdate:mode`,`mcp`]))),128)),P.value.places.length==0&&F.value?.status==`draft`?(r(),l(A,{key:2,class:`qr-main-block`},{default:v(()=>[s(f,{vertical:``},{default:v(()=>[a[10]||=b(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),a[11]||=b(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),b(`div`,me,[s(d(oe),{value:d(H),size:300,padding:0},null,8,[`value`])]),a[12]||=b(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):e(``,!0),d(h).hasRole(`author`)&&P.value.places.length>0?(r(),y(`div`,he,[s(d(S),{justify:`end`},{default:v(()=>[s(d(te),{onClick:$},{default:v(()=>[...a[13]||=[t(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):e(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-f0e86d30`]]),_e=h({__name:`TeamStoryView`,setup(e){return(e,t)=>(r(),l(ge))}});export{_e as default}; \ No newline at end of file +import{C as e,D as t,Ft as n,G as r,J as i,L as a,Nt as o,O as s,Pt as c,S as l,Y as u,_t as d,b as f,ft as p,h as m,k as h,l as ee,nt as g,q as _,tt as v,w as y,x as b}from"./client-BBfBDiVG.js";import{t as te}from"./Button-DAM1cqtA.js";import{n as ne,t as re}from"./PlaceBlock-C1FV-h-w.js";import{t as x}from"./Input-2L35DdEz.js";import{t as ie}from"./use-message-DyQW5yAL.js";import{t as S}from"./Flex-BIB1uWhx.js";import{t as ae}from"./Rate-CNH6p4IB.js";import{t as oe}from"./QrCode-BOyg-J5s.js";import{b as C,et as w,t as T}from"./index-DnUl8nHF.js";import{n as E,t as D}from"./es-D90fN3qV.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./HeaderText-OoQfyl23.js";import{t as se}from"./useSimplePolling-CSXqe4IY.js";import{t as A}from"./MessagePaper-HXyPZ4jl.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},M=h({name:`ContactMailRound`,render:function(e,t){return r(),y(`svg`,j,t[0]||=[b(`path`,{d:`M21 8V7l-3 2l-3-2v1l2.72 1.82a.5.5 0 0 0 .55 0L21 8zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm7.5-6h-7c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v5c0 .28-.22.5-.5.5z`,fill:`currentColor`},null,-1)])}}),N={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`},P=h({name:`Footsteps`,render:function(e,t){return r(),y(`svg`,N,t[0]||=[b(`path`,{d:`M133.83 361.27c-22.61 0-41-8.17-54.79-24.39s-22.84-40.29-28.11-75.31c-7.76-51.61-.06-95.11 21.68-122.48c12.8-16.12 29.6-25.44 48.58-26.94c16.25-1.3 40.54 5.29 64 44c14.69 24.24 25.86 56.44 30.65 88.34c5.79 38.51 1.48 66.86-13.18 86.65c-11.64 15.72-29.54 25.46-53.21 29a106.46 106.46 0 0 1-15.62 1.13z`,fill:`currentColor`},null,-1),b(`path`,{d:`M173 496c-13.21 0-26.6-4.23-38.66-12.36a79.79 79.79 0 0 1-33.52-50.6c-2.85-14.66-1.14-26.31 5.22-35.64c10.33-15.15 28.87-18.56 48.49-22.18c2.07-.38 4.17-.76 6.3-1.17c4.52-.86 9.14-2 13.62-3.11c16.78-4.14 34.14-8.43 48.47 1.75c9.59 6.8 15 18.36 16.62 35.32c1.84 19.57-2.36 39.1-11.83 55c-10.19 17.11-25.47 28.42-43 31.86A61 61 0 0 1 173 496z`,fill:`currentColor`},null,-1),b(`path`,{d:`M378.17 265.27a106.69 106.69 0 0 1-15.6-1.2c-23.66-3.5-41.56-13.25-53.2-29c-14.66-19.79-19-48.13-13.18-86.65c4.79-31.93 15.93-64.1 30.55-88.25c23.34-38.57 47.66-45.26 64-44.08c18.92 1.38 35.69 10.57 48.51 26.6c21.89 27.37 29.65 71 21.86 122.84c-5.27 35-14.2 58.95-28.11 75.31s-32.22 24.43-54.83 24.43z`,fill:`currentColor`},null,-1),b(`path`,{d:`M339 400a61 61 0 0 1-11.68-1.13c-17.56-3.44-32.84-14.75-43-31.86c-9.47-15.9-13.67-35.43-11.83-55c1.6-17 7-28.52 16.62-35.33c14.33-10.17 31.69-5.89 48.47-1.74c4.48 1.1 9.1 2.24 13.62 3.11l6.29 1.17c19.63 3.61 38.17 7 48.5 22.17c6.36 9.33 8.07 21 5.22 35.64a79.78 79.78 0 0 1-33.52 50.61C365.56 395.78 352.17 400 339 400z`,fill:`currentColor`},null,-1)])}}),F={},I={class:`belt-block`};function L(e,t){return r(),y(`div`,null,[t[0]||=b(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=b(`div`,{class:`shadow shadow-bottom`},null,-1),b(`div`,I,[i(e.$slots,`default`,{},void 0,!0)])])}var R=O(F,[[`render`,L],[`__scopeId`,`data-v-bec154c5`]]),z={},B={class:`plate-block`},V={class:`metal-plate-block`};function H(e,t){return r(),y(`div`,B,[b(`div`,V,[i(e.$slots,`default`,{},void 0,!0)]),t[0]||=b(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=b(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=b(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=b(`div`,{class:`pin pin-bottom-left`},null,-1)])}var U=O(z,[[`render`,H],[`__scopeId`,`data-v-4833fe7e`]]),W={class:`form-custom`},G={class:`center-block-700`},K={class:`controller`},q={class:`counters-block`},J={class:`counter-block`},Y={class:`places-text`},X={class:`counter-block`},Z={class:`places-text`},Q={class:`game-input`},$=[`placeholder`,`disabled`],ce=[`disabled`],le=O(h({__name:`GameInputForm`,props:{addAction:{type:Function,required:!0},allPlacesCount:{type:Number,required:!0},newPlacesCount:{type:Number,required:!0},gameStatus:{type:String,required:!0}},setup(i){let a=p(``),o=i;async function c(){await o.addAction(a.value),a.value=``}function u(e){e%=100;let t=Math.floor(e/10)%10,n=e%10,r=`–`,i=`–`;return t>0&&(r=String(t)),(n>0||t>0)&&(i=String(n)),[r,i]}return(f,p)=>(r(),y(`div`,W,[s(R,{class:`input-form`},{default:v(()=>[s(U,{class:`controller-metal controller-metal-left`}),s(U,{class:`controller-metal controller-metal-right`}),b(`div`,G,[b(`div`,K,[b(`div`,q,[b(`div`,J,[b(`div`,Y,[s(d(D),{class:`icon-for-counter`},{default:v(()=>[s(d(P))]),_:1})]),(r(!0),y(m,null,_(u(i.allPlacesCount),(e,t)=>(r(),y(`div`,{key:t,class:`places-text places-text-number`},n(e),1))),128))]),b(`div`,X,[b(`div`,Z,[s(d(D),{class:`icon-for-counter`},{default:v(()=>[s(d(M))]),_:1})]),(r(!0),y(m,null,_(u(i.newPlacesCount),(e,t)=>(r(),y(`div`,{key:t,class:`places-text places-text-number`},n(e),1))),128))])]),b(`div`,Q,[g(b(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":p[0]||=e=>a.value=e,type:`text`,placeholder:o.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:o.gameStatus!=`run`},null,8,$),[[w,a.value]])]),p[4]||=b(`div`,{class:`game-button-run-shadow`},null,-1),b(`button`,{class:`game-button-run`,type:`submit`,disabled:a.value.length==0,onClick:c},[o.gameStatus==`run`?(r(),l(k,{key:0},{default:v(()=>[...p[1]||=[t(`Поехали`,-1)]]),_:1})):e(``,!0),o.gameStatus==`pause`||o.gameStatus==`draft`?(r(),l(k,{key:1},{default:v(()=>[...p[2]||=[t(`Ждём`,-1)]]),_:1})):e(``,!0),o.gameStatus==`finish`?(r(),l(k,{key:2},{default:v(()=>[...p[3]||=[t(`Всё`,-1)]]),_:1})):e(``,!0)],8,ce)])])]),_:1})]))}}),[[`__scopeId`,`data-v-4d904ded`]]),ue={key:0,class:`width700`},de=[`disabled`],fe={key:1,class:`width700`},pe={class:`question-text`},me={class:`qr-block`},he={key:3,class:`edit-panel`},ge=O(h({__name:`TeamStoryPage`,setup(i){let h=T(),g=E(),w=ie(),D=ee(),O=D.params.id,k=D.query.password,j=p(0),M=p([]),N=p(),P=p({introduction:void 0,places:[],questions:[]}),F=p({id:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),I=p(``),L=`game-review-${O}`,R=p(localStorage.getItem(L)===`1`),z=p(0),B=p(``),V=p(!1),H=window.location.href,U=()=>{let e=N.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<1:!1};async function W(){let e=P.value,t=await g.GetTeamStory({id:Number(O),password:k});if(t.error!=``){w.error(t.error);return}F.value=t.game;let n=U();n&&(j.value=0);let r=P.value.places.length;P.value={background:t.story.background,introduction:t.story.introduction,places:t.story.places?.map((t,n)=>(console.log(e?.places[n]?.mode),{place:t,mode:e?.places[n]?.mode||`show`}))||[],questions:t.story.questions||[]},M.value=t.actions||[];let i=P.value.places.length;if(i>r&&r!=0&&(j.value+=i-r),await a(),n&&r!=0){let e=N.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}W(),q();async function G(e){let t=await g.AddTeamAction({id:Number(O),password:k,code:e});if(t.error!=``){w.error(t.error);return}await W(),I.value=``,await a(),j.value=0}let K=p({});async function q(){let e=await g.GetTeamAnswers({id:Number(O),password:k});if(e.error!=``){w.error(e.error);return}let t={};for(let n of e.answers||[])t[n.questionCode||``]=n.answer||``;K.value=t}async function J(){let e=await g.SubmitTeamAnswers({id:Number(O),password:k,answers:(P.value.questions||[]).map(e=>({questionCode:e.code,answer:K.value[e.code||``]||``}))});if(e.error!=``){w.error(e.error);return}w.success(`Ответы сохранены`),await q()}let Y=f(()=>F.value?.format!==`offline`&&(F.value?.status==`run`||F.value?.status==`pause`)),X=f(()=>F.value?.format!==`offline`&&(P.value.questions?.length||0)>0),Z={Input:{border:`1px dashed black`,borderDisabled:`1px dashed black`,borderFocus:`1px solid black`,borderHover:`1px dashed black`,boxShadowFocus:`0 0 0 1px black`,caretColor:`black`,color:`transparent`,colorDisabled:`transparent`,colorFocus:`transparent`,fontSizeMedium:`18px`,placeholderColor:`black`,placeholderColorDisabled:`black`,textColor:`black`,textColorDisabled:`black`},Rate:{itemColor:`black`,itemColorHover:`#b8860b`,itemColorActive:`#b8860b`}};async function Q(){if(!z.value||B.value.trim()===``){w.error(`Поставьте оценку и напишите отзыв`);return}V.value=!0;let e=await g.CreateGameReview({gameId:Number(F.value?.id),teamId:Number(O),password:k,rating:z.value,text:B.value.trim()});if(V.value=!1,e.error!=``){w.error(e.error);return}R.value=!0,localStorage.setItem(L,`1`),w.success(`Спасибо за отзыв`)}async function $(){let e=await g.DeleteLastTeamAction({id:Number(O)});if(e.error!=``){w.error(e.error);return}await W(),I.value=``}return se(()=>{W()},2e3),(i,a)=>{let f=u(`n-space`);return r(),y(m,null,[P.value.background?(r(),y(`div`,{key:0,class:`case-background`,style:c({backgroundImage:`url(${JSON.stringify(P.value.background)})`}),"aria-hidden":`true`},null,4)):e(``,!0),b(`div`,{class:o([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":F.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:N},[F.value?.status===`finish`?(r(),y(`div`,ue,[s(A,{role:`status`},{default:v(()=>[...a[3]||=[b(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),R.value?e(``,!0):(r(),l(A,{key:0,class:`review-block`},{default:v(()=>[a[5]||=b(`div`,{class:`font`},`Оцените игру`,-1),a[6]||=b(`hr`,{class:`questions-hr`},null,-1),s(d(C),{"theme-overrides":Z},{default:v(()=>[a[4]||=b(`div`,{class:`review-rating font`},`Оценка`,-1),s(d(ae),{value:z.value,"onUpdate:value":a[0]||=e=>z.value=e,count:5,class:`review-rate`},null,8,[`value`]),s(d(x),{value:B.value,"onUpdate:value":a[1]||=e=>B.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),s(d(S),{justify:`end`,class:`questions-actions`},{default:v(()=>[b(`button`,{type:`button`,class:`paper-button`,disabled:V.value,onClick:Q},` Отправить отзыв `,8,de)]),_:1})]),_:1})]),_:1}))])):(r(),y(`div`,fe,[s(le,{addAction:G,allPlacesCount:P.value.places.length,newPlacesCount:j.value,gameStatus:F.value?.status||``},null,8,[`allPlacesCount`,`newPlacesCount`,`gameStatus`]),F.value?.format!==`offline`&&F.value?.status&&F.value.status!=`draft`&&P.value.introduction&&(P.value.introduction.text||P.value.introduction.audio)?(r(),l(ne,{key:0,introduction:P.value.introduction,mode:`show`},null,8,[`introduction`])):e(``,!0),X.value&&F.value?.status&&F.value.status!=`draft`?(r(),l(A,{key:1,class:`questions-block`},{default:v(()=>[a[7]||=b(`div`,{class:`font`},`Вопросы дела`,-1),a[8]||=b(`hr`,{class:`questions-hr`},null,-1),a[9]||=b(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),s(d(C),{"theme-overrides":Z},{default:v(()=>[(r(!0),y(m,null,_(P.value.questions,e=>(r(),y(`div`,{key:e.code,class:`question-item font`},[b(`div`,pe,n(e.code)+`: `+n(e.text),1),s(d(x),{value:K.value[e.code||``],"onUpdate:value":t=>K.value[e.code||``]=t,type:`textarea`,autosize:{minRows:2,maxRows:6},disabled:!Y.value,placeholder:`Ваш ответ...`},null,8,[`value`,`onUpdate:value`,`disabled`])]))),128)),Y.value?(r(),l(d(S),{key:0,justify:`end`,class:`questions-actions`},{default:v(()=>[b(`button`,{type:`button`,class:`paper-button`,onClick:a[2]||=e=>J()},` Сохранить ответы `)]),_:1})):e(``,!0)]),_:1})]),_:1})):e(``,!0),(r(!0),y(m,null,_(P.value.places,(e,t)=>(r(),l(re,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${F.value?.format}:${e.place.code}`,mcp:d(h).hasRole(`author`)&&M.value[t]?.mcp,addAction:G},null,8,[`place`,`mode`,`onUpdate:mode`,`mcp`]))),128)),P.value.places.length==0&&F.value?.status==`draft`?(r(),l(A,{key:2,class:`qr-main-block`},{default:v(()=>[s(f,{vertical:``},{default:v(()=>[a[10]||=b(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),a[11]||=b(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),b(`div`,me,[s(d(oe),{value:d(H),size:300,padding:0},null,8,[`value`])]),a[12]||=b(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):e(``,!0),d(h).hasRole(`author`)&&P.value.places.length>0?(r(),y(`div`,he,[s(d(S),{justify:`end`},{default:v(()=>[s(d(te),{onClick:$},{default:v(()=>[...a[13]||=[t(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):e(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-f0e86d30`]]),_e=h({__name:`TeamStoryView`,setup(e){return(e,t)=>(r(),l(ge))}});export{_e as default}; \ No newline at end of file diff --git a/dist/assets/TicketScannerView-BZuJRx3f.js b/dist/assets/TicketScannerView-De4Kct2U.js similarity index 89% rename from dist/assets/TicketScannerView-BZuJRx3f.js rename to dist/assets/TicketScannerView-De4Kct2U.js index b7f7950..c1cf5e0 100644 --- a/dist/assets/TicketScannerView-BZuJRx3f.js +++ b/dist/assets/TicketScannerView-De4Kct2U.js @@ -1 +1 @@ -import{B as e,C as t,D as n,Ft as r,G as i,H as a,L as o,O as s,S as c,_t as l,b as u,ft as d,h as f,k as p,tt as m,u as h,w as g,x as _}from"./client-E8nWUy_w.js";import{t as v}from"./Card-D_Y8VzWl.js";import{t as y}from"./Button-Cr3XRKS5.js";import{t as b}from"./Input-BkQuBf9P.js";import{t as x}from"./Alert-BwySuMew.js";import{t as S}from"./use-message-BD6Lw0qA.js";import{t as C}from"./Space-LOHABRdD.js";import{nt as w,t as T}from"./index-DrmfX-S2.js";import{n as E}from"./es-CBOun6Az.js";import{t as D}from"./HeaderMenu-D_gj_b_i.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom center-middle-block-custom scanner-page`},j={key:0},M={key:1},N={key:2},P=O(p({__name:`TicketScannerPage`,setup(p){let O=T(),P=h(),F=E(),I=S(),L=d(``),R=d(),z=d(``),B=d(!1),V=d(),H=d(!1),U,W=0,G=u(()=>{try{return new URL(L.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return L.value.trim()}});async function K(){if(!(!G.value||B.value)){B.value=!0,z.value=``,R.value=void 0;try{let e=await F.GetTicket({token:G.value});e.error||!e.ticket?z.value=e.error||`Билет не найден`:R.value=e.ticket}catch(e){z.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{B.value=!1}}}async function q(){if(!(!G.value||B.value)){B.value=!0,z.value=``;try{let e=await F.AcceptTicket({token:G.value});e.error||!e.ticket?z.value=e.error||`Не удалось принять билет`:(R.value=e.ticket,I.success(`Билет принят`))}catch(e){z.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{B.value=!1}}}async function J(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){z.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}try{U=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),H.value=!0,await o(),V.value&&(V.value.srcObject=U,await V.value.play());let t=new e,n=async()=>{if(!H.value||!V.value)return;let e=await t.detect(V.value);if(e[0]?.rawValue){L.value=e[0].rawValue,Y(),await K();return}W=requestAnimationFrame(n)};W=requestAnimationFrame(n)}catch{z.value=`Не удалось открыть камеру. Введите ссылку вручную.`}}function Y(){H.value=!1,cancelAnimationFrame(W),U?.getTracks().forEach(e=>e.stop()),U=void 0}return a(()=>{O.isAuthenticated||P.replace(`/login`)}),e(Y),(e,a)=>(i(),g(f,null,[s(D,{active:`games`}),_(`div`,A,[s(l(v),{title:`Проверка билета`,class:`scanner-card`},{default:m(()=>[s(l(C),{vertical:``},{default:m(()=>[H.value?(i(),g(`video`,{key:0,ref_key:`video`,ref:V,class:`scanner-video`,muted:``,playsinline:``},null,512)):t(``,!0),H.value?(i(),c(l(y),{key:2,onClick:Y},{default:m(()=>[...a[2]||=[n(`Остановить камеру`,-1)]]),_:1})):(i(),c(l(y),{key:1,onClick:J},{default:m(()=>[...a[1]||=[n(`Сканировать камерой`,-1)]]),_:1})),s(l(b),{value:L.value,"onUpdate:value":a[0]||=e=>L.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:w(K,[`enter`])},null,8,[`value`]),s(l(y),{type:`primary`,loading:B.value,onClick:K},{default:m(()=>[...a[3]||=[n(`Проверить билет`,-1)]]),_:1},8,[`loading`]),z.value?(i(),c(l(x),{key:3,type:`error`},{default:m(()=>[n(r(z.value),1)]),_:1})):t(``,!0),R.value?(i(),g(f,{key:4},[s(l(x),{type:R.value.status===`active`?`success`:`warning`},{default:m(()=>[n(r(R.value.gameName),1),a[4]||=_(`br`,null,null,-1),n(` Статус: `+r(R.value.status===`active`?`действителен`:`уже использован`)+` `,1),R.value.usedBy?(i(),g(`span`,j,` · `+r(R.value.usedBy),1)):t(``,!0),R.value.usedAt?(i(),g(`br`,M)):t(``,!0),R.value.usedAt?(i(),g(`span`,N,`Использован: `+r(l(k)(R.value.usedAt)),1)):t(``,!0)]),_:1},8,[`type`]),R.value.status===`active`&&R.value.gameStatus!==`finish`?(i(),c(l(y),{key:0,type:`primary`,loading:B.value,onClick:q},{default:m(()=>[...a[5]||=[n(` Принять билет `,-1)]]),_:1},8,[`loading`])):t(``,!0)],64)):t(``,!0)]),_:1})]),_:1})])],64))}}),[[`__scopeId`,`data-v-8a7f8b5d`]]),F=p({__name:`TicketScannerView`,setup(e){return(e,t)=>(i(),c(P))}});export{F as default}; \ No newline at end of file +import{B as e,C as t,D as n,Ft as r,G as i,H as a,L as o,O as s,S as c,_t as l,b as u,ft as d,h as f,k as p,tt as m,u as h,w as g,x as _}from"./client-BBfBDiVG.js";import{t as v}from"./Card-Cze8lALH.js";import{t as y}from"./Button-DAM1cqtA.js";import{t as b}from"./Input-2L35DdEz.js";import{t as x}from"./Alert-DsjLN_Ag.js";import{t as S}from"./use-message-DyQW5yAL.js";import{t as C}from"./Space-_Xn7R9gX.js";import{nt as w,t as T}from"./index-DnUl8nHF.js";import{n as E}from"./es-D90fN3qV.js";import{t as D}from"./HeaderMenu-CqYU4ywX.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom center-middle-block-custom scanner-page`},j={key:0},M={key:1},N={key:2},P=O(p({__name:`TicketScannerPage`,setup(p){let O=T(),P=h(),F=E(),I=S(),L=d(``),R=d(),z=d(``),B=d(!1),V=d(),H=d(!1),U,W=0,G=u(()=>{try{return new URL(L.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return L.value.trim()}});async function K(){if(!(!G.value||B.value)){B.value=!0,z.value=``,R.value=void 0;try{let e=await F.GetTicket({token:G.value});e.error||!e.ticket?z.value=e.error||`Билет не найден`:R.value=e.ticket}catch(e){z.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{B.value=!1}}}async function q(){if(!(!G.value||B.value)){B.value=!0,z.value=``;try{let e=await F.AcceptTicket({token:G.value});e.error||!e.ticket?z.value=e.error||`Не удалось принять билет`:(R.value=e.ticket,I.success(`Билет принят`))}catch(e){z.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{B.value=!1}}}async function J(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){z.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}try{U=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),H.value=!0,await o(),V.value&&(V.value.srcObject=U,await V.value.play());let t=new e,n=async()=>{if(!H.value||!V.value)return;let e=await t.detect(V.value);if(e[0]?.rawValue){L.value=e[0].rawValue,Y(),await K();return}W=requestAnimationFrame(n)};W=requestAnimationFrame(n)}catch{z.value=`Не удалось открыть камеру. Введите ссылку вручную.`}}function Y(){H.value=!1,cancelAnimationFrame(W),U?.getTracks().forEach(e=>e.stop()),U=void 0}return a(()=>{O.isAuthenticated||P.replace(`/login`)}),e(Y),(e,a)=>(i(),g(f,null,[s(D,{active:`games`}),_(`div`,A,[s(l(v),{title:`Проверка билета`,class:`scanner-card`},{default:m(()=>[s(l(C),{vertical:``},{default:m(()=>[H.value?(i(),g(`video`,{key:0,ref_key:`video`,ref:V,class:`scanner-video`,muted:``,playsinline:``},null,512)):t(``,!0),H.value?(i(),c(l(y),{key:2,onClick:Y},{default:m(()=>[...a[2]||=[n(`Остановить камеру`,-1)]]),_:1})):(i(),c(l(y),{key:1,onClick:J},{default:m(()=>[...a[1]||=[n(`Сканировать камерой`,-1)]]),_:1})),s(l(b),{value:L.value,"onUpdate:value":a[0]||=e=>L.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:w(K,[`enter`])},null,8,[`value`]),s(l(y),{type:`primary`,loading:B.value,onClick:K},{default:m(()=>[...a[3]||=[n(`Проверить билет`,-1)]]),_:1},8,[`loading`]),z.value?(i(),c(l(x),{key:3,type:`error`},{default:m(()=>[n(r(z.value),1)]),_:1})):t(``,!0),R.value?(i(),g(f,{key:4},[s(l(x),{type:R.value.status===`active`?`success`:`warning`},{default:m(()=>[n(r(R.value.gameName),1),a[4]||=_(`br`,null,null,-1),n(` Статус: `+r(R.value.status===`active`?`действителен`:`уже использован`)+` `,1),R.value.usedBy?(i(),g(`span`,j,` · `+r(R.value.usedBy),1)):t(``,!0),R.value.usedAt?(i(),g(`br`,M)):t(``,!0),R.value.usedAt?(i(),g(`span`,N,`Использован: `+r(l(k)(R.value.usedAt)),1)):t(``,!0)]),_:1},8,[`type`]),R.value.status===`active`&&R.value.gameStatus!==`finish`?(i(),c(l(y),{key:0,type:`primary`,loading:B.value,onClick:q},{default:m(()=>[...a[5]||=[n(` Принять билет `,-1)]]),_:1},8,[`loading`])):t(``,!0)],64)):t(``,!0)]),_:1})]),_:1})])],64))}}),[[`__scopeId`,`data-v-8a7f8b5d`]]),F=p({__name:`TicketScannerView`,setup(e){return(e,t)=>(i(),c(P))}});export{F as default}; \ No newline at end of file diff --git a/dist/assets/TicketView-DiJx-Ife.js b/dist/assets/TicketView-C6VFKGmR.js similarity index 92% rename from dist/assets/TicketView-DiJx-Ife.js rename to dist/assets/TicketView-C6VFKGmR.js index 48bc15a..64c8049 100644 --- a/dist/assets/TicketView-DiJx-Ife.js +++ b/dist/assets/TicketView-C6VFKGmR.js @@ -1 +1 @@ -import{D as e,Ft as t,G as n,H as r,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-E8nWUy_w.js";import{t as g}from"./Button-Cr3XRKS5.js";import{t as _}from"./QrCode-DayNjdR9.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-Cy3nagN1.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(u({__name:`TicketPage`,setup(u){let v=d(),O=f(),k=s(()=>String(v.params.token||``)),A=c(),j=c(!1),M=c(``),N=s(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(e.error||!e.ticket){M.value=e.error||`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return r(P),(r,s)=>(n(),m(`div`,x,[h(`div`,S,[i(b,null,{default:p(()=>[h(`div`,C,[s[7]||=h(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),s[8]||=h(`h1`,null,`Билет на игру`,-1),M.value?(n(),m(`p`,w,t(M.value),1)):A.value?(n(),m(l,{key:1},[h(`h2`,null,t(A.value.gameName),1),s[5]||=h(`hr`,null,null,-1),h(`dl`,null,[h(`div`,null,[s[0]||=h(`dt`,null,`Начало`,-1),h(`dd`,null,t(o(y)(A.value.startAt)),1)]),h(`div`,null,[s[1]||=h(`dt`,null,`Место`,-1),h(`dd`,null,t(A.value.location||`Онлайн`),1)])]),h(`div`,T,[i(o(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),s[6]||=h(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(n(),m(l,{key:0},[s[2]||=h(`hr`,null,null,-1),h(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${o(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(n(),m(`p`,D,` Игра уже завершена. `)):(n(),m(l,{key:2},[s[3]||=h(`hr`,null,null,-1),s[4]||=h(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(n(),a(o(g),{key:2,loading:j.value,onClick:P},{default:p(()=>[e(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-093e1f15`]]),k=u({__name:`TicketView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default}; \ No newline at end of file +import{D as e,Ft as t,G as n,H as r,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-BBfBDiVG.js";import{t as g}from"./Button-DAM1cqtA.js";import{t as _}from"./QrCode-BOyg-J5s.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-HXyPZ4jl.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(u({__name:`TicketPage`,setup(u){let v=d(),O=f(),k=s(()=>String(v.params.token||``)),A=c(),j=c(!1),M=c(``),N=s(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(e.error||!e.ticket){M.value=e.error||`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return r(P),(r,s)=>(n(),m(`div`,x,[h(`div`,S,[i(b,null,{default:p(()=>[h(`div`,C,[s[7]||=h(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),s[8]||=h(`h1`,null,`Билет на игру`,-1),M.value?(n(),m(`p`,w,t(M.value),1)):A.value?(n(),m(l,{key:1},[h(`h2`,null,t(A.value.gameName),1),s[5]||=h(`hr`,null,null,-1),h(`dl`,null,[h(`div`,null,[s[0]||=h(`dt`,null,`Начало`,-1),h(`dd`,null,t(o(y)(A.value.startAt)),1)]),h(`div`,null,[s[1]||=h(`dt`,null,`Место`,-1),h(`dd`,null,t(A.value.location||`Онлайн`),1)])]),h(`div`,T,[i(o(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),s[6]||=h(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(n(),m(l,{key:0},[s[2]||=h(`hr`,null,null,-1),h(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${o(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(n(),m(`p`,D,` Игра уже завершена. `)):(n(),m(l,{key:2},[s[3]||=h(`hr`,null,null,-1),s[4]||=h(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(n(),a(o(g),{key:2,loading:j.value,onClick:P},{default:p(()=>[e(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-093e1f15`]]),k=u({__name:`TicketView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default}; \ No newline at end of file diff --git a/dist/assets/Upload-UneDPhCs.js b/dist/assets/Upload-ByR1zA4h.js similarity index 98% rename from dist/assets/Upload-UneDPhCs.js rename to dist/assets/Upload-ByR1zA4h.js index 4145780..36dab0c 100644 --- a/dist/assets/Upload-UneDPhCs.js +++ b/dist/assets/Upload-ByR1zA4h.js @@ -1,4 +1,4 @@ -import{$ as e,B as t,H as n,K as r,L as i,M as a,P as o,Pt as s,b as c,d as l,et as u,ft as d,g as f,gt as p,h as m,ht as h,k as g,nt as _}from"./client-E8nWUy_w.js";import{F as v,G as y,I as b,J as x,K as S,L as C,M as w,N as T,X as E,Y as D,Z as O,n as k,o as ee,r as A,t as j,z as M}from"./light-Dq0naAvE.js";import{u as te}from"./Follower-Bj8mg9ex.js";import{d as N,u as P}from"./Card-D_Y8VzWl.js";import{a as F,i as ne,t as re}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{t as I}from"./use-merged-state-C1ccSDEx.js";import{a as L,t as R}from"./Button-Cr3XRKS5.js";import{n as z,t as ie}from"./Popover-DjXPu6IJ.js";import{n as ae,r as B}from"./use-form-item-CVzWkQI_.js";import{o as V}from"./get-DETsKAHF.js";import{r as H}from"./resolve-slot-C9tdVP4f.js";import{r as oe}from"./Suffix-D4EvRHEf.js";import{t as U}from"./Add-BCBjjH0K.js";import{n as se}from"./Input-BkQuBf9P.js";import{t as W}from"./fade-in.cssr-C7FS-iQO.js";import{B as ce,H as le,I as ue,L as de,P as fe,Q as G,R as K,T as q,U as J,V as Y,W as X,X as pe,Y as me,Z as he,c as ge,r as _e,tt as ve,v as ye,z as be}from"./index-DrmfX-S2.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++ia(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),yt=Y(`cancel`,()=>a(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),bt=Y(`download`,()=>a(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),xt=g({name:`ResizeSmall`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},a(`g`,{fill:`none`},a(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),St=Y(`retry`,()=>a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),a(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ct=Y(`rotateClockwise`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),a(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),wt=Y(`rotateClockwise`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),a(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Tt=Y(`trash`,()=>a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Et=Y(`zoomIn`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),a(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Dt=Y(`zoomOut`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),a(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Ot=L&&`loading`in document.createElement(`img`);function kt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=(e,t,n)=>{if(!e)return()=>{};let r=kt(t),{root:i}=r.options,a,o=At.get(i);o?a=o:(a=new Map,At.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=jt.get(e.target),n=Mt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(jt.delete(e),Mt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||At.delete(i))};return jt.set(e,u),Mt.set(e,n),u},Pt=g({name:`Tooltip`,props:Object.assign(Object.assign({},z),A.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=T(e),n=A(`Tooltip`,`-tooltip`,void 0,ye,e,t),r=d(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:c(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return a(ie,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function Ft(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var It=k({name:`Image`,common:j,peers:{Tooltip:ye},self:Ft});function Lt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function Rt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function zt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Bt=Object.assign(Object.assign({},A.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Vt=M(`n-image`),Ht=y([y(`body >`,[S(`image-container`,`position: fixed;`)]),S(`image-preview-container`,` +import{$ as e,B as t,H as n,K as r,L as i,M as a,P as o,Pt as s,b as c,d as l,et as u,ft as d,g as f,gt as p,h as m,ht as h,k as g,nt as _}from"./client-BBfBDiVG.js";import{F as v,G as y,I as b,J as x,K as S,L as C,M as w,N as T,X as E,Y as D,Z as O,n as k,o as ee,r as A,t as j,z as M}from"./light-DqAV2QCd.js";import{u as te}from"./Follower-DIc7TcHi.js";import{d as N,u as P}from"./Card-Cze8lALH.js";import{a as F,i as ne,t as re}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{t as I}from"./use-merged-state-DRpgLPWV.js";import{a as L,t as R}from"./Button-DAM1cqtA.js";import{n as z,t as ie}from"./Popover-I7RatnYr.js";import{n as ae,r as B}from"./use-form-item-ajbhslgm.js";import{o as V}from"./get-Dx9q3WGo.js";import{r as H}from"./resolve-slot-C_Onglzh.js";import{r as oe}from"./Suffix-DM_ippuo.js";import{t as U}from"./Add-DRm_H-MT.js";import{n as se}from"./Input-2L35DdEz.js";import{t as W}from"./fade-in.cssr-CKxOL_aH.js";import{B as ce,H as le,I as ue,L as de,P as fe,Q as G,R as K,T as q,U as J,V as Y,W as X,X as pe,Y as me,Z as he,c as ge,r as _e,tt as ve,v as ye,z as be}from"./index-DnUl8nHF.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++ia(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),yt=Y(`cancel`,()=>a(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),bt=Y(`download`,()=>a(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),xt=g({name:`ResizeSmall`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},a(`g`,{fill:`none`},a(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),St=Y(`retry`,()=>a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),a(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ct=Y(`rotateClockwise`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),a(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),wt=Y(`rotateClockwise`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),a(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Tt=Y(`trash`,()=>a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),a(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Et=Y(`zoomIn`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),a(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Dt=Y(`zoomOut`,()=>a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),a(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Ot=L&&`loading`in document.createElement(`img`);function kt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=(e,t,n)=>{if(!e)return()=>{};let r=kt(t),{root:i}=r.options,a,o=At.get(i);o?a=o:(a=new Map,At.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=jt.get(e.target),n=Mt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(jt.delete(e),Mt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||At.delete(i))};return jt.set(e,u),Mt.set(e,n),u},Pt=g({name:`Tooltip`,props:Object.assign(Object.assign({},z),A.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=T(e),n=A(`Tooltip`,`-tooltip`,void 0,ye,e,t),r=d(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:c(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return a(ie,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function Ft(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var It=k({name:`Image`,common:j,peers:{Tooltip:ye},self:Ft});function Lt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function Rt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function zt(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Bt=Object.assign(Object.assign({},A.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Vt=M(`n-image`),Ht=y([y(`body >`,[S(`image-container`,`position: fixed;`)]),S(`image-preview-container`,` position: fixed; left: 0; right: 0; diff --git a/dist/assets/UserAgreementView-CKFkBjBE.js b/dist/assets/UserAgreementView-CKFkBjBE.js deleted file mode 100644 index a4b0148..0000000 --- a/dist/assets/UserAgreementView-CKFkBjBE.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,O as t,h as n,k as r,w as i}from"./client-E8nWUy_w.js";import{t as a}from"./DocsPage-F0VrNYfv.js";import{t as o}from"./HeaderMenu-D_gj_b_i.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`terms`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/UserAgreementView-CtxhuEWz.js b/dist/assets/UserAgreementView-CtxhuEWz.js new file mode 100644 index 0000000..57da695 --- /dev/null +++ b/dist/assets/UserAgreementView-CtxhuEWz.js @@ -0,0 +1 @@ +import{G as e,O as t,h as n,k as r,w as i}from"./client-BBfBDiVG.js";import{t as a}from"./DocsPage-BsboAE3e.js";import{t as o}from"./HeaderMenu-CqYU4ywX.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`terms`}),t(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/dist/assets/UsersView-lf1HNeIK.js b/dist/assets/UsersView-CZCDgMwm.js similarity index 97% rename from dist/assets/UsersView-lf1HNeIK.js rename to dist/assets/UsersView-CZCDgMwm.js index cb1508b..7484097 100644 --- a/dist/assets/UsersView-lf1HNeIK.js +++ b/dist/assets/UsersView-CZCDgMwm.js @@ -1,4 +1,4 @@ -import{$ as e,A as t,B as n,C as r,D as i,Ft as a,G as o,H as s,K as c,M as l,O as u,P as d,S as f,_t as p,b as m,ft as h,h as g,ht as _,k as v,q as y,tt as b,w as x,x as S}from"./client-E8nWUy_w.js";import{G as C,J as w,K as T,L as E,M as ee,N as te,Y as D,Z as O,a as k,r as ne,z as A}from"./light-Dq0naAvE.js";import{s as re}from"./Card-D_Y8VzWl.js";import{t as ie}from"./Modal-D1InIULi.js";import{t as j}from"./Button-Cr3XRKS5.js";import{t as ae}from"./use-form-item-CVzWkQI_.js";import{o as M,t as oe}from"./get-DETsKAHF.js";import{a as se}from"./resolve-slot-C9tdVP4f.js";import{t as N}from"./Input-BkQuBf9P.js";import{t as P}from"./Tag-Bb42yLml.js";import{t as ce}from"./use-message-BD6Lw0qA.js";import{t as le}from"./Space-LOHABRdD.js";import{t as F}from"./Flex-7TW8da2P.js";import{Q as ue,Z as de,l as fe,rt as pe,t as me}from"./index-DrmfX-S2.js";import{n as he}from"./es-CBOun6Az.js";import{t as ge}from"./HeaderMenu-D_gj_b_i.js";import{t as _e}from"./_plugin-vue_export-helper-BDNMzG2s.js";function ve(r,i,a){let o=d(r,null);if(o===null)return;let s=t()?.proxy;e(a,c),c(a.value),n(()=>{c(void 0,a.value)});function c(e,t){if(!o)return;let n=o[i];t!==void 0&&l(n,t),e!==void 0&&u(n,e)}function l(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===s),1)}function u(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===s)||e[t].push(s)}}var I=A(`n-form`),ye=A(`n-form-item-insts`);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e,t,n){return B=xe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&z(i,n.prototype),i},B.apply(null,arguments)}function Se(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function V(e){var t=typeof Map==`function`?new Map:void 0;return V=function(e){if(e===null||!Se(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return B(e,arguments,R(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),z(n,e)},V(e)}var Ce=/%[sdj%]/g,we=function(){};function H(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function U(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ce,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Te(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function W(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Te(t)&&typeof e==`string`&&!e)}function Ee(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function De(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s{c(void 0,a.value)});function c(e,t){if(!o)return;let n=o[i];t!==void 0&&l(n,t),e!==void 0&&u(n,e)}function l(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===s),1)}function u(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===s)||e[t].push(s)}}var I=A(`n-form`),ye=A(`n-form-item-insts`);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(e,t,n){return B=xe()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&z(i,n.prototype),i},B.apply(null,arguments)}function Se(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function V(e){var t=typeof Map==`function`?new Map:void 0;return V=function(e){if(e===null||!Se(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return B(e,arguments,R(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),z(n,e)},V(e)}var Ce=/%[sdj%]/g,we=function(){};function H(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function U(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ce,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Te(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function W(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Te(t)&&typeof e==`string`&&!e)}function Ee(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function De(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,snull);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t}; \ No newline at end of file +import{r as e}from"./client-BBfBDiVG.js";import{t}from"./index-DnUl8nHF.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t}; \ No newline at end of file diff --git a/dist/assets/client-E8nWUy_w.js b/dist/assets/client-BBfBDiVG.js similarity index 91% rename from dist/assets/client-E8nWUy_w.js rename to dist/assets/client-BBfBDiVG.js index 6c36b65..7e2583f 100644 --- a/dist/assets/client-E8nWUy_w.js +++ b/dist/assets/client-BBfBDiVG.js @@ -1 +1 @@ -function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function j(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n!!(e&&e.__v_isRef===!0),be=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Se(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Se(e))}:_(t)?Se(t):v(t)&&!d(t)&&!C(t)?String(t):t,Se=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,M,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ge)||(e.globalVersion=Ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,Ve=[];function He(){Ve.push(P),P=!1}function Ue(){let e=Ve.pop();P=e===void 0?!0:e}function We(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ge=0,Ke=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Ke(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Je(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ge++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Je(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Je(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ye=new WeakMap,Xe=Symbol(``),Ze=Symbol(``),Qe=Symbol(``);function F(e,t,n){if(P&&N){let t=Ye.get(e);t||Ye.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qe),r.map=t,r.key=n),r.track()}}function $e(e,t,n,r,i,a){let o=Ye.get(e);if(!o){Ge++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`delete`:i||(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`set`:f(e)&&s(o.get(Xe));break}}Pe()}function et(e,t){let n=Ye.get(e);return n&&n.get(t)}function tt(e){let t=L(e);return t===e?t:(F(t,`iterate`,Qe),I(e)?t:t.map(Ht))}function nt(e){return F(e=L(e),`iterate`,Qe),e}function rt(e,t){return zt(e)?Ut(Rt(e)?Ht(t):t):Ht(t)}var it={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return tt(this).concat(...e.map(e=>d(e)?tt(e):e))},entries(){return at(this,`entries`,e=>(e[1]=rt(this,e[1]),e))},every(e,t){return st(this,`every`,e,t,void 0,arguments)},filter(e,t){return st(this,`filter`,e,t,e=>e.map(e=>rt(this,e)),arguments)},find(e,t){return st(this,`find`,e,t,e=>rt(this,e),arguments)},findIndex(e,t){return st(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return st(this,`findLast`,e,t,e=>rt(this,e),arguments)},findLastIndex(e,t){return st(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return st(this,`forEach`,e,t,void 0,arguments)},includes(...e){return lt(this,`includes`,e)},indexOf(...e){return lt(this,`indexOf`,e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return lt(this,`lastIndexOf`,e)},map(e,t){return st(this,`map`,e,t,void 0,arguments)},pop(){return ut(this,`pop`)},push(...e){return ut(this,`push`,e)},reduce(e,...t){return ct(this,`reduce`,e,t)},reduceRight(e,...t){return ct(this,`reduceRight`,e,t)},shift(){return ut(this,`shift`)},some(e,t){return st(this,`some`,e,t,void 0,arguments)},splice(...e){return ut(this,`splice`,e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ut(this,`unshift`,e)},values(){return at(this,`values`,e=>rt(this,e))}};function at(e,t,n){let r=nt(e),i=r[t]();return r!==e&&!I(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ot=Array.prototype;function st(e,t,n,r,i,a){let o=nt(e),s=o!==e&&!I(e),c=o[t];if(c!==ot[t]){let t=c.apply(e,a);return s?Ht(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,rt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ct(e,t,n,r){let i=nt(e),a=i!==e&&!I(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=rt(e,t)),n.call(this,t,rt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?rt(e,c):c}function lt(e,t,n){let r=L(e);F(r,`iterate`,Qe);let i=r[t](...n);return(i===-1||i===!1)&&Bt(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function ut(e,t,n=[]){He(),Ne();let r=L(e)[t].apply(e,n);return Pe(),Ue(),r}var dt=e(`__proto__,__v_isRef,__isVue`),ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function pt(e){_(e)||(e=String(e));let t=L(this);return F(t,`has`,e),t.hasOwnProperty(e)}var mt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Mt:jt:i?At:kt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=it[t]))return e;if(t===`hasOwnProperty`)return pt}let o=Reflect.get(e,t,R(e)?e:n);if((_(t)?ft.has(t):dt(t))||(r||F(e,`get`,t),i))return o;if(R(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?It(e):e}return v(o)?r?It(o):Pt(o):o}},ht=class extends mt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=zt(i);if(!I(n)&&!zt(n)&&(i=L(i),n=L(n)),!a&&R(i)&&!R(n))return e||(i.value=n),!0}let o=a?Number(t)e,xt=e=>Reflect.getPrototypeOf(e);function St(e,t,n){return function(...r){let i=this.__v_raw,a=L(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?bt:t?Ut:Ht;return!t&&F(a,`iterate`,l?Ze:Xe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ct(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wt(e,t){let n={get(n){let r=this.__v_raw,i=L(r),a=L(n);e||(k(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=xt(i),s=t?bt:e?Ut:Ht;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&F(L(t),`iterate`,Xe),t.size},has(t){let n=this.__v_raw,r=L(n),i=L(t);return e||(k(t,i)&&F(r,`has`,t),F(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=L(a),s=t?bt:e?Ut:Ht;return!e&&F(o,`iterate`,Xe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Ct(`add`),set:Ct(`set`),delete:Ct(`delete`),clear:Ct(`clear`)}:{add(e){let n=L(this),r=xt(n),i=L(e),a=!t&&!I(e)&&!zt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),$e(n,`add`,a,a)),this},set(e,n){!t&&!I(n)&&!zt(n)&&(n=L(n));let r=L(this),{has:i,get:a}=xt(r),o=i.call(r,e);o||=(e=L(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&$e(r,`set`,e,n,s):$e(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=xt(t),i=n.call(t,e);i||=(e=L(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&$e(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&$e(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=St(r,e,t)}),n}function Tt(e,t){let n=wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Et={get:Tt(!1,!1)},Dt={get:Tt(!1,!0)},Ot={get:Tt(!0,!1)},kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function Nt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Pt(e){return zt(e)?e:Lt(e,!1,_t,Et,kt)}function Ft(e){return Lt(e,!1,yt,Dt,At)}function It(e){return Lt(e,!0,vt,Ot,jt)}function Lt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Nt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Rt(e){return zt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function Bt(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function Vt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var Ht=e=>v(e)?Pt(e):e,Ut=e=>v(e)?It(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Wt(e){return Kt(e,!1)}function Gt(e){return Kt(e,!0)}function Kt(e,t){return R(e)?e:new qt(e,t)}var qt=class{constructor(e,t){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:L(e),this._value=t?e:Ht(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||I(e)||zt(e);e=n?e:L(e),k(e,t)&&(this._rawValue=e,this._value=n?e:Ht(e),this.dep.trigger())}};function Jt(e){return R(e)?e.value:e}var Yt={get:(e,t,n)=>t===`__v_raw`?e:Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return R(i)&&!R(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return Rt(e)?e:new Proxy(e,Yt)}function Zt(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=tn(e,n);return t}var Qt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=_(t)?t:String(t),this._raw=L(e);let r=!0,i=e;if(!d(e)||_(this._key)||!w(this._key))do r=!Bt(i)||I(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Jt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&R(this._raw[this._key])){let t=this._object[this._key];if(R(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return et(this._raw,this._key)}},$t=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function en(e,t,n){return R(e)?e:h(e)?new $t(e):v(e)&&arguments.length>1?tn(e,t,n):Wt(e)}function tn(e,t,n){return new Qt(e,t,n)}var nn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function rn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new nn(r,i,n)}var an={},on=new WeakMap,sn=void 0;function cn(e,t=!1,n=sn){if(n){let t=on.get(n);t||on.set(n,t=[]),t.push(e)}}function ln(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:I(e)||o===!1||o===0?un(e,1):un(e),m,g,_,v,y=!1,b=!1;if(R(e)?(g=()=>e.value,y=I(e)):Rt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Rt(e)||I(e)),g=()=>e.map(e=>{if(R(e))return e.value;if(Rt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){He();try{_()}finally{Ue()}}let t=sn;sn=m;try{return f?f(e,3,[v]):e(v)}finally{sn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>un(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(an):an,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=sn;sn=m;try{let e=[t,C===an?void 0:b&&C[0]===an?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{sn=e}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>cn(e,!1,m),_=m.onStop=()=>{let e=on.get(m);if(e){if(f)f(e,4);else for(let t of e)t();on.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function un(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,R(e))un(e.value,t,n);else if(d(e))for(let r=0;r{un(e,t,n)});else if(C(e)){for(let r in e)un(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,n)}return e}function dn(e,t,n,r){try{return r?e(...r):e()}catch(e){fn(e,t,n)}}function z(e,t,n,r){if(h(e)){let i=dn(e,t,n,r);return i&&y(i)&&i.catch(e=>{fn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=B[r],a=Dn(i);a=Dn(n)?B.push(e):B.splice(xn(t),0,e),e.flags|=1,Cn()}}function Cn(){yn||=vn.then(On)}function wn(e){d(e)?hn.push(...e):gn&&e.id===-1?gn.splice(_n+1,0,e):e.flags&1||(hn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=mn+1){for(;nDn(e)-Dn(t));if(hn.length=0,gn){gn.push(...e);return}for(gn=e,_n=0;_ne.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(mn=0;mn{r._d&&fa(-1);let i=An(t),a;try{a=e(...n)}finally{An(i),r._d&&fa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mn(e,n){if(V===null)return e;let r=Ya(V),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}function Fn(){return!!(Pa()||_i)}var In=Symbol.for(`v-scx`),Ln=()=>H(In);function Rn(e,t){return Bn(e,null,t)}function zn(e,t,n){return Bn(e,t,n)}function Bn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ba){if(c===`sync`){let e=Ln();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Z;u.call=(e,t,n)=>z(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{K(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=ln(e,n,u);return Ba&&(f?f.push(h):d&&h()),h}function Vn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Hn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=La(this),s=Bn(i,a.bind(r),n);return o(),s}function Hn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===``),qn=e=>e&&(e.defer||e.defer===``),Jn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Yn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Xn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Zn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Kn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Kn(e.props),r=e.target=Xn(e.props,m),a=nr(r,e,h,p);r&&(o!==`svg`&&Jn(r)?o=`svg`:o!==`mathml`&&Yn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),tr(e,!1)))},S=e=>{let t=()=>{if(Un.get(e)===t){if(Un.delete(e),Kn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),tr(e,!0)}x(e)}};Un.set(e,t),K(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),qn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),tr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Un.get(e);if(u){u.flags|=8,Un.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Kn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Jn(p)?o=`svg`:(o===`mathml`||Yn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),$i(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Xn(t.props,m);e&&(t.target=e,Qn(t,e,null,l,0))}else g&&Qn(t,p,h,l,1);tr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Kn(f),m=a||!p,h=Un.get(e);if(h&&(h.flags|=8,Un.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}var W=[Function,Array],ar={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:W,onEnter:W,onAfterEnter:W,onEnterCancelled:W,onBeforeLeave:W,onLeave:W,onAfterLeave:W,onLeaveCancelled:W,onBeforeAppear:W,onAppear:W,onAfterAppear:W,onAppearCancelled:W},or=e=>{let t=e.subTree;return t.component?or(t.component):t},sr={name:`BaseTransition`,props:ar,setup(e,{slots:t}){let n=Pa(),r=ir();return()=>{let i=t.default&&hr(t.default(),!0),a=i&&i.length?cr(i):n.subTree?Ta():void 0;if(!a)return;let o=L(e),{mode:s}=o;if(r.isLeaving)return fr(a);let c=pr(a);if(!c)return fr(a);let l=dr(c,o,r,n,e=>l=e);c.type!==J&&mr(c,l);let u=n.subTree&&pr(n.subTree);if(u&&u.type!==J&&!_a(u,c)&&or(n).type!==J){let e=dr(u,o,r,n);if(mr(u,e),s===`out-in`&&c.type!==J)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},fr(a);s===`in-out`&&c.type!==J?e.delayLeave=(e,t,n)=>{let i=ur(r,u);i[String(u.key)]=u,e[U]=()=>{t(),e[U]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==J){t=n;break}}return t}var lr=sr;function ur(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ur(n,e),C=(e,t)=>{e&&z(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[U]&&t[U](!0);let i=S[x];i&&_a(e,i)&&i.el[U]&&i.el[U](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[rr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[rr]=void 0)};let c=t[rr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[rr]&&t[rr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[U]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[U]=void 0,S[i]===e&&delete S[i])};let o=t[U].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=dr(e,t,n,r,i);return i&&i(a),a}};return T}function fr(e){if(Cr(e))return e=Ca(e),e.children=null,e}function pr(e){if(!Cr(e))return Gn(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ebr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Sr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=L(v),b=v===t?i:e=>vr(_,e)?!1:u(y,e),x=(e,t)=>!(t&&vr(_,t));if(m!=null&&m!==p){if(xr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(R(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p)){He();try{dn(p,f,12,[l,_])}finally{Ue()}}else{let t=g(p),n=R(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),yr.delete(e)};t.id=-1,yr.set(e,t),K(t,r)}else xr(e),i()}}}function xr(e){let t=yr.get(e);t&&(t.flags|=8,yr.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var Sr=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function wr(e,t){Er(e,`a`,t)}function Tr(e,t){Er(e,`da`,t)}function Er(e,t,n=Z){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Cr(e.parent.vnode)&&Dr(r,t,n,e),e=e.parent}}function Dr(e,t,n,r){let i=Or(t,e,r,!0);Fr(()=>{c(r[t],i)},n)}function Or(e,t,n=Z,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{He();let i=La(n),a=z(t,n,e,r);return i(),Ue(),a};return r?i.unshift(a):i.push(a),a}}var kr=e=>(t,n=Z)=>{(!Ba||e===`sp`)&&Or(e,(...e)=>t(...e),n)},Ar=kr(`bm`),jr=kr(`m`),Mr=kr(`bu`),Nr=kr(`u`),Pr=kr(`bum`),Fr=kr(`um`),Ir=kr(`sp`),Lr=kr(`rtg`),Rr=kr(`rtc`);function zr(e,t=Z){Or(`ec`,e,t)}var Br=`components`;function Vr(e,t){return Ur(Br,e,!0,t)||e}var Hr=Symbol.for(`v-ndc`);function Ur(e,t,n=!0,r=!1){let i=V||Z;if(i){let n=i.type;if(e===Br){let e=Xa(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}let a=Wr(i[e]||n[e],t)||Wr(i.appContext[e],t);return!a&&r?n:a}}function Wr(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}function Gr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Rt(e),r=!1,s=!1;n&&(r=!I(e),s=zt(e),e=nt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function qr(e,t,n={},r,i){if(V.ce||V.parent&&Sr(V.parent)&&V.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),la(),ha(q,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),la();let o=a&&Jr(a(n)),s=n.key||o&&o.key,c=ha(q,{key:(s&&!_(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Jr(e){return e.some(e=>ga(e)?!(e.type===J||e.type===q&&!Jr(e.children)):!0)?e:null}var Yr=e=>e?za(e)?Ya(e):Yr(e.parent):null,Xr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=bn.bind(e.proxy),$watch:e=>Vn.bind(e)}),Zr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Qr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Zr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else ei&&(s[n]=0)}let d=Xr[n],f,p;if(d)return n===`$attrs`&&F(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Zr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Zr(n,c)||u(o,c)||u(i,c)||u(Xr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function $r(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var ei=!0;function ti(e){let t=ai(e),n=e.proxy,i=e.ctx;ei=!1,t.beforeCreate&&ri(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&ni(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Pt(t))}if(ei=!0,o)for(let e in o){let t=o[e],a=Q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ii(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Pn(t,e[t])})}f&&ri(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Ar,p),A(jr,m),A(Mr,g),A(Nr,_),A(wr,y),A(Tr,b),A(zr,E),A(Rr,ee),A(Lr,te),A(Pr,S),A(Fr,w),A(Ir,ne),d(D))if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&_r(e)}function ni(e,t,n=r){d(e)&&(e=ui(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?H(r.from||n,r.default,!0):H(r.from||n):H(r),R(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ri(e,t,n){z(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let i=r.includes(`.`)?Hn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&zn(i,n)}else if(h(e))zn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>ii(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&zn(i,r,e)}}function ai(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>oi(c,e,o,!0)),oi(c,t,o)),v(t)&&a.set(t,c),c}function oi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&oi(e,a,n,!0),i&&i.forEach(t=>oi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=si[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var si={data:ci,props:fi,emits:fi,methods:di,computed:di,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:di,directives:di,watch:pi,provide:ci,inject:li};function ci(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function li(e,t){return di(ui(e),ui(t))}function ui(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function yi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&vi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&z(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,z(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=xi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=An(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ea(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ea(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:wi(c)}}catch(t){ca.length=0,fn(t,e,1),v=X(J)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ti(y,a)),b=Ca(b,y,!1,!0))}return n.dirs&&(b=Ca(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,An(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Ft(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=L(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Vi=e=>d(e)?e.map(Ea):[Ea(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=jn((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(h(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&A(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Gi(a,n,r):(o=!n.$stable,Ui(n,a)),s=n}else n&&(Wi(e,n),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},K=aa;function Ji(e){return Yi(e)}function Yi(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!_a(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case oa:y(e,t,n,r);break;case J:b(e,t,n,r);break;case sa:e??x(t,n,r,o);break;case q:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&br(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Xi(e,a),s,u),_&&Nn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Aa(f,r,e)}_&&Nn(e,null,r,`beforeMount`);let v=Qi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&K(()=>{try{f&&Aa(f,r,e),v&&g.enter(d),_&&Nn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Zi(r,!1),(g=h.onVnodeBeforeUpdate)&&Aa(g,r,n,e),f&&Nn(n,e,r,`beforeUpdate`),r&&Zi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Xi(n,a),o):s||j(e,n,l,null,r,i,Xi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Aa(g,r,n,e),f&&Nn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&$i(e,t,!0)):j(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=Na(e,r,i);if(Cr(e)&&(s.ctx.renderer=be),Va(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=X(J);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ta(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{K(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zi(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Aa(d,s,t,c),Zi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&K(r,i),(d=t.props&&t.props.onVnodeUpdated)&&K(()=>Aa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Sr(t);if(Zi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Aa(o,d,t),Zi(e,!0),s&&Se){let t=()=>{e.subTree=Ci(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&K(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;K(()=>Aa(o,d,e),i)}(t.shapeFlag&256||d&&Sr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&K(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),Zi(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),He(),Tn(e),Ue()},j=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Da(t[u]):Ea(t[u]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Da(t[p]):Ea(t[p]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Da(t[u]):Ea(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&_a(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?ea(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===q){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[U];a._isLeaving&&a[U](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(He(),br(s,null,n,e,!0),Ue()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Sr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Aa(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Nn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==q||d>0&&d&64)?ge(l,t,n,!1,!0):(a===q&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&K(()=>{_&&Aa(_,t,e),h&&Nn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===q){me(n,r);return}if(t===sa){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;na(c),na(l),r&&ie(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&K(s,t),K(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Wn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Tn(r),En(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:E,pc:j,pbc:D,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:gi(ye,xe)}}function Xi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ta(t)}function na(e){if(e)for(let t=0;te.__isSuspense;function aa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var q=Symbol.for(`v-fgt`),oa=Symbol.for(`v-txt`),J=Symbol.for(`v-cmt`),sa=Symbol.for(`v-stc`),ca=[],Y=null;function la(e=!1){ca.push(Y=e?null:[])}function ua(){ca.pop(),Y=ca[ca.length-1]||null}var da=1;function fa(e,t=!1){da+=e,e<0&&Y&&t&&(Y.hasOnce=!0)}function pa(e){return e.dynamicChildren=da>0?Y||n:null,ua(),da>0&&Y&&Y.push(e),e}function ma(e,t,n,r,i,a){return pa(ba(e,t,n,r,i,a,!0))}function ha(e,t,n,r,i){return pa(X(e,t,n,r,i,!0))}function ga(e){return e?e.__v_isVNode===!0:!1}function _a(e,t){return e.type===t.type&&e.key===t.key}var va=({key:e})=>e??null,ya=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||R(e)||h(e)?{i:V,r:e,k:t,f:!!n}:e);function ba(e,t=null,n=null,r=0,i=null,a=e===q?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&va(t),ref:t&&ya(t),scopeId:kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:V};return s?(Oa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),da>0&&!o&&Y&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Y.push(c),c}var X=xa;function xa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=J),ga(e)){let r=Ca(e,t,!0);return n&&Oa(r,n),da>0&&!a&&Y&&(r.shapeFlag&6?Y[Y.indexOf(e)]=r:Y.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=pe(e)),v(n)&&(Bt(n)&&!d(n)&&(n=s({},n)),t.style=j(n))}let o=g(e)?1:ia(e)?128:Gn(e)?64:v(e)?4:h(e)?2:0;return ba(e,t,n,r,i,o,a,!0)}function Sa(e){return e?Bt(e)||Mi(e)?s({},e):e:null}function Ca(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&va(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ya(t)):[a,ya(t)]:ya(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function wa(e=` `,t=0){return X(oa,null,e,t)}function Ta(e=``,t=!1){return t?(la(),ha(J,null,e)):X(J,null,e)}function Ea(e){return e==null||typeof e==`boolean`?X(J):d(e)?X(q,null,e.slice()):ga(e)?Da(e):X(oa,null,String(e))}function Da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function Oa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Oa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Mi(t)?t._ctx=V:r===3&&V&&(V.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Oa(e,{default:t});return}t={default:t,_ctx:V},n=32}else t=String(t),r&64?(n=16,t=[wa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ka(...e){let t={};for(let n=0;nZ||V,Fa,Ia;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Fa=t(`__VUE_INSTANCE_SETTERS__`,e=>Z=e),Ia=t(`__VUE_SSR_SETTERS__`,e=>Ba=e)}var La=e=>{let t=Z;return Fa(e),e.scope.on(),()=>{e.scope.off(),Fa(t)}},Ra=()=>{Z&&Z.scope.off(),Fa(null)};function za(e){return e.vnode.shapeFlag&4}var Ba=!1;function Va(e,t=!1,n=!1){t&&Ia(t);let{props:r,children:i}=e.vnode,a=za(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Ha(e,t):void 0;return t&&Ia(!1),o}function Ha(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qr);let{setup:r}=n;if(r){He();let n=e.setupContext=r.length>1?Ja(e):null,i=La(e),a=dn(r,e,0,[e.props,n]),o=y(a);if(Ue(),i(),(o||e.sp)&&!Sr(e)&&_r(e),o){if(a.then(Ra,Ra),t)return a.then(n=>{Ua(e,n,t)}).catch(t=>{fn(t,e,0)});e.asyncDep=a}else Ua(e,a,t)}else Ka(e,t)}function Ua(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Xt(t)),Ka(e,n)}var Wa,Ga;function Ka(e,t,n){let i=e.type;if(!e.render){if(!t&&Wa&&!i.render){let t=i.template||ai(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Wa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Ga&&Ga(e)}{let t=La(e);He();try{ti(e)}finally{Ue(),t()}}}var qa={get(e,t){return F(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy(Xt(Vt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xr)return Xr[n](e)},has(e,t){return t in e||t in Xr}}):e.proxy}function Xa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return h(e)&&`__vccOpts`in e}var Q=(e,t)=>rn(e,t,Ba);function Qa(e,t,n){try{fa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ga(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ga(n)&&(n=[n]),X(e,t,n))}finally{fa(1)}}var $a=`3.5.39`;function eo(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var to=typeof document<`u`;function no(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ro(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&no(e.default)}var $=Object.assign;function io(e,t){let n={};for(let r in t){let i=t[r];n[r]=oo(i)?i.map(e):e(i)}return n}var ao=()=>{},oo=Array.isArray;function so(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var co=Symbol(``);function lo(e,t){return $(Error(),{type:e,[co]:!0},t)}function uo(e,t){return e instanceof Error&&co in e&&(t==null||!!(e.type&t))}var fo=Symbol(``),po=Symbol(``),mo=Symbol(``),ho=Symbol(``),go=Symbol(``);function _o(){return H(mo)}function vo(e){return H(ho)}var yo=/#/g,bo=/&/g,xo=/\//g,So=/=/g,Co=/\?/g,wo=/\+/g,To=/%5B/g,Eo=/%5D/g,Do=/%5E/g,Oo=/%60/g,ko=/%7B/g,Ao=/%7C/g,jo=/%7D/g,Mo=/%20/g;function No(e){return e==null?``:encodeURI(``+e).replace(Ao,`|`).replace(To,`[`).replace(Eo,`]`)}function Po(e){return No(e).replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Fo(e){return No(e).replace(wo,`%2B`).replace(Mo,`+`).replace(yo,`%23`).replace(bo,`%26`).replace(Oo,"`").replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Io(e){return Fo(e).replace(So,`%3D`)}function Lo(e){return No(e).replace(yo,`%23`).replace(Co,`%3F`)}function Ro(e){return Lo(e).replace(xo,`%2F`)}function zo(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Bo=/\/$/,Vo=e=>e.replace(Bo,``);function Ho(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Xo(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:zo(o)}}function Uo(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Wo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Go(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ko(t.matched[r],n.matched[i])&&qo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ko(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Jo(e[n],t[n]))return!1;return!0}function Jo(e,t){return oo(e)?Yo(e,t):oo(t)?Yo(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Yo(e,t){return oo(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Xo(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Zo={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Qo(e){if(!e)if(to){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Vo(e)}var $o=/^[^#]+#/;function es(e,t){return e.replace($o,`#`)+t}function ts(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var ns=()=>({left:window.scrollX,top:window.scrollY});function rs(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ts(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function is(e,t){return(history.state?history.state.position-t:-1)+e}var as=new Map;function os(e,t){as.set(e,t)}function ss(e){let t=as.get(e);return as.delete(e),t}function cs(e){return typeof e==`string`||e&&typeof e==`object`}function ls(e){return typeof e==`string`||typeof e==`symbol`}function us(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Fo(e)):[r&&Fo(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function fs(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=oo(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function ps(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ms(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(lo(4,{from:n,to:t})):e instanceof Error?c(e):cs(e)?c(lo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function hs(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(no(s)){let c=(s.__vccOpts||s)[t];c&&a.push(ms(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ro(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&ms(c,n,r,o,e,i)()}))}}return a}function gs(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oKo(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ko(e,s))||i.push(s))}return[n,r,i]}var _s=()=>location.protocol+`//`+location.host;function vs(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Wo(n,``)}return Wo(n,e)+r+i}function ys(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=vs(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:ns()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function bs(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?ns():null}}function xs(e){let{history:t,location:n}=window,r={value:vs(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:_s()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,bs(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:ns()});a(o.current,o,!0),a(e,$({},bs(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ss(e){e=Qo(e);let t=xs(e),n=ys(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:es.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Cs={type:0,value:``},ws=/[a-zA-Z0-9_]/;function Ts(e){if(!e)return[[]];if(e===`/`)return[[Cs]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function js(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Ns={strict:!1,end:!0,sensitive:!1};function Ps(e,t,n){let r=$(ks(Ts(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Fs(e,t){let n=[],r=new Map;t=so(Ns,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ls(e);s.aliasOf=r&&r.record;let l=so(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ls($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ps(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!zs(d)&&o(e.name)),Us(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:ao}function o(e){if(ls(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Vs(e,n);n.splice(t,0,e),e.record.name&&!zs(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw lo(1,{location:e});s=i.record.name,a=$(Is(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Is(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw lo(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Bs(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Is(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ls(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Rs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Rs(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function zs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bs(e){return e.reduce((e,t)=>$(e,t.meta),{})}function Vs(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;js(e,t[i])<0?r=i:n=i+1}let i=Hs(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Hs(e){let t=e;for(;t=t.parent;)if(Us(t)&&js(e,t)===0)return t}function Us({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ws(e){let t=H(mo),n=H(ho),r=Q(()=>{let n=Jt(e.to);return t.resolve(n)}),i=Q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ko.bind(null,i));if(o>-1)return o;let s=Ys(e[t-2]);return t>1&&Ys(i)===s&&a[a.length-1].path!==s?a.findIndex(Ko.bind(null,e[t-2])):o}),a=Q(()=>i.value>-1&&Js(n.params,r.value.params)),o=Q(()=>i.value>-1&&i.value===n.matched.length-1&&qo(n.params,r.value.params));function s(n={}){if(qs(n)){let n=t[Jt(e.replace)?`replace`:`push`](Jt(e.to)).catch(ao);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Gs(e){return e.length===1?e[0]:e}var Ks=gr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ws,setup(e,{slots:t}){let n=Pt(Ws(e)),{options:r}=H(mo),i=Q(()=>({[Xs(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Xs(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Gs(t.default(n));return e.custom?r:Qa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function qs(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Js(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!oo(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Ys(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Xs=(e,t,n)=>e??t??n,Zs=gr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=H(go),i=Q(()=>e.route||r.value),a=H(po,0),o=Q(()=>{let e=Jt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Q(()=>i.value.matched[o.value]);Pn(po,Q(()=>o.value+1)),Pn(fo,s),Pn(go,i);let c=Wt();return zn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ko(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Qs(n.default,{Component:l,route:r});let u=o.props[a],d=Qa(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Qs(n.default,{Component:d,route:r})||d}}});function Qs(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var $s=Zs;function ec(e){let t=Fs(e.routes,e),n=e.parseQuery||us,r=e.stringifyQuery||ds,i=e.history,a=ps(),o=ps(),s=ps(),c=Gt(Zo),l=Zo;to&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=io.bind(null,e=>``+e),d=io.bind(null,Ro),f=io.bind(null,zo);function p(e,n){let r,i;return ls(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=Ho(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:Ho(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Uo(r,$({},e,{hash:Po(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===ds?fs(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Ho(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return lo(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Go(r,i,n)&&(f=lo(16,{to:d,from:i}),oe(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>uo(e)?uo(e,2)?e:ae(e):ie(e,d,i)).then(e=>{if(e){if(uo(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=gs(e,t);n=hs(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(ms(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(ms(r,e,t));return n.push(c),ue(n)}).then(()=>{n=hs(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(ms(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(oo(r.beforeEnter))for(let i of r.beforeEnter)n.push(ms(i,e,t));else n.push(ms(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=hs(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(ms(r,e,t));return n.push(c),ue(n)}).catch(e=>uo(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Zo,l=to?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,oe(e,t,n,s),ae()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(ao);return}l=r;let o=c.value;to&&os(is(o.fullPath,n.delta),ns()),ee(r,o).catch(e=>uo(e,12)?e:uo(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{uo(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(ao),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!uo(e,8)?i.go(-n.delta,!1):n.type===`pop`&&uo(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(ao)})}let O=ps(),re=ps(),k;function ie(e,t,n){ae(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function A(){return k&&c.value!==Zo?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function ae(e){return k||(k=!e,D(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function oe(t,n,r,i){let{scrollBehavior:a}=e;if(!to||!a)return Promise.resolve();let o=!r&&ss(is(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bn().then(()=>a(t,n,o)).then(e=>e&&rs(e)).catch(e=>ie(e,t,n))}let se=e=>i.go(e),ce,j=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:A,install(e){e.component(`RouterLink`,Ks),e.component(`RouterView`,$s),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(c)}),to&&!ce&&c.value===Zo&&(ce=!0,b(i.location).catch(e=>{}));let t={};for(let e in Zo)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(mo,le),e.provide(ho,Ft(t)),e.provide(go,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(l=Zo,ne&&ne(),ne=null,c.value=Zo,ce=!1,k=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return le}function tc(e){return{GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},IssueGameTickets(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/tickets`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`IssueGameTickets`})},GetTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTicket`})},AcceptTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}/accept`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AcceptTicket`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},BindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameId)throw Error(`missing required field request.gameId`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemId)throw Error(`missing required field request.itemId`);let n=`api/games/${t.gameId}/map/items/${t.kind}/${t.itemId}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SendScreenCommand(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetScenarioReviews(t){if(!t.scenarioId)throw Error(`missing required field request.scenarioId`);let n=`api/scenarios/${t.scenarioId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenarioReviews`})},GetGameReviewsForModeration(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/admin/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},GetReviewsForModeration(t){let n=[],r=`api/admin/game-reviews`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetReviewsForModeration`})},ModerateGameReview(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/admin/game-reviews/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.id}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function nc(e,t){return tc(rc(e,t))}function rc(e,t){return async n=>{let r=`${ic()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);return await s.json()}}function ic(){return`https://evening-detective.crabs-games.art`}export{zn as $,Pa as A,g as At,Pr as B,Ta as C,ie as Ct,wa as D,v as Dt,Kr as E,o as Et,ga as F,be as Ft,la as G,jr as H,ka as I,oe as It,qr as J,Pn as K,bn as L,Qa as M,ae as Mt,Fn as N,pe as Nt,X as O,a as Ot,H as P,j as Pt,ir as Q,wr as R,ha as S,ge as St,Ji as T,h as Tt,Fr as U,Tr as V,Nr as W,dr as X,Vr as Y,mr as Z,oa as _,Jt as _t,Ks as a,Bt as at,Q as b,s as bt,Ss as c,Vt as ct,eo as d,It as dt,Rn as et,lr as f,Wt as ft,er as g,Zt as gt,q as h,en as ht,tc as i,Te as it,hr as j,_ as jt,gr as k,he as kt,vo as l,Ee as lt,J as m,L as mt,rc as n,Mn as nt,$s as o,Rt as ot,ar as p,Gt as pt,Gr as q,ic as r,we as rt,ec as s,R as st,nc as t,jn as tt,_o as u,Pt as ut,z as v,E as vt,ma as w,d as wt,ba as x,D as xt,Ca as y,O as yt,Ar as z}; \ No newline at end of file +function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function j(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pe(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n!!(e&&e.__v_isRef===!0),be=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Se(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Se(e))}:_(t)?Se(t):v(t)&&!d(t)&&!C(t)?String(t):t,Se=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,M,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ge)||(e.globalVersion=Ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,Ve=[];function He(){Ve.push(P),P=!1}function Ue(){let e=Ve.pop();P=e===void 0?!0:e}function We(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ge=0,Ke=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Ke(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Je(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ge++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Je(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Je(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ye=new WeakMap,Xe=Symbol(``),Ze=Symbol(``),Qe=Symbol(``);function F(e,t,n){if(P&&N){let t=Ye.get(e);t||Ye.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qe),r.map=t,r.key=n),r.track()}}function $e(e,t,n,r,i,a){let o=Ye.get(e);if(!o){Ge++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`delete`:i||(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`set`:f(e)&&s(o.get(Xe));break}}Pe()}function et(e,t){let n=Ye.get(e);return n&&n.get(t)}function tt(e){let t=L(e);return t===e?t:(F(t,`iterate`,Qe),I(e)?t:t.map(Ht))}function nt(e){return F(e=L(e),`iterate`,Qe),e}function rt(e,t){return zt(e)?Ut(Rt(e)?Ht(t):t):Ht(t)}var it={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return tt(this).concat(...e.map(e=>d(e)?tt(e):e))},entries(){return at(this,`entries`,e=>(e[1]=rt(this,e[1]),e))},every(e,t){return st(this,`every`,e,t,void 0,arguments)},filter(e,t){return st(this,`filter`,e,t,e=>e.map(e=>rt(this,e)),arguments)},find(e,t){return st(this,`find`,e,t,e=>rt(this,e),arguments)},findIndex(e,t){return st(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return st(this,`findLast`,e,t,e=>rt(this,e),arguments)},findLastIndex(e,t){return st(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return st(this,`forEach`,e,t,void 0,arguments)},includes(...e){return lt(this,`includes`,e)},indexOf(...e){return lt(this,`indexOf`,e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return lt(this,`lastIndexOf`,e)},map(e,t){return st(this,`map`,e,t,void 0,arguments)},pop(){return ut(this,`pop`)},push(...e){return ut(this,`push`,e)},reduce(e,...t){return ct(this,`reduce`,e,t)},reduceRight(e,...t){return ct(this,`reduceRight`,e,t)},shift(){return ut(this,`shift`)},some(e,t){return st(this,`some`,e,t,void 0,arguments)},splice(...e){return ut(this,`splice`,e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ut(this,`unshift`,e)},values(){return at(this,`values`,e=>rt(this,e))}};function at(e,t,n){let r=nt(e),i=r[t]();return r!==e&&!I(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ot=Array.prototype;function st(e,t,n,r,i,a){let o=nt(e),s=o!==e&&!I(e),c=o[t];if(c!==ot[t]){let t=c.apply(e,a);return s?Ht(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,rt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ct(e,t,n,r){let i=nt(e),a=i!==e&&!I(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=rt(e,t)),n.call(this,t,rt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?rt(e,c):c}function lt(e,t,n){let r=L(e);F(r,`iterate`,Qe);let i=r[t](...n);return(i===-1||i===!1)&&Bt(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function ut(e,t,n=[]){He(),Ne();let r=L(e)[t].apply(e,n);return Pe(),Ue(),r}var dt=e(`__proto__,__v_isRef,__isVue`),ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function pt(e){_(e)||(e=String(e));let t=L(this);return F(t,`has`,e),t.hasOwnProperty(e)}var mt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Mt:jt:i?At:kt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=it[t]))return e;if(t===`hasOwnProperty`)return pt}let o=Reflect.get(e,t,R(e)?e:n);if((_(t)?ft.has(t):dt(t))||(r||F(e,`get`,t),i))return o;if(R(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?It(e):e}return v(o)?r?It(o):Pt(o):o}},ht=class extends mt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=zt(i);if(!I(n)&&!zt(n)&&(i=L(i),n=L(n)),!a&&R(i)&&!R(n))return e||(i.value=n),!0}let o=a?Number(t)e,xt=e=>Reflect.getPrototypeOf(e);function St(e,t,n){return function(...r){let i=this.__v_raw,a=L(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?bt:t?Ut:Ht;return!t&&F(a,`iterate`,l?Ze:Xe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ct(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wt(e,t){let n={get(n){let r=this.__v_raw,i=L(r),a=L(n);e||(k(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=xt(i),s=t?bt:e?Ut:Ht;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&F(L(t),`iterate`,Xe),t.size},has(t){let n=this.__v_raw,r=L(n),i=L(t);return e||(k(t,i)&&F(r,`has`,t),F(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=L(a),s=t?bt:e?Ut:Ht;return!e&&F(o,`iterate`,Xe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Ct(`add`),set:Ct(`set`),delete:Ct(`delete`),clear:Ct(`clear`)}:{add(e){let n=L(this),r=xt(n),i=L(e),a=!t&&!I(e)&&!zt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),$e(n,`add`,a,a)),this},set(e,n){!t&&!I(n)&&!zt(n)&&(n=L(n));let r=L(this),{has:i,get:a}=xt(r),o=i.call(r,e);o||=(e=L(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&$e(r,`set`,e,n,s):$e(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=xt(t),i=n.call(t,e);i||=(e=L(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&$e(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&$e(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=St(r,e,t)}),n}function Tt(e,t){let n=wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Et={get:Tt(!1,!1)},Dt={get:Tt(!1,!0)},Ot={get:Tt(!0,!1)},kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function Nt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Pt(e){return zt(e)?e:Lt(e,!1,_t,Et,kt)}function Ft(e){return Lt(e,!1,yt,Dt,At)}function It(e){return Lt(e,!0,vt,Ot,jt)}function Lt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Nt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Rt(e){return zt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(e){return!!(e&&e.__v_isReadonly)}function I(e){return!!(e&&e.__v_isShallow)}function Bt(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function Vt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var Ht=e=>v(e)?Pt(e):e,Ut=e=>v(e)?It(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Wt(e){return Kt(e,!1)}function Gt(e){return Kt(e,!0)}function Kt(e,t){return R(e)?e:new qt(e,t)}var qt=class{constructor(e,t){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:L(e),this._value=t?e:Ht(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||I(e)||zt(e);e=n?e:L(e),k(e,t)&&(this._rawValue=e,this._value=n?e:Ht(e),this.dep.trigger())}};function Jt(e){return R(e)?e.value:e}var Yt={get:(e,t,n)=>t===`__v_raw`?e:Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return R(i)&&!R(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return Rt(e)?e:new Proxy(e,Yt)}function Zt(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=tn(e,n);return t}var Qt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=_(t)?t:String(t),this._raw=L(e);let r=!0,i=e;if(!d(e)||_(this._key)||!w(this._key))do r=!Bt(i)||I(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Jt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&R(this._raw[this._key])){let t=this._object[this._key];if(R(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return et(this._raw,this._key)}},$t=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function en(e,t,n){return R(e)?e:h(e)?new $t(e):v(e)&&arguments.length>1?tn(e,t,n):Wt(e)}function tn(e,t,n){return new Qt(e,t,n)}var nn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function rn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new nn(r,i,n)}var an={},on=new WeakMap,sn=void 0;function cn(e,t=!1,n=sn){if(n){let t=on.get(n);t||on.set(n,t=[]),t.push(e)}}function ln(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:I(e)||o===!1||o===0?un(e,1):un(e),m,g,_,v,y=!1,b=!1;if(R(e)?(g=()=>e.value,y=I(e)):Rt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Rt(e)||I(e)),g=()=>e.map(e=>{if(R(e))return e.value;if(Rt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){He();try{_()}finally{Ue()}}let t=sn;sn=m;try{return f?f(e,3,[v]):e(v)}finally{sn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>un(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(an):an,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=sn;sn=m;try{let e=[t,C===an?void 0:b&&C[0]===an?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{sn=e}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>cn(e,!1,m),_=m.onStop=()=>{let e=on.get(m);if(e){if(f)f(e,4);else for(let t of e)t();on.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function un(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,R(e))un(e.value,t,n);else if(d(e))for(let r=0;r{un(e,t,n)});else if(C(e)){for(let r in e)un(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,n)}return e}function dn(e,t,n,r){try{return r?e(...r):e()}catch(e){fn(e,t,n)}}function z(e,t,n,r){if(h(e)){let i=dn(e,t,n,r);return i&&y(i)&&i.catch(e=>{fn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=B[r],a=Dn(i);a=Dn(n)?B.push(e):B.splice(xn(t),0,e),e.flags|=1,Cn()}}function Cn(){yn||=vn.then(On)}function wn(e){d(e)?hn.push(...e):gn&&e.id===-1?gn.splice(_n+1,0,e):e.flags&1||(hn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=mn+1){for(;nDn(e)-Dn(t));if(hn.length=0,gn){gn.push(...e);return}for(gn=e,_n=0;_ne.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(mn=0;mn{r._d&&fa(-1);let i=An(t),a;try{a=e(...n)}finally{An(i),r._d&&fa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mn(e,n){if(V===null)return e;let r=Ya(V),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}function Fn(){return!!(Pa()||_i)}var In=Symbol.for(`v-scx`),Ln=()=>H(In);function Rn(e,t){return Bn(e,null,t)}function zn(e,t,n){return Bn(e,t,n)}function Bn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ba){if(c===`sync`){let e=Ln();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Z;u.call=(e,t,n)=>z(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{K(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=ln(e,n,u);return Ba&&(f?f.push(h):d&&h()),h}function Vn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Hn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=La(this),s=Bn(i,a.bind(r),n);return o(),s}function Hn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Kn=e=>e&&(e.disabled||e.disabled===``),qn=e=>e&&(e.defer||e.defer===``),Jn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Yn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Xn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Zn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Kn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Kn(e.props),r=e.target=Xn(e.props,m),a=nr(r,e,h,p);r&&(o!==`svg`&&Jn(r)?o=`svg`:o!==`mathml`&&Yn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),tr(e,!1)))},S=e=>{let t=()=>{if(Un.get(e)===t){if(Un.delete(e),Kn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),tr(e,!0)}x(e)}};Un.set(e,t),K(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),qn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),tr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Un.get(e);if(u){u.flags|=8,Un.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Kn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Jn(p)?o=`svg`:(o===`mathml`||Yn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),$i(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Xn(t.props,m);e&&(t.target=e,Qn(t,e,null,l,0))}else g&&Qn(t,p,h,l,1);tr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Kn(f),m=a||!p,h=Un.get(e);if(h&&(h.flags|=8,Un.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}var W=[Function,Array],ar={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:W,onEnter:W,onAfterEnter:W,onEnterCancelled:W,onBeforeLeave:W,onLeave:W,onAfterLeave:W,onLeaveCancelled:W,onBeforeAppear:W,onAppear:W,onAfterAppear:W,onAppearCancelled:W},or=e=>{let t=e.subTree;return t.component?or(t.component):t},sr={name:`BaseTransition`,props:ar,setup(e,{slots:t}){let n=Pa(),r=ir();return()=>{let i=t.default&&hr(t.default(),!0),a=i&&i.length?cr(i):n.subTree?Ta():void 0;if(!a)return;let o=L(e),{mode:s}=o;if(r.isLeaving)return fr(a);let c=pr(a);if(!c)return fr(a);let l=dr(c,o,r,n,e=>l=e);c.type!==J&&mr(c,l);let u=n.subTree&&pr(n.subTree);if(u&&u.type!==J&&!_a(u,c)&&or(n).type!==J){let e=dr(u,o,r,n);if(mr(u,e),s===`out-in`&&c.type!==J)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},fr(a);s===`in-out`&&c.type!==J?e.delayLeave=(e,t,n)=>{let i=ur(r,u);i[String(u.key)]=u,e[U]=()=>{t(),e[U]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==J){t=n;break}}return t}var lr=sr;function ur(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ur(n,e),C=(e,t)=>{e&&z(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[U]&&t[U](!0);let i=S[x];i&&_a(e,i)&&i.el[U]&&i.el[U](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[rr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[rr]=void 0)};let c=t[rr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[rr]&&t[rr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[U]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[U]=void 0,S[i]===e&&delete S[i])};let o=t[U].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=dr(e,t,n,r,i);return i&&i(a),a}};return T}function fr(e){if(Cr(e))return e=Ca(e),e.children=null,e}function pr(e){if(!Cr(e))return Gn(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ebr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Sr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=L(v),b=v===t?i:e=>vr(_,e)?!1:u(y,e),x=(e,t)=>!(t&&vr(_,t));if(m!=null&&m!==p){if(xr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(R(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p)){He();try{dn(p,f,12,[l,_])}finally{Ue()}}else{let t=g(p),n=R(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),yr.delete(e)};t.id=-1,yr.set(e,t),K(t,r)}else xr(e),i()}}}function xr(e){let t=yr.get(e);t&&(t.flags|=8,yr.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var Sr=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function wr(e,t){Er(e,`a`,t)}function Tr(e,t){Er(e,`da`,t)}function Er(e,t,n=Z){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Cr(e.parent.vnode)&&Dr(r,t,n,e),e=e.parent}}function Dr(e,t,n,r){let i=Or(t,e,r,!0);Fr(()=>{c(r[t],i)},n)}function Or(e,t,n=Z,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{He();let i=La(n),a=z(t,n,e,r);return i(),Ue(),a};return r?i.unshift(a):i.push(a),a}}var kr=e=>(t,n=Z)=>{(!Ba||e===`sp`)&&Or(e,(...e)=>t(...e),n)},Ar=kr(`bm`),jr=kr(`m`),Mr=kr(`bu`),Nr=kr(`u`),Pr=kr(`bum`),Fr=kr(`um`),Ir=kr(`sp`),Lr=kr(`rtg`),Rr=kr(`rtc`);function zr(e,t=Z){Or(`ec`,e,t)}var Br=`components`;function Vr(e,t){return Ur(Br,e,!0,t)||e}var Hr=Symbol.for(`v-ndc`);function Ur(e,t,n=!0,r=!1){let i=V||Z;if(i){let n=i.type;if(e===Br){let e=Xa(n,!1);if(e&&(e===t||e===E(t)||e===O(E(t))))return n}let a=Wr(i[e]||n[e],t)||Wr(i.appContext[e],t);return!a&&r?n:a}}function Wr(e,t){return e&&(e[t]||e[E(t)]||e[O(E(t))])}function Gr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Rt(e),r=!1,s=!1;n&&(r=!I(e),s=zt(e),e=nt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function qr(e,t,n={},r,i){if(V.ce||V.parent&&Sr(V.parent)&&V.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),la(),ha(q,null,[X(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),la();let o=a&&Jr(a(n)),s=n.key||o&&o.key,c=ha(q,{key:(s&&!_(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Jr(e){return e.some(e=>ga(e)?!(e.type===J||e.type===q&&!Jr(e.children)):!0)?e:null}var Yr=e=>e?za(e)?Ya(e):Yr(e.parent):null,Xr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=bn.bind(e.proxy),$watch:e=>Vn.bind(e)}),Zr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Qr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Zr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else ei&&(s[n]=0)}let d=Xr[n],f,p;if(d)return n===`$attrs`&&F(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Zr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Zr(n,c)||u(o,c)||u(i,c)||u(Xr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function $r(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var ei=!0;function ti(e){let t=ai(e),n=e.proxy,i=e.ctx;ei=!1,t.beforeCreate&&ri(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&ni(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Pt(t))}if(ei=!0,o)for(let e in o){let t=o[e],a=Q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ii(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Pn(t,e[t])})}f&&ri(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Ar,p),A(jr,m),A(Mr,g),A(Nr,_),A(wr,y),A(Tr,b),A(zr,E),A(Rr,ee),A(Lr,te),A(Pr,S),A(Fr,w),A(Ir,ne),d(D))if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&_r(e)}function ni(e,t,n=r){d(e)&&(e=ui(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?H(r.from||n,r.default,!0):H(r.from||n):H(r),R(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ri(e,t,n){z(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let i=r.includes(`.`)?Hn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&zn(i,n)}else if(h(e))zn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>ii(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&zn(i,r,e)}}function ai(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>oi(c,e,o,!0)),oi(c,t,o)),v(t)&&a.set(t,c),c}function oi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&oi(e,a,n,!0),i&&i.forEach(t=>oi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=si[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var si={data:ci,props:fi,emits:fi,methods:di,computed:di,beforeCreate:G,created:G,beforeMount:G,mounted:G,beforeUpdate:G,updated:G,beforeDestroy:G,beforeUnmount:G,destroyed:G,unmounted:G,activated:G,deactivated:G,errorCaptured:G,serverPrefetch:G,components:di,directives:di,watch:pi,provide:ci,inject:li};function ci(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function li(e,t){return di(ui(e),ui(t))}function ui(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function yi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&vi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&z(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,z(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=xi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=An(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ea(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ea(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:wi(c)}}catch(t){ca.length=0,fn(t,e,1),v=X(J)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ti(y,a)),b=Ca(b,y,!1,!0))}return n.dirs&&(b=Ca(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,An(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Ft(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=L(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Vi=e=>d(e)?e.map(Ea):[Ea(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=jn((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(h(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&A(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Gi(a,n,r):(o=!n.$stable,Ui(n,a)),s=n}else n&&(Wi(e,n),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},K=aa;function Ji(e){return Yi(e)}function Yi(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!_a(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case oa:y(e,t,n,r);break;case J:b(e,t,n,r);break;case sa:e??x(t,n,r,o);break;case q:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&br(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Xi(e,a),s,u),_&&Nn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Aa(f,r,e)}_&&Nn(e,null,r,`beforeMount`);let v=Qi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&K(()=>{try{f&&Aa(f,r,e),v&&g.enter(d),_&&Nn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Zi(r,!1),(g=h.onVnodeBeforeUpdate)&&Aa(g,r,n,e),f&&Nn(n,e,r,`beforeUpdate`),r&&Zi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Xi(n,a),o):s||j(e,n,l,null,r,i,Xi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Aa(g,r,n,e),f&&Nn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&$i(e,t,!0)):j(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=Na(e,r,i);if(Cr(e)&&(s.ctx.renderer=be),Va(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=X(J);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n))if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ta(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{K(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Zi(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Aa(d,s,t,c),Zi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&K(r,i),(d=t.props&&t.props.onVnodeUpdated)&&K(()=>Aa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Sr(t);if(Zi(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Aa(o,d,t),Zi(e,!0),s&&Se){let t=()=>{e.subTree=Ci(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&K(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;K(()=>Aa(o,d,e),i)}(t.shapeFlag&256||d&&Sr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&K(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),Zi(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),He(),Tn(e),Ue()},j=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},ue=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Da(t[u]):Ea(t[u]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Da(t[p]):Ea(t[p]);if(_a(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Da(t[u]):Ea(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){fe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&_a(n,t[_])){i=_;break}i===void 0?fe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?ea(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===q){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[U];a._isLeaving&&a[U](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(He(),br(s,null,n,e,!0),Ue()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Sr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Aa(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Nn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==q||d>0&&d&64)?ge(l,t,n,!1,!0):(a===q&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&K(()=>{_&&Aa(_,t,e),h&&Nn(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===q){me(n,r);return}if(t===sa){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;na(c),na(l),r&&ie(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&K(s,t),K(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Wn];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Tn(r),En(),!1)},be={p:v,um:fe,m:de,r:pe,mt:A,mc:E,pc:j,pbc:D,n:_e,o:e},xe,Se;return i&&([xe,Se]=i(be)),{render:ye,hydrate:xe,createApp:gi(ye,xe)}}function Xi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $i(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ta(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ta(t)}function na(e){if(e)for(let t=0;te.__isSuspense;function aa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var q=Symbol.for(`v-fgt`),oa=Symbol.for(`v-txt`),J=Symbol.for(`v-cmt`),sa=Symbol.for(`v-stc`),ca=[],Y=null;function la(e=!1){ca.push(Y=e?null:[])}function ua(){ca.pop(),Y=ca[ca.length-1]||null}var da=1;function fa(e,t=!1){da+=e,e<0&&Y&&t&&(Y.hasOnce=!0)}function pa(e){return e.dynamicChildren=da>0?Y||n:null,ua(),da>0&&Y&&Y.push(e),e}function ma(e,t,n,r,i,a){return pa(ba(e,t,n,r,i,a,!0))}function ha(e,t,n,r,i){return pa(X(e,t,n,r,i,!0))}function ga(e){return e?e.__v_isVNode===!0:!1}function _a(e,t){return e.type===t.type&&e.key===t.key}var va=({key:e})=>e??null,ya=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||R(e)||h(e)?{i:V,r:e,k:t,f:!!n}:e);function ba(e,t=null,n=null,r=0,i=null,a=e===q?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&va(t),ref:t&&ya(t),scopeId:kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:V};return s?(Oa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),da>0&&!o&&Y&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Y.push(c),c}var X=xa;function xa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=J),ga(e)){let r=Ca(e,t,!0);return n&&Oa(r,n),da>0&&!a&&Y&&(r.shapeFlag&6?Y[Y.indexOf(e)]=r:Y.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=pe(e)),v(n)&&(Bt(n)&&!d(n)&&(n=s({},n)),t.style=j(n))}let o=g(e)?1:ia(e)?128:Gn(e)?64:v(e)?4:h(e)?2:0;return ba(e,t,n,r,i,o,a,!0)}function Sa(e){return e?Bt(e)||Mi(e)?s({},e):e:null}function Ca(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&va(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ya(t)):[a,ya(t)]:ya(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function wa(e=` `,t=0){return X(oa,null,e,t)}function Ta(e=``,t=!1){return t?(la(),ha(J,null,e)):X(J,null,e)}function Ea(e){return e==null||typeof e==`boolean`?X(J):d(e)?X(q,null,e.slice()):ga(e)?Da(e):X(oa,null,String(e))}function Da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function Oa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Oa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Mi(t)?t._ctx=V:r===3&&V&&(V.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Oa(e,{default:t});return}t={default:t,_ctx:V},n=32}else t=String(t),r&64?(n=16,t=[wa(t)]):n=8;e.children=t,e.shapeFlag|=n}function ka(...e){let t={};for(let n=0;nZ||V,Fa,Ia;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Fa=t(`__VUE_INSTANCE_SETTERS__`,e=>Z=e),Ia=t(`__VUE_SSR_SETTERS__`,e=>Ba=e)}var La=e=>{let t=Z;return Fa(e),e.scope.on(),()=>{e.scope.off(),Fa(t)}},Ra=()=>{Z&&Z.scope.off(),Fa(null)};function za(e){return e.vnode.shapeFlag&4}var Ba=!1;function Va(e,t=!1,n=!1){t&&Ia(t);let{props:r,children:i}=e.vnode,a=za(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Ha(e,t):void 0;return t&&Ia(!1),o}function Ha(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qr);let{setup:r}=n;if(r){He();let n=e.setupContext=r.length>1?Ja(e):null,i=La(e),a=dn(r,e,0,[e.props,n]),o=y(a);if(Ue(),i(),(o||e.sp)&&!Sr(e)&&_r(e),o){if(a.then(Ra,Ra),t)return a.then(n=>{Ua(e,n,t)}).catch(t=>{fn(t,e,0)});e.asyncDep=a}else Ua(e,a,t)}else Ka(e,t)}function Ua(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Xt(t)),Ka(e,n)}var Wa,Ga;function Ka(e,t,n){let i=e.type;if(!e.render){if(!t&&Wa&&!i.render){let t=i.template||ai(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Wa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Ga&&Ga(e)}{let t=La(e);He();try{ti(e)}finally{Ue(),t()}}}var qa={get(e,t){return F(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy(Xt(Vt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xr)return Xr[n](e)},has(e,t){return t in e||t in Xr}}):e.proxy}function Xa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return h(e)&&`__vccOpts`in e}var Q=(e,t)=>rn(e,t,Ba);function Qa(e,t,n){try{fa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ga(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ga(n)&&(n=[n]),X(e,t,n))}finally{fa(1)}}var $a=`3.5.39`;function eo(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var to=typeof document<`u`;function no(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ro(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&no(e.default)}var $=Object.assign;function io(e,t){let n={};for(let r in t){let i=t[r];n[r]=oo(i)?i.map(e):e(i)}return n}var ao=()=>{},oo=Array.isArray;function so(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var co=Symbol(``);function lo(e,t){return $(Error(),{type:e,[co]:!0},t)}function uo(e,t){return e instanceof Error&&co in e&&(t==null||!!(e.type&t))}var fo=Symbol(``),po=Symbol(``),mo=Symbol(``),ho=Symbol(``),go=Symbol(``);function _o(){return H(mo)}function vo(e){return H(ho)}var yo=/#/g,bo=/&/g,xo=/\//g,So=/=/g,Co=/\?/g,wo=/\+/g,To=/%5B/g,Eo=/%5D/g,Do=/%5E/g,Oo=/%60/g,ko=/%7B/g,Ao=/%7C/g,jo=/%7D/g,Mo=/%20/g;function No(e){return e==null?``:encodeURI(``+e).replace(Ao,`|`).replace(To,`[`).replace(Eo,`]`)}function Po(e){return No(e).replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Fo(e){return No(e).replace(wo,`%2B`).replace(Mo,`+`).replace(yo,`%23`).replace(bo,`%26`).replace(Oo,"`").replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Io(e){return Fo(e).replace(So,`%3D`)}function Lo(e){return No(e).replace(yo,`%23`).replace(Co,`%3F`)}function Ro(e){return Lo(e).replace(xo,`%2F`)}function zo(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Bo=/\/$/,Vo=e=>e.replace(Bo,``);function Ho(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Xo(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:zo(o)}}function Uo(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Wo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Go(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ko(t.matched[r],n.matched[i])&&qo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ko(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Jo(e[n],t[n]))return!1;return!0}function Jo(e,t){return oo(e)?Yo(e,t):oo(t)?Yo(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Yo(e,t){return oo(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Xo(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Zo={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Qo(e){if(!e)if(to){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Vo(e)}var $o=/^[^#]+#/;function es(e,t){return e.replace($o,`#`)+t}function ts(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var ns=()=>({left:window.scrollX,top:window.scrollY});function rs(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ts(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function is(e,t){return(history.state?history.state.position-t:-1)+e}var as=new Map;function os(e,t){as.set(e,t)}function ss(e){let t=as.get(e);return as.delete(e),t}function cs(e){return typeof e==`string`||e&&typeof e==`object`}function ls(e){return typeof e==`string`||typeof e==`symbol`}function us(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Fo(e)):[r&&Fo(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function fs(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=oo(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function ps(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ms(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(lo(4,{from:n,to:t})):e instanceof Error?c(e):cs(e)?c(lo(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function hs(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(no(s)){let c=(s.__vccOpts||s)[t];c&&a.push(ms(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ro(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&ms(c,n,r,o,e,i)()}))}}return a}function gs(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oKo(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ko(e,s))||i.push(s))}return[n,r,i]}var _s=()=>location.protocol+`//`+location.host;function vs(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Wo(n,``)}return Wo(n,e)+r+i}function ys(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=vs(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:ns()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function bs(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?ns():null}}function xs(e){let{history:t,location:n}=window,r={value:vs(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:_s()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,bs(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:ns()});a(o.current,o,!0),a(e,$({},bs(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ss(e){e=Qo(e);let t=xs(e),n=ys(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:es.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Cs={type:0,value:``},ws=/[a-zA-Z0-9_]/;function Ts(e){if(!e)return[[]];if(e===`/`)return[[Cs]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function js(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Ns={strict:!1,end:!0,sensitive:!1};function Ps(e,t,n){let r=$(ks(Ts(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Fs(e,t){let n=[],r=new Map;t=so(Ns,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ls(e);s.aliasOf=r&&r.record;let l=so(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ls($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ps(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!zs(d)&&o(e.name)),Us(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:ao}function o(e){if(ls(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Vs(e,n);n.splice(t,0,e),e.record.name&&!zs(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw lo(1,{location:e});s=i.record.name,a=$(Is(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Is(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw lo(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Bs(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Is(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ls(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Rs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Rs(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function zs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bs(e){return e.reduce((e,t)=>$(e,t.meta),{})}function Vs(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;js(e,t[i])<0?r=i:n=i+1}let i=Hs(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Hs(e){let t=e;for(;t=t.parent;)if(Us(t)&&js(e,t)===0)return t}function Us({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ws(e){let t=H(mo),n=H(ho),r=Q(()=>{let n=Jt(e.to);return t.resolve(n)}),i=Q(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ko.bind(null,i));if(o>-1)return o;let s=Ys(e[t-2]);return t>1&&Ys(i)===s&&a[a.length-1].path!==s?a.findIndex(Ko.bind(null,e[t-2])):o}),a=Q(()=>i.value>-1&&Js(n.params,r.value.params)),o=Q(()=>i.value>-1&&i.value===n.matched.length-1&&qo(n.params,r.value.params));function s(n={}){if(qs(n)){let n=t[Jt(e.replace)?`replace`:`push`](Jt(e.to)).catch(ao);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Gs(e){return e.length===1?e[0]:e}var Ks=gr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ws,setup(e,{slots:t}){let n=Pt(Ws(e)),{options:r}=H(mo),i=Q(()=>({[Xs(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Xs(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Gs(t.default(n));return e.custom?r:Qa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function qs(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Js(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!oo(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Ys(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Xs=(e,t,n)=>e??t??n,Zs=gr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=H(go),i=Q(()=>e.route||r.value),a=H(po,0),o=Q(()=>{let e=Jt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=Q(()=>i.value.matched[o.value]);Pn(po,Q(()=>o.value+1)),Pn(fo,s),Pn(go,i);let c=Wt();return zn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ko(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Qs(n.default,{Component:l,route:r});let u=o.props[a],d=Qa(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Qs(n.default,{Component:d,route:r})||d}}});function Qs(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var $s=Zs;function ec(e){let t=Fs(e.routes,e),n=e.parseQuery||us,r=e.stringifyQuery||ds,i=e.history,a=ps(),o=ps(),s=ps(),c=Gt(Zo),l=Zo;to&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=io.bind(null,e=>``+e),d=io.bind(null,Ro),f=io.bind(null,zo);function p(e,n){let r,i;return ls(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=Ho(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:Ho(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Uo(r,$({},e,{hash:Po(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===ds?fs(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Ho(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return lo(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Go(r,i,n)&&(f=lo(16,{to:d,from:i}),oe(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>uo(e)?uo(e,2)?e:ae(e):ie(e,d,i)).then(e=>{if(e){if(uo(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=gs(e,t);n=hs(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(ms(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ue(n).then(()=>{n=[];for(let r of a.list())n.push(ms(r,e,t));return n.push(c),ue(n)}).then(()=>{n=hs(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(ms(r,e,t))});return n.push(c),ue(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(oo(r.beforeEnter))for(let i of r.beforeEnter)n.push(ms(i,e,t));else n.push(ms(r.beforeEnter,e,t));return n.push(c),ue(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=hs(s,`beforeRouteEnter`,e,t,T),n.push(c),ue(n))).then(()=>{n=[];for(let r of o.list())n.push(ms(r,e,t));return n.push(c),ue(n)}).catch(e=>uo(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Zo,l=to?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,oe(e,t,n,s),ae()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!le.listening)return;let r=_(e),a=S(r,le.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(ao);return}l=r;let o=c.value;to&&os(is(o.fullPath,n.delta),ns()),ee(r,o).catch(e=>uo(e,12)?e:uo(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{uo(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(ao),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!uo(e,8)?i.go(-n.delta,!1):n.type===`pop`&&uo(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(ao)})}let O=ps(),re=ps(),k;function ie(e,t,n){ae(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function A(){return k&&c.value!==Zo?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function ae(e){return k||(k=!e,D(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function oe(t,n,r,i){let{scrollBehavior:a}=e;if(!to||!a)return Promise.resolve();let o=!r&&ss(is(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bn().then(()=>a(t,n,o)).then(e=>e&&rs(e)).catch(e=>ie(e,t,n))}let se=e=>i.go(e),ce,j=new Set,le={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:A,install(e){e.component(`RouterLink`,Ks),e.component(`RouterView`,$s),e.config.globalProperties.$router=le,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Jt(c)}),to&&!ce&&c.value===Zo&&(ce=!0,b(i.location).catch(e=>{}));let t={};for(let e in Zo)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(mo,le),e.provide(ho,Ft(t)),e.provide(go,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(l=Zo,ne&&ne(),ne=null,c.value=Zo,ce=!1,k=!1),n()}}};function ue(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return le}function tc(e){return{GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},IssueGameTickets(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/tickets`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`IssueGameTickets`})},GetTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTicket`})},AcceptTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}/accept`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AcceptTicket`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},BindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenId)throw Error(`missing required field request.screenId`);let n=`api/screens/${t.screenId}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameId)throw Error(`missing required field request.gameId`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemId)throw Error(`missing required field request.itemId`);let n=`api/games/${t.gameId}/map/items/${t.kind}/${t.itemId}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SetScreenTimer(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/timer`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenTimer`})},SendScreenCommand(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetScenarioReviews(t){if(!t.scenarioId)throw Error(`missing required field request.scenarioId`);let n=`api/scenarios/${t.scenarioId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenarioReviews`})},GetGameReviewsForModeration(t){if(!t.gameId)throw Error(`missing required field request.gameId`);let n=`api/admin/games/${t.gameId}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},GetReviewsForModeration(t){let n=[],r=`api/admin/game-reviews`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetReviewsForModeration`})},ModerateGameReview(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/admin/game-reviews/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/games/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/teams/${t.id}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.id}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function nc(e,t){return tc(rc(e,t))}function rc(e,t){return async n=>{let r=`${ic()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);return await s.json()}}function ic(){return`http://10.171.219.195:8090`}export{zn as $,Pa as A,g as At,Pr as B,Ta as C,ie as Ct,wa as D,v as Dt,Kr as E,o as Et,ga as F,be as Ft,la as G,jr as H,ka as I,oe as It,qr as J,Pn as K,bn as L,Qa as M,ae as Mt,Fn as N,pe as Nt,X as O,a as Ot,H as P,j as Pt,ir as Q,wr as R,ha as S,ge as St,Ji as T,h as Tt,Fr as U,Tr as V,Nr as W,dr as X,Vr as Y,mr as Z,oa as _,Jt as _t,Ks as a,Bt as at,Q as b,s as bt,Ss as c,Vt as ct,eo as d,It as dt,Rn as et,lr as f,Wt as ft,er as g,Zt as gt,q as h,en as ht,tc as i,Te as it,hr as j,_ as jt,gr as k,he as kt,vo as l,Ee as lt,J as m,L as mt,rc as n,Mn as nt,$s as o,Rt as ot,ar as p,Gt as pt,Gr as q,ic as r,we as rt,ec as s,R as st,nc as t,jn as tt,_o as u,Pt as ut,z as v,E as vt,ma as w,d as wt,ba as x,D as xt,Ca as y,O as yt,Ar as z}; \ No newline at end of file diff --git a/dist/assets/es-CBOun6Az.js b/dist/assets/es-D90fN3qV.js similarity index 97% rename from dist/assets/es-CBOun6Az.js rename to dist/assets/es-D90fN3qV.js index cbef6be..4fda58a 100644 --- a/dist/assets/es-CBOun6Az.js +++ b/dist/assets/es-D90fN3qV.js @@ -1,4 +1,4 @@ -import{J as e,K as t,M as n,P as r,b as i,d as a,i as o,k as s,n as c,z as l}from"./client-E8nWUy_w.js";import{t as u}from"./index-DrmfX-S2.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return o(p(e,c(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` { +import{J as e,K as t,M as n,P as r,b as i,d as a,i as o,k as s,n as c,z as l}from"./client-BBfBDiVG.js";import{t as u}from"./index-DnUl8nHF.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return o(p(e,c(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` { `+Object.entries(e).map(e=>t+` ${x(e[0])}: ${e[1]};`).join(` `)+` `+t+`}`:`: ${e};`}function C(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function w(e,t,n,r){if(!t)return``;let i=C(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { diff --git a/dist/assets/fade-in-scale-up.cssr-xZmtBeoT.js b/dist/assets/fade-in-scale-up.cssr-BH_qfdlG.js similarity index 94% rename from dist/assets/fade-in-scale-up.cssr-xZmtBeoT.js rename to dist/assets/fade-in-scale-up.cssr-BH_qfdlG.js index 1c5a8c7..d9efef9 100644 --- a/dist/assets/fade-in-scale-up.cssr-xZmtBeoT.js +++ b/dist/assets/fade-in-scale-up.cssr-BH_qfdlG.js @@ -1 +1 @@ -import{$ as e,A as t,D as n,M as r,b as i,dt as a,ft as o,g as s,h as c,ht as l,k as u,m as d}from"./client-E8nWUy_w.js";import{G as f,L as p,a as m,z as h}from"./light-Dq0naAvE.js";import{d as g,u as _}from"./Card-D_Y8VzWl.js";import{t as v}from"./flatten-Pfh9hmmw.js";function y(t){let n=o(!!t.value);if(n.value)return a(n);let r=e(t,e=>{e&&(n.value=!0,r())});return a(n)}function b(){return t()!==null}var x=typeof window<`u`,S=h(`n-drawer-body`);h(`n-drawer`);var C=h(`n-modal-body`),w=h(`n-modal-provider`),T=h(`n-modal`),E=h(`n-popover-body`);function D(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function O(e,t=!0,r=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&r.push(n(String(e)));return}if(Array.isArray(e)){O(e,t,r);return}if(e.type===c){if(e.children===null)return;Array.isArray(e.children)&&O(e.children,t,r)}else e.type!==d&&r.push(e)}}),r}function k(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=O(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var A=`@@coContext`,j={mounted(e,{value:t,modifiers:n}){e[A]={handler:void 0},typeof t==`function`&&(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[A];typeof t==`function`?r.handler?r.handler!==t&&(_(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,g(`clickoutside`,e,t,{capture:n.capture})):(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(_(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[A];n&&_(`clickoutside`,e,n,{capture:t.capture}),e[A].handler=void 0}};function M(e,t){console.error(`[vdirs/${e}]: ${t}`)}var N=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&M(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},P=`@@ziContext`,F={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[P]={enabled:!!i,initialized:!1},i&&(N.ensureZIndex(e,r),e[P].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[P].enabled;i&&!a&&(N.ensureZIndex(e,r),e[P].initialized=!0),e[P].enabled=!!i},unmounted(e,t){if(!e[P].initialized)return;let{value:n={}}=t,{zIndex:r}=n;N.unregister(e,r)}},I=u({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:y(l(e,`show`)),mergedTo:i(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?D(`lazy-teleport`,this.$slots):r(s,{disabled:this.disabled,to:this.mergedTo},D(`lazy-teleport`,this.$slots)):null}});function L(e,t=`default`,n=void 0){let r=e[t];if(!r)return p(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=v(r(n));return i.length===1?i[0]:(p(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function R(e,t,n){if(!t)return null;let r=v(t(n));return r.length===1?r[0]:(p(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var{cubicBezierEaseIn:z,cubicBezierEaseOut:B}=m;function V({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[f(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${z}, transform ${t} ${z} ${i&&`,${i}`}`}),f(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${B}, transform ${t} ${B} ${i&&`,${i}`}`}),f(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),f(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}export{F as a,D as c,T as d,w as f,x as h,I as i,E as l,b as m,L as n,j as o,S as p,R as r,k as s,V as t,C as u}; \ No newline at end of file +import{$ as e,A as t,D as n,M as r,b as i,dt as a,ft as o,g as s,h as c,ht as l,k as u,m as d}from"./client-BBfBDiVG.js";import{G as f,L as p,a as m,z as h}from"./light-DqAV2QCd.js";import{d as g,u as _}from"./Card-Cze8lALH.js";import{t as v}from"./flatten-ClDK_waP.js";function y(t){let n=o(!!t.value);if(n.value)return a(n);let r=e(t,e=>{e&&(n.value=!0,r())});return a(n)}function b(){return t()!==null}var x=typeof window<`u`,S=h(`n-drawer-body`);h(`n-drawer`);var C=h(`n-modal-body`),w=h(`n-modal-provider`),T=h(`n-modal`),E=h(`n-popover-body`);function D(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function O(e,t=!0,r=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&r.push(n(String(e)));return}if(Array.isArray(e)){O(e,t,r);return}if(e.type===c){if(e.children===null)return;Array.isArray(e.children)&&O(e.children,t,r)}else e.type!==d&&r.push(e)}}),r}function k(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=O(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var A=`@@coContext`,j={mounted(e,{value:t,modifiers:n}){e[A]={handler:void 0},typeof t==`function`&&(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[A];typeof t==`function`?r.handler?r.handler!==t&&(_(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,g(`clickoutside`,e,t,{capture:n.capture})):(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(_(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[A];n&&_(`clickoutside`,e,n,{capture:t.capture}),e[A].handler=void 0}};function M(e,t){console.error(`[vdirs/${e}]: ${t}`)}var N=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&M(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},P=`@@ziContext`,F={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[P]={enabled:!!i,initialized:!1},i&&(N.ensureZIndex(e,r),e[P].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[P].enabled;i&&!a&&(N.ensureZIndex(e,r),e[P].initialized=!0),e[P].enabled=!!i},unmounted(e,t){if(!e[P].initialized)return;let{value:n={}}=t,{zIndex:r}=n;N.unregister(e,r)}},I=u({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:y(l(e,`show`)),mergedTo:i(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?D(`lazy-teleport`,this.$slots):r(s,{disabled:this.disabled,to:this.mergedTo},D(`lazy-teleport`,this.$slots)):null}});function L(e,t=`default`,n=void 0){let r=e[t];if(!r)return p(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=v(r(n));return i.length===1?i[0]:(p(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function R(e,t,n){if(!t)return null;let r=v(t(n));return r.length===1?r[0]:(p(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var{cubicBezierEaseIn:z,cubicBezierEaseOut:B}=m;function V({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[f(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${z}, transform ${t} ${z} ${i&&`,${i}`}`}),f(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${B}, transform ${t} ${B} ${i&&`,${i}`}`}),f(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),f(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}export{F as a,D as c,T as d,w as f,x as h,I as i,E as l,b as m,L as n,j as o,S as p,R as r,k as s,V as t,C as u}; \ No newline at end of file diff --git a/dist/assets/fade-in.cssr-C7FS-iQO.js b/dist/assets/fade-in.cssr-CKxOL_aH.js similarity index 87% rename from dist/assets/fade-in.cssr-C7FS-iQO.js rename to dist/assets/fade-in.cssr-CKxOL_aH.js index 6c02049..e020009 100644 --- a/dist/assets/fade-in.cssr-C7FS-iQO.js +++ b/dist/assets/fade-in.cssr-CKxOL_aH.js @@ -1 +1 @@ -import{G as e,a as t}from"./light-Dq0naAvE.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file +import{G as e,a as t}from"./light-DqAV2QCd.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file diff --git a/dist/assets/flatten-Pfh9hmmw.js b/dist/assets/flatten-ClDK_waP.js similarity index 83% rename from dist/assets/flatten-Pfh9hmmw.js rename to dist/assets/flatten-ClDK_waP.js index 83e11b5..eb0f1fc 100644 --- a/dist/assets/flatten-Pfh9hmmw.js +++ b/dist/assets/flatten-ClDK_waP.js @@ -1 +1 @@ -import{D as e,h as t,m as n}from"./client-E8nWUy_w.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(e(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===t){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===n&&a)return;o.push(i)}}}),o}export{r as t}; \ No newline at end of file +import{D as e,h as t,m as n}from"./client-BBfBDiVG.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(e(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===t){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===n&&a)return;o.push(i)}}}),o}export{r as t}; \ No newline at end of file diff --git a/dist/assets/get-DETsKAHF.js b/dist/assets/get-Dx9q3WGo.js similarity index 92% rename from dist/assets/get-DETsKAHF.js rename to dist/assets/get-Dx9q3WGo.js index f6b35aa..190b0db 100644 --- a/dist/assets/get-DETsKAHF.js +++ b/dist/assets/get-Dx9q3WGo.js @@ -1 +1 @@ -import{D as e,d as t}from"./light-Dq0naAvE.js";import{K as n,W as r}from"./index-DrmfX-S2.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&ni.map(i=>d[i]); -import{$ as e,A as t,At as n,Ct as r,D as i,Dt as a,Et as o,G as s,H as c,It as l,K as u,L as d,M as f,Mt as p,N as m,O as h,Ot as g,P as _,Q as v,S as y,St as b,T as x,Tt as S,W as C,X as w,Z as T,_t as E,b as D,bt as O,c as k,ct as ee,d as te,dt as ne,f as re,ft as A,g as ie,gt as ae,h as oe,ht as se,it as ce,j as le,jt as ue,k as j,kt as de,lt as fe,mt as pe,o as me,ot as he,p as ge,rt as _e,s as ve,st as ye,t as be,tt as xe,ut as Se,v as Ce,vt as we,wt as Te,xt as Ee,yt as De}from"./client-E8nWUy_w.js";import{A as Oe,B as M,D as ke,G as N,H as Ae,J as je,K as Me,L as Ne,M as Pe,N as Fe,O as Ie,P as Le,U as P,V as F,X as Re,Y as I,Z as L,a as ze,i as Be,k as Ve,n as R,o as He,r as Ue,s as We,t as z,z as Ge}from"./light-Dq0naAvE.js";import{i as Ke,n as qe,r as B,t as Je}from"./light-BIkcYbx-.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ye=void 0,Xe=typeof window<`u`&&window.trustedTypes;if(Xe)try{Ye=Xe.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ze=Ye?e=>Ye.createHTML(e):e=>e,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,et=V&&V.createElement(`template`),tt={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?V.createElementNS(Qe,e):t===`mathml`?V.createElementNS($e,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{et.innerHTML=Ze(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=et.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},H=`transition`,nt=`animation`,rt=Symbol(`_vtc`),it={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},at=O({},ge,it),ot=(e=>(e.displayName=`Transition`,e.props=at,e))((e,{slots:t})=>f(re,lt(e),t)),st=(e,t=[])=>{Te(e)?e.forEach(e=>e(...t)):e&&e(...t)},ct=e=>e?Te(e)?e.some(e=>e.length>1):e.length>1:!1;function lt(e){let t={};for(let n in e)n in it||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=ut(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,W(e,t?u:s),W(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,W(e,d),W(e,p),W(e,f),t&&t()},D=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);st(i,[t,o]),ft(()=>{W(t,e?c:a),U(t,e?u:s),ct(i)||mt(t,r,h,o)})};return O(t,{onBeforeEnter(e){st(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){st(S,[e]),U(e,c),U(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);U(e,d),e._enterCancelled?(U(e,f),vt(e)):(vt(e),U(e,f)),ft(()=>{e._isLeaving&&(W(e,d),U(e,p),ct(b)||mt(e,r,g,n))}),st(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),st(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),st(w,[e])},onLeaveCancelled(e){E(e),st(x,[e])}})}function ut(e){if(e==null)return null;if(a(e))return[dt(e.enter),dt(e.leave)];{let t=dt(e);return[t,t]}}function dt(e){return l(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[rt]||(e[rt]=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[rt];n&&(n.delete(t),n.size||(e[rt]=void 0))}function ft(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var pt=0;function mt(e,t,n,r){let i=e._endId=++pt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=ht(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${H}Delay`),a=r(`${H}Duration`),o=gt(i,a),s=r(`${nt}Delay`),c=r(`${nt}Duration`),l=gt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===nt?l>0&&(u=nt,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:nt:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function gt(e,t){for(;e.length_t(t)+_t(e[n])))}function _t(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function vt(e){return(e?e.ownerDocument:document).body.offsetHeight}function yt(e,t,n){let r=e[rt];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var bt=Symbol(`_vod`),xt=Symbol(`_vsh`),St={name:`show`,beforeMount(e,{value:t},{transition:n}){e[bt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ct(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ct(e,!0),r.enter(e)):r.leave(e,()=>{Ct(e,!1)}):Ct(e,t))},beforeUnmount(e,{value:t}){Ct(e,t)}};function Ct(e,t){e.style.display=t?e[bt]:`none`,e[xt]=!t}var wt=Symbol(``),Tt=/(?:^|;)\s*display\s*:/;function Et(e,t,r){let i=e.style,a=n(r),o=!1;if(r&&!a){if(t)if(n(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??Ot(i,t,``)}else for(let e in t)r[e]??Ot(i,e,``);for(let a in r){a===`display`&&(o=!0);let s=r[a];s==null?Ot(i,a,``):Mt(e,a,!n(t)&&t?t[a]:void 0,s)||Ot(i,a,s)}}else if(a){if(t!==r){let e=i[wt];e&&(r+=`;`+e),i.cssText=r,o=Tt.test(r)}}else t&&e.removeAttribute(`style`);bt in e&&(e[bt]=o?i.display:``,e[xt]&&(i.display=`none`))}var Dt=/\s*!important$/;function Ot(e,t,n){if(Te(n))n.forEach(n=>Ot(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=jt(e,t);Dt.test(n)?e.setProperty(Ee(r),n.replace(Dt,``),`important`):e[r]=n}}var kt=[`Webkit`,`Moz`,`ms`],At={};function jt(e,t){let n=At[t];if(n)return n;let r=we(t);if(r!==`filter`&&r in e)return At[t]=r;r=De(r);for(let n=0;nUt||=(Wt.then(()=>Ut=0),Date.now());function Kt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(Te(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jt=(e,t,r,i,a,s)=>{let c=a===`svg`;t===`class`?yt(e,i,c):t===`style`?Et(e,r,i):g(t)?o(t)||zt(e,t,r,i,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Yt(e,t,i,c))?(Ft(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Pt(e,t,i,c,s,t!==`value`)):e._isVueCE&&(Xt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n(i)))?Ft(e,we(t),i,s,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Pt(e,t,i,c))};function Yt(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&qt(t)&&S(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return qt(t)&&n(r)?!1:t in e}function Xt(e,t){let n=e._def.props;if(!n)return!1;let r=we(t);return Array.isArray(n)?n.some(e=>we(e)===r):Object.keys(n).some(e=>we(e)===r)}var Zt=new WeakMap,Qt=new WeakMap,$t=Symbol(`_moveCb`),en=Symbol(`_enterCb`),tn=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:O({},at,{tag:String,moveClass:String}),setup(e,{slots:n}){let r=t(),i=v(),a,o;return C(()=>{if(!a.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!sn(a[0].el,r.vnode.el,t)){a=[];return}a.forEach(nn),a.forEach(rn);let n=a.filter(an);vt(r.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;U(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[$t]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[$t]=null,W(n,t))};n.addEventListener(`transitionend`,i)}),a=[]}),()=>{let t=pe(e),s=lt(t),c=t.tag||oe;if(a=[],o)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=ht(r);return a.removeChild(r),o}var cn=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return Te(t)?e=>r(t,e):t};function ln(e){e.target.composing=!0}function un(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var dn=Symbol(`_assign`);function fn(e,t,n){return t&&(e=e.trim()),n&&(e=p(e)),e}var pn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[dn]=cn(i);let a=r||i.props&&i.props.type===`number`;It(e,t?`change`:`input`,t=>{t.target.composing||e[dn](fn(e.value,n,a))}),(n||a)&&It(e,`change`,()=>{e.value=fn(e.value,n,a)}),t||(It(e,`compositionstart`,ln),It(e,`compositionend`,un),It(e,`change`,un))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[dn]=cn(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?p(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},mn=[`ctrl`,`shift`,`alt`,`meta`],hn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>mn.some(n=>e[`${n}Key`]&&!t.includes(n))},gn=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=Ee(n.key);if(t.some(e=>e===r||_n[e]===r))return e(n)}))},yn=O({patchProp:Jt},tt),bn;function xn(){return bn||=x(yn)}var Sn=((...e)=>{let t=xn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wn(e);if(!r)return;let i=t._component;!S(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Cn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Cn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wn(e){return n(e)?document.querySelector(e):e}var Tn=typeof window<`u`,En,Dn=e=>En=e,On=Symbol();function kn(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var An;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(An||={});var jn=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Mn(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Nn(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Rn(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Pn(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Fn(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var In=typeof navigator==`object`?navigator:{userAgent:``},Ln=/Macintosh/.test(In.userAgent)&&/AppleWebKit/.test(In.userAgent)&&!/Safari/.test(In.userAgent),Rn=Tn?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Ln?zn:`msSaveOrOpenBlob`in In?Bn:Vn:()=>{};function zn(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Fn(r):Pn(r.href)?Nn(e,t,n):(r.target=`_blank`,Fn(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Fn(r)},0))}function Bn(e,t=`download`,n){if(typeof e==`string`)if(Pn(e))Nn(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Fn(t)})}else navigator.msSaveOrOpenBlob(Mn(e,n),t)}function Vn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Nn(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(jn.HTMLElement))||`safari`in jn,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Ln)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Hn}=Object;function Un(){let e=_e(!0),t=e.run(()=>A({})),n=[],r=[],i=ee({install(e){Dn(i),i._a=e,e.provide(On,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Wn=()=>{};function Gn(e,t,n,r=Wn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ce()&&fe(i),i}function Kn(e,...t){e.forEach(e=>{e(...t)})}var qn=e=>e(),Jn=Symbol(),Yn=Symbol();function Xn(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];kn(i)&&kn(r)&&e.hasOwnProperty(n)&&!ye(r)&&!he(r)?e[n]=Xn(i,r):e[n]=r}return e}var Zn=Symbol();function Qn(e){return!kn(e)||!Object.prototype.hasOwnProperty.call(e,Zn)}var{assign:$n}=Object;function er(e){return!!(ye(e)&&e.effect)}function tr(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),$n(ae(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=ee(D(()=>{Dn(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=nr(e,l,t,n,r,!0),c}function nr(t,n,r={},i,a,o){let s,c=$n({actions:{}},r),l={deep:!0},u,f,p=new Set,m=new Set,h=i.state.value[t];!o&&!h&&(i.state.value[t]={}),A({});let g;function _(e){let n;u=f=!1,typeof e==`function`?(e(i.state.value[t]),n={type:An.patchFunction,storeId:t,events:void 0}):(Xn(i.state.value[t],e),n={type:An.patchObject,payload:e,storeId:t,events:void 0});let r=g=Symbol();d().then(()=>{g===r&&(u=!0)}),f=!0,Kn(p,n,i.state.value[t])}let v=o?function(){let{state:e}=r,t=e?e():{};this.$patch(e=>{$n(e,t)})}:Wn;function y(){s.stop(),p.clear(),m.clear(),i._s.delete(t)}let b=(e,n=``)=>{if(Jn in e)return e[Yn]=n,e;let r=function(){Dn(i);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Kn(m,{args:n,name:r[Yn],store:x,after:s,onError:c});let l;try{l=e.apply(this&&this.$id===t?this:x,n)}catch(e){throw Kn(o,e),e}return l instanceof Promise?l.then(e=>(Kn(a,e),e)).catch(e=>(Kn(o,e),Promise.reject(e))):(Kn(a,l),l)};return r[Jn]=!0,r[Yn]=n,r},x=Se({_p:i,$id:t,$onAction:Gn.bind(null,m),$patch:_,$reset:v,$subscribe(n,r={}){let a=Gn(p,n,r.detached,()=>o()),o=s.run(()=>e(()=>i.state.value[t],e=>{(r.flush===`sync`?f:u)&&n({storeId:t,type:An.direct,events:void 0},e)},$n({},l,r)));return a},$dispose:y});i._s.set(t,x);let S=(i._a&&i._a.runWithContext||qn)(()=>i._e.run(()=>(s=_e()).run(()=>n({action:b}))));for(let e in S){let n=S[e];ye(n)&&!er(n)||he(n)?o||(h&&Qn(n)&&(ye(n)?n.value=h[e]:Xn(n,h[e])),i.state.value[t][e]=n):typeof n==`function`&&(S[e]=b(n,e),c.actions[e]=n)}return $n(x,S),$n(pe(x),S),Object.defineProperty(x,"$state",{get:()=>i.state.value[t],set:e=>{_(t=>{$n(t,e)})}}),i._p.forEach(e=>{$n(x,s.run(()=>e({store:x,app:i._a,pinia:i,options:c})))}),h&&o&&r.hydrate&&r.hydrate(x.$state,h),u=!0,f=!0,x}function rr(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=m();return n||=o?_(On,null):null,n&&Dn(n),n=En,n._s.has(e)||(i?nr(e,t,r,n):tr(e,r,n)),n._s.get(e)}return a.$id=e,a}function ir(e=8){return Math.random().toString(16).slice(2,2+e)}function ar(t){let n=D(t),r=A(n.value);return e(n,e=>{r.value=e}),typeof t==`function`?r:{__v_isRef:!0,get value(){return r.value},set value(e){t.set(e)}}}function or(){let e=A(!1);return c(()=>{e.value=!0}),ne(e)}function sr(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function cr(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?i(e):typeof e==`number`?i(String(e)):null}var lr=`[object Symbol]`;function ur(e){return typeof e==`symbol`||Ie(e)&&Ve(e)==lr}function dr(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:_r(e,t,n)}var yr=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function br(e){return yr.test(e)}function xr(e){return e.split(``)}var Sr=`\\ud800-\\udfff`,Cr=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,wr=`\\ufe0e\\ufe0f`,Tr=`[`+Sr+`]`,Er=`[`+Cr+`]`,Dr=`\\ud83c[\\udffb-\\udfff]`,Or=`(?:`+Er+`|`+Dr+`)`,kr=`[^`+Sr+`]`,Ar=`(?:\\ud83c[\\udde6-\\uddff]){2}`,jr=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Mr=`\\u200d`,Nr=Or+`?`,Pr=`[`+wr+`]?`,Fr=`(?:`+Mr+`(?:`+[kr,Ar,jr].join(`|`)+`)`+Pr+Nr+`)*`,Ir=Pr+Nr+Fr,Lr=`(?:`+[kr+Er+`?`,Er,Ar,jr,Tr].join(`|`)+`)`,Rr=RegExp(Dr+`(?=`+Dr+`)|`+Lr+Ir,`g`);function zr(e){return e.match(Rr)||[]}function Br(e){return br(e)?zr(e):xr(e)}function Vr(e){return function(t){t=gr(t);var n=br(t)?Br(t):void 0,r=n?n[0]:t.charAt(0),i=n?vr(n,1).join(``):t.slice(1);return r[e]()+i}}var Hr=Vr(`toUpperCase`),Ur=Me(`base-icon`,` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ParticipationView-COtA08mM.js","assets/client-BBfBDiVG.js","assets/Card-Cze8lALH.js","assets/light-DqAV2QCd.js","assets/css-DEmdllcC.js","assets/use-form-item-ajbhslgm.js","assets/resolve-slot-C_Onglzh.js","assets/fade-in.cssr-CKxOL_aH.js","assets/light-BPWFFUAb.js","assets/Button-DAM1cqtA.js","assets/use-message-DyQW5yAL.js","assets/Space-_Xn7R9gX.js","assets/flatten-ClDK_waP.js","assets/get-slot-6kXJmSMP.js","assets/HeaderMenu-CqYU4ywX.js","assets/es-D90fN3qV.js","assets/_plugin-vue_export-helper-BDNMzG2s.js","assets/HeaderMenu-f2uWydlm.css","assets/datetime-BJNH0M1T.js","assets/TicketScannerView-De4Kct2U.js","assets/Input-2L35DdEz.js","assets/use-merged-state-DRpgLPWV.js","assets/Suffix-DM_ippuo.js","assets/Alert-DsjLN_Ag.js","assets/TicketScannerView-D7i7g7qE.css","assets/TicketView-C6VFKGmR.js","assets/QrCode-BOyg-J5s.js","assets/MessagePaper-HXyPZ4jl.js","assets/MessagePaper-LComeSyV.css","assets/TicketView-DyVKlJtM.css","assets/HomeView-DxIBlwY5.js","assets/HomeView-krhA9Djj.css","assets/LoginView-V5w0IrrB.js","assets/Follower-DIc7TcHi.js","assets/fade-in-scale-up.cssr-BH_qfdlG.js","assets/utils-bNShwiNe.js","assets/use-compitable-kfiJdYfv.js","assets/Add-DRm_H-MT.js","assets/LoginView-DKQmdgOL.css","assets/OfficeView-jlUXrZ46.js","assets/Modal-DbiX6wvm.js","assets/keep-zbFcxtME.js","assets/OfficeView-48MxrOUu.css","assets/UserAgreementView-CtxhuEWz.js","assets/DocsPage-BsboAE3e.js","assets/HeaderText-OoQfyl23.js","assets/HeaderText-DghUu1Eo.css","assets/DocsPage-DF0yQ_3O.css","assets/PrivacyPolicyView-BAyYArc1.js","assets/ConsentView-DJNUY8n2.js","assets/GamesView-cyoiD7oM.js","assets/Select-B-sTbBIa.js","assets/Popover-I7RatnYr.js","assets/get-Dx9q3WGo.js","assets/Tag-YulbLI_X.js","assets/Flex-BIB1uWhx.js","assets/GamesView-B2lPSP8B.css","assets/ScreenView-C8WZZfh8.js","assets/application-DO6jjJW-.js","assets/ScreenView-B1tWvr7Y.css","assets/GameResultsView-CLr9oPCb.js","assets/GameResultsView-Cyfw2OL4.css","assets/GameView-DNUqMOHP.js","assets/Remove-CjPWnsYa.js","assets/Rate-CNH6p4IB.js","assets/text-ERnkmyYu.js","assets/Settings-DDsOcEqz.js","assets/binary_client-CGYCXafS.js","assets/useSimplePolling-CSXqe4IY.js","assets/GameView-B595UwmM.css","assets/TeamStoryView-CqCSRKxB.js","assets/PlaceBlock-C1FV-h-w.js","assets/Upload-ByR1zA4h.js","assets/PlaceBlock-ChQ3diSd.css","assets/TeamStoryView-BSK2xP5a.css","assets/ScenariosView-CtBJm7Md.js","assets/ScenariosView--8_xqsRn.css","assets/CatalogView-DgbmMV8h.js","assets/CatalogView-C2lqLyXi.css","assets/ScenariosEditorView-CWgs-slH.js","assets/ScenariosEditorView-DMkf_vix.css","assets/ScenarioView-CPAdhwjt.js","assets/ScenarioView-MF9N59mk.css","assets/UsersView-CZCDgMwm.js","assets/UsersView-Bj0ZaZ2i.css","assets/ReviewsView-B_r6_KYM.js","assets/ReviewsView-DHvnR8hu.css"])))=>i.map(i=>d[i]); +import{$ as e,A as t,At as n,Ct as r,D as i,Dt as a,Et as o,G as s,H as c,It as l,K as u,L as d,M as f,Mt as p,N as m,O as h,Ot as g,P as _,Q as v,S as y,St as b,T as x,Tt as S,W as C,X as w,Z as T,_t as E,b as D,bt as O,c as k,ct as ee,d as te,dt as ne,f as re,ft as A,g as ie,gt as ae,h as oe,ht as se,it as ce,j as le,jt as ue,k as j,kt as de,lt as fe,mt as pe,o as me,ot as he,p as ge,rt as _e,s as ve,st as ye,t as be,tt as xe,ut as Se,v as Ce,vt as we,wt as Te,xt as Ee,yt as De}from"./client-BBfBDiVG.js";import{A as Oe,B as M,D as ke,G as N,H as Ae,J as je,K as Me,L as Ne,M as Pe,N as Fe,O as Ie,P as Le,U as P,V as F,X as Re,Y as I,Z as L,a as ze,i as Be,k as Ve,n as R,o as He,r as Ue,s as We,t as z,z as Ge}from"./light-DqAV2QCd.js";import{i as Ke,n as qe,r as B,t as Je}from"./light-BPWFFUAb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ye=void 0,Xe=typeof window<`u`&&window.trustedTypes;if(Xe)try{Ye=Xe.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ze=Ye?e=>Ye.createHTML(e):e=>e,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,et=V&&V.createElement(`template`),tt={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?V.createElementNS(Qe,e):t===`mathml`?V.createElementNS($e,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{et.innerHTML=Ze(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=et.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},H=`transition`,nt=`animation`,rt=Symbol(`_vtc`),it={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},at=O({},ge,it),ot=(e=>(e.displayName=`Transition`,e.props=at,e))((e,{slots:t})=>f(re,lt(e),t)),st=(e,t=[])=>{Te(e)?e.forEach(e=>e(...t)):e&&e(...t)},ct=e=>e?Te(e)?e.some(e=>e.length>1):e.length>1:!1;function lt(e){let t={};for(let n in e)n in it||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=ut(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,W(e,t?u:s),W(e,t?l:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,W(e,d),W(e,p),W(e,f),t&&t()},D=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);st(i,[t,o]),ft(()=>{W(t,e?c:a),U(t,e?u:s),ct(i)||mt(t,r,h,o)})};return O(t,{onBeforeEnter(e){st(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){st(S,[e]),U(e,c),U(e,l)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);U(e,d),e._enterCancelled?(U(e,f),vt(e)):(vt(e),U(e,f)),ft(()=>{e._isLeaving&&(W(e,d),U(e,p),ct(b)||mt(e,r,g,n))}),st(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),st(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),st(w,[e])},onLeaveCancelled(e){E(e),st(x,[e])}})}function ut(e){if(e==null)return null;if(a(e))return[dt(e.enter),dt(e.leave)];{let t=dt(e);return[t,t]}}function dt(e){return l(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[rt]||(e[rt]=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[rt];n&&(n.delete(t),n.size||(e[rt]=void 0))}function ft(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var pt=0;function mt(e,t,n,r){let i=e._endId=++pt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=ht(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${H}Delay`),a=r(`${H}Duration`),o=gt(i,a),s=r(`${nt}Delay`),c=r(`${nt}Duration`),l=gt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===nt?l>0&&(u=nt,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:nt:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function gt(e,t){for(;e.length_t(t)+_t(e[n])))}function _t(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function vt(e){return(e?e.ownerDocument:document).body.offsetHeight}function yt(e,t,n){let r=e[rt];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var bt=Symbol(`_vod`),xt=Symbol(`_vsh`),St={name:`show`,beforeMount(e,{value:t},{transition:n}){e[bt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ct(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ct(e,!0),r.enter(e)):r.leave(e,()=>{Ct(e,!1)}):Ct(e,t))},beforeUnmount(e,{value:t}){Ct(e,t)}};function Ct(e,t){e.style.display=t?e[bt]:`none`,e[xt]=!t}var wt=Symbol(``),Tt=/(?:^|;)\s*display\s*:/;function Et(e,t,r){let i=e.style,a=n(r),o=!1;if(r&&!a){if(t)if(n(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??Ot(i,t,``)}else for(let e in t)r[e]??Ot(i,e,``);for(let a in r){a===`display`&&(o=!0);let s=r[a];s==null?Ot(i,a,``):Mt(e,a,!n(t)&&t?t[a]:void 0,s)||Ot(i,a,s)}}else if(a){if(t!==r){let e=i[wt];e&&(r+=`;`+e),i.cssText=r,o=Tt.test(r)}}else t&&e.removeAttribute(`style`);bt in e&&(e[bt]=o?i.display:``,e[xt]&&(i.display=`none`))}var Dt=/\s*!important$/;function Ot(e,t,n){if(Te(n))n.forEach(n=>Ot(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=jt(e,t);Dt.test(n)?e.setProperty(Ee(r),n.replace(Dt,``),`important`):e[r]=n}}var kt=[`Webkit`,`Moz`,`ms`],At={};function jt(e,t){let n=At[t];if(n)return n;let r=we(t);if(r!==`filter`&&r in e)return At[t]=r;r=De(r);for(let n=0;nUt||=(Wt.then(()=>Ut=0),Date.now());function Kt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(Te(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jt=(e,t,r,i,a,s)=>{let c=a===`svg`;t===`class`?yt(e,i,c):t===`style`?Et(e,r,i):g(t)?o(t)||zt(e,t,r,i,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Yt(e,t,i,c))?(Ft(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Pt(e,t,i,c,s,t!==`value`)):e._isVueCE&&(Xt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n(i)))?Ft(e,we(t),i,s,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Pt(e,t,i,c))};function Yt(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&qt(t)&&S(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return qt(t)&&n(r)?!1:t in e}function Xt(e,t){let n=e._def.props;if(!n)return!1;let r=we(t);return Array.isArray(n)?n.some(e=>we(e)===r):Object.keys(n).some(e=>we(e)===r)}var Zt=new WeakMap,Qt=new WeakMap,$t=Symbol(`_moveCb`),en=Symbol(`_enterCb`),tn=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:O({},at,{tag:String,moveClass:String}),setup(e,{slots:n}){let r=t(),i=v(),a,o;return C(()=>{if(!a.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!sn(a[0].el,r.vnode.el,t)){a=[];return}a.forEach(nn),a.forEach(rn);let n=a.filter(an);vt(r.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;U(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[$t]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[$t]=null,W(n,t))};n.addEventListener(`transitionend`,i)}),a=[]}),()=>{let t=pe(e),s=lt(t),c=t.tag||oe;if(a=[],o)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=ht(r);return a.removeChild(r),o}var cn=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return Te(t)?e=>r(t,e):t};function ln(e){e.target.composing=!0}function un(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var dn=Symbol(`_assign`);function fn(e,t,n){return t&&(e=e.trim()),n&&(e=p(e)),e}var pn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[dn]=cn(i);let a=r||i.props&&i.props.type===`number`;It(e,t?`change`:`input`,t=>{t.target.composing||e[dn](fn(e.value,n,a))}),(n||a)&&It(e,`change`,()=>{e.value=fn(e.value,n,a)}),t||(It(e,`compositionstart`,ln),It(e,`compositionend`,un),It(e,`change`,un))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[dn]=cn(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?p(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},mn=[`ctrl`,`shift`,`alt`,`meta`],hn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>mn.some(n=>e[`${n}Key`]&&!t.includes(n))},gn=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=Ee(n.key);if(t.some(e=>e===r||_n[e]===r))return e(n)}))},yn=O({patchProp:Jt},tt),bn;function xn(){return bn||=x(yn)}var Sn=((...e)=>{let t=xn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wn(e);if(!r)return;let i=t._component;!S(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Cn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Cn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wn(e){return n(e)?document.querySelector(e):e}var Tn=typeof window<`u`,En,Dn=e=>En=e,On=Symbol();function kn(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var An;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(An||={});var jn=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Mn(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Nn(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Rn(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Pn(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Fn(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var In=typeof navigator==`object`?navigator:{userAgent:``},Ln=/Macintosh/.test(In.userAgent)&&/AppleWebKit/.test(In.userAgent)&&!/Safari/.test(In.userAgent),Rn=Tn?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Ln?zn:`msSaveOrOpenBlob`in In?Bn:Vn:()=>{};function zn(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Fn(r):Pn(r.href)?Nn(e,t,n):(r.target=`_blank`,Fn(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Fn(r)},0))}function Bn(e,t=`download`,n){if(typeof e==`string`)if(Pn(e))Nn(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Fn(t)})}else navigator.msSaveOrOpenBlob(Mn(e,n),t)}function Vn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Nn(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(jn.HTMLElement))||`safari`in jn,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Ln)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Hn}=Object;function Un(){let e=_e(!0),t=e.run(()=>A({})),n=[],r=[],i=ee({install(e){Dn(i),i._a=e,e.provide(On,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Wn=()=>{};function Gn(e,t,n,r=Wn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ce()&&fe(i),i}function Kn(e,...t){e.forEach(e=>{e(...t)})}var qn=e=>e(),Jn=Symbol(),Yn=Symbol();function Xn(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];kn(i)&&kn(r)&&e.hasOwnProperty(n)&&!ye(r)&&!he(r)?e[n]=Xn(i,r):e[n]=r}return e}var Zn=Symbol();function Qn(e){return!kn(e)||!Object.prototype.hasOwnProperty.call(e,Zn)}var{assign:$n}=Object;function er(e){return!!(ye(e)&&e.effect)}function tr(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),$n(ae(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=ee(D(()=>{Dn(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=nr(e,l,t,n,r,!0),c}function nr(t,n,r={},i,a,o){let s,c=$n({actions:{}},r),l={deep:!0},u,f,p=new Set,m=new Set,h=i.state.value[t];!o&&!h&&(i.state.value[t]={}),A({});let g;function _(e){let n;u=f=!1,typeof e==`function`?(e(i.state.value[t]),n={type:An.patchFunction,storeId:t,events:void 0}):(Xn(i.state.value[t],e),n={type:An.patchObject,payload:e,storeId:t,events:void 0});let r=g=Symbol();d().then(()=>{g===r&&(u=!0)}),f=!0,Kn(p,n,i.state.value[t])}let v=o?function(){let{state:e}=r,t=e?e():{};this.$patch(e=>{$n(e,t)})}:Wn;function y(){s.stop(),p.clear(),m.clear(),i._s.delete(t)}let b=(e,n=``)=>{if(Jn in e)return e[Yn]=n,e;let r=function(){Dn(i);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Kn(m,{args:n,name:r[Yn],store:x,after:s,onError:c});let l;try{l=e.apply(this&&this.$id===t?this:x,n)}catch(e){throw Kn(o,e),e}return l instanceof Promise?l.then(e=>(Kn(a,e),e)).catch(e=>(Kn(o,e),Promise.reject(e))):(Kn(a,l),l)};return r[Jn]=!0,r[Yn]=n,r},x=Se({_p:i,$id:t,$onAction:Gn.bind(null,m),$patch:_,$reset:v,$subscribe(n,r={}){let a=Gn(p,n,r.detached,()=>o()),o=s.run(()=>e(()=>i.state.value[t],e=>{(r.flush===`sync`?f:u)&&n({storeId:t,type:An.direct,events:void 0},e)},$n({},l,r)));return a},$dispose:y});i._s.set(t,x);let S=(i._a&&i._a.runWithContext||qn)(()=>i._e.run(()=>(s=_e()).run(()=>n({action:b}))));for(let e in S){let n=S[e];ye(n)&&!er(n)||he(n)?o||(h&&Qn(n)&&(ye(n)?n.value=h[e]:Xn(n,h[e])),i.state.value[t][e]=n):typeof n==`function`&&(S[e]=b(n,e),c.actions[e]=n)}return $n(x,S),$n(pe(x),S),Object.defineProperty(x,"$state",{get:()=>i.state.value[t],set:e=>{_(t=>{$n(t,e)})}}),i._p.forEach(e=>{$n(x,s.run(()=>e({store:x,app:i._a,pinia:i,options:c})))}),h&&o&&r.hydrate&&r.hydrate(x.$state,h),u=!0,f=!0,x}function rr(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=m();return n||=o?_(On,null):null,n&&Dn(n),n=En,n._s.has(e)||(i?nr(e,t,r,n):tr(e,r,n)),n._s.get(e)}return a.$id=e,a}function ir(e=8){return Math.random().toString(16).slice(2,2+e)}function ar(t){let n=D(t),r=A(n.value);return e(n,e=>{r.value=e}),typeof t==`function`?r:{__v_isRef:!0,get value(){return r.value},set value(e){t.set(e)}}}function or(){let e=A(!1);return c(()=>{e.value=!0}),ne(e)}function sr(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function cr(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?i(e):typeof e==`number`?i(String(e)):null}var lr=`[object Symbol]`;function ur(e){return typeof e==`symbol`||Ie(e)&&Ve(e)==lr}function dr(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:_r(e,t,n)}var yr=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function br(e){return yr.test(e)}function xr(e){return e.split(``)}var Sr=`\\ud800-\\udfff`,Cr=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,wr=`\\ufe0e\\ufe0f`,Tr=`[`+Sr+`]`,Er=`[`+Cr+`]`,Dr=`\\ud83c[\\udffb-\\udfff]`,Or=`(?:`+Er+`|`+Dr+`)`,kr=`[^`+Sr+`]`,Ar=`(?:\\ud83c[\\udde6-\\uddff]){2}`,jr=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Mr=`\\u200d`,Nr=Or+`?`,Pr=`[`+wr+`]?`,Fr=`(?:`+Mr+`(?:`+[kr,Ar,jr].join(`|`)+`)`+Pr+Nr+`)*`,Ir=Pr+Nr+Fr,Lr=`(?:`+[kr+Er+`?`,Er,Ar,jr,Tr].join(`|`)+`)`,Rr=RegExp(Dr+`(?=`+Dr+`)|`+Lr+Ir,`g`);function zr(e){return e.match(Rr)||[]}function Br(e){return br(e)?zr(e):xr(e)}function Vr(e){return function(t){t=gr(t);var n=br(t)?Br(t):void 0,r=n?n[0]:t.charAt(0),i=n?vr(n,1).join(``):t.slice(1);return r[e]()+i}}var Hr=Vr(`toUpperCase`),Ur=Me(`base-icon`,` height: 1em; width: 1em; line-height: 1em; @@ -197,4 +197,4 @@ import{$ as e,A as t,At as n,Ct as r,D as i,Dt as a,Et as o,G as s,H as c,It as right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),Eo={info:()=>f(Yr,null),success:()=>f(Xr,null),warning:()=>f(Zr,null),error:()=>f(Jr,null),default:()=>null},Do=j({name:`Message`,props:Object.assign(Object.assign({},wo),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=Fe(e),{props:r,mergedClsPrefixRef:i}=_(yo),a=He(`Message`,n,i),o=Ue(`Message`,`-message`,To,So,r,i),s=D(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[L(`textColor`,t)]:S,[L(`boxShadow`,t)]:C,[L(`color`,t)]:w,[L(`closeColorHover`,t)]:T,[L(`closeColorPressed`,t)]:E,[L(`closeIconColor`,t)]:D,[L(`closeIconColorPressed`,t)]:O,[L(`closeIconColorHover`,t)]:k}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?Pe(`message`,D(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return f(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):f(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=Oo(c,t,i,this.spinProps))&&u?f(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},f(Gr,null,{default:()=>d})):null,f(`div`,{class:`${i}-message__content`},cr(r)),n?f(ti,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function Oo(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?f(oi,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):Eo[t]();return e?f(Wr,{clsPrefix:n,key:t},{default:()=>e}):null}}var ko=j({name:`MessageEnvironment`,props:Object.assign(Object.assign({},wo),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=A(!0);c(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function l(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function u(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:l,handleMouseleave:a,handleMouseenter:i,deactivate:u}},render(){return f(ni,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?f(Do,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ao=j({name:`MessageProvider`,props:Object.assign(Object.assign({},Ue.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=Fe(e),n=A([]),r=A({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};u(yo,{props:e,mergedClsPrefixRef:t}),u(vo,i);function a(t,i){let a=ir(),o=Se(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return f(oe,null,(e=this.$slots).default?.call(e),this.messageList.length?f(ie,{to:this.to??`body`},f(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>f(ko,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},sr(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),jo={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Mo(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},jo),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}R({name:`Notification`,common:z,peers:{Scrollbar:B},self:Mo});var No={name:`Notification`,common:q,peers:{Scrollbar:J},self:Mo};function Po(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Fo={name:`Divider`,common:q,self:Po};function Io(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}R({name:`Drawer`,common:z,peers:{Scrollbar:B},self:Io});var Lo={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Io},Ro={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},zo={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Ro}},Bo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Vo={name:`Space`,self(){return Bo}},Ho={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:wi,Space:Vo},self(){return{inputWidth:`64px`}}},Uo={name:`Element`,common:q},Wo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Go={name:`Flex`,self(){return Wo}},Ko={name:`ButtonGroup`,common:q},qo={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function Jo(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},qo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var Yo={name:`Form`,common:z,self:Jo},Xo={name:`Form`,common:q,self:Jo},Zo={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},Qo={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function $o(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}R({name:`InputOtp`,common:z,peers:{Input:Bi},self:$o});var es={name:`InputOtp`,common:q,peers:{Input:X},self:$o},ts={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:F(n,o),siderToggleBarColorHover:F(n,s),__invertScrollbar:`false`}}},ns={name:`Row`,common:q};function rs(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:F(r,c),colorPopover:i,colorHoverPopover:F(i,c),borderColor:a,borderColorModal:F(r,a),borderColorPopover:F(i,a),borderRadius:o,fontSize:s}}var is={name:`List`,common:q,self:rs},as={name:`Log`,common:q,peers:{Scrollbar:J,Code:ha},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},os={name:`Mention`,common:q,peers:{InternalSelectMenu:vi,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function ss(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function cs(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:M(r,{alpha:.1}),itemColorActiveHover:M(r,{alpha:.1}),itemColorActiveCollapsed:M(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},ss(`#BBB`,r,`#FFF`,`#AAA`))}R({name:`Menu`,common:z,peers:{Tooltip:Ba,Dropdown:Fa},self:cs});var ls={name:`Menu`,common:q,peers:{Tooltip:Ra,Dropdown:Ia},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=cs(e);return r.itemColorActive=M(t,{alpha:.15}),r.itemColorActiveHover=M(t,{alpha:.15}),r.itemColorActiveCollapsed=M(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},us={titleFontSize:`18px`,backSize:`22px`};function ds(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},us),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}R({name:`PageHeader`,common:z,self:ds});var fs={name:`PageHeader`,common:q,self:ds},ps={iconSize:`22px`};function ms(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},ps),{fontSize:t,iconColor:n})}R({name:`Popconfirm`,common:z,peers:{Button:Z,Popover:xi},self:ms});var hs={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Si},self:ms};function gs(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var _s={name:`Progress`,common:z,self:gs},vs={name:`Progress`,common:q,self(e){let t=gs(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},ys={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},bs={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function xs(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},bs),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Ss={name:`Result`,common:q,self:xs},Cs={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},ws={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},Cs),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function Ts(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var Es={name:`Spin`,common:z,self:Ts},Ds={name:`Spin`,common:q,self:Ts};function Os(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var ks={name:`Statistic`,common:q,self:Os},As={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function js(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},As),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ms={name:`Steps`,common:q,self:js},Ns={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},Ps={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},Ns),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${M(i,{alpha:.3})}`})}},Fs={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Is(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Fs),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:F(n,t),borderColorModal:F(r,t),borderColorPopover:F(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:F(n,o),tdColorStripedModal:F(r,o),tdColorStripedPopover:F(i,o),thColor:F(n,a),thColorModal:F(r,a),thColorPopover:F(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Ls={name:`Table`,common:q,self:Is},Rs={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function zs(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Rs),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var Bs={name:`Tabs`,common:z,self:zs},Vs={name:`Tabs`,common:q,self(e){let t=zs(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function Hs(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Us={name:`Thing`,common:q,self:Hs},Ws={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Gs={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},Ws),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},Ks={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},qs={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},Ks),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function Js(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:M(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}R({name:`Tree`,common:z,peers:{Checkbox:da,Scrollbar:B,Empty:pi},self:Js});var Ys={name:`Tree`,common:q,peers:{Checkbox:fa,Scrollbar:J,Empty:mi},self(e){let{primaryColor:t}=e,n=Js(e);return n.nodeColorActive=M(t,{alpha:.15}),n}},Xs={name:`TreeSelect`,common:q,peers:{Tree:Ys,Empty:mi,InternalSelection:Ei}},Zs={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function Qs(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},Zs),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var $s={name:`Typography`,common:z,self:Qs},ec={name:`Typography`,common:q,self:Qs};function tc(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:M(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var nc=R({name:`Upload`,common:z,peers:{Button:Z,Progress:_s},self:tc}),rc={name:`Upload`,common:q,peers:{Button:Q,Progress:vs},self(e){let{errorColor:t}=e,n=tc(e);return n.itemColorHoverError=M(t,{alpha:.09}),n}},ic={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},ac={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function oc(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}R({name:`Heatmap`,common:z,self:oc});var sc={name:`Heatmap`,common:q,self(e){let t=oc(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function cc(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var lc={name:`IconWrapper`,common:q,self:cc},uc={name:`Image`,common:q,peers:{Tooltip:Ra},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},dc={extraFontSize:`12px`,width:`440px`},fc={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},dc),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function pc(){return{}}var mc={name:`dark`,common:q,Alert:Ai,Anchor:Ii,AutoComplete:Ui,Avatar:Ki,AvatarGroup:Ji,BackTop:Xi,Badge:Zi,Breadcrumb:ea,Button:Q,ButtonGroup:Ko,Calendar:aa,Card:oa,Carousel:ca,Cascader:ma,Checkbox:fa,Code:ha,Collapse:_a,CollapseTransition:ya,ColorPicker:xa,DataTable:Ya,DatePicker:ao,Descriptions:co,Dialog:po,Divider:Fo,Drawer:Lo,Dropdown:Ia,DynamicInput:zo,DynamicTags:Ho,Element:Uo,Empty:mi,Ellipsis:Va,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Go,Form:Xo,GradientText:Zo,Heatmap:sc,Icon:Za,IconWrapper:lc,Image:uc,Input:X,InputNumber:Qo,InputOtp:es,LegacyTransfer:fc,Layout:ts,List:is,LoadingBar:_o,Log:as,Menu:ls,Mention:os,Message:Co,Modal:go,Notification:No,PageHeader:fs,Pagination:Ma,Popconfirm:hs,Popover:Si,Popselect:Ca,Progress:vs,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:Wa,Rate:ys,Result:Ss,Row:ns,Scrollbar:J,Select:Oa,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:ws,Space:Vo,Spin:Ds,Statistic:ks,Steps:Ms,Switch:Ps,Table:Ls,Tabs:Vs,Tag:wi,Thing:Us,TimePicker:to,Timeline:Gs,Tooltip:Ra,Transfer:qs,Tree:Ys,TreeSelect:Xs,Typography:ec,Upload:rc,Watermark:ic,Split:{name:`Split`,common:q},FloatButton:ac,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:pc}},hc=j({__name:`App`,setup(e){return(e,t)=>(s(),y(E(Sa),{theme:E(mc)},{default:xe(()=>[h(E(Ao),null,{default:xe(()=>[h(E(me))]),_:1})]),_:1},8,[`theme`]))}}),gc=`modulepreload`,_c=function(e){return`/`+e},vc={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=_c(t,n),t=s(t),t in vc)return;vc[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:gc,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},yc=ve({history:k(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-DdLT12jH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))},{path:`/tickets/check`,name:`ticket-check`,component:()=>$(()=>import(`./TicketScannerView-BZuJRx3f.js`),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,20,21,22,23,10,11,12,13,15,14,16,17,18,24]))},{path:`/tickets/:token`,name:`ticket`,component:()=>$(()=>import(`./TicketView-DiJx-Ife.js`),__vite__mapDeps([25,1,9,3,5,6,26,16,18,27,28,29]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-BxGZqvR0.js`),__vite__mapDeps([30,1,14,15,16,17,31]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-Bi3FC9u_.js`),__vite__mapDeps([32,1,3,33,2,4,5,6,7,8,34,12,35,22,21,36,9,37,20,10,11,13,14,15,16,17,38]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-DMA2VaRa.js`),__vite__mapDeps([39,1,40,3,2,4,5,6,7,8,34,12,9,41,20,21,22,23,10,15,14,16,17,42]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-CKFkBjBE.js`),__vite__mapDeps([43,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-Bl65pvPH.js`),__vite__mapDeps([48,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-CWwmrkGq.js`),__vite__mapDeps([49,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-BwGN5ktl.js`),__vite__mapDeps([50,1,3,33,2,4,5,6,7,8,34,12,35,22,40,9,41,21,51,36,52,53,54,20,10,11,13,55,15,14,16,17,18,56]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-EuPQ1US_.js`),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,51,33,34,12,35,22,21,36,52,41,53,54,10,26,15,14,16,17,58,18,59]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-BM7dwLFo.js`),__vite__mapDeps([60,1,9,3,5,6,10,55,4,12,13,15,14,16,17,61]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-DD4R1RyB.js`),__vite__mapDeps([62,1,3,2,4,5,6,7,8,40,34,12,9,41,21,51,33,35,22,36,52,53,54,37,20,63,10,11,13,55,64,26,65,15,14,16,17,66,67,68,58,18,69]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-BHCd4RjC.js`),__vite__mapDeps([70,1,9,3,5,6,71,2,4,7,8,40,34,12,41,21,72,33,52,36,53,22,37,20,63,54,11,13,65,15,16,58,27,28,73,10,55,64,26,45,46,68,74]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-ur_EjM8c.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,8,40,34,12,9,41,72,33,21,52,36,53,22,37,20,54,10,55,13,65,15,14,16,17,67,76]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-UFhJJ2Oh.js`),__vite__mapDeps([77,1,54,3,4,5,6,64,21,15,14,16,17,78]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-DfUIMGGf.js`),__vite__mapDeps([79,1,2,3,4,5,6,7,8,40,34,12,9,41,72,33,21,52,36,53,22,37,20,71,63,54,11,13,65,15,16,58,27,28,73,23,10,55,14,17,66,67,80]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-BFwr5qHX.js`),__vite__mapDeps([81,1,54,3,4,5,6,10,64,21,15,14,16,17,82]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-lf1HNeIK.js`),__vite__mapDeps([83,1,3,2,4,5,6,7,8,40,34,12,9,41,53,20,21,22,54,10,11,13,55,15,14,16,17,84]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-B4RQglLO.js`),__vite__mapDeps([85,1,2,3,4,5,6,7,8,9,54,10,55,12,13,64,21,15,14,16,17,86]))}]}),bc=rr(`auth`,()=>{let e=A(null),t=A(null),n=A(null),r=A(!1),i=A(null),a=D(()=>!!e.value),o=D(()=>n.value?.username||``),s=D(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await be(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await g()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await be(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await be(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t,n,a){r.value=!0,i.value=null;try{let r=await be(l).Signup({username:e,email:t,acceptTerms:n,acceptPrivacy:a});return r.error?(i.value=r.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await be(l,()=>({"X-Password":e})).DeleteAccount({});return t.error?(i.value=t.error,!1):(await g(),!0)}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function h(e){r.value=!0,i.value=null;try{let t=await be(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function g(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function _(e){return s.value.includes(e)}function v(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,deleteAccount:m,refreshPassword:h,logout:g,fetchUser:u,refreshTokenAction:f,hasRole:_,hasAnyRole:v}}),xc=Sn(hc);xc.use(Un()),bc().initFromStorage(),xc.use(yc),xc.mount(`#app`);export{tn as $,_i as A,Jr as B,Hi as C,Oi as D,ki as E,ti as F,dr as G,Gr as H,$r as I,sr as J,ur as K,Zr as L,oi as M,ai as N,Ci as O,ni as P,ot as Q,Xr as R,Z as S,Ni as T,Wr as U,Kr as V,gr as W,ar as X,or as Y,ir as Z,eo as _,Bs as a,Sa as b,_s as c,Bo as d,pn as et,Ro as f,io as g,fo as h,$s as i,pi as j,xi as k,Yo as l,ho as m,yc as n,vn as nt,Ns as o,vo as p,cr as q,nc as r,gn as rt,Es as s,bc as t,St as tt,Wo as u,Ba as v,Bi as w,da as x,Da as y,Yr as z}; \ No newline at end of file + `)])]),Eo={info:()=>f(Yr,null),success:()=>f(Xr,null),warning:()=>f(Zr,null),error:()=>f(Jr,null),default:()=>null},Do=j({name:`Message`,props:Object.assign(Object.assign({},wo),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=Fe(e),{props:r,mergedClsPrefixRef:i}=_(yo),a=He(`Message`,n,i),o=Ue(`Message`,`-message`,To,So,r,i),s=D(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[L(`textColor`,t)]:S,[L(`boxShadow`,t)]:C,[L(`color`,t)]:w,[L(`closeColorHover`,t)]:T,[L(`closeColorPressed`,t)]:E,[L(`closeIconColor`,t)]:D,[L(`closeIconColorPressed`,t)]:O,[L(`closeIconColorHover`,t)]:k}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?Pe(`message`,D(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return f(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):f(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=Oo(c,t,i,this.spinProps))&&u?f(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},f(Gr,null,{default:()=>d})):null,f(`div`,{class:`${i}-message__content`},cr(r)),n?f(ti,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function Oo(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?f(oi,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):Eo[t]();return e?f(Wr,{clsPrefix:n,key:t},{default:()=>e}):null}}var ko=j({name:`MessageEnvironment`,props:Object.assign(Object.assign({},wo),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=A(!0);c(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function l(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function u(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:l,handleMouseleave:a,handleMouseenter:i,deactivate:u}},render(){return f(ni,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?f(Do,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ao=j({name:`MessageProvider`,props:Object.assign(Object.assign({},Ue.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=Fe(e),n=A([]),r=A({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};u(yo,{props:e,mergedClsPrefixRef:t}),u(vo,i);function a(t,i){let a=ir(),o=Se(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return f(oe,null,(e=this.$slots).default?.call(e),this.messageList.length?f(ie,{to:this.to??`body`},f(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>f(ko,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},sr(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),jo={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Mo(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},jo),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}R({name:`Notification`,common:z,peers:{Scrollbar:B},self:Mo});var No={name:`Notification`,common:q,peers:{Scrollbar:J},self:Mo};function Po(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Fo={name:`Divider`,common:q,self:Po};function Io(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}R({name:`Drawer`,common:z,peers:{Scrollbar:B},self:Io});var Lo={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Io},Ro={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},zo={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Ro}},Bo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Vo={name:`Space`,self(){return Bo}},Ho={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:wi,Space:Vo},self(){return{inputWidth:`64px`}}},Uo={name:`Element`,common:q},Wo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Go={name:`Flex`,self(){return Wo}},Ko={name:`ButtonGroup`,common:q},qo={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function Jo(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},qo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var Yo={name:`Form`,common:z,self:Jo},Xo={name:`Form`,common:q,self:Jo},Zo={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},Qo={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function $o(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}R({name:`InputOtp`,common:z,peers:{Input:Bi},self:$o});var es={name:`InputOtp`,common:q,peers:{Input:X},self:$o},ts={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:F(n,o),siderToggleBarColorHover:F(n,s),__invertScrollbar:`false`}}},ns={name:`Row`,common:q};function rs(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:F(r,c),colorPopover:i,colorHoverPopover:F(i,c),borderColor:a,borderColorModal:F(r,a),borderColorPopover:F(i,a),borderRadius:o,fontSize:s}}var is={name:`List`,common:q,self:rs},as={name:`Log`,common:q,peers:{Scrollbar:J,Code:ha},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},os={name:`Mention`,common:q,peers:{InternalSelectMenu:vi,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function ss(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function cs(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:M(r,{alpha:.1}),itemColorActiveHover:M(r,{alpha:.1}),itemColorActiveCollapsed:M(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},ss(`#BBB`,r,`#FFF`,`#AAA`))}R({name:`Menu`,common:z,peers:{Tooltip:Ba,Dropdown:Fa},self:cs});var ls={name:`Menu`,common:q,peers:{Tooltip:Ra,Dropdown:Ia},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=cs(e);return r.itemColorActive=M(t,{alpha:.15}),r.itemColorActiveHover=M(t,{alpha:.15}),r.itemColorActiveCollapsed=M(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},us={titleFontSize:`18px`,backSize:`22px`};function ds(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},us),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}R({name:`PageHeader`,common:z,self:ds});var fs={name:`PageHeader`,common:q,self:ds},ps={iconSize:`22px`};function ms(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},ps),{fontSize:t,iconColor:n})}R({name:`Popconfirm`,common:z,peers:{Button:Z,Popover:xi},self:ms});var hs={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Si},self:ms};function gs(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var _s={name:`Progress`,common:z,self:gs},vs={name:`Progress`,common:q,self(e){let t=gs(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},ys={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},bs={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function xs(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},bs),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Ss={name:`Result`,common:q,self:xs},Cs={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},ws={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},Cs),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function Ts(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var Es={name:`Spin`,common:z,self:Ts},Ds={name:`Spin`,common:q,self:Ts};function Os(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var ks={name:`Statistic`,common:q,self:Os},As={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function js(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},As),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ms={name:`Steps`,common:q,self:js},Ns={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},Ps={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},Ns),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${M(i,{alpha:.3})}`})}},Fs={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Is(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Fs),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:F(n,t),borderColorModal:F(r,t),borderColorPopover:F(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:F(n,o),tdColorStripedModal:F(r,o),tdColorStripedPopover:F(i,o),thColor:F(n,a),thColorModal:F(r,a),thColorPopover:F(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Ls={name:`Table`,common:q,self:Is},Rs={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function zs(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Rs),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var Bs={name:`Tabs`,common:z,self:zs},Vs={name:`Tabs`,common:q,self(e){let t=zs(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function Hs(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Us={name:`Thing`,common:q,self:Hs},Ws={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Gs={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},Ws),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},Ks={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},qs={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},Ks),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function Js(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:M(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}R({name:`Tree`,common:z,peers:{Checkbox:da,Scrollbar:B,Empty:pi},self:Js});var Ys={name:`Tree`,common:q,peers:{Checkbox:fa,Scrollbar:J,Empty:mi},self(e){let{primaryColor:t}=e,n=Js(e);return n.nodeColorActive=M(t,{alpha:.15}),n}},Xs={name:`TreeSelect`,common:q,peers:{Tree:Ys,Empty:mi,InternalSelection:Ei}},Zs={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function Qs(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},Zs),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var $s={name:`Typography`,common:z,self:Qs},ec={name:`Typography`,common:q,self:Qs};function tc(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:M(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var nc=R({name:`Upload`,common:z,peers:{Button:Z,Progress:_s},self:tc}),rc={name:`Upload`,common:q,peers:{Button:Q,Progress:vs},self(e){let{errorColor:t}=e,n=tc(e);return n.itemColorHoverError=M(t,{alpha:.09}),n}},ic={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},ac={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function oc(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}R({name:`Heatmap`,common:z,self:oc});var sc={name:`Heatmap`,common:q,self(e){let t=oc(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function cc(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var lc={name:`IconWrapper`,common:q,self:cc},uc={name:`Image`,common:q,peers:{Tooltip:Ra},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},dc={extraFontSize:`12px`,width:`440px`},fc={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},dc),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function pc(){return{}}var mc={name:`dark`,common:q,Alert:Ai,Anchor:Ii,AutoComplete:Ui,Avatar:Ki,AvatarGroup:Ji,BackTop:Xi,Badge:Zi,Breadcrumb:ea,Button:Q,ButtonGroup:Ko,Calendar:aa,Card:oa,Carousel:ca,Cascader:ma,Checkbox:fa,Code:ha,Collapse:_a,CollapseTransition:ya,ColorPicker:xa,DataTable:Ya,DatePicker:ao,Descriptions:co,Dialog:po,Divider:Fo,Drawer:Lo,Dropdown:Ia,DynamicInput:zo,DynamicTags:Ho,Element:Uo,Empty:mi,Ellipsis:Va,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Go,Form:Xo,GradientText:Zo,Heatmap:sc,Icon:Za,IconWrapper:lc,Image:uc,Input:X,InputNumber:Qo,InputOtp:es,LegacyTransfer:fc,Layout:ts,List:is,LoadingBar:_o,Log:as,Menu:ls,Mention:os,Message:Co,Modal:go,Notification:No,PageHeader:fs,Pagination:Ma,Popconfirm:hs,Popover:Si,Popselect:Ca,Progress:vs,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:Wa,Rate:ys,Result:Ss,Row:ns,Scrollbar:J,Select:Oa,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:ws,Space:Vo,Spin:Ds,Statistic:ks,Steps:Ms,Switch:Ps,Table:Ls,Tabs:Vs,Tag:wi,Thing:Us,TimePicker:to,Timeline:Gs,Tooltip:Ra,Transfer:qs,Tree:Ys,TreeSelect:Xs,Typography:ec,Upload:rc,Watermark:ic,Split:{name:`Split`,common:q},FloatButton:ac,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:pc}},hc=j({__name:`App`,setup(e){return(e,t)=>(s(),y(E(Sa),{theme:E(mc)},{default:xe(()=>[h(E(Ao),null,{default:xe(()=>[h(E(me))]),_:1})]),_:1},8,[`theme`]))}}),gc=`modulepreload`,_c=function(e){return`/`+e},vc={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=_c(t,n),t=s(t),t in vc)return;vc[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:gc,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},yc=ve({history:k(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-COtA08mM.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))},{path:`/tickets/check`,name:`ticket-check`,component:()=>$(()=>import(`./TicketScannerView-De4Kct2U.js`),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,20,21,22,23,10,11,12,13,15,14,16,17,18,24]))},{path:`/tickets/:token`,name:`ticket`,component:()=>$(()=>import(`./TicketView-C6VFKGmR.js`),__vite__mapDeps([25,1,9,3,5,6,26,16,18,27,28,29]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-DxIBlwY5.js`),__vite__mapDeps([30,1,14,15,16,17,31]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-V5w0IrrB.js`),__vite__mapDeps([32,1,3,33,2,4,5,6,7,8,34,12,35,22,21,36,9,37,20,10,11,13,14,15,16,17,38]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-jlUXrZ46.js`),__vite__mapDeps([39,1,40,3,2,4,5,6,7,8,34,12,9,41,20,21,22,23,10,15,14,16,17,42]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-CtxhuEWz.js`),__vite__mapDeps([43,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-BAyYArc1.js`),__vite__mapDeps([48,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-DJNUY8n2.js`),__vite__mapDeps([49,1,44,3,4,36,7,23,6,15,16,45,46,47,14,17]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-cyoiD7oM.js`),__vite__mapDeps([50,1,3,33,2,4,5,6,7,8,34,12,35,22,40,9,41,21,51,36,52,53,54,20,10,11,13,55,15,14,16,17,18,56]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-C8WZZfh8.js`),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,51,33,34,12,35,22,21,36,52,41,53,54,10,26,15,14,16,17,58,18,59]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-CLr9oPCb.js`),__vite__mapDeps([60,1,9,3,5,6,10,55,4,12,13,15,14,16,17,61]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-DNUqMOHP.js`),__vite__mapDeps([62,1,3,2,4,5,6,7,8,40,34,12,9,41,21,51,33,35,22,36,52,53,54,37,20,63,10,11,13,55,64,26,65,15,14,16,17,66,67,58,68,18,69]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-CqCSRKxB.js`),__vite__mapDeps([70,1,9,3,5,6,71,2,4,7,8,40,34,12,41,21,72,33,52,36,53,22,37,20,63,54,11,13,65,15,16,58,27,28,73,10,55,64,26,45,46,68,74]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-CtBJm7Md.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,8,40,34,12,9,41,72,33,21,52,36,53,22,37,20,54,10,55,13,65,15,14,16,17,67,76]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-DgbmMV8h.js`),__vite__mapDeps([77,1,54,3,4,5,6,64,21,15,14,16,17,78]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-CWgs-slH.js`),__vite__mapDeps([79,1,2,3,4,5,6,7,8,40,34,12,9,41,72,33,21,52,36,53,22,37,20,71,63,54,11,13,65,15,16,58,27,28,73,23,10,55,14,17,66,67,80]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-CPAdhwjt.js`),__vite__mapDeps([81,1,54,3,4,5,6,10,64,21,15,14,16,17,82]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-CZCDgMwm.js`),__vite__mapDeps([83,1,3,2,4,5,6,7,8,40,34,12,9,41,53,20,21,22,54,10,11,13,55,15,14,16,17,84]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-B_r6_KYM.js`),__vite__mapDeps([85,1,2,3,4,5,6,7,8,9,54,10,55,12,13,64,21,15,14,16,17,86]))}]}),bc=rr(`auth`,()=>{let e=A(null),t=A(null),n=A(null),r=A(!1),i=A(null),a=D(()=>!!e.value),o=D(()=>n.value?.username||``),s=D(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await be(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await g()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await be(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await be(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t,n,a){r.value=!0,i.value=null;try{let r=await be(l).Signup({username:e,email:t,acceptTerms:n,acceptPrivacy:a});return r.error?(i.value=r.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await be(l,()=>({"X-Password":e})).DeleteAccount({});return t.error?(i.value=t.error,!1):(await g(),!0)}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function h(e){r.value=!0,i.value=null;try{let t=await be(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function g(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function _(e){return s.value.includes(e)}function v(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,deleteAccount:m,refreshPassword:h,logout:g,fetchUser:u,refreshTokenAction:f,hasRole:_,hasAnyRole:v}}),xc=Sn(hc);xc.use(Un()),bc().initFromStorage(),xc.use(yc),xc.mount(`#app`);export{tn as $,_i as A,Jr as B,Hi as C,Oi as D,ki as E,ti as F,dr as G,Gr as H,$r as I,sr as J,ur as K,Zr as L,oi as M,ai as N,Ci as O,ni as P,ot as Q,Xr as R,Z as S,Ni as T,Wr as U,Kr as V,gr as W,ar as X,or as Y,ir as Z,eo as _,Bs as a,Sa as b,_s as c,Bo as d,pn as et,Ro as f,io as g,fo as h,$s as i,pi as j,xi as k,Yo as l,ho as m,yc as n,vn as nt,Ns as o,vo as p,cr as q,nc as r,gn as rt,Es as s,bc as t,St as tt,Wo as u,Ba as v,Bi as w,da as x,Da as y,Yr as z}; \ No newline at end of file diff --git a/dist/assets/keep-BpqC6iXB.js b/dist/assets/keep-zbFcxtME.js similarity index 96% rename from dist/assets/keep-BpqC6iXB.js rename to dist/assets/keep-zbFcxtME.js index 804efe1..db5b100 100644 --- a/dist/assets/keep-BpqC6iXB.js +++ b/dist/assets/keep-zbFcxtME.js @@ -1 +1 @@ -import{$ as e,B as t,H as n,M as r,ft as i,h as a,k as o}from"./client-E8nWUy_w.js";import{d as s,f as c,u as l}from"./Card-D_Y8VzWl.js";import{Z as u}from"./index-DrmfX-S2.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(r){let a=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===a}function b(e){var t;e.code===`Escape`&&y()&&((t=r.onEsc)==null||t.call(r,e))}n(()=>{e(()=>r.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!r.disabled){if(_.push(a),r.autoFocus){let{initialFocusTo:t}=r;t===void 0?T(`first`):(e=d(t))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(r.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==a),y()))return;let{finalFocusTo:t}=r;t===void 0?r.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(t))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&r.active){let t=o.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return r(a,null,[r(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),r(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file +import{$ as e,B as t,H as n,M as r,ft as i,h as a,k as o}from"./client-BBfBDiVG.js";import{d as s,f as c,u as l}from"./Card-Cze8lALH.js";import{Z as u}from"./index-DnUl8nHF.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(r){let a=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===a}function b(e){var t;e.code===`Escape`&&y()&&((t=r.onEsc)==null||t.call(r,e))}n(()=>{e(()=>r.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!r.disabled){if(_.push(a),r.autoFocus){let{initialFocusTo:t}=r;t===void 0?T(`first`):(e=d(t))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(r.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==a),y()))return;let{finalFocusTo:t}=r;t===void 0?r.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(t))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&r.active){let t=o.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return r(a,null,[r(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),r(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file diff --git a/dist/assets/light-BIkcYbx-.js b/dist/assets/light-BPWFFUAb.js similarity index 95% rename from dist/assets/light-BIkcYbx-.js rename to dist/assets/light-BPWFFUAb.js index d4dc208..bc2cf34 100644 --- a/dist/assets/light-BIkcYbx-.js +++ b/dist/assets/light-BPWFFUAb.js @@ -1 +1 @@ -import{t as e}from"./light-Dq0naAvE.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file +import{t as e}from"./light-DqAV2QCd.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file diff --git a/dist/assets/light-Dq0naAvE.js b/dist/assets/light-DqAV2QCd.js similarity index 99% rename from dist/assets/light-Dq0naAvE.js rename to dist/assets/light-DqAV2QCd.js index 394b0b9..87d6700 100644 --- a/dist/assets/light-Dq0naAvE.js +++ b/dist/assets/light-DqAV2QCd.js @@ -1,4 +1,4 @@ -import{P as e,b as t,d as n,et as r,ft as i,pt as a,z as o}from"./client-E8nWUy_w.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n{let r=c(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` { +import{P as e,b as t,d as n,et as r,ft as i,pt as a,z as o}from"./client-BBfBDiVG.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n{let r=c(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` { `+Object.entries(e).map(e=>t+` ${_(e[0])}: ${e[1]};`).join(` `)+` `+t+`}`:`: ${e};`}function re(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function ie(e,t,n,r){if(!t)return``;let i=re(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { diff --git a/dist/assets/resolve-slot-C9tdVP4f.js b/dist/assets/resolve-slot-C_Onglzh.js similarity index 81% rename from dist/assets/resolve-slot-C9tdVP4f.js rename to dist/assets/resolve-slot-C_Onglzh.js index 73224d1..d9adf6c 100644 --- a/dist/assets/resolve-slot-C9tdVP4f.js +++ b/dist/assets/resolve-slot-C_Onglzh.js @@ -1 +1 @@ -import{F as e,h as t,m as n}from"./client-E8nWUy_w.js";function r(i){return i.some(i=>e(i)?!(i.type===n||i.type===t&&!r(i.children)):!0)?i:null}function i(e,t){return e&&r(e())||t()}function a(e,t,n){return e&&r(e(t))||n(t)}function o(e,t){return t(e&&r(e())||null)}function s(e){return!(e&&r(e()))}export{o as a,a as i,s as n,i as r,r as t}; \ No newline at end of file +import{F as e,h as t,m as n}from"./client-BBfBDiVG.js";function r(i){return i.some(i=>e(i)?!(i.type===n||i.type===t&&!r(i.children)):!0)?i:null}function i(e,t){return e&&r(e())||t()}function a(e,t,n){return e&&r(e(t))||n(t)}function o(e,t){return t(e&&r(e())||null)}function s(e){return!(e&&r(e()))}export{o as a,a as i,s as n,i as r,r as t}; \ No newline at end of file diff --git a/dist/assets/text-DLGdGDO6.js b/dist/assets/text-ERnkmyYu.js similarity index 90% rename from dist/assets/text-DLGdGDO6.js rename to dist/assets/text-ERnkmyYu.js index a83e201..479456e 100644 --- a/dist/assets/text-DLGdGDO6.js +++ b/dist/assets/text-ERnkmyYu.js @@ -1,4 +1,4 @@ -import{M as e,b as t,k as n}from"./client-E8nWUy_w.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-Dq0naAvE.js";import{t as l}from"./use-compitable-ChIWeUtn.js";import{i as u}from"./index-DrmfX-S2.js";var d=r(`text`,` +import{M as e,b as t,k as n}from"./client-BBfBDiVG.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-DqAV2QCd.js";import{t as l}from"./use-compitable-kfiJdYfv.js";import{i as u}from"./index-DnUl8nHF.js";var d=r(`text`,` transition: color .3s var(--n-bezier); color: var(--n-text-color); `,[o(`strong`,` diff --git a/dist/assets/use-compitable-ChIWeUtn.js b/dist/assets/use-compitable-kfiJdYfv.js similarity index 57% rename from dist/assets/use-compitable-ChIWeUtn.js rename to dist/assets/use-compitable-kfiJdYfv.js index e767528..e6c1d06 100644 --- a/dist/assets/use-compitable-ChIWeUtn.js +++ b/dist/assets/use-compitable-kfiJdYfv.js @@ -1 +1 @@ -import{b as e}from"./client-E8nWUy_w.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file +import{b as e}from"./client-BBfBDiVG.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file diff --git a/dist/assets/use-form-item-CVzWkQI_.js b/dist/assets/use-form-item-ajbhslgm.js similarity index 86% rename from dist/assets/use-form-item-CVzWkQI_.js rename to dist/assets/use-form-item-ajbhslgm.js index b94cf6b..ce101d9 100644 --- a/dist/assets/use-form-item-CVzWkQI_.js +++ b/dist/assets/use-form-item-ajbhslgm.js @@ -1 +1 @@ -import{B as e,K as t,P as n,b as r}from"./client-E8nWUy_w.js";import{z as i}from"./light-Dq0naAvE.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=n(s,null);t(s,null);let u=r(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=r(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=r(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return e(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t}; \ No newline at end of file +import{B as e,K as t,P as n,b as r}from"./client-BBfBDiVG.js";import{z as i}from"./light-DqAV2QCd.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=n(s,null);t(s,null);let u=r(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=r(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=r(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return e(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t}; \ No newline at end of file diff --git a/dist/assets/use-merged-state-C1ccSDEx.js b/dist/assets/use-merged-state-DRpgLPWV.js similarity index 60% rename from dist/assets/use-merged-state-C1ccSDEx.js rename to dist/assets/use-merged-state-DRpgLPWV.js index 1a493dd..1a4df38 100644 --- a/dist/assets/use-merged-state-C1ccSDEx.js +++ b/dist/assets/use-merged-state-DRpgLPWV.js @@ -1 +1 @@ -import{$ as e,b as t}from"./client-E8nWUy_w.js";function n(n,r){return e(n,e=>{e!==void 0&&(r.value=e)}),t(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file +import{$ as e,b as t}from"./client-BBfBDiVG.js";function n(n,r){return e(n,e=>{e!==void 0&&(r.value=e)}),t(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file diff --git a/dist/assets/use-message-BD6Lw0qA.js b/dist/assets/use-message-DyQW5yAL.js similarity index 72% rename from dist/assets/use-message-BD6Lw0qA.js rename to dist/assets/use-message-DyQW5yAL.js index 331acaf..50dbb3d 100644 --- a/dist/assets/use-message-BD6Lw0qA.js +++ b/dist/assets/use-message-DyQW5yAL.js @@ -1 +1 @@ -import{P as e}from"./client-E8nWUy_w.js";import{I as t}from"./light-Dq0naAvE.js";import{p as n}from"./index-DrmfX-S2.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t}; \ No newline at end of file +import{P as e}from"./client-BBfBDiVG.js";import{I as t}from"./light-DqAV2QCd.js";import{p as n}from"./index-DnUl8nHF.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t}; \ No newline at end of file diff --git a/dist/assets/useSimplePolling-CrvIPr6O.js b/dist/assets/useSimplePolling-CSXqe4IY.js similarity index 74% rename from dist/assets/useSimplePolling-CrvIPr6O.js rename to dist/assets/useSimplePolling-CSXqe4IY.js index 81ad0b7..1d8a024 100644 --- a/dist/assets/useSimplePolling-CrvIPr6O.js +++ b/dist/assets/useSimplePolling-CSXqe4IY.js @@ -1 +1 @@ -import{H as e,U as t,ft as n}from"./client-E8nWUy_w.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file +import{H as e,U as t,ft as n}from"./client-BBfBDiVG.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file diff --git a/dist/assets/utils-CBUf6KKJ.js b/dist/assets/utils-bNShwiNe.js similarity index 98% rename from dist/assets/utils-CBUf6KKJ.js rename to dist/assets/utils-bNShwiNe.js index babd8f9..fa02f00 100644 --- a/dist/assets/utils-CBUf6KKJ.js +++ b/dist/assets/utils-bNShwiNe.js @@ -1,4 +1,4 @@ -import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,P as s,R as c,V as l,b as u,ft as d,ht as f,k as p}from"./client-E8nWUy_w.js";import{G as m,J as h,K as g,M as _,N as v,R as y,X as b,Y as x,Z as S,o as C,r as w}from"./light-Dq0naAvE.js";import{c as T,n as E,r as ee,s as D,u as O}from"./Follower-Bj8mg9ex.js";import{c as k,i as A,l as j}from"./Card-D_Y8VzWl.js";import{i as M,r as N,t as P}from"./css-DEmdllcC.js";import{t as F}from"./fade-in-scale-up.cssr-xZmtBeoT.js";import{a as I,r as L}from"./resolve-slot-C9tdVP4f.js";import{r as R}from"./Suffix-D4EvRHEf.js";import{A as te,M as ne,Q as re,U as ie,X as z,j as ae,q as B}from"./index-DrmfX-S2.js";function V(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function H(e){return e&-e}var U=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;tr)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=H(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i`u`?!1:(W===void 0&&(W=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),W)}var K;function q(){return typeof document>`u`?1:(K===void 0&&(K=`chrome`in window?window.devicePixelRatio:1),K)}var J=`VVirtualListXScroll`;function Y({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=d(0),a=d(0),o=u(()=>{let t=e.value;if(t.length===0)return null;let n=new U(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return i(J,{startIndexRef:z(()=>{let e=o.value;return e===null?0:Math.max(e.getBound(a.value)-1,0)}),endIndexRef:z(()=>{let t=o.value;return t===null?0:Math.min(t.getBound(a.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=o.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:a}}var X=p({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:a}=s(J);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:a,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),oe=E(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[E(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[E(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),se=p({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=y();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:ee,ssr:t}),n(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&C({key:n}):C({index:t})});let r=!1,i=!1;c(()=>{if(r=!1,!i){i=!0;return}C({top:b.value,left:s.value})}),l(()=>{r=!0,i||=!0});let a=z(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),o=u(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:s,listWidthRef:p}=Y({columnsRef:f(e,`columns`),renderColRef:f(e,`renderCol`),renderItemWithColsRef:f(e,`renderItemWithCols`)}),m=d(null),h=d(void 0),g=new Map,_=u(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new U(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=d(0),b=d(0),x=z(()=>Math.max(_.value.getBound(b.value-P(e.paddingTop))-1,0)),S=u(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=x.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),C=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:s,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=o.value.get(a);e!==void 0&&E(e,c,l)}else s===`bottom`?D(0,2**53-1,c):s===`top`&&D(0,0,c)},w,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+P(e.paddingTop);if(!r)m.value.scrollTo({left:0,top:a,behavior:n});else{w=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{w=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=m.value;if(a>e){let o=i.get(t);a+o<=e+r||m.value.scrollTo({left:0,top:a+o-r,behavior:n})}else m.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){m.value.scrollTo({left:e,top:t,behavior:n})}function k(t,n){if(r||e.ignoreItemResize||R(n.target))return;let{value:i}=_,a=o.value.get(t),s=i.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===s)return;c-e.itemSize===0?g.delete(t):g.set(t,c-e.itemSize);let l=c-s;if(l===0)return;i.add(a,l);let u=m.value;if(u!=null){if(w===void 0){let e=i.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else(au.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);L()}v.value++}let A=!G(),j=!1;function N(t){var n;(n=e.onScroll)==null||n.call(e,t),(!A||!j)&&L()}function F(t){var n;if((n=e.onWheel)==null||n.call(e,t),A){let e=m.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/q(),e.scrollLeft+=t.deltaX/q(),L(),j=!0,O(()=>{j=!1})}}}function I(t){if(r||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===p.value)return;h.value=t.contentRect.height,p.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=m;e!=null&&(b.value=e.scrollTop,s.value=e.scrollLeft)}function R(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:h,listStyle:{overflow:`auto`},keyToIndex:o,itemsStyle:u(()=>{let{itemResizable:t}=e,n=M(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:M(a.value),height:t?``:n,minHeight:t?n:``,paddingTop:M(e.paddingTop),paddingBottom:M(e.paddingBottom)}]}),visibleItemsStyle:u(()=>(v.value,{transform:`translateY(${M(_.value.sum(x.value))})`})),viewportItems:S,listElRef:m,itemsElRef:d(null),scrollTo:C,handleListResize:I,handleListScroll:N,handleListWheel:F,handleItemResize:k}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:i}=this;return o(k,{onResize:this.handleListResize},{default:()=>{var a;return o(`div`,r(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(a=this.$slots).empty?.call(a):o(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[o(i,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let s=a[t],c=n.get(s),l=r==null?void 0:o(X,{index:c,item:a}),u=i==null?void 0:o(X,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?o(k,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(r,i){i&&(n(()=>{let{value:e}=r;e&&j.registerHandler(e,i)}),e(r,(e,t)=>{t&&j.unregisterHandler(t)},{deep:!1}),t(()=>{let{value:e}=r;e&&j.unregisterHandler(e)}))}function Z(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var le=p({name:`Checkmark`,render(){return o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},o(`g`,{fill:`none`},o(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),ue=p({name:`Empty`,render(){return o(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),o(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),de=p({props:{onFocus:Function,onBlur:Function},setup(e){return()=>o(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function fe(e){return Array.isArray(e)?e:[e]}var pe={STOP:`STOP`};function me(e,t){let n=t(e);e.children!==void 0&&n!==pe.STOP&&e.children.forEach(e=>me(e,t))}function he(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function ge(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function _e(e){return e.children}function ve(e){return e.key}function ye(){return!1}function be(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function xe(e){return e.disabled===!0}function Se(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ce(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function we(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Te(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Ee(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function De(e){return e?.type===`group`}function Oe(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var ke=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Ae(e,t,n,r){return Q(t.concat(e),n,r,!1)}function je(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Me(e,t,n,r){let i=Q(t,n,r,!1),a=Q(e,n,r,!0),o=je(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function Ne(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Ee(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Te(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Q(n,t,l,!1):Ae(r,n,t,l):Me(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Q(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&me(t,e=>{if(e.disabled)return pe.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Se(e.rawNode,a))){if(r)return pe.STOP;if(!n)throw new ke}})}),s}function Pe(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Fe(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ie(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Le(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Re:Ie,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=Be(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=ze(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Re(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function ze(e){return e.parent}function Be(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=Be(n,t);if(e!==null)return e}else return n}}return null}var Ve={getChild(){return this.ignored?null:Be(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Le(this,`next`,e)},getPrev(e={}){return Le(this,`prev`,e)}};function He(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function Ue(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function We(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=We(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Ge(e,t={}){let n=new Map,r=new Map,{getDisabled:i=xe,getIgnored:a=ye,getIsGroup:o=De,getKey:s=ve}=t,c=t.getChildren??_e,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=We(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return ge(this.rawNode,l)},get shallowLoaded(){return be(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return Ue(this,e)}},Ve),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return He(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Fe(u)},getPath(e,t={}){return Pe(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return Ne({checkedKeys:Ce(e),indeterminateKeys:we(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToCheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToUncheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return he(u,e)}};return _}var Ke=g(`empty`,` +import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,P as s,R as c,V as l,b as u,ft as d,ht as f,k as p}from"./client-BBfBDiVG.js";import{G as m,J as h,K as g,M as _,N as v,R as y,X as b,Y as x,Z as S,o as C,r as w}from"./light-DqAV2QCd.js";import{c as T,n as E,r as ee,s as D,u as O}from"./Follower-DIc7TcHi.js";import{c as k,i as A,l as j}from"./Card-Cze8lALH.js";import{i as M,r as N,t as P}from"./css-DEmdllcC.js";import{t as F}from"./fade-in-scale-up.cssr-BH_qfdlG.js";import{a as I,r as L}from"./resolve-slot-C_Onglzh.js";import{r as R}from"./Suffix-DM_ippuo.js";import{A as te,M as ne,Q as re,U as ie,X as z,j as ae,q as B}from"./index-DnUl8nHF.js";function V(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function H(e){return e&-e}var U=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;tr)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=H(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i`u`?!1:(W===void 0&&(W=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),W)}var K;function q(){return typeof document>`u`?1:(K===void 0&&(K=`chrome`in window?window.devicePixelRatio:1),K)}var J=`VVirtualListXScroll`;function Y({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=d(0),a=d(0),o=u(()=>{let t=e.value;if(t.length===0)return null;let n=new U(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return i(J,{startIndexRef:z(()=>{let e=o.value;return e===null?0:Math.max(e.getBound(a.value)-1,0)}),endIndexRef:z(()=>{let t=o.value;return t===null?0:Math.min(t.getBound(a.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=o.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:a}}var X=p({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:a}=s(J);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:a,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),oe=E(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[E(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[E(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),se=p({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=y();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:ee,ssr:t}),n(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&C({key:n}):C({index:t})});let r=!1,i=!1;c(()=>{if(r=!1,!i){i=!0;return}C({top:b.value,left:s.value})}),l(()=>{r=!0,i||=!0});let a=z(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),o=u(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:s,listWidthRef:p}=Y({columnsRef:f(e,`columns`),renderColRef:f(e,`renderCol`),renderItemWithColsRef:f(e,`renderItemWithCols`)}),m=d(null),h=d(void 0),g=new Map,_=u(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new U(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=d(0),b=d(0),x=z(()=>Math.max(_.value.getBound(b.value-P(e.paddingTop))-1,0)),S=u(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=x.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),C=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:s,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=o.value.get(a);e!==void 0&&E(e,c,l)}else s===`bottom`?D(0,2**53-1,c):s===`top`&&D(0,0,c)},w,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+P(e.paddingTop);if(!r)m.value.scrollTo({left:0,top:a,behavior:n});else{w=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{w=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=m.value;if(a>e){let o=i.get(t);a+o<=e+r||m.value.scrollTo({left:0,top:a+o-r,behavior:n})}else m.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){m.value.scrollTo({left:e,top:t,behavior:n})}function k(t,n){if(r||e.ignoreItemResize||R(n.target))return;let{value:i}=_,a=o.value.get(t),s=i.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===s)return;c-e.itemSize===0?g.delete(t):g.set(t,c-e.itemSize);let l=c-s;if(l===0)return;i.add(a,l);let u=m.value;if(u!=null){if(w===void 0){let e=i.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else(au.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);L()}v.value++}let A=!G(),j=!1;function N(t){var n;(n=e.onScroll)==null||n.call(e,t),(!A||!j)&&L()}function F(t){var n;if((n=e.onWheel)==null||n.call(e,t),A){let e=m.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/q(),e.scrollLeft+=t.deltaX/q(),L(),j=!0,O(()=>{j=!1})}}}function I(t){if(r||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===p.value)return;h.value=t.contentRect.height,p.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=m;e!=null&&(b.value=e.scrollTop,s.value=e.scrollLeft)}function R(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:h,listStyle:{overflow:`auto`},keyToIndex:o,itemsStyle:u(()=>{let{itemResizable:t}=e,n=M(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:M(a.value),height:t?``:n,minHeight:t?n:``,paddingTop:M(e.paddingTop),paddingBottom:M(e.paddingBottom)}]}),visibleItemsStyle:u(()=>(v.value,{transform:`translateY(${M(_.value.sum(x.value))})`})),viewportItems:S,listElRef:m,itemsElRef:d(null),scrollTo:C,handleListResize:I,handleListScroll:N,handleListWheel:F,handleItemResize:k}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:i}=this;return o(k,{onResize:this.handleListResize},{default:()=>{var a;return o(`div`,r(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(a=this.$slots).empty?.call(a):o(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[o(i,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let s=a[t],c=n.get(s),l=r==null?void 0:o(X,{index:c,item:a}),u=i==null?void 0:o(X,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?o(k,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(r,i){i&&(n(()=>{let{value:e}=r;e&&j.registerHandler(e,i)}),e(r,(e,t)=>{t&&j.unregisterHandler(t)},{deep:!1}),t(()=>{let{value:e}=r;e&&j.unregisterHandler(e)}))}function Z(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var le=p({name:`Checkmark`,render(){return o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},o(`g`,{fill:`none`},o(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),ue=p({name:`Empty`,render(){return o(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},o(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),o(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),de=p({props:{onFocus:Function,onBlur:Function},setup(e){return()=>o(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function fe(e){return Array.isArray(e)?e:[e]}var pe={STOP:`STOP`};function me(e,t){let n=t(e);e.children!==void 0&&n!==pe.STOP&&e.children.forEach(e=>me(e,t))}function he(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function ge(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function _e(e){return e.children}function ve(e){return e.key}function ye(){return!1}function be(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function xe(e){return e.disabled===!0}function Se(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ce(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function we(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Te(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Ee(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function De(e){return e?.type===`group`}function Oe(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var ke=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Ae(e,t,n,r){return Q(t.concat(e),n,r,!1)}function je(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Me(e,t,n,r){let i=Q(t,n,r,!1),a=Q(e,n,r,!0),o=je(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function Ne(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Ee(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Te(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Q(n,t,l,!1):Ae(r,n,t,l):Me(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Q(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&me(t,e=>{if(e.disabled)return pe.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Se(e.rawNode,a))){if(r)return pe.STOP;if(!n)throw new ke}})}),s}function Pe(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Fe(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ie(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Le(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Re:Ie,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=Be(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=ze(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Re(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function ze(e){return e.parent}function Be(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=Be(n,t);if(e!==null)return e}else return n}}return null}var Ve={getChild(){return this.ignored?null:Be(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Le(this,`next`,e)},getPrev(e={}){return Le(this,`prev`,e)}};function He(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function Ue(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function We(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=We(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Ge(e,t={}){let n=new Map,r=new Map,{getDisabled:i=xe,getIgnored:a=ye,getIsGroup:o=De,getKey:s=ve}=t,c=t.getChildren??_e,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=We(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return ge(this.rawNode,l)},get shallowLoaded(){return be(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return Ue(this,e)}},Ve),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return He(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Fe(u)},getPath(e,t={}){return Pe(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return Ne({checkedKeys:Ce(e),indeterminateKeys:we(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToCheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToUncheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return he(u,e)}};return _}var Ke=g(`empty`,` display: flex; flex-direction: column; align-items: center; diff --git a/dist/index.html b/dist/index.html index 77fe7cf..e302052 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,10 +5,10 @@ Вечерний детектив - - - - + + + +