main.7f9fd409.js 167 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. import{i as Ls,a as Ut,h as Gn,B as Ps,e as Kn,b as _i,c as Ci,d as jt,t as ki,f as Ti,g as Ai,j as Ms,k as Ri,l as Oi,m as Ii,n as Ns,o as Li,p as Pi,s as Mi,q as U,r as Co,u as Q,v as x,w as k,x as N,y as B,z as H,A as me,C as I,D as Z,E as ht,F as xe,G as oe,T as Rt,H as ve,I as Y,J as mt,K as gt,L as Te,M as X,N as j,O as Ni,P as Hi,Q as Ot,R as We,S as at,U as q,V as ie,W as ne,X as O,_ as fe,Y as pe,Z as vt,$ as Ge,a0 as Jn,a1 as Hs,a2 as Ds,a3 as yt,a4 as Bs,a5 as Ke,a6 as Us,a7 as Vs,a8 as Di,a9 as Bi,aa as Ws,ab as Ui,ac as Vi}from"./main.2d9aa5f6.js";const Wi="http://www.w3.org/2000/svg",Fe=typeof document<"u"?document:null,ko=Fe&&Fe.createElement("template"),zi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?Fe.createElementNS(Wi,e):Fe.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Fe.createTextNode(e),createComment:e=>Fe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ko.innerHTML=o?`<svg>${e}</svg>`:e;const c=ko.content;if(o){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Xi(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ji(e,t,n){const o=e.style,s=Ut(n);if(n&&!s){for(const i in n)Dn(o,i,n[i]);if(t&&!Ut(t))for(const i in t)n[i]==null&&Dn(o,i,"")}else{const i=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const To=/\s*!important$/;function Dn(e,t,n){if(jt(n))n.forEach(o=>Dn(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Yi(e,t);To.test(n)?e.setProperty(Ms(o),n.replace(To,""),"important"):e[o]=n}}const Ao=["Webkit","Moz","ms"],hn={};function Yi(e,t){const n=hn[t];if(n)return n;let o=Ri(t);if(o!=="filter"&&o in e)return hn[t]=o;o=Oi(o);for(let s=0;s<Ao.length;s++){const i=Ao[s]+o;if(i in e)return hn[t]=i}return t}const Ro="http://www.w3.org/1999/xlink";function Fi(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ro,t.slice(6,t.length)):e.setAttributeNS(Ro,t,n);else{const i=Ii(t);n==null||i&&!Ns(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function qi(e,t,n,o,s,i,l){if(t==="innerHTML"||t==="textContent"){o&&l(o,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const u=n==null?"":n;(e.value!==u||e.tagName==="OPTION")&&(e.value=u),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=Ns(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[zs,Gi]=(()=>{let e=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Bn=0;const Ki=Promise.resolve(),Ji=()=>{Bn=0},Qi=()=>Bn||(Ki.then(Ji),Bn=zs());function Zi(e,t,n,o){e.addEventListener(t,n,o)}function ea(e,t,n,o){e.removeEventListener(t,n,o)}function ta(e,t,n,o,s=null){const i=e._vei||(e._vei={}),l=i[t];if(o&&l)l.value=o;else{const[c,u]=na(t);if(o){const m=i[t]=oa(o,s);Zi(e,c,m,u)}else l&&(ea(e,c,l,u),i[t]=void 0)}}const Oo=/(?:Once|Passive|Capture)$/;function na(e){let t;if(Oo.test(e)){t={};let n;for(;n=e.match(Oo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Ms(e.slice(2)),t]}function oa(e,t){const n=o=>{const s=o.timeStamp||zs();(Gi||s>=n.attached-1)&&Li(sa(o,n.value),t,5,[o])};return n.value=e,n.attached=Qi(),n}function sa(e,t){if(jt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Io=/^on[a-z]/,ra=(e,t,n,o,s=!1,i,l,c,u)=>{t==="class"?Xi(e,o,s):t==="style"?ji(e,n,o):Ti(t)?Ai(t)||ta(e,t,n,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ia(e,t,o,s))?qi(e,t,o,i,l,c,u):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Fi(e,t,o,s))};function ia(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Io.test(t)&&Ls(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Io.test(t)&&Ut(n)?!1:t in e}const He="transition",St="animation",Je=(e,{slots:t})=>Gn(Ps,aa(e),t);Je.displayName="Transition";const Xs={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};Je.props=Kn({},Ps.props,Xs);const je=(e,t=[])=>{jt(e)?e.forEach(n=>n(...t)):e&&e(...t)},Lo=e=>e?jt(e)?e.some(t=>t.length>1):e.length>1:!1;function aa(e){const t={};for(const $ in e)$ in Xs||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:m=l,appearToClass:p=c,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:r=`${n}-leave-active`,leaveToClass:a=`${n}-leave-to`}=e,d=la(s),f=d&&d[0],h=d&&d[1],{onBeforeEnter:y,onEnter:E,onEnterCancelled:w,onLeave:b,onLeaveCancelled:g,onBeforeAppear:S=y,onAppear:_=E,onAppearCancelled:C=w}=t,A=($,P,V)=>{Ye($,P?p:c),Ye($,P?m:l),V&&V()},R=($,P)=>{$._isLeaving=!1,Ye($,v),Ye($,a),Ye($,r),P&&P()},L=$=>(P,V)=>{const z=$?_:E,K=()=>A(P,$,V);je(z,[P,K]),Po(()=>{Ye(P,$?u:i),De(P,$?p:c),Lo(z)||Mo(P,o,f,K)})};return Kn(t,{onBeforeEnter($){je(y,[$]),De($,i),De($,l)},onBeforeAppear($){je(S,[$]),De($,u),De($,m)},onEnter:L(!1),onAppear:L(!0),onLeave($,P){$._isLeaving=!0;const V=()=>R($,P);De($,v),da(),De($,r),Po(()=>{!$._isLeaving||(Ye($,v),De($,a),Lo(b)||Mo($,o,h,V))}),je(b,[$,V])},onEnterCancelled($){A($,!1),je(w,[$])},onAppearCancelled($){A($,!0),je(C,[$])},onLeaveCancelled($){R($),je(g,[$])}})}function la(e){if(e==null)return null;if(_i(e))return[mn(e.enter),mn(e.leave)];{const t=mn(e);return[t,t]}}function mn(e){return ki(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ye(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Po(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ca=0;function Mo(e,t,n,o){const s=e._endId=++ca,i=()=>{s===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:c,propCount:u}=ua(e,t);if(!l)return o();const m=l+"end";let p=0;const v=()=>{e.removeEventListener(m,r),i()},r=a=>{a.target===e&&++p>=u&&v()};setTimeout(()=>{p<u&&v()},c+1),e.addEventListener(m,r)}function ua(e,t){const n=window.getComputedStyle(e),o=d=>(n[d]||"").split(", "),s=o(He+"Delay"),i=o(He+"Duration"),l=No(s,i),c=o(St+"Delay"),u=o(St+"Duration"),m=No(c,u);let p=null,v=0,r=0;t===He?l>0&&(p=He,v=l,r=i.length):t===St?m>0&&(p=St,v=m,r=u.length):(v=Math.max(l,m),p=v>0?l>m?He:St:null,r=p?p===He?i.length:u.length:0);const a=p===He&&/\b(transform|all)(,|$)/.test(n[He+"Property"]);return{type:p,timeout:v,propCount:r,hasTransform:a}}function No(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ho(n)+Ho(e[o])))}function Ho(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function da(){return document.body.offsetHeight}const fa=["ctrl","shift","alt","meta"],pa={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)=>fa.some(n=>e[`${n}Key`]&&!t.includes(n))},js=(e,t)=>(n,...o)=>{for(let s=0;s<t.length;s++){const i=pa[t[s]];if(i&&i(n,t))return}return e(n,...o)},ha=Kn({patchProp:ra},zi);let Do;function Ys(){return Do||(Do=Ci(ha))}const Et=(...e)=>{Ys().render(...e)},ma=(...e)=>{const t=Ys().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=ga(o);if(!s)return;const i=t._component;!Ls(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const l=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function ga(e){return Ut(e)?document.querySelector(e):e}const va=Object.prototype.toString,ya=e=>va.call(e),Bo=e=>ya(e).slice(8,-1),ot=(e,t,n)=>{if(e===t)return!1;const o=Bo(e),s=Bo(t);if(o!==s)return console.log("===",o,s),!0;if(o==="String"||o==="Number"||o==="Boolean")return o==="Number"&&isNaN(e)&&isNaN(t)?!1:e!==t;const i=Array.from(n.values());for(const l of i)if(l.includes(e)&&l.includes(t))return!1;if(n.add([e,t]),o==="Array")return e.length!==t.length||e.some((l,c)=>ot(l,t[c],n));if(o==="Object"){const l=Object.keys(e).sort(),c=Object.keys(t).sort();return ot(l,c,n)||l.some(u=>ot(e[u],t[u],n))}else if(o==="Map"){const l=Array.from(e.keys()).sort(),c=Array.from(t.keys()).sort();return ot(l,c,n)||l.some(u=>ot(e.get(u),t.get(u),n))}else return o==="Set"?Fs(Array.from(e.values()),Array.from(t.values())):e!==t},Fs=(e,t)=>ot(e,t,new Set),Lh=(e,t)=>{const n=[],o=[];for(const s of e)t.includes(s)||n.push(s);for(const s of t)e.includes(s)||o.push(s);return{added:n,deleted:o}},Mt=(e,t)=>~e.indexOf(t)?!1:(e.push(t),!0),ba=(e,t)=>{const n=e.indexOf(t);return~n?(e.splice(n,1),!0):!1};function Qn(e,t,n){return async o=>{let s;n?s=await n(o):s=o;const i=await t(s),l=e.value.find(c=>c.id===o.id);return l?Object.assign(l,i):Mt(e.value,o),i}}function Yt(e,t,n){return async(o,s)=>{let i;n?i=await n(o):i=o,await t(i,s);const l=e.value.find(c=>c.id===o.id);l&&Object.assign(l,o)}}function Ft(e,t,n){return async o=>{let s;n?s=await n(o):s=o,await t(s),ba(e.value,o)}}function Zn(e,t,n,o){return async()=>{const s=await t();let i;o?i=await o(s):i=s,e.value=i,n&&n()}}const qt=(e,t,n)=>()=>{const o=t(),{deleted:s,updated:i,added:l}=wa(e.value,o),c=[];if(n.delete)for(const u of s)c.push(n.delete(u));if(n.update)for(const[u,m]of i)c.push(n.update(u,m));if(n.add)for(const u of l)c.push(n.add(u));return Promise.all(c)},wa=(e,t)=>{const n=[],o=[],s=[];e=Pi(e);for(const i of e){const l=t.find(c=>i.id===c.id);l?Fs(l,i)&&Mt(s,[i,l]):Mt(n,i)}for(const i of t)e.find(c=>c.id===i.id)||Mt(o,i);return{added:n,deleted:o,updated:s}},Gt=(e,t)=>()=>{const n=t();e.value=n.map(o=>{const s=e.value.find(i=>i.id===o.id);return console.log("===>",s,o),s?Object.assign(s,o):o})},_e=(e,t)=>{const n=Mi([]);return e!==void 0&&n.push(e),{push(o){return n.push(o),()=>{const s=n.indexOf(o);~s&&n.splice(s,1)}},pop(){return n[n.length---1]},current:U(()=>n[n.length-1]),length:U(()=>n.length)}},Sa=e=>{const t={},n=Object.keys(e);return new Proxy(t,{get(s,i){return n.includes(i)?Co(e[i].current.value)?e[i].current.value.value:e[i].current.value:e[i]},set(s,i,l){return Co(e[i].current.value)?e[i].current.value.value=l:e[i].current.value=l,!0}})};function lt(e,{props:t,children:n,element:o,app:s}={}){let i=o,l=Q(e,t,n);return s&&s._context&&(l.appContext=s._context),i?Et(l,i):typeof document<"u"&&Et(l,i=document.createElement("div")),{vNode:l,destroy:()=>{i&&Et(null,i),i=null,l=null},el:i}}function qs(...e){return e.forEach(t=>{t.install=function(n){t.use&&t.use(n),n.component(t.name,t)}}),e}let $a=1e4;const It=()=>++$a,de=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Ea={name:"ui-dialog-content"},xa={class:"ui-dialog__box"},_a={key:0},Ca={key:1};function ka(e,t,n,o,s,i){return x(),k("div",xa,[e.$slots.header?(x(),k("header",_a,[N(e.$slots,"header")])):B("",!0),H("section",null,[N(e.$slots,"default")]),e.$slots.footer?(x(),k("footer",Ca,[N(e.$slots,"footer")])):B("",!0)])}const Gs=de(Ea,[["render",ka]]),Ta=me({name:"ui-dialog",setup:function(e,t){return{show:I(!0),zIndex:It()}},components:{DialogContent:Gs}});function Aa(e,t,n,o,s,i){const l=ve("dialog-content");return x(),Z(Rt,{to:"body"},[e.show?(x(),k("div",{key:0,class:"ui-dialog",style:oe({zIndex:e.zIndex})},[Q(l,null,ht({_:2},[xe(e.$slots,(c,u)=>({name:u,fn:Y(m=>[N(e.$slots,u,mt(gt(m)))])}))]),1024)],4)):B("",!0)])}const qe=de(Ta,[["render",Aa]]),Ra=me({name:"ui-window",setup:function(e,t){}});function Oa(e,t,n,o,s,i){return ve("ui-dialog"),B("",!0)}const Ia=de(Ra,[["render",Oa]]);const La=me({name:"ui-toast",props:{type:String,delay:Number,content:String,destroy:Function},setup:function(e,t){const n=I(!0),o=()=>{n.value=!1,Te(()=>{typeof e.destroy=="function"&&e.destroy()})};return e.type!=="fixed"&&setTimeout(()=>o(),e.delay||3e3),{show:n,type:e.type,close:o,content:e.content,zIndex:It()}}}),Pa=e=>(Ni("data-v-eb369ae0"),e=e(),Hi(),e),Ma=Pa(()=>H("i",{class:"icon"},null,-1));function Na(e,t,n,o,s,i){return x(),Z(Rt,{to:"body"},[Q(Je,{name:"slide-down",mode:"out-in",appear:""},{default:Y(()=>[e.show?(x(),k("div",{key:0,class:"ui-toast",style:oe({zIndex:e.zIndex})},[H("div",{class:j(["ui-toast__box",[e.type]])},[Ma,H("div",null,X(e.content),1),H("i",{class:"iconfont icon-close close",onClick:t[0]||(t[0]=(...l)=>e.close&&e.close(...l))})],2)],4)):B("",!0)]),_:1})])}const Ks=de(La,[["render",Na],["__scopeId","data-v-eb369ae0"]]),Uo=Symbol("nest-wh"),Ha=e=>{const t=Promise.resolve(),n=We(Uo,Promise.resolve());at(Uo,t);const o=I(0),s=I(null),i=I(!1);return[o,s,i,c=>{if(o.value=0,i.value=!1,s.value)return n.then(()=>t.then(()=>new Promise(u=>{setTimeout(()=>{if(s.value){const m=e==="width"?s.value.offsetWidth:s.value.offsetHeight;u(),setTimeout(()=>{o.value=m,i.value=!0,u(),c&&c()})}})})))}]},Da=(e=!1,t="height")=>{const[n,o,s,i]=Ha(t),l=I(0),c=U({get:()=>l.value!=0,set:m=>{l.value=m?n.value:0,e=m}}),u=(m=!c.value)=>{c.value=m};return Ot(()=>{i(()=>c.value=e)}),[o,u,l,n,c,s,()=>{l.value=0,i(()=>{c.value=e})}]},Js=e=>{if(e==null)return null;if(e===document.documentElement)return e;const t=getComputedStyle(e).overflowY,n=getComputedStyle(e).overflowX;return e.scrollHeight>e.clientHeight||t==="auto"||t==="scroll"||n==="auto"||n==="scroll"?e:Js(e.parentNode)},Ba=(e,t)=>{const n=[];let o=e;for(;o&&o!==t&&o!==document.documentElement&&t.contains(o);){const s=Js(o);if(s)s!==e&&n.push(s),o=s.parentNode;else break}return n},Ua=(e,t,n=!1,o=!1)=>{const s={x:0,y:0,width:e.offsetWidth,height:e.offsetHeight};let i=e;if(o){if(i!==t){const l=i.getBoundingClientRect(),c=t.getBoundingClientRect();s.x+=l.x-c.x,s.y+=l.y-c.y}}else for(;i&&i!==t&&i!==document.documentElement&&t.contains(i);)s.x+=i.offsetLeft+i.clientLeft,s.y+=i.offsetTop+i.clientTop,i=i.offsetParent;return n&&(s.x+=s.width,s.y+=s.height),s},kt=e=>e===void 0?e:Pe(e)==="Number"?e?e<=1&e>=0?100*e+"%":e+"px":void 0:e.includes("px")?kt(parseFloat(e)):e.includes("%")?kt(parseFloat(e)/100):e,Va=Object.prototype.toString,Wa=e=>Va.call(e),Pe=e=>Wa(e).slice(8,-1),Vt=e=>Pe(e)==="Function";function Qs(e,...t){const n={...e};return t.forEach(function(o){delete n[o]}),n}const Kt=(e=6)=>{var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length,o="";for(let s=0;s<e;s++)o+=t.charAt(Math.floor(Math.random()*n));return o},st=(e,t,n)=>{if(e===t)return!1;const o=Pe(e),s=Pe(t);if(o!==s)return!0;if(o==="String"||o==="Number"||o==="Boolean")return e!==t;const i=Array.from(n.values());for(const l of i)if(l.includes(e)&&l.includes(t))return!1;if(n.add([e,t]),o==="Array")return e.length!==t.length||e.some((l,c)=>st(l,t[c],n));if(o==="Object"){const l=Object.keys(e).sort(),c=Object.keys(t).sort();return st(l,c,n)||l.some(u=>st(e[u],t[u],n))}else if(o==="Map"){const l=Array.from(e.keys()).sort(),c=Array.from(t.keys()).sort();return st(l,c,n)||l.some(u=>st(e.get(u),t.get(u),n))}else return o==="Set"?Zs(Array.from(e.values()),Array.from(t.values())):e!==t},we=function(){let e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,o=/(?:Android)/.test(e),s=/(?:Firefox)/.test(e);/(?:Chrome|CriOS)/.test(e);let i=/(?:iPad|PlayBook)/.test(e)||o&&!/(?:Mobile)/.test(e)||s&&/(?:Tablet)/.test(e),l=/(?:iPhone)/.test(e)&&!i,c=!l&&!o&&!n;return c&&navigator.maxTouchPoints>1&&(i=!0),{isTablet:i,isPhone:l,isAndroid:o,isPc:c}}(),Zs=(e,t)=>st(e,t,new Set),za=me({name:"ui-alert",props:{title:{type:String,default:q.t("sys.tip")},okText:{type:String,default:q.t("sys.enter")},func:Function,content:String,destroy:Function},setup:function(e,t){const n=()=>{Vt(e.func)&&e.func()===!1||Vt(e.destroy)&&e.destroy()};return{...Qs(e,"destroy","func"),close:n}}});function Xa(e,t,n,o,s,i){const l=ve("ui-button"),c=ve("ui-dialog");return x(),Z(c,null,{header:Y(()=>[H("span",null,X(e.title),1),H("i",{class:"iconfont icon-close fun-ctrl",onClick:t[0]||(t[0]=(...u)=>e.close&&e.close(...u))})]),footer:Y(()=>[Q(l,{type:"submit",onClick:e.close},{default:Y(()=>[ie(X(e.okText),1)]),_:1},8,["onClick"])]),default:Y(()=>[ie(" "+X(e.content)+" ",1)]),_:1})}const er=de(za,[["render",Xa]]),ja=me({name:"ui-confirm",props:{title:{type:String,default:q.t("sys.tip")},okText:{type:String,default:q.t("sys.enter")},noText:{type:String,default:q.t("sys.cancel")},func:Function,content:String,destroy:Function},setup:function(e,t){const n=o=>{Vt(e.func)&&e.func(o)===!1||Vt(e.destroy)&&e.destroy()};return{...Qs(e,"destroy","func"),close:n}}}),Ya={key:1},Fa={key:1,class:"confirm-content"};function qa(e,t,n,o,s,i){const l=ve("ui-button"),c=ve("ui-dialog");return x(),Z(c,null,{header:Y(()=>[e.$slots.header?(x(),k("span",Ya,X(e.title),1)):(x(),k(ne,{key:0},[H("span",null,X(e.title),1),e.func?(x(),k("i",{key:0,class:"iconfont icon-close fun-ctrl",onClick:t[0]||(t[0]=u=>e.close("no"))})):B("",!0)],64))]),footer:Y(()=>[e.$slots.footer?N(e.$slots,"footer",{key:1}):(x(),k(ne,{key:0},[Q(l,{type:"submit",onClick:t[1]||(t[1]=u=>e.close("no"))},{default:Y(()=>[ie(X(e.noText),1)]),_:1}),Q(l,{type:"primary",onClick:t[2]||(t[2]=u=>e.close("ok"))},{default:Y(()=>[ie(X(e.okText),1)]),_:1})],64))]),default:Y(()=>[e.$slots.content?N(e.$slots,"content",{key:0}):(x(),k("pre",Fa,X(e.content),1))]),_:3})}const tr=de(ja,[["render",qa]]);qe.use=function(t){qe.toast=function(n){typeof n=="string"&&(n={content:n});const{destroy:o,vNode:s,el:i}=lt(Ks,{app:t,props:{...n,destroy:o}});return this.toast.hide=function(){o()},this.toast},qe.alert=function(n){return typeof n=="string"&&(n={content:n}),new Promise(o=>{const s={...n,destroy:()=>{i(),o()}},{destroy:i}=lt(er,{app:t,props:s})})},qe.confirm=function(n){typeof n=="string"&&(n={content:n});let o;n.func||(o=new Promise(i=>{n.func=l=>i(l==="ok")}));const{destroy:s}=lt(tr,{app:t,props:{...n,destroy:()=>s()}});return this.confirm.hide=function(){s()},o||this.confirm}};const Ga=H("div",{class:"ui-loading__box"},[H("div",{class:"default"},[H("div"),H("div"),H("div")])],-1),Ka=[Ga],Ja={name:"ui-loading"},$e=Object.assign(Ja,{props:{el:{default:"body"},size:{default:15},color:{default:"#fff"}},setup(e){const t=It();return(n,o)=>(x(),Z(Rt,{to:e.el},[H("div",{class:"ui-loading",style:oe({zIndex:O(t),["--width"]:e.size+"px",["--color"]:e.color})},Ka,4)],8,["to"]))}}),Vo=1,Re=[];$e.use=function(t){$e.show=function(n,o){if(Re.length)Re.push({key:o,close:Vo});else{const{destroy:s}=lt($e,{app:t,props:{...n}});Re.push({key:o,close:s})}},$e.hide=function(n){if(Re.length){const{key:o}=Re[Re.length-1];if(o===n){const{close:s}=Re.pop();s!==Vo&&s()}}},$e.hideAll=function(){for(const{close:n}of Re)typeof n=="function"&&n();Re.length=0}};const Qa=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};function Za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}},eo={exports:{}},or=function(t,n){return function(){for(var s=new Array(arguments.length),i=0;i<s.length;i++)s[i]=arguments[i];return t.apply(n,s)}},el=or,to=Object.prototype.toString,no=function(e){return function(t){var n=to.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Qe(e){return e=e.toLowerCase(),function(n){return no(n)===e}}function oo(e){return Array.isArray(e)}function Wt(e){return typeof e>"u"}function tl(e){return e!==null&&!Wt(e)&&e.constructor!==null&&!Wt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var sr=Qe("ArrayBuffer");function nl(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sr(e.buffer),t}function ol(e){return typeof e=="string"}function sl(e){return typeof e=="number"}function rr(e){return e!==null&&typeof e=="object"}function Nt(e){if(no(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var rl=Qe("Date"),il=Qe("File"),al=Qe("Blob"),ll=Qe("FileList");function so(e){return to.call(e)==="[object Function]"}function cl(e){return rr(e)&&so(e.pipe)}function ul(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||to.call(e)===t||so(e.toString)&&e.toString()===t)}var dl=Qe("URLSearchParams");function fl(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function pl(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ro(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),oo(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function Un(){var e={};function t(s,i){Nt(e[i])&&Nt(s)?e[i]=Un(e[i],s):Nt(s)?e[i]=Un({},s):oo(s)?e[i]=s.slice():e[i]=s}for(var n=0,o=arguments.length;n<o;n++)ro(arguments[n],t);return e}function hl(e,t,n){return ro(t,function(s,i){n&&typeof s=="function"?e[i]=el(s,n):e[i]=s}),e}function ml(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function gl(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function vl(e,t,n){var o,s,i,l={};t=t||{};do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],l[i]||(t[i]=e[i],l[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function yl(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return o!==-1&&o===n}function bl(e){if(!e)return null;var t=e.length;if(Wt(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var wl=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),le={isArray:oo,isArrayBuffer:sr,isBuffer:tl,isFormData:ul,isArrayBufferView:nl,isString:ol,isNumber:sl,isObject:rr,isPlainObject:Nt,isUndefined:Wt,isDate:rl,isFile:il,isBlob:al,isFunction:so,isStream:cl,isURLSearchParams:dl,isStandardBrowserEnv:pl,forEach:ro,merge:Un,extend:hl,trim:fl,stripBOM:ml,inherits:gl,toFlatObject:vl,kindOf:no,kindOfTest:Qe,endsWith:yl,toArray:bl,isTypedArray:wl,isFileList:ll},et=le;function Wo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ir=function(t,n,o){if(!n)return t;var s;if(o)s=o(n);else if(et.isURLSearchParams(n))s=n.toString();else{var i=[];et.forEach(n,function(u,m){u===null||typeof u>"u"||(et.isArray(u)?m=m+"[]":u=[u],et.forEach(u,function(v){et.isDate(v)?v=v.toISOString():et.isObject(v)&&(v=JSON.stringify(v)),i.push(Wo(m)+"="+Wo(v))}))}),s=i.join("&")}if(s){var l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t},Sl=le;function Jt(){this.handlers=[]}Jt.prototype.use=function(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};Jt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Jt.prototype.forEach=function(t){Sl.forEach(this.handlers,function(o){o!==null&&t(o)})};var $l=Jt,El=le,xl=function(t,n){El.forEach(t,function(s,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=s,delete t[i])})},ar=le;function ut(e,t,n,o,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}ar.inherits(ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var lr=ut.prototype,cr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){cr[e]={value:e}});Object.defineProperties(ut,cr);Object.defineProperty(lr,"isAxiosError",{value:!0});ut.from=function(e,t,n,o,s,i){var l=Object.create(lr);return ar.toFlatObject(e,l,function(u){return u!==Error.prototype}),ut.call(l,e.message,t,n,o,s),l.name=e.name,i&&Object.assign(l,i),l};var bt=ut,ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Se=le;function _l(e,t){t=t||new FormData;var n=[];function o(i){return i===null?"":Se.isDate(i)?i.toISOString():Se.isArrayBuffer(i)||Se.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function s(i,l){if(Se.isPlainObject(i)||Se.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+l);n.push(i),Se.forEach(i,function(u,m){if(!Se.isUndefined(u)){var p=l?l+"."+m:m,v;if(u&&!l&&typeof u=="object"){if(Se.endsWith(m,"{}"))u=JSON.stringify(u);else if(Se.endsWith(m,"[]")&&(v=Se.toArray(u))){v.forEach(function(r){!Se.isUndefined(r)&&t.append(p,o(r))});return}}s(u,p)}}),n.pop()}else t.append(l,o(i))}return s(e),t}var dr=_l,gn,zo;function Cl(){if(zo)return gn;zo=1;var e=bt;return gn=function(n,o,s){var i=s.config.validateStatus;!s.status||!i||i(s.status)?n(s):o(new e("Request failed with status code "+s.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))},gn}var vn,Xo;function kl(){if(Xo)return vn;Xo=1;var e=le;return vn=e.isStandardBrowserEnv()?function(){return{write:function(o,s,i,l,c,u){var m=[];m.push(o+"="+encodeURIComponent(s)),e.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),e.isString(l)&&m.push("path="+l),e.isString(c)&&m.push("domain="+c),u===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(o){var s=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(o){this.write(o,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),vn}var Tl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Al=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Rl=Tl,Ol=Al,fr=function(t,n){return t&&!Rl(n)?Ol(t,n):n},yn,jo;function Il(){if(jo)return yn;jo=1;var e=le,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return yn=function(o){var s={},i,l,c;return o&&e.forEach(o.split(`
  2. `),function(m){if(c=m.indexOf(":"),i=e.trim(m.substr(0,c)).toLowerCase(),l=e.trim(m.substr(c+1)),i){if(s[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?s[i]=(s[i]?s[i]:[]).concat([l]):s[i]=s[i]?s[i]+", "+l:l}}),s},yn}var bn,Yo;function Ll(){if(Yo)return bn;Yo=1;var e=le;return bn=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a"),s;function i(l){var c=l;return n&&(o.setAttribute("href",c),c=o.href),o.setAttribute("href",c),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return s=i(window.location.href),function(c){var u=e.isString(c)?i(c):c;return u.protocol===s.protocol&&u.host===s.host}}():function(){return function(){return!0}}(),bn}var wn,Fo;function Qt(){if(Fo)return wn;Fo=1;var e=bt,t=le;function n(o){e.call(this,o==null?"canceled":o,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),wn=n,wn}var Sn,qo;function Pl(){return qo||(qo=1,Sn=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Sn}var $n,Go;function Ko(){if(Go)return $n;Go=1;var e=le,t=Cl(),n=kl(),o=ir,s=fr,i=Il(),l=Ll(),c=ur,u=bt,m=Qt(),p=Pl();return $n=function(r){return new Promise(function(d,f){var h=r.data,y=r.headers,E=r.responseType,w;function b(){r.cancelToken&&r.cancelToken.unsubscribe(w),r.signal&&r.signal.removeEventListener("abort",w)}e.isFormData(h)&&e.isStandardBrowserEnv()&&delete y["Content-Type"];var g=new XMLHttpRequest;if(r.auth){var S=r.auth.username||"",_=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";y.Authorization="Basic "+btoa(S+":"+_)}var C=s(r.baseURL,r.url);g.open(r.method.toUpperCase(),o(C,r.params,r.paramsSerializer),!0),g.timeout=r.timeout;function A(){if(!!g){var $="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,P=!E||E==="text"||E==="json"?g.responseText:g.response,V={data:P,status:g.status,statusText:g.statusText,headers:$,config:r,request:g};t(function(K){d(K),b()},function(K){f(K),b()},V),g=null}}if("onloadend"in g?g.onloadend=A:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(A)},g.onabort=function(){!g||(f(new u("Request aborted",u.ECONNABORTED,r,g)),g=null)},g.onerror=function(){f(new u("Network Error",u.ERR_NETWORK,r,g,g)),g=null},g.ontimeout=function(){var P=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",V=r.transitional||c;r.timeoutErrorMessage&&(P=r.timeoutErrorMessage),f(new u(P,V.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,r,g)),g=null},e.isStandardBrowserEnv()){var R=(r.withCredentials||l(C))&&r.xsrfCookieName?n.read(r.xsrfCookieName):void 0;R&&(y[r.xsrfHeaderName]=R)}"setRequestHeader"in g&&e.forEach(y,function(P,V){typeof h>"u"&&V.toLowerCase()==="content-type"?delete y[V]:g.setRequestHeader(V,P)}),e.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),E&&E!=="json"&&(g.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&g.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",r.onUploadProgress),(r.cancelToken||r.signal)&&(w=function($){!g||(f(!$||$&&$.type?new m:$),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(w),r.signal&&(r.signal.aborted?w():r.signal.addEventListener("abort",w))),h||(h=null);var L=p(C);if(L&&["http","https","file"].indexOf(L)===-1){f(new u("Unsupported protocol "+L+":",u.ERR_BAD_REQUEST,r));return}g.send(h)})},$n}var En,Jo;function Ml(){return Jo||(Jo=1,En=null),En}var ae=le,Qo=xl,Zo=bt,Nl=ur,Hl=dr,Dl={"Content-Type":"application/x-www-form-urlencoded"};function es(e,t){!ae.isUndefined(e)&&ae.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Bl(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ko()),e}function Ul(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}var Zt={transitional:Nl,adapter:Bl(),transformRequest:[function(t,n){if(Qo(n,"Accept"),Qo(n,"Content-Type"),ae.isFormData(t)||ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return es(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var o=ae.isObject(t),s=n&&n["Content-Type"],i;if((i=ae.isFileList(t))||o&&s==="multipart/form-data"){var l=this.env&&this.env.FormData;return Hl(i?{"files[]":t}:t,l&&new l)}else if(o||s==="application/json")return es(n,"application/json"),Ul(t);return t}],transformResponse:[function(t){var n=this.transitional||Zt.transitional,o=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,i=!o&&this.responseType==="json";if(i||s&&ae.isString(t)&&t.length)try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Zo.from(l,Zo.ERR_BAD_RESPONSE,this,null,this.response):l}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ml()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ae.forEach(["delete","get","head"],function(t){Zt.headers[t]={}});ae.forEach(["post","put","patch"],function(t){Zt.headers[t]=ae.merge(Dl)});var io=Zt,Vl=le,Wl=io,zl=function(t,n,o){var s=this||Wl;return Vl.forEach(o,function(l){t=l.call(s,t,n)}),t},xn,ts;function pr(){return ts||(ts=1,xn=function(t){return!!(t&&t.__CANCEL__)}),xn}var ns=le,_n=zl,Xl=pr(),jl=io,Yl=Qt();function Cn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yl}var Fl=function(t){Cn(t),t.headers=t.headers||{},t.data=_n.call(t,t.data,t.headers,t.transformRequest),t.headers=ns.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ns.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var n=t.adapter||jl.adapter;return n(t).then(function(s){return Cn(t),s.data=_n.call(t,s.data,s.headers,t.transformResponse),s},function(s){return Xl(s)||(Cn(t),s&&s.response&&(s.response.data=_n.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})},ge=le,hr=function(t,n){n=n||{};var o={};function s(p,v){return ge.isPlainObject(p)&&ge.isPlainObject(v)?ge.merge(p,v):ge.isPlainObject(v)?ge.merge({},v):ge.isArray(v)?v.slice():v}function i(p){if(ge.isUndefined(n[p])){if(!ge.isUndefined(t[p]))return s(void 0,t[p])}else return s(t[p],n[p])}function l(p){if(!ge.isUndefined(n[p]))return s(void 0,n[p])}function c(p){if(ge.isUndefined(n[p])){if(!ge.isUndefined(t[p]))return s(void 0,t[p])}else return s(void 0,n[p])}function u(p){if(p in n)return s(t[p],n[p]);if(p in t)return s(void 0,t[p])}var m={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u};return ge.forEach(Object.keys(t).concat(Object.keys(n)),function(v){var r=m[v]||i,a=r(v);ge.isUndefined(a)&&r!==u||(o[v]=a)}),o},kn,os;function mr(){return os||(os=1,kn={version:"0.27.2"}),kn}var ql=mr().version,Ue=bt,ao={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){ao[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var ss={};ao.transitional=function(t,n,o){function s(i,l){return"[Axios v"+ql+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return function(i,l,c){if(t===!1)throw new Ue(s(l," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!ss[l]&&(ss[l]=!0,console.warn(s(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,c):!0}};function Gl(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),s=o.length;s-- >0;){var i=o[s],l=t[i];if(l){var c=e[i],u=c===void 0||l(c,i,e);if(u!==!0)throw new Ue("option "+i+" must be "+u,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}var Kl={assertOptions:Gl,validators:ao},gr=le,Jl=ir,rs=$l,is=Fl,en=hr,Ql=fr,vr=Kl,tt=vr.validators;function dt(e){this.defaults=e,this.interceptors={request:new rs,response:new rs}}dt.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=en(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var o=n.transitional;o!==void 0&&vr.assertOptions(o,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1);var s=[],i=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(n)===!1||(i=i&&a.synchronous,s.unshift(a.fulfilled,a.rejected))});var l=[];this.interceptors.response.forEach(function(a){l.push(a.fulfilled,a.rejected)});var c;if(!i){var u=[is,void 0];for(Array.prototype.unshift.apply(u,s),u=u.concat(l),c=Promise.resolve(n);u.length;)c=c.then(u.shift(),u.shift());return c}for(var m=n;s.length;){var p=s.shift(),v=s.shift();try{m=p(m)}catch(r){v(r);break}}try{c=is(m)}catch(r){return Promise.reject(r)}for(;l.length;)c=c.then(l.shift(),l.shift());return c};dt.prototype.getUri=function(t){t=en(this.defaults,t);var n=Ql(t.baseURL,t.url);return Jl(n,t.params,t.paramsSerializer)};gr.forEach(["delete","get","head","options"],function(t){dt.prototype[t]=function(n,o){return this.request(en(o||{},{method:t,url:n,data:(o||{}).data}))}});gr.forEach(["post","put","patch"],function(t){function n(o){return function(i,l,c){return this.request(en(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}dt.prototype[t]=n(),dt.prototype[t+"Form"]=n(!0)});var Zl=dt,Tn,as;function ec(){if(as)return Tn;as=1;var e=Qt();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(l){o=l});var s=this;this.promise.then(function(i){if(!!s._listeners){var l,c=s._listeners.length;for(l=0;l<c;l++)s._listeners[l](i);s._listeners=null}}),this.promise.then=function(i){var l,c=new Promise(function(u){s.subscribe(u),l=u}).then(i);return c.cancel=function(){s.unsubscribe(l)},c},n(function(l){s.reason||(s.reason=new e(l),o(s.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]},t.prototype.unsubscribe=function(o){if(!!this._listeners){var s=this._listeners.indexOf(o);s!==-1&&this._listeners.splice(s,1)}},t.source=function(){var o,s=new t(function(l){o=l});return{token:s,cancel:o}},Tn=t,Tn}var An,ls;function tc(){return ls||(ls=1,An=function(t){return function(o){return t.apply(null,o)}}),An}var Rn,cs;function nc(){if(cs)return Rn;cs=1;var e=le;return Rn=function(n){return e.isObject(n)&&n.isAxiosError===!0},Rn}var us=le,oc=or,Ht=Zl,sc=hr,rc=io;function yr(e){var t=new Ht(e),n=oc(Ht.prototype.request,t);return us.extend(n,Ht.prototype,t),us.extend(n,t),n.create=function(s){return yr(sc(e,s))},n}var he=yr(rc);he.Axios=Ht;he.CanceledError=Qt();he.CancelToken=ec();he.isCancel=pr();he.VERSION=mr().version;he.toFormData=dr;he.AxiosError=bt;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=tc();he.isAxiosError=nc();eo.exports=he;eo.exports.default=he;(function(e){e.exports=eo.exports})(nr);const br=Za(nr.exports),ds={},On=document.createElement("div"),ic=async e=>{const t=await Qa(Object.assign({"./svg/a-connect-dis.svg":()=>fe(()=>import("./a-connect-dis.7119640b.js"),[],import.meta.url),"./svg/a-connect.svg":()=>fe(()=>import("./a-connect.927c87c2.js"),[],import.meta.url),"./svg/data_revise_n.svg":()=>fe(()=>import("./data_revise_n.df36300c.js"),[],import.meta.url),"./svg/dianwei.svg":()=>fe(()=>import("./dianwei.b603c40b.js"),[],import.meta.url),"./svg/m-r.svg":()=>fe(()=>import("./m-r.f0cd856b.js"),[],import.meta.url),"./svg/point-s.svg":()=>fe(()=>import("./point-s.62bf903a.js"),[],import.meta.url),"./svg/state_gps.svg":()=>fe(()=>import("./state_gps.09feec42.js"),[],import.meta.url),"./svg/weitiao.svg":()=>fe(()=>import("./weitiao.4b10909e.js"),[],import.meta.url),"./svg/zoom_n.svg":()=>fe(()=>import("./zoom_n.c1311408.js"),[],import.meta.url)}),`./svg/${e}.svg`),n=await br.get(t.default);On.innerHTML=n.data;const o=On.querySelector("svg");if(o){o.setAttribute("width","1em"),o.setAttribute("height","1em");const s=o.querySelectorAll("path");Array.from(s).forEach(i=>{i.setAttribute("fill","currentColor")})}return On.innerHTML},ac=e=>ds[e]||(ds[e]=ic(e)),lc=["innerHTML"],cc=me({__name:"index",props:{type:null,fontSize:{default:"14px"},color:{default:"#fff"},class:null,style:null},setup(e){const t=e,n=I("");return pe(()=>{ac(t.type).then(o=>n.value=o)}),(o,s)=>(x(),k("i",{class:j(e.class),style:oe(e.style)},[H("i",{innerHTML:n.value},null,8,lc),N(o.$slots,"default",{},void 0,!0)],6))}});const uc=de(cc,[["__scopeId","data-v-e45116b7"]]),dc={key:0,class:"tip"},fc={name:"ui-tip"},pc=Object.assign(fc,{props:{tip:{type:String},tipH:{type:String,default:"center"},tipV:{type:String,default:"bottom"},foreShow:{type:Boolean}},setup(e){const t=e,n=U(()=>({"fore-show":t.foreShow,["tip-h-"+t.tipH]:!0,["tip-v-"+t.tipV]:!0}));return(o,s)=>(x(),k("div",{class:j([O(n),"tip-layout"])},[N(o.$slots,"default"),e.tip&&O(we).isPc&&!O(we).isTablet?(x(),k("p",dc,X(e.tip),1)):B("",!0)],2))}});const hc={key:0,class:"tip"},mc={key:0,class:"tip"},gc={name:"ui-icon"},ue=Object.assign(gc,{props:{svg:{type:Boolean},type:{type:String},size:{type:[Number,String]},color:{type:String},small:{type:Boolean},ctrl:{type:Boolean},medium:{type:Boolean},big:{type:Boolean},disabled:{type:Boolean},tip:{type:String},tipH:{type:String,default:"center"},tipV:{type:String,default:"bottom"},foreShow:{type:Boolean}},emits:["click"],setup(e,{expose:t,emit:n}){const o=e,s=U(()=>({"font-size":kt(o.size),color:o.color})),i=U(()=>{const c={small:o.small,medium:o.medium,big:o.big,disabled:o.disabled,"fore-show":o.foreShow,["tip-h-"+o.tipH]:!0,["tip-v-"+o.tipV]:!0,["fun-ctrl"]:o.ctrl};return o.type?{...c,[`icon-${o.type}`]:o.type}:c}),l=I();return t(vt({vm:l})),(c,u)=>e.svg?(x(),Z(uc,{key:0,class:j(["icon ui-kankan-icon",O(i)]),style:oe(O(s)),type:e.type,onClick:u[0]||(u[0]=m=>n("click",m))},{default:Y(()=>[N(c.$slots,"default"),e.tip&&O(we).isPc&&!O(we).isTablet?(x(),k("p",hc,X(e.tip),1)):B("",!0)]),_:3},8,["class","style","type"])):(x(),k("i",{key:1,class:j(["iconfont ui-kankan-icon icon",O(i)]),style:oe(O(s)),onClick:u[1]||(u[1]=m=>n("click",m)),ref_key:"vm",ref:l},[N(c.$slots,"default"),e.tip&&O(we).isPc&&!O(we).isTablet?(x(),k("p",mc,X(e.tip),1)):B("",!0)],6))}}),vc={name:"ui-message"},Ce=Object.assign(vc,{props:{msg:{type:String},type:{type:String},time:{type:Number},destroy:{type:Function},index:{}},setup(e){const t=e,n=It(),o={success:"state_s",warning:"state_e",error:"state_f"},s=I(!1);return t.time&&setTimeout(()=>{s.value=!1,setTimeout(t.destroy,500)},t.time),Ot(()=>Te(()=>s.value=!0)),(i,l)=>(x(),Z(Rt,{to:"body"},[Q(Je,{name:"fade"},{default:Y(()=>[s.value?(x(),k("div",{key:0,class:j(["ui-message",e.type]),style:oe({zIndex:O(n),marginTop:`${e.index.value*60}px`})},[Q(O(ue),{type:o[e.type],class:"icon"},null,8,["type"]),H("p",null,X(e.msg),1)],6)):B("",!0)]),_:1})]))}}),In=["success","warning","error"];Ce.use=function(t){const n=I([]);Ce.show=function(i){Pe(i)==="String"&&(i={msg:i}),i.time=i.time||3e3,i.type=In.includes(i.type)?i.type:In[0];const l=I(null),c=U(()=>l.value?n.value.indexOf(l):0),u=()=>{l.value.destroy(),n.value=n.value.filter(m=>m!==l)};return l.value=lt(Ce,{app:t,props:{...i,index:c,destroy:u}}),n.value.push(l),i};const o=[],s=i=>{console.log(i),i===null?i="null":typeof i=="string"&&(i={msg:"string",type:"warning"});const l=i.type+i.msg;if(!o.includes(l)){const c=o.length;o[c]=l,Ce.show(i),setTimeout(()=>{o.splice(c,1)},i.time+1e3)}};for(const i of In)Ce[i]=l=>(Pe(l)==="String"&&(l={msg:l,type:i,time:3e3}),s(l))};const yc={name:"ui-size-animation"},wr=Object.assign(yc,{props:{attr:{type:String,default:"height"},animationStyle:{type:String,default:"height"},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,[o,s,i,l,c,u,m]=Da(n.defaultOpen,n.attr),p=I(!1);return pe(()=>{const v=o.value;if(v){const r=()=>p.value=!0,a=()=>p.value=!1;return v.addEventListener("transitionstart",r),v.addEventListener("transitionend",a),()=>{v.removeEventListener("transitionstart",r),v.removeEventListener("transitionend",a)}}}),t({changeShow:(v,...r)=>(c!==v&&(p.value=!0),s(v,...r)),show:c,animation:p,ready:u,refer:m}),(v,r)=>(x(),k("div",{class:j(["ui-size-animation",{ready:O(u),show:O(i)!==0,[e.animationStyle]:e.animationStyle}]),style:oe(O(l)&&{"max-height":O(i)+"px"}),ref_key:"contentRef",ref:o},[N(v.$slots,"default")],6))}}),bc={class:"ui-tree-content"},wc=["onClick"],Sc={class:"ui-tree-content"},$c={key:0,class:"ui-tree-item-child"},Ec={name:"ui-tree"},xc=Object.assign(Ec,{props:{data:{type:Array,require:!0},locals:{type:Array,default:()=>[]},level:{type:Number,default:1},"max-tab":{type:Number},open:{type:Boolean},stroke:{type:Boolean},style:{type:[Object,String]}},setup(e,{emit:t}){const n=e,o=U(()=>n.data.map(u=>I(null))),s=u=>{var m;for(let p of o.value)p&&((m=p.value)==null||m.changeShow(u))},i=()=>{var u;for(let m of o.value)m&&((u=m.value)==null||u.refer()),s(!0),t("refer")};let l=I({isActive:!0,isUpdate:!1}),c=n.data.map(u=>u.children&&u.children.length);return Ge(n.data,()=>{const u=n.data.map(m=>m.children&&m.children.length);Zs(c,u)&&(c=u,l.value.isUpdate=!0,i())}),pe(()=>{l.value.isActive&&l.value.isUpdate&&(i(),l.value.isUpdate=!1)}),Jn(()=>l.value.isActive=!0),Hs(()=>l.value.isActive=!1),(u,m)=>{const p=ve("ui-tree");return x(),k("ul",{class:j(["ui-tree",{children:e.level>1,stroke:e.stroke,flat:e.level>u.maxTab}]),style:oe(e.style)},[(x(!0),k(ne,null,xe(e.data,(v,r)=>{var a,d;return x(),k(ne,{key:v.id||r},[v.children&&v.children.length?(x(),k("li",{key:0,class:j(["ui-tree-item",{"not-last-un-child":e.data.length-1!==r,alone:e.data.length===1,put:O(o)[r].value&&!O(o)[r].value.show}])},[H("div",bc,[H("span",{class:j(["ui-tree-ctrl",{open:(d=(a=O(o)[r])==null?void 0:a.value)==null?void 0:d.show}]),onClick:f=>O(o)[r].value.changeShow()},null,10,wc),N(u.$slots,"default",{row:v,locals:[...e.locals,r]})]),Q(O(wr),{animationStyle:"scale",ref_for:!0,ref:O(o)[r],class:j([{ready:O(o)[r].ready},"ui-tree-item-child"]),defaultOpen:e.open},{default:Y(()=>[Q(p,{style:oe(e.style),stroke:e.stroke,data:v.children,"max-tab":u.maxTab,level:e.level+1,onRefer:i,open:e.open,locals:[...e.locals,r]},{default:Y(f=>[N(u.$slots,"default",mt(gt(f)))]),_:2},1032,["style","stroke","data","max-tab","level","open","locals"])]),_:2},1032,["class","defaultOpen"])],2)):(x(),k("li",{key:1,class:j(["ui-tree-item un-children",{last:r===e.data.length-1}])},[H("div",Sc,[N(u.$slots,"default",{row:v,locals:[...e.locals,r]})]),e.stroke?(x(),k("div",$c)):B("",!0)],2))],64)}),128))],6)}}}),_c={name:"ui-button"},Cc=Object.assign(_c,{props:{type:{type:String,default:"normal"},color:{type:String},width:{type:[String,Number]},icon:{type:String}},setup(e){const t=e,n="customize",o=U(()=>t.color?n:t.type),s=U(()=>{const i={width:kt(t.width)};return o.value===n&&(i["--color"]=t.color),i});return(i,l)=>(x(),k("button",{class:j(["ui-button",O(o)]),style:oe(O(s))},[e.icon?(x(),Z(ue,{key:0,type:e.icon,class:"ui-button-icon"},null,8,["type"])):B("",!0),N(i.$slots,"default")],6))}}),Sr=Symbol("group-children"),kc={name:"ui-group"},Tc=Object.assign(kc,{props:{title:String,border:Boolean,borderTop:Boolean,borderBottom:Boolean,control:Boolean,show:Boolean},setup(e){const t=e,n=I(null),o=U(()=>({"border-bottom":t.borderBottom||t.border,"border-top":t.borderTop||t.border})),s=I([]);return at(Sr,s),pe(()=>{n.value&&n.value.changeShow(t.show)}),Ge(s,()=>{n.value&&n.value.refer()}),(i,l)=>(x(),k("div",{class:j(["ui-group",{control:e.control}])},[i.$slots.header?(x(),k("div",{key:1,class:j(["group-title",!i.$slots.default&&O(o)])},[N(i.$slots,"header"),i.$slots.icon||e.control?(x(),k("span",{key:0,class:j(["group-icon",n.value&&{show:n.value.show}]),onClick:l[1]||(l[1]=c=>e.control&&n.value.changeShow())},[i.$slots.icon?N(i.$slots,"icon",{key:0}):B("",!0),e.control?(x(),Z(O(ue),{key:1,class:"group-control-icon",type:"pull-down",size:"12px",ctrl:""})):B("",!0)],2)):B("",!0)],2)):(x(),k(ne,{key:0},[t.title?(x(),k("h3",{key:0,class:j(["group-title",!i.$slots.default&&O(o)])},[ie(X(t.title)+" ",1),i.$slots.icon||e.control?(x(),k("span",{key:0,class:j(["group-icon",n.value&&{show:n.value.show}]),onClick:l[0]||(l[0]=c=>e.control&&n.value.changeShow())},[i.$slots.icon?N(i.$slots,"icon",{key:0}):(x(),Z(O(ue),{key:1,type:"pull-down",size:"12px",ctrl:""}))],2)):B("",!0)],2)):B("",!0)],64)),i.$slots.default?(x(),k(ne,{key:2},[e.control?(x(),Z(O(wr),{key:0,ref_key:"animationRef",ref:n,class:j(["group-content",O(o)])},{default:Y(()=>[N(i.$slots,"default")]),_:3},8,["class"])):(x(),k("div",{key:1,class:j(["group-content",O(o)])},[N(i.$slots,"default")],2))],64)):B("",!0)],2))}}),Ac={class:"group-option"},Rc={key:0,class:"group-option-label"},Oc={name:"ui-group-option"},Ic=Object.assign(Oc,{props:{label:String},setup(e){const t=e,n=We(Sr),o=Bs();return n&&n.value&&(Ds(()=>n.value=[...n.value,o]),yt(()=>{const s=n.value.indexOf(o);~s&&(n.value.splice(s,1),n.value=[...n.value])})),(s,i)=>(x(),k("div",Ac,[t.label?(x(),k("span",Rc,[ie(X(t.label)+" ",1),N(s.$slots,"icon",{class:"icon"})])):B("",!0),N(s.$slots,"default")]))}}),tn={name:{type:String},disabled:{type:[Boolean]},modelValue:{required:!1,default:""},placeholder:{require:!1,default:q.t("sys.plcInput")}},lo={...tn,width:{type:String,default:"100px"},height:{type:String,default:"34px"}},co={...tn,placeholder:{require:!1,default:q.t("sys.plcSelect")},othPlaceholder:{require:!1,default:""},accept:{type:String},scale:{type:String},multiple:{type:Boolean},preview:{type:Boolean},maxSize:{type:Number},maxLen:{type:Number}},nn={...tn,width:{type:[Number,String]},height:{type:[Number,String]}},on={...nn,label:{type:String,required:!1}},uo={...on,icon:{type:String}},Ie={...tn,maxlength:{type:[String,Number]},placeholder:{type:String,default:q.t("sys.plcInput")},readonly:{type:Boolean,default:!1},other:{type:Object,default:()=>({})},right:{type:Boolean}},Tt=["update:modelValue","focus","blur","click","keydown"],$r=["update:modelValue","focus","blur"],sn={...Ie,rich:{type:Boolean}},fo={...sn,onUpdatePos:Function},rn={...Ie,isTransform:{type:Boolean,require:!1},stopEl:{type:String,require:!1},floatingClass:{type:String,require:!1},showOptions:{type:Boolean,require:!1},placeholder:{...Ie.placeholder,default:q.t("sys.plcSelect")},unplaceholder:{...Ie.placeholder,default:q.t("sys.inSelect")},options:{type:Array,default:()=>[]},dire:{type:String,default:"bottom"}},po={...rn,unplaceholder:{...Ie.placeholder,default:q.t("sys.unSearch")}},ct={...Ie,inInput:{type:Boolean,default:!0},ctrl:{type:Boolean,default:!0},step:{type:Number,require:!0,default:1},min:{type:[Number,String],require:!1},max:{type:[Number,String],require:!1}},ho={...ct,min:{...ct.min,require:!0},min:{...ct.min,require:!0},input:{type:Boolean,default:!0}},Dt={...on,...uo,...rn,...Ie,...ho,...ct,...nn,...sn,...co,...po,...fo,...lo};for(let e in Dt)Dt[e]={...Dt[e],default:void 0};const fs={text:Tt,select:$r,search:Tt},Lc={...Dt,type:{type:String,required:!0,default:"text"},width:{type:[Number,String]},height:{type:[Number,String]},require:{type:Boolean},error:{type:String},disabled:{type:Boolean}},Pc=["name","disabled","id","checked"],Mc=H("span",{class:"replace"},null,-1),Nc=["for"],Hc={__name:"radio",props:uo,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Kt(4);return(s,i)=>(x(),k(ne,null,[H("div",{class:"input radio",style:oe({width:s.width,height:s.height})},[H("input",{name:s.name,disabled:s.disabled,id:O(o),type:"radio",class:"replace-input",checked:n.modelValue,onChange:i[0]||(i[0]=l=>t("update:modelValue",l.target.checked))},null,40,Pc),Mc],4),n.label||n.icon?(x(),k("label",{key:0,class:"label",for:O(o)},[n.icon?(x(),Z(O(ue),{key:0,type:n.icon},null,8,["type"])):B("",!0),ie(" "+X(n.label),1)],8,Nc)):B("",!0)],64))}},Dc=["id","checked"],Bc={class:"replace"},Uc=["for"],Vc={__name:"checkbox",props:on,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Kt(4);return(s,i)=>(x(),k(ne,null,[H("div",{class:"input checkbox",style:oe({width:s.width,height:s.height})},[H("input",{id:O(o),type:"checkbox",class:"replace-input",checked:n.modelValue,onInput:i[0]||(i[0]=l=>t("update:modelValue",l.target.checked))},null,40,Dc),H("span",Bc,[Q(O(ue),{type:"checkbox",size:s.width>s.height?s.height:s.width},null,8,["size"])])],4),n.label?(x(),k("label",{key:0,class:"label",for:O(o)},X(n.label),9,Uc)):B("",!0)],64))}},Wc={key:0,class:"is-hidden"},zc=H("input",{type:"text",class:"is-hidden",disabled:""},null,-1),Xc=H("input",{type:"password",class:"is-hidden",disabled:""},null,-1),jc=[zc,Xc],Yc={key:1,class:"pre-icon"},Fc=["type","value","placeholder","readonly","maxlength"],qc={class:"input-value"},Gc={key:2,class:"retouch"},Kc={key:0,class:"len"},mo={__name:"text",props:{type:{type:String,default:"text"},...Ie},emits:[...Tt],setup(e,{expose:t,emit:n}){const o=e,s=I(null),i=I(null),l=m=>{n("keydown",m)},c=m=>{n("update:modelValue",m.target.value),Te(()=>{m.target.value!==o.modelValue.toString()&&(m.target.value=o.modelValue.toString())})},u=()=>{n("focus")};return t({root:s,input:i}),(m,p)=>(x(),k("div",{onClick:p[1]||(p[1]=v=>n("click",v)),class:j(["input text",{suffix:m.$slots.icon||m.maxlength,disabled:m.disabled,readonly:m.readonly,right:m.right,"pre-suffix":m.$slots.preIcon}]),ref_key:"textRef",ref:s},[e.type==="password"?(x(),k("div",Wc,jc)):B("",!0),m.$slots.preIcon?(x(),k("span",Yc,[N(m.$slots,"preIcon")])):B("",!0),H("input",Ke({class:"ui-text",type:e.type,value:m.$slots.value?"":m.modelValue,autocomplete:"off",onInput:c,placeholder:o.placeholder,readonly:m.readonly,maxlength:o.maxlength,onFocus:u,onBlur:p[0]||(p[0]=v=>n("blur")),onKeydown:l,ref_key:"inputRef",ref:i},m.other),null,16,Fc),H("div",qc,[N(m.$slots,"value")]),m.$slots.icon||o.maxlength?(x(),k("span",Gc,[N(m.$slots,"icon"),o.maxlength?(x(),k("span",Kc,[H("span",null,X(m.modelValue.length),1),ie(" / "+X(m.maxlength),1)])):B("",!0)])):B("",!0),N(m.$slots,"default")],2))}},Jc={name:"ui-floating"},an=Object.assign(Jc,{props:{mount:{require:!0,default:document.body},isTransform:{type:Boolean},class:{type:String},refer:{type:Object},dire:{type:String},width:{type:[Number,String]},height:{type:[Number,String]}},emits:["leave","enter","mouseenter","mouseleave"],setup(e,{expose:t,emit:n}){const o=e,s={center:"center",right:"right",left:"left"},i={center:"center",top:"top",bottom:"bottom"},l="-",c=I(),u=U(()=>{const b=o.dire||`${i.bottom}${l}${s.left}`,g=(C,A)=>Object.keys(C).some(R=>C[R]===A);let[S,_]=b.split(l);return(!S||!g(s,S))&&(S=s.left),(!_||!g(i,_))&&(_=i.bottom),[S,_]}),m=(b,g)=>{if(b!==void 0){if(typeof b=="number")return b?b<=1&b>=0?g*b:b:void 0;if(b.includes("px"))return m(parseFloat(b),g);if(b.includes("%"))return m(parseFloat(b)/100,g)}},p=U(()=>o.refer&&m(o.width,o.refer.offsetWidth)),v=U(()=>o.refer&&m(o.height,o.refer.offsetHeight)),r=vt({x:0,y:0}),a=U(()=>o.refer?Ba(o.refer,o.mount):[]);Ge([a,o],([b],[g])=>{g&&g.forEach(S=>S.removeEventListener("scroll",h)),b.forEach(S=>S.addEventListener("scroll",h)),o.refer&&setTimeout(()=>h())},{immediate:!0});const d=It(),f=U(()=>({width:p.value&&p.value+"px",height:v.value&&v.value+"px",left:r.x+"px",top:r.y+"px",zIndex:d})),h=()=>{const b=Ua(o.refer,o.mount,!1,o.isTransform);let g;o.isTransform?g={x:0,y:0}:g=a.value.reduce((A,R)=>(A.y+=R.scrollTop,A.x+=R.scrollLeft,A),{x:0,y:0});const[S,_]=u.value,C={x:b.x-g.x,y:b.y-g.y};switch(S){case s.left:r.x=C.x;break;case s.right:r.x=C.x+b.width;break;case s.center:r.x=C.x+b.width/2;break}switch(_){case i.top:r.y=C.y;break;case i.bottom:r.y=C.y+b.height;break;case i.center:r.y=C.y+b.height/2;break}},y=b=>o.refer&&o.refer.contains(b.target)||c.value&&c.value.contains(b.target);let E=!1;const w=b=>{const g=y(b);g!==E&&(n(g?"mouseenter":"mouseleave"),E=g)};return window.addEventListener("resize",h),document.documentElement.addEventListener("mousemove",w),yt(()=>{a.value.forEach(b=>b.removeEventListener("scroll",h)),window.removeEventListener("resize",h),document.documentElement.removeEventListener("mousemove",w)}),Jn(()=>{o.refer&&h()}),t({vmRef:c,updateLocation:h}),(b,g)=>(x(),Z(Rt,{to:e.mount},[H("div",{ref_key:"vmRef",ref:c,class:j(["ui-floating",o.class]),style:oe(O(f)),onMouseenter:g[0]||(g[0]=S=>n("enter")),onMouseleave:g[1]||(g[1]=S=>n("leave"))},[N(b.$slots,"default")],38)],8,["to"]))}}),Qc={class:"select-replace"},Zc={key:0,class:"select-options"},eu=["onMousedown"],tu={key:1,class:"un-data"},Er={__name:"select",props:{...rn,readonly:{type:Boolean,default:!0},className:{type:String},labelValue:{type:String,require:!1},dbhide:{type:Boolean,default:!0}},emits:$r,setup(e,{expose:t,emit:n}){const o=e,s=I(null),i=I(!1),l=document.body,c=U(()=>o.options.find(({value:h})=>h===o.modelValue)),u=U(()=>c.value?c.value.label:""),m=()=>{setTimeout(()=>{var h,y;(y=(h=s.value)==null?void 0:h.input)==null||y.focus()})};pe(()=>{n(i.value?"focus":"blur")});const p=(h,y)=>{var E,w;o.stopEl&&o.stopEl.toUpperCase()===h.target.tagName.toUpperCase()?m():(v=0,n("update:modelValue",y.value),(w=(E=s.value)==null?void 0:E.input)==null||w.focus(),i.value=!1)};let v=0;const r=()=>{v++,i.value&&o.dbhide&&!(v%2)?(i.value=!1,s.value.input.blur()):a()},a=()=>{var h,y;clearTimeout(d),i.value=!0,(y=(h=s.value)==null?void 0:h.input)==null||y.focus()};let d;const f=()=>{d=setTimeout(()=>{i.value=!1,v=0,n("blur")},16)};return t({vmRef:s,animationRef:{changeShow(h){i.value=h}}}),(h,y)=>(x(),k(ne,null,[Q(mo,{class:j(["select ready",{focus:i.value,[e.className]:e.className}]),ref_key:"vmRef",ref:s,modelValue:typeof e.labelValue=="string"?e.labelValue:O(u),"onUpdate:modelValue":y[0]||(y[0]=E=>n("update:modelValue",E)),width:o.width,height:o.height,readonly:e.readonly,placeholder:O(u)?"":o.placeholder,onBlur:f,onFocus:a,onClick:r},ht({icon:Y(()=>[h.$slots.icon?N(h.$slots,"icon",{key:1}):(x(),Z(O(ue),{key:0,type:"pull-down",small:""}))]),_:2},[h.$slots.preIcon?{name:"preIcon",fn:Y(()=>[N(h.$slots,"preIcon")])}:void 0,h.$slots.value&&O(c)?{name:"value",fn:Y(()=>[N(h.$slots,"value",{option:O(c)})])}:void 0]),1032,["class","modelValue","width","height","readonly","placeholder"]),Q(an,{mount:O(l),refer:s.value&&s.value.root,width:"100%",class:j([{show:i.value||o.showOptions,[`dire-${h.dire}`]:!0,...h.floatingClass?{[h.floatingClass]:!0}:{}},"select-float"]),isTransform:h.isTransform,dire:h.dire==="top"?"left-top":"left-bottom"},{default:Y(()=>[N(h.$slots,"floating-pre"),H("div",Qc,[h.$slots["floating-replace"]?(x(),k("div",{key:1,class:"floating-replace",onMousedown:m},[N(h.$slots,"floating-replace")],32)):(x(),k("ul",Zc,[o.options.length?(x(!0),k(ne,{key:0},xe(o.options,E=>(x(),k("li",{class:j(["select-options-atom",{active:o.modelValue===E.value}]),key:E.value,onMousedown:w=>p(w,E)},[h.$slots.option?N(h.$slots,"option",{key:0,raw:E,active:o.modelValue===E.value}):(x(),k(ne,{key:1},[ie(X(E.label),1)],64))],42,eu))),128)):(x(),k("li",tu,X(h.unplaceholder),1))]))])]),_:3},8,["mount","refer","class","isTransform","dire"])],64))}},nu={class:"ctrls"},xr={__name:"number",props:ct,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=p=>!(Pe(p)==="Number"?isNaN(p):isNaN(Number(p))),s=I(n.modelValue);pe(()=>{s.value=n.modelValue});const i=p=>{s.value=p;const v=Number(p);!isNaN(v)&&v!==n.modelValue&&m(v)},l=I(0),c=()=>{n.modelValue&&(s.value=n.modelValue.toString()),l.value++},u=p=>(p=Number(p),isNaN(p)?n.min||0:p),m=p=>{if(p=u(p),o(n.min)){let v=Number(n.min);p=p<v?v:p}if(o(n.max)){let v=Number(n.max);p=p>v?v:p}t("update:modelValue",p)};return(p,v)=>(x(),Z(O(mo),{key:l.value,class:j(["number ready",{ctrl:p.ctrl}]),type:"number",right:p.right,modelValue:s.value,placeholder:p.placeholder,"onUpdate:modelValue":i,other:{min:p.min,max:p.max,step:p.step},onBlur:c,readonly:!p.inInput},ht({_:2},[xe(p.$slots,(r,a)=>({name:a,fn:Y(d=>[N(p.$slots,a,mt(gt(d)))])})),p.ctrl?{name:"icon",fn:Y(()=>[H("div",nu,[Q(O(ue),{type:"up-a",ctrl:"",class:"up",onClick:v[0]||(v[0]=r=>m(u(p.modelValue)+p.step))}),Q(O(ue),{type:"d-r",ctrl:"",class:"down",onClick:v[1]||(v[1]=r=>m(u(p.modelValue)-p.step))})])])}:void 0]),1032,["class","right","modelValue","placeholder","other","readonly"]))}},ou={class:"input range"},su={__name:"range",props:ho,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=h=>{const y=Math.ceil(1/n.step),E=Math.round(h*y),w=n.min*y,b=n.max*y;return(E>=b?b:E<=w?w:E-E%(y*n.step))/y},s=U({get(){const h=(Number(n.modelValue)-n.min)/(n.max-n.min);return h>n.max?n.max:h},set(h){const y=n.max-n.min;t("update:modelValue",o(n.min+y*h))}}),i=U(()=>`${s.value*100}%`),l=h=>{t("update:modelValue",o(h))},c={slide:0,default:1},u=I(c.default),m=I(0),p=I(null),v=I(0),r=I(null);Ot(()=>{m.value=p.value.offsetWidth,v.value=r.value.offsetWidth});const a=h=>{s.value=h.offsetX/v.value},d=document.documentElement,f=h=>{h.preventDefault();const y=h.clientX||h.touches[0].clientX,E=s.value;u.value=c.slide;const w=g=>{g.preventDefault();const S=(g.clientX||g.touches[0].clientX)-y,_=E+S/m.value;s.value=_<0?0:_>1?1:_},b=g=>{u.value=c.default,we.isPc&&!we.isTablet?(d.removeEventListener("mousemove",w,!1),d.removeEventListener("mouseup",b,!1)):(d.removeEventListener("touchmove",w),d.removeEventListener("touchend",b))};we.isPc&&!we.isTablet?(d.addEventListener("mousemove",w,!1),d.addEventListener("mouseup",b,!1)):(d.addEventListener("touchmove",w,{passive:!1}),d.addEventListener("touchend",b,{passive:!1}))};return(h,y)=>(x(),k("div",ou,[H("div",{class:j(["range-content",{animation:u.value===c.default}]),style:oe({"--percentage":O(i),"--slideSize":O(we).isPC&&!O(we).isTablet?"calc(var(--height) + 8px)":"calc(var(--height) + 14px)"}),onClick:a,ref_key:"rangeRef",ref:r},[H("div",{class:"range-locus",ref_key:"locusRef",ref:p},[H("span",{class:"range-slide",onClick:y[0]||(y[0]=js(()=>{},["stop"])),onTouchstart:f,onMousedown:f},null,32)],512)],6),n.input?(x(),Z(xr,{key:0,ctrl:h.ctrl,modelValue:h.modelValue,"onUpdate:modelValue":l,min:h.min,max:h.max,step:h.step,class:"range-text"},ht({_:2},[xe(h.$slots,(E,w)=>({name:w,fn:Y(b=>[N(h.$slots,w,mt(gt(b)))])}))]),1032,["ctrl","modelValue","min","max","step"])):B("",!0)]))}},ru=["value","placeholder","readonly","maxlength"],iu=H("span",{class:"replace"},null,-1),au={key:0,class:"retouch"},lu={key:0,class:"len"},cu={__name:"textarea",props:{type:{type:String,default:"text"},...sn},emits:["update:modelValue","focus","blur","click"],setup(e,{expose:t,emit:n}){const o=e;console.log(o);const s=I(null),i=I(null),l=c=>{n("update:modelValue",c.target.value),Te(()=>{c.target.value!==o.modelValue.toString()&&(c.target.value=o.modelValue.toString())})};return t({root:s,input:i}),(c,u)=>(x(),k("div",{class:j(["input textarea",{suffix:c.$slots.icon||c.maxlength,disabled:c.disabled,right:c.right}]),ref_key:"textRef",ref:s},[ie(X(c.modelValue)+" ",1),H("textarea",Ke({class:"ui-text",value:c.modelValue,onInput:l,placeholder:o.placeholder,readonly:c.readonly,maxlength:o.maxlength,onClick:u[0]||(u[0]=m=>n("click")),onFocus:u[1]||(u[1]=m=>n("focus")),onBlur:u[2]||(u[2]=m=>n("blur")),ref_key:"inputRef",ref:i},c.other),null,16,ru),iu,c.$slots.icon||o.maxlength?(x(),k("span",au,[N(c.$slots,"icon"),o.maxlength?(x(),k("span",lu,[H("span",null,X(c.modelValue.length),1),ie(" / "+X(c.maxlength),1)])):B("",!0)])):B("",!0)],2))}},uu=["disabled","id","checked"],du=H("span",{class:"replace"},null,-1),fu={__name:"switch",props:nn,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Kt(4);return(s,i)=>(x(),k("div",{class:j(["input switch",{disabled:s.disabled}]),style:oe({width:s.width,height:s.height})},[H("input",{class:"replace-input",disabled:s.disabled,id:O(o),type:"checkbox",checked:n.modelValue,onInput:i[0]||(i[0]=l=>t("update:modelValue",l.target.checked))},null,40,uu),du],6))}},pu=["accept","multiple"],hu={key:2,class:"replace"},mu={key:0,class:"placeholder"},gu={class:"bottom"},vu={key:0},yu={key:2,class:"tj"},bu={key:3,class:"use-replace"},wu={__name:"file",props:{...co},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,s=I(null),i=U(()=>{if(o.scale){const[r,a]=o.scale.split(":");if(Number(r)&&Number(a))return[Number(r),Number(a)]}}),l=U(()=>Array.isArray(o.modelValue)?o.modelValue.length:!!o.modelValue),c=U(()=>{if(o.maxSize){const r=o.maxSize/1024/1024;return r>1024?r/1024+"GB":r+"MB"}}),u={image:{types:["image/jpeg","image/jpg","image/png","image/gif","image/webp"],preview(r,a){return new Promise((d,f)=>{const h=new Image;h.onload=()=>d([h.width,h.height,r]),h.onerror=f,h.src=a})}},video:{types:["video/mp4"],preview(r,a){return new Promise((d,f)=>{const h=document.createElement("video");h.preload="metadata",h.onloadedmetadata=()=>d([h.videoWidth,h.videoHeight,r]),h.onerror=f,h.src=a})}}},m=r=>Promise.all(r.map(a=>new Promise((d,f)=>{const h=new FileReader;h.onloadend=y=>d(y.target.result),h.onerror=y=>loaderror(a,f(y)),h.readAsDataURL(a)}))),p=(r,a)=>parseInt(r/a*1e3),v=async r=>{const a=r.target,d=Array.from(a.files),f=(w,b=q.t("sys.previewError"))=>{console.error(w),Ce.error(b),a.value=""};if(o.accept)for(const w of d){const b=o.accept.split(",").map(S=>S.trim()),g=w.name.substr(w.name.lastIndexOf("."));if(!b.includes(g))return f(q.t("sys.gsError"),q.t("sys.gsAcceptTip",o))}let h;if(o.preview||i.value)try{h=await m(d)}catch(w){return f(w)}if(i.value){const w=[];for(let g=0;g<d.length;g++){const S=Object.values(u).find(_=>_.types.includes(d[g].type));S&&w.push(S.preview(d[g],h[g]))}let b;try{b=await Promise.all(w)}catch(g){return f(g)}for(const[g,S,_]of b){const C=p(...i.value)-p(g,S);if(Math.abs(C)>300)return f("error scale",q.t("sys.gsScaleTip",{...o,name:_.name}))}}if(o.maxSize){for(const w of d)if(w.size>o.maxSize)return f("error size",q.t("sys.gsSizeTip",{sizeStr:c.value,name:w.name}))}const y=o.modelValue?o.multiple?Pe(o.modelValue)==="Array"?o.modelValue:[o.modelValue]:null:o.multiple?[]:null,E=o.multiple?o.preview?[...y,...d.map((w,b)=>({file:w,preview:h[b]}))]:[...y,d]:o.preview?{file:d[0],preview:h[0]}:d[0];if(Array.isArray(E)&&o.maxLen&&E.length>o.maxLen)return f("error len",q.t("sys.gsCountTip",o));n("update:modelValue",E),a.value=""};return t({input:s}),(r,a)=>{const d=ve("ui-icon");return x(),k("div",{class:j(["input file",{suffix:r.$slots.icon,disabled:r.disabled,valuable:O(l)}])},[O(l)?N(r.$slots,"valuable",{key:r.modelValue}):B("",!0),!r.maxLen||r.maxLen>r.modelValue.length?(x(),k("input",{key:1,class:"ui-text",type:"file",ref_key:"inputRef",ref:s,accept:r.accept,multiple:r.multiple,onChange:v},null,40,pu)):B("",!0),r.$slots.replace?(x(),k("div",bu,[N(r.$slots,"replace")])):(x(),k("span",hu,[O(l)?(x(),k(ne,{key:1},[!r.maxLen||r.maxLen>r.modelValue.length?(x(),k("span",vu,X(r.multiple?r.$t("sys.continueAdd"):r.$t("sys.rep")),1)):B("",!0)],64)):(x(),k("div",mu,[H("p",null,[Q(d,{type:"add"})]),H("p",null,X(r.placeholder),1),H("p",gu,[r.othPlaceholder?(x(),k(ne,{key:1},[ie(X(r.othPlaceholder),1)],64)):(x(),k(ne,{key:0},[r.accept?(x(),k(ne,{key:0},[ie(X(r.$t("sys.acceptTip",{accept:r.accept})),1)],64)):B("",!0),O(i)?(x(),k(ne,{key:1},[ie(X(r.$t("sys.scaleTip",{scale:r.scale})),1)],64)):B("",!0),r.maxSize?(x(),k(ne,{key:2},[ie(X(r.$t("sys.sizeTip",{sizeStr:O(c)})),1)],64)):B("",!0),r.maxLen?(x(),k(ne,{key:3},[ie(X(r.$t("sys.countTip",{maxLen:r.maxLen})),1)],64)):B("",!0)],64))])])),r.maxLen&&r.modelValue.length?(x(),k("span",yu,[H("span",null,X(r.modelValue.length||0),1),ie(" / "+X(r.maxLen),1)])):B("",!0)]))],2)}}},Su={__name:"search",props:po,emits:[...Tt],setup(e,{expose:t,emit:n}){const o=e,s=I(""),i=I([]),l=I();pe(()=>{i.value=s.value?o.options.filter(({label:a})=>a.includes(s.value)):o.options});let c=null;const u=()=>{c=o.modelValue,n("update:modelValue",null),m(""),r.focus(),clearTimeout(p)},m=a=>{const d=o.options.find(({value:y})=>y===a),f=o.options.find(({label:y})=>y===a),h=d||f;h?(s.value=h.label,n("update:modelValue",h.value),c=null):typeof a=="string"&&(s.value=a)};pe(()=>{o.modelValue===null&&m("")}),m(o.modelValue);let p;const v=()=>{p=setTimeout(()=>{m(o.modelValue===null?c:o.modelValue)},100)};let r;return pe(()=>{l.value&&(r&&(r.removeEventListener("blur",v),r=null),r=l.value.vmRef.input,r.addEventListener("blur",v))}),yt(()=>{r&&r.removeEventListener("blur",v)}),t({vmRef:l,update:(...a)=>m(...a),clearHandler:u}),(a,d)=>{const f=ve("ui-icon");return x(),Z(Er,Ke({ref_key:"selectVM",ref:l,className:"search"},o,{readonly:!1,onBlur:d[0]||(d[0]=h=>n("blur")),onFocus:d[1]||(d[1]=h=>n("focus")),"onUpdate:modelValue":m,labelValue:s.value,options:i.value}),ht({icon:Y(()=>[s.value?(x(),Z(f,{key:0,type:"clear",class:"clear",onClick:u})):B("",!0)]),preIcon:Y(()=>[Q(f,{type:"search",size:"14px",color:"rgba(255,255,255,.3)"})]),_:2},[xe(a.$slots,(h,y)=>({name:y,fn:Y(E=>[N(a.$slots,y,mt(gt(E)))])}))]),1040,["labelValue","options"])}}},$u=["placeholder","readonly"],Eu=H("span",{class:"replace"},null,-1),xu={key:0,class:"retouch"},_u={key:0,class:"len"},Cu={__name:"richtext",props:{...fo},emits:["update:modelValue","focus","blur","click",""],setup(e,{expose:t,emit:n}){const o=e,s=I(null),i=I(null),l=I(0),c=w=>{i.value.innerHTML=w,l.value=i.value.textContent.length};pe(()=>{i.value&&o.modelValue!==i.value.innerHTML&&c(o.modelValue)});let u=!1;const m=()=>{u=!0},p=w=>{u=!1,v(w)},v=w=>{u||(!o.maxlength||w.target.textContent.length<=Number(o.maxlength)?(l.value=i.value.textContent.length,n("update:modelValue",w.target.innerHTML)):Te(()=>{w.target.innerHTML!==o.modelValue.toString()&&(c(o.modelValue.toString()),h())}))},r=function(w=i.value){var b=0,g=w.ownerDocument||w.document,S=g.defaultView||g.parentWindow,_;if(typeof S.getSelection<"u"){if(_=S.getSelection(),_.rangeCount>0){var C=S.getSelection().getRangeAt(0),A=C.cloneRange();A.selectNodeContents(w),A.setEnd(C.endContainer,C.endOffset),b=A.toString().length}}else if((_=g.selection)&&_.type!="Control"){var R=_.createRange(),L=g.body.createTextRange();L.moveToElementText(w),L.setEndPoint("EndToEnd",R),b=L.text.length}return b};let a;const d=w=>{clearInterval(a),a=setInterval(()=>{n("updatePos",r())},100),n("focus")},f=()=>{clearInterval(a),n("blur")},h=()=>{i.value.focus();const w=window.getSelection();w.selectAllChildren(i.value),w.collapseToEnd()},y=w=>{if(!o.maxlength)return w;const b=document.createElement("div");return b.innerHTML=w,b.textContent.length>o.maxlength-l.value?b.textContent.substring(0,o.maxlength-l.value):w},E=w=>{w.preventDefault();var b,g=(w.originalEvent||w).clipboardData;if(g==null){if(b=window.clipboardData.getData("text")||"",b!=="")if(window.getSelection){var S=document.createElement("span");S.innerHTML=y(b),window.getSelection().getRangeAt(0).insertNode(S)}else document.selection.createRange().pasteHTML(b)}else b=g.getData("text/plain")||"",b!==""&&document.execCommand("insertText",!1,y(b))};return t({root:s,input:i,getCursortPosition:r}),(w,b)=>(x(),k("div",{class:j(["input textarea",{suffix:w.$slots.icon||w.maxlength,disabled:w.disabled,right:w.right}]),ref_key:"textRef",ref:s},[H("div",Ke({contenteditable:"true",class:"ui-text input-div",onInput:v,placeholder:o.placeholder,readonly:w.readonly,onClick:b[0]||(b[0]=g=>n("click")),onFocus:d,onBlur:f,onPaste:E,onCompositionstart:m,onCompositionend:p,ref_key:"inputRef",ref:i},w.other),null,16,$u),Eu,w.$slots.icon||o.maxlength?(x(),k("span",xu,[N(w.$slots,"icon"),o.maxlength?(x(),k("span",_u,[H("span",null,X(l.value),1),ie(" / "+X(w.maxlength),1)])):B("",!0)])):B("",!0)],2))}},ku=["name","disabled","id","value","checked"],Tu={key:0,class:"replace"},Au={__name:"color",props:lo,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Kt(4),s=i=>{t("update:modelValue",i.target.value),Te(()=>{i.target.value!==n.modelValue.toString()&&(i.target.value=n.modelValue.toString())})};return(i,l)=>(x(),k("div",{class:j(["color input",{default:!i.$slots.replace}]),style:oe({width:i.width,height:i.height})},[H("input",{name:i.name,disabled:i.disabled,id:O(o),value:n.modelValue,type:"color",class:"replace-input",checked:n.modelValue,onInput:s},null,40,ku),i.$slots.replace?(x(),k("span",Tu,[N(i.$slots,"replace")])):B("",!0)],6))}},Ru={key:0,class:"error-msg"},Ou={name:"ui-input"},Iu=Object.assign(Ou,{props:Lc,emits:[...Tt],setup(e,{expose:t,emit:n}){const o=e,s={checkbox:{component:Vc,propsDesc:on},text:{component:mo,propsDesc:Ie},select:{component:Er,propsDesc:rn},radio:{component:Hc,propsDesc:uo},range:{component:su,propsDesc:ho},number:{component:xr,propsDesc:ct},switch:{component:fu,propsDesc:nn},textarea:{component:cu,propsDesc:sn},file:{component:wu,propsDesc:co},search:{component:Su,propsDesc:po},richtext:{component:Cu,propsDesc:fo},color:{component:Au,propsDesc:lo}},i=I(),l=I(),c=U(()=>s[o.type]?o.type:"text"),u=U(()=>{const r=Object.keys(s[c.value].propsDesc),a={};for(let d in o)r.includes(d)&&(a[d]=o[d]);return s[o.type]||(a.type=o.type),a.ref=l,a}),m=U(()=>{const r={},a=Object.keys(u.value);return a.includes("width")||(r.width=o.width),a.includes("height")||(r.height=o.height),r}),p=Bs(),v=U(()=>{const r={};return(fs[o.type]?fs[o.type]:["update:modelValue"]).forEach(d=>{r[d]=(...f)=>{p.emit(d,...f)}}),r});return t(vt({vmRef:i})),(r,a)=>s[O(c)]?(x(),k("div",{key:0,class:j(["ui-input",{require:o.require,error:o.error,disabled:r.disabled}]),style:oe(O(m)),onClick:a[0]||(a[0]=d=>n("click",d))},[(x(),Z(Vs(s[O(c)].component),Ke(O(u),{modelValue:o.modelValue},Us(O(v)),{ref_key:"vmRef",ref:i}),ht({_:2},[xe(r.$slots,(d,f)=>({name:f,fn:Y(h=>[N(r.$slots,f,mt(gt(h)))])}))]),1040,["modelValue"])),N(r.$slots,"default"),r.error?(x(),k("p",Ru,X(r.error),1)):B("",!0)],6)):B("",!0)}}),Lu={name:"ui-menu-item"},_r=Object.assign(Lu,{props:{icon:{type:String,require:!0},text:{type:String,require:!0},active:{type:Boolean}},emits:["leave","enter","click"],setup(e,{expose:t,emit:n}){const o=I(null);return t({dom:o}),(s,i)=>(x(),k("div",{class:j(["ui-menu-item",{active:e.active}]),ref_key:"self",ref:o,onMouseenter:i[0]||(i[0]=l=>n("enter")),onMouseleave:i[1]||(i[1]=l=>n("leave")),onClick:i[2]||(i[2]=l=>n("click"))},[Q(O(ue),{type:e.icon,size:"18px"},null,8,["type"]),H("span",null,X(e.text),1),N(s.$slots,"default")],34))}}),Cr=Symbol("relation"),Pu={name:"ui-gate"},kr=Object.assign(Pu,{props:{absolute:{type:Boolean,default:!1},index:{type:[Number,String],default:0},height:{type:[Number,String]}},setup(e){const t=e,n=I([]),o=U(()=>t.index>n.value.length-1?n.value.length-1:t.index<0?0:t.index);return Ge([n,o],()=>{for(let s=0;s<n.value.length;s++){const i=n.value[s];i.value=s===o.value}}),at(Cr,n),(s,i)=>(x(),k("div",{class:"ui-gate-layer",style:oe({height:O(kt)(e.height),"--len":n.value.length,"--current":O(o)})},[H("div",{class:j(["ui-gate-slides",{absolute:e.absolute}])},[N(s.$slots,"default")],2)],4))}}),Mu={name:"ui-gate-content"},Tr=Object.assign(Mu,{setup(e){const t=I(!1),n=We(Cr).value;return n&&(Ds(()=>n.push(t)),yt(()=>{const o=n.indexOf(t);~o&&n.splice(o,1)})),(o,s)=>O(n)?(x(),k("div",{key:0,class:j(["ui-gate-content",{active:t.value}])},[N(o.$slots,"default",{active:t.value})],2)):B("",!0)}}),Nu={key:1,class:"infos"},Hu={class:"tj"},Du={name:"ui-slide"},Bu=Object.assign(Du,{props:{items:Array,currentIndex:{type:Number,default:0},showCtrl:{type:Boolean},showInfos:{type:Boolean}},emits:["change"],setup(e,{emit:t}){const n=e,o=I(),s=U(()=>n.items.length>1?1:0),i=a=>{const d=n.items.length,f=a-s.value;return f<0?f+d:f>=d?f%d:f},l=U(()=>s.value?[...[...n.items].reverse().slice(0,s.value),...n.items,...n.items.slice(0,s.value)]:n.items),c=U(()=>i(o.value));pe(()=>{console.log(n.currentIndex,s.value),o.value=n.currentIndex+s.value});const u=I(!1);let m=!1;const p=a=>{m=!0,setTimeout(()=>{u.value=!0,Te(()=>{a(),setTimeout(()=>{u.value=!1,m=!1},50)})},300)},v=()=>{m||(c.value===0&&p(()=>{o.value=s.value+n.items.length-1}),o.value--,t("change",c.value))},r=()=>{m||(c.value===n.items.length-1&&p(()=>{o.value=s.value}),o.value++,t("change",c.value))};return(a,d)=>e.items.length?(x(),k("div",{key:0,class:j(["ui-slide",{"stop-animation":u.value}])},[Q(O(kr),{index:o.value},{default:Y(()=>[(x(!0),k(ne,null,xe(O(l),(f,h)=>(x(),Z(O(Tr),null,{default:Y(()=>[N(a.$slots,"default",{raw:f,active:e.items[O(c)],index:i(h)})]),_:2},1024))),256))]),_:3},8,["index"]),e.showCtrl?(x(),k(ne,{key:0},[H("span",{class:"left",onClick:v},[Q(O(ue),{type:"left1"})]),H("span",{class:"right",onClick:r},[Q(O(ue),{type:"right"})])],64)):B("",!0),N(a.$slots,"attach",{active:e.items[O(c)]}),e.showInfos?(x(),k("span",Nu,[H("span",Hu,[H("span",null,X(O(c)+1),1),ie(" / "+X(e.items.length),1)])])):B("",!0)],2)):B("",!0)}}),Uu=["src"],Vu={name:"ui-audio"},Wu=Object.assign(Vu,{props:{src:String},setup(e,{expose:t}){const n=I(),o=I([1,.5,1,.5]),s=I(!1);let i;const l=()=>{if(!!s.value){for(let u=0;u<o.value.length;u++)o.value[u]=Math.random();i=setTimeout(l,200)}};pe(()=>{n.value&&(s.value?n.value.play():n.value.pause(),clearTimeout(i),l())});const c=()=>{s.value=!s.value};return t({play(){s.value=!0},pause(){s.value=!1}}),(u,m)=>(x(),k("div",{class:"ui-audio",onClick:c},[H("audio",{onPlay:l,ref_key:"audio",ref:n,autoplay:"",loop:""},[H("source",{src:e.src},null,8,Uu)],544),(x(!0),k(ne,null,xe(o.value,p=>(x(),k("span",{style:oe({"--percent":p})},null,4))),256))]))}});var Ar={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(window,function(){return function(n){var o={};function s(i){if(o[i])return o[i].exports;var l=o[i]={i,l:!1,exports:{}};return n[i].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=n,s.c=o,s.d=function(i,l,c){s.o(i,l)||Object.defineProperty(i,l,{enumerable:!0,get:c})},s.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},s.t=function(i,l){if(1&l&&(i=s(i)),8&l||4&l&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(s.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&l&&typeof i!="string")for(var u in i)s.d(c,u,function(m){return i[m]}.bind(null,u));return c},s.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(l,"a",l),l},s.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},s.p="",s(s.s=6)}([function(n,o,s){var i=s(2);typeof i=="string"&&(i=[[n.i,i,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};s(4)(i,l),i.locals&&(n.exports=i.locals)},function(n,o,s){var i=s(0);s.n(i).a},function(n,o,s){(n.exports=s(3)(!1)).push([n.i,`
  3. .vue-cropper[data-v-6dae58fd] {
  4. position: relative;
  5. width: 100%;
  6. height: 100%;
  7. box-sizing: border-box;
  8. user-select: none;
  9. -webkit-user-select: none;
  10. -moz-user-select: none;
  11. -ms-user-select: none;
  12. direction: ltr;
  13. touch-action: none;
  14. text-align: left;
  15. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
  16. }
  17. .cropper-box[data-v-6dae58fd],
  18. .cropper-box-canvas[data-v-6dae58fd],
  19. .cropper-drag-box[data-v-6dae58fd],
  20. .cropper-crop-box[data-v-6dae58fd],
  21. .cropper-face[data-v-6dae58fd] {
  22. position: absolute;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. left: 0;
  27. user-select: none;
  28. }
  29. .cropper-box-canvas img[data-v-6dae58fd] {
  30. position: relative;
  31. text-align: left;
  32. user-select: none;
  33. transform: none;
  34. max-width: none;
  35. max-height: none;
  36. }
  37. .cropper-box[data-v-6dae58fd] {
  38. overflow: hidden;
  39. }
  40. .cropper-move[data-v-6dae58fd] {
  41. cursor: move;
  42. }
  43. .cropper-crop[data-v-6dae58fd] {
  44. cursor: crosshair;
  45. }
  46. .cropper-modal[data-v-6dae58fd] {
  47. background: rgba(0, 0, 0, 0.5);
  48. }
  49. .cropper-crop-box[data-v-6dae58fd] {
  50. /*border: 2px solid #39f;*/
  51. }
  52. .cropper-view-box[data-v-6dae58fd] {
  53. display: block;
  54. overflow: hidden;
  55. width: 100%;
  56. height: 100%;
  57. outline: 1px solid #39f;
  58. outline-color: rgba(51, 153, 255, 0.75);
  59. user-select: none;
  60. }
  61. .cropper-view-box img[data-v-6dae58fd] {
  62. user-select: none;
  63. text-align: left;
  64. max-width: none;
  65. max-height: none;
  66. }
  67. .cropper-face[data-v-6dae58fd] {
  68. top: 0;
  69. left: 0;
  70. background-color: #fff;
  71. opacity: 0.1;
  72. }
  73. .crop-info[data-v-6dae58fd] {
  74. position: absolute;
  75. left: 0px;
  76. min-width: 65px;
  77. text-align: center;
  78. color: white;
  79. line-height: 20px;
  80. background-color: rgba(0, 0, 0, 0.8);
  81. font-size: 12px;
  82. }
  83. .crop-line[data-v-6dae58fd] {
  84. position: absolute;
  85. display: block;
  86. width: 100%;
  87. height: 100%;
  88. opacity: 0.1;
  89. }
  90. .line-w[data-v-6dae58fd] {
  91. top: -3px;
  92. left: 0;
  93. height: 5px;
  94. cursor: n-resize;
  95. }
  96. .line-a[data-v-6dae58fd] {
  97. top: 0;
  98. left: -3px;
  99. width: 5px;
  100. cursor: w-resize;
  101. }
  102. .line-s[data-v-6dae58fd] {
  103. bottom: -3px;
  104. left: 0;
  105. height: 5px;
  106. cursor: s-resize;
  107. }
  108. .line-d[data-v-6dae58fd] {
  109. top: 0;
  110. right: -3px;
  111. width: 5px;
  112. cursor: e-resize;
  113. }
  114. .crop-point[data-v-6dae58fd] {
  115. position: absolute;
  116. width: 8px;
  117. height: 8px;
  118. opacity: 0.75;
  119. background-color: #39f;
  120. border-radius: 100%;
  121. }
  122. .point1[data-v-6dae58fd] {
  123. top: -4px;
  124. left: -4px;
  125. cursor: nw-resize;
  126. }
  127. .point2[data-v-6dae58fd] {
  128. top: -5px;
  129. left: 50%;
  130. margin-left: -3px;
  131. cursor: n-resize;
  132. }
  133. .point3[data-v-6dae58fd] {
  134. top: -4px;
  135. right: -4px;
  136. cursor: ne-resize;
  137. }
  138. .point4[data-v-6dae58fd] {
  139. top: 50%;
  140. left: -4px;
  141. margin-top: -3px;
  142. cursor: w-resize;
  143. }
  144. .point5[data-v-6dae58fd] {
  145. top: 50%;
  146. right: -4px;
  147. margin-top: -3px;
  148. cursor: e-resize;
  149. }
  150. .point6[data-v-6dae58fd] {
  151. bottom: -5px;
  152. left: -4px;
  153. cursor: sw-resize;
  154. }
  155. .point7[data-v-6dae58fd] {
  156. bottom: -5px;
  157. left: 50%;
  158. margin-left: -3px;
  159. cursor: s-resize;
  160. }
  161. .point8[data-v-6dae58fd] {
  162. bottom: -5px;
  163. right: -4px;
  164. cursor: se-resize;
  165. }
  166. @media screen and (max-width: 500px) {
  167. .crop-point[data-v-6dae58fd] {
  168. position: absolute;
  169. width: 20px;
  170. height: 20px;
  171. opacity: 0.45;
  172. background-color: #39f;
  173. border-radius: 100%;
  174. }
  175. .point1[data-v-6dae58fd] {
  176. top: -10px;
  177. left: -10px;
  178. }
  179. .point2[data-v-6dae58fd],
  180. .point4[data-v-6dae58fd],
  181. .point5[data-v-6dae58fd],
  182. .point7[data-v-6dae58fd] {
  183. display: none;
  184. }
  185. .point3[data-v-6dae58fd] {
  186. top: -10px;
  187. right: -10px;
  188. }
  189. .point4[data-v-6dae58fd] {
  190. top: 0;
  191. left: 0;
  192. }
  193. .point6[data-v-6dae58fd] {
  194. bottom: -10px;
  195. left: -10px;
  196. }
  197. .point8[data-v-6dae58fd] {
  198. bottom: -10px;
  199. right: -10px;
  200. }
  201. }
  202. `,""])},function(n,o){n.exports=function(s){var i=[];return i.toString=function(){return this.map(function(l){var c=function(u,m){var p=u[1]||"",v=u[3];if(!v)return p;if(m&&typeof btoa=="function"){var r=function(d){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(d))))+" */"}(v),a=v.sources.map(function(d){return"/*# sourceURL="+v.sourceRoot+d+" */"});return[p].concat(a).concat([r]).join(`
  203. `)}return[p].join(`
  204. `)}(l,s);return l[2]?"@media "+l[2]+"{"+c+"}":c}).join("")},i.i=function(l,c){typeof l=="string"&&(l=[[null,l,""]]);for(var u={},m=0;m<this.length;m++){var p=this[m][0];typeof p=="number"&&(u[p]=!0)}for(m=0;m<l.length;m++){var v=l[m];typeof v[0]=="number"&&u[v[0]]||(c&&!v[2]?v[2]=c:c&&(v[2]="("+v[2]+") and ("+c+")"),i.push(v))}},i}},function(n,o,s){var i={},l=function(g){var S;return function(){return S===void 0&&(S=g.apply(this,arguments)),S}}(function(){return window&&document&&document.all&&!window.atob}),c=function(g){var S={};return function(_,C){if(typeof _=="function")return _();if(S[_]===void 0){var A=function(R,L){return L?L.querySelector(R):document.querySelector(R)}.call(this,_,C);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch{A=null}S[_]=A}return S[_]}}(),u=null,m=0,p=[],v=s(5);function r(g,S){for(var _=0;_<g.length;_++){var C=g[_],A=i[C.id];if(A){A.refs++;for(var R=0;R<A.parts.length;R++)A.parts[R](C.parts[R]);for(;R<C.parts.length;R++)A.parts.push(E(C.parts[R],S))}else{var L=[];for(R=0;R<C.parts.length;R++)L.push(E(C.parts[R],S));i[C.id]={id:C.id,refs:1,parts:L}}}}function a(g,S){for(var _=[],C={},A=0;A<g.length;A++){var R=g[A],L=S.base?R[0]+S.base:R[0],$={css:R[1],media:R[2],sourceMap:R[3]};C[L]?C[L].parts.push($):_.push(C[L]={id:L,parts:[$]})}return _}function d(g,S){var _=c(g.insertInto);if(!_)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var C=p[p.length-1];if(g.insertAt==="top")C?C.nextSibling?_.insertBefore(S,C.nextSibling):_.appendChild(S):_.insertBefore(S,_.firstChild),p.push(S);else if(g.insertAt==="bottom")_.appendChild(S);else{if(typeof g.insertAt!="object"||!g.insertAt.before)throw new Error(`[Style Loader]
  205. Invalid value for parameter 'insertAt' ('options.insertAt') found.
  206. Must be 'top', 'bottom', or Object.
  207. (https://github.com/webpack-contrib/style-loader#insertat)
  208. `);var A=c(g.insertAt.before,_);_.insertBefore(S,A)}}function f(g){if(g.parentNode===null)return!1;g.parentNode.removeChild(g);var S=p.indexOf(g);S>=0&&p.splice(S,1)}function h(g){var S=document.createElement("style");if(g.attrs.type===void 0&&(g.attrs.type="text/css"),g.attrs.nonce===void 0){var _=function(){return s.nc}();_&&(g.attrs.nonce=_)}return y(S,g.attrs),d(g,S),S}function y(g,S){Object.keys(S).forEach(function(_){g.setAttribute(_,S[_])})}function E(g,S){var _,C,A,R;if(S.transform&&g.css){if(!(R=typeof S.transform=="function"?S.transform(g.css):S.transform.default(g.css)))return function(){};g.css=R}if(S.singleton){var L=m++;_=u||(u=h(S)),C=b.bind(null,_,L,!1),A=b.bind(null,_,L,!0)}else g.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(_=function($){var P=document.createElement("link");return $.attrs.type===void 0&&($.attrs.type="text/css"),$.attrs.rel="stylesheet",y(P,$.attrs),d($,P),P}(S),C=function($,P,V){var z=V.css,K=V.sourceMap,Ne=P.convertToAbsoluteUrls===void 0&&K;(P.convertToAbsoluteUrls||Ne)&&(z=v(z)),K&&(z+=`
  209. /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(K))))+" */");var un=new Blob([z],{type:"text/css"}),Ze=$.href;$.href=URL.createObjectURL(un),Ze&&URL.revokeObjectURL(Ze)}.bind(null,_,S),A=function(){f(_),_.href&&URL.revokeObjectURL(_.href)}):(_=h(S),C=function($,P){var V=P.css,z=P.media;if(z&&$.setAttribute("media",z),$.styleSheet)$.styleSheet.cssText=V;else{for(;$.firstChild;)$.removeChild($.firstChild);$.appendChild(document.createTextNode(V))}}.bind(null,_),A=function(){f(_)});return C(g),function($){if($){if($.css===g.css&&$.media===g.media&&$.sourceMap===g.sourceMap)return;C(g=$)}else A()}}n.exports=function(g,S){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(S=S||{}).attrs=typeof S.attrs=="object"?S.attrs:{},S.singleton||typeof S.singleton=="boolean"||(S.singleton=l()),S.insertInto||(S.insertInto="head"),S.insertAt||(S.insertAt="bottom");var _=a(g,S);return r(_,S),function(C){for(var A=[],R=0;R<_.length;R++){var L=_[R];($=i[L.id]).refs--,A.push($)}for(C&&r(a(C,S),S),R=0;R<A.length;R++){var $;if(($=A[R]).refs===0){for(var P=0;P<$.parts.length;P++)$.parts[P]();delete i[$.id]}}}};var w=function(){var g=[];return function(S,_){return g[S]=_,g.filter(Boolean).join(`
  210. `)}}();function b(g,S,_,C){var A=_?"":C.css;if(g.styleSheet)g.styleSheet.cssText=w(S,A);else{var R=document.createTextNode(A),L=g.childNodes;L[S]&&g.removeChild(L[S]),L.length?g.insertBefore(R,L[S]):g.appendChild(R)}}},function(n,o){n.exports=function(s){var i=typeof window<"u"&&window.location;if(!i)throw new Error("fixUrls requires window.location");if(!s||typeof s!="string")return s;var l=i.protocol+"//"+i.host,c=l+i.pathname.replace(/\/[^\/]*$/,"/");return s.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(u,m){var p,v=m.trim().replace(/^"(.*)"$/,function(r,a){return a}).replace(/^'(.*)'$/,function(r,a){return a});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(v)?u:(p=v.indexOf("//")===0?v:v.indexOf("/")===0?l+v:c+v.replace(/^\.\//,""),"url("+JSON.stringify(p)+")")})}},function(n,o,s){s.r(o);var i=function(){var r=this,a=r.$createElement,d=r._self._c||a;return d("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:r.scaleImg,mouseout:r.cancelScale}},[r.imgs?d("div",{staticClass:"cropper-box"},[d("div",{directives:[{name:"show",rawName:"v-show",value:!r.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:r.trueWidth+"px",height:r.trueHeight+"px",transform:"scale("+r.scale+","+r.scale+") translate3d("+r.x/r.scale+"px,"+r.y/r.scale+"px,0)rotateZ("+90*r.rotate+"deg)"}},[d("img",{ref:"cropperImg",attrs:{src:r.imgs,alt:"cropper-img"}})])]):r._e(),r._v(" "),d("div",{staticClass:"cropper-drag-box",class:{"cropper-move":r.move&&!r.crop,"cropper-crop":r.crop,"cropper-modal":r.cropping},on:{mousedown:r.startMove,touchstart:r.startMove}}),r._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:r.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:r.cropW+"px",height:r.cropH+"px",transform:"translate3d("+r.cropOffsertX+"px,"+r.cropOffsertY+"px,0)"}},[d("span",{staticClass:"cropper-view-box"},[d("img",{style:{width:r.trueWidth+"px",height:r.trueHeight+"px",transform:"scale("+r.scale+","+r.scale+") translate3d("+(r.x-r.cropOffsertX)/r.scale+"px,"+(r.y-r.cropOffsertY)/r.scale+"px,0)rotateZ("+90*r.rotate+"deg)"},attrs:{src:r.imgs,alt:"cropper-img"}})]),r._v(" "),d("span",{staticClass:"cropper-face cropper-move",on:{mousedown:r.cropMove,touchstart:r.cropMove}}),r._v(" "),r.info?d("span",{staticClass:"crop-info",style:{top:r.cropInfo.top}},[r._v(r._s(r.cropInfo.width)+" \xD7 "+r._s(r.cropInfo.height))]):r._e(),r._v(" "),r.fixedBox?r._e():d("span",[d("span",{staticClass:"crop-line line-w",on:{mousedown:function(f){r.changeCropSize(f,!1,!0,0,1)},touchstart:function(f){r.changeCropSize(f,!1,!0,0,1)}}}),r._v(" "),d("span",{staticClass:"crop-line line-a",on:{mousedown:function(f){r.changeCropSize(f,!0,!1,1,0)},touchstart:function(f){r.changeCropSize(f,!0,!1,1,0)}}}),r._v(" "),d("span",{staticClass:"crop-line line-s",on:{mousedown:function(f){r.changeCropSize(f,!1,!0,0,2)},touchstart:function(f){r.changeCropSize(f,!1,!0,0,2)}}}),r._v(" "),d("span",{staticClass:"crop-line line-d",on:{mousedown:function(f){r.changeCropSize(f,!0,!1,2,0)},touchstart:function(f){r.changeCropSize(f,!0,!1,2,0)}}}),r._v(" "),d("span",{staticClass:"crop-point point1",on:{mousedown:function(f){r.changeCropSize(f,!0,!0,1,1)},touchstart:function(f){r.changeCropSize(f,!0,!0,1,1)}}}),r._v(" "),d("span",{staticClass:"crop-point point2",on:{mousedown:function(f){r.changeCropSize(f,!1,!0,0,1)},touchstart:function(f){r.changeCropSize(f,!1,!0,0,1)}}}),r._v(" "),d("span",{staticClass:"crop-point point3",on:{mousedown:function(f){r.changeCropSize(f,!0,!0,2,1)},touchstart:function(f){r.changeCropSize(f,!0,!0,2,1)}}}),r._v(" "),d("span",{staticClass:"crop-point point4",on:{mousedown:function(f){r.changeCropSize(f,!0,!1,1,0)},touchstart:function(f){r.changeCropSize(f,!0,!1,1,0)}}}),r._v(" "),d("span",{staticClass:"crop-point point5",on:{mousedown:function(f){r.changeCropSize(f,!0,!1,2,0)},touchstart:function(f){r.changeCropSize(f,!0,!1,2,0)}}}),r._v(" "),d("span",{staticClass:"crop-point point6",on:{mousedown:function(f){r.changeCropSize(f,!0,!0,1,2)},touchstart:function(f){r.changeCropSize(f,!0,!0,1,2)}}}),r._v(" "),d("span",{staticClass:"crop-point point7",on:{mousedown:function(f){r.changeCropSize(f,!1,!0,0,2)},touchstart:function(f){r.changeCropSize(f,!1,!0,0,2)}}}),r._v(" "),d("span",{staticClass:"crop-point point8",on:{mousedown:function(f){r.changeCropSize(f,!0,!0,2,2)},touchstart:function(f){r.changeCropSize(f,!0,!0,2,2)}}})])])])};i._withStripped=!0;var l={};l.getData=function(r){return new Promise(function(a,d){var f={};(function(h){var y=null;return new Promise(function(E,w){if(h.src)if(/^data\:/i.test(h.src))y=function(S){S=S.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var _=atob(S),C=_.length,A=new ArrayBuffer(C),R=new Uint8Array(A),L=0;L<C;L++)R[L]=_.charCodeAt(L);return A}(h.src),E(y);else if(/^blob\:/i.test(h.src)){var b=new FileReader;b.onload=function(S){y=S.target.result,E(y)},function(S,_){var C=new XMLHttpRequest;C.open("GET",S,!0),C.responseType="blob",C.onload=function(A){this.status!=200&&this.status!==0||_(this.response)},C.send()}(h.src,function(S){b.readAsArrayBuffer(S)})}else{var g=new XMLHttpRequest;g.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";y=g.response,E(y),g=null},g.open("GET",h.src,!0),g.responseType="arraybuffer",g.send(null)}else w("img error")})})(r).then(function(h){f.arrayBuffer=h,f.orientation=function(y){var E,w,b,g,S,_,C,A,R,L=new DataView(y),$=L.byteLength;if(L.getUint8(0)===255&&L.getUint8(1)===216)for(A=2;A<$;){if(L.getUint8(A)===255&&L.getUint8(A+1)===225){_=A;break}A++}if(_&&(w=_+10,function(P,V,z){var K,Ne="";for(K=V,z+=V;K<z;K++)Ne+=String.fromCharCode(P.getUint8(K));return Ne}(L,_+4,4)==="Exif"&&(S=L.getUint16(w),((g=S===18761)||S===19789)&&L.getUint16(w+2,g)===42&&(b=L.getUint32(w+4,g))>=8&&(C=w+b))),C){for($=L.getUint16(C,g),R=0;R<$;R++)if(A=C+12*R+2,L.getUint16(A,g)===274){A+=8,E=L.getUint16(A,g);break}}return E}(h),a(f)}).catch(function(h){d(h)})})};var c=l,u={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var r={};if(r.top=this.cropOffsertY>21?"-21px":"0px",r.width=this.cropW>0?this.cropW:0,r.height=this.cropH>0?this.cropH:0,this.infoTrue){var a=1;this.high&&!this.full&&(a=window.devicePixelRatio),this.enlarge!==1&!this.full&&(a=Math.abs(Number(this.enlarge))),r.width=r.width*a,r.height=r.height*a,this.full&&(r.width=r.width/this.scale,r.height=r.height/this.scale)}return r.width=r.width.toFixed(0),r.height=r.height.toFixed(0),r},isIE:function(){var r=!!window.ActiveXObject||"ActiveXObject"in window;return r},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(r){r!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(r,a){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(r){r&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(r){for(var a=navigator.userAgent.split(" "),d="",f=new RegExp(r,"i"),h=0;h<a.length;h++)f.test(a[h])&&(d=a[h]);return d?d.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(r,a,d,f){var h=this;if(this.getVersion("chrome")[0]>=81)a=-1;else if(this.getVersion("safari")[0]>=605){var y=this.getVersion("version");y[0]>13&&y[1]>1&&(a=-1)}else{var E=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(E){var w=E[1];((w=w.split("_"))[0]>13||w[0]>=13&&w[1]>=4)&&(a=-1)}}var b=document.createElement("canvas"),g=b.getContext("2d");switch(g.save(),a){case 2:b.width=d,b.height=f,g.translate(d,0),g.scale(-1,1);break;case 3:b.width=d,b.height=f,g.translate(d/2,f/2),g.rotate(180*Math.PI/180),g.translate(-d/2,-f/2);break;case 4:b.width=d,b.height=f,g.translate(0,f),g.scale(1,-1);break;case 5:b.height=d,b.width=f,g.rotate(.5*Math.PI),g.scale(1,-1);break;case 6:b.width=f,b.height=d,g.translate(f/2,d/2),g.rotate(90*Math.PI/180),g.translate(-d/2,-f/2);break;case 7:b.height=d,b.width=f,g.rotate(.5*Math.PI),g.translate(d,-f),g.scale(-1,1);break;case 8:b.height=d,b.width=f,g.translate(f/2,d/2),g.rotate(-90*Math.PI/180),g.translate(-d/2,-f/2);break;default:b.width=d,b.height=f}g.drawImage(r,0,0,d,f),g.restore(),b.toBlob(function(S){var _=URL.createObjectURL(S);URL.revokeObjectURL(h.imgs),h.imgs=_},"image/"+this.outputType,1)},checkedImg:function(){var r=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var a=new Image;if(a.onload=function(){if(r.img==="")return r.$emit("imgLoad","error"),r.$emit("img-load","error"),!1;var f=a.width,h=a.height;c.getData(a).then(function(y){r.orientation=y.orientation||1;var E=Number(r.maxImgSize);!r.orientation&&f<E&h<E?r.imgs=r.img:(f>E&&(h=h/f*E,f=E),h>E&&(f=f/h*E,h=E),r.checkOrientationImage(a,r.orientation,f,h))})},a.onerror=function(){r.$emit("imgLoad","error"),r.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(a.crossOrigin=""),this.isIE){var d=new XMLHttpRequest;d.onload=function(){var f=URL.createObjectURL(this.response);a.src=f},d.open("GET",this.img,!0),d.responseType="blob",d.send()}else a.src=this.img},startMove:function(r){if(r.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in r?r.clientX:r.touches[0].clientX)-this.x,this.moveY=("clientY"in r?r.clientY:r.touches[0].clientY)-this.y,r.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),r.touches.length==2&&(this.touches=r.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=r.offsetX?r.offsetX:r.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=r.offsetY?r.offsetY:r.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in r?r.clientX:r.touches[0].clientX,this.cropY="clientY"in r?r.clientY:r.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(r){var a=this;r.preventDefault();var d=this.scale,f=this.touches[0].clientX,h=this.touches[0].clientY,y=r.touches[0].clientX,E=r.touches[0].clientY,w=this.touches[1].clientX,b=this.touches[1].clientY,g=r.touches[1].clientX,S=r.touches[1].clientY,_=Math.sqrt(Math.pow(f-w,2)+Math.pow(h-b,2)),C=Math.sqrt(Math.pow(y-g,2)+Math.pow(E-S,2))-_,A=1,R=(A=(A=A/this.trueWidth>A/this.trueHeight?A/this.trueHeight:A/this.trueWidth)>.1?.1:A)*C;if(!this.touchNow){if(this.touchNow=!0,C>0?d+=Math.abs(R):C<0&&d>Math.abs(R)&&(d-=Math.abs(R)),this.touches=r.touches,setTimeout(function(){a.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,d))return!1;this.scale=d}},cancelTouchScale:function(r){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(r){var a=this;if(r.preventDefault(),r.touches&&r.touches.length===2)return this.touches=r.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var d,f,h="clientX"in r?r.clientX:r.touches[0].clientX,y="clientY"in r?r.clientY:r.touches[0].clientY;d=h-this.moveX,f=y-this.moveY,this.$nextTick(function(){if(a.centerBox){var E,w,b,g,S=a.getImgAxis(d,f,a.scale),_=a.getCropAxis(),C=a.trueHeight*a.scale,A=a.trueWidth*a.scale;switch(a.rotate){case 1:case-1:case 3:case-3:E=a.cropOffsertX-a.trueWidth*(1-a.scale)/2+(C-A)/2,w=a.cropOffsertY-a.trueHeight*(1-a.scale)/2+(A-C)/2,b=E-C+a.cropW,g=w-A+a.cropH;break;default:E=a.cropOffsertX-a.trueWidth*(1-a.scale)/2,w=a.cropOffsertY-a.trueHeight*(1-a.scale)/2,b=E-A+a.cropW,g=w-C+a.cropH}S.x1>=_.x1&&(d=E),S.y1>=_.y1&&(f=w),S.x2<=_.x2&&(d=b),S.y2<=_.y2&&(f=g)}a.x=d,a.y=f,a.$emit("imgMoving",{moving:!0,axis:a.getImgAxis()}),a.$emit("img-moving",{moving:!0,axis:a.getImgAxis()})})},leaveImg:function(r){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(r){var a=this;r.preventDefault();var d=this.scale,f=r.deltaY||r.wheelDelta;f=navigator.userAgent.indexOf("Firefox")>0?30*f:f,this.isIE&&(f=-f);var h=this.coe,y=(h=h/this.trueWidth>h/this.trueHeight?h/this.trueHeight:h/this.trueWidth)*f;y<0?d+=Math.abs(y):d>Math.abs(y)&&(d-=Math.abs(y));var E=y<0?"add":"reduce";if(E!==this.coeStatus&&(this.coeStatus=E,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){a.scaling=!1,a.coe=a.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,d))return!1;this.scale=d},changeScale:function(r){var a=this.scale;r=r||1;var d=20;if((r*=d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>0?a+=Math.abs(r):a>Math.abs(r)&&(a-=Math.abs(r)),!this.checkoutImgAxis(this.x,this.y,a))return!1;this.scale=a},createCrop:function(r){var a=this;r.preventDefault();var d="clientX"in r?r.clientX:r.touches?r.touches[0].clientX:0,f="clientY"in r?r.clientY:r.touches?r.touches[0].clientY:0;this.$nextTick(function(){var h=d-a.cropX,y=f-a.cropY;if(h>0?(a.cropW=h+a.cropChangeX>a.w?a.w-a.cropChangeX:h,a.cropOffsertX=a.cropChangeX):(a.cropW=a.w-a.cropChangeX+Math.abs(h)>a.w?a.cropChangeX:Math.abs(h),a.cropOffsertX=a.cropChangeX+h>0?a.cropChangeX+h:0),a.fixed){var E=a.cropW/a.fixedNumber[0]*a.fixedNumber[1];E+a.cropOffsertY>a.h?(a.cropH=a.h-a.cropOffsertY,a.cropW=a.cropH/a.fixedNumber[1]*a.fixedNumber[0],a.cropOffsertX=h>0?a.cropChangeX:a.cropChangeX-a.cropW):a.cropH=E,a.cropOffsertY=a.cropOffsertY}else y>0?(a.cropH=y+a.cropChangeY>a.h?a.h-a.cropChangeY:y,a.cropOffsertY=a.cropChangeY):(a.cropH=a.h-a.cropChangeY+Math.abs(y)>a.h?a.cropChangeY:Math.abs(y),a.cropOffsertY=a.cropChangeY+y>0?a.cropChangeY+y:0)})},changeCropSize:function(r,a,d,f,h){r.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=a,this.canChangeY=d,this.changeCropTypeX=f,this.changeCropTypeY=h,this.cropX="clientX"in r?r.clientX:r.touches[0].clientX,this.cropY="clientY"in r?r.clientY:r.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(r){var a=this;r.preventDefault();var d="clientX"in r?r.clientX:r.touches?r.touches[0].clientX:0,f="clientY"in r?r.clientY:r.touches?r.touches[0].clientY:0,h=this.w,y=this.h,E=0,w=0;if(this.centerBox){var b=this.getImgAxis(),g=b.x2,S=b.y2;E=b.x1>0?b.x1:0,w=b.y1>0?b.y1:0,h>g&&(h=g),y>S&&(y=S)}this.$nextTick(function(){var _=d-a.cropX,C=f-a.cropY;if(a.canChangeX&&(a.changeCropTypeX===1?a.cropOldW-_>0?(a.cropW=h-a.cropChangeX-_<=h-E?a.cropOldW-_:a.cropOldW+a.cropChangeX-E,a.cropOffsertX=h-a.cropChangeX-_<=h-E?a.cropChangeX+_:E):(a.cropW=Math.abs(_)+a.cropChangeX<=h?Math.abs(_)-a.cropOldW:h-a.cropOldW-a.cropChangeX,a.cropOffsertX=a.cropChangeX+a.cropOldW):a.changeCropTypeX===2&&(a.cropOldW+_>0?(a.cropW=a.cropOldW+_+a.cropOffsertX<=h?a.cropOldW+_:h-a.cropOffsertX,a.cropOffsertX=a.cropChangeX):(a.cropW=h-a.cropChangeX+Math.abs(_+a.cropOldW)<=h-E?Math.abs(_+a.cropOldW):a.cropChangeX-E,a.cropOffsertX=h-a.cropChangeX+Math.abs(_+a.cropOldW)<=h-E?a.cropChangeX-Math.abs(_+a.cropOldW):E))),a.canChangeY&&(a.changeCropTypeY===1?a.cropOldH-C>0?(a.cropH=y-a.cropChangeY-C<=y-w?a.cropOldH-C:a.cropOldH+a.cropChangeY-w,a.cropOffsertY=y-a.cropChangeY-C<=y-w?a.cropChangeY+C:w):(a.cropH=Math.abs(C)+a.cropChangeY<=y?Math.abs(C)-a.cropOldH:y-a.cropOldH-a.cropChangeY,a.cropOffsertY=a.cropChangeY+a.cropOldH):a.changeCropTypeY===2&&(a.cropOldH+C>0?(a.cropH=a.cropOldH+C+a.cropOffsertY<=y?a.cropOldH+C:y-a.cropOffsertY,a.cropOffsertY=a.cropChangeY):(a.cropH=y-a.cropChangeY+Math.abs(C+a.cropOldH)<=y-w?Math.abs(C+a.cropOldH):a.cropChangeY-w,a.cropOffsertY=y-a.cropChangeY+Math.abs(C+a.cropOldH)<=y-w?a.cropChangeY-Math.abs(C+a.cropOldH):w))),a.canChangeX&&a.fixed){var A=a.cropW/a.fixedNumber[0]*a.fixedNumber[1];A+a.cropOffsertY>y?(a.cropH=y-a.cropOffsertY,a.cropW=a.cropH/a.fixedNumber[1]*a.fixedNumber[0]):a.cropH=A}if(a.canChangeY&&a.fixed){var R=a.cropH/a.fixedNumber[1]*a.fixedNumber[0];R+a.cropOffsertX>h?(a.cropW=h-a.cropOffsertX,a.cropH=a.cropW/a.fixedNumber[0]*a.fixedNumber[1]):a.cropW=R}a.$emit("crop-sizing",{cropW:a.cropW,cropH:a.cropH})})},checkCropLimitSize:function(){this.cropW,this.cropH;var r=this.limitMinSize,a=new Array;return a=Array.isArray[r]?r:[r,r],[parseFloat(a[0]),parseFloat(a[1])]},changeCropEnd:function(r){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(r){if(r.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(r),!1;if(r.touches&&r.touches.length===2)return this.crop=!1,this.startMove(r),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var a,d,f="clientX"in r?r.clientX:r.touches[0].clientX,h="clientY"in r?r.clientY:r.touches[0].clientY;a=f-this.cropOffsertX,d=h-this.cropOffsertY,this.cropX=a,this.cropY=d,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(r,a){var d=this,f=0,h=0;r&&(r.preventDefault(),f="clientX"in r?r.clientX:r.touches[0].clientX,h="clientY"in r?r.clientY:r.touches[0].clientY),this.$nextTick(function(){var y,E,w=f-d.cropX,b=h-d.cropY;if(a&&(w=d.cropOffsertX,b=d.cropOffsertY),y=w<=0?0:w+d.cropW>d.w?d.w-d.cropW:w,E=b<=0?0:b+d.cropH>d.h?d.h-d.cropH:b,d.centerBox){var g=d.getImgAxis();y<=g.x1&&(y=g.x1),y+d.cropW>g.x2&&(y=g.x2-d.cropW),E<=g.y1&&(E=g.y1),E+d.cropH>g.y2&&(E=g.y2-d.cropH)}d.cropOffsertX=y,d.cropOffsertY=E,d.$emit("cropMoving",{moving:!0,axis:d.getCropAxis()}),d.$emit("crop-moving",{moving:!0,axis:d.getCropAxis()})})},getImgAxis:function(r,a,d){r=r||this.x,a=a||this.y,d=d||this.scale;var f={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*d,y=this.trueHeight*d;switch(this.rotate){case 0:f.x1=r+this.trueWidth*(1-d)/2,f.x2=f.x1+this.trueWidth*d,f.y1=a+this.trueHeight*(1-d)/2,f.y2=f.y1+this.trueHeight*d;break;case 1:case-1:case 3:case-3:f.x1=r+this.trueWidth*(1-d)/2+(h-y)/2,f.x2=f.x1+this.trueHeight*d,f.y1=a+this.trueHeight*(1-d)/2+(y-h)/2,f.y2=f.y1+this.trueWidth*d;break;default:f.x1=r+this.trueWidth*(1-d)/2,f.x2=f.x1+this.trueWidth*d,f.y1=a+this.trueHeight*(1-d)/2,f.y2=f.y1+this.trueHeight*d}return f},getCropAxis:function(){var r={x1:0,x2:0,y1:0,y2:0};return r.x1=this.cropOffsertX,r.x2=r.x1+this.cropW,r.y1=this.cropOffsertY,r.y2=r.y1+this.cropH,r},leaveCrop:function(r){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(r){var a=this,d=document.createElement("canvas"),f=new Image,h=this.rotate,y=this.trueWidth,E=this.trueHeight,w=this.cropOffsertX,b=this.cropOffsertY;function g(S,_){d.width=Math.round(S),d.height=Math.round(_)}f.onload=function(){if(a.cropW!==0){var S=d.getContext("2d"),_=1;a.high&!a.full&&(_=window.devicePixelRatio),a.enlarge!==1&!a.full&&(_=Math.abs(Number(a.enlarge)));var C=a.cropW*_,A=a.cropH*_,R=y*a.scale*_,L=E*a.scale*_,$=(a.x-w+a.trueWidth*(1-a.scale)/2)*_,P=(a.y-b+a.trueHeight*(1-a.scale)/2)*_;switch(g(C,A),S.save(),h){case 0:a.full?(g(C/a.scale,A/a.scale),S.drawImage(f,$/a.scale,P/a.scale,R/a.scale,L/a.scale)):S.drawImage(f,$,P,R,L);break;case 1:case-3:a.full?(g(C/a.scale,A/a.scale),$=$/a.scale+(R/a.scale-L/a.scale)/2,P=P/a.scale+(L/a.scale-R/a.scale)/2,S.rotate(90*h*Math.PI/180),S.drawImage(f,P,-$-L/a.scale,R/a.scale,L/a.scale)):($+=(R-L)/2,P+=(L-R)/2,S.rotate(90*h*Math.PI/180),S.drawImage(f,P,-$-L,R,L));break;case 2:case-2:a.full?(g(C/a.scale,A/a.scale),S.rotate(90*h*Math.PI/180),$/=a.scale,P/=a.scale,S.drawImage(f,-$-R/a.scale,-P-L/a.scale,R/a.scale,L/a.scale)):(S.rotate(90*h*Math.PI/180),S.drawImage(f,-$-R,-P-L,R,L));break;case 3:case-1:a.full?(g(C/a.scale,A/a.scale),$=$/a.scale+(R/a.scale-L/a.scale)/2,P=P/a.scale+(L/a.scale-R/a.scale)/2,S.rotate(90*h*Math.PI/180),S.drawImage(f,-P-R/a.scale,$,R/a.scale,L/a.scale)):($+=(R-L)/2,P+=(L-R)/2,S.rotate(90*h*Math.PI/180),S.drawImage(f,-P-R,$,R,L));break;default:a.full?(g(C/a.scale,A/a.scale),S.drawImage(f,$/a.scale,P/a.scale,R/a.scale,L/a.scale)):S.drawImage(f,$,P,R,L)}S.restore()}else{var V=y*a.scale,z=E*a.scale,K=d.getContext("2d");switch(K.save(),h){case 0:g(V,z),K.drawImage(f,0,0,V,z);break;case 1:case-3:g(z,V),K.rotate(90*h*Math.PI/180),K.drawImage(f,0,-z,V,z);break;case 2:case-2:g(V,z),K.rotate(90*h*Math.PI/180),K.drawImage(f,-V,-z,V,z);break;case 3:case-1:g(z,V),K.rotate(90*h*Math.PI/180),K.drawImage(f,-V,0,V,z);break;default:g(V,z),K.drawImage(f,0,0,V,z)}K.restore()}r(d)},this.img.substr(0,4)!=="data"&&(f.crossOrigin="Anonymous"),f.src=this.imgs},getCropData:function(r){var a=this;this.getCropChecked(function(d){r(d.toDataURL("image/"+a.outputType,a.outputSize))})},getCropBlob:function(r){var a=this;this.getCropChecked(function(d){d.toBlob(function(f){return r(f)},"image/"+a.outputType,a.outputSize)})},showPreview:function(){var r=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){r.isCanShow=!0},16);var a=this.cropW,d=this.cropH,f=this.scale,h={};h.div={width:"".concat(a,"px"),height:"".concat(d,"px")};var y=(this.x-this.cropOffsertX)/f,E=(this.y-this.cropOffsertY)/f;h.w=a,h.h=d,h.url=this.imgs,h.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(f,")translate3d(").concat(y,"px, ").concat(E,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},h.html=`
  211. <div class="show-preview" style="width: `.concat(h.w,"px; height: ").concat(h.h,`px,; overflow: hidden">
  212. <div style="width: `).concat(a,"px; height: ").concat(d,`px">
  213. <img src=`).concat(h.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
  214. scale(`).concat(f,")translate3d(").concat(y,"px, ").concat(E,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,`deg)">
  215. </div>
  216. </div>`),this.$emit("realTime",h),this.$emit("real-time",h)},reload:function(){var r=this,a=new Image;a.onload=function(){r.w=parseFloat(window.getComputedStyle(r.$refs.cropper).width),r.h=parseFloat(window.getComputedStyle(r.$refs.cropper).height),r.trueWidth=a.width,r.trueHeight=a.height,r.original?r.scale=1:r.scale=r.checkedMode(),r.$nextTick(function(){r.x=-(r.trueWidth-r.trueWidth*r.scale)/2+(r.w-r.trueWidth*r.scale)/2,r.y=-(r.trueHeight-r.trueHeight*r.scale)/2+(r.h-r.trueHeight*r.scale)/2,r.loading=!1,r.autoCrop&&r.goAutoCrop(),r.$emit("img-load","success"),r.$emit("imgLoad","success"),setTimeout(function(){r.showPreview()},20)})},a.onerror=function(){r.$emit("imgLoad","error"),r.$emit("img-load","error")},a.src=this.imgs},checkedMode:function(){var r=1,a=(this.trueWidth,this.trueHeight),d=this.mode.split(" ");switch(d[0]){case"contain":this.trueWidth>this.w&&(r=this.w/this.trueWidth),this.trueHeight*r>this.h&&(r=this.h/this.trueHeight);break;case"cover":(a*=r=this.w/this.trueWidth)<this.h&&(r=(a=this.h)/this.trueHeight);break;default:try{var f=d[0];if(f.search("px")!==-1){f=f.replace("px","");var h=parseFloat(f)/this.trueWidth,y=1,E=d[1];E.search("px")!==-1&&(E=E.replace("px",""),y=(a=parseFloat(E))/this.trueHeight),r=Math.min(h,y)}if(f.search("%")!==-1&&(f=f.replace("%",""),r=parseFloat(f)/100*this.w/this.trueWidth),d.length===2&&f==="auto"){var w=d[1];w.search("px")!==-1&&(w=w.replace("px",""),r=(a=parseFloat(w))/this.trueHeight),w.search("%")!==-1&&(w=w.replace("%",""),r=(a=parseFloat(w)/100*this.h)/this.trueHeight)}}catch{r=1}}return r},goAutoCrop:function(r,a){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var d=this.w,f=this.h;if(this.centerBox){var h=Math.abs(this.rotate)%2>0,y=(h?this.trueHeight:this.trueWidth)*this.scale,E=(h?this.trueWidth:this.trueHeight)*this.scale;d=y<d?y:d,f=E<f?E:f}var w=r||parseFloat(this.autoCropWidth),b=a||parseFloat(this.autoCropHeight);w!==0&&b!==0||(w=.8*d,b=.8*f),w=w>d?d:w,b=b>f?f:b,this.fixed&&(b=w/this.fixedNumber[0]*this.fixedNumber[1]),b>this.h&&(w=(b=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(w,b)}},changeCrop:function(r,a){var d=this;if(this.centerBox){var f=this.getImgAxis();r>f.x2-f.x1&&(a=(r=f.x2-f.x1)/this.fixedNumber[0]*this.fixedNumber[1]),a>f.y2-f.y1&&(r=(a=f.y2-f.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=r,this.cropH=a,this.checkCropLimitSize(),this.$nextTick(function(){d.cropOffsertX=(d.w-d.cropW)/2,d.cropOffsertY=(d.h-d.cropH)/2,d.centerBox&&d.moveCrop(null,!0)})},refresh:function(){var r=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){r.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(r,a,d){r=r||this.x,a=a||this.y,d=d||this.scale;var f=!0;if(this.centerBox){var h=this.getImgAxis(r,a,d),y=this.getCropAxis();h.x1>=y.x1&&(f=!1),h.x2<=y.x2&&(f=!1),h.y1>=y.y1&&(f=!1),h.y2<=y.y2&&(f=!1)}return f}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var r=this,a=navigator.userAgent;this.isIOS=!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(d,f,h){for(var y=atob(this.toDataURL(f,h).split(",")[1]),E=y.length,w=new Uint8Array(E),b=0;b<E;b++)w[b]=y.charCodeAt(b);d(new Blob([w],{type:r.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};s(1);var m=function(r,a,d,f,h,y,E,w){var b,g=typeof r=="function"?r.options:r;if(a&&(g.render=a,g.staticRenderFns=d,g._compiled=!0),f&&(g.functional=!0),y&&(g._scopeId="data-v-"+y),E?(b=function(C){(C=C||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(C=__VUE_SSR_CONTEXT__),h&&h.call(this,C),C&&C._registeredComponents&&C._registeredComponents.add(E)},g._ssrRegister=b):h&&(b=w?function(){h.call(this,this.$root.$options.shadowRoot)}:h),b)if(g.functional){g._injectStyles=b;var S=g.render;g.render=function(C,A){return b.call(A),S(C,A)}}else{var _=g.beforeCreate;g.beforeCreate=_?[].concat(_,b):[b]}return{exports:r,options:g}}(u,i,[],!1,null,"6dae58fd",null);m.options.__file="src/vue-cropper.vue";var p=m.exports;s.d(o,"VueCropper",function(){return p});var v=function(r){r.component("VueCropper",p)};typeof window<"u"&&window.Vue&&v(window.Vue),o.default={version:"0.5.8",install:v,VueCropper:p,vueCropper:p}}])})})(Ar);const zu={name:"ui-cropper"},xt=Object.assign(zu,{props:{fixedNumber:{type:Array,default:()=>[1,1]},img:{type:String},cb:{type:Function}},setup(e){const t=e,n=500,o=t.fixedNumber,s=p=>o[1]/o[0]*p,i={outputSize:1,outputType:"png",info:!1,full:!0,fixed:!0,fixedNumber:o,canMove:!0,canMoveBox:!0,fixedBox:!1,original:!1,autoCrop:!0,autoCropWidth:n/2,autoCropHeight:s(n/2),centerBox:!0,mode:"contain",maxImgSize:400,...t},l=U(()=>({width:n+"px",height:s(n)+"px"})),c=I(),u={imgLoad(p){p!=="success"&&t.cb(q.t("sys.imgloaderr"))}},m=async p=>{if(p==="ok"){const v=await Promise.all([new Promise(r=>c.value.getCropBlob(r)),new Promise(r=>c.value.getCropData(r))]);t.cb(null,v)}else t.cb()};return(p,v)=>(x(),Z(tr,{title:p.$t("sys.crop"),func:m},{content:Y(()=>[H("div",{class:"cropper-layer",style:oe(O(l))},[Q(O(Ar.exports.VueCropper),Ke({ref_key:"vmRef",ref:c},i,Us(u)),null,16)],4)]),_:1},8,["title"]))}});xt.use=function(t){xt.open=function(n){return Pe(n)==="String"&&(n={img:n}),!n||!n.img?Promise.reject(q.t("sys.plcCropImg")):new Promise((o,s)=>{const{destroy:i}=lt(xt,{app:t,props:{...n,cb(l,c){i(),l?s(l):o(c)}}})})}};console.log(xt);const Xu={class:"bubble-layer"},ju=H("div",{class:"bubble-arr"},null,-1),Yu={name:"ui-bubble"},Vn=Object.assign(Yu,{props:{type:{type:String,default:"right"},show:{type:Boolean,default:!0},level:{type:String,require:!1}},setup(e){return(t,n)=>(x(),Z(Je,{name:"fade"},{default:Y(()=>[e.show?(x(),k("div",{key:0,class:j(["bubble",{[e.type]:!0,[e.level]:!0}]),onClick:n[0]||(n[0]=js(()=>{},["stop"]))},[H("div",Xu,[ju,N(t.$slots,"default")])],2)):B("",!0)]),_:3}))}}),Fu={key:0,class:"default-msg"},qu={key:0,class:"default-msg"},Gu={name:"ui-guide"},Ku=Object.assign(Gu,{props:{mark:{type:String},msg:{type:String},floatClass:{type:String},type:{type:String,default:"top"}},setup(e){const t=e,n=document.body,o=I(),s=I(!0);t.mark?(s.value=!localStorage.getItem(t.mark),s.value&&Ge(s,(l,c)=>{!l&&c&&setTimeout(()=>{localStorage.setItem(t.mark,1)})})):s.value=!0;const i=I(s.value);return(l,c)=>{const u=ve("ui-icon");return i.value&&(e.msg||l.$slots.default)?(x(),k("div",{key:0,class:j(["guide",{"floating-mode":e.floatClass}]),ref_key:"guideRef",ref:o},[N(l.$slots,"content",{show:s.value}),e.floatClass?(x(),Z(an,{key:0,mount:O(n),refer:o.value,dire:"bottom",class:j(`guide-floating ${t.floatClass} ${e.type}`)},{default:Y(()=>[Q(O(Vn),{show:s.value,class:"guide-bubble",type:e.type},{default:Y(()=>[e.msg?(x(),k("p",Fu,X(e.msg),1)):N(l.$slots,"default",{key:1}),H("span",{class:"guide-close",onClick:c[0]||(c[0]=m=>s.value=!1)},[Q(u,{type:"close",ctrl:""})])]),_:3},8,["show","type"])]),_:3},8,["mount","refer","class"])):(x(),Z(O(Vn),{key:1,show:s.value,class:"guide-bubble",type:e.type},{default:Y(()=>[e.msg?(x(),k("p",qu,X(e.msg),1)):N(l.$slots,"default",{key:1}),H("span",{class:"guide-close",onClick:c[1]||(c[1]=m=>s.value=!1)},[Q(u,{type:"close",ctrl:""})])]),_:3},8,["show","type"]))],2)):N(l.$slots,"content",{key:1,show:!1})}}}),Ju=(e,t=e)=>{const n=I(!1),o=document.body,s=c=>{t.value.contains(c.target)||(n.value=!1)},i=()=>n.value=!0;let l=e.value;return pe(()=>{l&&l.removeEventListener("click",i),e.value&&e.value.addEventListener("click",i),l=e.value}),pe(()=>{t.value&&n.value?o.addEventListener("mousedown",s,{capture:!0}):o.removeEventListener("mousedown",s,{capture:!0})}),yt(()=>{l&&l.removeEventListener("click",i),o.removeEventListener("mousedown",s)}),n},Qu=me({name:"ui-more",emits:{click:()=>!0},inheritAttrs:!1,props:{isTransform:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},dire:{type:String,default:"right-top"}},setup(e,{attrs:t,emit:n}){const o=I(),s=I(),i=U(()=>{var u;return(u=o.value)==null?void 0:u.vm}),l=Ju(i,U(()=>{var u;return(u=s.value)==null?void 0:u.vmRef})),c=u=>{l.value=!1,n("click",u.value)};return{showOption:l,floatVM:s,vm:o,attrs:t,referVM:i,mountel:document.body,clickHandler:c}},components:{Floating:an,Icon:ue}}),Zu=["onClick"];function ed(e,t,n,o,s,i){const l=ve("Icon"),c=ve("Floating");return x(),k(ne,null,[Q(l,Ke({class:"ui-more",ref:"vm"},e.attrs,{type:"more",ctrl:""}),null,16),Q(c,{class:j(["more-float",{show:e.showOption}]),dire:e.dire,isTransform:e.isTransform,mount:e.mountel,refer:e.referVM,ref:"floatVM"},{default:Y(()=>[(x(!0),k(ne,null,xe(e.options,u=>(x(),k("div",{class:"option",onClick:m=>e.clickHandler(u)},X(u.label),9,Zu))),256))]),_:1},8,["dire","class","isTransform","mount","refer"])],64)}const td=de(Qu,[["render",ed]]),nd=qs(Gs,xt,Ce,$e,qe,Ia,Ks,er,xc,Cc,Tc,Ic,Iu,ue,_r,an,kr,Tr,Bu,Wu,Vn,Ku,pc,td);function od(e){nd.forEach(t=>t.install(e))}const sd={name:"ui-editor-layout"},rd={class:"ui-editor-layout"};function id(e,t,n,o,s,i){return x(),k("div",rd,[N(e.$slots,"default")])}const ad=de(sd,[["render",id]]),ld={name:"ui-editor-head"},cd={class:"ui-editor-head strengthen-bottom"};function ud(e,t,n,o,s,i){return x(),k("div",cd,[N(e.$slots,"default")])}const dd=de(ld,[["render",ud]]);/*!
  217. * x-scrollbar 自定义滚动条插件
  218. * 版本: v3.1.0
  219. * 作者: 清晨的阳光(QQ:765550360)
  220. * 许可: MIT
  221. * https://gitee.com/xujz520/x-scrollbar
  222. */class fd{constructor(t,n){if(this.$dom=t,this.$dom.classList.contains("x-scrollbar"))return;this.$dom.classList.add("x-scrollbar"),this.isMobile=window.navigator.userAgent.toLowerCase().indexOf("mobile")!=-1;let o={autoUpdate:!0,preventDefault:!0,onlyHorizontal:!1,autoHide:!0},s={thumbSize:"5px",trackBackground:"#ddd",thumbBackground:"#5f5f5f",thumbRadius:"5px"};Object.assign(this,o,s,n);let i=this.$dom.scrollLeft,l=this.$dom.scrollTop;this.$container=this.html2dom('<div class="x-scrollbar__container"></div>'),this.$content=this.html2dom('<div class="x-scrollbar__content"></div>'),this.$trackX=this.html2dom('<div class="x-scrollbar__track-x"></div>'),this.$trackY=this.html2dom('<div class="x-scrollbar__track-y"></div>'),this.$thumbX=this.html2dom('<div class="x-scrollbar__thumb-x"></div>'),this.$thumbY=this.html2dom('<div class="x-scrollbar__thumb-y"></div>'),this.$trackX.appendChild(this.$thumbX),this.$trackY.appendChild(this.$thumbY);let c=[];Array.prototype.forEach.call(this.$dom.childNodes,function(p){c.push(p)}),c.forEach(function(p){this.$content.appendChild(p)}.bind(this)),this.$container.appendChild(this.$content),this.$dom.appendChild(this.$container);let u=getComputedStyle(this.$dom),m=`${u.paddingTop} ${u.paddingRight} ${u.paddingBottom} ${u.paddingLeft}`;m!="0px 0px 0px 0px"&&(this.$dom.style.padding="0px 0px 0px 0px",this.$container.style.padding=m),this.$container.scrollLeft=i,this.$container.scrollTop=l,this.preventDefault&&this.$container.classList.add("x-scrollbar__container--preventDefault"),!this.isMobile&&(this.$dom.appendChild(this.$trackX),this.$dom.appendChild(this.$trackY),this.$container.classList.add("x-scrollbar__container--hideScrollbar"),JSON.stringify(s)!=JSON.stringify(Object.keys(s).reduce((p,v)=>({...p,[v]:this[v]}),{}))&&this.style(),this.autoHide||this.$dom.classList.add("x-scrollbar-keep"),this.bindScroll(),this.bindDrag(),this.onlyHorizontal&&this.bindWheel(),this.autoUpdate?this.resizeObserver():this.update())}setThumbSize(){this.clientWidth=this.$container.clientWidth,this.clientHeight=this.$container.clientHeight,this.scrollWidth=this.$container.scrollWidth,this.scrollHeight=this.$container.scrollHeight,this.hasXScrollbar=this.scrollWidth>this.clientWidth,this.hasYScrollbar=this.scrollHeight>this.clientHeight,this.thumbXWidth=Math.max(this.clientWidth/this.scrollWidth*this.clientWidth,30),this.thumbYHeight=Math.max(this.clientHeight/this.scrollHeight*this.clientHeight,30),this.thumbXMaxLeft=this.clientWidth-this.thumbXWidth,this.thumbYMaxTop=this.clientHeight-this.thumbYHeight,this.maxScrollLeft=this.scrollWidth-this.clientWidth,this.maxScrollTop=this.scrollHeight-this.clientHeight,this.$trackX.style.display=this.hasXScrollbar?"block":"none",this.$trackY.style.display=this.hasYScrollbar?"block":"none",this.$thumbX.style.width=this.thumbXWidth+"px",this.$thumbY.style.height=this.thumbYHeight+"px"}bindDrag(){let t=null,n=null;this.$thumbX.addEventListener("mousedown",o=>{this.$trackX.classList.add("x-scrollbar__track--draging"),this.thumbXActive=!0,t=o.screenX}),this.$thumbY.addEventListener("mousedown",o=>{this.$trackY.classList.add("x-scrollbar__track--draging"),this.thumbYActive=!0,n=o.screenY}),document.addEventListener("mouseup",o=>{this.$trackX.classList.remove("x-scrollbar__track--draging"),this.$trackY.classList.remove("x-scrollbar__track--draging"),this.thumbXActive=!1,this.thumbYActive=!1}),document.addEventListener("mousemove",o=>{!(this.thumbXActive||this.thumbYActive)||(o.preventDefault(),requestAnimationFrame(()=>{if(this.thumbXActive){let s=o.screenX-t;t=o.screenX;let i=Math.max(Math.min(parseFloat(this.$thumbX.style.left||0)+s,this.thumbXMaxLeft),0);this.$thumbX.style.left=i+"px",this.$container.scrollLeft=i/this.thumbXMaxLeft*this.maxScrollLeft}else{let s=o.screenY-n;n=o.screenY;let i=Math.max(Math.min(parseFloat(this.$thumbY.style.top||0)+s,this.thumbYMaxTop),0);this.$thumbY.style.top=i+"px",this.$container.scrollTop=i/this.thumbYMaxTop*this.maxScrollTop}}))})}bindWheel(){let t=(n,o)=>Math.abs(o-n)<=1?o:n+(o-n)/4;this.$container.addEventListener("wheel",n=>{if(!!this.hasXScrollbar&&n.deltaY&&!n.shiftKey){if(this.scrollLeft=Math.max(Math.min((this.scrollLeft||this.$container.scrollLeft)+(n.deltaY>0?100:-100),this.maxScrollLeft),0),this.left=this.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft,(this.preventDefault||!(this.scrollLeft==0||this.scrollLeft==this.maxScrollLeft))&&(n.preventDefault(),n.stopPropagation()),this.reqId)return;let o=this.$container.scrollLeft,s=parseFloat(this.$thumbX.style.left||0),i=()=>{o=t(o,this.scrollLeft),s=t(s,this.left),this.$container.scrollLeft=o,this.$thumbX.style.left=s+"px",this.innerScroll=!0,o!=this.scrollLeft?this.reqId=requestAnimationFrame(i):(this.reqId=null,this.scrollLeft=null,requestAnimationFrame(()=>this.innerScroll=!1))};i()}})}bindScroll(){this.$container.addEventListener("scroll",()=>{this.thumbXActive||this.thumbYActive||this.innerScroll||(this.hasXScrollbar&&(this.$thumbX.style.left=this.$container.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft+"px"),this.hasYScrollbar&&(this.$thumbY.style.top=this.$container.scrollTop/this.maxScrollTop*this.thumbYMaxTop+"px"))})}resizeObserver(){this.$resizeObserver=new ResizeObserver(t=>{let n=t[0].contentRect;!(n.width||n.height)||this.update()}),this.$resizeObserver.observe(this.$container),this.$resizeObserver.observe(this.$content)}update(){this.setThumbSize(),this.hasXScrollbar&&(this.$thumbX.style.left=this.$container.scrollLeft/this.maxScrollLeft*this.thumbXMaxLeft+"px"),this.hasYScrollbar&&(this.$thumbY.style.top=this.$container.scrollTop/this.maxScrollTop*this.thumbYMaxTop+"px")}html2dom(t){let n=document.createElement("div");n.innerHTML=t;let o=n.children;return o.length<=1?o[0]:o}style(){let t=`
  223. /* \u8F68\u9053 */
  224. .x-scrollbar__track-x {
  225. height: ${parseInt(this.thumbSize)*2+4}px;
  226. }
  227. .x-scrollbar__track-y {
  228. width: ${parseInt(this.thumbSize)*2+4}px;
  229. }
  230. /* \u6ED1\u5757 */
  231. .x-scrollbar__track-x > .x-scrollbar__thumb-x,
  232. .x-scrollbar__track-y > .x-scrollbar__thumb-y {
  233. background: ${this.thumbBackground};
  234. border-radius: ${parseInt(this.thumbRadius||0)!=5?parseInt(this.thumbRadius||0):parseInt(this.thumbSize)}px;
  235. }
  236. .x-scrollbar__track-x > .x-scrollbar__thumb-x {
  237. height: ${parseInt(this.thumbSize)}px;
  238. }
  239. .x-scrollbar__track-y > .x-scrollbar__thumb-y {
  240. width: ${parseInt(this.thumbSize)}px;
  241. }
  242. /* \u6FC0\u6D3B\u540E\u5927\u5C0F */
  243. .x-scrollbar__track-x:hover > .x-scrollbar__thumb-x,
  244. .x-scrollbar__track--draging > .x-scrollbar__thumb-x {
  245. height: ${parseInt(this.thumbSize)*2}px;
  246. }
  247. .x-scrollbar__track-y:hover > .x-scrollbar__thumb-y,
  248. .x-scrollbar__track--draging > .x-scrollbar__thumb-y {
  249. width: ${parseInt(this.thumbSize)*2}px;
  250. }
  251. /* \u9F20\u6807\u79FB\u5165\u8F68\u9053 || \u62D6\u52A8\u8FC7\u7A0B\u4E2D => \u663E\u793A\u8F68\u9053 & \u9AD8\u4EAE\u6ED1\u5757 */
  252. .x-scrollbar__track-x:hover,
  253. .x-scrollbar__track-y:hover,
  254. .x-scrollbar__track-x.x-scrollbar__track--draging,
  255. .x-scrollbar__track-y.x-scrollbar__track--draging {
  256. background: ${this.trackBackground||"transparent"};
  257. }`;this.key="x-scrollbar-"+Math.abs((1+Math.random())*Date.now()|0).toString(16),this.$dom.setAttribute(this.key,"");let n=this.html2dom(`<style ${this.key}></style>`);t=t.replaceAll(`
  258. .x-scrollbar`,`
  259. [${this.key}] > .x-scrollbar`),t=t.replaceAll(";"," !important;"),n.innerHTML=t,document.querySelector("head").appendChild(n)}}let ps=!1;const pd=me({name:"ui-editor-menu",props:{menu:{type:Array,default:[]},name:{type:String}},setup(e,t){const n=I(null),o=s=>{t.emit("menu-click",s)};return Ot(()=>{ps==!1&&(ps=!0,new fd(n.value))}),{scrollbar:n,onMenuClick:o}},components:{UIIcon:ue,UIMenuItem:_r}}),hd={class:"ui-editor-menu strengthen-right"},md={ref:"scrollbar"},gd=["onClick"];function vd(e,t,n,o,s,i){const l=ve("UIMenuItem");return x(),k("div",hd,[e.$slots.first?N(e.$slots,"first",{key:0}):B("",!0),H("div",md,[H("ul",null,[(x(!0),k(ne,null,xe(e.menu,c=>(x(),k("li",{key:c,class:j(["ui-editor-menu-item",{active:e.$slots.default&&c.name==e.name}]),onClick:u=>!e.$slots.default&&e.onMenuClick(c.name)},[e.$slots.default?N(e.$slots,"default",{key:0,raw:c}):(x(),Z(l,{key:1,text:c.title,icon:c.icon,active:c.name==e.name},null,8,["text","icon","active"]))],10,gd))),128))])],512),e.$slots.attach?N(e.$slots,"attach",{key:1}):B("",!0)])}const yd=de(pd,[["render",vd]]),bd=me({name:"ui-editor-main"}),wd={class:"ui-editor-main"};function Sd(e,t,n,o,s,i){return x(),k("div",wd,[N(e.$slots,"default")])}const $d=de(bd,[["render",Sd]]),Ed={name:"ui-editor-view"},xd={class:"ui-editor-view"};function _d(e,t,n,o,s,i){return x(),k("div",xd,[N(e.$slots,"default")])}const Cd=de(Ed,[["render",_d]]);const kd=me({name:"ui-editor-toolbar",props:{toolbar:Boolean,disabledAnimation:Boolean},setup(e,t){return{props:e}}}),Td={key:0,class:"ui-editor-toolbar strengthen-left"},Ad={key:1,class:"ui-editor-toolbar strengthen-left"};function Rd(e,t,n,o,s,i){return e.disabledAnimation?e.props.toolbar?(x(),k("div",Ad,[N(e.$slots,"default",{},void 0,!0)])):B("",!0):(x(),Z(Je,{key:0,name:"slide-up",mode:"in-out"},{default:Y(()=>[e.props.toolbar?(x(),k("div",Td,[N(e.$slots,"default",{},void 0,!0)])):B("",!0)]),_:3}))}const Od=de(kd,[["render",Rd],["__scopeId","data-v-6b05c561"]]);const Id=me({name:"ui-editor-toolbox",props:{toolbox:Boolean,disabledAnimation:Boolean},setup(e,t){return{props:e}}}),Ld={key:0,class:"ui-editor-toolbox strengthen-left"},Pd={key:1,class:"ui-editor-toolbox strengthen-left"};function Md(e,t,n,o,s,i){return e.disabledAnimation?e.props.toolbox?(x(),k("div",Pd,[N(e.$slots,"default",{},void 0,!0)])):B("",!0):(x(),Z(Je,{key:0,name:"slide-right",mode:"in-out"},{default:Y(()=>[e.props.toolbox?(x(),k("div",Ld,[N(e.$slots,"default",{},void 0,!0)])):B("",!0)]),_:3}))}const Nd=de(Id,[["render",Md],["__scopeId","data-v-ea5d90a3"]]),Hd=qs(ad,dd,yd,$d,Cd,Od,Nd);function Dd(e){Hd.forEach(t=>t.install(e))}const Rr="loading",go=`__${Rr}`,Bd=(e,t,n)=>{e[go]={mountEl:document.createElement("div")}},Ud=(e,t,n)=>{const o=e[go];t.value&&!o.loadVnode?(o.loadVnode=Q($e,{el:e,size:10}),Et(o.loadVnode,o.mountEl)):!t.value&&o.loadVnode&&(o.loadVnode=null,Et(null,o.mountEl))},Vd=e=>{delete e[go]},hs={name:Rr,hook:{beforeMount:Bd,beforeUpdate:Ud,beforeUnmount:Vd}},Wd=e=>{e.directive(hs.name,hs.hook)},zd={install:e=>{Wd(e),od(e),Dd(e)}},Or=e=>{$e.show();const t=typeof e=="function"?e():e;return t.finally(()=>$e.hide()),t},Ph=(e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},Xd=e=>(...t)=>Or(()=>e(...t)),ms=e=>Di(Xd(e)),jd=()=>$e.show(),Yd=()=>$e.hide(),Fd="__pre__",qd="__last__",Gd=()=>{const e={},t=s=>[Fd+s.toString(),s,qd+s.toString()],n=(s,i)=>{const l=t(s);return i?i.pre?l[0]:i.last?l[2]:l[0]:l[0]};return{on:(s,i,l)=>{const c=n(s,l);e[c]||(e[c]=[]),e[c].includes(i)||e[c].push(i)},off:(s,i,l)=>{const c=l?[n(s,l)]:t(s);for(const u of c)i?e[u]&&(e[u]=e[u].filter(m=>m!==i)):e[u]&&delete e[u]},emit:async(s,i)=>{const l=t(s);for(const c of l)if(e[c])for(const u of e[c])await u(i)}}},Mh=(()=>{const e={},t=(n,o,s,i=0)=>{const l=document.createElement("script");l.src=n,document.body.appendChild(l),l.onload=o,l.onerror=()=>{i>0?t(n,o,s,--i):s()}};return n=>(e[n]||(e[n]=new Promise((o,s)=>{t(n,o,s,3)})),e[n])})(),gs=e=>()=>Kd(e),Kd=e=>{e.forEach(t=>t())},Nh=e=>typeof e=="string"?e:e.url,Hh=(e=0)=>new Promise(t=>setTimeout(t,e)),Jd=e=>{const t=new FormData;for(const[n,o]of Object.entries(e))t.append(n,o);return t},Qd=e=>{let t,n=!1;const o=()=>{n&&(t&&t(),t=void 0,n=!1)},s=()=>{Te(()=>{n||(n=!0,t=e())})};Jn(s),Ot(s),Hs(o),yt(o)},Me={EDIT:2,NOW:4,LOGIN:8},ze=I(Me.NOW),Zd=U(()=>!!(ze.value&Me.EDIT));U(()=>!!(ze.value&Me.LOGIN));const Ir=U(()=>!(ze.value&Me.NOW));U(()=>!!(ze.value&Me.NOW));const Dh=U(()=>{const e=ye.value.find(t=>t.type===vo.SWSS);return e?e.title+" | "+q.t("sys.modelTitle"):q.t("sys.title")});let ef=0;const tf=e=>e.includes("__currentTempIndex__"),ln=()=>`__currentTempIndex__${ef++}`,Le=Gd(),nf=e=>{ze.value|=Me.EDIT,e&&Le.on("leave",e)},of=e=>{ze.value&=~Me.NOW,e&&Le.on("save",e)},Lr=()=>{Le.off("save"),ze.value|=Me.NOW},sf=()=>{Lr(),Le.off("leave"),ze.value&=~Me.EDIT},Bh=async()=>{await Le.emit("save"),Lr(),rf()},rf=async()=>{Ir.value&&!await qe.confirm(q.t("sys.unSaveConfirm"))||(await Le.emit("leave"),sf())};let Wn=!1;const af=e=>{Wn=!0,e(),Te(()=>Wn=!1)},Lt=(e,t)=>{let n=!1,o=!1;const s=(t.recovery||t.backup)&&(()=>{o=!0,t.recovery&&t.recovery(),t.backup&&t.backup(),t.leave&&t.leave(),setTimeout(()=>o=!1,100)}),i=async()=>{n=!0;try{await t.save()}catch(c){throw n=!1,c}s&&Le.off("leave",s,{last:!0}),t.backup&&t.backup(),n=!1},l=(c,u)=>{n||Wn||o||((!t.isUpdate||t.isUpdate(c,u))&&(Zd.value||nf(),Ir.value||of(),i&&Le.on("save",i,{last:!0})),s&&Le.on("leave",s,{last:!0}))};return()=>(t.backup&&t.backup(),Ge(e,l,{deep:!0}))},Uh=(e,t)=>{const n=Lt(e,t);Qd(n)},lf=_e(I("auto")),cf=_e(I(!1)),uf=_e(I(!0)),df=_e(I(!1)),ff=_e(I(!0)),pf=_e(I(!0)),hf=_e(I(!0)),mf=_e(I(null)),Pr=_e(I(new Map)),gf=_e(I(!1)),vf=_e(I(new WeakSet)),it=Sa({viewMode:lf,showToolbar:cf,showRightPano:uf,showLeftPano:df,showLeftCtrlPano:ff,shwoRightCtrlPano:pf,showTaggings:hf,currentModel:mf,showModelsMap:Pr,modelsChangeStore:gf,showTaggingPositions:vf}),J=Bi(location.search);J.fushId=Number(J.fushId);const yf=J.baseURL?J.baseURL:"",Vh=e=>~e.indexOf("base64")||~e.indexOf("bolb")||~e.indexOf("//")?e:`${J.staticURL}/${e}`;var zn=(e=>(e[e.TOKEN_INVALID=4008]="TOKEN_INVALID",e[e.SUCCESS=200]="SUCCESS",e))(zn||{});const vs={[4008]:q.t("sys.TOKEN_INVALID"),[200]:q.t("sys.SUCCESS")},Mr={"Content-Type":"multipart/form-data"},Nr=`/laser/sceneFusion/${J.m}/list/${J.id}`,Hr=`/laser/sceneFusion/${J.m}/uploadFile/${J.id}`,Dr=`/laser/sceneFusion/${J.m}/updateModel`,Br=`/laser/sceneFusion/${J.m}/del`,Ur=`/laser/sceneTag/${J.m}/list/${J.fushId}`,Vr=`/laser/sceneTag/${J.m}/add`,Wr=`/laser/sceneTag/${J.m}/edit`,zr=`/laser/sceneTag/${J.m}/delete`,Xr=`/laser/caseTagPoint/${J.m}/list/`,jr=`/laser/caseTagPoint/${J.m}/place`,Yr=`/laser/sceneTag/${J.m}/edit`,Fr=`/laser/caseTagPoint/${J.m}/delete`,bf=`/laser/fusionGuide/${J.m}/list/${J.fushId}`,wf=`/laser/fusionGuide/${J.m}/add`,Sf=`/laser/fusionGuide/${J.m}/edit`,$f=`/laser/fusionGuide/${J.m}/delete`,Ef=`/laser/oss/${J.m}/fuse-code/upload/fire`,xf=()=>{const e=br.create(),t={token:localStorage.getItem("token"),unTokenSet:[],unReqErrorSet:[],unResErrorSet:[],resErrorHandler:[],reqErrorHandler:[],unLoadingSet:[],hook:[]},n=$=>{let P=t[$];const V={set(z){P=t[$]=z}};return Array.isArray(P)?(V.add=(...z)=>{P.push(...z)},V.del=(...z)=>{z?V.set(P.filter(K=>!(z!=null&&z.includes(K)))):P.length=0}):V.del=()=>{t[$]=void 0},V},o=()=>t.token,s=$=>{localStorage.setItem("token",$),t.token=$},i=()=>{localStorage.removeItem("token"),t.token=null},{set:l,add:c,del:u}=n("unTokenSet"),{set:m,add:p,del:v}=n("resErrorHandler"),{set:r,add:a,del:d}=n("unReqErrorSet"),{set:f,add:h,del:y}=n("reqErrorHandler"),{set:E,add:w,del:b}=n("unResErrorSet"),{set:g,add:S,del:_}=n("hook"),C=$=>{e.defaults.baseURL=$},A=($,P)=>P.url&&$.includes(P.url),R=($,...P)=>{Promise.resolve().then(()=>{const V=`${$}ErrorHandler`;t[V].forEach(z=>z(...P))})};return e.interceptors.request.use($=>{for(const P of t.hook)P.before($);return A(t.unTokenSet,$)||t.token&&($.headers={...$.headers,token:t.token}),$}),e.interceptors.response.use($=>{var P;for(const V of t.hook)V.after($.config);if(A(t.unResErrorSet,$.config))return $;if($.status!==200)throw R("res",$),new Error($.statusText);if($.data.code!==zn.SUCCESS)throw R("res",$,$.data),$.data.code===zn.TOKEN_INVALID&&i(),new Error((P=$==null?void 0:$.data)==null?void 0:P.message);return $.data.data},$=>{for(const P of t.hook)P.after($.config);throw A(t.unResErrorSet,$.config)||R("res",$.response),new Error($.response.statusText)}),{axios:e,getToken:o,setToken:s,delToken:i,setUnsetTokenURLS:l,addUnsetTokenURLS:c,delUnsetTokenURLS:u,setResErrorHandler:m,addResErrorHandler:p,delResErrorHandler:v,setUnsetReqErrorURLS:r,addUnsetReqErrorURLS:a,delUnsetReqErrorURLS:d,setReqErrorHandler:f,addReqErrorHandler:h,delReqErrorHandler:y,setUnsetResErrorURLS:E,addUnsetResErrorURLS:w,delUnsetResErrorURLS:b,setDefaultURI:C,setHook:g,addHook:S,delHook:_}},_f=xf(),{axios:ce,addUnsetTokenURLS:Cf,addReqErrorHandler:kf,addResErrorHandler:Tf,delReqErrorHandler:Wh,delResErrorHandler:zh,getToken:Xh,setToken:jh,delToken:Yh,setDefaultURI:Af,addHook:Rf,delHook:Fh,setHook:qh}=_f;kf(e=>{Ce.error(e.message)});Tf((e,t)=>{if(e.status!==200)Ce.error(e.statusText);else if(t){const n=t.code&&vs[t.code]?vs[t.code]:(t==null?void 0:t.message)||(t==null?void 0:t.msg);Ce.error(n)}});Rf({before:jd,after:Yd});Cf(Nr,Dr,Hr,Br,Ur,zr,Vr,Wr,Xr,jr,Yr,Fr);Af(yf);var vo=(e=>(e.SWKK="swkk",e.SWKJ="swkj",e.SWMX="glb",e.SWSS="laser",e.OSGB="obsg",e.B3DM="b3dm",e))(vo||{});const Gh={swkk:q.t("sys.SWKK"),swkj:q.t("sys.SWKJ"),laser:q.t("sys.SWSS"),glb:q.t("sys.SWMX"),obsg:q.t("sys.OSGB"),b3dm:q.t("sys.B3DM")},qr=e=>({show:!e.hide,scale:e.transform.scale[0],opacity:e.opacity||1,isSelf:e.type!==3,bottom:e.bottom||0,position:e.transform.position,rotation:e.transform.rotation,id:e.id.toString(),url:e.modelUrl.split(","),title:e.modelTitle,fusionId:e.fusionId,type:e.modelDateType==="osgb"?"obsg":e.modelDateType==="b3dm"?"b3dm":(e.type===2,"glb"),size:e.modelSize,time:e.createTime}),Of=e=>({createTime:e.time,id:Number(e.id),hide:Number(!e.show),fusionId:e.fusionId,modelDateType:e.type,modelUrl:e.url.join(","),type:e.type==="laser"?2:3,modelSize:e.size,modelTitle:e.title,opacity:e.opacity,bottom:e.bottom,transform:{position:e.position,rotation:e.rotation,scale:[e.scale,e.scale,e.scale]}}),If=async()=>(await ce.post(Nr)).map(qr),Lf=async e=>{const t=new FormData;t.append("file",e);const n=await ce({url:Hr,method:"POST",headers:{...Mr},data:t});return qr(n)},Pf=e=>(console.log("update",e),ce.post(Dr,Of(e))),Mf=e=>(console.log("delete"),ce.post(Br,{ids:[e]})),Gr=e=>({id:e.id.toString(),styleId:e.hotIconId.toString(),title:e.tagTitle,desc:e.tagDescribe,part:e.remark,method:e.getMethod,principal:e.getUser,images:e.meta.map(({url:t})=>t)}),Kr=(e,t=!1)=>({hotIconId:Number(e.styleId),fusionId:J.fushId,getMethod:e.method,getUser:e.principal,hotIconUrl:"static/img_default/lQLPDhrvVzvNvTswMLAOU-UNqYnnZQG1YPJUwLwA_48_48.png",id:t?Number(e.id):void 0,meta:e.images.map((n,o)=>({name:n,url:n})),remark:e.part,tagDescribe:e.desc,tagTitle:e.title}),Nf=async()=>(await ce.post(Ur,{})).map(Gr),Hf=async e=>{const t=await ce.post(Vr,Kr(e));return Gr(t)},Df=e=>ce.post(Wr,Kr(e,!0)),Bf=e=>ce.post(zr,{ids:[e]}),Uf=async()=>[{id:"1",icon:J.baseURL+"/profile/static/img_default/lQLPDhrvVzvNvTswMLAOU-UNqYnnZQG1YPJUwLwA_48_48.png",name:"111",default:!0}],Jr=(e,t)=>({id:e.id.toString(),modelId:e.modelId.toString(),taggingId:t||e.tagId.toString(),localPos:JSON.parse(e.tagPoint)}),Qr=(e,t=!1)=>({id:t?Number(e.id):void 0,tagId:Number(e.taggingId),modelId:Number(e.modelId),tagPoint:JSON.stringify(e.localPos)}),Vf=async e=>(await ce.post(`${Xr}${e}`,{})).map(n=>Jr(n,e)),Wf=async e=>{const t=await ce.post(jr,Qr(e));return Jr(t)},zf=e=>ce.post(Yr,Qr(e,!0)),Xf=e=>ce.post(Fr,{ids:[e.id]}),Zr=e=>({...e,id:e.id.toString(),paths:e.paths.map(t=>({...t,id:t.id.toString()}))}),jf=e=>({...e,id:Number(e.id),paths:e.paths.map(t=>({...t,id:Number(t.id)}))}),Yf=async()=>(await ce.post(bf,{})).map(Zr),Ff=async e=>{const t={...e,fusionId:J.fushId,id:void 0,paths:e.paths.map(o=>({...o,id:void 0}))},n=await ce.post(wf,t);return Zr(n)},qf=async e=>ce.post(Sf,{...jf(e)}),Gf=e=>ce.post($f,{ids:[e.toString()]}),Xn=async e=>typeof e=="string"?e:await ce({method:"POST",url:Ef,data:Jd({file:e.blob}),headers:{...Mr}}),ye=I([]),Kh=e=>ye.value.find(t=>t.id===e),Jh=e=>U({get:()=>it.modelsChangeStore?e.show:it.showModelsMap.get(e)||!1,set:t=>{it.modelsChangeStore?e.show=t:it.showModelsMap.set(e,t)}}),yo=I(!1);Ws(()=>{const e=ye.value.every(t=>t.loaded||t.error);yo.value=e});const Kf=Ws(()=>{if(yo.value&&!it.currentModel){const e=ye.value.find(t=>t.type===vo.SWSS);e&&(it.currentModel=e,Kf())}});let jn=[];const ei=()=>jn,bo=()=>{jn=ye.value.map(e=>({...e,rotation:{...e.rotation},position:{...e.position}})),console.error(jn)},ti=e=>({...e,error:!1,loaded:!1,progress:0}),Jf=Gt(ye,ei),Qh=async e=>{const t=await Lf(e);af(()=>ye.value.push(ti(t))),bo()},Qf=Yt(ye,Pf),Zf=Ft(ye,e=>Mf(e.id)),ep=Zn(ye,If,()=>{const e=new Map;for(const t of ye.value)e.set(t,t.show);Pr.push(I(e)),bo()},e=>e.map(ti)),tp=qt(ye,ei,{update:Qf,delete:Zf}),Zh=Lt(ye,{backup:bo,recovery:Jf,save:tp,isUpdate:()=>yo.value}),wo=I([]),np=U(()=>wo.value.find(e=>e.default)),em=e=>wo.value.find(t=>t.id===e),op=async()=>{wo.value=await Uf()},Ae=I([]),tm=(e={})=>({id:ln(),taggingId:"",modelId:"",localPos:{x:0,y:0,z:0},...e}),sp=e=>Ae.value.filter(t=>t.taggingId===e.id)||[];let ni=[];const oi=()=>ni,So=()=>{ni=Ae.value.map(e=>({...e,localPos:{...e.localPos}}))},rp=async e=>{const t=await Vf(e.id);Ae.value.push(...t),So()},si=Gt(Ae,oi),ip=Qn(Ae,Wf),ap=Yt(Ae,zf),lp=Ft(Ae,Xf),ri=qt(Ae,oi,{add:ip,update:ap,delete:lp});Lt(Ae,{backup:So,recovery:si,save:ri});const Xe=I([]),nm=(e={})=>{var t;return{id:ln(),title:"",styleId:((t=np.value)==null?void 0:t.id)||"",desc:"",part:"",method:"",principal:"",images:[],...e}};let zt=[];const cp=()=>(console.error("get back?",zt),zt),ii=()=>{console.error("back?"),zt=Xe.value.map(e=>({...e,images:[...e.images]}))},ai=async e=>{const t=[],n=e.images.map((o,s)=>Xn(o).then(i=>t[s]=i));return await Promise.all(n),{...e,images:t}},up=Gt(Xe,()=>zt),dp=Qn(Xe,async e=>{const t=await Hf(e),n=sp(e);for(const o of n)o.taggingId=t.id;return t},ai),fp=Yt(Xe,Df,ai),pp=Ft(Xe,e=>Bf(e.id)),hp=Zn(Xe,async()=>{const e=await Nf();return await Promise.all(e.map(rp)),e},ii),mp=qt(Xe,cp,{add:dp,update:fp,delete:pp}),om=Lt([Xe,Ae],{backup:gs([ii,So]),recovery:gs([up,si]),save:async()=>{await mp(),await ri()}}),ke=I([]),sm=(e={})=>({id:ln(),title:`${q.t("sys.guide.path")}${ke.value.length+1}`,cover:"",paths:[],...e}),rm=(e={})=>({id:ln(),cover:"",time:1,speed:1,position:{x:0,y:0,z:0},target:{x:0,y:0,z:0},...e});let li=[];const ci=()=>li,ui=()=>{li=ke.value.map(e=>({...e,paths:e.paths.map(t=>({...t}))}))},di=async e=>{let t="";const n=[],o=Xn(e.cover).then(i=>t=i),s=e.paths.map((i,l)=>Xn(i.cover).then(c=>n[l]=c));return await Promise.all([o,...s]),{...e,paths:e.paths.map((i,l)=>({...i,cover:n[l]})),cover:t}},gp=Gt(ke,ci),vp=Qn(ke,Ff,di),yp=Yt(ke,e=>qf({...e,paths:e.paths.map(t=>({...t,id:tf(t.id)?void 0:t.id}))}),di),bp=Ft(ke,e=>Gf(e.id)),wp=Zn(ke,Yf,ui),Sp=qt(ke,ci,{add:vp,update:yp,delete:bp}),im=Lt(ke,{backup:ui,recovery:gp,save:async()=>{ke.value.forEach(e=>{if(!e.paths.length)throw qe.alert(q.t("sys.guide.emptyErr")),"\u65E0\u6CD5\u4FDD\u5B58\u7A7A\u8DEF\u5F84\u5BFC\u89C8\uFF01";e.cover=e.paths[0].cover}),await Sp()}}),fi=I(!1),pi=I(!1),$p=async()=>{await Promise.all([ep(),op(),hp(),wp()]);try{fi.value=!0}catch{pi.value=!0}},Ep=me({__name:"app",setup(e){Or($p);const t=ms(()=>fe(()=>import("./main.99c4ce7a.js"),["main.99c4ce7a.js","main.60ba1d8b.css","right-fill-pano.vue_vue_type_style_index_0_scoped_23c3ecba_lang.fe027b07.js","right-fill-pano.9a583030.css","main.2d9aa5f6.js"],import.meta.url)),n=ms(()=>fe(()=>import("./index.33c3679b.js"),["index.33c3679b.js","index.69a50be3.css","main.2d9aa5f6.js"],import.meta.url)),o=U(()=>{if(fi.value)return pi.value?n:t});return(s,i)=>O(o)?(x(),Z(Vs(O(o)),{key:0})):B("",!0)}});/*!
  260. * vue-router v4.1.3
  261. * (c) 2022 Eduardo San Martin Morote
  262. * @license MIT
  263. */const rt=typeof window<"u";function xp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ee=Object.assign;function Ln(e,t){const n={};for(const o in t){const s=t[o];n[o]=Ee(s)?s.map(e):e(s)}return n}const _t=()=>{},Ee=Array.isArray,_p=/\/$/,Cp=e=>e.replace(_p,"");function Pn(e,t,n="/"){let o,s={},i="",l="";const c=t.indexOf("#");let u=t.indexOf("?");return c<u&&c>=0&&(u=-1),u>-1&&(o=t.slice(0,u),i=t.slice(u+1,c>-1?c:t.length),s=e(i)),c>-1&&(o=o||t.slice(0,c),l=t.slice(c,t.length)),o=Rp(o!=null?o:t,n),{fullPath:o+(i&&"?")+i+l,path:o,query:s,hash:l}}function kp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ys(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tp(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&ft(t.matched[o],n.matched[s])&&hi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ft(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ap(e[n],t[n]))return!1;return!0}function Ap(e,t){return Ee(e)?bs(e,t):Ee(t)?bs(t,e):e===t}function bs(e,t){return Ee(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Rp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let s=n.length-1,i,l;for(i=0;i<o.length;i++)if(l=o[i],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i-(i===o.length?1:0)).join("/")}var At;(function(e){e.pop="pop",e.push="push"})(At||(At={}));var Ct;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ct||(Ct={}));function Op(e){if(!e)if(rt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cp(e)}const Ip=/^[^#]+#/;function Lp(e,t){return e.replace(Ip,"#")+t}function Pp(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const cn=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mp(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Pp(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ws(e,t){return(history.state?history.state.position-t:-1)+e}const Yn=new Map;function Np(e,t){Yn.set(e,t)}function Hp(e){const t=Yn.get(e);return Yn.delete(e),t}let Dp=()=>location.protocol+"//"+location.host;function mi(e,t){const{pathname:n,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){let c=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(c);return u[0]!=="/"&&(u="/"+u),ys(u,"")}return ys(n,e)+o+s}function Bp(e,t,n,o){let s=[],i=[],l=null;const c=({state:r})=>{const a=mi(e,location),d=n.value,f=t.value;let h=0;if(r){if(n.value=a,t.value=r,l&&l===d){l=null;return}h=f?r.position-f.position:0}else o(a);s.forEach(y=>{y(n.value,d,{delta:h,type:At.pop,direction:h?h>0?Ct.forward:Ct.back:Ct.unknown})})};function u(){l=n.value}function m(r){s.push(r);const a=()=>{const d=s.indexOf(r);d>-1&&s.splice(d,1)};return i.push(a),a}function p(){const{history:r}=window;!r.state||r.replaceState(ee({},r.state,{scroll:cn()}),"")}function v(){for(const r of i)r();i=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",p)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",p),{pauseListeners:u,listen:m,destroy:v}}function Ss(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?cn():null}}function Up(e){const{history:t,location:n}=window,o={value:mi(e,n)},s={value:t.state};s.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(u,m,p){const v=e.indexOf("#"),r=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+u:Dp()+e+u;try{t[p?"replaceState":"pushState"](m,"",r),s.value=m}catch(a){console.error(a),n[p?"replace":"assign"](r)}}function l(u,m){const p=ee({},t.state,Ss(s.value.back,u,s.value.forward,!0),m,{position:s.value.position});i(u,p,!0),o.value=u}function c(u,m){const p=ee({},s.value,t.state,{forward:u,scroll:cn()});i(p.current,p,!0);const v=ee({},Ss(o.value,u,null),{position:p.position+1},m);i(u,v,!1),o.value=u}return{location:o,state:s,push:c,replace:l}}function Vp(e){e=Op(e);const t=Up(e),n=Bp(e,t.state,t.location,t.replace);function o(i,l=!0){l||n.pauseListeners(),history.go(i)}const s=ee({location:"",base:e,go:o,createHref:Lp.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Wp(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Vp(e)}function zp(e){return typeof e=="string"||e&&typeof e=="object"}function gi(e){return typeof e=="string"||typeof e=="symbol"}const Be={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},vi=Symbol("");var $s;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($s||($s={}));function pt(e,t){return ee(new Error,{type:e,[vi]:!0},t)}function Oe(e,t){return e instanceof Error&&vi in e&&(t==null||!!(e.type&t))}const Es="[^/]+?",Xp={sensitive:!1,strict:!1,start:!0,end:!0},jp=/[.+*?^${}()[\]/\\]/g;function Yp(e,t){const n=ee({},Xp,t),o=[];let s=n.start?"^":"";const i=[];for(const m of e){const p=m.length?[]:[90];n.strict&&!m.length&&(s+="/");for(let v=0;v<m.length;v++){const r=m[v];let a=40+(n.sensitive?.25:0);if(r.type===0)v||(s+="/"),s+=r.value.replace(jp,"\\$&"),a+=40;else if(r.type===1){const{value:d,repeatable:f,optional:h,regexp:y}=r;i.push({name:d,repeatable:f,optional:h});const E=y||Es;if(E!==Es){a+=10;try{new RegExp(`(${E})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${d}" (${E}): `+b.message)}}let w=f?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;v||(w=h&&m.length<2?`(?:/${w})`:"/"+w),h&&(w+="?"),s+=w,a+=20,h&&(a+=-8),f&&(a+=-20),E===".*"&&(a+=-50)}p.push(a)}o.push(p)}if(n.strict&&n.end){const m=o.length-1;o[m][o[m].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const l=new RegExp(s,n.sensitive?"":"i");function c(m){const p=m.match(l),v={};if(!p)return null;for(let r=1;r<p.length;r++){const a=p[r]||"",d=i[r-1];v[d.name]=a&&d.repeatable?a.split("/"):a}return v}function u(m){let p="",v=!1;for(const r of e){(!v||!p.endsWith("/"))&&(p+="/"),v=!1;for(const a of r)if(a.type===0)p+=a.value;else if(a.type===1){const{value:d,repeatable:f,optional:h}=a,y=d in m?m[d]:"";if(Ee(y)&&!f)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const E=Ee(y)?y.join("/"):y;if(!E)if(h)r.length<2&&(p.endsWith("/")?p=p.slice(0,-1):v=!0);else throw new Error(`Missing required param "${d}"`);p+=E}}return p||"/"}return{re:l,score:o,keys:i,parse:c,stringify:u}}function Fp(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function qp(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const i=Fp(o[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-o.length)===1){if(xs(o))return 1;if(xs(s))return-1}return s.length-o.length}function xs(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Gp={type:0,value:""},Kp=/[a-zA-Z0-9_]/;function Jp(e){if(!e)return[[]];if(e==="/")return[[Gp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(a){throw new Error(`ERR (${n})/"${m}": ${a}`)}let n=0,o=n;const s=[];let i;function l(){i&&s.push(i),i=[]}let c=0,u,m="",p="";function v(){!m||(n===0?i.push({type:0,value:m}):n===1||n===2||n===3?(i.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:m,regexp:p,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),m="")}function r(){m+=u}for(;c<e.length;){if(u=e[c++],u==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:u==="/"?(m&&v(),l()):u===":"?(v(),n=1):r();break;case 4:r(),n=o;break;case 1:u==="("?n=2:Kp.test(u)?r():(v(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&c--);break;case 2:u===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+u:n=3:p+=u;break;case 3:v(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&c--,p="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${m}"`),v(),l(),s}function Qp(e,t,n){const o=Yp(Jp(e.path),n),s=ee(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Zp(e,t){const n=[],o=new Map;t=Cs({strict:!1,end:!0,sensitive:!1},t);function s(p){return o.get(p)}function i(p,v,r){const a=!r,d=th(p);d.aliasOf=r&&r.record;const f=Cs(t,p),h=[d];if("alias"in p){const w=typeof p.alias=="string"?[p.alias]:p.alias;for(const b of w)h.push(ee({},d,{components:r?r.record.components:d.components,path:b,aliasOf:r?r.record:d}))}let y,E;for(const w of h){const{path:b}=w;if(v&&b[0]!=="/"){const g=v.record.path,S=g[g.length-1]==="/"?"":"/";w.path=v.record.path+(b&&S+b)}if(y=Qp(w,v,f),r?r.alias.push(y):(E=E||y,E!==y&&E.alias.push(y),a&&p.name&&!_s(y)&&l(p.name)),d.children){const g=d.children;for(let S=0;S<g.length;S++)i(g[S],y,r&&r.children[S])}r=r||y,u(y)}return E?()=>{l(E)}:_t}function l(p){if(gi(p)){const v=o.get(p);v&&(o.delete(p),n.splice(n.indexOf(v),1),v.children.forEach(l),v.alias.forEach(l))}else{const v=n.indexOf(p);v>-1&&(n.splice(v,1),p.record.name&&o.delete(p.record.name),p.children.forEach(l),p.alias.forEach(l))}}function c(){return n}function u(p){let v=0;for(;v<n.length&&qp(p,n[v])>=0&&(p.record.path!==n[v].record.path||!yi(p,n[v]));)v++;n.splice(v,0,p),p.record.name&&!_s(p)&&o.set(p.record.name,p)}function m(p,v){let r,a={},d,f;if("name"in p&&p.name){if(r=o.get(p.name),!r)throw pt(1,{location:p});f=r.record.name,a=ee(eh(v.params,r.keys.filter(E=>!E.optional).map(E=>E.name)),p.params),d=r.stringify(a)}else if("path"in p)d=p.path,r=n.find(E=>E.re.test(d)),r&&(a=r.parse(d),f=r.record.name);else{if(r=v.name?o.get(v.name):n.find(E=>E.re.test(v.path)),!r)throw pt(1,{location:p,currentLocation:v});f=r.record.name,a=ee({},v.params,p.params),d=r.stringify(a)}const h=[];let y=r;for(;y;)h.unshift(y.record),y=y.parent;return{name:f,path:d,params:a,matched:h,meta:oh(h)}}return e.forEach(p=>i(p)),{addRoute:i,resolve:m,removeRoute:l,getRoutes:c,getRecordMatcher:s}}function eh(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function th(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function nh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="boolean"?n:n[o];return t}function _s(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oh(e){return e.reduce((t,n)=>ee(t,n.meta),{})}function Cs(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function yi(e,t){return t.children.some(n=>n===e||yi(e,n))}const bi=/#/g,sh=/&/g,rh=/\//g,ih=/=/g,ah=/\?/g,wi=/\+/g,lh=/%5B/g,ch=/%5D/g,Si=/%5E/g,uh=/%60/g,$i=/%7B/g,dh=/%7C/g,Ei=/%7D/g,fh=/%20/g;function $o(e){return encodeURI(""+e).replace(dh,"|").replace(lh,"[").replace(ch,"]")}function ph(e){return $o(e).replace($i,"{").replace(Ei,"}").replace(Si,"^")}function Fn(e){return $o(e).replace(wi,"%2B").replace(fh,"+").replace(bi,"%23").replace(sh,"%26").replace(uh,"`").replace($i,"{").replace(Ei,"}").replace(Si,"^")}function hh(e){return Fn(e).replace(ih,"%3D")}function mh(e){return $o(e).replace(bi,"%23").replace(ah,"%3F")}function gh(e){return e==null?"":mh(e).replace(rh,"%2F")}function Xt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function vh(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const i=o[s].replace(wi," "),l=i.indexOf("="),c=Xt(l<0?i:i.slice(0,l)),u=l<0?null:Xt(i.slice(l+1));if(c in t){let m=t[c];Ee(m)||(m=t[c]=[m]),m.push(u)}else t[c]=u}return t}function ks(e){let t="";for(let n in e){const o=e[n];if(n=hh(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ee(o)?o.map(i=>i&&Fn(i)):[o&&Fn(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function yh(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Ee(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const bh=Symbol(""),Ts=Symbol(""),Eo=Symbol(""),xi=Symbol(""),qn=Symbol("");function $t(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ve(e,t,n,o,s){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const u=v=>{v===!1?c(pt(4,{from:n,to:t})):v instanceof Error?c(v):zp(v)?c(pt(2,{from:t,to:v})):(i&&o.enterCallbacks[s]===i&&typeof v=="function"&&i.push(v),l())},m=e.call(o&&o.instances[s],t,n,u);let p=Promise.resolve(m);e.length<3&&(p=p.then(u)),p.catch(v=>c(v))})}function Mn(e,t,n,o){const s=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(wh(c)){const m=(c.__vccOpts||c)[t];m&&s.push(Ve(m,n,o,i,l))}else{let u=c();s.push(()=>u.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const p=xp(m)?m.default:m;i.components[l]=p;const r=(p.__vccOpts||p)[t];return r&&Ve(r,n,o,i,l)()}))}}return s}function wh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function As(e){const t=We(Eo),n=We(xi),o=U(()=>t.resolve(O(e.to))),s=U(()=>{const{matched:u}=o.value,{length:m}=u,p=u[m-1],v=n.matched;if(!p||!v.length)return-1;const r=v.findIndex(ft.bind(null,p));if(r>-1)return r;const a=Rs(u[m-2]);return m>1&&Rs(p)===a&&v[v.length-1].path!==a?v.findIndex(ft.bind(null,u[m-2])):r}),i=U(()=>s.value>-1&&xh(n.params,o.value.params)),l=U(()=>s.value>-1&&s.value===n.matched.length-1&&hi(n.params,o.value.params));function c(u={}){return Eh(u)?t[O(e.replace)?"replace":"push"](O(e.to)).catch(_t):Promise.resolve()}return{route:o,href:U(()=>o.value.href),isActive:i,isExactActive:l,navigate:c}}const Sh=me({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"}},useLink:As,setup(e,{slots:t}){const n=vt(As(e)),{options:o}=We(Eo),s=U(()=>({[Os(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Os(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Gn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),$h=Sh;function Eh(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xh(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Ee(s)||s.length!==o.length||o.some((i,l)=>i!==s[l]))return!1}return!0}function Rs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Os=(e,t,n)=>e!=null?e:t!=null?t:n,_h=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=We(qn),s=U(()=>e.route||o.value),i=We(Ts,0),l=U(()=>{let m=O(i);const{matched:p}=s.value;let v;for(;(v=p[m])&&!v.components;)m++;return m}),c=U(()=>s.value.matched[l.value]);at(Ts,U(()=>l.value+1)),at(bh,c),at(qn,s);const u=I();return Ge(()=>[u.value,c.value,e.name],([m,p,v],[r,a,d])=>{p&&(p.instances[v]=m,a&&a!==p&&m&&m===r&&(p.leaveGuards.size||(p.leaveGuards=a.leaveGuards),p.updateGuards.size||(p.updateGuards=a.updateGuards))),m&&p&&(!a||!ft(p,a)||!r)&&(p.enterCallbacks[v]||[]).forEach(f=>f(m))},{flush:"post"}),()=>{const m=s.value,p=e.name,v=c.value,r=v&&v.components[p];if(!r)return Is(n.default,{Component:r,route:m});const a=v.props[p],d=a?a===!0?m.params:typeof a=="function"?a(m):a:null,h=Gn(r,ee({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(v.instances[p]=null)},ref:u}));return Is(n.default,{Component:h,route:m})||h}}});function Is(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ch=_h;function kh(e){const t=Zp(e.routes,e),n=e.parseQuery||vh,o=e.stringifyQuery||ks,s=e.history,i=$t(),l=$t(),c=$t(),u=Ui(Be);let m=Be;rt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=Ln.bind(null,T=>""+T),v=Ln.bind(null,gh),r=Ln.bind(null,Xt);function a(T,D){let M,W;return gi(T)?(M=t.getRecordMatcher(T),W=D):W=T,t.addRoute(W,M)}function d(T){const D=t.getRecordMatcher(T);D&&t.removeRoute(D)}function f(){return t.getRoutes().map(T=>T.record)}function h(T){return!!t.getRecordMatcher(T)}function y(T,D){if(D=ee({},D||u.value),typeof T=="string"){const F=Pn(n,T,D.path),re=t.resolve({path:F.path},D),wt=s.createHref(F.fullPath);return ee(F,re,{params:r(re.params),hash:Xt(F.hash),redirectedFrom:void 0,href:wt})}let M;if("path"in T)M=ee({},T,{path:Pn(n,T.path,D.path).path});else{const F=ee({},T.params);for(const re in F)F[re]==null&&delete F[re];M=ee({},T,{params:v(T.params)}),D.params=v(D.params)}const W=t.resolve(M,D),te=T.hash||"";W.params=p(r(W.params));const se=kp(o,ee({},T,{hash:ph(te),path:W.path})),G=s.createHref(se);return ee({fullPath:se,hash:te,query:o===ks?yh(T.query):T.query||{}},W,{redirectedFrom:void 0,href:G})}function E(T){return typeof T=="string"?Pn(n,T,u.value.path):ee({},T)}function w(T,D){if(m!==T)return pt(8,{from:D,to:T})}function b(T){return _(T)}function g(T){return b(ee(E(T),{replace:!0}))}function S(T){const D=T.matched[T.matched.length-1];if(D&&D.redirect){const{redirect:M}=D;let W=typeof M=="function"?M(T):M;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=E(W):{path:W},W.params={}),ee({query:T.query,hash:T.hash,params:"path"in W?{}:T.params},W)}}function _(T,D){const M=m=y(T),W=u.value,te=T.state,se=T.force,G=T.replace===!0,F=S(M);if(F)return _(ee(E(F),{state:te,force:se,replace:G}),D||M);const re=M;re.redirectedFrom=D;let wt;return!se&&Tp(o,W,M)&&(wt=pt(16,{to:re,from:W}),xo(W,W,!0,!1)),(wt?Promise.resolve(wt):A(re,W)).catch(be=>Oe(be)?Oe(be,2)?be:Ze(be):Ne(be,re,W)).then(be=>{if(be){if(Oe(be,2))return _(ee({replace:G},E(be.to),{state:te,force:se}),D||re)}else be=L(re,W,!0,G,te);return R(re,W,be),be})}function C(T,D){const M=w(T,D);return M?Promise.reject(M):Promise.resolve()}function A(T,D){let M;const[W,te,se]=Th(T,D);M=Mn(W.reverse(),"beforeRouteLeave",T,D);for(const F of W)F.leaveGuards.forEach(re=>{M.push(Ve(re,T,D))});const G=C.bind(null,T,D);return M.push(G),nt(M).then(()=>{M=[];for(const F of i.list())M.push(Ve(F,T,D));return M.push(G),nt(M)}).then(()=>{M=Mn(te,"beforeRouteUpdate",T,D);for(const F of te)F.updateGuards.forEach(re=>{M.push(Ve(re,T,D))});return M.push(G),nt(M)}).then(()=>{M=[];for(const F of T.matched)if(F.beforeEnter&&!D.matched.includes(F))if(Ee(F.beforeEnter))for(const re of F.beforeEnter)M.push(Ve(re,T,D));else M.push(Ve(F.beforeEnter,T,D));return M.push(G),nt(M)}).then(()=>(T.matched.forEach(F=>F.enterCallbacks={}),M=Mn(se,"beforeRouteEnter",T,D),M.push(G),nt(M))).then(()=>{M=[];for(const F of l.list())M.push(Ve(F,T,D));return M.push(G),nt(M)}).catch(F=>Oe(F,8)?F:Promise.reject(F))}function R(T,D,M){for(const W of c.list())W(T,D,M)}function L(T,D,M,W,te){const se=w(T,D);if(se)return se;const G=D===Be,F=rt?history.state:{};M&&(W||G?s.replace(T.fullPath,ee({scroll:G&&F&&F.scroll},te)):s.push(T.fullPath,te)),u.value=T,xo(T,D,M,G),Ze()}let $;function P(){$||($=s.listen((T,D,M)=>{if(!_o.listening)return;const W=y(T),te=S(W);if(te){_(ee(te,{replace:!0}),W).catch(_t);return}m=W;const se=u.value;rt&&Np(ws(se.fullPath,M.delta),cn()),A(W,se).catch(G=>Oe(G,12)?G:Oe(G,2)?(_(G.to,W).then(F=>{Oe(F,20)&&!M.delta&&M.type===At.pop&&s.go(-1,!1)}).catch(_t),Promise.reject()):(M.delta&&s.go(-M.delta,!1),Ne(G,W,se))).then(G=>{G=G||L(W,se,!1),G&&(M.delta&&!Oe(G,8)?s.go(-M.delta,!1):M.type===At.pop&&Oe(G,20)&&s.go(-1,!1)),R(W,se,G)}).catch(_t)}))}let V=$t(),z=$t(),K;function Ne(T,D,M){Ze(T);const W=z.list();return W.length?W.forEach(te=>te(T,D,M)):console.error(T),Promise.reject(T)}function un(){return K&&u.value!==Be?Promise.resolve():new Promise((T,D)=>{V.add([T,D])})}function Ze(T){return K||(K=!T,P(),V.list().forEach(([D,M])=>T?M(T):D()),V.reset()),T}function xo(T,D,M,W){const{scrollBehavior:te}=e;if(!rt||!te)return Promise.resolve();const se=!M&&Hp(ws(T.fullPath,0))||(W||!M)&&history.state&&history.state.scroll||null;return Te().then(()=>te(T,D,se)).then(G=>G&&Mp(G)).catch(G=>Ne(G,T,D))}const dn=T=>s.go(T);let fn;const pn=new Set,_o={currentRoute:u,listening:!0,addRoute:a,removeRoute:d,hasRoute:h,getRoutes:f,resolve:y,options:e,push:b,replace:g,go:dn,back:()=>dn(-1),forward:()=>dn(1),beforeEach:i.add,beforeResolve:l.add,afterEach:c.add,onError:z.add,isReady:un,install(T){const D=this;T.component("RouterLink",$h),T.component("RouterView",Ch),T.config.globalProperties.$router=D,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>O(u)}),rt&&!fn&&u.value===Be&&(fn=!0,b(s.location).catch(te=>{}));const M={};for(const te in Be)M[te]=U(()=>u.value[te]);T.provide(Eo,D),T.provide(xi,vt(M)),T.provide(qn,u);const W=T.unmount;pn.add(T),T.unmount=function(){pn.delete(T),pn.size<1&&(m=Be,$&&$(),$=null,u.value=Be,fn=!1,K=!1),W()}}};return _o}function nt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Th(e,t){const n=[],o=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;l<i;l++){const c=t.matched[l];c&&(e.matched.find(m=>ft(m,c))?o.push(c):n.push(c));const u=e.matched[l];u&&(t.matched.find(m=>ft(m,u))||s.push(u))}return[n,o,s]}var Bt=(e=>(e.merge="merge",e.tagging="tagging",e.guide="guide",e))(Bt||{});const Nn={merge:"/merge",tagging:"/tagging",guide:"/path"},Hn=vt({merge:{icon:"joint",title:q.t("sys.merge.joint")},tagging:{icon:"label",title:q.t("sys.tagging.name")},guide:{icon:"path",title:q.t("sys.guide.path")}});console.log(q.t("sys.merge.joint"));const Ah=[{path:Nn.merge,name:Bt.merge,meta:Hn.merge,component:()=>fe(()=>import("./index.8f2e812a.js"),["index.8f2e812a.js","index.edf84220.css","right-fill-pano.vue_vue_type_style_index_0_scoped_23c3ecba_lang.fe027b07.js","right-fill-pano.9a583030.css","main.2d9aa5f6.js"],import.meta.url)},{path:Nn.tagging,name:Bt.tagging,meta:Hn.tagging,component:()=>fe(()=>import("./index.b39e403a.js"),["index.b39e403a.js","index.ebafe44e.css","right-fill-pano.vue_vue_type_style_index_0_scoped_23c3ecba_lang.fe027b07.js","right-fill-pano.9a583030.css","main.2d9aa5f6.js","right-fill-pano.16c5b97c.js"],import.meta.url)},{path:Nn.guide,name:Bt.guide,meta:Hn.guide,component:()=>fe(()=>import("./index.fc434089.js"),["index.fc434089.js","index.0736219b.css","right-fill-pano.vue_vue_type_style_index_0_scoped_23c3ecba_lang.fe027b07.js","right-fill-pano.9a583030.css","main.2d9aa5f6.js","right-fill-pano.16c5b97c.js"],import.meta.url)}],Rh=Wp(),Oh=kh({history:Rh,routes:Ah}),Pt=ma(Ep);Pt.use(zd);Pt.use(Oh);Vi(Pt);Pt.mount("#app");const am=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"}));export{rm as $,lf as A,pf as B,ma as C,zd as D,Ph as E,jd as F,bo as G,Yd as H,Qd as I,qe as J,df as K,gf as L,vo as M,Zh as N,Ce as O,ff as P,uf as Q,Bt as R,nf as S,nm as T,Hh as U,tm as V,om as W,vf as X,Uh as Y,Or as Z,de as _,Ir as a,sm as a0,ke as a1,im as a2,am as a3,Gh as b,it as c,ye as d,Qh as e,fi as f,Jh as g,Lh as h,Zd as i,Mh as j,Vh as k,rf as l,Hn as m,Nh as n,Kh as o,em as p,Vn as q,Oh as r,Bh as s,Dh as t,sp as u,Ae as v,js as w,Xe as x,Le as y,gs as z};