From 3b4391f81a507c388c6b90bcd595e9a178aaaf19 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Wed, 31 Jan 2024 14:14:03 +0000 Subject: [PATCH] =?UTF-8?q?[Upgrade]=20=F0=9F=9A=80=20Upload=20latest=20we?= =?UTF-8?q?bFile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/assets/{index-b63e2106.js => index-5a192438.js} | 4 ++-- web/assets/{index-ef2a5096.js => index-c3bc2f38.js} | 2 +- web/index.html | 2 +- web/sw.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename web/assets/{index-b63e2106.js => index-5a192438.js} (99%) rename web/assets/{index-ef2a5096.js => index-c3bc2f38.js} (99%) diff --git a/web/assets/index-b63e2106.js b/web/assets/index-5a192438.js similarity index 99% rename from web/assets/index-b63e2106.js rename to web/assets/index-5a192438.js index 5ea4abe71d..651303a213 100644 --- a/web/assets/index-b63e2106.js +++ b/web/assets/index-5a192438.js @@ -1,4 +1,4 @@ -import{i as He,g as Rr,w as Xe,o as Mt,r as I,a as pt,b as mc,c as N,d as bc,h as xc,e as La,f as ut,j as Cc,k as ft,l as St,m as Fn,n as _n,p as Mr,u as Qe,q as le,s as tt,t as yc,v as Ct,x as ki,C as wc,y as An,z as ge,A as Br,B as u,L as Fa,D as En,E as eo,F as _a,G as Aa,H as vt,V as mn,I as Oo,J as co,K as Sc,M as Pi,N as Or,O as Dr,P as kc,Q as Pc,R as Hn,S as $c,T as to,U as Ea,W as Wn,X as Nn,Y as Do,Z as Ha,_ as bn,$ as $i,a0 as Tc,a1 as Ti,a2 as zi,a3 as wr,a4 as zc,a5 as Ii,a6 as Ic,a7 as Rc,a8 as Mc,a9 as Bc,aa as Oc,ab as Dc,ac as Lc,ad as Wa,ae as Lt,af as jn,ag as Na,ah as ct,ai as ve,aj as oe,ak as M,al as E,am as G,an as Je,ao as Pe,ap as dt,aq as qe,ar as xe,as as Fc,at as We,au as kt,av as Ot,aw as qt,ax as J,ay as et,az as Lr,aA as Yt,aB as rt,aC as Vn,aD as ja,aE as Kt,aF as ho,aG as _c,aH as oo,aI as kr,aJ as jt,aK as xn,aL as Zo,aM as Ac,aN as zt,aO as Va,aP as Ri,aQ as Ec,aR as Hc,aS as Ua,aT as ze,aU as q,aV as Wc,aW as Mi,aX as Pr,aY as qa,aZ as Un,a_ as Nc,a$ as jc,b0 as Vc,b1 as ir,b2 as qn,b3 as Uc,b4 as Pt,b5 as qc,b6 as Kc,b7 as Gc,b8 as tr,b9 as Xc,ba as Yc,bb as Zc,bc as Jc,bd as Qc,be as Bi,bf as or,bg as eu,bh as tu,bi as Oi,bj as Cn,bk as Di,bl as Ka,bm as Ga,bn as Lo,bo as ou,bp as Kn,bq as Gn,br as Xn,bs as Yn,bt as Xa,bu as Ee,bv as Li,bw as ru,bx as nu,by as iu,bz as au,bA as lu,bB as Zn,bC as Re,bD as lt,bE as mt,bF as nt,bG as ee,bH as Ge,bI as X,bJ as su,bK as _,bL as Oe,bM as Vt,bN as Dt,bO as uo,bP as du,bQ as Ya,bR as cu,bS as Za,bT as Ut,bU as Ja,bV as uu,bW as fu}from"./index-ef2a5096.js";let $r=[];const Qa=new WeakMap;function hu(){$r.forEach(e=>e(...Qa.get(e))),$r=[]}function Jn(e,...t){Qa.set(e,t),!$r.includes(e)&&$r.push(e)===1&&requestAnimationFrame(hu)}function Mo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function pu(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function gu(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function vu(e){return t=>{t?e.value=t.$el:e.value=null}}function Yr(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}const mu=/^(\d|\.)+$/,Fi=/(\d|\.)+/;function yt(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(mu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=Fi.exec(e);return n?e.replace(Fi,String((Number(n[0])+o)*t)):e}return e}let Zr;function bu(){return Zr===void 0&&(Zr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Zr}function xu(e,t,o){var r;const n=He(e,null);if(n===null)return;const i=(r=Rr())===null||r===void 0?void 0:r.proxy;Xe(o,a),a(o.value),Mt(()=>{a(void 0,o.value)});function a(d,c){if(!n)return;const f=n[t];c!==void 0&&l(f,c),d!==void 0&&s(f,d)}function l(d,c){d[c]||(d[c]=[]),d[c].splice(d[c].findIndex(f=>f===i),1)}function s(d,c){d[c]||(d[c]=[]),~d[c].findIndex(f=>f===i)||d[c].push(i)}}function Cu(e,t,o){if(!t)return e;const r=I(e.value);let n=null;return Xe(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}let Ro,Jo;const yu=()=>{var e,t;Ro=mc?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Jo=!1,Ro!==void 0?Ro.then(()=>{Jo=!0}):Jo=!0};yu();function wu(e){if(Jo)return;let t=!1;pt(()=>{Jo||Ro==null||Ro.then(()=>{t||e()})}),Mt(()=>{t=!0})}function ro(e,t){return Xe(e,o=>{o!==void 0&&(t.value=o)}),N(()=>e.value===void 0?t.value:e.value)}function el(e,t){return N(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}function Su(e={},t){const o=bc({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:n}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}r!==void 0&&Object.keys(r).forEach(d=>{if(d!==s.key)return;const c=r[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==s.key)return;const c=n[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&Xe(t,s=>{s?(ft("keydown",document,i),ft("keyup",document,a)):(ut("keydown",document,i),ut("keyup",document,a))})};return xc()?(La(l),Mt(()=>{(t===void 0||t.value)&&(ut("keydown",document,i),ut("keyup",document,a))})):l(),Cc(o)}const Qn=St("n-internal-select-menu"),tl=St("n-internal-select-menu-body"),ol="__disabled__";function Xt(e){const t=He(Fn,null),o=He(_n,null),r=He(Mr,null),n=He(tl,null),i=I();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};pt(()=>{ft("fullscreenchange",document,a)}),Mt(()=>{ut("fullscreenchange",document,a)})}return Qe(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?ol:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}Xt.tdkey=ol;Xt.propTo={type:[String,Object,Boolean],default:void 0};let Jt=null;function rl(){if(Jt===null&&(Jt=document.getElementById("v-binder-view-measurer"),Jt===null)){Jt=document.createElement("div"),Jt.id="v-binder-view-measurer";const{style:e}=Jt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Jt)}return Jt.getBoundingClientRect()}function ku(e,t){const o=rl();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Jr(e){const t=e.getBoundingClientRect(),o=rl();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function Pu(e){return e.nodeType===9?null:e.parentNode}function nl(e){if(e===null)return null;const t=Pu(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return nl(t)}const $u=le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Rr())===null||t===void 0?void 0:t.proxy);const o=He("VBinder",null),r=I(null),n=m=>{r.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=nl(m),m!==null;)i.push(m);for(const y of i)ft("scroll",y,f,!0)},l=()=>{for(const m of i)ut("scroll",m,f,!0);i=[]},s=new Set,d=m=>{s.size===0&&a(),s.has(m)||s.add(m)},c=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Jn(h)},h=()=>{s.forEach(m=>m())},g=new Set,p=m=>{g.size===0&&ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&ut("resize",window,b)},b=()=>{g.forEach(m=>m())};return Mt(()=>{ut("resize",window,b),l()}),{targetRef:r,setTargetRef:n,addScrollListener:d,removeScrollListener:c,addResizeListener:p,removeResizeListener:v}},render(){return yc("binder",this.$slots)}}),ei=$u,ti=le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=He("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ct(ki("follower",this.$slots),[[t]]):ki("follower",this.$slots)}}),Po="@@mmoContext",Tu={mounted(e,{value:t}){e[Po]={handler:void 0},typeof t=="function"&&(e[Po].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Po];typeof t=="function"?o.handler?o.handler!==t&&(ut("mousemoveoutside",e,o.handler),o.handler=t,ft("mousemoveoutside",e,t)):(e[Po].handler=t,ft("mousemoveoutside",e,t)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Po];t&&ut("mousemoveoutside",e,t),e[Po].handler=void 0}},zu=Tu,{c:Qt}=wc(),oi="vueuc-style";function _i(e){return e&-e}class Iu{constructor(t,o){this.l=t,this.min=o;const r=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=o[t],t-=_i(t);return i}getBound(t){let o=0,r=this.l;for(;r>o;){const n=Math.floor((o+r)/2),i=this.sum(n);if(i>t){r=n;continue}else if(i{let b=0,m=0;const y=o[g]-t[p]-t[g];return y>0&&r&&(v?m=Ei[p]?y:-y:b=Ei[p]?y:-y),{left:b,top:m}},f=a==="left"||a==="right";if(s!=="center"){const g=Bu[e],p=hr[g],v=Qr[g];if(o[v]>t[v]){if(t[g]+t[v]t[p]&&(s=Ai[l])}else{const g=a==="bottom"||a==="top"?"left":"top",p=hr[g],v=Qr[g],b=(o[v]-t[v])/2;(t[g]t[p]?(s=Hi[g],d=c(v,g,f)):(s=Hi[p],d=c(v,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),ri=le({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=He("VBinder"),o=Qe(()=>e.enabled!==void 0?e.enabled:e.show),r=I(null),n=I(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};pt(()=>{o.value&&(s(),i())});const l=An();Fu.mount({id:"vueuc/binder",head:!0,anchorMetaName:oi,ssr:l}),Mt(()=>{a()}),wu(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=r.value;if(h===null)return;const g=t.targetRef,{x:p,y:v,overlap:b}=e,m=p!==void 0&&v!==void 0?ku(p,v):Jr(g);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:w,placement:x,internalShift:C,flip:R}=e;h.setAttribute("v-placement",x),b?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:$}=h;y==="target"?$.width=`${m.width}px`:y!==void 0?$.width=y:$.width="",w==="target"?$.minWidth=`${m.width}px`:w!==void 0?$.minWidth=w:$.minWidth="";const O=Jr(h),L=Jr(n.value),{left:H,top:A,placement:D}=Ou(x,m,O,C,R,b),k=Du(D,b),{left:P,top:S,transform:B}=Lu(D,L,m,A,H,b);h.setAttribute("v-placement",D),h.style.setProperty("--v-offset-left",`${Math.round(H)}px`),h.style.setProperty("--v-offset-top",`${Math.round(A)}px`),h.style.transform=`translateX(${P}) translateY(${S}) ${B}`,h.style.setProperty("--v-transform-origin",k),h.style.transformOrigin=k};Xe(o,h=>{h?(i(),d()):a()});const d=()=>{eo().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Xe(ge(e,h),s)}),["teleportDisabled"].forEach(h=>{Xe(ge(e,h),d)}),Xe(ge(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const c=Br(),f=Qe(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(Fa,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Ct(o,[[En,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});let pr;function _u(){return typeof document>"u"?!1:(pr===void 0&&("matchMedia"in window?pr=window.matchMedia("(pointer:coarse)").matches:pr=!1),pr)}let en;function Wi(){return typeof document>"u"?1:(en===void 0&&(en="chrome"in window?window.devicePixelRatio:1),en)}const Au=Qt(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Qt("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Qt("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Eu=le({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=An();Au.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:oi,ssr:t}),pt(()=>{const{defaultScrollIndex:A,defaultScrollKey:D}=e;A!=null?p({index:A}):D!=null&&p({key:D})});let o=!1,r=!1;_a(()=>{if(o=!1,!r){r=!0;return}p({top:f.value,left:c})}),Aa(()=>{o=!0,r||(r=!0)});const n=N(()=>{const A=new Map,{keyField:D}=e;return e.items.forEach((k,P)=>{A.set(k[D],P)}),A}),i=I(null),a=I(void 0),l=new Map,s=N(()=>{const{items:A,itemSize:D,keyField:k}=e,P=new Iu(A.length,D);return A.forEach((S,B)=>{const F=S[k],U=l.get(F);U!==void 0&&P.add(B,U)}),P}),d=I(0);let c=0;const f=I(0),h=Qe(()=>Math.max(s.value.getBound(f.value-vt(e.paddingTop))-1,0)),g=N(()=>{const{value:A}=a;if(A===void 0)return[];const{items:D,itemSize:k}=e,P=h.value,S=Math.min(P+Math.ceil(A/k+1),D.length-1),B=[];for(let F=P;F<=S;++F)B.push(D[F]);return B}),p=(A,D)=>{if(typeof A=="number"){y(A,D,"auto");return}const{left:k,top:P,index:S,key:B,position:F,behavior:U,debounce:re=!0}=A;if(k!==void 0||P!==void 0)y(k,P,U);else if(S!==void 0)m(S,U,re);else if(B!==void 0){const ie=n.value.get(B);ie!==void 0&&m(ie,U,re)}else F==="bottom"?y(0,Number.MAX_SAFE_INTEGER,U):F==="top"&&y(0,0,U)};let v,b=null;function m(A,D,k){const{value:P}=s,S=P.sum(A)+vt(e.paddingTop);if(!k)i.value.scrollTo({left:0,top:S,behavior:D});else{v=A,b!==null&&window.clearTimeout(b),b=window.setTimeout(()=>{v=void 0,b=null},16);const{scrollTop:B,offsetHeight:F}=i.value;if(S>B){const U=P.get(A);S+U<=B+F||i.value.scrollTo({left:0,top:S+U-F,behavior:D})}else i.value.scrollTo({left:0,top:S,behavior:D})}}function y(A,D,k){i.value.scrollTo({left:A,top:D,behavior:k})}function w(A,D){var k,P,S;if(o||e.ignoreItemResize||H(D.target))return;const{value:B}=s,F=n.value.get(A),U=B.get(F),re=(S=(P=(k=D.borderBoxSize)===null||k===void 0?void 0:k[0])===null||P===void 0?void 0:P.blockSize)!==null&&S!==void 0?S:D.contentRect.height;if(re===U)return;re-e.itemSize===0?l.delete(A):l.set(A,re-e.itemSize);const me=re-U;if(me===0)return;B.add(F,me);const W=i.value;if(W!=null){if(v===void 0){const Z=B.sum(F);W.scrollTop>Z&&W.scrollBy(0,me)}else if(FW.scrollTop+W.offsetHeight&&W.scrollBy(0,me)}L()}d.value++}const x=!_u();let C=!1;function R(A){var D;(D=e.onScroll)===null||D===void 0||D.call(e,A),(!x||!C)&&L()}function $(A){var D;if((D=e.onWheel)===null||D===void 0||D.call(e,A),x){const k=i.value;if(k!=null){if(A.deltaX===0&&(k.scrollTop===0&&A.deltaY<=0||k.scrollTop+k.offsetHeight>=k.scrollHeight&&A.deltaY>=0))return;A.preventDefault(),k.scrollTop+=A.deltaY/Wi(),k.scrollLeft+=A.deltaX/Wi(),L(),C=!0,Jn(()=>{C=!1})}}}function O(A){if(o||H(A.target)||A.contentRect.height===a.value)return;a.value=A.contentRect.height;const{onResize:D}=e;D!==void 0&&D(A)}function L(){const{value:A}=i;A!=null&&(f.value=A.scrollTop,c=A.scrollLeft)}function H(A){let D=A;for(;D!==null;){if(D.style.display==="none")return!0;D=D.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:N(()=>{const{itemResizable:A}=e,D=co(s.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:A?"":D,minHeight:A?D:"",paddingTop:co(e.paddingTop),paddingBottom:co(e.paddingBottom)}]}),visibleItemsStyle:N(()=>(d.value,{transform:`translateY(${co(s.value.sum(h.value))})`})),viewportItems:g,listElRef:i,itemsElRef:I(null),scrollTo:p,handleListResize:O,handleListScroll:R,handleListWheel:$,handleItemResize:w}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:r}=this;return u(mn,{onResize:this.handleListResize},{default:()=>{var n,i;return u("div",Oo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=o.get(l),d=this.$slots.default({item:a,index:s})[0];return e?u(mn,{key:l,onResize:c=>this.handleItemResize(l,c)},{default:()=>d}):(d.key=l,d)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),Wt="v-hidden",Hu=Qt("[v-hidden]",{display:"none!important"}),Ni=le({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=I(null),r=I(null);function n(a){const{value:l}=o,{getCounter:s,getTail:d}=e;let c;if(s!==void 0?c=s():c=r.value,!l||!c)return;c.hasAttribute(Wt)&&c.removeAttribute(Wt);const{children:f}=l;if(a.showAllItemsBeforeCalculate)for(const w of f)w.hasAttribute(Wt)&&w.removeAttribute(Wt);const h=l.offsetWidth,g=[],p=t.tail?d==null?void 0:d():null;let v=p?p.offsetWidth:0,b=!1;const m=l.children.length-(t.tail?1:0);for(let w=0;wh){const{updateCounter:R}=e;for(let $=w;$>=0;--$){const O=m-1-$;R!==void 0?R(O):c.textContent=`${O}`;const L=c.offsetWidth;if(v-=g[$],v+L<=h||$===0){b=!0,w=$-1,p&&(w===-1?(p.style.maxWidth=`${h-L}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:H}=e;H&&H(O);break}}}}const{onUpdateOverflow:y}=e;b?y!==void 0&&y(!0):(y!==void 0&&y(!1),c.setAttribute(Wt,""))}const i=An();return Hu.mount({id:"vueuc/overflow",head:!0,anchorMetaName:oi,ssr:i}),pt(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:r,sync:n}},render(){const{$slots:e}=this;return eo(()=>this.sync({showAllItemsBeforeCalculate:!1})),u("div",{class:"v-overflow",ref:"selfRef"},[Sc(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function il(e,t){t&&(pt(()=>{const{value:o}=e;o&&Pi.registerHandler(o,t)}),Mt(()=>{const{value:o}=e;o&&Pi.unregisterHandler(o)}))}const al=(e,t)=>{if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)};var Wu=Or(Dr,"WeakMap");const yn=Wu;var Nu=kc(Object.keys,Object);const ju=Nu;var Vu=Object.prototype,Uu=Vu.hasOwnProperty;function qu(e){if(!Pc(e))return ju(e);var t=[];for(var o in Object(e))Uu.call(e,o)&&o!="constructor"&&t.push(o);return t}function ni(e){return Hn(e)?$c(e):qu(e)}var Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gu=/^\w*$/;function ii(e,t){if(to(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ea(e)?!0:Gu.test(e)||!Ku.test(e)||t!=null&&e in Object(t)}var Xu="Expected a function";function ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xu);var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(ai.Cache||Wn),o}ai.Cache=Wn;var Yu=500;function Zu(e){var t=ai(e,function(r){return o.size===Yu&&o.clear(),r}),o=t.cache;return t}var Ju=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qu=/\\(\\)?/g,ef=Zu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ju,function(o,r,n,i){t.push(n?i.replace(Qu,"$1"):r||o)}),t});const tf=ef;function ll(e,t){return to(e)?e:ii(e,t)?[e]:tf(Nn(e))}var of=1/0;function Fr(e){if(typeof e=="string"||Ea(e))return e;var t=e+"";return t=="0"&&1/e==-of?"-0":t}function sl(e,t){t=ll(t,e);for(var o=0,r=t.length;e!=null&&ol))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,g=o&mh?new Tr:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},up=cp;function on(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,r=e.formats[o]||e.formats[e.defaultWidth];return r}}function Uo(e){return function(t,o){var r=o!=null&&o.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[s]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function qo(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?hp(l,function(f){return f.test(a)}):fp(l,function(f){return f.test(a)}),d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function fp(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function hp(e,t){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var n=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}var gp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vp=function(t,o,r){var n,i=gp[t];return typeof i=="string"?n=i:o===1?n=i.one:n=i.other.replace("{{count}}",o.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const mp=vp;var bp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yp={date:on({formats:bp,defaultWidth:"full"}),time:on({formats:xp,defaultWidth:"full"}),dateTime:on({formats:Cp,defaultWidth:"full"})};const wp=yp;var Sp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kp=function(t,o,r,n){return Sp[t]};const Pp=kp;var $p={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ip={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bp=function(t,o){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Op={ordinalNumber:Bp,era:Uo({values:$p,defaultWidth:"wide"}),quarter:Uo({values:Tp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Uo({values:zp,defaultWidth:"wide"}),day:Uo({values:Ip,defaultWidth:"wide"}),dayPeriod:Uo({values:Rp,defaultWidth:"wide",formattingValues:Mp,defaultFormattingWidth:"wide"})};const Dp=Op;var Lp=/^(\d+)(th|st|nd|rd)?/i,Fp=/\d+/i,_p={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ap={any:[/^b/i,/^(a|c)/i]},Ep={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hp={any:[/1/i,/2/i,/3/i,/4/i]},Wp={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Np={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Up={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kp={ordinalNumber:pp({matchPattern:Lp,parsePattern:Fp,valueCallback:function(t){return parseInt(t,10)}}),era:qo({matchPatterns:_p,defaultMatchWidth:"wide",parsePatterns:Ap,defaultParseWidth:"any"}),quarter:qo({matchPatterns:Ep,defaultMatchWidth:"wide",parsePatterns:Hp,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qo({matchPatterns:Wp,defaultMatchWidth:"wide",parsePatterns:Np,defaultParseWidth:"any"}),day:qo({matchPatterns:jp,defaultMatchWidth:"wide",parsePatterns:Vp,defaultParseWidth:"any"}),dayPeriod:qo({matchPatterns:Up,defaultMatchWidth:"any",parsePatterns:qp,defaultParseWidth:"any"})};const Gp=Kp;var Xp={code:"en-US",formatDistance:mp,formatLong:wp,formatRelative:Pp,localize:Dp,match:Gp,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Yp=Xp,Zp={name:"en-US",locale:Yp},Jp=Zp;function ar(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=He(Wa,null)||{},r=N(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:up[e]});return{dateLocaleRef:N(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:Jp}),localeRef:r}}const Pl=le({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Qp=Lt("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),eg=le({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),tg=le({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),$l=le({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),og=le({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),rg=Lt("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),ng=Lt("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),ig=le({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ag=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{i as He,g as Rr,w as Xe,o as Mt,r as I,a as pt,b as mc,c as N,d as bc,h as xc,e as La,f as ut,j as Cc,k as ft,l as St,m as Fn,n as _n,p as Mr,u as Qe,q as le,s as tt,t as yc,v as Ct,x as ki,C as wc,y as An,z as ge,A as Br,B as u,L as Fa,D as En,E as eo,F as _a,G as Aa,H as vt,V as mn,I as Oo,J as co,K as Sc,M as Pi,N as Or,O as Dr,P as kc,Q as Pc,R as Hn,S as $c,T as to,U as Ea,W as Wn,X as Nn,Y as Do,Z as Ha,_ as bn,$ as $i,a0 as Tc,a1 as Ti,a2 as zi,a3 as wr,a4 as zc,a5 as Ii,a6 as Ic,a7 as Rc,a8 as Mc,a9 as Bc,aa as Oc,ab as Dc,ac as Lc,ad as Wa,ae as Lt,af as jn,ag as Na,ah as ct,ai as ve,aj as oe,ak as M,al as E,am as G,an as Je,ao as Pe,ap as dt,aq as qe,ar as xe,as as Fc,at as We,au as kt,av as Ot,aw as qt,ax as J,ay as et,az as Lr,aA as Yt,aB as rt,aC as Vn,aD as ja,aE as Kt,aF as ho,aG as _c,aH as oo,aI as kr,aJ as jt,aK as xn,aL as Zo,aM as Ac,aN as zt,aO as Va,aP as Ri,aQ as Ec,aR as Hc,aS as Ua,aT as ze,aU as q,aV as Wc,aW as Mi,aX as Pr,aY as qa,aZ as Un,a_ as Nc,a$ as jc,b0 as Vc,b1 as ir,b2 as qn,b3 as Uc,b4 as Pt,b5 as qc,b6 as Kc,b7 as Gc,b8 as tr,b9 as Xc,ba as Yc,bb as Zc,bc as Jc,bd as Qc,be as Bi,bf as or,bg as eu,bh as tu,bi as Oi,bj as Cn,bk as Di,bl as Ka,bm as Ga,bn as Lo,bo as ou,bp as Kn,bq as Gn,br as Xn,bs as Yn,bt as Xa,bu as Ee,bv as Li,bw as ru,bx as nu,by as iu,bz as au,bA as lu,bB as Zn,bC as Re,bD as lt,bE as mt,bF as nt,bG as ee,bH as Ge,bI as X,bJ as su,bK as _,bL as Oe,bM as Vt,bN as Dt,bO as uo,bP as du,bQ as Ya,bR as cu,bS as Za,bT as Ut,bU as Ja,bV as uu,bW as fu}from"./index-c3bc2f38.js";let $r=[];const Qa=new WeakMap;function hu(){$r.forEach(e=>e(...Qa.get(e))),$r=[]}function Jn(e,...t){Qa.set(e,t),!$r.includes(e)&&$r.push(e)===1&&requestAnimationFrame(hu)}function Mo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function pu(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function gu(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function vu(e){return t=>{t?e.value=t.$el:e.value=null}}function Yr(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}const mu=/^(\d|\.)+$/,Fi=/(\d|\.)+/;function yt(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(mu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=Fi.exec(e);return n?e.replace(Fi,String((Number(n[0])+o)*t)):e}return e}let Zr;function bu(){return Zr===void 0&&(Zr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Zr}function xu(e,t,o){var r;const n=He(e,null);if(n===null)return;const i=(r=Rr())===null||r===void 0?void 0:r.proxy;Xe(o,a),a(o.value),Mt(()=>{a(void 0,o.value)});function a(d,c){if(!n)return;const f=n[t];c!==void 0&&l(f,c),d!==void 0&&s(f,d)}function l(d,c){d[c]||(d[c]=[]),d[c].splice(d[c].findIndex(f=>f===i),1)}function s(d,c){d[c]||(d[c]=[]),~d[c].findIndex(f=>f===i)||d[c].push(i)}}function Cu(e,t,o){if(!t)return e;const r=I(e.value);let n=null;return Xe(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}let Ro,Jo;const yu=()=>{var e,t;Ro=mc?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Jo=!1,Ro!==void 0?Ro.then(()=>{Jo=!0}):Jo=!0};yu();function wu(e){if(Jo)return;let t=!1;pt(()=>{Jo||Ro==null||Ro.then(()=>{t||e()})}),Mt(()=>{t=!0})}function ro(e,t){return Xe(e,o=>{o!==void 0&&(t.value=o)}),N(()=>e.value===void 0?t.value:e.value)}function el(e,t){return N(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}function Su(e={},t){const o=bc({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:n}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}r!==void 0&&Object.keys(r).forEach(d=>{if(d!==s.key)return;const c=r[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==s.key)return;const c=n[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&Xe(t,s=>{s?(ft("keydown",document,i),ft("keyup",document,a)):(ut("keydown",document,i),ut("keyup",document,a))})};return xc()?(La(l),Mt(()=>{(t===void 0||t.value)&&(ut("keydown",document,i),ut("keyup",document,a))})):l(),Cc(o)}const Qn=St("n-internal-select-menu"),tl=St("n-internal-select-menu-body"),ol="__disabled__";function Xt(e){const t=He(Fn,null),o=He(_n,null),r=He(Mr,null),n=He(tl,null),i=I();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};pt(()=>{ft("fullscreenchange",document,a)}),Mt(()=>{ut("fullscreenchange",document,a)})}return Qe(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?ol:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}Xt.tdkey=ol;Xt.propTo={type:[String,Object,Boolean],default:void 0};let Jt=null;function rl(){if(Jt===null&&(Jt=document.getElementById("v-binder-view-measurer"),Jt===null)){Jt=document.createElement("div"),Jt.id="v-binder-view-measurer";const{style:e}=Jt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Jt)}return Jt.getBoundingClientRect()}function ku(e,t){const o=rl();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Jr(e){const t=e.getBoundingClientRect(),o=rl();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function Pu(e){return e.nodeType===9?null:e.parentNode}function nl(e){if(e===null)return null;const t=Pu(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return nl(t)}const $u=le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Rr())===null||t===void 0?void 0:t.proxy);const o=He("VBinder",null),r=I(null),n=m=>{r.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=nl(m),m!==null;)i.push(m);for(const y of i)ft("scroll",y,f,!0)},l=()=>{for(const m of i)ut("scroll",m,f,!0);i=[]},s=new Set,d=m=>{s.size===0&&a(),s.has(m)||s.add(m)},c=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Jn(h)},h=()=>{s.forEach(m=>m())},g=new Set,p=m=>{g.size===0&&ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&ut("resize",window,b)},b=()=>{g.forEach(m=>m())};return Mt(()=>{ut("resize",window,b),l()}),{targetRef:r,setTargetRef:n,addScrollListener:d,removeScrollListener:c,addResizeListener:p,removeResizeListener:v}},render(){return yc("binder",this.$slots)}}),ei=$u,ti=le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=He("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ct(ki("follower",this.$slots),[[t]]):ki("follower",this.$slots)}}),Po="@@mmoContext",Tu={mounted(e,{value:t}){e[Po]={handler:void 0},typeof t=="function"&&(e[Po].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Po];typeof t=="function"?o.handler?o.handler!==t&&(ut("mousemoveoutside",e,o.handler),o.handler=t,ft("mousemoveoutside",e,t)):(e[Po].handler=t,ft("mousemoveoutside",e,t)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Po];t&&ut("mousemoveoutside",e,t),e[Po].handler=void 0}},zu=Tu,{c:Qt}=wc(),oi="vueuc-style";function _i(e){return e&-e}class Iu{constructor(t,o){this.l=t,this.min=o;const r=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=o[t],t-=_i(t);return i}getBound(t){let o=0,r=this.l;for(;r>o;){const n=Math.floor((o+r)/2),i=this.sum(n);if(i>t){r=n;continue}else if(i{let b=0,m=0;const y=o[g]-t[p]-t[g];return y>0&&r&&(v?m=Ei[p]?y:-y:b=Ei[p]?y:-y),{left:b,top:m}},f=a==="left"||a==="right";if(s!=="center"){const g=Bu[e],p=hr[g],v=Qr[g];if(o[v]>t[v]){if(t[g]+t[v]t[p]&&(s=Ai[l])}else{const g=a==="bottom"||a==="top"?"left":"top",p=hr[g],v=Qr[g],b=(o[v]-t[v])/2;(t[g]t[p]?(s=Hi[g],d=c(v,g,f)):(s=Hi[p],d=c(v,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),ri=le({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=He("VBinder"),o=Qe(()=>e.enabled!==void 0?e.enabled:e.show),r=I(null),n=I(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};pt(()=>{o.value&&(s(),i())});const l=An();Fu.mount({id:"vueuc/binder",head:!0,anchorMetaName:oi,ssr:l}),Mt(()=>{a()}),wu(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=r.value;if(h===null)return;const g=t.targetRef,{x:p,y:v,overlap:b}=e,m=p!==void 0&&v!==void 0?ku(p,v):Jr(g);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:w,placement:x,internalShift:C,flip:R}=e;h.setAttribute("v-placement",x),b?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:$}=h;y==="target"?$.width=`${m.width}px`:y!==void 0?$.width=y:$.width="",w==="target"?$.minWidth=`${m.width}px`:w!==void 0?$.minWidth=w:$.minWidth="";const O=Jr(h),L=Jr(n.value),{left:H,top:A,placement:D}=Ou(x,m,O,C,R,b),k=Du(D,b),{left:P,top:S,transform:B}=Lu(D,L,m,A,H,b);h.setAttribute("v-placement",D),h.style.setProperty("--v-offset-left",`${Math.round(H)}px`),h.style.setProperty("--v-offset-top",`${Math.round(A)}px`),h.style.transform=`translateX(${P}) translateY(${S}) ${B}`,h.style.setProperty("--v-transform-origin",k),h.style.transformOrigin=k};Xe(o,h=>{h?(i(),d()):a()});const d=()=>{eo().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Xe(ge(e,h),s)}),["teleportDisabled"].forEach(h=>{Xe(ge(e,h),d)}),Xe(ge(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const c=Br(),f=Qe(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(Fa,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Ct(o,[[En,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});let pr;function _u(){return typeof document>"u"?!1:(pr===void 0&&("matchMedia"in window?pr=window.matchMedia("(pointer:coarse)").matches:pr=!1),pr)}let en;function Wi(){return typeof document>"u"?1:(en===void 0&&(en="chrome"in window?window.devicePixelRatio:1),en)}const Au=Qt(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Qt("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Qt("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Eu=le({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=An();Au.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:oi,ssr:t}),pt(()=>{const{defaultScrollIndex:A,defaultScrollKey:D}=e;A!=null?p({index:A}):D!=null&&p({key:D})});let o=!1,r=!1;_a(()=>{if(o=!1,!r){r=!0;return}p({top:f.value,left:c})}),Aa(()=>{o=!0,r||(r=!0)});const n=N(()=>{const A=new Map,{keyField:D}=e;return e.items.forEach((k,P)=>{A.set(k[D],P)}),A}),i=I(null),a=I(void 0),l=new Map,s=N(()=>{const{items:A,itemSize:D,keyField:k}=e,P=new Iu(A.length,D);return A.forEach((S,B)=>{const F=S[k],U=l.get(F);U!==void 0&&P.add(B,U)}),P}),d=I(0);let c=0;const f=I(0),h=Qe(()=>Math.max(s.value.getBound(f.value-vt(e.paddingTop))-1,0)),g=N(()=>{const{value:A}=a;if(A===void 0)return[];const{items:D,itemSize:k}=e,P=h.value,S=Math.min(P+Math.ceil(A/k+1),D.length-1),B=[];for(let F=P;F<=S;++F)B.push(D[F]);return B}),p=(A,D)=>{if(typeof A=="number"){y(A,D,"auto");return}const{left:k,top:P,index:S,key:B,position:F,behavior:U,debounce:re=!0}=A;if(k!==void 0||P!==void 0)y(k,P,U);else if(S!==void 0)m(S,U,re);else if(B!==void 0){const ie=n.value.get(B);ie!==void 0&&m(ie,U,re)}else F==="bottom"?y(0,Number.MAX_SAFE_INTEGER,U):F==="top"&&y(0,0,U)};let v,b=null;function m(A,D,k){const{value:P}=s,S=P.sum(A)+vt(e.paddingTop);if(!k)i.value.scrollTo({left:0,top:S,behavior:D});else{v=A,b!==null&&window.clearTimeout(b),b=window.setTimeout(()=>{v=void 0,b=null},16);const{scrollTop:B,offsetHeight:F}=i.value;if(S>B){const U=P.get(A);S+U<=B+F||i.value.scrollTo({left:0,top:S+U-F,behavior:D})}else i.value.scrollTo({left:0,top:S,behavior:D})}}function y(A,D,k){i.value.scrollTo({left:A,top:D,behavior:k})}function w(A,D){var k,P,S;if(o||e.ignoreItemResize||H(D.target))return;const{value:B}=s,F=n.value.get(A),U=B.get(F),re=(S=(P=(k=D.borderBoxSize)===null||k===void 0?void 0:k[0])===null||P===void 0?void 0:P.blockSize)!==null&&S!==void 0?S:D.contentRect.height;if(re===U)return;re-e.itemSize===0?l.delete(A):l.set(A,re-e.itemSize);const me=re-U;if(me===0)return;B.add(F,me);const W=i.value;if(W!=null){if(v===void 0){const Z=B.sum(F);W.scrollTop>Z&&W.scrollBy(0,me)}else if(FW.scrollTop+W.offsetHeight&&W.scrollBy(0,me)}L()}d.value++}const x=!_u();let C=!1;function R(A){var D;(D=e.onScroll)===null||D===void 0||D.call(e,A),(!x||!C)&&L()}function $(A){var D;if((D=e.onWheel)===null||D===void 0||D.call(e,A),x){const k=i.value;if(k!=null){if(A.deltaX===0&&(k.scrollTop===0&&A.deltaY<=0||k.scrollTop+k.offsetHeight>=k.scrollHeight&&A.deltaY>=0))return;A.preventDefault(),k.scrollTop+=A.deltaY/Wi(),k.scrollLeft+=A.deltaX/Wi(),L(),C=!0,Jn(()=>{C=!1})}}}function O(A){if(o||H(A.target)||A.contentRect.height===a.value)return;a.value=A.contentRect.height;const{onResize:D}=e;D!==void 0&&D(A)}function L(){const{value:A}=i;A!=null&&(f.value=A.scrollTop,c=A.scrollLeft)}function H(A){let D=A;for(;D!==null;){if(D.style.display==="none")return!0;D=D.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:N(()=>{const{itemResizable:A}=e,D=co(s.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:A?"":D,minHeight:A?D:"",paddingTop:co(e.paddingTop),paddingBottom:co(e.paddingBottom)}]}),visibleItemsStyle:N(()=>(d.value,{transform:`translateY(${co(s.value.sum(h.value))})`})),viewportItems:g,listElRef:i,itemsElRef:I(null),scrollTo:p,handleListResize:O,handleListScroll:R,handleListWheel:$,handleItemResize:w}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:r}=this;return u(mn,{onResize:this.handleListResize},{default:()=>{var n,i;return u("div",Oo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=o.get(l),d=this.$slots.default({item:a,index:s})[0];return e?u(mn,{key:l,onResize:c=>this.handleItemResize(l,c)},{default:()=>d}):(d.key=l,d)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),Wt="v-hidden",Hu=Qt("[v-hidden]",{display:"none!important"}),Ni=le({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=I(null),r=I(null);function n(a){const{value:l}=o,{getCounter:s,getTail:d}=e;let c;if(s!==void 0?c=s():c=r.value,!l||!c)return;c.hasAttribute(Wt)&&c.removeAttribute(Wt);const{children:f}=l;if(a.showAllItemsBeforeCalculate)for(const w of f)w.hasAttribute(Wt)&&w.removeAttribute(Wt);const h=l.offsetWidth,g=[],p=t.tail?d==null?void 0:d():null;let v=p?p.offsetWidth:0,b=!1;const m=l.children.length-(t.tail?1:0);for(let w=0;wh){const{updateCounter:R}=e;for(let $=w;$>=0;--$){const O=m-1-$;R!==void 0?R(O):c.textContent=`${O}`;const L=c.offsetWidth;if(v-=g[$],v+L<=h||$===0){b=!0,w=$-1,p&&(w===-1?(p.style.maxWidth=`${h-L}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:H}=e;H&&H(O);break}}}}const{onUpdateOverflow:y}=e;b?y!==void 0&&y(!0):(y!==void 0&&y(!1),c.setAttribute(Wt,""))}const i=An();return Hu.mount({id:"vueuc/overflow",head:!0,anchorMetaName:oi,ssr:i}),pt(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:r,sync:n}},render(){const{$slots:e}=this;return eo(()=>this.sync({showAllItemsBeforeCalculate:!1})),u("div",{class:"v-overflow",ref:"selfRef"},[Sc(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function il(e,t){t&&(pt(()=>{const{value:o}=e;o&&Pi.registerHandler(o,t)}),Mt(()=>{const{value:o}=e;o&&Pi.unregisterHandler(o)}))}const al=(e,t)=>{if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)};var Wu=Or(Dr,"WeakMap");const yn=Wu;var Nu=kc(Object.keys,Object);const ju=Nu;var Vu=Object.prototype,Uu=Vu.hasOwnProperty;function qu(e){if(!Pc(e))return ju(e);var t=[];for(var o in Object(e))Uu.call(e,o)&&o!="constructor"&&t.push(o);return t}function ni(e){return Hn(e)?$c(e):qu(e)}var Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gu=/^\w*$/;function ii(e,t){if(to(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ea(e)?!0:Gu.test(e)||!Ku.test(e)||t!=null&&e in Object(t)}var Xu="Expected a function";function ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xu);var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(ai.Cache||Wn),o}ai.Cache=Wn;var Yu=500;function Zu(e){var t=ai(e,function(r){return o.size===Yu&&o.clear(),r}),o=t.cache;return t}var Ju=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qu=/\\(\\)?/g,ef=Zu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ju,function(o,r,n,i){t.push(n?i.replace(Qu,"$1"):r||o)}),t});const tf=ef;function ll(e,t){return to(e)?e:ii(e,t)?[e]:tf(Nn(e))}var of=1/0;function Fr(e){if(typeof e=="string"||Ea(e))return e;var t=e+"";return t=="0"&&1/e==-of?"-0":t}function sl(e,t){t=ll(t,e);for(var o=0,r=t.length;e!=null&&ol))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,g=o&mh?new Tr:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},up=cp;function on(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,r=e.formats[o]||e.formats[e.defaultWidth];return r}}function Uo(e){return function(t,o){var r=o!=null&&o.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[s]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function qo(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?hp(l,function(f){return f.test(a)}):fp(l,function(f){return f.test(a)}),d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function fp(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function hp(e,t){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var n=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}var gp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vp=function(t,o,r){var n,i=gp[t];return typeof i=="string"?n=i:o===1?n=i.one:n=i.other.replace("{{count}}",o.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const mp=vp;var bp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yp={date:on({formats:bp,defaultWidth:"full"}),time:on({formats:xp,defaultWidth:"full"}),dateTime:on({formats:Cp,defaultWidth:"full"})};const wp=yp;var Sp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},kp=function(t,o,r,n){return Sp[t]};const Pp=kp;var $p={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ip={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bp=function(t,o){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Op={ordinalNumber:Bp,era:Uo({values:$p,defaultWidth:"wide"}),quarter:Uo({values:Tp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Uo({values:zp,defaultWidth:"wide"}),day:Uo({values:Ip,defaultWidth:"wide"}),dayPeriod:Uo({values:Rp,defaultWidth:"wide",formattingValues:Mp,defaultFormattingWidth:"wide"})};const Dp=Op;var Lp=/^(\d+)(th|st|nd|rd)?/i,Fp=/\d+/i,_p={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ap={any:[/^b/i,/^(a|c)/i]},Ep={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hp={any:[/1/i,/2/i,/3/i,/4/i]},Wp={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Np={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Up={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kp={ordinalNumber:pp({matchPattern:Lp,parsePattern:Fp,valueCallback:function(t){return parseInt(t,10)}}),era:qo({matchPatterns:_p,defaultMatchWidth:"wide",parsePatterns:Ap,defaultParseWidth:"any"}),quarter:qo({matchPatterns:Ep,defaultMatchWidth:"wide",parsePatterns:Hp,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qo({matchPatterns:Wp,defaultMatchWidth:"wide",parsePatterns:Np,defaultParseWidth:"any"}),day:qo({matchPatterns:jp,defaultMatchWidth:"wide",parsePatterns:Vp,defaultParseWidth:"any"}),dayPeriod:qo({matchPatterns:Up,defaultMatchWidth:"any",parsePatterns:qp,defaultParseWidth:"any"})};const Gp=Kp;var Xp={code:"en-US",formatDistance:mp,formatLong:wp,formatRelative:Pp,localize:Dp,match:Gp,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Yp=Xp,Zp={name:"en-US",locale:Yp},Jp=Zp;function ar(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=He(Wa,null)||{},r=N(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:up[e]});return{dateLocaleRef:N(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:Jp}),localeRef:r}}const Pl=le({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Qp=Lt("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),eg=le({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),tg=le({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),$l=le({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),og=le({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),rg=Lt("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),ng=Lt("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),ig=le({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ag=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; @@ -1806,7 +1806,7 @@ import{i as He,g as Rr,w as Xe,o as Mt,r as I,a as pt,b as mc,c as N,d as bc,h a ## 限制 - 不要使用#generate_content,而是使用#message。 - 尽量总是以中文回答,避免使用其它语言。 -- 你应该总是使用一种随意的,年轻女性的语气。避免过度正式或老式的表达方式。`),v=I(""),b=I(),m=async()=>{const B=await Gw.getSysConfig();return B.code===wi.OK&&(b.value={...b.value,...B.data}),B},y=()=>Rt.get(e)||"",w=async()=>{var F,U,re,ie;await fetch("/search?q=Bing+AI&showconv=1&FORM=hpcodx&ajaxhist=0&ajaxserp=0&cc=us",{credentials:"include"});const B=y();if(!l.value||!B||c.value){const me=document.querySelector("cib-serp"),W=(ie=(re=(U=(F=me==null?void 0:me.shadowRoot)==null?void 0:F.querySelector("cib-conversation"))==null?void 0:U.querySelector("cib-side-panel"))==null?void 0:re.shadowRoot)==null?void 0:ie.querySelector(".main"),Z=W==null?void 0:W.querySelector(".threads-header"),pe=W==null?void 0:W.querySelector(".threads-container");Z.style.display="none",pe.style.display="none"}},x=B=>{Rt.set(e,B,7*24*60,"/")},C=B=>{Rt.set(n,B)},R=B=>{Rt.set(i,B),v.value=B},$=async()=>{localStorage.clear(),sessionStorage.clear();const B=await caches.keys();for(const F of B)await caches.delete(F),console.log("del cache : ",F)};return{sysConfig:b,getSysConfig:m,getUserToken:y,checkUserToken:w,saveUserToken:x,resetCache:async()=>{const B=document.cookie.split(";");if(B)for(let F=B.length;F--;)document.cookie=B[F].split("=")[0]+"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";await $(),"serviceWorker"in navigator&&await navigator.serviceWorker.ready.then(async F=>{await F.unregister()})},setAuthKey:C,setPassServer:R,getUserKievRPSSecAuth:()=>Rt.get(t)||"",saveUserKievRPSSecAuth:B=>{Rt.set(t,B,7*24*60,"/")},getUserRwBf:()=>Rt.get(o)||"",saveUserRwBf:B=>{Rt.set(o,B,7*24*60,"/")},getUserMUID:()=>Rt.get(r)||"",saveUserMUID:B=>{Rt.set(r,B,7*24*60,"/")},saveCookies:B=>{const F=B.split(";");for(const U of F){const re=U.split("="),ie=re[0].trim(),me=re.length>1?re.slice(1,re.length).join("=").trim():null;ie&&me&&Rt.set(ie,me,7*24*60,"/")}},cookiesStr:a,historyEnable:l,fullCookiesEnable:s,themeMode:d,enterpriseEnable:c,customChatNum:f,gpt4tEnable:h,sydneyEnable:g,sydneyPrompt:p,passServer:v}},{persist:{key:"user-store",storage:localStorage,paths:["historyEnable","themeMode","fullCookiesEnable","cookiesStr","enterpriseEnable","customChatNum","gpt4tEnable","sydneyEnable","sydneyPrompt","passServer"]}}),Xw=Ge("div",{class:"text-3xl py-2"},"设置",-1),Yw=Ge("div",{class:"text-3xl py-2"},"高级设置",-1),Zw=Ge("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Jw=Ge("div",{class:"text-3xl py-2"},"关于",-1),Qw=le({__name:"ChatNav",setup(e){const t=I(!1),o=I(!1),r=I(!1),n=I(!1),i=I(""),a=I(""),l=I(""),s=I(""),d=Eo(),c=cr(),{isShowPromptSotre:f}=Dt(c),h=I(!1),g=I(!1),p=yi(),{isShowChatServiceSelectModal:v}=Dt(p),b=Fd(),m="1.19.4",y=I("加载中..."),{historyEnable:w,themeMode:x,fullCookiesEnable:C,cookiesStr:R,enterpriseEnable:$,customChatNum:O,gpt4tEnable:L,sydneyEnable:H,sydneyPrompt:A,passServer:D}=Dt(b);let k=I(!1),P=I(""),S=I(!0),B=I("auto"),F=I(Xo),U=I({filter:"invert(70%)"}),re=I(!1);const ie=I(!1),me=I(0),W=I(!0),Z=I(!1),pe=I(""),Ce=I(""),Ie=async()=>{const z=await(await fetch("https://api.github.com/repos/Harry-zklcdc/go-proxy-bingai/releases/latest")).json();y.value=z.tag_name},se={github:"github",chatService:"chatService",promptStore:"promptStore",setting:"setting",compose:"compose",createImage:"createImage",advancedSetting:"advancedSetting",reset:"reset",about:"about"},Me=[{key:se.setting,label:"设置"},{key:se.chatService,label:"服务选择"},{key:se.promptStore,label:"提示词库"},{key:se.compose,label:"撰写文章",url:"/web/compose.html"},{key:se.createImage,label:"图像创建"},{key:se.advancedSetting,label:"高级设置"},{key:se.reset,label:"一键重置"},{key:se.about,label:"关于"}],ne=I([{label:"浅色",value:"light"},{label:"深色",value:"dark"},{label:"跟随系统",value:"auto"}]);pt(()=>{x.value=="light"?(F.value=Xo,U.value={filter:"invert(0%)"}):x.value=="dark"?(F.value=Cr,U.value={filter:"invert(70%)"}):x.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(F.value=Cr,U.value={filter:"invert(70%)"}):(F.value=Xo,U.value={filter:"invert(0%)"}))});const ye=Se=>u(Ew,{navConfig:Se}),ue=Se=>{var z;switch(Se){case se.chatService:v.value=!0,p.checkAllSydneyConfig();break;case se.promptStore:f.value=!0;break;case se.setting:i.value=b.getUserToken(),a.value=b.getUserKievRPSSecAuth(),l.value=b.getUserRwBf(),s.value=b.getUserMUID(),S.value=w.value,k.value=C.value,k.value&&(P.value=R.value),B.value=x.value,o.value=!0;break;case se.advancedSetting:S.value=w.value,B.value=x.value,ie.value=$.value,me.value=O.value,W.value=L.value,Z.value=H.value,pe.value=A.value,r.value=!0,Ce.value=D.value;break;case se.createImage:!((z=b.sysConfig)!=null&&z.isSysCK)&&!b.getUserToken()&&d.warning("体验画图功能需先登录"),g.value=!0;break;case se.reset:h.value=!0;break;case se.about:n.value=!0,Ie();break}},$e=async()=>{h.value=!1,await b.resetCache(),d.success("清理完成"),window.location.href="/"},Y=()=>{k.value?(b.saveCookies(P.value),R.value=P.value):(i.value?b.saveUserToken(i.value):d.warning("请先填入用户 _U Cookie"),a.value?b.saveUserKievRPSSecAuth(a.value):d.warning("请先填入用户 KievRPSSecAuth Cookie"),l.value?b.saveUserRwBf(l.value):d.warning("请先填入用户 _RwBf Cookie"),s.value?b.saveUserMUID(s.value):d.warning("请先填入用户 MUID Cookie")),C.value=k.value,o.value=!1},he=()=>{var Ve,Q,ae,Ne;w.value=S.value;const Se=$.value;$.value=ie.value,O.value=me.value;const z=L.value,V=H.value;L.value=W.value,H.value=Z.value,A.value=pe.value,b.setPassServer(Ce.value);const be=document.querySelector("cib-serp"),ke=(Ne=(ae=(Q=(Ve=be==null?void 0:be.shadowRoot)==null?void 0:Ve.querySelector("cib-conversation"))==null?void 0:Q.querySelector("cib-side-panel"))==null?void 0:ae.shadowRoot)==null?void 0:Ne.querySelector(".main"),_e=ke==null?void 0:ke.querySelector(".threads-header"),Ye=ke==null?void 0:ke.querySelector(".threads-container");S.value&&b.getUserToken()&&!$.value?(_e.style.display="flex",Ye.style.display="block"):(_e.style.display="none",Ye.style.display="none"),x.value=B.value,B.value=="light"?(CIB.changeColorScheme(0),F.value=Xo,U.value={filter:"invert(0%)"}):B.value=="dark"?(CIB.changeColorScheme(1),F.value=Cr,U.value={filter:"invert(70%)"}):B.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(CIB.changeColorScheme(1),F.value=Cr,U.value={filter:"invert(70%)"}):(CIB.changeColorScheme(0),F.value=Xo,U.value={filter:"invert(0%)"})),r.value=!1,(Se!=ie.value||V!=Z.value||z!=W.value)&&(window.location.href="/")},de=async()=>{re.value=!0;let Se=await fetch("/pass",{credentials:"include",method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:D.value})}).then(z=>z.json()).catch(()=>{d.error("人机验证失败, 请重试"),re.value=!1});Se.result!=null&&Se.result!=null?(b.saveCookies(Se.result.cookies),R.value=Se.result.cookies,d.success("自动通过人机验证成功"),re.value=!1,window.location.href="/"):(d.error("人机验证失败, 请重试"),re.value=!1)};return(Se,z)=>(Re(),nt(_(du),{theme:_(F)},{default:ee(()=>[_(Ld)()?(Re(),nt(_(ha),{key:0,class:"select-none",show:t.value,options:Me,"render-label":ye,onSelect:ue},{default:ee(()=>[X(_(On),{class:"fixed top-6 right-4 cursor-pointer z-50",src:_(Ia),alt:"设置菜单","preview-disabled":!0,onClick:z[0]||(z[0]=V=>t.value=!t.value),style:Cn(_(U))},null,8,["src","style"])]),_:1},8,["show"])):(Re(),nt(_(ha),{key:1,class:"select-none",trigger:"hover",options:Me,"render-label":ye,onSelect:ue},{default:ee(()=>[X(_(On),{class:"fixed top-6 right-6 cursor-pointer z-50",src:_(Ia),alt:"设置菜单","preview-disabled":!0,style:Cn(_(U))},null,8,["src","style"])]),_:1})),X(_(Vt),{show:o.value,"onUpdate:show":z[8]||(z[8]=V=>o.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Xw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[7]||(z[7]=V=>o.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"info",onClick:Y},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"cookiesEnable",label:"自动人机验证"},{default:ee(()=>[X(_(Ee),{type:"info",loading:_(re),onClick:de},{default:ee(()=>[Oe("启动")]),_:1},8,["loading"])]),_:1}),X(_(it),{path:"cookiesEnable",label:"完整 Cookie"},{default:ee(()=>[X(_(Go),{value:_(k),"onUpdate:value":z[1]||(z[1]=V=>uo(k)?k.value=V:k=V)},null,8,["value"])]),_:1}),Ct(X(_(it),{path:"token",label:"Token"},{default:ee(()=>[X(_(ht),{size:"large",value:i.value,"onUpdate:value":z[2]||(z[2]=V=>i.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"KievRPSSecAuth"},{default:ee(()=>[X(_(ht),{size:"large",value:a.value,"onUpdate:value":z[3]||(z[3]=V=>a.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 KievRPSSecAuth 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"_RwBf"},{default:ee(()=>[X(_(ht),{size:"large",value:l.value,"onUpdate:value":z[4]||(z[4]=V=>l.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 _RwBf 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"MUID"},{default:ee(()=>[X(_(ht),{size:"large",value:s.value,"onUpdate:value":z[5]||(z[5]=V=>s.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 MUID 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"Cookies"},{default:ee(()=>[X(_(ht),{size:"large",value:_(P),"onUpdate:value":z[6]||(z[6]=V=>uo(P)?P.value=V:P=V),type:"text",placeholder:"完整用户 Cookie"},null,8,["value"])]),_:1},512),[[jt,_(k)]])]),_:1},512)]),_:1},8,["show"]),X(_(Vt),{show:r.value,"onUpdate:show":z[18]||(z[18]=V=>r.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Yw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[17]||(z[17]=V=>r.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"info",onClick:he},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"history",label:"历史记录"},{default:ee(()=>[X(_(Go),{value:_(S),"onUpdate:value":z[9]||(z[9]=V=>uo(S)?S.value=V:S=V)},null,8,["value"])]),_:1}),X(_(it),{path:"enterpriseEnable",label:"企业版"},{default:ee(()=>[X(_(Go),{value:ie.value,"onUpdate:value":z[10]||(z[10]=V=>ie.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"gpt4tEnable",label:"GPT4 Turbo"},{default:ee(()=>[X(_(Go),{value:W.value,"onUpdate:value":z[11]||(z[11]=V=>W.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyEnable",label:"越狱模式"},{default:ee(()=>[X(_(Go),{value:Z.value,"onUpdate:value":z[12]||(z[12]=V=>Z.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyPrompt",label:"人机验证服务器"},{default:ee(()=>[X(_(ht),{size:"large",value:Ce.value,"onUpdate:value":z[13]||(z[13]=V=>Ce.value=V),type:"text",placeholder:"人机验证服务器"},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyPrompt",label:"提示词"},{default:ee(()=>[X(_(ht),{size:"large",value:pe.value,"onUpdate:value":z[14]||(z[14]=V=>pe.value=V),type:"text",placeholder:"越狱模式提示词"},null,8,["value"])]),_:1}),X(_(it),{path:"themeMode",label:"主题模式"},{default:ee(()=>[X(_(ab),{value:_(B),"onUpdate:value":z[15]||(z[15]=V=>uo(B)?B.value=V:B=V),options:ne.value,size:"large",placeholder:"请选择主题模式"},null,8,["value","options"])]),_:1}),Ct(X(_(it),{path:"customChatNum",label:"聊天次数"},{default:ee(()=>[X(_(xy),{size:"large",value:me.value,"onUpdate:value":z[16]||(z[16]=V=>me.value=V),min:"0",style:{width:"100%"}},null,8,["value"])]),_:1},512),[[jt,!_(k)]])]),_:1},512)]),_:1},8,["show"]),X(_(Vt),{show:h.value,"onUpdate:show":z[20]||(z[20]=V=>h.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Zw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[19]||(z[19]=V=>h.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"error",onClick:$e},{default:ee(()=>[Oe("确定")]),_:1})]),_:1},8,["show"]),X(_(Vt),{show:n.value,"onUpdate:show":z[22]||(z[22]=V=>n.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Jw]),action:ee(()=>[X(_(Ee),{ghost:"",size:"large",onClick:z[21]||(z[21]=V=>n.value=!1),type:"info"},{default:ee(()=>[Oe("确定")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto",size:"small",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"",label:"版本号"},{default:ee(()=>[X(_(Gt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(mt("v"+_(m)),1)]),_:1})]),_:1}),X(_(it),{path:"",label:"最新版本"},{default:ee(()=>[X(_(Gt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(mt(y.value),1)]),_:1})]),_:1}),X(_(it),{path:"token",label:"开源地址"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/Harry-zklcdc/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("Harry-zklcdc/go-proxy-bingai")]),_:1})]),_:1}),X(_(it),{path:"token",label:"原作者"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/adams549659584",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584")]),_:1})]),_:1}),X(_(it),{path:"token",label:"原开源地址"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/adams549659584/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584/go-proxy-bingai")]),_:1})]),_:1})]),_:1},512)]),_:1},8,["show"]),X(Vw,{show:g.value,"onUpdate:show":z[23]||(z[23]=V=>g.value=V)},null,8,["show"])]),_:1},8,["theme"]))}});function Ma(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function yr(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,r=new Array(t);o{const B=await Gw.getSysConfig();return B.code===wi.OK&&(b.value={...b.value,...B.data}),B},y=()=>Rt.get(e)||"",w=async()=>{var F,U,re,ie;await fetch("/search?q=Bing+AI&showconv=1&FORM=hpcodx&ajaxhist=0&ajaxserp=0&cc=us",{credentials:"include"});const B=y();if(!l.value||!B||c.value){const me=document.querySelector("cib-serp"),W=(ie=(re=(U=(F=me==null?void 0:me.shadowRoot)==null?void 0:F.querySelector("cib-conversation"))==null?void 0:U.querySelector("cib-side-panel"))==null?void 0:re.shadowRoot)==null?void 0:ie.querySelector(".main"),Z=W==null?void 0:W.querySelector(".threads-header"),pe=W==null?void 0:W.querySelector(".threads-container");Z.style.display="none",pe.style.display="none"}},x=B=>{Rt.set(e,B,7*24*60,"/")},C=B=>{Rt.set(n,B)},R=B=>{Rt.set(i,B),v.value=B},$=async()=>{localStorage.clear(),sessionStorage.clear();const B=await caches.keys();for(const F of B)await caches.delete(F),console.log("del cache : ",F)};return{sysConfig:b,getSysConfig:m,getUserToken:y,checkUserToken:w,saveUserToken:x,resetCache:async()=>{const B=document.cookie.split(";");if(B)for(let F=B.length;F--;)document.cookie=B[F].split("=")[0]+"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";await $(),"serviceWorker"in navigator&&await navigator.serviceWorker.ready.then(async F=>{await F.unregister()})},setAuthKey:C,setPassServer:R,getUserKievRPSSecAuth:()=>Rt.get(t)||"",saveUserKievRPSSecAuth:B=>{Rt.set(t,B,7*24*60,"/")},getUserRwBf:()=>Rt.get(o)||"",saveUserRwBf:B=>{Rt.set(o,B,7*24*60,"/")},getUserMUID:()=>Rt.get(r)||"",saveUserMUID:B=>{Rt.set(r,B,7*24*60,"/")},saveCookies:B=>{const F=B.split(";");for(const U of F){const re=U.split("="),ie=re[0].trim(),me=re.length>1?re.slice(1,re.length).join("=").trim():null;ie&&me&&Rt.set(ie,me,7*24*60,"/")}},cookiesStr:a,historyEnable:l,fullCookiesEnable:s,themeMode:d,enterpriseEnable:c,customChatNum:f,gpt4tEnable:h,sydneyEnable:g,sydneyPrompt:p,passServer:v}},{persist:{key:"user-store",storage:localStorage,paths:["historyEnable","themeMode","fullCookiesEnable","cookiesStr","enterpriseEnable","customChatNum","gpt4tEnable","sydneyEnable","sydneyPrompt","passServer"]}}),Xw=Ge("div",{class:"text-3xl py-2"},"设置",-1),Yw=Ge("div",{class:"text-3xl py-2"},"高级设置",-1),Zw=Ge("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Jw=Ge("div",{class:"text-3xl py-2"},"关于",-1),Qw=le({__name:"ChatNav",setup(e){const t=I(!1),o=I(!1),r=I(!1),n=I(!1),i=I(""),a=I(""),l=I(""),s=I(""),d=Eo(),c=cr(),{isShowPromptSotre:f}=Dt(c),h=I(!1),g=I(!1),p=yi(),{isShowChatServiceSelectModal:v}=Dt(p),b=Fd(),m="1.19.5",y=I("加载中..."),{historyEnable:w,themeMode:x,fullCookiesEnable:C,cookiesStr:R,enterpriseEnable:$,customChatNum:O,gpt4tEnable:L,sydneyEnable:H,sydneyPrompt:A,passServer:D}=Dt(b);let k=I(!1),P=I(""),S=I(!0),B=I("auto"),F=I(Xo),U=I({filter:"invert(70%)"}),re=I(!1);const ie=I(!1),me=I(0),W=I(!0),Z=I(!1),pe=I(""),Ce=I(""),Ie=async()=>{const z=await(await fetch("https://api.github.com/repos/Harry-zklcdc/go-proxy-bingai/releases/latest")).json();y.value=z.tag_name},se={github:"github",chatService:"chatService",promptStore:"promptStore",setting:"setting",compose:"compose",createImage:"createImage",advancedSetting:"advancedSetting",reset:"reset",about:"about"},Me=[{key:se.setting,label:"设置"},{key:se.chatService,label:"服务选择"},{key:se.promptStore,label:"提示词库"},{key:se.compose,label:"撰写文章",url:"/web/compose.html"},{key:se.createImage,label:"图像创建"},{key:se.advancedSetting,label:"高级设置"},{key:se.reset,label:"一键重置"},{key:se.about,label:"关于"}],ne=I([{label:"浅色",value:"light"},{label:"深色",value:"dark"},{label:"跟随系统",value:"auto"}]);pt(()=>{x.value=="light"?(F.value=Xo,U.value={filter:"invert(0%)"}):x.value=="dark"?(F.value=Cr,U.value={filter:"invert(70%)"}):x.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(F.value=Cr,U.value={filter:"invert(70%)"}):(F.value=Xo,U.value={filter:"invert(0%)"}))});const ye=Se=>u(Ew,{navConfig:Se}),ue=Se=>{var z;switch(Se){case se.chatService:v.value=!0,p.checkAllSydneyConfig();break;case se.promptStore:f.value=!0;break;case se.setting:i.value=b.getUserToken(),a.value=b.getUserKievRPSSecAuth(),l.value=b.getUserRwBf(),s.value=b.getUserMUID(),S.value=w.value,k.value=C.value,k.value&&(P.value=R.value),B.value=x.value,o.value=!0;break;case se.advancedSetting:S.value=w.value,B.value=x.value,ie.value=$.value,me.value=O.value,W.value=L.value,Z.value=H.value,pe.value=A.value,r.value=!0,Ce.value=D.value;break;case se.createImage:!((z=b.sysConfig)!=null&&z.isSysCK)&&!b.getUserToken()&&d.warning("体验画图功能需先登录"),g.value=!0;break;case se.reset:h.value=!0;break;case se.about:n.value=!0,Ie();break}},$e=async()=>{h.value=!1,await b.resetCache(),d.success("清理完成"),window.location.href="/"},Y=()=>{k.value?(b.saveCookies(P.value),R.value=P.value):(i.value?b.saveUserToken(i.value):d.warning("请先填入用户 _U Cookie"),a.value?b.saveUserKievRPSSecAuth(a.value):d.warning("请先填入用户 KievRPSSecAuth Cookie"),l.value?b.saveUserRwBf(l.value):d.warning("请先填入用户 _RwBf Cookie"),s.value?b.saveUserMUID(s.value):d.warning("请先填入用户 MUID Cookie")),C.value=k.value,o.value=!1},he=()=>{var Ve,Q,ae,Ne;w.value=S.value;const Se=$.value;$.value=ie.value,O.value=me.value;const z=L.value,V=H.value;L.value=W.value,H.value=Z.value,A.value=pe.value,b.setPassServer(Ce.value);const be=document.querySelector("cib-serp"),ke=(Ne=(ae=(Q=(Ve=be==null?void 0:be.shadowRoot)==null?void 0:Ve.querySelector("cib-conversation"))==null?void 0:Q.querySelector("cib-side-panel"))==null?void 0:ae.shadowRoot)==null?void 0:Ne.querySelector(".main"),_e=ke==null?void 0:ke.querySelector(".threads-header"),Ye=ke==null?void 0:ke.querySelector(".threads-container");S.value&&b.getUserToken()&&!$.value?(_e.style.display="flex",Ye.style.display="block"):(_e.style.display="none",Ye.style.display="none"),x.value=B.value,B.value=="light"?(CIB.changeColorScheme(0),F.value=Xo,U.value={filter:"invert(0%)"}):B.value=="dark"?(CIB.changeColorScheme(1),F.value=Cr,U.value={filter:"invert(70%)"}):B.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(CIB.changeColorScheme(1),F.value=Cr,U.value={filter:"invert(70%)"}):(CIB.changeColorScheme(0),F.value=Xo,U.value={filter:"invert(0%)"})),r.value=!1,(Se!=ie.value||V!=Z.value||z!=W.value)&&(window.location.href="/")},de=async()=>{re.value=!0;let Se=await fetch("/pass",{credentials:"include",method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:D.value})}).then(z=>z.json()).catch(()=>{d.error("人机验证失败, 请重试"),re.value=!1});Se.result!=null&&Se.result!=null?(b.saveCookies(Se.result.cookies),R.value=Se.result.cookies,d.success("自动通过人机验证成功"),re.value=!1,window.location.href="/"):(d.error("人机验证失败, 请重试"),re.value=!1)};return(Se,z)=>(Re(),nt(_(du),{theme:_(F)},{default:ee(()=>[_(Ld)()?(Re(),nt(_(ha),{key:0,class:"select-none",show:t.value,options:Me,"render-label":ye,onSelect:ue},{default:ee(()=>[X(_(On),{class:"fixed top-6 right-4 cursor-pointer z-50",src:_(Ia),alt:"设置菜单","preview-disabled":!0,onClick:z[0]||(z[0]=V=>t.value=!t.value),style:Cn(_(U))},null,8,["src","style"])]),_:1},8,["show"])):(Re(),nt(_(ha),{key:1,class:"select-none",trigger:"hover",options:Me,"render-label":ye,onSelect:ue},{default:ee(()=>[X(_(On),{class:"fixed top-6 right-6 cursor-pointer z-50",src:_(Ia),alt:"设置菜单","preview-disabled":!0,style:Cn(_(U))},null,8,["src","style"])]),_:1})),X(_(Vt),{show:o.value,"onUpdate:show":z[8]||(z[8]=V=>o.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Xw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[7]||(z[7]=V=>o.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"info",onClick:Y},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"cookiesEnable",label:"自动人机验证"},{default:ee(()=>[X(_(Ee),{type:"info",loading:_(re),onClick:de},{default:ee(()=>[Oe("启动")]),_:1},8,["loading"])]),_:1}),X(_(it),{path:"cookiesEnable",label:"完整 Cookie"},{default:ee(()=>[X(_(Go),{value:_(k),"onUpdate:value":z[1]||(z[1]=V=>uo(k)?k.value=V:k=V)},null,8,["value"])]),_:1}),Ct(X(_(it),{path:"token",label:"Token"},{default:ee(()=>[X(_(ht),{size:"large",value:i.value,"onUpdate:value":z[2]||(z[2]=V=>i.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"KievRPSSecAuth"},{default:ee(()=>[X(_(ht),{size:"large",value:a.value,"onUpdate:value":z[3]||(z[3]=V=>a.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 KievRPSSecAuth 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"_RwBf"},{default:ee(()=>[X(_(ht),{size:"large",value:l.value,"onUpdate:value":z[4]||(z[4]=V=>l.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 _RwBf 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"MUID"},{default:ee(()=>[X(_(ht),{size:"large",value:s.value,"onUpdate:value":z[5]||(z[5]=V=>s.value=V),type:"text",placeholder:"用户 Cookie ,仅需要 MUID 的值"},null,8,["value"])]),_:1},512),[[jt,!_(k)]]),Ct(X(_(it),{path:"token",label:"Cookies"},{default:ee(()=>[X(_(ht),{size:"large",value:_(P),"onUpdate:value":z[6]||(z[6]=V=>uo(P)?P.value=V:P=V),type:"text",placeholder:"完整用户 Cookie"},null,8,["value"])]),_:1},512),[[jt,_(k)]])]),_:1},512)]),_:1},8,["show"]),X(_(Vt),{show:r.value,"onUpdate:show":z[18]||(z[18]=V=>r.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Yw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[17]||(z[17]=V=>r.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"info",onClick:he},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"history",label:"历史记录"},{default:ee(()=>[X(_(Go),{value:_(S),"onUpdate:value":z[9]||(z[9]=V=>uo(S)?S.value=V:S=V)},null,8,["value"])]),_:1}),X(_(it),{path:"enterpriseEnable",label:"企业版"},{default:ee(()=>[X(_(Go),{value:ie.value,"onUpdate:value":z[10]||(z[10]=V=>ie.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"gpt4tEnable",label:"GPT4 Turbo"},{default:ee(()=>[X(_(Go),{value:W.value,"onUpdate:value":z[11]||(z[11]=V=>W.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyEnable",label:"越狱模式"},{default:ee(()=>[X(_(Go),{value:Z.value,"onUpdate:value":z[12]||(z[12]=V=>Z.value=V)},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyPrompt",label:"人机验证服务器"},{default:ee(()=>[X(_(ht),{size:"large",value:Ce.value,"onUpdate:value":z[13]||(z[13]=V=>Ce.value=V),type:"text",placeholder:"人机验证服务器"},null,8,["value"])]),_:1}),X(_(it),{path:"sydneyPrompt",label:"提示词"},{default:ee(()=>[X(_(ht),{size:"large",value:pe.value,"onUpdate:value":z[14]||(z[14]=V=>pe.value=V),type:"text",placeholder:"越狱模式提示词"},null,8,["value"])]),_:1}),X(_(it),{path:"themeMode",label:"主题模式"},{default:ee(()=>[X(_(ab),{value:_(B),"onUpdate:value":z[15]||(z[15]=V=>uo(B)?B.value=V:B=V),options:ne.value,size:"large",placeholder:"请选择主题模式"},null,8,["value","options"])]),_:1}),Ct(X(_(it),{path:"customChatNum",label:"聊天次数"},{default:ee(()=>[X(_(xy),{size:"large",value:me.value,"onUpdate:value":z[16]||(z[16]=V=>me.value=V),min:"0",style:{width:"100%"}},null,8,["value"])]),_:1},512),[[jt,!_(k)]])]),_:1},512)]),_:1},8,["show"]),X(_(Vt),{show:h.value,"onUpdate:show":z[20]||(z[20]=V=>h.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Zw]),action:ee(()=>[X(_(Ee),{size:"large",onClick:z[19]||(z[19]=V=>h.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),X(_(Ee),{ghost:"",size:"large",type:"error",onClick:$e},{default:ee(()=>[Oe("确定")]),_:1})]),_:1},8,["show"]),X(_(Vt),{show:n.value,"onUpdate:show":z[22]||(z[22]=V=>n.value=V),preset:"dialog","show-icon":!1},{header:ee(()=>[Jw]),action:ee(()=>[X(_(Ee),{ghost:"",size:"large",onClick:z[21]||(z[21]=V=>n.value=!1),type:"info"},{default:ee(()=>[Oe("确定")]),_:1})]),default:ee(()=>[X(_(hn),{ref:"formRef","label-placement":"left","label-width":"auto",size:"small",style:{"margin-top":"16px"}},{default:ee(()=>[X(_(it),{path:"",label:"版本号"},{default:ee(()=>[X(_(Gt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(mt("v"+_(m)),1)]),_:1})]),_:1}),X(_(it),{path:"",label:"最新版本"},{default:ee(()=>[X(_(Gt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(mt(y.value),1)]),_:1})]),_:1}),X(_(it),{path:"token",label:"开源地址"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/Harry-zklcdc/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("Harry-zklcdc/go-proxy-bingai")]),_:1})]),_:1}),X(_(it),{path:"token",label:"原作者"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/adams549659584",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584")]),_:1})]),_:1}),X(_(it),{path:"token",label:"原开源地址"},{default:ee(()=>[X(_(Ee),{text:"",tag:"a",href:"https://github.com/adams549659584/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584/go-proxy-bingai")]),_:1})]),_:1})]),_:1},512)]),_:1},8,["show"]),X(Vw,{show:g.value,"onUpdate:show":z[23]||(z[23]=V=>g.value=V)},null,8,["show"])]),_:1},8,["theme"]))}});function Ma(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function yr(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,r=new Array(t);othis.range.start)){var r=Math.max(o-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var o=this.getScrollOvers();oo&&(a=n-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(o){if(!o)return 0;for(var r=0,n=0,i=0;i=B&&r("tobottom")},m=function(P){var S=g(),B=p(),F=v();S<0||S+B>F+1||!F||(f.handleScroll(S),b(S,B,F,P))},y=function(){var P=t.dataKey,S=t.dataSources,B=S===void 0?[]:S;return B.map(function(F){return typeof P=="function"?P(F):F[P]})},w=function(P){s.value=P},x=function(){f=new sS({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:y()},w),s.value=f.getRange()},C=function(P){if(P>=t.dataSources.length-1)H();else{var S=f.getOffset(P);R(S)}},R=function(P){t.pageMode?(document.body[l]=P,document.documentElement[l]=P):d.value&&(d.value[l]=P)},$=function(){for(var P=[],S=s.value,B=S.start,F=S.end,U=t.dataSources,re=t.dataKey,ie=t.itemClass,me=t.itemTag,W=t.itemStyle,Z=t.extraProps,pe=t.dataComponent,Ce=t.itemScopedSlots,Ie=B;Ie<=F;Ie++){var se=U[Ie];if(se){var Me=typeof re=="function"?re(se):se[re];typeof Me=="string"||typeof Me=="number"?P.push(X(fS,{index:Ie,tag:me,event:er.ITEM,horizontal:a,uniqueKey:Me,source:se,extraProps:Z,component:pe,scopedSlots:Ce,style:W,class:"".concat(ie).concat(t.itemClassAdd?" "+t.itemClassAdd(Ie):""),onItemResize:O},null)):console.warn("Cannot get the data-key '".concat(re,"' from data-sources."))}else console.warn("Cannot get the index '".concat(Ie,"' from data-sources."))}return P},O=function(P,S){f.saveSize(P,S),r("resized",P,S)},L=function(P,S,B){P===Io.HEADER?f.updateParam("slotHeaderSize",S):P===Io.FOOTER&&f.updateParam("slotFooterSize",S),B&&f.handleSlotSizeChange()},H=function k(){if(c.value){var P=c.value[a?"offsetLeft":"offsetTop"];R(P),setTimeout(function(){g()+p(){r.value=r.value.filter(s=>s.act!==l.act&&s.prompt!==l.prompt),t.success("删除提示词成功")},a=l=>{n.value.isShow=!0,n.value.type="edit",n.value.title="编辑提示词",n.value.tmpPrompt=l,n.value.newPrompt={...l}};return(l,s)=>(Re(),nt(_(zd),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:ee(()=>[X(_(Gt),{type:"info"},{default:ee(()=>[Ge("span",hS,mt(l.source.act),1)]),_:1}),Ge("div",pS,[X(_(Ee),{secondary:"",type:"info",size:"small",onClick:s[0]||(s[0]=d=>a(l.source))},{default:ee(()=>[Oe("编辑")]),_:1}),X(_(Ee),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:s[1]||(s[1]=d=>i(l.source))},{default:ee(()=>[Oe("删除")]),_:1})])]),default:ee(()=>[X(_(Ss),{tooltip:!1,"line-clamp":2},{default:ee(()=>[Oe(mt(l.source.prompt),1)]),_:1})]),_:1}))}}),vS={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},mS=["href"],bS={class:"flex justify-center gap-5"},xS=["href"],CS=le({__name:"ChatPromptStore",setup(e){const t=Eo(),o=cr(),{promptDownloadConfig:r,isShowPromptSotre:n,promptList:i,keyword:a,searchPromptList:l,optPromptConfig:s}=Dt(o),d=I(!1),c=I(!1),f=I(!1),h=()=>{s.value.isShow=!0,s.value.type="add",s.value.title="添加提示词",s.value.newPrompt={act:"",prompt:""}},g=()=>{const{type:w,tmpPrompt:x,newPrompt:C}=s.value;if(!C.act)return t.error("提示词标题不能为空");if(!C.prompt)return t.error("提示词描述不能为空");if(w==="add")i.value=[C,...i.value],t.success("添加提示词成功");else if(w==="edit"){if(C.act===(x==null?void 0:x.act)&&C.prompt===(x==null?void 0:x.prompt)){t.warning("提示词未变更"),s.value.isShow=!1;return}const R=i.value.findIndex($=>$.act===(x==null?void 0:x.act)&&$.prompt===(x==null?void 0:x.prompt));R>-1?(i.value[R]=C,t.success("编辑提示词成功")):t.error("编辑提示词出错")}s.value.isShow=!1},p=w=>new Promise((x,C)=>{const R=new FileReader;R.onload=function($){var O;x((O=$.target)==null?void 0:O.result)},R.onerror=C,R.readAsText(w)}),v=async w=>{var x;if(w.file.file){c.value=!0;const C=await p(w.file.file),R=JSON.parse(C),$=o.addPrompt(R);$.result?(t.info(`上传文件含 ${R.length} 条数据`),t.success(`成功导入 ${(x=$.data)==null?void 0:x.successCount} 条有效数据`)):t.error($.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},b=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const w=JSON.stringify(i.value),x=new Blob([w],{type:"application/json"}),C=URL.createObjectURL(x),R=document.createElement("a");R.href=C,R.download="BingAIPrompts.json",R.click(),URL.revokeObjectURL(C),t.success("导出提示词库成功"),f.value=!1},m=()=>{i.value=[],t.success("清空提示词库成功")},y=async w=>{var R;if(!w.url)return t.error("请先输入下载链接");w.isDownloading=!0;let x;if(w.url.endsWith(".json"))x=await fetch(w.url).then($=>$.json());else if(w.url.endsWith(".csv")){const $=await fetch(w.url).then(O=>O.text());console.log($),x=$.split(` `).filter(O=>O).map(O=>{var H;const L=O.split('","');return{act:L[0].slice(1),prompt:(H=L[1])==null?void 0:H.slice(1)}}),x.shift()}else return w.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");w.isDownloading=!1;const C=o.addPrompt(x);C.result?(t.info(`下载文件含 ${x.length} 条数据`),t.success(`成功导入 ${(R=C.data)==null?void 0:R.successCount} 条有效数据`)):t.error(C.msg||"提示词格式有误")};return(w,x)=>(Re(),lt(zt,null,[X(_(Vt),{class:"w-11/12 xl:w-[900px]",show:_(n),"onUpdate:show":x[3]||(x[3]=C=>uo(n)?n.value=C:null),preset:"card",title:"提示词库"},{default:ee(()=>[Ge("div",vS,[X(_(ht),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:_(a),"onUpdate:value":x[0]||(x[0]=C=>uo(a)?a.value=C:null),clearable:!0},null,8,["value"]),X(_(Ee),{secondary:"",type:"info",onClick:x[1]||(x[1]=C=>d.value=!0)},{default:ee(()=>[Oe("下载")]),_:1}),X(_(Ee),{secondary:"",type:"info",onClick:h},{default:ee(()=>[Oe("添加")]),_:1}),X(_(Bw),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:v},{default:ee(()=>[X(_(Ee),{secondary:"",type:"success",loading:c.value},{default:ee(()=>[Oe("导入")]),_:1},8,["loading"])]),_:1}),X(_(Ee),{secondary:"",type:"success",onClick:b,loading:f.value},{default:ee(()=>[Oe("导出")]),_:1},8,["loading"]),X(_(Ee),{secondary:"",type:"error",onClick:m},{default:ee(()=>[Oe("清空")]),_:1})]),_(l).length>0?(Re(),nt(_(Ad),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":_(l),"data-component":gS,keeps:10},null,8,["data-sources"])):(Re(),nt(_(_r),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:ee(()=>[X(_(Ee),{secondary:"",type:"info",onClick:x[2]||(x[2]=C=>d.value=!0)},{default:ee(()=>[Oe("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),X(_(Vt),{class:"w-11/12 xl:w-[600px]",show:_(s).isShow,"onUpdate:show":x[6]||(x[6]=C=>_(s).isShow=C),preset:"card",title:_(s).title},{default:ee(()=>[X(_(k0),{vertical:""},{default:ee(()=>[Oe(" 标题 "),X(_(ht),{placeholder:"请输入标题",value:_(s).newPrompt.act,"onUpdate:value":x[4]||(x[4]=C=>_(s).newPrompt.act=C)},null,8,["value"]),Oe(" 描述 "),X(_(ht),{placeholder:"请输入描述",type:"textarea",value:_(s).newPrompt.prompt,"onUpdate:value":x[5]||(x[5]=C=>_(s).newPrompt.prompt=C)},null,8,["value"]),X(_(Ee),{block:"",secondary:"",type:"info",onClick:g},{default:ee(()=>[Oe("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),X(_(Vt),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":x[7]||(x[7]=C=>d.value=C),preset:"card",title:"下载提示词"},{default:ee(()=>[X(_(Ty),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:ee(()=>[(Re(!0),lt(zt,null,Za(_(r),(C,R)=>(Re(),nt(_(zy),{key:R},{suffix:ee(()=>[Ge("div",bS,[C.type===1?(Re(),lt("a",{key:0,class:"no-underline",href:C.refer,target:"_blank",rel:"noopener noreferrer"},[X(_(Ee),{secondary:""},{default:ee(()=>[Oe("来源")]),_:1})],8,xS)):Ut("",!0),X(_(Ee),{secondary:"",type:"info",onClick:$=>y(C),loading:C.isDownloading},{default:ee(()=>[Oe("下载")]),_:2},1032,["onClick","loading"])])]),default:ee(()=>[C.type===1?(Re(),lt("a",{key:0,class:"no-underline text-blue-500",href:C.url,target:"_blank",rel:"noopener noreferrer"},mt(C.name),9,mS)):C.type===2?(Re(),nt(_(ht),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:C.url,"onUpdate:value":$=>C.url=$},null,8,["value","onUpdate:value"])):Ut("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),yS=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r diff --git a/web/assets/index-ef2a5096.js b/web/assets/index-c3bc2f38.js similarity index 99% rename from web/assets/index-ef2a5096.js rename to web/assets/index-c3bc2f38.js index 4fcc658073..d319578288 100644 --- a/web/assets/index-ef2a5096.js +++ b/web/assets/index-c3bc2f38.js @@ -570,4 +570,4 @@ ${t} * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Rn=typeof window<"u";function Wy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ui(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const pr=()=>{},ht=Array.isArray,Vy=/\/$/,Uy=e=>e.replace(Vy,"");function fi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Xy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Ky(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _a(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&$f(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qy(e[n],t[n]))return!1;return!0}function qy(e,t){return ht(e)?$a(e,t):ht(t)?$a(t,e):e===t}function $a(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ar;(function(e){e.pop="pop",e.push="push"})(Ar||(Ar={}));var gr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gr||(gr={}));function Yy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uy(e)}const Zy=/^[^#]+#/;function Jy(e,t){return e.replace(Zy,"#")+t}function Qy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ex(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Qy(o,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 Ea(e,t){return(history.state?history.state.position-t:-1)+e}const Di=new Map;function tx(e,t){Di.set(e,t)}function nx(e){const t=Di.get(e);return Di.delete(e),t}let rx=()=>location.protocol+"//"+location.host;function Ef(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),_a(a,"")}return _a(n,e)+r+o}function ox(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=Ef(e,location),p=n.value,C=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=C?d.position-C.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ar.pop,direction:y?y>0?gr.forward:gr.back:gr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Vo()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Vo():null}}function ix(e){const{history:t,location:n}=window,r={value:Ef(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:rx()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,Ra(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Vo()});i(u.current,u,!0);const f=ye({},Ra(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function sx(e){e=Yy(e);const t=ix(e),n=ox(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Jy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function lx(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),sx(e)}function ax(e){return typeof e=="string"||e&&typeof e=="object"}function Rf(e){return typeof e=="string"||typeof e=="symbol"}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pf=Symbol("");var Pa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pa||(Pa={}));function Fn(e,t){return ye(new Error,{type:e,[Pf]:!0},t)}function St(e,t){return e instanceof Error&&Pf in e&&(t==null||!!(e.type&t))}const Ta="[^/]+?",cx={sensitive:!1,strict:!1,start:!0,end:!0},ux=/[.+*?^${}()[\]/\\]/g;function fx(e,t){const n=ye({},cx,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function hx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const px={type:0,value:""},gx=/[a-zA-Z0-9_]/;function vx(e){if(!e)return[[]];if(e==="/")return[[px]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:pr}function s(u){if(Rf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Tf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ia(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,C;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});C=d.record.name,v=ye(Aa(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Aa(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),C=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});C=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let m=d;for(;m;)y.unshift(m.record),m=m.parent;return{name:C,path:p,params:v,matched:y,meta:Cx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Aa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:xx(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 xx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function za(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Tf(e,t){return t.children.some(n=>n===e||Tf(e,n))}const Of=/#/g,wx=/&/g,Sx=/\//g,_x=/=/g,$x=/\?/g,Af=/\+/g,Ex=/%5B/g,Rx=/%5D/g,If=/%5E/g,Px=/%60/g,zf=/%7B/g,Tx=/%7C/g,Bf=/%7D/g,Ox=/%20/g;function Is(e){return encodeURI(""+e).replace(Tx,"|").replace(Ex,"[").replace(Rx,"]")}function Ax(e){return Is(e).replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ni(e){return Is(e).replace(Af,"%2B").replace(Ox,"+").replace(Of,"%23").replace(wx,"%26").replace(Px,"`").replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ix(e){return Ni(e).replace(_x,"%3D")}function zx(e){return Is(e).replace(Of,"%23").replace($x,"%3F")}function Bx(e){return e==null?"":zx(e).replace(Sx,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function kx(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Ni(i)):[r&&Ni(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Mx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Lx=Symbol(""),ka=Symbol(""),zs=Symbol(""),kf=Symbol(""),Wi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Fn(4,{from:n,to:t})):f instanceof Error?l(f):ax(f)?l(Fn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function di(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Hx(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Wy(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Hx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ma(e){const t=Ae(zs),n=Ae(kf),r=Y(()=>t.resolve(xt(e.to))),o=Y(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hn.bind(null,u));if(d>-1)return d;const v=La(a[c-2]);return c>1&&La(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=Y(()=>o.value>-1&&Nx(n.params,r.value.params)),s=Y(()=>o.value>-1&&o.value===n.matched.length-1&&$f(n.params,r.value.params));function l(a={}){return Dx(a)?t[xt(e.replace)?"replace":"push"](xt(e.to)).catch(pr):Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Fx=Re({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:Ma,setup(e,{slots:t}){const n=bn(Ma(e)),{options:r}=Ae(zs),o=Y(()=>({[Ha(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ha(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),jx=Fx;function Dx(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 Nx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ht(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function La(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ha=(e,t,n)=>e??t??n,Wx=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(Wi),o=Y(()=>e.route||r.value),i=Ae(ka,0),s=Y(()=>{let c=xt(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Y(()=>o.value.matched[s.value]);Xe(ka,Y(()=>s.value+1)),Xe(Lx,l),Xe(Wi,o);const a=re();return dt(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Fa(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Fa(n.default,{Component:y,route:c})||y}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mf=Wx;function Vx(e){const t=bx(e.routes,e),n=e.parseQuery||kx,r=e.stringifyQuery||Ba,o=e.history,i=nr(),s=nr(),l=nr(),a=rs(Mt);let c=Mt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ui.bind(null,T=>""+T),f=ui.bind(null,Bx),d=ui.bind(null,Co);function v(T,V){let B,q;return Rf(T)?(B=t.getRecordMatcher(T),q=V):q=T,t.addRoute(q,B)}function p(T){const V=t.getRecordMatcher(T);V&&t.removeRoute(V)}function C(){return t.getRoutes().map(T=>T.record)}function y(T){return!!t.getRecordMatcher(T)}function m(T,V){if(V=ye({},V||a.value),typeof T=="string"){const g=fi(n,T,V.path),w=t.resolve({path:g.path},V),A=o.createHref(g.fullPath);return ye(g,w,{params:d(w.params),hash:Co(g.hash),redirectedFrom:void 0,href:A})}let B;if("path"in T)B=ye({},T,{path:fi(n,T.path,V.path).path});else{const g=ye({},T.params);for(const w in g)g[w]==null&&delete g[w];B=ye({},T,{params:f(g)}),V.params=f(V.params)}const q=t.resolve(B,V),pe=T.hash||"";q.params=u(d(q.params));const ve=Ky(r,ye({},T,{hash:Ax(pe),path:q.path})),h=o.createHref(ve);return ye({fullPath:ve,hash:pe,query:r===Ba?Mx(T.query):T.query||{}},q,{redirectedFrom:void 0,href:h})}function S(T){return typeof T=="string"?fi(n,T,a.value.path):ye({},T)}function k(T,V){if(c!==T)return Fn(8,{from:V,to:T})}function R(T){return b(T)}function $(T){return R(ye(S(T),{replace:!0}))}function _(T){const V=T.matched[T.matched.length-1];if(V&&V.redirect){const{redirect:B}=V;let q=typeof B=="function"?B(T):B;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),ye({query:T.query,hash:T.hash,params:"path"in q?{}:T.params},q)}}function b(T,V){const B=c=m(T),q=a.value,pe=T.state,ve=T.force,h=T.replace===!0,g=_(B);if(g)return b(ye(S(g),{state:typeof g=="object"?ye({},pe,g.state):pe,force:ve,replace:h}),V||B);const w=B;w.redirectedFrom=V;let A;return!ve&&Gy(r,q,B)&&(A=Fn(16,{to:w,from:q}),Se(q,q,!0,!1)),(A?Promise.resolve(A):F(w,q)).catch(O=>St(O)?St(O,2)?O:we(O):ne(O,w,q)).then(O=>{if(O){if(St(O,2))return b(ye({replace:h},S(O.to),{state:typeof O.to=="object"?ye({},pe,O.to.state):pe,force:ve}),V||w)}else O=z(w,q,!0,h,pe);return W(w,q,O),O})}function x(T,V){const B=k(T,V);return B?Promise.reject(B):Promise.resolve()}function P(T){const V=Ue.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(T):T()}function F(T,V){let B;const[q,pe,ve]=Ux(T,V);B=di(q.reverse(),"beforeRouteLeave",T,V);for(const g of q)g.leaveGuards.forEach(w=>{B.push(Wt(w,T,V))});const h=x.bind(null,T,V);return B.push(h),fe(B).then(()=>{B=[];for(const g of i.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).then(()=>{B=di(pe,"beforeRouteUpdate",T,V);for(const g of pe)g.updateGuards.forEach(w=>{B.push(Wt(w,T,V))});return B.push(h),fe(B)}).then(()=>{B=[];for(const g of ve)if(g.beforeEnter)if(ht(g.beforeEnter))for(const w of g.beforeEnter)B.push(Wt(w,T,V));else B.push(Wt(g.beforeEnter,T,V));return B.push(h),fe(B)}).then(()=>(T.matched.forEach(g=>g.enterCallbacks={}),B=di(ve,"beforeRouteEnter",T,V),B.push(h),fe(B))).then(()=>{B=[];for(const g of s.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).catch(g=>St(g,8)?g:Promise.reject(g))}function W(T,V,B){l.list().forEach(q=>P(()=>q(T,V,B)))}function z(T,V,B,q,pe){const ve=k(T,V);if(ve)return ve;const h=V===Mt,g=Rn?history.state:{};B&&(q||h?o.replace(T.fullPath,ye({scroll:h&&g&&g.scroll},pe)):o.push(T.fullPath,pe)),a.value=T,Se(T,V,B,h),we()}let Z;function oe(){Z||(Z=o.listen((T,V,B)=>{if(!Je.listening)return;const q=m(T),pe=_(q);if(pe){b(ye(pe,{replace:!0}),q).catch(pr);return}c=q;const ve=a.value;Rn&&tx(Ea(ve.fullPath,B.delta),Vo()),F(q,ve).catch(h=>St(h,12)?h:St(h,2)?(b(h.to,q).then(g=>{St(g,20)&&!B.delta&&B.type===Ar.pop&&o.go(-1,!1)}).catch(pr),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ne(h,q,ve))).then(h=>{h=h||z(q,ve,!1),h&&(B.delta&&!St(h,8)?o.go(-B.delta,!1):B.type===Ar.pop&&St(h,20)&&o.go(-1,!1)),W(q,ve,h)}).catch(pr)}))}let ce=nr(),X=nr(),U;function ne(T,V,B){we(T);const q=X.list();return q.length?q.forEach(pe=>pe(T,V,B)):console.error(T),Promise.reject(T)}function Ce(){return U&&a.value!==Mt?Promise.resolve():new Promise((T,V)=>{ce.add([T,V])})}function we(T){return U||(U=!T,oe(),ce.list().forEach(([V,B])=>T?B(T):V()),ce.reset()),T}function Se(T,V,B,q){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const ve=!B&&nx(Ea(T.fullPath,0))||(q||!B)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(T,V,ve)).then(h=>h&&ex(h)).catch(h=>ne(h,T,V))}const _e=T=>o.go(T);let Ze;const Ue=new Set,Je={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:C,resolve:m,options:e,push:R,replace:$,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:Ce,install(T){const V=this;T.component("RouterLink",jx),T.component("RouterView",Mf),T.config.globalProperties.$router=V,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(a)}),Rn&&!Ze&&a.value===Mt&&(Ze=!0,R(o.location).catch(pe=>{}));const B={};for(const pe in Mt)Object.defineProperty(B,pe,{get:()=>a.value[pe],enumerable:!0});T.provide(zs,V),T.provide(kf,uc(B)),T.provide(Wi,a);const q=T.unmount;Ue.add(T),T.unmount=function(){Ue.delete(T),Ue.size<1&&(c=Mt,Z&&Z(),Z=null,a.value=Mt,Ze=!1,U=!1),q()}}};function fe(T){return T.reduce((V,B)=>V.then(()=>P(B)),Promise.resolve())}return Je}function Ux(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Kx=Re({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(ds(),hs(xt(fy),{"theme-overrides":t},{default:oo(()=>[je(xt(Oy),null,{default:oo(()=>[je(xt(Ny),null,{default:oo(()=>[je(xt(Mf))]),_:1})]),_:1})]),_:1}))}}),Gx="modulepreload",qx=function(e){return"/web/"+e},ja={},Xx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=qx(i),i in ja)return;ja[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Gx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Yx=Vx({history:lx("/web"),routes:[{path:"/",name:"chat",component:()=>Xx(()=>import("./index-b63e2106.js"),["assets/index-b63e2106.js","assets/index-1dc749ba.css"])}]}),Bs=ip(Kx);wp(Bs);Bs.use(Yx);Bs.mount("#app");export{Ln as $,Cu as A,E as B,Xp as C,xg as D,kn as E,Ec as F,Rc as G,s1 as H,gs as I,l1 as J,qd as K,_g as L,ql as M,_s as N,Wn as O,Gm as P,ju as Q,Es as R,Km as S,bo as T,dv as U,Xl as V,Un as W,_b as X,_v as Y,kr as Z,Gu as _,Xt as a,u1 as a$,Fo as a0,ba as a1,Wu as a2,Kn as a3,Uu as a4,Vn as a5,xn as a6,Fu as a7,Hu as a8,ki as a9,Mr as aA,ut as aB,ff as aC,D0 as aD,El as aE,iu as aF,d1 as aG,ss as aH,vg as aI,dl as aJ,ms as aK,zp as aL,qg as aM,Me as aN,m1 as aO,Ip as aP,Tt as aQ,Ao as aR,vo as aS,an as aT,Kr as aU,Ts as aV,Pl as aW,xo as aX,No as aY,Rs as aZ,Rl as a_,Lu as aa,x0 as ab,hv as ac,qt as ad,Lr as ae,hn as af,Cn as ag,Gr as ah,bs as ai,qn as aj,xe as ak,ee as al,D as am,wn as an,it as ao,Gn as ap,Ps as aq,ie as ar,L0 as as,g1 as at,hf as au,en as av,Gt as aw,de as ax,Ai as ay,N0 as az,mu as b,Y0 as b0,Jg as b1,Br as b2,Q0 as b3,vf as b4,oy as b5,h1 as b6,v1 as b7,mo as b8,hy as b9,Cy as bA,o1 as bB,ds as bC,t1 as bD,Zx as bE,hs as bF,oo as bG,Vc as bH,je as bI,r1 as bJ,xt as bK,_r as bL,Ey as bM,i1 as bN,ke as bO,fy as bP,Oc as bQ,Tc as bR,e1 as bS,n1 as bT,Xi as bU,Jx as bV,Qx as bW,yy as ba,Ti as bb,Ye as bc,a1 as bd,xs as be,ys as bf,ra as bg,Iy as bh,pf as bi,qi as bj,b1 as bk,hu as bl,tg as bm,Ap as bn,ky as bo,af as bp,lf as bq,cf as br,ji as bs,uf as bt,Sa as bu,q0 as bv,jc as bw,bf as bx,yf as by,By as bz,Y as c,bn as d,yn as e,qe as f,zo as g,vu as h,Ae as i,Rt as j,at as k,c1 as l,dg as m,hg as n,pt as o,pg as p,Re as q,re as r,Xe as s,Ml as t,Ii as u,mi as v,dt as w,p1 as x,Ho as y,Pt as z}; + */const Rn=typeof window<"u";function Wy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ui(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const pr=()=>{},ht=Array.isArray,Vy=/\/$/,Uy=e=>e.replace(Vy,"");function fi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Xy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Ky(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _a(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&$f(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qy(e[n],t[n]))return!1;return!0}function qy(e,t){return ht(e)?$a(e,t):ht(t)?$a(t,e):e===t}function $a(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ar;(function(e){e.pop="pop",e.push="push"})(Ar||(Ar={}));var gr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gr||(gr={}));function Yy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uy(e)}const Zy=/^[^#]+#/;function Jy(e,t){return e.replace(Zy,"#")+t}function Qy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ex(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Qy(o,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 Ea(e,t){return(history.state?history.state.position-t:-1)+e}const Di=new Map;function tx(e,t){Di.set(e,t)}function nx(e){const t=Di.get(e);return Di.delete(e),t}let rx=()=>location.protocol+"//"+location.host;function Ef(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),_a(a,"")}return _a(n,e)+r+o}function ox(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=Ef(e,location),p=n.value,C=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=C?d.position-C.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ar.pop,direction:y?y>0?gr.forward:gr.back:gr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Vo()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Vo():null}}function ix(e){const{history:t,location:n}=window,r={value:Ef(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:rx()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,Ra(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Vo()});i(u.current,u,!0);const f=ye({},Ra(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function sx(e){e=Yy(e);const t=ix(e),n=ox(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Jy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function lx(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),sx(e)}function ax(e){return typeof e=="string"||e&&typeof e=="object"}function Rf(e){return typeof e=="string"||typeof e=="symbol"}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pf=Symbol("");var Pa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pa||(Pa={}));function Fn(e,t){return ye(new Error,{type:e,[Pf]:!0},t)}function St(e,t){return e instanceof Error&&Pf in e&&(t==null||!!(e.type&t))}const Ta="[^/]+?",cx={sensitive:!1,strict:!1,start:!0,end:!0},ux=/[.+*?^${}()[\]/\\]/g;function fx(e,t){const n=ye({},cx,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function hx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const px={type:0,value:""},gx=/[a-zA-Z0-9_]/;function vx(e){if(!e)return[[]];if(e==="/")return[[px]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:pr}function s(u){if(Rf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Tf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ia(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,C;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});C=d.record.name,v=ye(Aa(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Aa(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),C=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});C=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let m=d;for(;m;)y.unshift(m.record),m=m.parent;return{name:C,path:p,params:v,matched:y,meta:Cx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Aa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:xx(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 xx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function za(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Tf(e,t){return t.children.some(n=>n===e||Tf(e,n))}const Of=/#/g,wx=/&/g,Sx=/\//g,_x=/=/g,$x=/\?/g,Af=/\+/g,Ex=/%5B/g,Rx=/%5D/g,If=/%5E/g,Px=/%60/g,zf=/%7B/g,Tx=/%7C/g,Bf=/%7D/g,Ox=/%20/g;function Is(e){return encodeURI(""+e).replace(Tx,"|").replace(Ex,"[").replace(Rx,"]")}function Ax(e){return Is(e).replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ni(e){return Is(e).replace(Af,"%2B").replace(Ox,"+").replace(Of,"%23").replace(wx,"%26").replace(Px,"`").replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ix(e){return Ni(e).replace(_x,"%3D")}function zx(e){return Is(e).replace(Of,"%23").replace($x,"%3F")}function Bx(e){return e==null?"":zx(e).replace(Sx,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function kx(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Ni(i)):[r&&Ni(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Mx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Lx=Symbol(""),ka=Symbol(""),zs=Symbol(""),kf=Symbol(""),Wi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Fn(4,{from:n,to:t})):f instanceof Error?l(f):ax(f)?l(Fn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function di(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Hx(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Wy(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Hx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ma(e){const t=Ae(zs),n=Ae(kf),r=Y(()=>t.resolve(xt(e.to))),o=Y(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hn.bind(null,u));if(d>-1)return d;const v=La(a[c-2]);return c>1&&La(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=Y(()=>o.value>-1&&Nx(n.params,r.value.params)),s=Y(()=>o.value>-1&&o.value===n.matched.length-1&&$f(n.params,r.value.params));function l(a={}){return Dx(a)?t[xt(e.replace)?"replace":"push"](xt(e.to)).catch(pr):Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Fx=Re({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:Ma,setup(e,{slots:t}){const n=bn(Ma(e)),{options:r}=Ae(zs),o=Y(()=>({[Ha(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ha(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),jx=Fx;function Dx(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 Nx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ht(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function La(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ha=(e,t,n)=>e??t??n,Wx=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(Wi),o=Y(()=>e.route||r.value),i=Ae(ka,0),s=Y(()=>{let c=xt(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Y(()=>o.value.matched[s.value]);Xe(ka,Y(()=>s.value+1)),Xe(Lx,l),Xe(Wi,o);const a=re();return dt(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Fa(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Fa(n.default,{Component:y,route:c})||y}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mf=Wx;function Vx(e){const t=bx(e.routes,e),n=e.parseQuery||kx,r=e.stringifyQuery||Ba,o=e.history,i=nr(),s=nr(),l=nr(),a=rs(Mt);let c=Mt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ui.bind(null,T=>""+T),f=ui.bind(null,Bx),d=ui.bind(null,Co);function v(T,V){let B,q;return Rf(T)?(B=t.getRecordMatcher(T),q=V):q=T,t.addRoute(q,B)}function p(T){const V=t.getRecordMatcher(T);V&&t.removeRoute(V)}function C(){return t.getRoutes().map(T=>T.record)}function y(T){return!!t.getRecordMatcher(T)}function m(T,V){if(V=ye({},V||a.value),typeof T=="string"){const g=fi(n,T,V.path),w=t.resolve({path:g.path},V),A=o.createHref(g.fullPath);return ye(g,w,{params:d(w.params),hash:Co(g.hash),redirectedFrom:void 0,href:A})}let B;if("path"in T)B=ye({},T,{path:fi(n,T.path,V.path).path});else{const g=ye({},T.params);for(const w in g)g[w]==null&&delete g[w];B=ye({},T,{params:f(g)}),V.params=f(V.params)}const q=t.resolve(B,V),pe=T.hash||"";q.params=u(d(q.params));const ve=Ky(r,ye({},T,{hash:Ax(pe),path:q.path})),h=o.createHref(ve);return ye({fullPath:ve,hash:pe,query:r===Ba?Mx(T.query):T.query||{}},q,{redirectedFrom:void 0,href:h})}function S(T){return typeof T=="string"?fi(n,T,a.value.path):ye({},T)}function k(T,V){if(c!==T)return Fn(8,{from:V,to:T})}function R(T){return b(T)}function $(T){return R(ye(S(T),{replace:!0}))}function _(T){const V=T.matched[T.matched.length-1];if(V&&V.redirect){const{redirect:B}=V;let q=typeof B=="function"?B(T):B;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),ye({query:T.query,hash:T.hash,params:"path"in q?{}:T.params},q)}}function b(T,V){const B=c=m(T),q=a.value,pe=T.state,ve=T.force,h=T.replace===!0,g=_(B);if(g)return b(ye(S(g),{state:typeof g=="object"?ye({},pe,g.state):pe,force:ve,replace:h}),V||B);const w=B;w.redirectedFrom=V;let A;return!ve&&Gy(r,q,B)&&(A=Fn(16,{to:w,from:q}),Se(q,q,!0,!1)),(A?Promise.resolve(A):F(w,q)).catch(O=>St(O)?St(O,2)?O:we(O):ne(O,w,q)).then(O=>{if(O){if(St(O,2))return b(ye({replace:h},S(O.to),{state:typeof O.to=="object"?ye({},pe,O.to.state):pe,force:ve}),V||w)}else O=z(w,q,!0,h,pe);return W(w,q,O),O})}function x(T,V){const B=k(T,V);return B?Promise.reject(B):Promise.resolve()}function P(T){const V=Ue.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(T):T()}function F(T,V){let B;const[q,pe,ve]=Ux(T,V);B=di(q.reverse(),"beforeRouteLeave",T,V);for(const g of q)g.leaveGuards.forEach(w=>{B.push(Wt(w,T,V))});const h=x.bind(null,T,V);return B.push(h),fe(B).then(()=>{B=[];for(const g of i.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).then(()=>{B=di(pe,"beforeRouteUpdate",T,V);for(const g of pe)g.updateGuards.forEach(w=>{B.push(Wt(w,T,V))});return B.push(h),fe(B)}).then(()=>{B=[];for(const g of ve)if(g.beforeEnter)if(ht(g.beforeEnter))for(const w of g.beforeEnter)B.push(Wt(w,T,V));else B.push(Wt(g.beforeEnter,T,V));return B.push(h),fe(B)}).then(()=>(T.matched.forEach(g=>g.enterCallbacks={}),B=di(ve,"beforeRouteEnter",T,V),B.push(h),fe(B))).then(()=>{B=[];for(const g of s.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).catch(g=>St(g,8)?g:Promise.reject(g))}function W(T,V,B){l.list().forEach(q=>P(()=>q(T,V,B)))}function z(T,V,B,q,pe){const ve=k(T,V);if(ve)return ve;const h=V===Mt,g=Rn?history.state:{};B&&(q||h?o.replace(T.fullPath,ye({scroll:h&&g&&g.scroll},pe)):o.push(T.fullPath,pe)),a.value=T,Se(T,V,B,h),we()}let Z;function oe(){Z||(Z=o.listen((T,V,B)=>{if(!Je.listening)return;const q=m(T),pe=_(q);if(pe){b(ye(pe,{replace:!0}),q).catch(pr);return}c=q;const ve=a.value;Rn&&tx(Ea(ve.fullPath,B.delta),Vo()),F(q,ve).catch(h=>St(h,12)?h:St(h,2)?(b(h.to,q).then(g=>{St(g,20)&&!B.delta&&B.type===Ar.pop&&o.go(-1,!1)}).catch(pr),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ne(h,q,ve))).then(h=>{h=h||z(q,ve,!1),h&&(B.delta&&!St(h,8)?o.go(-B.delta,!1):B.type===Ar.pop&&St(h,20)&&o.go(-1,!1)),W(q,ve,h)}).catch(pr)}))}let ce=nr(),X=nr(),U;function ne(T,V,B){we(T);const q=X.list();return q.length?q.forEach(pe=>pe(T,V,B)):console.error(T),Promise.reject(T)}function Ce(){return U&&a.value!==Mt?Promise.resolve():new Promise((T,V)=>{ce.add([T,V])})}function we(T){return U||(U=!T,oe(),ce.list().forEach(([V,B])=>T?B(T):V()),ce.reset()),T}function Se(T,V,B,q){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const ve=!B&&nx(Ea(T.fullPath,0))||(q||!B)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(T,V,ve)).then(h=>h&&ex(h)).catch(h=>ne(h,T,V))}const _e=T=>o.go(T);let Ze;const Ue=new Set,Je={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:C,resolve:m,options:e,push:R,replace:$,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:Ce,install(T){const V=this;T.component("RouterLink",jx),T.component("RouterView",Mf),T.config.globalProperties.$router=V,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(a)}),Rn&&!Ze&&a.value===Mt&&(Ze=!0,R(o.location).catch(pe=>{}));const B={};for(const pe in Mt)Object.defineProperty(B,pe,{get:()=>a.value[pe],enumerable:!0});T.provide(zs,V),T.provide(kf,uc(B)),T.provide(Wi,a);const q=T.unmount;Ue.add(T),T.unmount=function(){Ue.delete(T),Ue.size<1&&(c=Mt,Z&&Z(),Z=null,a.value=Mt,Ze=!1,U=!1),q()}}};function fe(T){return T.reduce((V,B)=>V.then(()=>P(B)),Promise.resolve())}return Je}function Ux(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Kx=Re({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(ds(),hs(xt(fy),{"theme-overrides":t},{default:oo(()=>[je(xt(Oy),null,{default:oo(()=>[je(xt(Ny),null,{default:oo(()=>[je(xt(Mf))]),_:1})]),_:1})]),_:1}))}}),Gx="modulepreload",qx=function(e){return"/web/"+e},ja={},Xx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=qx(i),i in ja)return;ja[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Gx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Yx=Vx({history:lx("/web"),routes:[{path:"/",name:"chat",component:()=>Xx(()=>import("./index-5a192438.js"),["assets/index-5a192438.js","assets/index-1dc749ba.css"])}]}),Bs=ip(Kx);wp(Bs);Bs.use(Yx);Bs.mount("#app");export{Ln as $,Cu as A,E as B,Xp as C,xg as D,kn as E,Ec as F,Rc as G,s1 as H,gs as I,l1 as J,qd as K,_g as L,ql as M,_s as N,Wn as O,Gm as P,ju as Q,Es as R,Km as S,bo as T,dv as U,Xl as V,Un as W,_b as X,_v as Y,kr as Z,Gu as _,Xt as a,u1 as a$,Fo as a0,ba as a1,Wu as a2,Kn as a3,Uu as a4,Vn as a5,xn as a6,Fu as a7,Hu as a8,ki as a9,Mr as aA,ut as aB,ff as aC,D0 as aD,El as aE,iu as aF,d1 as aG,ss as aH,vg as aI,dl as aJ,ms as aK,zp as aL,qg as aM,Me as aN,m1 as aO,Ip as aP,Tt as aQ,Ao as aR,vo as aS,an as aT,Kr as aU,Ts as aV,Pl as aW,xo as aX,No as aY,Rs as aZ,Rl as a_,Lu as aa,x0 as ab,hv as ac,qt as ad,Lr as ae,hn as af,Cn as ag,Gr as ah,bs as ai,qn as aj,xe as ak,ee as al,D as am,wn as an,it as ao,Gn as ap,Ps as aq,ie as ar,L0 as as,g1 as at,hf as au,en as av,Gt as aw,de as ax,Ai as ay,N0 as az,mu as b,Y0 as b0,Jg as b1,Br as b2,Q0 as b3,vf as b4,oy as b5,h1 as b6,v1 as b7,mo as b8,hy as b9,Cy as bA,o1 as bB,ds as bC,t1 as bD,Zx as bE,hs as bF,oo as bG,Vc as bH,je as bI,r1 as bJ,xt as bK,_r as bL,Ey as bM,i1 as bN,ke as bO,fy as bP,Oc as bQ,Tc as bR,e1 as bS,n1 as bT,Xi as bU,Jx as bV,Qx as bW,yy as ba,Ti as bb,Ye as bc,a1 as bd,xs as be,ys as bf,ra as bg,Iy as bh,pf as bi,qi as bj,b1 as bk,hu as bl,tg as bm,Ap as bn,ky as bo,af as bp,lf as bq,cf as br,ji as bs,uf as bt,Sa as bu,q0 as bv,jc as bw,bf as bx,yf as by,By as bz,Y as c,bn as d,yn as e,qe as f,zo as g,vu as h,Ae as i,Rt as j,at as k,c1 as l,dg as m,hg as n,pt as o,pg as p,Re as q,re as r,Xe as s,Ml as t,Ii as u,mi as v,dt as w,p1 as x,Ho as y,Pt as z}; diff --git a/web/index.html b/web/index.html index 706d0f2f6b..e24e6e11f4 100644 --- a/web/index.html +++ b/web/index.html @@ -41,7 +41,7 @@ } } - + diff --git a/web/sw.js b/web/sw.js index 8b5273ec62..b4d1d2c3c7 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1,2 +1,2 @@ try{self["workbox:core:6.5.4"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},J=z;class l extends Error{constructor(e,t){const n=J(e,t);super(n),this.name=e,this.details=t}}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},D=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),X=s=>{for(const e of Object.keys(d))s(e)},b={updateDetails:s=>{X(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||D(d.googleAnalytics),getPrecacheName:s=>s||D(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||D(d.runtime),getSuffix:()=>d.suffix};function O(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:6.5.4"]&&_()}catch{}const Y="__WB_REVISION__";function Z(s){if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Y,e),{cacheKey:n.href,url:a.href}}class ee{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class te{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let w;function se(){if(w===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),w=!0}catch{w=!1}w=!1}return w}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const n=s.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},r=e?e(a):a,i=se()?n.body:await n.blob();return new Response(i,r)}const ae=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function S(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function re(s,e,t,n){const a=S(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=S(c.url,t);if(a===o)return s.match(c,n)}}class ie{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const F=new Set;async function ce(){for(const s of F)await s()}function oe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:6.5.4"]&&_()}catch{}function C(s){return typeof s=="string"?new Request(s):s}class he{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new ie,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=C(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=C(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=C(e);await oe(0);const a=await this.getCacheKey(n,"write");if(!t)throw new l("cache-put-with-no-response",{url:ae(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),m=h?await re(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,h?r.clone():r)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ce(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:m,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class N{constructor(e={}){this.cacheName=b.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new he(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class p extends N{constructor(e={}){e.cacheName=b.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new l("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==p.copyRedirectedCacheableResponsesPlugin&&(a===p.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class le{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:b.getPrecacheName(e),plugins:[...t,new te({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=Z(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return O(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return O(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const H="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=H){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:core:6.6.0"]&&_()}catch{}try{self["workbox:cacheable-response:6.6.0"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class q{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function V(s){s.then(()=>{})}const ke=(s,e)=>e.some(t=>s instanceof t);let v,W;function Pe(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return W||(W=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $=new WeakMap,P=new WeakMap,G=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&$.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||G.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return G.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f($.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),ke(s,Pe())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function Se(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function ve(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],k=new Map;function B(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return k.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>B(e,t)||s.get(e,t,n),has:(e,t)=>!!B(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",j=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ve(this._cacheName)}async setTimestamp(e,t){e=j(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+j(e)}async getDb(){return this._db||(this._db=await Se(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,V(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);V(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const Q="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-a3706664.css"},{"revision":null,"url":"assets/index-b63e2106.js"},{"revision":null,"url":"assets/index-ef2a5096.js"},{"revision":"c82421f6ab99e040562fc65cc79b1567","url":"compose.html"},{"revision":"e9061fe8aef56b3ed8a23c08891f4291","url":"css/bing.css"},{"revision":"4fa2fe5f37d33de1d1c75eda5eecac1d","url":"index.html"},{"revision":"14220b07fa65d3c1b0e84f3175482acf","url":"js/bing/chat/amd.js"},{"revision":"5aaa937dfc99ffaf0456b2e83b9a92cf","url":"js/bing/chat/config.js"},{"revision":"7196048b655ef21dcdfad52cf8f9e276","url":"js/bing/chat/core.js"},{"revision":"e3d3d1bcc931e685b309943808307c25","url":"js/bing/chat/global.js"},{"revision":"db666f0d7ca30b0a2903a0dd1a886d8d","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${Q}-assets`,plugins:[new q({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${Q}-images`,plugins:[new q({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("install",s=>{self.skipWaiting()}); +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return O(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return O(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const H="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=H){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:core:6.6.0"]&&_()}catch{}try{self["workbox:cacheable-response:6.6.0"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class q{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function V(s){s.then(()=>{})}const ke=(s,e)=>e.some(t=>s instanceof t);let v,W;function Pe(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return W||(W=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $=new WeakMap,P=new WeakMap,G=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&$.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||G.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return G.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f($.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),ke(s,Pe())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function Se(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function ve(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],k=new Map;function B(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return k.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>B(e,t)||s.get(e,t,n),has:(e,t)=>!!B(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",j=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ve(this._cacheName)}async setTimestamp(e,t){e=j(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+j(e)}async getDb(){return this._db||(this._db=await Se(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,V(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);V(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const Q="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-5a192438.js"},{"revision":null,"url":"assets/index-a3706664.css"},{"revision":null,"url":"assets/index-c3bc2f38.js"},{"revision":"c82421f6ab99e040562fc65cc79b1567","url":"compose.html"},{"revision":"e9061fe8aef56b3ed8a23c08891f4291","url":"css/bing.css"},{"revision":"dd950b64f6783a763eb1bf53b479a53a","url":"index.html"},{"revision":"14220b07fa65d3c1b0e84f3175482acf","url":"js/bing/chat/amd.js"},{"revision":"5aaa937dfc99ffaf0456b2e83b9a92cf","url":"js/bing/chat/config.js"},{"revision":"7196048b655ef21dcdfad52cf8f9e276","url":"js/bing/chat/core.js"},{"revision":"e3d3d1bcc931e685b309943808307c25","url":"js/bing/chat/global.js"},{"revision":"db666f0d7ca30b0a2903a0dd1a886d8d","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${Q}-assets`,plugins:[new q({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${Q}-images`,plugins:[new q({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("install",s=>{self.skipWaiting()});