diff --git a/README-zh.md b/README-zh.md index a939d1da..10f41226 100644 --- a/README-zh.md +++ b/README-zh.md @@ -123,6 +123,9 @@ exe版本同样支持ComfyUI/Fooocus/NovelAI ![ezgif com-video-to-gif](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/4023317b-0b2d-41a3-8155-c4862eb43846) +## 全屏预览 (并排布局) +![11](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/ee941bfc-0c1b-4777-91df-115435cc8542) + ## 全屏预览 image diff --git a/README.md b/README.md index 23c80c10..e26884a7 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,9 @@ Image search supports translation, see https://github.com/zanllp/sd-webui-infini image image +## Full Screen Preview (Side-by-Side Layout) +![11](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/ee941bfc-0c1b-4777-91df-115435cc8542) + ## Full Screen Preview image diff --git a/javascript/index.js b/javascript/index.js index 8ca21a9b..0e3d23d3 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -13,7 +13,7 @@ Promise.resolve().then(async () => { Infinite Image Browsing - + diff --git a/vue/dist/assets/Checkbox-7b8370e5.js b/vue/dist/assets/Checkbox-e23ad1bf.js similarity index 97% rename from vue/dist/assets/Checkbox-7b8370e5.js rename to vue/dist/assets/Checkbox-e23ad1bf.js index 75112843..184a68b8 100644 --- a/vue/dist/assets/Checkbox-7b8370e5.js +++ b/vue/dist/assets/Checkbox-e23ad1bf.js @@ -1 +1 @@ -import{d as E,bw as $,r as f,k as M,_ as T,a as c,aj as W,h as g,c as v,P as z}from"./index-fad1088f.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,m=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),m({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),j=t.class,q=t.onFocus,w=t.onBlur,D=t.onKeydown,A=t.onKeypress,F=t.onKeyup,k=c(c({},_),t),O=Object.keys(k).reduce(function(y,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(y[u]=k[u]),y},{}),R=W(e,j,(n={},g(n,"".concat(e,"-checked"),o.value),g(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:q,onBlur:w,onKeydown:D,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; +import{d as E,bw as $,r as f,k as M,_ as T,a as c,aj as W,h as g,c as v,P as z}from"./index-28dbaa5b.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,m=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),m({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),j=t.class,q=t.onFocus,w=t.onBlur,D=t.onKeydown,A=t.onKeypress,F=t.onKeyup,k=c(c({},_),t),O=Object.keys(k).reduce(function(y,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(y[u]=k[u]),y},{}),R=W(e,j,(n={},g(n,"".concat(e,"-checked"),o.value),g(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:x,onClick:C,onFocus:q,onBlur:w,onKeydown:D,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; diff --git a/vue/dist/assets/FileItem-55a122b3.js b/vue/dist/assets/FileItem-a9860a66.js similarity index 99% rename from vue/dist/assets/FileItem-55a122b3.js rename to vue/dist/assets/FileItem-a9860a66.js index f278ad7a..fb28ae15 100644 --- a/vue/dist/assets/FileItem-55a122b3.js +++ b/vue/dist/assets/FileItem-a9860a66.js @@ -1,3 +1,3 @@ -var gt=Object.defineProperty;var vt=(n,t,e)=>t in n?gt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var ae=(n,t,e)=>(vt(n,typeof t!="symbol"?t+"":t,e),e);import{d as X,u as We,B as H,aj as Ke,h as K,c as S,am as pt,cK as mt,r as j,b7 as yt,T as V,cA as bt,P as De,bW as At,A as W,c8 as St,aT as _t,cL as It,cM as kt,cN as ue,H as fe,ah as Ae,ba as Ct,cl as wt,cO as Et,cP as Tt,cJ as Ot,cQ as Pt,cR as Ye,cS as oe,cT as Dt,aD as Nt,cU as zt,cV as Qt,l as he,k as re,aK as Mt,n as qe,W as Se,co as Ge,aF as $t,cW as Ze,cX as Bt,q as Ft,aI as Xe,aJ as et,av as tt,N as u,X as R,cY as Rt,cZ as Lt,c_ as jt,c$ as Ht,d0 as Vt,ap as xt,O as g,aC as ee,U as A,Y as C,a2 as J,d1 as Ne,bM as Ut,d2 as Jt,a1 as nt,aa as Y,R as k,S as y,Z as B,ag as it,d3 as Wt,cs as Kt,M as rt,Q as a,V as st,cn as Yt,d4 as ze,a9 as qt,d5 as Gt,cq as Zt,J as Xt,d6 as en,d7 as ce,d8 as tn}from"./index-fad1088f.js";import{g as nn,l as rn,e as sn}from"./functionalCallableComp-32f74df9.js";import{D as G,a as ge}from"./index-210fb107.js";/* empty css */var on=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},ln=X({compatConfig:{MODE:3},name:"ACheckableTag",props:on(),setup:function(t,e){var i=e.slots,r=e.emit,o=We("tag",t),v=o.prefixCls,d=function(E){var w=t.checked;r("update:checked",!w),r("change",!w),r("click",E)},m=H(function(){var b;return Ke(v.value,(b={},K(b,"".concat(v.value,"-checkable"),!0),K(b,"".concat(v.value,"-checkable-checked"),t.checked),b))});return function(){var b;return S("span",{class:m.value,onClick:d},[(b=i.default)===null||b===void 0?void 0:b.call(i)])}}});const ve=ln;var an=new RegExp("^(".concat(pt.join("|"),")(-inverse)?$")),un=new RegExp("^(".concat(mt.join("|"),")$")),cn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:De.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:De.any}},Z=X({compatConfig:{MODE:3},name:"ATag",props:cn(),slots:["closeIcon","icon"],setup:function(t,e){var i=e.slots,r=e.emit,o=e.attrs,v=We("tag",t),d=v.prefixCls,m=v.direction,b=j(!0);yt(function(){t.visible!==void 0&&(b.value=t.visible)});var E=function(s){s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&t.visible===void 0&&(b.value=!1)},w=H(function(){var l=t.color;return l?an.test(l)||un.test(l):!1}),z=H(function(){var l;return Ke(d.value,(l={},K(l,"".concat(d.value,"-").concat(t.color),w.value),K(l,"".concat(d.value,"-has-color"),t.color&&!w.value),K(l,"".concat(d.value,"-hidden"),!b.value),K(l,"".concat(d.value,"-rtl"),m.value==="rtl"),l))});return function(){var l,s,c,p=t.icon,D=p===void 0?(l=i.icon)===null||l===void 0?void 0:l.call(i):p,O=t.color,N=t.closeIcon,h=N===void 0?(s=i.closeIcon)===null||s===void 0?void 0:s.call(i):N,f=t.closable,I=f===void 0?!1:f,M=function(){return I?h?S("span",{class:"".concat(d.value,"-close-icon"),onClick:E},[h]):S(At,{class:"".concat(d.value,"-close-icon"),onClick:E},null):null},$={backgroundColor:O&&!w.value?O:void 0},F=D||null,_=(c=i.default)===null||c===void 0?void 0:c.call(i),L=F?S(V,null,[F,S("span",null,[_])]):_,T="onClick"in o,Q=S("span",{class:z.value,style:$},[L,M()]);return T?S(bt,null,{default:function(){return[Q]}}):Q}}});Z.CheckableTag=ve;Z.install=function(n){return n.component(Z.name,Z),n.component(ve.name,ve),n};const dn=Z;G.Button=ge;G.install=function(n){return n.component(G.name,G),n.component(ge.name,ge),n};var fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const hn=fn;function Qe(n){for(var t=1;t{const r=Et();fe(r),te.has(r)||(te.set(r,Ae(n(r,i??(t==null?void 0:t())))),Ct(()=>{te.delete(r)}));const o=te.get(r);return fe(o),{state:o,toRefs(){return wt(o)}}}}}var zn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Qn=zn;function Be(n){for(var t=1;t{const n=j([]);return{selectdFiles:n,addFiles:e=>{n.value=Ot([...n.value,...e])}}});class He{constructor(t,e=Pt.CREATED_TIME_DESC){ae(this,"root");ae(this,"execQueue",[]);this.sortMethod=e,this.root={children:[],info:{name:t,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:t}},this.fetchChildren(this.root)}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=e=>e.children.map(i=>{if(i.info.type==="dir")return t(i);if(oe(i.info.name))return i.info}).filter(i=>i).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:e}=await nn(t.info.fullpath);return t.children=Ye(e,this.sortMethod).map(i=>({info:i,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(i=>i.info.type==="dir").map(i=>({fn:()=>this.fetchChildren(i),...i}))),t}async next(){const t=kn(this.execQueue);if(!t)return null;const e=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}}var at={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress +var gt=Object.defineProperty;var vt=(n,t,e)=>t in n?gt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var ae=(n,t,e)=>(vt(n,typeof t!="symbol"?t+"":t,e),e);import{d as X,u as We,B as H,aj as Ke,h as K,c as S,am as pt,cK as mt,r as j,b7 as yt,T as V,cA as bt,P as De,bW as At,A as W,c8 as St,aT as _t,cL as It,cM as kt,cN as ue,H as fe,ah as Ae,ba as Ct,cl as wt,cO as Et,cP as Tt,cJ as Ot,cQ as Pt,cR as Ye,cS as oe,cT as Dt,aD as Nt,cU as zt,cV as Qt,l as he,k as re,aK as Mt,n as qe,W as Se,co as Ge,aF as $t,cW as Ze,cX as Bt,q as Ft,aI as Xe,aJ as et,av as tt,N as u,X as R,cY as Rt,cZ as Lt,c_ as jt,c$ as Ht,d0 as Vt,ap as xt,O as g,aC as ee,U as A,Y as C,a2 as J,d1 as Ne,bM as Ut,d2 as Jt,a1 as nt,aa as Y,R as k,S as y,Z as B,ag as it,d3 as Wt,cs as Kt,M as rt,Q as a,V as st,cn as Yt,d4 as ze,a9 as qt,d5 as Gt,cq as Zt,J as Xt,d6 as en,d7 as ce,d8 as tn}from"./index-28dbaa5b.js";import{g as nn,l as rn,e as sn}from"./functionalCallableComp-168f8428.js";import{D as G,a as ge}from"./index-6980ed51.js";/* empty css */var on=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},ln=X({compatConfig:{MODE:3},name:"ACheckableTag",props:on(),setup:function(t,e){var i=e.slots,r=e.emit,o=We("tag",t),v=o.prefixCls,d=function(E){var w=t.checked;r("update:checked",!w),r("change",!w),r("click",E)},m=H(function(){var b;return Ke(v.value,(b={},K(b,"".concat(v.value,"-checkable"),!0),K(b,"".concat(v.value,"-checkable-checked"),t.checked),b))});return function(){var b;return S("span",{class:m.value,onClick:d},[(b=i.default)===null||b===void 0?void 0:b.call(i)])}}});const ve=ln;var an=new RegExp("^(".concat(pt.join("|"),")(-inverse)?$")),un=new RegExp("^(".concat(mt.join("|"),")$")),cn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:De.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:De.any}},Z=X({compatConfig:{MODE:3},name:"ATag",props:cn(),slots:["closeIcon","icon"],setup:function(t,e){var i=e.slots,r=e.emit,o=e.attrs,v=We("tag",t),d=v.prefixCls,m=v.direction,b=j(!0);yt(function(){t.visible!==void 0&&(b.value=t.visible)});var E=function(s){s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&t.visible===void 0&&(b.value=!1)},w=H(function(){var l=t.color;return l?an.test(l)||un.test(l):!1}),z=H(function(){var l;return Ke(d.value,(l={},K(l,"".concat(d.value,"-").concat(t.color),w.value),K(l,"".concat(d.value,"-has-color"),t.color&&!w.value),K(l,"".concat(d.value,"-hidden"),!b.value),K(l,"".concat(d.value,"-rtl"),m.value==="rtl"),l))});return function(){var l,s,c,p=t.icon,D=p===void 0?(l=i.icon)===null||l===void 0?void 0:l.call(i):p,O=t.color,N=t.closeIcon,h=N===void 0?(s=i.closeIcon)===null||s===void 0?void 0:s.call(i):N,f=t.closable,I=f===void 0?!1:f,M=function(){return I?h?S("span",{class:"".concat(d.value,"-close-icon"),onClick:E},[h]):S(At,{class:"".concat(d.value,"-close-icon"),onClick:E},null):null},$={backgroundColor:O&&!w.value?O:void 0},F=D||null,_=(c=i.default)===null||c===void 0?void 0:c.call(i),L=F?S(V,null,[F,S("span",null,[_])]):_,T="onClick"in o,Q=S("span",{class:z.value,style:$},[L,M()]);return T?S(bt,null,{default:function(){return[Q]}}):Q}}});Z.CheckableTag=ve;Z.install=function(n){return n.component(Z.name,Z),n.component(ve.name,ve),n};const dn=Z;G.Button=ge;G.install=function(n){return n.component(G.name,G),n.component(ge.name,ge),n};var fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const hn=fn;function Qe(n){for(var t=1;t{const r=Et();fe(r),te.has(r)||(te.set(r,Ae(n(r,i??(t==null?void 0:t())))),Ct(()=>{te.delete(r)}));const o=te.get(r);return fe(o),{state:o,toRefs(){return wt(o)}}}}}var zn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const Qn=zn;function Be(n){for(var t=1;t{const n=j([]);return{selectdFiles:n,addFiles:e=>{n.value=Ot([...n.value,...e])}}});class He{constructor(t,e=Pt.CREATED_TIME_DESC){ae(this,"root");ae(this,"execQueue",[]);this.sortMethod=e,this.root={children:[],info:{name:t,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:t}},this.fetchChildren(this.root)}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=e=>e.children.map(i=>{if(i.info.type==="dir")return t(i);if(oe(i.info.name))return i.info}).filter(i=>i).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:e}=await nn(t.info.fullpath);return t.children=Ye(e,this.sortMethod).map(i=>({info:i,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(i=>i.info.type==="dir").map(i=>({fn:()=>this.fetchChildren(i),...i}))),t}async next(){const t=kn(this.execQueue);if(!t)return null;const e=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}}var at={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(n,t){(function(e,i){n.exports=i})(Dt,function(){var e={};e.version="0.3.5";var i=e.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};e.configure=function(s){var c,p;for(c in s)p=s[c],p!==void 0&&s.hasOwnProperty(c)&&(i[c]=p);return this},e.status=null,e.set=function(s){var c=e.isStarted();s=r(s,i.minimum,1),e.status=s===1?null:s;var p=e.render(!c),D=p.querySelector(i.barSelector),O=i.speed,N=i.easing;return p.offsetWidth,d(function(h){i.positionUsing===""&&(i.positionUsing=e.getPositioningCSS()),m(D,v(s,O,N)),s===1?(m(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){m(p,{transition:"all "+O+"ms linear",opacity:0}),setTimeout(function(){e.remove(),h()},O)},O)):setTimeout(h,O)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var s=function(){setTimeout(function(){e.status&&(e.trickle(),s())},i.trickleSpeed)};return i.trickle&&s(),this},e.done=function(s){return!s&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(s){var c=e.status;return c?c>1?void 0:(typeof s!="number"&&(c>=0&&c<.2?s=.1:c>=.2&&c<.5?s=.04:c>=.5&&c<.8?s=.02:c>=.8&&c<.99?s=.005:s=0),c=r(c+s,0,.994),e.set(c)):e.start()},e.trickle=function(){return e.inc()},function(){var s=0,c=0;e.promise=function(p){return!p||p.state()==="resolved"?this:(c===0&&e.start(),s++,c++,p.always(function(){c--,c===0?(s=0,e.done()):e.set((s-c)/s)}),this)}}(),e.getElement=function(){var s=e.getParent();if(s){var c=Array.prototype.slice.call(s.querySelectorAll(".nprogress")).filter(function(p){return p.parentElement===s});if(c.length>0)return c[0]}return null},e.getParent=function(){if(i.parent instanceof HTMLElement)return i.parent;if(typeof i.parent=="string")return document.querySelector(i.parent)},e.render=function(s){if(e.isRendered())return e.getElement();E(document.documentElement,"nprogress-busy");var c=document.createElement("div");c.id="nprogress",c.className="nprogress",c.innerHTML=i.template;var p=c.querySelector(i.barSelector),D=s?"-100":o(e.status||0),O=e.getParent(),N;return m(p,{transition:"all 0 linear",transform:"translate3d("+D+"%,0,0)"}),i.showSpinner||(N=c.querySelector(i.spinnerSelector),N&&l(N)),O!=document.body&&E(O,"nprogress-custom-parent"),O.appendChild(c),c},e.remove=function(){e.status=null,w(document.documentElement,"nprogress-busy"),w(e.getParent(),"nprogress-custom-parent");var s=e.getElement();s&&l(s)},e.isRendered=function(){return!!e.getElement()},e.getPositioningCSS=function(){var s=document.body.style,c="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return c+"Perspective"in s?"translate3d":c+"Transform"in s?"translate":"margin"};function r(s,c,p){return sp?p:s}function o(s){return(-1+s)*100}function v(s,c,p){var D;return i.positionUsing==="translate3d"?D={transform:"translate3d("+o(s)+"%,0,0)"}:i.positionUsing==="translate"?D={transform:"translate("+o(s)+"%,0)"}:D={"margin-left":o(s)+"%"},D.transition="all "+c+"ms "+p,D}var d=function(){var s=[];function c(){var p=s.shift();p&&p(c)}return function(p){s.push(p),s.length==1&&c()}}(),m=function(){var s=["Webkit","O","Moz","ms"],c={};function p(h){return h.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(f,I){return I.toUpperCase()})}function D(h){var f=document.body.style;if(h in f)return h;for(var I=s.length,M=h.charAt(0).toUpperCase()+h.slice(1),$;I--;)if($=s[I]+M,$ in f)return $;return h}function O(h){return h=p(h),c[h]||(c[h]=D(h))}function N(h,f,I){f=O(f),h.style[f]=I}return function(h,f){var I=arguments,M,$;if(I.length==2)for(M in f)$=f[M],$!==void 0&&f.hasOwnProperty(M)&&N(h,M,$);else N(h,I[1],I[2])}}();function b(s,c){var p=typeof s=="string"?s:z(s);return p.indexOf(" "+c+" ")>=0}function E(s,c){var p=z(s),D=p+c;b(p,c)||(s.className=D.substring(1))}function w(s,c){var p=z(s),D;b(s,c)&&(D=p.replace(" "+c+" "," "),s.className=D.substring(1,D.length-1))}function z(s){return(" "+(s&&s.className||"")+" ").replace(/\s+/gi," ")}function l(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return e})})(at);var Yn=at.exports;const fs=Nt(Yn);function hs({fetchNext:n}={}){const{scroller:t,sortedFiles:e,sortMethod:i,currLocation:r,stackViewEl:o,canLoadNext:v,previewIdx:d,props:m,walker:b,getViewableAreaFiles:E}=se().toRefs(),{state:w}=se(),z=j(!1),l=j(q.defaultGridCellWidth),s=H(()=>l.value+16),c=44,{width:p}=zt(o),D=H(()=>~~(p.value/s.value)),O=Ae(new Map),N=H(()=>{const F=s.value;return{first:F+(l.value<=160?0:c),second:F}}),h=j(!1),f=async()=>{var F;if(!(h.value||m.value.mode!=="walk"||!v.value))try{h.value=!0,await((F=b.value)==null?void 0:F.next())}finally{h.value=!1}},I=async(F=!1)=>{const _=t.value,L=()=>F?d.value:(_==null?void 0:_.$_endIndex)??0,T=()=>{const Q=e.value.length,x=50;return Q?n?L()>Q-x:L()>Q-x&&v.value:!0};for(;T();){await qe(30);const Q=await(n??f)();if(typeof Q=="boolean"&&!Q)return}};w.useEventListen("loadNextDir",async()=>{await I(),m.value.mode==="walk"&&M()}),w.useEventListen("viewableAreaFilesChange",()=>{const F=E.value(),_=F.filter(T=>T.is_under_scanned_path&&oe(T.name)).map(T=>T.fullpath);qn.fetchImageTags(_);const L=F.filter(T=>T.is_under_scanned_path&&T.type==="dir"&&!O.has(T.fullpath)).map(T=>T.fullpath);L.length&&Qt(L).then(T=>{for(const Q in T)if(Object.prototype.hasOwnProperty.call(T,Q)){const x=T[Q];O.set(Q,x)}})});const M=he(()=>w.eventEmitter.emit("viewableAreaFilesChange"),300);re(r,M);const $=he(async()=>{await I(),M()},150);return{gridItems:D,sortedFiles:e,sortMethodConv:Mt,moreActionsDropdownShow:z,gridSize:s,sortMethod:i,onScroll:$,loadNextDir:f,loadNextDirLoading:h,canLoadNext:v,itemSize:N,cellWidth:l,dirCoverCache:O}}const gs=new Map,q=Se(),vs=Kn(),qn=Ge(),ps=$t(),ms=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:ys,useEventListen:bs}=Ze(),{useHookShareState:se}=Nn((n,{images:t})=>{const e=j({tabIdx:-1,paneIdx:-1}),i=H(()=>rn(r.value)),r=j([]),o=H(()=>{var f;return r.value.map(I=>I.curr).slice((f=q.conf)!=null&&f.is_win&&e.value.mode!=="scanned-fixed"?1:0)}),v=H(()=>Ft(...o.value)),d=H(()=>{var f,I;return e.value.mode==="scanned-fixed"?((I=(f=r.value)==null?void 0:f[0])==null?void 0:I.curr)??"":e.value.mode==="walk"?e.value.path??"":r.value.length===1?"/":v.value}),m=j(q.defaultSortingMethod),b=j(e.value.mode=="walk"?new He(e.value.path,m.value):void 0);re([()=>e.value.mode,()=>e.value.path,m],async([f,I,M])=>{var $;f==="walk"?(b.value=new He(I,M),r.value=[{files:[],curr:I}],await qe(),await(($=b.value)==null?void 0:$.reset()),N.eventEmitter.emit("loadNextDir")):b.value=void 0});const E=Ae(new Set);re(i,()=>E.clear());const w=H(()=>{var $;if(t.value)return t.value;if(b.value)return b.value.images.filter(F=>!E.has(F.fullpath));if(!i.value)return[];const f=(($=i.value)==null?void 0:$.files)??[],I=m.value;return Ye((F=>q.onlyFoldersAndImages?F.filter(_=>_.type==="dir"||oe(_.name)):F)(f),I).filter(F=>!E.has(F.fullpath))}),z=j([]),l=j(-1),s=H(()=>b.value?!b.value.isCompleted:!1),c=j(!1),p=j(!1),D=j(),O=()=>{var f,I,M;return(M=(I=(f=q.tabList)==null?void 0:f[e.value.tabIdx])==null?void 0:I.panes)==null?void 0:M[e.value.paneIdx]},N=Ze();N.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${w.value.length}`),z.value=Pn(0,w.value.length)});const h=()=>{const f=D.value;if(f){const I=Math.max(f.$_startIndex-10,0);return w.value.slice(I,f.$_endIndex+10)}return[]};return{previewing:p,spinning:c,canLoadNext:s,multiSelectedIdxs:z,previewIdx:l,basePath:o,currLocation:d,currPage:i,stack:r,sortMethod:m,sortedFiles:w,scroller:D,stackViewEl:j(),props:e,getPane:O,walker:b,deletedFiles:E,getViewableAreaFiles:h,...N}},()=>({images:j()}));function As(){const{eventEmitter:n,multiSelectedIdxs:t,sortedFiles:e}=se().toRefs();return{onSelectAll:()=>n.value.emit("selectAll"),onReverseSelect:()=>{t.value=e.value.map((v,d)=>d).filter(v=>!t.value.includes(v))},onClearAllSelected:()=>{t.value=[]}}}const Ss=()=>{const{stackViewEl:n}=se().toRefs(),t=j(-1);return Bt(n,e=>{var r;let i=e.target;for(;i.parentElement;)if(i=i.parentElement,i.tagName.toLowerCase()==="li"&&i.classList.contains("file-item-trigger")){const o=(r=i.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(t.value=+o);return}}),{showMenuIdx:t}};function Gn(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");if(t>0)return parseInt(n.substring(t+5,n.indexOf(".",t)),10);var e=n.indexOf("Trident/");if(e>0){var i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}var r=n.indexOf("Edge/");return r>0?parseInt(n.substring(r+5,n.indexOf(".",r)),10):-1}let ne;function pe(){pe.init||(pe.init=!0,ne=Gn()!==-1)}var le={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){pe(),tt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",ne&&this.$el.appendChild(n),n.data="about:blank",ne||this.$el.appendChild(n)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ne&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Zn=Rt();Xe("data-v-b329ee4c");const Xn={class:"resize-observer",tabindex:"-1"};et();const ei=Zn((n,t,e,i,r,o)=>(u(),R("div",Xn)));le.render=ei;le.__scopeId="data-v-b329ee4c";le.__file="src/components/ResizeObserver.vue";function ie(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(t){return typeof t}:ie=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(n)}function ti(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(n,t){for(var e=0;en.length)&&(t=n.length);for(var e=0,i=new Array(t);e2&&arguments[2]!==void 0?arguments[2]:{},i,r,o,v=function(m){for(var b=arguments.length,E=new Array(b>1?b-1:0),w=1;w1){var b=d.find(function(w){return w.isIntersecting});b&&(m=b)}if(r.callback){var E=m.isIntersecting&&m.intersectionRatio>=r.threshold;if(E===r.oldResult)return;r.oldResult=E,r.callback(E,m)}},this.options.intersection),tt(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),n}();function ct(n,t,e){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new ui(n,i,e);n._vue_visibilityState=r}}function ci(n,t,e){var i=t.value,r=t.oldValue;if(!ut(i,r)){var o=n._vue_visibilityState;if(!i){dt(n);return}o?o.createObserver(i,e):ct(n,{value:i},e)}}function dt(n){var t=n._vue_visibilityState;t&&(t.destroyObserver(),delete n._vue_visibilityState)}var di={beforeMount:ct,updated:ci,unmounted:dt},fi={itemsLimit:1e3},hi=/(auto|scroll)/;function ft(n,t){return n.parentNode===null?t:ft(n.parentNode,t.concat([n]))}var de=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},gi=function(t){return de(t,"overflow")+de(t,"overflow-y")+de(t,"overflow-x")},vi=function(t){return hi.test(gi(t))};function Ue(n){if(n instanceof HTMLElement||n instanceof SVGElement){for(var t=ft(n.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const n=this.$_lastUpdateScrollPosition;typeof n=="number"&&this.$nextTick(()=>{this.scrollToPosition(n)})},beforeUnmount(){this.removeListeners()},methods:{addView(n,t,e,i,r){const o=Lt({id:bi++,index:t,used:!0,key:i,type:r}),v=jt({item:e,position:0,nr:o});return n.push(v),v},unuseView(n,t=!1){const e=this.$_unusedViews,i=n.nr.type;let r=e.get(i);r||(r=[],e.set(i,r)),r.push(n),t||(n.nr.used=!1,n.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(n){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(n,t){this.ready&&(n||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(n,t=!1){const e=this.itemSize,i=this.gridItems||1,r=this.itemSecondarySize||e,o=this.$_computedMinItemSize,v=this.typeField,d=this.simpleArray?null:this.keyField,m=this.items,b=m.length,E=this.sizes,w=this.$_views,z=this.$_unusedViews,l=this.pool,s=this.itemIndexByKey;let c,p,D,O,N;if(!b)c=p=O=N=D=0;else if(this.$_prerender)c=O=0,p=N=Math.min(this.prerender,m.length),D=null;else{const _=this.getScroll();if(t){let Q=_.start-this.$_lastUpdateScrollPosition;if(Q<0&&(Q=-Q),e===null&&Q_.start&&(Oe=U),U=~~((x+Oe)/2);while(U!==Pe);for(U<0&&(U=0),c=U,D=E[b-1].accumulator,p=U;pb&&(p=b)),O=c;Ob&&(p=b),O<0&&(O=0),N>b&&(N=b),D=Math.ceil(b/i)*e}}p-c>fi.itemsLimit&&this.itemsLimitError(),this.totalSize=D;let h;const f=c<=this.$_endIndex&&p>=this.$_startIndex;if(f)for(let _=0,L=l.length;_=p)&&this.unuseView(h));const I=f?null:new Map;let M,$,F;for(let _=c;_=T.length)&&(h=this.addView(l,_,M,L,$),this.unuseView(h,!0),T=z.get($)),h=T[F],I.set($,F+1)),w.delete(h.nr.key),h.nr.used=!0,h.nr.index=_,h.nr.key=L,h.nr.type=$,w.set(L,h),Q=!0;else if(!h.nr.used&&(h.nr.used=!0,h.nr.index=_,Q=!0,T)){const x=T.indexOf(h);x!==-1&&T.splice(x,1)}h.item=M,Q&&(_===m.length-1&&this.$emit("scroll-end"),_===0&&this.$emit("scroll-start")),e===null?(h.position=E[_-1].accumulator,h.offset=0):(h.position=Math.floor(_/i)*e,h.offset=_%i*r)}return this.$_startIndex=c,this.$_endIndex=p,this.emitUpdate&&this.$emit("update",c,p,O,N),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:f}},getListenerTarget(){let n=Ue(this.$el);return window.document&&(n===window.document.documentElement||n===window.document.body)&&(n=window),n},getScroll(){const{$el:n,direction:t}=this,e=t==="vertical";let i;if(this.pageMode){const r=n.getBoundingClientRect(),o=e?r.height:r.width;let v=-(e?r.top:r.left),d=e?window.innerHeight:window.innerWidth;v<0&&(d+=v,v=0),v+d>o&&(d=o-v),i={start:v,end:v+d}}else e?i={start:n.scrollTop,end:n.scrollTop+n.clientHeight}:i={start:n.scrollLeft,end:n.scrollLeft+n.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,be?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(n){let t;const e=this.gridItems||1;this.itemSize===null?t=n>0?this.sizes[n-1].accumulator:0:t=Math.floor(n/e)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(n){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,i,r;if(this.pageMode){const o=Ue(this.$el),v=o.tagName==="HTML"?0:o[t.scroll],d=o.getBoundingClientRect(),b=this.$el.getBoundingClientRect()[t.start]-d[t.start];e=o,i=t.scroll,r=n+v+b}else e=this.$el,i=t.scroll,r=n;e[i]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((n,t)=>n.nr.index-t.nr.index)}}};const Ai={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Si={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function _i(n,t,e,i,r,o){const v=Ht("ResizeObserver"),d=Vt("observe-visibility");return xt((u(),g("div",{class:Y(["vue-recycle-scroller",{ready:r.ready,"page-mode":e.pageMode,[`direction-${n.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...m)=>o.handleScroll&&o.handleScroll(...m))},[n.$slots.before?(u(),g("div",Ai,[ee(n.$slots,"before")],512)):A("v-if",!0),(u(),R(Ne(e.listTag),{ref:"wrapper",style:nt({[n.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:C(()=>[(u(!0),g(V,null,J(r.pool,m=>(u(),R(Ne(e.itemTag),Ut({key:m.nr.id,style:r.ready?{transform:`translate${n.direction==="vertical"?"Y":"X"}(${m.position}px) translate${n.direction==="vertical"?"X":"Y"}(${m.offset}px)`,width:e.gridItems?`${n.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${n.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&r.hoverKey===m.nr.key}]]},Jt(e.skipHover?{}:{mouseenter:()=>{r.hoverKey=m.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:C(()=>[ee(n.$slots,"default",{item:m.item,index:m.nr.index,active:m.nr.used})]),_:2},1040,["style","class"]))),128)),ee(n.$slots,"empty")]),_:3},8,["style","class"])),n.$slots.after?(u(),g("div",Si,[ee(n.$slots,"after")],512)):A("v-if",!0),S(v,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[d,o.handleVisibilityChange]])}ht.render=_i;ht.__file="src/components/RecycleScroller.vue";const Je=X({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},disableDelete:{type:Boolean},isSelectedMutilFiles:{type:Boolean}},emits:["contextMenuClick"],setup(n,{emit:t}){const e=n,i=Se(),r=H(()=>{var o;return(((o=i.conf)==null?void 0:o.all_custom_tags)??[]).reduce((v,d)=>[...v,{...d,selected:!!e.selectedTag.find(m=>m.id===d.id)}],[])});return(o,v)=>{const d=it,m=Wt,b=Kt,E=rt;return u(),R(E,{onClick:v[0]||(v[0]=w=>t("contextMenuClick",w,o.file,o.idx))},{default:C(()=>{var w;return[S(d,{key:"deleteFiles",disabled:o.disableDelete},{default:C(()=>[k(y(o.$t("deleteSelected")),1)]),_:1},8,["disabled"]),S(d,{key:"openWithDefaultApp"},{default:C(()=>[k(y(o.$t("openWithDefaultApp")),1)]),_:1}),S(d,{key:"saveSelectedAsJson"},{default:C(()=>[k(y(o.$t("saveSelectedAsJson")),1)]),_:1}),o.file.type==="dir"?(u(),g(V,{key:0},[S(d,{key:"openInNewTab"},{default:C(()=>[k(y(o.$t("openInNewTab")),1)]),_:1}),S(d,{key:"openOnTheRight"},{default:C(()=>[k(y(o.$t("openOnTheRight")),1)]),_:1}),S(d,{key:"openWithWalkMode"},{default:C(()=>[k(y(o.$t("openWithWalkMode")),1)]),_:1})],64)):A("",!0),o.file.type==="file"?(u(),g(V,{key:1},[B(oe)(o.file.name)?(u(),g(V,{key:0},[S(d,{key:"viewGenInfo"},{default:C(()=>[k(y(o.$t("viewGenerationInfo")),1)]),_:1}),S(m),((w=B(i).conf)==null?void 0:w.launch_mode)!=="server"?(u(),g(V,{key:0},[S(d,{key:"send2txt2img"},{default:C(()=>[k(y(o.$t("sendToTxt2img")),1)]),_:1}),S(d,{key:"send2img2img"},{default:C(()=>[k(y(o.$t("sendToImg2img")),1)]),_:1}),S(d,{key:"send2inpaint"},{default:C(()=>[k(y(o.$t("sendToInpaint")),1)]),_:1}),S(d,{key:"send2extras"},{default:C(()=>[k(y(o.$t("sendToExtraFeatures")),1)]),_:1}),S(b,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:C(()=>[S(d,{key:"send2controlnet-txt2img"},{default:C(()=>[k("ControlNet - "+y(o.$t("t2i")),1)]),_:1}),S(d,{key:"send2controlnet-img2img"},{default:C(()=>[k("ControlNet - "+y(o.$t("i2i")),1)]),_:1}),S(d,{key:"send2outpaint"},{default:C(()=>[k("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):A("",!0),S(d,{key:"rename"},{default:C(()=>[k(y(o.$t("rename")),1)]),_:1}),S(d,{key:"send2BatchDownload"},{default:C(()=>[k(y(o.$t("sendToBatchDownload")),1)]),_:1}),S(d,{key:"send2savedDir"},{default:C(()=>[k(y(o.$t("send2savedDir")),1)]),_:1}),S(m),o.isSelectedMutilFiles?(u(),g(V,{key:1},[S(b,{key:"batch-add-tag",title:o.$t("batchAddTag")},{default:C(()=>[(u(!0),g(V,null,J(r.value,z=>(u(),R(d,{key:`batch-add-tag-${z.id}`},{default:C(()=>[k(y(z.name),1)]),_:2},1024))),128))]),_:1},8,["title"]),S(b,{key:"batch-remove-tag",title:o.$t("batchRemoveTag")},{default:C(()=>[(u(!0),g(V,null,J(r.value,z=>(u(),R(d,{key:`batch-remove-tag-${z.id}`},{default:C(()=>[k(y(z.name),1)]),_:2},1024))),128))]),_:1},8,["title"])],64)):(u(),R(b,{key:"toggle-tag",title:o.$t("toggleTag")},{default:C(()=>[(u(!0),g(V,null,J(r.value,z=>(u(),R(d,{key:`toggle-tag-${z.id}`},{default:C(()=>[k(y(z.name)+" ",1),z.selected?(u(),R(B(ot),{key:0})):(u(),R(B(lt),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"])),S(d,{key:"openWithLocalFileBrowser"},{default:C(()=>[k(y(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):A("",!0),S(d,{key:"previewInNewWindow"},{default:C(()=>[k(y(o.$t("previewInNewWindow")),1)]),_:1}),S(d,{key:"download"},{default:C(()=>[k(y(o.$t("download")),1)]),_:1}),S(d,{key:"copyPreviewUrl"},{default:C(()=>[k(y(o.$t("copySourceFilePreviewLink")),1)]),_:1})],64)):A("",!0)]}),_:1})}}}),P=n=>(Xe("data-v-78cd67a3"),n=n(),et(),n),Ii={class:"changeIndicatorWrapper"},ki={key:0,class:"changeIndicatorsLeft changeIndicators"},Ci={key:0,class:"promptChangeIndicator changeIndicator"},wi={key:1,class:"negpromptChangeIndicator changeIndicator"},Ei={key:2,class:"seedChangeIndicator changeIndicator"},Ti={key:3,class:"stepsChangeIndicator changeIndicator"},Oi={key:4,class:"cfgChangeIndicator changeIndicator"},Pi={key:5,class:"sizeChangeIndicator changeIndicator"},Di={key:6,class:"modelChangeIndicator changeIndicator"},Ni={key:7,class:"samplerChangeIndicator changeIndicator"},zi={key:8,class:"otherChangeIndicator changeIndicator"},Qi={class:"hoverOverlay"},Mi=P(()=>a("strong",null,"This file",-1)),$i=P(()=>a("br",null,null,-1)),Bi=P(()=>a("br",null,null,-1)),Fi={key:0},Ri=P(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),Li={key:1},ji=P(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Hi={key:2},Vi=P(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),xi={key:3},Ui=P(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),Ji={key:4},Wi=P(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Ki={key:5},Yi=P(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),qi={key:6},Gi=P(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),Zi=P(()=>a("br",null,null,-1)),Xi={key:7},er=P(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),tr=P(()=>a("br",null,null,-1)),nr=P(()=>a("br",null,null,-1)),ir={key:0},rr=P(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),sr=P(()=>a("br",null,null,-1)),or=P(()=>a("br",null,null,-1)),lr={key:1,class:"changeIndicatorsRight changeIndicators"},ar={key:0,class:"promptChangeIndicator changeIndicator"},ur={key:1,class:"negpromptChangeIndicator changeIndicator"},cr={key:2,class:"seedChangeIndicator changeIndicator"},dr={key:3,class:"stepsChangeIndicator changeIndicator"},fr={key:4,class:"cfgChangeIndicator changeIndicator"},hr={key:5,class:"sizeChangeIndicator changeIndicator"},gr={key:6,class:"modelChangeIndicator changeIndicator"},vr={key:7,class:"samplerChangeIndicator changeIndicator"},pr={key:8,class:"otherChangeIndicator changeIndicator"},mr={class:"hoverOverlay"},yr=P(()=>a("strong",null,"This file",-1)),br=P(()=>a("br",null,null,-1)),Ar=P(()=>a("br",null,null,-1)),Sr={key:0},_r=P(()=>a("td",null,[a("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),Ir={key:1},kr=P(()=>a("td",null,[a("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Cr={key:2},wr=P(()=>a("td",null,[a("span",{class:"seedChangeIndicator"},"Seed")],-1)),Er={key:3},Tr=P(()=>a("td",null,[a("span",{class:"stepsChangeIndicator"},"Steps")],-1)),Or={key:4},Pr=P(()=>a("td",null,[a("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Dr={key:5},Nr=P(()=>a("td",null,[a("span",{class:"sizeChangeIndicator"},"Size")],-1)),zr={key:6},Qr=P(()=>a("td",null,[a("span",{class:"modelChangeIndicator"},"Model")],-1)),Mr=P(()=>a("br",null,null,-1)),$r={key:7},Br=P(()=>a("td",null,[a("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),Fr=P(()=>a("br",null,null,-1)),Rr=P(()=>a("br",null,null,-1)),Lr={key:0},jr=P(()=>a("span",{class:"otherChangeIndicator"},"Other",-1)),Hr=P(()=>a("br",null,null,-1)),Vr=P(()=>a("br",null,null,-1)),xr=X({__name:"ChangeIndicator",props:{genDiffToPrevious:{},genDiffToNext:{},genInfo:{}},setup(n){function t(i){const r=["prompt","negativePrompt","seed","steps","cfgScale","size","Model","others"],o=Object.keys(i).filter(v=>!r.includes(v));return Object.fromEntries(o.map(v=>[v,i[v]]))}function e(i){return Object.keys(t(i)).length>0}return(i,r)=>(u(),g("div",Ii,[i.genDiffToPrevious.empty?A("",!0):(u(),g("div",ki,["prompt"in i.genDiffToPrevious.diff?(u(),g("div",Ci,"P+")):A("",!0),"negativePrompt"in i.genDiffToPrevious.diff?(u(),g("div",wi,"P-")):A("",!0),"seed"in i.genDiffToPrevious.diff?(u(),g("div",Ei,"Se")):A("",!0),"steps"in i.genDiffToPrevious.diff?(u(),g("div",Ti,"St")):A("",!0),"cfgScale"in i.genDiffToPrevious.diff?(u(),g("div",Oi,"Cf")):A("",!0),"size"in i.genDiffToPrevious.diff?(u(),g("div",Pi,"Si")):A("",!0),"Model"in i.genDiffToPrevious.diff?(u(),g("div",Di,"Mo")):A("",!0),"Sampler"in i.genDiffToPrevious.diff?(u(),g("div",Ni,"Sa")):A("",!0),e(i.genDiffToPrevious.diff)?(u(),g("div",zi,"Ot")):A("",!0)])),a("div",Qi,[a("small",null,[S(B(Fe)),Mi,k(" vs "+y(i.genDiffToPrevious.otherFile)+" ",1),$i,Bi,a("table",null,["prompt"in i.genDiffToPrevious.diff?(u(),g("tr",Fi,[Ri,a("td",null,y(i.genDiffToPrevious.diff.prompt)+" tokens changed",1)])):A("",!0),"negativePrompt"in i.genDiffToPrevious.diff?(u(),g("tr",Li,[ji,a("td",null,y(i.genDiffToPrevious.diff.negativePrompt)+" tokens changed",1)])):A("",!0),"seed"in i.genDiffToPrevious.diff?(u(),g("tr",Hi,[Vi,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.seed[0]),1),k(" vs "+y(i.genDiffToPrevious.diff.seed[1]),1)])])):A("",!0),"steps"in i.genDiffToPrevious.diff?(u(),g("tr",xi,[Ui,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.steps[0]),1),k(" vs "+y(i.genDiffToPrevious.diff.steps[1]),1)])])):A("",!0),"cfgScale"in i.genDiffToPrevious.diff?(u(),g("tr",Ji,[Wi,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.cfgScale[0]),1),k(" vs "+y(i.genDiffToPrevious.diff.cfgScale[1]),1)])])):A("",!0),"size"in i.genDiffToPrevious.diff?(u(),g("tr",Ki,[Yi,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.size[0]),1),k(" vs "+y(i.genDiffToPrevious.diff.size[1]),1)])])):A("",!0),"Model"in i.genDiffToPrevious.diff?(u(),g("tr",qi,[Gi,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.Model[0]),1),Zi,k(" vs "+y(i.genDiffToPrevious.diff.Model[1]),1)])])):A("",!0),"Sampler"in i.genDiffToPrevious.diff?(u(),g("tr",Xi,[er,a("td",null,[a("strong",null,y(i.genDiffToPrevious.diff.Sampler[0]),1),tr,k(" vs "+y(i.genDiffToPrevious.diff.Sampler[1]),1)])])):A("",!0)]),nr,e(i.genDiffToPrevious.diff)?(u(),g("div",ir,[rr,k(" props that changed:"),sr,or,a("ul",null,[(u(!0),g(V,null,J(t(i.genDiffToPrevious.diff),(o,v)=>(u(),g("li",null,y(v),1))),256))])])):A("",!0)])]),i.genDiffToNext.empty?A("",!0):(u(),g("div",lr,["prompt"in i.genDiffToNext.diff?(u(),g("div",ar,"P+")):A("",!0),"negativePrompt"in i.genDiffToNext.diff?(u(),g("div",ur,"P-")):A("",!0),"seed"in i.genDiffToNext.diff?(u(),g("div",cr,"Se")):A("",!0),"steps"in i.genDiffToNext.diff?(u(),g("div",dr,"St")):A("",!0),"cfgScale"in i.genDiffToNext.diff?(u(),g("div",fr,"Cf")):A("",!0),"size"in i.genDiffToNext.diff?(u(),g("div",hr,"Si")):A("",!0),"Model"in i.genDiffToNext.diff?(u(),g("div",gr,"Mo")):A("",!0),"Sampler"in i.genDiffToNext.diff?(u(),g("div",vr,"Sa")):A("",!0),e(i.genDiffToNext.diff)?(u(),g("div",pr,"Ot")):A("",!0)])),a("div",mr,[a("small",null,[S(B(Fe)),yr,k(" vs "+y(i.genDiffToNext.otherFile)+" ",1),br,Ar,a("table",null,["prompt"in i.genDiffToNext.diff?(u(),g("tr",Sr,[_r,a("td",null,y(i.genDiffToNext.diff.prompt)+" tokens changed",1)])):A("",!0),"negativePrompt"in i.genDiffToNext.diff?(u(),g("tr",Ir,[kr,a("td",null,y(i.genDiffToNext.diff.negativePrompt)+" tokens changed",1)])):A("",!0),"seed"in i.genDiffToNext.diff?(u(),g("tr",Cr,[wr,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.seed[0]),1),k(" vs "+y(i.genDiffToNext.diff.seed[1]),1)])])):A("",!0),"steps"in i.genDiffToNext.diff?(u(),g("tr",Er,[Tr,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.steps[0]),1),k(" vs "+y(i.genDiffToNext.diff.steps[1]),1)])])):A("",!0),"cfgScale"in i.genDiffToNext.diff?(u(),g("tr",Or,[Pr,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.cfgScale[0]),1),k(" vs "+y(i.genDiffToNext.diff.cfgScale[1]),1)])])):A("",!0),"size"in i.genDiffToNext.diff?(u(),g("tr",Dr,[Nr,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.size[0]),1),k(" vs "+y(i.genDiffToNext.diff.size[1]),1)])])):A("",!0),"Model"in i.genDiffToNext.diff?(u(),g("tr",zr,[Qr,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.Model[0]),1),Mr,k(" vs "+y(i.genDiffToNext.diff.Model[1]),1)])])):A("",!0),"Sampler"in i.genDiffToNext.diff?(u(),g("tr",$r,[Br,a("td",null,[a("strong",null,y(i.genDiffToNext.diff.Sampler[0]),1),Fr,k(" vs "+y(i.genDiffToNext.diff.Sampler[1]),1)])])):A("",!0)]),Rr,e(i.genDiffToNext.diff)?(u(),g("div",Lr,[jr,k(" props that changed:"),Hr,Vr,a("ul",null,[(u(!0),g(V,null,J(t(i.genDiffToNext.diff),(o,v)=>(u(),g("li",null,y(v),1))),256))])])):A("",!0)])])]))}});const Ur=st(xr,[["__scopeId","data-v-78cd67a3"]]),Jr=["data-idx"],Wr={key:1,class:"more"},Kr={class:"float-btn-wrap"},Yr={key:1,class:"tags-container"},qr=["urld"],Gr={class:"play-icon"},Zr=["src"],Xr={key:0,class:"tags-container"},es={key:4,class:"preview-icon-wrap"},ts={key:1,class:"dir-cover-container"},ns=["src"],is={key:5,class:"profile"},rs=["title"],ss={class:"basic-info"},os=X({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1},isSelectedMutilFiles:{type:Boolean},genInfo:{},enableChangeIndicator:{type:Boolean},extraTags:{},coverFiles:{},getGenDiff:{},getGenDiffWatchDep:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click"],setup(n,{emit:t}){const e=n;Yt(l=>({"52ce6eef":l.$props.cellWidth+"px"}));const i=Se(),r=Ge(),o=j(),v=j(),d=he(()=>{const{getGenDiff:l,file:s,idx:c}=e;l&&(v.value=l(s.gen_info_obj,c,1,s),o.value=l(s.gen_info_obj,c,-1,s))},200+100*Math.random());re(()=>{var l;return(l=e.getGenDiffWatchDep)==null?void 0:l.call(e,e.idx)},()=>{v.value=void 0,o.value=void 0,d()},{immediate:!0,deep:!0});const m=H(()=>r.tagMap.get(e.file.fullpath)??[]),b=H(()=>{const l=i.gridThumbnailResolution;return i.enableThumbnail?ze(e.file,[l,l].join("x")):qt(e.file)}),E=H(()=>{var l;return(((l=i.conf)==null?void 0:l.all_custom_tags)??[]).reduce((s,c)=>[...s,{...c,selected:!!m.value.find(p=>p.id===c.id)}],[])}),w=H(()=>E.value.find(l=>l.type==="custom"&&l.name==="like")),z=()=>{fe(w.value),t("contextMenuClick",{key:`toggle-tag-${w.value.id}`},e.file,e.idx)};return(l,s)=>{const c=G,p=it,D=rt,O=tn,N=dn;return u(),R(c,{trigger:["contextmenu"],visible:B(i).longPressOpenContextMenu?typeof l.idx=="number"&&l.showMenuIdx===l.idx:void 0,"onUpdate:visible":s[8]||(s[8]=h=>typeof l.idx=="number"&&t("update:showMenuIdx",h?l.idx:-1))},{overlay:C(()=>[l.enableRightClickMenu?(u(),R(Je,{key:0,file:l.file,idx:l.idx,"selected-tag":m.value,onContextMenuClick:s[7]||(s[7]=(h,f,I)=>t("contextMenuClick",h,f,I)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])):A("",!0)]),default:C(()=>{var h;return[(u(),g("li",{class:Y(["file file-item-trigger grid",{clickable:l.file.type==="dir",selected:l.selected}]),"data-idx":l.idx,key:l.file.name,draggable:"true",onDragstart:s[4]||(s[4]=f=>t("dragstart",f,l.idx)),onDragend:s[5]||(s[5]=f=>t("dragend",f,l.idx)),onClickCapture:s[6]||(s[6]=f=>t("fileItemClick",f,l.file,l.idx))},[a("div",null,[l.enableCloseIcon?(u(),g("div",{key:0,class:"close-icon",onClick:s[0]||(s[0]=f=>t("close-icon-click"))},[S(B(Gt))])):A("",!0),l.enableRightClickMenu?(u(),g("div",Wr,[S(c,null,{overlay:C(()=>[S(Je,{file:l.file,idx:l.idx,"selected-tag":m.value,onContextMenuClick:s[1]||(s[1]=(f,I,M)=>t("contextMenuClick",f,I,M)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])]),default:C(()=>[a("div",Kr,[S(B(Zt))])]),_:1}),l.file.type==="file"?(u(),R(c,{key:0},{overlay:C(()=>[E.value.length>1?(u(),R(D,{key:0,onClick:s[2]||(s[2]=f=>t("contextMenuClick",f,l.file,l.idx))},{default:C(()=>[(u(!0),g(V,null,J(E.value,f=>(u(),R(p,{key:`toggle-tag-${f.id}`},{default:C(()=>[k(y(f.name)+" ",1),f.selected?(u(),R(B(ot),{key:0})):(u(),R(B(lt),{key:1}))]),_:2},1024))),128))]),_:1})):A("",!0)]),default:C(()=>{var f,I;return[a("div",{class:Y(["float-btn-wrap",{"like-selected":(f=w.value)==null?void 0:f.selected}]),onClick:z},[(I=w.value)!=null&&I.selected?(u(),R(B(Rn),{key:0})):(u(),R(B(Vn),{key:1}))],2)]}),_:1})):A("",!0)])):A("",!0),B(Xt)(l.file.name)?(u(),g("div",{key:l.file.fullpath,class:Y(`idx-${l.idx} item-content`)},[l.enableChangeIndicator&&v.value&&o.value?(u(),R(Ur,{key:0,"gen-diff-to-next":v.value,"gen-diff-to-previous":o.value},null,8,["gen-diff-to-next","gen-diff-to-previous"])):A("",!0),S(O,{src:b.value,fallback:B(Dn),preview:{src:l.fullScreenPreviewImageUrl,onVisibleChange:(f,I)=>t("previewVisibleChange",f,I)}},null,8,["src","fallback","preview"]),m.value&&l.cellWidth>128?(u(),g("div",Yr,[(u(!0),g(V,null,J(l.extraTags??m.value,f=>(u(),R(N,{key:f.id,color:B(r).getColor(f.name)},{default:C(()=>[k(y(f.name),1)]),_:2},1032,["color"]))),128))])):A("",!0)],2)):B(en)(l.file.name)?(u(),g("div",{key:3,class:Y(`idx-${l.idx} item-content video`),urld:B(ce)(l.file),style:nt({"background-image":`url('${B(ce)(l.file)}')`}),onClick:s[3]||(s[3]=f=>B(sn)(l.file,I=>t("contextMenuClick",{key:`toggle-tag-${I}`},l.file,l.idx)))},[a("div",Gr,[a("img",{src:B(Wn),style:{width:"40px",height:"40px"}},null,8,Zr)]),m.value&&l.cellWidth>128?(u(),g("div",Xr,[(u(!0),g(V,null,J(m.value,f=>(u(),R(N,{key:f.id,color:B(r).getColor(f.name)},{default:C(()=>[k(y(f.name),1)]),_:2},1032,["color"]))),128))])):A("",!0)],14,qr)):(u(),g("div",es,[l.file.type==="file"?(u(),R(B(yn),{key:0,class:"icon center"})):(h=l.coverFiles)!=null&&h.length&&l.cellWidth>160?(u(),g("div",ts,[(u(!0),g(V,null,J(l.coverFiles,f=>(u(),g("img",{class:"dir-cover-item",src:f.media_type==="image"?B(ze)(f):B(ce)(f),key:f.fullpath},null,8,ns))),128))])):(u(),R(B(_n),{key:2,class:"icon center"}))])),l.cellWidth>128?(u(),g("div",is,[a("div",{class:"name line-clamp-1",title:l.file.name},y(l.file.name),9,rs),a("div",ss,[a("div",null,y(l.file.type)+" "+y(l.file.size),1),a("div",null,y(l.file.date),1)])])):A("",!0)])],42,Jr))]}),_:1},8,["visible"])}}});const _s=st(os,[["__scopeId","data-v-f10f0610"]]);export{_s as F,fs as N,Je as _,hs as a,Ss as b,As as c,ht as d,bs as e,ps as f,q as g,ys as h,vs as i,ms as j,Kn as k,Pn as r,gs as s,qn as t,se as u}; diff --git a/vue/dist/assets/ImgSliPagePane-723e9c72.js b/vue/dist/assets/ImgSliPagePane-bc3cba5f.js similarity index 64% rename from vue/dist/assets/ImgSliPagePane-723e9c72.js rename to vue/dist/assets/ImgSliPagePane-bc3cba5f.js index e691cb8b..a4d736dc 100644 --- a/vue/dist/assets/ImgSliPagePane-723e9c72.js +++ b/vue/dist/assets/ImgSliPagePane-bc3cba5f.js @@ -1 +1 @@ -import{d as a,N as t,O as s,c as n,cG as _,V as o}from"./index-fad1088f.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; +import{d as a,N as t,O as s,c as n,cG as _,V as o}from"./index-28dbaa5b.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; diff --git a/vue/dist/assets/MatchedImageGrid-61169e0a.js b/vue/dist/assets/MatchedImageGrid-f6d95674.js similarity index 89% rename from vue/dist/assets/MatchedImageGrid-61169e0a.js rename to vue/dist/assets/MatchedImageGrid-f6d95674.js index b126e8a1..b2966e17 100644 --- a/vue/dist/assets/MatchedImageGrid-61169e0a.js +++ b/vue/dist/assets/MatchedImageGrid-f6d95674.js @@ -1 +1 @@ -import{d as se,k as ne,av as oe,W as ie,N as u,O as I,c as s,Z as e,Y as n,a0 as R,Q as d,E as ae,S as a,R as p,X as V,a9 as de,U as k,aa as D,ac as re,ad as ce,af as z,aI as ue,aJ as me,bN as pe,V as ge}from"./index-fad1088f.js";import{S as fe}from"./index-e6abe7d7.js";import{L as ve,R as Ie,f as ke,M as _e}from"./MultiSelectKeep-4400a569.js";import{c as Ce,d as he,F as we}from"./FileItem-55a122b3.js";import{c as Se,u as xe}from"./hook-6f37aded.js";import{a as be}from"./functionalCallableComp-32f74df9.js";import"./shortcut-5e9fcb9b.js";import"./Checkbox-7b8370e5.js";/* empty css */import"./index-210fb107.js";const Me=r=>(ue("data-v-ce7f8df3"),r=r(),me(),r),ye={class:"hint"},Ae={class:"action-bar"},Te=Me(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),$e={key:1},Fe={class:"no-res-hint"},Re={class:"hint"},Ve={key:2,class:"preview-switch"},De=se({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const _=r,g=Se(l=>pe(_.selectedTagIds,l)),{queue:B,images:i,onContextMenuClickU:C,stackViewEl:N,previewIdx:c,previewing:h,onPreviewVisibleChange:G,previewImgMove:w,canPreview:S,itemSize:x,gridItems:E,showGenInfo:m,imageGenInfo:b,q:J,multiSelectedIdxs:f,onFileItemClick:U,scroller:M,showMenuIdx:v,onFileDragStart:L,onFileDragEnd:O,cellWidth:P,onScroll:y,saveAllFileAsJson:K,saveLoadedFileAsJson:q}=xe(g);ne(()=>_.selectedTagIds,async()=>{var l;await g.reset(),await oe(),(l=M.value)==null||l.scrollToItem(0),y()},{immediate:!0});const Q=ie(),{onClearAllSelected:W,onSelectAll:X,onReverseSelect:Y}=Ce();return(l,t)=>{const Z=_e,j=re,H=ce,A=z,ee=z,te=fe;return u(),I("div",{class:"container",ref_key:"stackViewEl",ref:N},[s(Z,{show:!!e(f).length||e(Q).keepMultiSelect,onClearAllSelected:e(W),onSelectAll:e(X),onReverseSelect:e(Y)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(te,{size:"large",spinning:!e(B).isIdle},{default:n(()=>{var T,$;return[s(H,{visible:e(m),"onUpdate:visible":t[1]||(t[1]=o=>R(m)?m.value=o:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=o=>m.value=!1)},{cancelText:n(()=>[]),default:n(()=>[s(j,{active:"",loading:!e(J).isIdle},{default:n(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=o=>e(ae)(e(b)))},[d("div",ye,a(l.$t("doubleClickToCopy")),1),p(" "+a(e(b)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ae,[s(A,{onClick:e(q)},{default:n(()=>[p(a(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),s(A,{onClick:e(K)},{default:n(()=>[p(a(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(T=e(i))!=null&&T.length?(u(),V(e(he),{key:0,ref_key:"scroller",ref:M,class:"file-list",items:e(i),"item-size":e(x).first,"key-field":"fullpath","item-secondary-size":e(x).second,gridItems:e(E),onScroll:e(y)},{after:n(()=>[Te]),default:n(({item:o,index:F})=>[s(we,{idx:F,file:o,"cell-width":e(P),"show-menu-idx":e(v),"onUpdate:showMenuIdx":t[3]||(t[3]=le=>R(v)?v.value=le:null),onDragstart:e(L),onDragend:e(O),onFileItemClick:e(U),"full-screen-preview-image-url":e(i)[e(c)]?e(de)(e(i)[e(c)]):"",selected:e(f).includes(F),onContextMenuClick:e(C),onPreviewVisibleChange:e(G),"is-selected-mutil-files":e(f).length>1},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&l.selectedTagIds.and_tags.length===1&&!(($=l.selectedTagIds.folder_paths_str)!=null&&$.trim())?(u(),I("div",$e,[d("div",Fe,[d("p",Re,a(l.$t("tagSearchNoResultsMessage")),1),s(ee,{onClick:t[4]||(t[4]=o=>e(be)()),type:"primary"},{default:n(()=>[p(a(l.$t("rebuildImageIndex")),1)]),_:1})])])):k("",!0),e(h)?(u(),I("div",Ve,[s(e(ve),{onClick:t[5]||(t[5]=o=>e(w)("prev")),class:D({disable:!e(S)("prev")})},null,8,["class"]),s(e(Ie),{onClick:t[6]||(t[6]=o=>e(w)("next")),class:D({disable:!e(S)("next")})},null,8,["class"])])):k("",!0)]}),_:1},8,["spinning"]),e(h)&&e(i)&&e(i)[e(c)]?(u(),V(ke,{key:0,file:e(i)[e(c)],idx:e(c),onContextMenuClick:e(C)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)}}});const Ke=ge(De,[["__scopeId","data-v-ce7f8df3"]]);export{Ke as default}; +import{d as se,k as ne,av as oe,W as ie,N as u,O as I,c as s,Z as e,Y as n,a0 as R,Q as d,E as ae,S as a,R as p,X as V,a9 as de,U as k,aa as D,ac as re,ad as ce,af as z,aI as ue,aJ as me,bN as pe,V as ge}from"./index-28dbaa5b.js";import{S as fe}from"./index-4833c8e4.js";import{L as ve,R as Ie,f as ke,M as _e}from"./MultiSelectKeep-40ee7c75.js";import{c as Ce,d as he,F as we}from"./FileItem-a9860a66.js";import{c as Se,u as xe}from"./hook-937ac2fb.js";import{a as be}from"./functionalCallableComp-168f8428.js";import"./shortcut-aef21d22.js";import"./Checkbox-e23ad1bf.js";/* empty css */import"./index-6980ed51.js";const Me=r=>(ue("data-v-ce7f8df3"),r=r(),me(),r),ye={class:"hint"},Ae={class:"action-bar"},Te=Me(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),$e={key:1},Fe={class:"no-res-hint"},Re={class:"hint"},Ve={key:2,class:"preview-switch"},De=se({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(r){const _=r,g=Se(l=>pe(_.selectedTagIds,l)),{queue:B,images:i,onContextMenuClickU:C,stackViewEl:N,previewIdx:c,previewing:h,onPreviewVisibleChange:G,previewImgMove:w,canPreview:S,itemSize:x,gridItems:E,showGenInfo:m,imageGenInfo:b,q:J,multiSelectedIdxs:f,onFileItemClick:U,scroller:M,showMenuIdx:v,onFileDragStart:L,onFileDragEnd:O,cellWidth:P,onScroll:y,saveAllFileAsJson:K,saveLoadedFileAsJson:q}=xe(g);ne(()=>_.selectedTagIds,async()=>{var l;await g.reset(),await oe(),(l=M.value)==null||l.scrollToItem(0),y()},{immediate:!0});const Q=ie(),{onClearAllSelected:W,onSelectAll:X,onReverseSelect:Y}=Ce();return(l,t)=>{const Z=_e,j=re,H=ce,A=z,ee=z,te=fe;return u(),I("div",{class:"container",ref_key:"stackViewEl",ref:N},[s(Z,{show:!!e(f).length||e(Q).keepMultiSelect,onClearAllSelected:e(W),onSelectAll:e(X),onReverseSelect:e(Y)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),s(te,{size:"large",spinning:!e(B).isIdle},{default:n(()=>{var T,$;return[s(H,{visible:e(m),"onUpdate:visible":t[1]||(t[1]=o=>R(m)?m.value=o:null),width:"70vw","mask-closable":"",onOk:t[2]||(t[2]=o=>m.value=!1)},{cancelText:n(()=>[]),default:n(()=>[s(j,{active:"",loading:!e(J).isIdle},{default:n(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:t[0]||(t[0]=o=>e(ae)(e(b)))},[d("div",ye,a(l.$t("doubleClickToCopy")),1),p(" "+a(e(b)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Ae,[s(A,{onClick:e(q)},{default:n(()=>[p(a(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),s(A,{onClick:e(K)},{default:n(()=>[p(a(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(T=e(i))!=null&&T.length?(u(),V(e(he),{key:0,ref_key:"scroller",ref:M,class:"file-list",items:e(i),"item-size":e(x).first,"key-field":"fullpath","item-secondary-size":e(x).second,gridItems:e(E),onScroll:e(y)},{after:n(()=>[Te]),default:n(({item:o,index:F})=>[s(we,{idx:F,file:o,"cell-width":e(P),"show-menu-idx":e(v),"onUpdate:showMenuIdx":t[3]||(t[3]=le=>R(v)?v.value=le:null),onDragstart:e(L),onDragend:e(O),onFileItemClick:e(U),"full-screen-preview-image-url":e(i)[e(c)]?e(de)(e(i)[e(c)]):"",selected:e(f).includes(F),onContextMenuClick:e(C),onPreviewVisibleChange:e(G),"is-selected-mutil-files":e(f).length>1},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(g).load&&l.selectedTagIds.and_tags.length===1&&!(($=l.selectedTagIds.folder_paths_str)!=null&&$.trim())?(u(),I("div",$e,[d("div",Fe,[d("p",Re,a(l.$t("tagSearchNoResultsMessage")),1),s(ee,{onClick:t[4]||(t[4]=o=>e(be)()),type:"primary"},{default:n(()=>[p(a(l.$t("rebuildImageIndex")),1)]),_:1})])])):k("",!0),e(h)?(u(),I("div",Ve,[s(e(ve),{onClick:t[5]||(t[5]=o=>e(w)("prev")),class:D({disable:!e(S)("prev")})},null,8,["class"]),s(e(Ie),{onClick:t[6]||(t[6]=o=>e(w)("next")),class:D({disable:!e(S)("next")})},null,8,["class"])])):k("",!0)]}),_:1},8,["spinning"]),e(h)&&e(i)&&e(i)[e(c)]?(u(),V(ke,{key:0,file:e(i)[e(c)],idx:e(c),onContextMenuClick:e(C)},null,8,["file","idx","onContextMenuClick"])):k("",!0)],512)}}});const Ke=ge(De,[["__scopeId","data-v-ce7f8df3"]]);export{Ke as default}; diff --git a/vue/dist/assets/MultiSelectKeep-4400a569.js b/vue/dist/assets/MultiSelectKeep-40ee7c75.js similarity index 55% rename from vue/dist/assets/MultiSelectKeep-4400a569.js rename to vue/dist/assets/MultiSelectKeep-40ee7c75.js index bd7735ff..52834b8a 100644 --- a/vue/dist/assets/MultiSelectKeep-4400a569.js +++ b/vue/dist/assets/MultiSelectKeep-40ee7c75.js @@ -1,3 +1,3 @@ -import{c8 as ut,l as ie,ba as Ze,c as r,A as le,v as K,x as S,n as ct,J as q,k as ne,t as dt,c9 as ze,ca as vt,bX as Le,ad as re,af as te,cb as ft,r as J,cc as Re,C as We,a9 as Q,cd as pt,ce as mt,R as x,a8 as gt,cf as Oe,I as ce,cg as ht,E as pe,ch as yt,ci as _t,c7 as wt,cj as bt,ck as kt,o as et,av as Ot,W as $e,ah as Et,B as G,cl as Lt,cm as $t,d as tt,cn as xt,co as St,L as Ne,cp as je,N as _,O as $,Z as c,U as j,Q as P,X as de,Y as y,cq as Ct,T as Y,S as w,a2 as ye,aa as Be,a1 as Pt,a0 as ve,cr as _e,$ as It,ag as Mt,cs as Ft,M as Dt,bH as Tt,ct as At,cu as zt,aI as Wt,aJ as Nt,V as nt}from"./index-fad1088f.js";import{u as ge,e as Ee,g as B,f as Ue,h as me,r as jt,t as we,i as Bt,s as be,j as fe,_ as Ut}from"./FileItem-55a122b3.js";import{M as lt,c as Ht,m as at,l as He,b as Vt,d as qt}from"./functionalCallableComp-32f74df9.js";import{C as Xt,g as Yt,_ as Gt,a as Kt}from"./shortcut-5e9fcb9b.js";/* empty css */import{D as Jt}from"./index-210fb107.js";var Qt="Expected a function";function Zt(e,t,a){var l=!0,o=!0;if(typeof e!="function")throw new TypeError(Qt);return ut(a)&&(l="leading"in a?!!a.leading:l,o="trailing"in a?!!a.trailing:o),ie(e,t,{leading:l,maxWait:t,trailing:o})}const ue=(...e)=>{document.addEventListener(...e),Ze(()=>document.removeEventListener(...e))};var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const en=Rt;function Ve(e){for(var t=1;t{var f;l.value=g,I!=null&&!g&&u&&((f=m.value)==null||f.scrollToItem(I),I=null)},N=()=>{L.value.mode==="walk"&&!b("next")&&a&&(K.info(S("loadingNextFolder")),t.value.emit("loadNextDir",!0))};ue("keydown",g=>{var u;if(l.value){let f=e.value;if(["ArrowDown","ArrowRight"].includes(g.key))for(f++;o.value[f]&&!q(o.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(g.key))for(f--;o.value[f]&&!q(o.value[f].name);)f--;if(q((u=o.value[f])==null?void 0:u.name)??""){e.value=f;const k=m.value;k&&!(f>=k.$_startIndex&&f<=k.$_endIndex)&&(I=f)}N()}});const F=g=>{var f;let u=e.value;if(g==="next")for(u++;o.value[u]&&!q(o.value[u].name);)u++;else if(g==="prev")for(u--;o.value[u]&&!q(o.value[u].name);)u--;if(q((f=o.value[u])==null?void 0:f.name)??""){e.value=u;const k=m.value;k&&!(u>=k.$_startIndex&&u<=k.$_endIndex)&&(I=u)}N()},b=g=>{var f;let u=e.value;if(g==="next")for(u++;o.value[u]&&!q(o.value[u].name);)u++;else if(g==="prev")for(u--;o.value[u]&&!q(o.value[u].name);)u--;return q((f=o.value[u])==null?void 0:f.name)??""};return Ee("removeFiles",async()=>{var g;l.value&&!C.sortedFiles[e.value]&&(K.info(S("manualExitFullScreen"),5),await ct(500),(g=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||g.click(),e.value=-1)}),{previewIdx:e,onPreviewVisibleChange:W,previewing:l,previewImgMove:F,canPreview:b}}function ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ft(e)}function yl(){const{currLocation:e,sortedFiles:t,currPage:a,multiSelectedIdxs:l,eventEmitter:o,walker:m}=ge().toRefs(),L=()=>{l.value=[]};return ue("click",()=>{B.keepMultiSelect||L()}),ue("blur",()=>{B.keepMultiSelect||L()}),ne(a,L),{onFileDragStart:(N,F)=>{const b=dt(t.value[F]);Ue.fileDragging=!0,console.log("onFileDragStart set drag file ",N,F,b);const g=[b];let u=b.type==="dir";if(l.value.includes(F)){const k=l.value.map(A=>t.value[A]);g.push(...k),u=k.some(A=>A.type==="dir")}const f={includeDir:u,loc:e.value||"search-result",path:ze(g,"fullpath").map(k=>k.fullpath),nodes:ze(g,"fullpath"),__id:"FileTransferData"};N.dataTransfer.setData("text/plain",JSON.stringify(f))},onDrop:async N=>{if(m.value)return;const F=vt(N);if(!F)return;const b=e.value;if(F.loc===b)return;const g=Le(),u=async()=>g.pushAction(async()=>{await Ht(F.path,b),o.value.emit("refresh"),re.destroyAll()}),f=()=>g.pushAction(async()=>{await at(F.path,b),me.emit("removeFiles",{paths:F.path,loc:F.loc}),o.value.emit("refresh"),re.destroyAll()});re.confirm({title:S("confirm")+"?",width:"60vw",content:()=>{let k,A,O;return r("div",null,[r("div",null,[`${S("moveSelectedFilesTo")} ${b}`,r("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[F.path.map(E=>r("li",null,[E.split(/[/\\]/).pop()]))])]),r(lt,null,null),r("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[r(te,{onClick:re.destroyAll},ke(k=S("cancel"))?k:{default:()=>[k]}),r(te,{type:"primary",loading:!g.isIdle,onClick:u},ke(A=S("copy"))?A:{default:()=>[A]}),r(te,{type:"primary",loading:!g.isIdle,onClick:f},ke(O=S("move"))?O:{default:()=>[O]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:l,onFileDragEnd:()=>{Ue.fileDragging=!1}}}function _l({openNext:e}){const t=J(!1),a=J(""),{sortedFiles:l,previewIdx:o,multiSelectedIdxs:m,stack:L,currLocation:C,spinning:I,previewing:W,stackViewEl:N,eventEmitter:F,props:b,deletedFiles:g}=ge().toRefs(),u=We;Ee("removeFiles",({paths:E,loc:s})=>{u(s)!==u(C.value)||!He(L.value)||(E.forEach(d=>g.value.add(d)),E.filter(q).forEach(d=>g.value.add(d.replace(/\.\w+$/,".txt"))))}),Ee("addFiles",({files:E,loc:s})=>{if(u(s)!==u(C.value))return;const p=He(L.value);p&&p.files.unshift(...E)});const f=Le(),k=async(E,s,p)=>{o.value=p,B.fullscreenPreviewInitialUrl=Q(s);const d=m.value.indexOf(p);if(E.shiftKey){if(d!==-1)m.value.splice(d,1);else{m.value.push(p),m.value.sort((z,U)=>z-U);const T=m.value[0],H=m.value[m.value.length-1];m.value=jt(T,H+1)}E.stopPropagation()}else E.ctrlKey||E.metaKey?(d!==-1?m.value.splice(d,1):m.value.push(p),E.stopPropagation()):await e(s)},A=async(E,s,p)=>{var Z,ee,se;const d=Q(s),T=C.value,H={IIB_container_id:parent.IIB_container_id},z=()=>{let v=[];return m.value.includes(p)?v=m.value.map(n=>l.value[n]):v.push(s),v},U=async v=>{if(!I.value)try{I.value=!0,await bt(s.fullpath),fe.postMessage({...H,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await kt(),fe.postMessage({...H,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${v}`})}catch(n){console.error(n),K.error("发送图像失败,请携带console的错误消息找开发者")}finally{I.value=!1}},V=`${E.key}`;if(V.startsWith("toggle-tag-")){const v=+V.split("toggle-tag-")[1],{is_remove:n}=await pt({tag_id:v,img_path:s.fullpath}),i=(ee=(Z=B.conf)==null?void 0:Z.all_custom_tags.find(M=>M.id===v))==null?void 0:ee.name;await we.refreshTags([s.fullpath]),K.success(S(n?"removedTagFromImage":"addedTagToImage",{tag:i}));return}else if(V.startsWith("batch-add-tag-")||V.startsWith("batch-remove-tag-")){const v=+V.split("-tag-")[1],n=V.includes("add")?"add":"remove",i=z().map(M=>M.fullpath);await mt({tag_id:v,img_paths:i,action:n}),await we.refreshTags(i),K.success(S(n==="add"?"addCompleted":"removeCompleted"));return}switch(E.key){case"previewInNewWindow":return window.open(d);case"saveSelectedAsJson":return wt(z());case"openWithDefaultApp":return _t(s.fullpath);case"download":{const v=z();yt(v.map(n=>Q(n,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+d);case"rename":{let v=await Vt(s.fullpath);v=We(v);const n=we.tagMap;n.set(v,n.get(s.fullpath)??[]),n.delete(s.fullpath),s.fullpath=v,s.name=v.split(/[\\/]/).pop()??"";return}case"send2txt2img":return U("txt2img");case"send2img2img":return U("img2img");case"send2inpaint":return U("inpaint");case"send2extras":return U("extras");case"send2savedDir":{const v=B.quickMovePaths.find(M=>M.key==="outdir_save");if(!v)return K.error(S("unknownSavedDir"));const n=ht(v.dir,(se=B.conf)==null?void 0:se.sd_cwd),i=z();await at(i.map(M=>M.fullpath),n,!0),me.emit("removeFiles",{paths:i.map(M=>M.fullpath),loc:C.value}),me.emit("addFiles",{files:i,loc:n});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const v=E.key.split("-")[1];fe.postMessage({...H,event:"send_to_control_net",type:v,url:Q(s)});break}case"send2outpaint":{a.value=await f.pushAction(()=>Oe(s.fullpath)).res;const[v,n]=(a.value||"").split(` -`);fe.postMessage({...H,event:"send_to_outpaint",url:Q(s),prompt:v,negPrompt:n.slice(17)});break}case"openWithWalkMode":{be.set(T,L.value);const v=B.tabList[b.value.tabIdx],n={type:"local",key:ce(),path:s.fullpath,name:S("local"),stackKey:T,mode:"walk"};v.panes.push(n),v.key=n.key;break}case"openInNewTab":{be.set(T,L.value);const v=B.tabList[b.value.tabIdx],n={type:"local",key:ce(),path:s.fullpath,name:S("local"),stackKey:T};v.panes.push(n),v.key=n.key;break}case"openOnTheRight":{be.set(T,L.value);let v=B.tabList[b.value.tabIdx+1];v||(v={panes:[],key:"",id:ce()},B.tabList[b.value.tabIdx+1]=v);const n={type:"local",key:ce(),path:s.fullpath,name:S("local"),stackKey:T};v.panes.push(n),v.key=n.key;break}case"send2BatchDownload":{Bt.addFiles(z());break}case"viewGenInfo":{t.value=!0,a.value=await f.pushAction(()=>Oe(s.fullpath)).res;break}case"openWithLocalFileBrowser":{await gt(s.fullpath);break}case"deleteFiles":{const v=z(),n=async()=>{const i=v.map(M=>M.fullpath);await qt(i),K.success(S("deleteSuccess")),me.emit("removeFiles",{paths:i,loc:C.value})};if(v.length===1&&B.ignoredConfirmActions.deleteOneOnly)return n();await new Promise(i=>{re.confirm({title:S("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>r("div",null,[r("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[v.map(M=>r("li",null,[M.fullpath.split(/[/\\]/).pop()]))]),r(lt,null,null),r(Xt,{checked:B.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":M=>B.ignoredConfirmActions.deleteOneOnly=M},{default:()=>[S("deleteOneOnlySkipConfirm"),x(" ("),S("resetOnGlobalSettingsPage"),x(")")]})]),async onOk(){await n(),i()}})});break}}return{}},{isOutside:O}=Re(N);return ue("keydown",E=>{var p,d,T;const s=Yt(E);if(W.value){s==="Esc"&&(W.value=!1);const H=(p=Object.entries(B.shortcut).find(z=>z[1]===s&&z[1]))==null?void 0:p[0];if(H){E.stopPropagation(),E.preventDefault();const z=o.value,U=l.value[z];switch(H){case"delete":return Q(U)===B.fullscreenPreviewInitialUrl?K.warn(S("fullscreenRestriction")):A({key:"deleteFiles"},U,z);case"download":return A({key:"download"},U,z);default:{const V=(d=/^toggle_tag_(.*)$/.exec(H))==null?void 0:d[1],Z=(T=B.conf)==null?void 0:T.all_custom_tags.find(ee=>ee.name===V);return Z?A({key:`toggle-tag-${Z.id}`},U,z):void 0}}}}else!O.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(s)&&(E.preventDefault(),E.stopPropagation(),F.value.emit("selectAll"))}),{onFileItemClick:k,onContextMenuClick:A,showGenInfo:t,imageGenInfo:a,q:f}}function On(e,t,a,l){let o=0,m=0,L=typeof(l==null?void 0:l.width)=="number"?l.width:0,C=typeof(l==null?void 0:l.height)=="number"?l.height:0,I=typeof(l==null?void 0:l.left)=="number"?l.left:0,W=typeof(l==null?void 0:l.top)=="number"?l.top:0,N=!1;const F=s=>{s.stopPropagation(),s.preventDefault(),!(!e.value||!t.value)&&(o=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,m=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,L=e.value.offsetWidth,C=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",b),document.documentElement.addEventListener("touchmove",b),document.documentElement.addEventListener("mouseup",g),document.documentElement.addEventListener("touchend",g))},b=s=>{if(!e.value||!t.value)return;let p=L+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-o),d=C+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-m);e.value.offsetLeft+p>window.innerWidth&&(p=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+d>window.innerHeight&&(d=window.innerHeight-e.value.offsetTop),e.value.style.width=`${p}px`,e.value.style.height=`${d}px`,l!=null&&l.onResize&&l.onResize(p,d)},g=()=>{document.documentElement.removeEventListener("mousemove",b),document.documentElement.removeEventListener("touchmove",b),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g)},u=s=>{s.stopPropagation(),s.preventDefault(),!(!e.value||!a.value)&&(N=!0,I=e.value.offsetLeft,W=e.value.offsetTop,o=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,m=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,document.documentElement.addEventListener("mousemove",f),document.documentElement.addEventListener("touchmove",f),document.documentElement.addEventListener("mouseup",k),document.documentElement.addEventListener("touchend",k))},f=s=>{if(!e.value||!a.value||!N)return;const p=I+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-o),d=W+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-m);p<0?e.value.style.left="0px":p+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${p}px`,d<0?e.value.style.top="0px":d+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${d}px`,l!=null&&l.onDrag&&l.onDrag(p,d)},k=()=>{N=!1,document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",k),document.documentElement.removeEventListener("touchend",k)},A=()=>{if(!e.value||!t.value)return;let s=e.value.offsetLeft,p=e.value.offsetTop,d=e.value.offsetWidth,T=e.value.offsetHeight;s+d>window.innerWidth&&(s=window.innerWidth-d,s<0&&(s=0,d=window.innerWidth)),p+T>window.innerHeight&&(p=window.innerHeight-T,p<0&&(p=0,T=window.innerHeight)),e.value.style.left=`${s}px`,e.value.style.top=`${p}px`,e.value.style.width=`${d}px`,e.value.style.height=`${T}px`},O=()=>{!e.value||!l||(typeof l.width=="number"&&(e.value.style.width=`${l.width}px`),typeof l.height=="number"&&(e.value.style.height=`${l.height}px`),typeof l.left=="number"&&(e.value.style.left=`${l.left}px`),typeof l.top=="number"&&(e.value.style.top=`${l.top}px`),A(),window.addEventListener("resize",A))},E=()=>{document.documentElement.removeEventListener("mousemove",b),document.documentElement.removeEventListener("touchmove",b),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g),document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",k),document.documentElement.removeEventListener("touchend",k),window.removeEventListener("resize",A)};return et(O),Ze(E),ne(()=>l==null?void 0:l.disbaled,async s=>{await Ot(),s!==void 0&&(s?E():O())}),ne(()=>[e.value,t.value,a.value],([s,p,d])=>{s&&p&&(p.addEventListener("mousedown",F),p.addEventListener("touchstart",F)),s&&d&&(d.addEventListener("mousedown",u),d.addEventListener("touchstart",u))}),{handleResizeMouseDown:F,handleDragMouseDown:u}}let Je=null;const En=()=>{var C,I;const e=$e(),t=Et(Je??((I=(C=e.conf)==null?void 0:C.app_fe_setting)==null?void 0:I.fullscreen_layout)??{enable:!1,panelWidth:384,alwaysOn:!0}),a="--iib-lr-layout-info-panel-width",l=G(()=>t.alwaysOn&&t.enable?t.panelWidth:0);ne(t,()=>{Qe(t,a,l),Ln(t),Je=t},{deep:!0}),et(()=>Qe(t,a,l));const{enable:o,panelWidth:m,alwaysOn:L}=Lt(t);return{state:t,isLeftRightLayout:o,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:m,lrMenuAlwaysOn:L}},Ln=ie(e=>$t("fullscreen_layout",e),300),Qe=ie((e,t,a)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${a.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300),ae=e=>(Wt("data-v-d6c104a4"),e=e(),Nt(),e),$n={key:0},xn={class:"container"},Sn={class:"action-bar"},Cn=["title"],Pn=["title"],In=["title"],Mn=["src"],Fn={key:0,class:"icon",style:{cursor:"pointer"}},Dn={key:2,"flex-placeholder":""},Tn={key:3,class:"action-bar"},An={key:0,class:"gen-info"},zn={class:"info-tags"},Wn={class:"name"},Nn={class:"value"},jn={key:0,class:"tags-container"},Bn=["onClick"],Un={class:"lr-layout-control"},Hn={class:"ctrl-item"},Vn={class:"ctrl-item"},qn={class:"ctrl-item"},Xn=ae(()=>P("br",null,null,-1)),Yn=ae(()=>P("h3",null,"Prompt",-1)),Gn=["innerHTML"],Kn=ae(()=>P("br",null,null,-1)),Jn=ae(()=>P("h3",null,"Negative Prompt",-1)),Qn=["innerHTML"],Zn=ae(()=>P("br",null,null,-1)),Rn=ae(()=>P("h3",null,"Params",-1)),el={style:{"font-weight":"600","text-transform":"capitalize"}},tl=["onDblclick"],nl=["onDblclick"],ll=["title"],al=tt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const a=e;xt(n=>({"45b9a52d":c(p)?0:"46px","6e440240":c(s)+"px","321f36b8":`calc(100vw - ${c(s)}px)`}));const l=$e(),o=St(),m=J(),L=G(()=>o.tagMap.get(a.file.fullpath)??[]),C=J(""),I=Le(),W=J(""),N=G(()=>W.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),F=G(()=>N.value.split(` -`)),b=G(()=>Ne(N.value)),g=G(()=>{let n=Ne(N.value);return delete n.prompt,delete n.negativePrompt,n});ne(()=>{var n;return(n=a==null?void 0:a.file)==null?void 0:n.fullpath},async n=>{n&&(I.tasks.forEach(i=>i.cancel()),I.pushAction(()=>Oe(n)).res.then(i=>{W.value=i}))},{immediate:!0});const u=je("iib@fullScreenContextMenu.prompt-tab","structedData"),f=J(),k=J(),A={left:100,top:100,width:512,height:384,expanded:!0},O=je("fullScreenContextMenu.vue-drag",A);O.value&&(O.value.left<0||O.value.top<0)&&(O.value={...A});const{isLeftRightLayout:E,lrLayoutInfoPanelWidth:s,lrMenuAlwaysOn:p}=En(),d=E;On(m,f,k,{disbaled:d,...O.value,onDrag:ie(function(n,i){O.value={...O.value,left:n,top:i}},300),onResize:ie(function(n,i){O.value={...O.value,width:n,height:i}},300)});const T=J(!1),{isOutside:H}=Re(G(()=>!d.value||p.value?null:T.value?m.value:document.querySelector(".iib-tab-edge-trigger")));ne(H,Zt(n=>{T.value=!n},300));function z(n){return n.parentNode}function U(n){if(!n)return"";let i="";const M=n.split(/[\n,]+/).map(D=>D.trim()).filter(D=>D);let X=!1;for(let D=0;D${oe}`,D{const i=n.target;i.className==="ant-image-preview-img"&&(C.value=`${i.naturalWidth} x ${i.naturalHeight}`)},{capture:!0});const V=G(()=>{const n=[{name:S("fileName"),val:a.file.name},{name:S("fileSize"),val:a.file.size}];return C.value&&n.push({name:S("resolution"),val:C.value}),n}),Z=()=>{const n="Negative prompt:",i=W.value.includes(n)?W.value.split(n)[0]:F.value[0]??"";pe(_e(i.trim()))},ee=()=>document.body.requestFullscreen(),se=n=>{pe(typeof n=="object"?JSON.stringify(n,null,4):n)},v=n=>{n.key.startsWith("Arrow")?(n.stopPropagation(),n.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",n))):n.key==="Escape"&&(document.fullscreenElement?document.exitFullscreen():document.dispatchEvent(new KeyboardEvent("keydown",n)))};return(n,i)=>{var Ae;const M=Jt,X=te,D=Mt,oe=Ft,Fe=Dt,st=te,De=Gt,ot=Kt,rt=Tt,Te=At,it=zt;return _(),$("div",{ref_key:"el",ref:m,class:Be(["full-screen-menu",{"unset-size":!c(O).expanded,lr:c(d),"always-on":c(p),"mouse-in":T.value}]),onWheelCapture:i[9]||(i[9]=It(()=>{},["stop"])),onKeydownCapture:v},[c(d)?(_(),$("div",$n)):j("",!0),P("div",xn,[P("div",Sn,[c(d)?j("",!0):(_(),$("div",{key:0,ref_key:"dragHandle",ref:k,class:"icon",style:{cursor:"grab"},title:c(S)("dragToMovePanel")},[r(c(on))],8,Cn)),c(d)?j("",!0):(_(),$("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:i[0]||(i[0]=h=>c(O).expanded=!c(O).expanded),title:c(S)("clickToToggleMaximizeMinimize")},[c(O).expanded?(_(),de(c(dn),{key:0})):(_(),de(c(mn),{key:1}))],8,Pn)),P("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:c(S)("fullscreenview"),onClick:ee},[P("img",{src:c(kn),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Mn)],8,In),r(M,{"get-popup-container":z},{overlay:y(()=>[r(Ut,{file:n.file,idx:n.idx,"selected-tag":L.value,"disable-delete":c(Q)(n.file)===c(l).fullscreenPreviewInitialUrl,onContextMenuClick:i[1]||(i[1]=(h,R,he)=>t("contextMenuClick",h,R,he))},null,8,["file","idx","selected-tag","disable-delete"])]),default:y(()=>[c(O).expanded?j("",!0):(_(),$("div",Fn,[r(c(Ct))]))]),_:1}),c(O).expanded?(_(),$("div",Dn)):j("",!0),c(O).expanded?(_(),$("div",Tn,[r(M,{trigger:["hover"],"get-popup-container":z},{overlay:y(()=>[r(Fe,{onClick:i[2]||(i[2]=h=>t("contextMenuClick",h,n.file,n.idx))},{default:y(()=>{var h;return[((h=c(l).conf)==null?void 0:h.launch_mode)!=="server"?(_(),$(Y,{key:0},[r(D,{key:"send2txt2img"},{default:y(()=>[x(w(n.$t("sendToTxt2img")),1)]),_:1}),r(D,{key:"send2img2img"},{default:y(()=>[x(w(n.$t("sendToImg2img")),1)]),_:1}),r(D,{key:"send2inpaint"},{default:y(()=>[x(w(n.$t("sendToInpaint")),1)]),_:1}),r(D,{key:"send2extras"},{default:y(()=>[x(w(n.$t("sendToExtraFeatures")),1)]),_:1}),r(oe,{key:"sendToThirdPartyExtension",title:n.$t("sendToThirdPartyExtension")},{default:y(()=>[r(D,{key:"send2controlnet-txt2img"},{default:y(()=>[x("ControlNet - "+w(n.$t("t2i")),1)]),_:1}),r(D,{key:"send2controlnet-img2img"},{default:y(()=>[x("ControlNet - "+w(n.$t("i2i")),1)]),_:1}),r(D,{key:"send2outpaint"},{default:y(()=>[x("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):j("",!0),r(D,{key:"send2BatchDownload"},{default:y(()=>[x(w(n.$t("sendToBatchDownload")),1)]),_:1}),r(D,{key:"send2savedDir"},{default:y(()=>[x(w(n.$t("send2savedDir")),1)]),_:1}),r(D,{key:"deleteFiles",disabled:c(Q)(n.file)===c(l).fullscreenPreviewInitialUrl},{default:y(()=>[x(w(n.$t("deleteSelected")),1)]),_:1},8,["disabled"]),r(D,{key:"previewInNewWindow"},{default:y(()=>[x(w(n.$t("previewInNewWindow")),1)]),_:1}),r(D,{key:"copyPreviewUrl"},{default:y(()=>[x(w(n.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:y(()=>[r(X,null,{default:y(()=>[x(w(c(S)("openContextMenu")),1)]),_:1})]),_:1}),r(st,{onClick:i[3]||(i[3]=h=>t("contextMenuClick",{key:"download"},a.file,a.idx))},{default:y(()=>[x(w(n.$t("download")),1)]),_:1}),W.value?(_(),de(X,{key:0,onClick:i[4]||(i[4]=h=>c(pe)(W.value))},{default:y(()=>[x(w(n.$t("copyPrompt")),1)]),_:1})):j("",!0),W.value?(_(),de(X,{key:1,onClick:Z},{default:y(()=>[x(w(n.$t("copyPositivePrompt")),1)]),_:1})):j("",!0)])):j("",!0)]),c(O).expanded?(_(),$("div",An,[P("div",zn,[(_(!0),$(Y,null,ye(V.value,h=>(_(),$("span",{class:"info-tag",key:h.name},[P("span",Wn,w(h.name),1),P("span",Nn,w(h.val),1)]))),128))]),(Ae=c(l).conf)!=null&&Ae.all_custom_tags?(_(),$("div",jn,[(_(!0),$(Y,null,ye(c(l).conf.all_custom_tags,h=>(_(),$("div",{class:Be(["tag",{selected:L.value.some(R=>R.id===h.id)}]),onClick:R=>t("contextMenuClick",{key:`toggle-tag-${h.id}`},n.file,n.idx),key:h.id,style:Pt({"--tag-color":c(o).getColor(h.name)})},w(h.name),15,Bn))),128))])):j("",!0),P("div",Un,[P("div",Hn,[x(w(n.$t("experimentalLRLayout"))+": ",1),r(De,{checked:c(d),"onUpdate:checked":i[5]||(i[5]=h=>ve(d)?d.value=h:null),size:"small"},null,8,["checked"])]),c(d)?(_(),$(Y,{key:0},[P("div",Vn,[x(w(n.$t("width"))+": ",1),r(ot,{value:c(s),"onUpdate:value":i[6]||(i[6]=h=>ve(s)?s.value=h:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),r(rt,{title:n.$t("alwaysOnTooltipInfo")},{default:y(()=>[P("div",qn,[x(w(n.$t("alwaysOn"))+": ",1),r(De,{checked:c(p),"onUpdate:checked":i[7]||(i[7]=h=>ve(p)?p.value=h:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):j("",!0)]),r(it,{activeKey:c(u),"onUpdate:activeKey":i[8]||(i[8]=h=>ve(u)?u.value=h:null)},{default:y(()=>[r(Te,{key:"structedData",tab:n.$t("structuredData")},{default:y(()=>[P("div",null,[b.value.prompt?(_(),$(Y,{key:0},[Xn,Yn,P("code",{innerHTML:U(b.value.prompt??"")},null,8,Gn)],64)):j("",!0),b.value.negativePrompt?(_(),$(Y,{key:1},[Kn,Jn,P("code",{innerHTML:U(b.value.negativePrompt??"")},null,8,Qn)],64)):j("",!0)]),Object.keys(g.value).length?(_(),$(Y,{key:0},[Zn,Rn,P("table",null,[(_(!0),$(Y,null,ye(g.value,(h,R)=>(_(),$("tr",{key:R,class:"gen-info-frag"},[P("td",el,w(R),1),typeof h=="object"?(_(),$("td",{key:0,style:{cursor:"pointer"},onDblclick:he=>se(h)},[P("code",null,w(h),1)],40,tl)):(_(),$("td",{key:1,style:{cursor:"pointer"},onDblclick:he=>se(c(_e)(h))},w(c(_e)(h)),41,nl))]))),128))])],64)):j("",!0)]),_:1},8,["tab"]),r(Te,{key:"sourceText",tab:n.$t("sourceText")},{default:y(()=>[P("code",null,w(W.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):j("",!0)]),c(O).expanded&&!c(d)?(_(),$("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:c(S)("dragToResizePanel")},[r(c(nn))],8,ll)):j("",!0)],34)}}});const wl=nt(al,[["__scopeId","data-v-d6c104a4"]]),sl={key:0,class:"float-panel"},ol={key:0,class:"select-actions"},rl={key:1},il=tt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const a=$e(),l=()=>{t("clearAllSelected"),a.keepMultiSelect=!1},o=()=>{a.keepMultiSelect=!0};return(m,L)=>{const C=te;return m.show?(_(),$("div",sl,[c(a).keepMultiSelect?(_(),$("div",ol,[r(C,{size:"small",onClick:L[0]||(L[0]=I=>t("selectAll"))},{default:y(()=>[x(w(m.$t("select-all")),1)]),_:1}),r(C,{size:"small",onClick:L[1]||(L[1]=I=>t("reverseSelect"))},{default:y(()=>[x(w(m.$t("rerverse-select")),1)]),_:1}),r(C,{size:"small",onClick:L[2]||(L[2]=I=>t("clearAllSelected"))},{default:y(()=>[x(w(m.$t("clear-all-selected")),1)]),_:1}),r(C,{size:"small",onClick:l},{default:y(()=>[x(w(m.$t("exit")),1)]),_:1})])):(_(),$("div",rl,[r(C,{size:"small",type:"primary",onClick:o},{default:y(()=>[x(w(m.$t("keep-multi-selected")),1)]),_:1})]))])):j("",!0)}}});const bl=nt(il,[["__scopeId","data-v-b04c3508"]]);export{ml as L,bl as M,gl as R,yl as a,_l as b,hl as c,wl as f,ue as u}; +import{c8 as ct,l as ie,ba as Ze,c as r,A as le,v as K,x as S,n as ut,J as q,k as ne,t as dt,c9 as We,ca as vt,bX as $e,ad as re,af as te,cb as ft,r as J,cc as Re,C as Ne,a9 as Q,cd as pt,ce as mt,R as x,a8 as gt,cf as Oe,I as ue,cg as ht,E as pe,ch as yt,ci as _t,c7 as wt,cj as bt,ck as kt,o as et,av as Ot,W as xe,ah as Et,B as G,cl as Lt,cm as $t,d as tt,cn as xt,co as St,L as je,cp as Be,N as _,O as $,Z as u,U as j,Q as P,X as de,Y as y,cq as Ct,T as Y,S as w,a2 as ye,aa as Ue,a1 as Pt,a0 as ve,cr as _e,$ as It,ag as Mt,cs as Ft,M as Dt,bH as At,ct as Tt,cu as zt,aI as Wt,aJ as Nt,V as nt}from"./index-28dbaa5b.js";import{u as ge,e as Ee,g as B,f as He,h as me,r as jt,t as we,i as Bt,s as be,j as fe,_ as Ut}from"./FileItem-a9860a66.js";import{M as lt,c as Ht,m as at,l as Le,b as Vt,d as qt}from"./functionalCallableComp-168f8428.js";import{C as Xt,g as Yt,_ as Gt,a as Kt}from"./shortcut-aef21d22.js";/* empty css */import{D as Jt}from"./index-6980ed51.js";var Qt="Expected a function";function Zt(e,t,a){var l=!0,o=!0;if(typeof e!="function")throw new TypeError(Qt);return ct(a)&&(l="leading"in a?!!a.leading:l,o="trailing"in a?!!a.trailing:o),ie(e,t,{leading:l,maxWait:t,trailing:o})}const ce=(...e)=>{document.addEventListener(...e),Ze(()=>document.removeEventListener(...e))};var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const en=Rt;function Ve(e){for(var t=1;t{var f;l.value=g,I!=null&&!g&&c&&((f=m.value)==null||f.scrollToItem(I),I=null)},N=()=>{L.value.mode==="walk"&&!b("next")&&a&&(K.info(S("loadingNextFolder")),t.value.emit("loadNextDir",!0))};ce("keydown",g=>{var c;if(l.value){let f=e.value;if(["ArrowDown","ArrowRight"].includes(g.key))for(f++;o.value[f]&&!q(o.value[f].name);)f++;else if(["ArrowUp","ArrowLeft"].includes(g.key))for(f--;o.value[f]&&!q(o.value[f].name);)f--;if(q((c=o.value[f])==null?void 0:c.name)??""){e.value=f;const k=m.value;k&&!(f>=k.$_startIndex&&f<=k.$_endIndex)&&(I=f)}N()}});const F=g=>{var f;let c=e.value;if(g==="next")for(c++;o.value[c]&&!q(o.value[c].name);)c++;else if(g==="prev")for(c--;o.value[c]&&!q(o.value[c].name);)c--;if(q((f=o.value[c])==null?void 0:f.name)??""){e.value=c;const k=m.value;k&&!(c>=k.$_startIndex&&c<=k.$_endIndex)&&(I=c)}N()},b=g=>{var f;let c=e.value;if(g==="next")for(c++;o.value[c]&&!q(o.value[c].name);)c++;else if(g==="prev")for(c--;o.value[c]&&!q(o.value[c].name);)c--;return q((f=o.value[c])==null?void 0:f.name)??""};return Ee("removeFiles",async()=>{var g;l.value&&!C.sortedFiles[e.value]&&(K.info(S("manualExitFullScreen"),5),await ut(500),(g=document.querySelector(".ant-image-preview-operations-operation .anticon-close"))==null||g.click(),e.value=-1)}),{previewIdx:e,onPreviewVisibleChange:W,previewing:l,previewImgMove:F,canPreview:b}}function ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ft(e)}function yl(){const{currLocation:e,sortedFiles:t,currPage:a,multiSelectedIdxs:l,eventEmitter:o,walker:m}=ge().toRefs(),L=()=>{l.value=[]};return ce("click",()=>{B.keepMultiSelect||L()}),ce("blur",()=>{B.keepMultiSelect||L()}),ne(a,L),{onFileDragStart:(N,F)=>{const b=dt(t.value[F]);He.fileDragging=!0,console.log("onFileDragStart set drag file ",N,F,b);const g=[b];let c=b.type==="dir";if(l.value.includes(F)){const k=l.value.map(T=>t.value[T]);g.push(...k),c=k.some(T=>T.type==="dir")}const f={includeDir:c,loc:e.value||"search-result",path:We(g,"fullpath").map(k=>k.fullpath),nodes:We(g,"fullpath"),__id:"FileTransferData"};N.dataTransfer.setData("text/plain",JSON.stringify(f))},onDrop:async N=>{if(m.value)return;const F=vt(N);if(!F)return;const b=e.value;if(F.loc===b)return;const g=$e(),c=async()=>g.pushAction(async()=>{await Ht(F.path,b),o.value.emit("refresh"),re.destroyAll()}),f=()=>g.pushAction(async()=>{await at(F.path,b),me.emit("removeFiles",{paths:F.path,loc:F.loc}),o.value.emit("refresh"),re.destroyAll()});re.confirm({title:S("confirm")+"?",width:"60vw",content:()=>{let k,T,O;return r("div",null,[r("div",null,[`${S("moveSelectedFilesTo")} ${b}`,r("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[F.path.map(E=>r("li",null,[E.split(/[/\\]/).pop()]))])]),r(lt,null,null),r("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[r(te,{onClick:re.destroyAll},ke(k=S("cancel"))?k:{default:()=>[k]}),r(te,{type:"primary",loading:!g.isIdle,onClick:c},ke(T=S("copy"))?T:{default:()=>[T]}),r(te,{type:"primary",loading:!g.isIdle,onClick:f},ke(O=S("move"))?O:{default:()=>[O]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:l,onFileDragEnd:()=>{He.fileDragging=!1}}}function _l({openNext:e}){const t=J(!1),a=J(""),{sortedFiles:l,previewIdx:o,multiSelectedIdxs:m,stack:L,currLocation:C,spinning:I,previewing:W,stackViewEl:N,eventEmitter:F,props:b,deletedFiles:g}=ge().toRefs(),c=Ne;Ee("removeFiles",({paths:E,loc:s})=>{c(s)!==c(C.value)||!Le(L.value)||(E.forEach(d=>g.value.add(d)),E.filter(q).forEach(d=>g.value.add(d.replace(/\.\w+$/,".txt"))))}),Ee("addFiles",({files:E,loc:s})=>{if(c(s)!==c(C.value))return;const p=Le(L.value);p&&p.files.unshift(...E)});const f=$e(),k=async(E,s,p)=>{o.value=p,B.fullscreenPreviewInitialUrl=Q(s);const d=m.value.indexOf(p);if(E.shiftKey){if(d!==-1)m.value.splice(d,1);else{m.value.push(p),m.value.sort((z,U)=>z-U);const A=m.value[0],H=m.value[m.value.length-1];m.value=jt(A,H+1)}E.stopPropagation()}else E.ctrlKey||E.metaKey?(d!==-1?m.value.splice(d,1):m.value.push(p),E.stopPropagation()):await e(s)},T=async(E,s,p)=>{var Z,ee,se;const d=Q(s),A=C.value,H={IIB_container_id:parent.IIB_container_id},z=()=>{let v=[];return m.value.includes(p)?v=m.value.map(n=>l.value[n]):v.push(s),v},U=async v=>{if(!I.value)try{I.value=!0,await bt(s.fullpath),fe.postMessage({...H,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await kt(),fe.postMessage({...H,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${v}`})}catch(n){console.error(n),K.error("发送图像失败,请携带console的错误消息找开发者")}finally{I.value=!1}},V=`${E.key}`;if(V.startsWith("toggle-tag-")){const v=+V.split("toggle-tag-")[1],{is_remove:n}=await pt({tag_id:v,img_path:s.fullpath}),i=(ee=(Z=B.conf)==null?void 0:Z.all_custom_tags.find(M=>M.id===v))==null?void 0:ee.name;await we.refreshTags([s.fullpath]),K.success(S(n?"removedTagFromImage":"addedTagToImage",{tag:i}));return}else if(V.startsWith("batch-add-tag-")||V.startsWith("batch-remove-tag-")){const v=+V.split("-tag-")[1],n=V.includes("add")?"add":"remove",i=z().map(M=>M.fullpath);await mt({tag_id:v,img_paths:i,action:n}),await we.refreshTags(i),K.success(S(n==="add"?"addCompleted":"removeCompleted"));return}switch(E.key){case"previewInNewWindow":return window.open(d);case"saveSelectedAsJson":return wt(z());case"openWithDefaultApp":return _t(s.fullpath);case"download":{const v=z();yt(v.map(n=>Q(n,!0)));break}case"copyPreviewUrl":return pe(parent.document.location.origin+d);case"rename":{let v=await Vt(s.fullpath);v=Ne(v);const n=we.tagMap;n.set(v,n.get(s.fullpath)??[]),n.delete(s.fullpath),s.fullpath=v,s.name=v.split(/[\\/]/).pop()??"";return}case"send2txt2img":return U("txt2img");case"send2img2img":return U("img2img");case"send2inpaint":return U("inpaint");case"send2extras":return U("extras");case"send2savedDir":{const v=B.quickMovePaths.find(M=>M.key==="outdir_save");if(!v)return K.error(S("unknownSavedDir"));const n=ht(v.dir,(se=B.conf)==null?void 0:se.sd_cwd),i=z();await at(i.map(M=>M.fullpath),n,!0),me.emit("removeFiles",{paths:i.map(M=>M.fullpath),loc:C.value}),me.emit("addFiles",{files:i,loc:n});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const v=E.key.split("-")[1];fe.postMessage({...H,event:"send_to_control_net",type:v,url:Q(s)});break}case"send2outpaint":{a.value=await f.pushAction(()=>Oe(s.fullpath)).res;const[v,n]=(a.value||"").split(` +`);fe.postMessage({...H,event:"send_to_outpaint",url:Q(s),prompt:v,negPrompt:n.slice(17)});break}case"openWithWalkMode":{be.set(A,L.value);const v=B.tabList[b.value.tabIdx],n={type:"local",key:ue(),path:s.fullpath,name:S("local"),stackKey:A,mode:"walk"};v.panes.push(n),v.key=n.key;break}case"openInNewTab":{be.set(A,L.value);const v=B.tabList[b.value.tabIdx],n={type:"local",key:ue(),path:s.fullpath,name:S("local"),stackKey:A};v.panes.push(n),v.key=n.key;break}case"openOnTheRight":{be.set(A,L.value);let v=B.tabList[b.value.tabIdx+1];v||(v={panes:[],key:"",id:ue()},B.tabList[b.value.tabIdx+1]=v);const n={type:"local",key:ue(),path:s.fullpath,name:S("local"),stackKey:A};v.panes.push(n),v.key=n.key;break}case"send2BatchDownload":{Bt.addFiles(z());break}case"viewGenInfo":{t.value=!0,a.value=await f.pushAction(()=>Oe(s.fullpath)).res;break}case"openWithLocalFileBrowser":{await gt(s.fullpath);break}case"deleteFiles":{const v=z(),n=async()=>{const i=v.map(M=>M.fullpath);await qt(i),K.success(S("deleteSuccess")),me.emit("removeFiles",{paths:i,loc:C.value})};if(v.length===1&&B.ignoredConfirmActions.deleteOneOnly)return n();await new Promise(i=>{re.confirm({title:S("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>r("div",null,[r("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[v.map(M=>r("li",null,[M.fullpath.split(/[/\\]/).pop()]))]),r(lt,null,null),r(Xt,{checked:B.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":M=>B.ignoredConfirmActions.deleteOneOnly=M},{default:()=>[S("deleteOneOnlySkipConfirm"),x(" ("),S("resetOnGlobalSettingsPage"),x(")")]})]),async onOk(){await n(),i()}})});break}}return{}},{isOutside:O}=Re(N);return ce("keydown",E=>{var p,d,A;const s=Yt(E);if(W.value){s==="Esc"&&(W.value=!1);const H=(p=Object.entries(B.shortcut).find(z=>z[1]===s&&z[1]))==null?void 0:p[0];if(H){E.stopPropagation(),E.preventDefault();const z=o.value,U=l.value[z];switch(H){case"delete":return Q(U)===B.fullscreenPreviewInitialUrl?K.warn(S("fullscreenRestriction")):T({key:"deleteFiles"},U,z);case"download":return T({key:"download"},U,z);default:{const V=(d=/^toggle_tag_(.*)$/.exec(H))==null?void 0:d[1],Z=(A=B.conf)==null?void 0:A.all_custom_tags.find(ee=>ee.name===V);return Z?T({key:`toggle-tag-${Z.id}`},U,z):void 0}}}}else!O.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(s)&&(E.preventDefault(),E.stopPropagation(),F.value.emit("selectAll"))}),{onFileItemClick:k,onContextMenuClick:T,showGenInfo:t,imageGenInfo:a,q:f}}function On(e,t,a,l){let o=0,m=0,L=typeof(l==null?void 0:l.width)=="number"?l.width:0,C=typeof(l==null?void 0:l.height)=="number"?l.height:0,I=typeof(l==null?void 0:l.left)=="number"?l.left:0,W=typeof(l==null?void 0:l.top)=="number"?l.top:0,N=!1;const F=s=>{s.stopPropagation(),s.preventDefault(),!(!e.value||!t.value)&&(o=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,m=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,L=e.value.offsetWidth,C=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",b),document.documentElement.addEventListener("touchmove",b),document.documentElement.addEventListener("mouseup",g),document.documentElement.addEventListener("touchend",g))},b=s=>{if(!e.value||!t.value)return;let p=L+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-o),d=C+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-m);e.value.offsetLeft+p>window.innerWidth&&(p=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+d>window.innerHeight&&(d=window.innerHeight-e.value.offsetTop),e.value.style.width=`${p}px`,e.value.style.height=`${d}px`,l!=null&&l.onResize&&l.onResize(p,d)},g=()=>{document.documentElement.removeEventListener("mousemove",b),document.documentElement.removeEventListener("touchmove",b),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g)},c=s=>{s.stopPropagation(),s.preventDefault(),!(!e.value||!a.value)&&(N=!0,I=e.value.offsetLeft,W=e.value.offsetTop,o=s instanceof MouseEvent?s.clientX:s.touches[0].clientX,m=s instanceof MouseEvent?s.clientY:s.touches[0].clientY,document.documentElement.addEventListener("mousemove",f),document.documentElement.addEventListener("touchmove",f),document.documentElement.addEventListener("mouseup",k),document.documentElement.addEventListener("touchend",k))},f=s=>{if(!e.value||!a.value||!N)return;const p=I+((s instanceof MouseEvent?s.clientX:s.touches[0].clientX)-o),d=W+((s instanceof MouseEvent?s.clientY:s.touches[0].clientY)-m);p<0?e.value.style.left="0px":p+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${p}px`,d<0?e.value.style.top="0px":d+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${d}px`,l!=null&&l.onDrag&&l.onDrag(p,d)},k=()=>{N=!1,document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",k),document.documentElement.removeEventListener("touchend",k)},T=()=>{if(!e.value||!t.value)return;let s=e.value.offsetLeft,p=e.value.offsetTop,d=e.value.offsetWidth,A=e.value.offsetHeight;s+d>window.innerWidth&&(s=window.innerWidth-d,s<0&&(s=0,d=window.innerWidth)),p+A>window.innerHeight&&(p=window.innerHeight-A,p<0&&(p=0,A=window.innerHeight)),e.value.style.left=`${s}px`,e.value.style.top=`${p}px`,e.value.style.width=`${d}px`,e.value.style.height=`${A}px`},O=()=>{!e.value||!l||(typeof l.width=="number"&&(e.value.style.width=`${l.width}px`),typeof l.height=="number"&&(e.value.style.height=`${l.height}px`),typeof l.left=="number"&&(e.value.style.left=`${l.left}px`),typeof l.top=="number"&&(e.value.style.top=`${l.top}px`),T(),window.addEventListener("resize",T))},E=()=>{document.documentElement.removeEventListener("mousemove",b),document.documentElement.removeEventListener("touchmove",b),document.documentElement.removeEventListener("mouseup",g),document.documentElement.removeEventListener("touchend",g),document.documentElement.removeEventListener("mousemove",f),document.documentElement.removeEventListener("touchmove",f),document.documentElement.removeEventListener("mouseup",k),document.documentElement.removeEventListener("touchend",k),window.removeEventListener("resize",T)};return et(O),Ze(E),ne(()=>l==null?void 0:l.disbaled,async s=>{await Ot(),s!==void 0&&(s?E():O())}),ne(()=>[e.value,t.value,a.value],([s,p,d])=>{s&&p&&(p.addEventListener("mousedown",F),p.addEventListener("touchstart",F)),s&&d&&(d.addEventListener("mousedown",c),d.addEventListener("touchstart",c))}),{handleResizeMouseDown:F,handleDragMouseDown:c}}let Je=null;const En=()=>{var C,I;const e=xe(),t=Et(Je??((I=(C=e.conf)==null?void 0:C.app_fe_setting)==null?void 0:I.fullscreen_layout)??{enable:!1,panelWidth:384,alwaysOn:!0}),a="--iib-lr-layout-info-panel-width",l=G(()=>t.alwaysOn&&t.enable?t.panelWidth:0);ne(t,()=>{Qe(t,a,l),Ln(t),Je=t},{deep:!0}),et(()=>Qe(t,a,l));const{enable:o,panelWidth:m,alwaysOn:L}=Lt(t);return{state:t,isLeftRightLayout:o,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:m,lrMenuAlwaysOn:L}},Ln=ie(e=>$t("fullscreen_layout",e),300),Qe=ie((e,t,a)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${a.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300),ae=e=>(Wt("data-v-c28ac32d"),e=e(),Nt(),e),$n={key:0},xn={class:"container"},Sn={class:"action-bar"},Cn=["title"],Pn=["title"],In=["title"],Mn=["src"],Fn={key:0,class:"icon",style:{cursor:"pointer"}},Dn={key:2,"flex-placeholder":""},An={key:3,class:"action-bar"},Tn={key:0,class:"gen-info"},zn={class:"info-tags"},Wn={class:"name"},Nn={class:"value"},jn={key:0,class:"tags-container"},Bn=["onClick"],Un={class:"lr-layout-control"},Hn={class:"ctrl-item"},Vn={class:"ctrl-item"},qn={class:"ctrl-item"},Xn=ae(()=>P("br",null,null,-1)),Yn=ae(()=>P("h3",null,"Prompt",-1)),Gn=["innerHTML"],Kn=ae(()=>P("br",null,null,-1)),Jn=ae(()=>P("h3",null,"Negative Prompt",-1)),Qn=["innerHTML"],Zn=ae(()=>P("br",null,null,-1)),Rn=ae(()=>P("h3",null,"Params",-1)),el={style:{"font-weight":"600","text-transform":"capitalize"}},tl=["onDblclick"],nl=["onDblclick"],ll=["title"],al=tt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const a=e;xt(n=>({"0b6ae20a":u(p)?0:"46px","31990f06":u(s)+"px",c56370fe:`calc(100vw - ${u(s)}px)`}));const l=xe(),o=St(),m=J(),L=G(()=>o.tagMap.get(a.file.fullpath)??[]),C=J(""),I=$e(),W=J(""),N=G(()=>W.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),F=G(()=>N.value.split(` +`)),b=G(()=>je(N.value)),g=G(()=>{let n=je(N.value);return delete n.prompt,delete n.negativePrompt,n});ne(()=>{var n;return(n=a==null?void 0:a.file)==null?void 0:n.fullpath},async n=>{n&&(I.tasks.forEach(i=>i.cancel()),I.pushAction(()=>Oe(n)).res.then(i=>{W.value=i}))},{immediate:!0});const c=Be("iib@fullScreenContextMenu.prompt-tab","structedData"),f=J(),k=J(),T={left:100,top:100,width:512,height:384,expanded:!0},O=Be("fullScreenContextMenu.vue-drag",T);O.value&&(O.value.left<0||O.value.top<0)&&(O.value={...T});const{isLeftRightLayout:E,lrLayoutInfoPanelWidth:s,lrMenuAlwaysOn:p}=En(),d=E;On(m,f,k,{disbaled:d,...O.value,onDrag:ie(function(n,i){O.value={...O.value,left:n,top:i}},300),onResize:ie(function(n,i){O.value={...O.value,width:n,height:i}},300)});const A=J(!1),{isOutside:H}=Re(G(()=>!d.value||p.value?null:A.value?m.value:Le(document.querySelectorAll(".iib-tab-edge-trigger"))));ne(H,Zt(n=>{A.value=!n},300));function z(n){return n.parentNode}function U(n){if(!n)return"";let i="";const M=n.split(/[\n,]+/).map(D=>D.trim()).filter(D=>D);let X=!1;for(let D=0;D${oe}`,D{const i=n.target;i.className==="ant-image-preview-img"&&(C.value=`${i.naturalWidth} x ${i.naturalHeight}`)},{capture:!0});const V=G(()=>{const n=[{name:S("fileName"),val:a.file.name},{name:S("fileSize"),val:a.file.size}];return C.value&&n.push({name:S("resolution"),val:C.value}),n}),Z=()=>{const n="Negative prompt:",i=W.value.includes(n)?W.value.split(n)[0]:F.value[0]??"";pe(_e(i.trim()))},ee=()=>document.body.requestFullscreen(),se=n=>{pe(typeof n=="object"?JSON.stringify(n,null,4):n)},v=n=>{n.key.startsWith("Arrow")?(n.stopPropagation(),n.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",n))):n.key==="Escape"&&(document.fullscreenElement?document.exitFullscreen():document.dispatchEvent(new KeyboardEvent("keydown",n)))};return(n,i)=>{var ze;const M=Jt,X=te,D=Mt,oe=Ft,De=Dt,st=te,Ae=Gt,ot=Kt,rt=At,Te=Tt,it=zt;return _(),$("div",{ref_key:"el",ref:m,class:Ue(["full-screen-menu",{"unset-size":!u(O).expanded,lr:u(d),"always-on":u(p),"mouse-in":A.value}]),onWheelCapture:i[9]||(i[9]=It(()=>{},["stop"])),onKeydownCapture:v},[u(d)?(_(),$("div",$n)):j("",!0),P("div",xn,[P("div",Sn,[u(d)?j("",!0):(_(),$("div",{key:0,ref_key:"dragHandle",ref:k,class:"icon",style:{cursor:"grab"},title:u(S)("dragToMovePanel")},[r(u(on))],8,Cn)),u(d)?j("",!0):(_(),$("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:i[0]||(i[0]=h=>u(O).expanded=!u(O).expanded),title:u(S)("clickToToggleMaximizeMinimize")},[u(O).expanded?(_(),de(u(dn),{key:0})):(_(),de(u(mn),{key:1}))],8,Pn)),P("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:u(S)("fullscreenview"),onClick:ee},[P("img",{src:u(kn),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Mn)],8,In),r(M,{"get-popup-container":z},{overlay:y(()=>[r(Ut,{file:n.file,idx:n.idx,"selected-tag":L.value,"disable-delete":u(Q)(n.file)===u(l).fullscreenPreviewInitialUrl,onContextMenuClick:i[1]||(i[1]=(h,R,he)=>t("contextMenuClick",h,R,he))},null,8,["file","idx","selected-tag","disable-delete"])]),default:y(()=>[u(O).expanded?j("",!0):(_(),$("div",Fn,[r(u(Ct))]))]),_:1}),u(O).expanded?(_(),$("div",Dn)):j("",!0),u(O).expanded?(_(),$("div",An,[r(M,{trigger:["hover"],"get-popup-container":z},{overlay:y(()=>[r(De,{onClick:i[2]||(i[2]=h=>t("contextMenuClick",h,n.file,n.idx))},{default:y(()=>{var h;return[((h=u(l).conf)==null?void 0:h.launch_mode)!=="server"?(_(),$(Y,{key:0},[r(D,{key:"send2txt2img"},{default:y(()=>[x(w(n.$t("sendToTxt2img")),1)]),_:1}),r(D,{key:"send2img2img"},{default:y(()=>[x(w(n.$t("sendToImg2img")),1)]),_:1}),r(D,{key:"send2inpaint"},{default:y(()=>[x(w(n.$t("sendToInpaint")),1)]),_:1}),r(D,{key:"send2extras"},{default:y(()=>[x(w(n.$t("sendToExtraFeatures")),1)]),_:1}),r(oe,{key:"sendToThirdPartyExtension",title:n.$t("sendToThirdPartyExtension")},{default:y(()=>[r(D,{key:"send2controlnet-txt2img"},{default:y(()=>[x("ControlNet - "+w(n.$t("t2i")),1)]),_:1}),r(D,{key:"send2controlnet-img2img"},{default:y(()=>[x("ControlNet - "+w(n.$t("i2i")),1)]),_:1}),r(D,{key:"send2outpaint"},{default:y(()=>[x("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):j("",!0),r(D,{key:"send2BatchDownload"},{default:y(()=>[x(w(n.$t("sendToBatchDownload")),1)]),_:1}),r(D,{key:"send2savedDir"},{default:y(()=>[x(w(n.$t("send2savedDir")),1)]),_:1}),r(D,{key:"deleteFiles",disabled:u(Q)(n.file)===u(l).fullscreenPreviewInitialUrl},{default:y(()=>[x(w(n.$t("deleteSelected")),1)]),_:1},8,["disabled"]),r(D,{key:"previewInNewWindow"},{default:y(()=>[x(w(n.$t("previewInNewWindow")),1)]),_:1}),r(D,{key:"copyPreviewUrl"},{default:y(()=>[x(w(n.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:y(()=>[r(X,null,{default:y(()=>[x(w(u(S)("openContextMenu")),1)]),_:1})]),_:1}),r(st,{onClick:i[3]||(i[3]=h=>t("contextMenuClick",{key:"download"},a.file,a.idx))},{default:y(()=>[x(w(n.$t("download")),1)]),_:1}),W.value?(_(),de(X,{key:0,onClick:i[4]||(i[4]=h=>u(pe)(W.value))},{default:y(()=>[x(w(n.$t("copyPrompt")),1)]),_:1})):j("",!0),W.value?(_(),de(X,{key:1,onClick:Z},{default:y(()=>[x(w(n.$t("copyPositivePrompt")),1)]),_:1})):j("",!0)])):j("",!0)]),u(O).expanded?(_(),$("div",Tn,[P("div",zn,[(_(!0),$(Y,null,ye(V.value,h=>(_(),$("span",{class:"info-tag",key:h.name},[P("span",Wn,w(h.name),1),P("span",Nn,w(h.val),1)]))),128))]),(ze=u(l).conf)!=null&&ze.all_custom_tags?(_(),$("div",jn,[(_(!0),$(Y,null,ye(u(l).conf.all_custom_tags,h=>(_(),$("div",{class:Ue(["tag",{selected:L.value.some(R=>R.id===h.id)}]),onClick:R=>t("contextMenuClick",{key:`toggle-tag-${h.id}`},n.file,n.idx),key:h.id,style:Pt({"--tag-color":u(o).getColor(h.name)})},w(h.name),15,Bn))),128))])):j("",!0),P("div",Un,[P("div",Hn,[x(w(n.$t("experimentalLRLayout"))+": ",1),r(Ae,{checked:u(d),"onUpdate:checked":i[5]||(i[5]=h=>ve(d)?d.value=h:null),size:"small"},null,8,["checked"])]),u(d)?(_(),$(Y,{key:0},[P("div",Vn,[x(w(n.$t("width"))+": ",1),r(ot,{value:u(s),"onUpdate:value":i[6]||(i[6]=h=>ve(s)?s.value=h:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),r(rt,{title:n.$t("alwaysOnTooltipInfo")},{default:y(()=>[P("div",qn,[x(w(n.$t("alwaysOn"))+": ",1),r(Ae,{checked:u(p),"onUpdate:checked":i[7]||(i[7]=h=>ve(p)?p.value=h:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):j("",!0)]),r(it,{activeKey:u(c),"onUpdate:activeKey":i[8]||(i[8]=h=>ve(c)?c.value=h:null)},{default:y(()=>[r(Te,{key:"structedData",tab:n.$t("structuredData")},{default:y(()=>[P("div",null,[b.value.prompt?(_(),$(Y,{key:0},[Xn,Yn,P("code",{innerHTML:U(b.value.prompt??"")},null,8,Gn)],64)):j("",!0),b.value.negativePrompt?(_(),$(Y,{key:1},[Kn,Jn,P("code",{innerHTML:U(b.value.negativePrompt??"")},null,8,Qn)],64)):j("",!0)]),Object.keys(g.value).length?(_(),$(Y,{key:0},[Zn,Rn,P("table",null,[(_(!0),$(Y,null,ye(g.value,(h,R)=>(_(),$("tr",{key:R,class:"gen-info-frag"},[P("td",el,w(R),1),typeof h=="object"?(_(),$("td",{key:0,style:{cursor:"pointer"},onDblclick:he=>se(h)},[P("code",null,w(h),1)],40,tl)):(_(),$("td",{key:1,style:{cursor:"pointer"},onDblclick:he=>se(u(_e)(h))},w(u(_e)(h)),41,nl))]))),128))])],64)):j("",!0)]),_:1},8,["tab"]),r(Te,{key:"sourceText",tab:n.$t("sourceText")},{default:y(()=>[P("code",null,w(W.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):j("",!0)]),u(O).expanded&&!u(d)?(_(),$("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:f,title:u(S)("dragToResizePanel")},[r(u(nn))],8,ll)):j("",!0)],34)}}});const wl=nt(al,[["__scopeId","data-v-c28ac32d"]]),sl={key:0,class:"float-panel"},ol={key:0,class:"select-actions"},rl={key:1},il=tt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const a=xe(),l=()=>{t("clearAllSelected"),a.keepMultiSelect=!1},o=()=>{a.keepMultiSelect=!0};return(m,L)=>{const C=te;return m.show?(_(),$("div",sl,[u(a).keepMultiSelect?(_(),$("div",ol,[r(C,{size:"small",onClick:L[0]||(L[0]=I=>t("selectAll"))},{default:y(()=>[x(w(m.$t("select-all")),1)]),_:1}),r(C,{size:"small",onClick:L[1]||(L[1]=I=>t("reverseSelect"))},{default:y(()=>[x(w(m.$t("rerverse-select")),1)]),_:1}),r(C,{size:"small",onClick:L[2]||(L[2]=I=>t("clearAllSelected"))},{default:y(()=>[x(w(m.$t("clear-all-selected")),1)]),_:1}),r(C,{size:"small",onClick:l},{default:y(()=>[x(w(m.$t("exit")),1)]),_:1})])):(_(),$("div",rl,[r(C,{size:"small",type:"primary",onClick:o},{default:y(()=>[x(w(m.$t("keep-multi-selected")),1)]),_:1})]))])):j("",!0)}}});const bl=nt(il,[["__scopeId","data-v-b04c3508"]]);export{ml as L,bl as M,gl as R,yl as a,_l as b,hl as c,wl as f,ce as u}; diff --git a/vue/dist/assets/MultiSelectKeep-4307ff81.css b/vue/dist/assets/MultiSelectKeep-4307ff81.css deleted file mode 100644 index 84713edd..00000000 --- a/vue/dist/assets/MultiSelectKeep-4307ff81.css +++ /dev/null @@ -1 +0,0 @@ -.full-screen-menu[data-v-d6c104a4]{position:fixed;z-index:9999;background:var(--zp-primary-background);padding:8px 16px;box-shadow:0 0 4px var(--zp-secondary);border-radius:4px}.full-screen-menu .tags-container[data-v-d6c104a4]{margin:4px 0}.full-screen-menu .tags-container .tag[data-v-d6c104a4]{margin-right:4px;margin-bottom:4px;padding:2px 16px;border-radius:4px;display:inline-block;cursor:pointer;font-weight:700;transition:.5s all ease;border:2px solid var(--tag-color);color:var(--tag-color);background:var(--zp-primary-background);user-select:none}.full-screen-menu .tags-container .tag.selected[data-v-d6c104a4]{background:var(--tag-color);color:#fff}.full-screen-menu .container[data-v-d6c104a4]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-d6c104a4]{flex:1;word-break:break-all;white-space:pre-line;overflow:auto;z-index:1;padding-top:4px;position:relative}.full-screen-menu .gen-info code[data-v-d6c104a4]{font-size:.9em;display:block;padding:4px;background:var(--zp-primary-background);border-radius:4px;margin-right:20px;white-space:pre-wrap;word-break:break-word;line-height:1.78em}.full-screen-menu .gen-info code[data-v-d6c104a4] span{background:var(--zp-secondary-variant-background);color:var(--zp-primary);padding:2px 4px;border-radius:4px;margin-right:4px}.full-screen-menu .gen-info code[data-v-d6c104a4] .has-parentheses{background:rgba(255,100,100,.14)}.full-screen-menu .gen-info code[data-v-d6c104a4] span:hover{background:rgba(120,0,0,.15)}.full-screen-menu .gen-info table[data-v-d6c104a4]{font-size:1em;border-radius:4px;border-collapse:separate;margin-bottom:3em}.full-screen-menu .gen-info table tr td[data-v-d6c104a4]:first-child{white-space:nowrap}.full-screen-menu .gen-info table td[data-v-d6c104a4]{padding-right:14px;padding-left:4px;border-bottom:1px solid var(--zp-secondary);border-collapse:collapse}.full-screen-menu .gen-info .info-tags .info-tag[data-v-d6c104a4]{display:inline-block;overflow:hidden;border-radius:4px;margin-right:8px;border:2px solid var(--zp-primary)}.full-screen-menu .gen-info .info-tags .name[data-v-d6c104a4]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px;border-bottom-right-radius:4px}.full-screen-menu .gen-info .info-tags .value[data-v-d6c104a4]{padding:4px}.full-screen-menu.unset-size[data-v-d6c104a4]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-d6c104a4]{position:absolute;bottom:0;right:0;transform:rotate(90deg);cursor:se-resize;z-index:1;background:var(--zp-primary-background);border-radius:2px}.full-screen-menu .mouse-sensor>*[data-v-d6c104a4]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-d6c104a4]{display:flex;align-items:center;user-select:none;gap:4px}.full-screen-menu .action-bar .icon[data-v-d6c104a4]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-d6c104a4]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-d6c104a4]{flex-wrap:wrap}.full-screen-menu.lr[data-v-d6c104a4]{top:var(--45b9a52d)!important;right:0!important;bottom:0!important;left:100vw!important;height:unset!important;width:var(--6e440240)!important;transition:left ease .3s}.full-screen-menu.lr.always-on[data-v-d6c104a4],.full-screen-menu.lr.mouse-in[data-v-d6c104a4]{left:var(--321f36b8)!important}.lr-layout-control[data-v-d6c104a4]{display:flex;align-items:center;gap:16px;padding:4px 8px;flex-wrap:wrap;border-radius:2px;border-left:3px solid var(--zp-luminous);background-color:var(--zp-secondary-background)}.lr-layout-control .ctrl-item[data-v-d6c104a4]{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.select-actions[data-v-b04c3508]>:not(:last-child){margin-right:4px}.float-panel[data-v-b04c3508]{position:absolute;bottom:32px;right:32px;background:var(--zp-primary-background);border-radius:4px;z-index:1000;padding:8px;box-shadow:0 0 4px var(--zp-secondary)} diff --git a/vue/dist/assets/MultiSelectKeep-7d9611ab.css b/vue/dist/assets/MultiSelectKeep-7d9611ab.css new file mode 100644 index 00000000..f2e78cff --- /dev/null +++ b/vue/dist/assets/MultiSelectKeep-7d9611ab.css @@ -0,0 +1 @@ +.full-screen-menu[data-v-c28ac32d]{position:fixed;z-index:9999;background:var(--zp-primary-background);padding:8px 16px;box-shadow:0 0 4px var(--zp-secondary);border-radius:4px}.full-screen-menu .tags-container[data-v-c28ac32d]{margin:4px 0}.full-screen-menu .tags-container .tag[data-v-c28ac32d]{margin-right:4px;margin-bottom:4px;padding:2px 16px;border-radius:4px;display:inline-block;cursor:pointer;font-weight:700;transition:.5s all ease;border:2px solid var(--tag-color);color:var(--tag-color);background:var(--zp-primary-background);user-select:none}.full-screen-menu .tags-container .tag.selected[data-v-c28ac32d]{background:var(--tag-color);color:#fff}.full-screen-menu .container[data-v-c28ac32d]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-c28ac32d]{flex:1;word-break:break-all;white-space:pre-line;overflow:auto;z-index:1;padding-top:4px;position:relative}.full-screen-menu .gen-info code[data-v-c28ac32d]{font-size:.9em;display:block;padding:4px;background:var(--zp-primary-background);border-radius:4px;margin-right:20px;white-space:pre-wrap;word-break:break-word;line-height:1.78em}.full-screen-menu .gen-info code[data-v-c28ac32d] span{background:var(--zp-secondary-variant-background);color:var(--zp-primary);padding:2px 4px;border-radius:4px;margin-right:4px}.full-screen-menu .gen-info code[data-v-c28ac32d] .has-parentheses{background:rgba(255,100,100,.14)}.full-screen-menu .gen-info code[data-v-c28ac32d] span:hover{background:rgba(120,0,0,.15)}.full-screen-menu .gen-info table[data-v-c28ac32d]{font-size:1em;border-radius:4px;border-collapse:separate;margin-bottom:3em}.full-screen-menu .gen-info table tr td[data-v-c28ac32d]:first-child{white-space:nowrap}.full-screen-menu .gen-info table td[data-v-c28ac32d]{padding-right:14px;padding-left:4px;border-bottom:1px solid var(--zp-secondary);border-collapse:collapse}.full-screen-menu .gen-info .info-tags .info-tag[data-v-c28ac32d]{display:inline-block;overflow:hidden;border-radius:4px;margin-right:8px;border:2px solid var(--zp-primary)}.full-screen-menu .gen-info .info-tags .name[data-v-c28ac32d]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px;border-bottom-right-radius:4px}.full-screen-menu .gen-info .info-tags .value[data-v-c28ac32d]{padding:4px}.full-screen-menu.unset-size[data-v-c28ac32d]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-c28ac32d]{position:absolute;bottom:0;right:0;transform:rotate(90deg);cursor:se-resize;z-index:1;background:var(--zp-primary-background);border-radius:2px}.full-screen-menu .mouse-sensor>*[data-v-c28ac32d]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-c28ac32d]{display:flex;align-items:center;user-select:none;gap:4px}.full-screen-menu .action-bar .icon[data-v-c28ac32d]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-c28ac32d]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-c28ac32d]{flex-wrap:wrap}.full-screen-menu.lr[data-v-c28ac32d]{top:var(--0b6ae20a)!important;right:0!important;bottom:0!important;left:100vw!important;height:unset!important;width:var(--31990f06)!important;transition:left ease .3s}.full-screen-menu.lr.always-on[data-v-c28ac32d],.full-screen-menu.lr.mouse-in[data-v-c28ac32d]{left:var(--c56370fe)!important}.lr-layout-control[data-v-c28ac32d]{display:flex;align-items:center;gap:16px;padding:4px 8px;flex-wrap:wrap;border-radius:2px;border-left:3px solid var(--zp-luminous);background-color:var(--zp-secondary-background)}.lr-layout-control .ctrl-item[data-v-c28ac32d]{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.select-actions[data-v-b04c3508]>:not(:last-child){margin-right:4px}.float-panel[data-v-b04c3508]{position:absolute;bottom:32px;right:32px;background:var(--zp-primary-background);border-radius:4px;z-index:1000;padding:8px;box-shadow:0 0 4px var(--zp-secondary)} diff --git a/vue/dist/assets/SubstrSearch-cdc4a40f.js b/vue/dist/assets/SubstrSearch-084810e7.js similarity index 94% rename from vue/dist/assets/SubstrSearch-cdc4a40f.js rename to vue/dist/assets/SubstrSearch-084810e7.js index d1049326..bc792972 100644 --- a/vue/dist/assets/SubstrSearch-cdc4a40f.js +++ b/vue/dist/assets/SubstrSearch-084810e7.js @@ -1 +1 @@ -import{d as Se,r as k,o as xe,bY as Q,y as Ce,av as Ie,v as Re,x as $e,z as W,bZ as Ae,W as Me,N as c,O as I,c as t,Y as s,Z as e,Q as u,R as i,S as o,X as _,U as v,$ as Y,c3 as ze,aa as F,a0 as Z,E as Fe,a9 as De,T as Ue,ad as X,ae as Be,af as j,c0 as Ee,ac as Ve,aI as Te,aJ as He,c4 as Ke,c2 as Je,V as Le}from"./index-fad1088f.js";import{S as Ne}from"./index-e6abe7d7.js";import"./index-45a15a0d.js";import{c as Oe,d as qe,F as Ge}from"./FileItem-55a122b3.js";import{M as Pe,L as Qe,R as We,f as Ye}from"./MultiSelectKeep-4400a569.js";import{c as Ze,u as Xe}from"./hook-6f37aded.js";import{f as R,H as ee,_ as je,a as es}from"./searchHistory-1a31082f.js";import"./functionalCallableComp-32f74df9.js";import"./index-210fb107.js";/* empty css */import"./shortcut-5e9fcb9b.js";import"./Checkbox-7b8370e5.js";const ss="/infinite_image_browsing/fe-static/assets/regex-a447f877.svg",D=w=>(Te("data-v-4bc4969a"),w=w(),He(),w),ts={style:{"padding-right":"16px"}},ls=D(()=>u("div",null,null,-1)),as=["src"],ns={class:"search-bar"},os={class:"form-name"},is={class:"search-bar last actions"},rs={class:"hint"},us={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},ds={style:{margin:"16px 32px 16px"}},cs={style:{"padding-right":"16px"}},ps=D(()=>u("div",null,null,-1)),vs=D(()=>u("div",{style:{padding:"16px 0 512px"}},null,-1)),fs={key:2,class:"preview-switch"},_s=Se({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(w){const U=w,m=k(!1),g=k(""),h=k(U.searchScope??""),b=k(!1),B=k(0),$=Ze(l=>{const a={cursor:l,regexp:m.value?g.value:"",surstr:m.value?"":g.value,folder_paths:(h.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r)};return Ke(a)}),{queue:y,images:p,onContextMenuClickU:E,stackViewEl:se,previewIdx:S,previewing:V,onPreviewVisibleChange:te,previewImgMove:T,canPreview:H,itemSize:K,gridItems:le,showGenInfo:x,imageGenInfo:J,q:ae,multiSelectedIdxs:A,onFileItemClick:ne,scroller:L,showMenuIdx:M,onFileDragStart:oe,onFileDragEnd:ie,cellWidth:re,onScroll:N,saveAllFileAsJson:ue,saveLoadedFileAsJson:de}=Xe($),d=k();xe(async()=>{d.value=await Q(),d.value.img_count&&d.value.expired&&await O(),U.searchScope&&await C()});const O=Ce(()=>y.pushAction(async()=>(await Je(),d.value=await Q(),d.value)).res),q=l=>{g.value=l.substr,h.value=l.folder_paths_str,m.value=l.isRegex,b.value=!1,C()},C=async()=>{B.value++,R.value.add({substr:g.value,folder_paths_str:h.value,isRegex:m.value}),await $.reset({refetch:!0}),await Ie(),N(),L.value.scrollToItem(0),p.value.length||Re.info($e("fuzzy-search-noResults"))};W("returnToIIB",async()=>{const l=await y.pushAction(Ae).res;d.value.expired=l.expired}),W("searchIndexExpired",()=>d.value&&(d.value.expired=!0));const ce=()=>{m.value=!m.value},pe=Me(),{onClearAllSelected:ve,onSelectAll:fe,onReverseSelect:_e}=Oe();return(l,a)=>{const r=je,f=es,me=X,ge=Be,G=j,he=Ee,z=j,ye=Ve,ke=X,we=Ne;return c(),I(Ue,null,[t(me,{visible:b.value,"onUpdate:visible":a[0]||(a[0]=n=>b.value=n),width:"70vw","mask-closable":"",onOk:a[1]||(a[1]=n=>b.value=!1)},{default:s(()=>[t(ee,{records:e(R),onReuseRecord:q},{default:s(({record:n})=>[u("div",ts,[t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),_(f,{key:0},{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):v("",!0),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("time"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ls])]),_:1},8,["records"])]),_:1},8,["visible"]),u("div",{class:"container",ref_key:"stackViewEl",ref:se},[t(Pe,{show:!!e(A).length||e(pe).keepMultiSelect,onClearAllSelected:e(ve),onSelectAll:e(fe),onReverseSelect:e(_e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d.value?(c(),I("div",{key:0,class:"search-bar",onKeydown:a[4]||(a[4]=Y(()=>{},["stop"]))},[t(ge,{value:g.value,"onUpdate:value":a[2]||(a[2]=n=>g.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(y).isIdle,onKeydown:ze(C,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),u("div",{class:F(["regex-icon",{selected:m.value}]),onKeydown:a[3]||(a[3]=Y(()=>{},["stop"])),onClick:ce,title:"Use Regular Expression"},[u("img",{src:e(ss)},null,8,as)],34),d.value.expired||!d.value.img_count?(c(),_(G,{key:0,onClick:e(O),loading:!e(y).isIdle,type:"primary"},{default:s(()=>[i(o(d.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(c(),_(G,{key:1,type:"primary",onClick:C,loading:!e(y).isIdle||e($).loading,disabled:!g.value&&!h.value},{default:s(()=>[i(o(l.$t("search")),1)]),_:1},8,["loading","disabled"]))],32)):v("",!0),u("div",ns,[u("div",os,o(l.$t("searchScope")),1),t(he,{"auto-size":{maxRows:8},value:h.value,"onUpdate:value":a[5]||(a[5]=n=>h.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),u("div",is,[e(p).length?(c(),_(z,{key:0,onClick:e(de)},{default:s(()=>[i(o(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):v("",!0),e(p).length?(c(),_(z,{key:1,onClick:e(ue)},{default:s(()=>[i(o(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):v("",!0),t(z,{onClick:a[6]||(a[6]=n=>b.value=!0)},{default:s(()=>[i(o(l.$t("history")),1)]),_:1})]),t(we,{size:"large",spinning:!e(y).isIdle},{default:s(()=>[t(ke,{visible:e(x),"onUpdate:visible":a[8]||(a[8]=n=>Z(x)?x.value=n:null),width:"70vw","mask-closable":"",onOk:a[9]||(a[9]=n=>x.value=!1)},{cancelText:s(()=>[]),default:s(()=>[t(ye,{active:"",loading:!e(ae).isIdle},{default:s(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:a[7]||(a[7]=n=>e(Fe)(e(J)))},[u("div",rs,o(l.$t("doubleClickToCopy")),1),i(" "+o(e(J)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),B.value===0&&!e(p).length&&e(R).getRecords().length?(c(),I("div",us,[u("h2",ds,o(l.$t("restoreFromHistory")),1),t(ee,{records:e(R),onReuseRecord:q},{default:s(({record:n})=>[u("div",cs,[t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),_(f,{key:0},{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):v("",!0),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("time"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ps])]),_:1},8,["records"])])):v("",!0),e(p)?(c(),_(e(qe),{key:1,ref_key:"scroller",ref:L,class:"file-list",items:e(p),"item-size":e(K).first,"key-field":"fullpath","item-secondary-size":e(K).second,gridItems:e(le),onScroll:e(N)},{after:s(()=>[vs]),default:s(({item:n,index:P})=>[t(Ge,{idx:P,file:n,"show-menu-idx":e(M),"onUpdate:showMenuIdx":a[10]||(a[10]=be=>Z(M)?M.value=be:null),onFileItemClick:e(ne),"full-screen-preview-image-url":e(p)[e(S)]?e(De)(e(p)[e(S)]):"","cell-width":e(re),selected:e(A).includes(P),onContextMenuClick:e(E),onDragstart:e(oe),onDragend:e(ie),"is-selected-mutil-files":e(A).length>1,onPreviewVisibleChange:e(te)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):v("",!0),e(V)?(c(),I("div",fs,[t(e(Qe),{onClick:a[11]||(a[11]=n=>e(T)("prev")),class:F({disable:!e(H)("prev")})},null,8,["class"]),t(e(We),{onClick:a[12]||(a[12]=n=>e(T)("next")),class:F({disable:!e(H)("next")})},null,8,["class"])])):v("",!0)]),_:1},8,["spinning"]),e(V)&&e(p)&&e(p)[e(S)]?(c(),_(Ye,{key:1,file:e(p)[e(S)],idx:e(S),onContextMenuClick:e(E)},null,8,["file","idx","onContextMenuClick"])):v("",!0)],512)],64)}}});const $s=Le(_s,[["__scopeId","data-v-4bc4969a"]]);export{$s as default}; +import{d as Se,r as k,o as xe,bY as Q,y as Ce,av as Ie,v as Re,x as $e,z as W,bZ as Ae,W as Me,N as c,O as I,c as t,Y as s,Z as e,Q as u,R as i,S as o,X as _,U as v,$ as Y,c3 as ze,aa as F,a0 as Z,E as Fe,a9 as De,T as Ue,ad as X,ae as Be,af as j,c0 as Ee,ac as Ve,aI as Te,aJ as He,c4 as Ke,c2 as Je,V as Le}from"./index-28dbaa5b.js";import{S as Ne}from"./index-4833c8e4.js";import"./index-e084b841.js";import{c as Oe,d as qe,F as Ge}from"./FileItem-a9860a66.js";import{M as Pe,L as Qe,R as We,f as Ye}from"./MultiSelectKeep-40ee7c75.js";import{c as Ze,u as Xe}from"./hook-937ac2fb.js";import{f as R,H as ee,_ as je,a as es}from"./searchHistory-34345204.js";import"./functionalCallableComp-168f8428.js";import"./index-6980ed51.js";/* empty css */import"./shortcut-aef21d22.js";import"./Checkbox-e23ad1bf.js";const ss="/infinite_image_browsing/fe-static/assets/regex-a447f877.svg",D=w=>(Te("data-v-4bc4969a"),w=w(),He(),w),ts={style:{"padding-right":"16px"}},ls=D(()=>u("div",null,null,-1)),as=["src"],ns={class:"search-bar"},os={class:"form-name"},is={class:"search-bar last actions"},rs={class:"hint"},us={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},ds={style:{margin:"16px 32px 16px"}},cs={style:{"padding-right":"16px"}},ps=D(()=>u("div",null,null,-1)),vs=D(()=>u("div",{style:{padding:"16px 0 512px"}},null,-1)),fs={key:2,class:"preview-switch"},_s=Se({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(w){const U=w,m=k(!1),g=k(""),h=k(U.searchScope??""),b=k(!1),B=k(0),$=Ze(l=>{const a={cursor:l,regexp:m.value?g.value:"",surstr:m.value?"":g.value,folder_paths:(h.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r)};return Ke(a)}),{queue:y,images:p,onContextMenuClickU:E,stackViewEl:se,previewIdx:S,previewing:V,onPreviewVisibleChange:te,previewImgMove:T,canPreview:H,itemSize:K,gridItems:le,showGenInfo:x,imageGenInfo:J,q:ae,multiSelectedIdxs:A,onFileItemClick:ne,scroller:L,showMenuIdx:M,onFileDragStart:oe,onFileDragEnd:ie,cellWidth:re,onScroll:N,saveAllFileAsJson:ue,saveLoadedFileAsJson:de}=Xe($),d=k();xe(async()=>{d.value=await Q(),d.value.img_count&&d.value.expired&&await O(),U.searchScope&&await C()});const O=Ce(()=>y.pushAction(async()=>(await Je(),d.value=await Q(),d.value)).res),q=l=>{g.value=l.substr,h.value=l.folder_paths_str,m.value=l.isRegex,b.value=!1,C()},C=async()=>{B.value++,R.value.add({substr:g.value,folder_paths_str:h.value,isRegex:m.value}),await $.reset({refetch:!0}),await Ie(),N(),L.value.scrollToItem(0),p.value.length||Re.info($e("fuzzy-search-noResults"))};W("returnToIIB",async()=>{const l=await y.pushAction(Ae).res;d.value.expired=l.expired}),W("searchIndexExpired",()=>d.value&&(d.value.expired=!0));const ce=()=>{m.value=!m.value},pe=Me(),{onClearAllSelected:ve,onSelectAll:fe,onReverseSelect:_e}=Oe();return(l,a)=>{const r=je,f=es,me=X,ge=Be,G=j,he=Ee,z=j,ye=Ve,ke=X,we=Ne;return c(),I(Ue,null,[t(me,{visible:b.value,"onUpdate:visible":a[0]||(a[0]=n=>b.value=n),width:"70vw","mask-closable":"",onOk:a[1]||(a[1]=n=>b.value=!1)},{default:s(()=>[t(ee,{records:e(R),onReuseRecord:q},{default:s(({record:n})=>[u("div",ts,[t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),_(f,{key:0},{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):v("",!0),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("time"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ls])]),_:1},8,["records"])]),_:1},8,["visible"]),u("div",{class:"container",ref_key:"stackViewEl",ref:se},[t(Pe,{show:!!e(A).length||e(pe).keepMultiSelect,onClearAllSelected:e(ve),onSelectAll:e(fe),onReverseSelect:e(_e)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),d.value?(c(),I("div",{key:0,class:"search-bar",onKeydown:a[4]||(a[4]=Y(()=>{},["stop"]))},[t(ge,{value:g.value,"onUpdate:value":a[2]||(a[2]=n=>g.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(y).isIdle,onKeydown:ze(C,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),u("div",{class:F(["regex-icon",{selected:m.value}]),onKeydown:a[3]||(a[3]=Y(()=>{},["stop"])),onClick:ce,title:"Use Regular Expression"},[u("img",{src:e(ss)},null,8,as)],34),d.value.expired||!d.value.img_count?(c(),_(G,{key:0,onClick:e(O),loading:!e(y).isIdle,type:"primary"},{default:s(()=>[i(o(d.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(c(),_(G,{key:1,type:"primary",onClick:C,loading:!e(y).isIdle||e($).loading,disabled:!g.value&&!h.value},{default:s(()=>[i(o(l.$t("search")),1)]),_:1},8,["loading","disabled"]))],32)):v("",!0),u("div",ns,[u("div",os,o(l.$t("searchScope")),1),t(he,{"auto-size":{maxRows:8},value:h.value,"onUpdate:value":a[5]||(a[5]=n=>h.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),u("div",is,[e(p).length?(c(),_(z,{key:0,onClick:e(de)},{default:s(()=>[i(o(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):v("",!0),e(p).length?(c(),_(z,{key:1,onClick:e(ue)},{default:s(()=>[i(o(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):v("",!0),t(z,{onClick:a[6]||(a[6]=n=>b.value=!0)},{default:s(()=>[i(o(l.$t("history")),1)]),_:1})]),t(we,{size:"large",spinning:!e(y).isIdle},{default:s(()=>[t(ke,{visible:e(x),"onUpdate:visible":a[8]||(a[8]=n=>Z(x)?x.value=n:null),width:"70vw","mask-closable":"",onOk:a[9]||(a[9]=n=>x.value=!1)},{cancelText:s(()=>[]),default:s(()=>[t(ye,{active:"",loading:!e(ae).isIdle},{default:s(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:a[7]||(a[7]=n=>e(Fe)(e(J)))},[u("div",rs,o(l.$t("doubleClickToCopy")),1),i(" "+o(e(J)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),B.value===0&&!e(p).length&&e(R).getRecords().length?(c(),I("div",us,[u("h2",ds,o(l.$t("restoreFromHistory")),1),t(ee,{records:e(R),onReuseRecord:q},{default:s(({record:n})=>[u("div",cs,[t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(c(),_(f,{key:0},{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):v("",!0),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),t(f,null,{default:s(()=>[t(r,{span:4},{default:s(()=>[i(o(l.$t("time"))+":",1)]),_:1}),t(r,{span:20},{default:s(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),ps])]),_:1},8,["records"])])):v("",!0),e(p)?(c(),_(e(qe),{key:1,ref_key:"scroller",ref:L,class:"file-list",items:e(p),"item-size":e(K).first,"key-field":"fullpath","item-secondary-size":e(K).second,gridItems:e(le),onScroll:e(N)},{after:s(()=>[vs]),default:s(({item:n,index:P})=>[t(Ge,{idx:P,file:n,"show-menu-idx":e(M),"onUpdate:showMenuIdx":a[10]||(a[10]=be=>Z(M)?M.value=be:null),onFileItemClick:e(ne),"full-screen-preview-image-url":e(p)[e(S)]?e(De)(e(p)[e(S)]):"","cell-width":e(re),selected:e(A).includes(P),onContextMenuClick:e(E),onDragstart:e(oe),onDragend:e(ie),"is-selected-mutil-files":e(A).length>1,onPreviewVisibleChange:e(te)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):v("",!0),e(V)?(c(),I("div",fs,[t(e(Qe),{onClick:a[11]||(a[11]=n=>e(T)("prev")),class:F({disable:!e(H)("prev")})},null,8,["class"]),t(e(We),{onClick:a[12]||(a[12]=n=>e(T)("next")),class:F({disable:!e(H)("next")})},null,8,["class"])])):v("",!0)]),_:1},8,["spinning"]),e(V)&&e(p)&&e(p)[e(S)]?(c(),_(Ye,{key:1,file:e(p)[e(S)],idx:e(S),onContextMenuClick:e(E)},null,8,["file","idx","onContextMenuClick"])):v("",!0)],512)],64)}}});const $s=Le(_s,[["__scopeId","data-v-4bc4969a"]]);export{$s as default}; diff --git a/vue/dist/assets/TagSearch-6b14d1be.js b/vue/dist/assets/TagSearch-dd8fcb61.js similarity index 98% rename from vue/dist/assets/TagSearch-6b14d1be.js rename to vue/dist/assets/TagSearch-dd8fcb61.js index 71409124..d6bd043f 100644 --- a/vue/dist/assets/TagSearch-6b14d1be.js +++ b/vue/dist/assets/TagSearch-dd8fcb61.js @@ -1 +1 @@ -import{P as V,au as Ke,d as ne,bw as Ae,a$ as De,r as U,bO as Ue,k as we,u as ke,B as ee,aj as oe,h as k,c as r,a as ae,bP as Fe,b as je,f as Le,bQ as Ve,al as fe,bR as ze,aS as Ge,i as He,b7 as qe,bS as Xe,ap as Qe,aq as We,ao as Ye,A as Ze,aV as Je,aT as ea,bT as aa,aU as ta,bU as na,N as b,O as T,Q as I,S as y,X as L,Z as K,bV as la,U as D,R as $,$ as de,bW as oa,aa as xe,V as Se,W as sa,bX as ia,ah as ra,l as ca,t as da,I as ua,o as va,bY as ge,n as pa,av as fa,z as me,y as ga,bZ as ma,Y as h,T as J,a6 as re,a2 as _e,aG as _a,b_ as ha,v as he,x as ce,ad as ye,b$ as ya,af as be,c0 as ba,ae as Ca,c1 as Ia,aI as $a,aJ as Aa,c2 as wa}from"./index-fad1088f.js";import{S as ka}from"./index-e6abe7d7.js";import"./index-45a15a0d.js";/* empty css */import{t as Ce,_ as xa,a as Sa,H as Pa}from"./searchHistory-1a31082f.js";var Oa=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:V.object,expandIconPosition:V.oneOf(Ke("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},Pe=function(){return{openAnimation:V.object,prefixCls:String,header:V.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:V.any,panelKey:V.oneOfType([V.string,V.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function Ie(o){var a=o;if(!Array.isArray(a)){var t=je(a);a=t==="number"||t==="string"?[a]:[]}return a.map(function(l){return String(l)})}const te=ne({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ae(Oa(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:De("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(a,t){var l=t.attrs,d=t.slots,s=t.emit,f=U(Ie(Ue([a.activeKey,a.defaultActiveKey])));we(function(){return a.activeKey},function(){f.value=Ie(a.activeKey)},{deep:!0});var c=ke("collapse",a),g=c.prefixCls,E=c.direction,N=ee(function(){var p=a.expandIconPosition;return p!==void 0?p:E.value==="rtl"?"right":"left"}),B=function(v){var m=a.expandIcon,w=m===void 0?d.expandIcon:m,C=w?w(v):r(ze,{rotate:v.isActive?90:void 0},null);return r("div",null,[Ge(Array.isArray(w)?C[0]:C)?fe(C,{class:"".concat(g.value,"-arrow")},!1):C])},F=function(v){a.activeKey===void 0&&(f.value=v);var m=a.accordion?v[0]:v;s("update:activeKey",m),s("change",m)},P=function(v){var m=f.value;if(a.accordion)m=m[0]===v?[]:[v];else{m=He(m);var w=m.indexOf(v),C=w>-1;C?m.splice(w,1):m.push(v)}F(m)},z=function(v,m){var w,C,j;if(!Ve(v)){var R=f.value,G=a.accordion,W=a.destroyInactivePanel,H=a.collapsible,Y=a.openAnimation,O=String((w=v.key)!==null&&w!==void 0?w:m),M=v.props||{},x=M.header,q=x===void 0?(C=v.children)===null||C===void 0||(j=C.header)===null||j===void 0?void 0:j.call(C):x,e=M.headerClass,n=M.collapsible,u=M.disabled,_=!1;G?_=R[0]===O:_=R.indexOf(O)>-1;var S=n??H;(u||u==="")&&(S="disabled");var Z={key:O,panelKey:O,header:q,headerClass:e,isActive:_,prefixCls:g.value,destroyInactivePanel:W,openAnimation:Y,accordion:G,onItemClick:S==="disabled"?null:P,expandIcon:B,collapsible:S};return fe(v,Z)}},Q=function(){var v;return Le((v=d.default)===null||v===void 0?void 0:v.call(d)).map(z)};return function(){var p,v=a.accordion,m=a.bordered,w=a.ghost,C=oe((p={},k(p,g.value,!0),k(p,"".concat(g.value,"-borderless"),!m),k(p,"".concat(g.value,"-icon-position-").concat(N.value),!0),k(p,"".concat(g.value,"-rtl"),E.value==="rtl"),k(p,"".concat(g.value,"-ghost"),!!w),k(p,l.class,!!l.class),p));return r("div",ae(ae({class:C},Fe(l)),{},{style:l.style,role:v?"tablist":null}),[Q()])}}}),Ta=ne({compatConfig:{MODE:3},name:"PanelContent",props:Pe(),setup:function(a,t){var l=t.slots,d=U(!1);return qe(function(){(a.isActive||a.forceRender)&&(d.value=!0)}),function(){var s,f;if(!d.value)return null;var c=a.prefixCls,g=a.isActive,E=a.role;return r("div",{ref:U,class:oe("".concat(c,"-content"),(s={},k(s,"".concat(c,"-content-active"),g),k(s,"".concat(c,"-content-inactive"),!g),s)),role:E},[r("div",{class:"".concat(c,"-content-box")},[(f=l.default)===null||f===void 0?void 0:f.call(l)])])}}}),se=ne({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ae(Pe(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(a,t){var l=t.slots,d=t.emit,s=t.attrs;Xe(a.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var f=ke("collapse",a),c=f.prefixCls,g=function(){d("itemClick",a.panelKey)},E=function(B){(B.key==="Enter"||B.keyCode===13||B.which===13)&&g()};return function(){var N,B,F,P,z=a.header,Q=z===void 0?(N=l.header)===null||N===void 0?void 0:N.call(l):z,p=a.headerClass,v=a.isActive,m=a.showArrow,w=a.destroyInactivePanel,C=a.accordion,j=a.forceRender,R=a.openAnimation,G=a.expandIcon,W=G===void 0?l.expandIcon:G,H=a.extra,Y=H===void 0?(B=l.extra)===null||B===void 0?void 0:B.call(l):H,O=a.collapsible,M=O==="disabled",x=c.value,q=oe("".concat(x,"-header"),(F={},k(F,p,p),k(F,"".concat(x,"-header-collapsible-only"),O==="header"),F)),e=oe((P={},k(P,"".concat(x,"-item"),!0),k(P,"".concat(x,"-item-active"),v),k(P,"".concat(x,"-item-disabled"),M),k(P,"".concat(x,"-no-arrow"),!m),k(P,"".concat(s.class),!!s.class),P)),n=r("i",{class:"arrow"},null);m&&typeof W=="function"&&(n=W(a));var u=Qe(r(Ta,{prefixCls:x,isActive:v,forceRender:j,role:C?"tabpanel":null},{default:l.default}),[[We,v]]),_=ae({appear:!1,css:!1},R);return r("div",ae(ae({},s),{},{class:e}),[r("div",{class:q,onClick:function(){return O!=="header"&&g()},role:C?"tab":"button",tabindex:M?-1:0,"aria-expanded":v,onKeypress:E},[m&&n,O==="header"?r("span",{onClick:g,class:"".concat(x,"-header-text")},[Q]):Q,Y&&r("div",{class:"".concat(x,"-extra")},[Y])]),r(Ye,_,{default:function(){return[!w||v?u:null]}})])}}});te.Panel=se;te.install=function(o){return o.component(te.name,te),o.component(se.name,se),o};var Na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const Ba=Na;function $e(o){for(var a=1;a(l?`[${t.type}] `:"")+(t.display_name?`${t.display_name} : ${t.name}`:t.name);return(t,l)=>(b(),T("div",Wa,[I("div",Ya,[I("div",{onClick:l[0]||(l[0]=d=>t.$emit("toggleAnd"))},y(t.$t("exactMatch")),1),I("div",{onClick:l[1]||(l[1]=d=>t.$emit("toggleOr"))},y(t.$t("anyMatch")),1),I("div",{onClick:l[2]||(l[2]=d=>t.$emit("toggleNot"))},y(t.$t("exclude")),1)]),I("li",{class:xe(["tag",{selected:t.selected}]),title:a(t.tag),onClick:l[4]||(l[4]=d=>t.$emit("click"))},[t.selected?(b(),L(K(la),{key:0})):D("",!0),$(" "+y(a(t.tag))+" ",1),t.name==="custom"&&t.idx!==0?(b(),T("span",{key:1,class:"remove",onClickCapture:l[3]||(l[3]=de(d=>t.$emit("remove"),["stop"]))},[r(K(oa))],32)):D("",!0)],10,Za)]))}});const et=Se(Ja,[["__scopeId","data-v-f043cb22"]]),Oe=o=>($a("data-v-90757be9"),o=o(),Aa(),o),at={class:"container"},tt={style:{"padding-right":"16px"}},nt=Oe(()=>I("div",null,null,-1)),lt={class:"search-bar"},ot={class:"form-name"},st={class:"search-bar"},it={class:"form-name"},rt=Oe(()=>I("div",{style:{"padding-left":"4px"}},null,-1)),ct={class:"search-bar"},dt={class:"form-name"},ut={class:"search-bar"},vt={class:"form-name"},pt={key:0,class:"generate-idx-hint"},ft={class:"list-container"},gt={key:0,class:"tag-list"},mt=["onClick"],_t={key:1},ht={key:2,class:"spin-container"},yt=ne({__name:"TagSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(o){const a=o,t=sa(),l=ia(),d=ee(()=>!l.isIdle),s=U(),f=U(!1),c=U({and_tags:[],or_tags:[],not_tags:[],folder_paths_str:a.searchScope}),g=ee(()=>s.value?s.value.tags.slice().sort((e,n)=>n.count-e.count):[]),E=["custom","Source Identifier","Model","Media Type","lora","lyco","pos","size","Sampler","Postprocess upscaler","Postprocess upscale by"].reduce((e,n,u)=>(e[n]=u,e),{}),N=ee(()=>Object.entries(Qa(g.value,e=>e.type)).sort((e,n)=>{const u=E[e[0]]!==void 0?E[e[0]]:Number.MAX_SAFE_INTEGER,_=E[n[0]]!==void 0?E[n[0]]:Number.MAX_SAFE_INTEGER;return u-_})),B=ra(new Map),F=e=>B.get(e)??512,P=U({}),z=U({});we(P,ca(e=>{z.value=da(e)},300),{deep:!0});const Q=ua(),p=U(N.value.map(e=>e[0]));va(async()=>{console.log(new Date().toLocaleString()),s.value=await ge(),await pa(20),console.log(new Date().toLocaleString()),p.value=N.value.map(e=>e[0]),fa(()=>{console.log(new Date().toLocaleString())}),s.value.img_count&&s.value.expired&&await v(),a.searchScope&&m()}),me("searchIndexExpired",()=>s.value&&(s.value.expired=!0));const v=ga(()=>l.pushAction(async()=>(await wa(),s.value=await ge(),p.value=N.value.map(e=>e[0]),s.value)).res),m=()=>{Ce.value.add(c.value),t.openTagSearchMatchedImageGridInRight(a.tabIdx,Q,c.value)},w=e=>{c.value=e,f.value=!1,m()};me("returnToIIB",async()=>{const e=await l.pushAction(ma).res;s.value.expired=e.expired});const C=(e,n=!1)=>(n?`[${e.type}] `:"")+(e.display_name?`${e.display_name} : ${e.name}`:e.name),j=U(!1),R=U(""),G=async()=>{var n,u,_;if(!R.value){j.value=!1;return}const e=await l.pushAction(()=>ha({tag_name:R.value})).res;e.type!=="custom"&&he.error(ce("existInOtherType")),(n=s.value)!=null&&n.tags.find(S=>S.id===e.id)?he.error(ce("alreadyExists")):((u=s.value)==null||u.tags.push(e),(_=t.conf)==null||_.all_custom_tags.push(e)),R.value="",j.value=!1},W=e=>{ye.confirm({title:ce("confirmDelete"),async onOk(){var u,_,S,Z;await ya({tag_id:e});const n=((u=s.value)==null?void 0:u.tags.findIndex(X=>X.id===e))??-1;(_=s.value)==null||_.tags.splice(n,1),(Z=t.conf)==null||Z.all_custom_tags.splice((S=t.conf)==null?void 0:S.all_custom_tags.findIndex(X=>X.id===e),1)}})},H=ee(()=>new Set([c.value.and_tags,c.value.or_tags,c.value.not_tags].flat())),Y=e=>{H.value.has(e.id)?(c.value.and_tags=c.value.and_tags.filter(n=>n!==e.id),c.value.or_tags=c.value.or_tags.filter(n=>n!==e.id),c.value.not_tags=c.value.not_tags.filter(n=>n!==e.id)):c.value.and_tags.push(e.id)},O={value:e=>e.id,text:C,optionText:e=>C(e,!0)},M=(e,n)=>{const u=n.indexOf(e);u===-1?n.push(e):n.splice(u,1)},x=(e,n)=>{const u=F(n);let _=z.value[n];return _&&(_=_.trim(),e=e.filter(S=>C(S).toLowerCase().includes(_.toLowerCase()))),e.slice(0,u)},q=e=>e.map(n=>{var u;return(u=g.value.find(_=>_.id===n))==null?void 0:u.name}).join(", ");return(e,n)=>{const u=xa,_=Sa,S=Pa,Z=ye,X=be,Te=ba,ve=Ca,pe=be,Ne=Ia,Be=se,Ee=te,Re=ka;return b(),T("div",at,[r(Z,{visible:f.value,"onUpdate:visible":n[0]||(n[0]=i=>f.value=i),width:"70vw","mask-closable":"",onOk:n[1]||(n[1]=i=>f.value=!1)},{default:h(()=>[r(S,{records:K(Ce),onReuseRecord:w},{default:h(({record:i})=>[I("div",tt,[i.and_tags.length?(b(),L(_,{key:0},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("exactMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.and_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.or_tags.length?(b(),L(_,{key:1},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("anyMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.or_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.not_tags.length?(b(),L(_,{key:2},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("exclude"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.not_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.folder_paths_str?(b(),L(_,{key:3},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("searchScope"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(i.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):D("",!0),r(_,null,{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("time"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(i.time),1)]),_:2},1024)]),_:2},1024),nt])]),_:1},8,["records"])]),_:1},8,["visible"]),D("",!0),s.value?(b(),T(J,{key:1},[I("div",null,[I("div",lt,[I("div",ot,y(e.$t("exactMatch")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.and_tags,"onUpdate:value":n[2]||(n[2]=i=>c.value.and_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),s.value.expired||!s.value.img_count?(b(),L(X,{key:0,onClick:K(v),loading:!K(l).isIdle,type:"primary"},{default:h(()=>[$(y(s.value.img_count===0?e.$t("generateIndexHint"):e.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(b(),L(X,{key:1,type:"primary",onClick:m,loading:!K(l).isIdle},{default:h(()=>[$(y(e.$t("search")),1)]),_:1},8,["loading"]))]),I("div",st,[I("div",it,y(e.$t("anyMatch")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.or_tags,"onUpdate:value":n[3]||(n[3]=i=>c.value.or_tags=i),disabled:!g.value.length,placeholder:e.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"]),rt,r(X,{onClick:n[4]||(n[4]=i=>f.value=!0)},{default:h(()=>[$(y(e.$t("history")),1)]),_:1})]),I("div",ct,[I("div",dt,y(e.$t("exclude")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.not_tags,"onUpdate:value":n[5]||(n[5]=i=>c.value.not_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])]),I("div",ut,[I("div",vt,y(e.$t("searchScope")),1),r(Te,{"auto-size":{maxRows:8},value:c.value.folder_paths_str,"onUpdate:value":n[6]||(n[6]=i=>c.value.folder_paths_str=i),placeholder:e.$t("specifiedSearchFolder")},null,8,["value","placeholder"])])]),g.value.filter(i=>i.type!=="custom").length?D("",!0):(b(),T("p",pt,y(e.$t("needGenerateIdx")),1)),I("div",ft,[(b(!0),T(J,null,_e(N.value,([i,ie])=>(b(),T(J,{key:i},[i!=="Media Type"||ie.length>1?(b(),T("ul",gt,[I("h3",{class:"cat-name",onClick:A=>p.value.includes(i)?p.value.splice(p.value.indexOf(i),1):p.value.push(i)},[r(K(Ra),{class:xe(["arrow",{down:p.value.includes(i)}])},null,8,["class"]),$(" "+y(e.$t(i))+" ",1),I("div",{onClick:n[7]||(n[7]=de(()=>{},["stop","prevent"])),class:"filter-input"},[r(ve,{value:P.value[i],"onUpdate:value":A=>P.value[i]=A,size:"small",allowClear:"",placeholder:e.$t("filterByKeyword")},null,8,["value","onUpdate:value","placeholder"])])],8,mt),r(Ee,{ghost:"",activeKey:p.value,"onUpdate:activeKey":n[10]||(n[10]=A=>p.value=A)},{expandIcon:h(()=>[]),default:h(()=>[(b(),L(Be,{key:i},{default:h(()=>[(b(!0),T(J,null,_e(x(ie,i),(A,Me)=>(b(),L(et,{onClick:le=>Y(A),onRemove:le=>W(A.id),onToggleAnd:le=>M(A.id,c.value.and_tags),onToggleOr:le=>M(A.id,c.value.or_tags),onToggleNot:le=>M(A.id,c.value.not_tags),key:A.id,idx:Me,name:i,tag:A,selected:H.value.has(A.id)},null,8,["onClick","onRemove","onToggleAnd","onToggleOr","onToggleNot","idx","name","tag","selected"]))),128)),i==="custom"?(b(),T("li",{key:0,class:"tag",onClick:n[9]||(n[9]=A=>j.value=!0)},[j.value?(b(),L(Ne,{key:0,compact:""},{default:h(()=>[r(ve,{value:R.value,"onUpdate:value":n[8]||(n[8]=A=>R.value=A),style:{width:"128px"},loading:d.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),r(pe,{size:"small",type:"primary",onClickCapture:de(G,["stop"]),loading:d.value},{default:h(()=>[$(y(R.value?e.$t("submit"):e.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(b(),T(J,{key:1},[r(K(_a)),$(" "+y(e.$t("add")),1)],64))])):D("",!0),F(i)B.set(i,F(i)+512)},{default:h(()=>[$(y(e.$t("loadmore")),1)]),_:2},1032,["onClick"])])):D("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])])):D("",!0)],64))),128))])],64)):(b(),T("div",ht,[r(Re,{size:"large"})]))])}}});const wt=Se(yt,[["__scopeId","data-v-90757be9"]]);export{wt as default}; +import{P as V,au as Ke,d as ne,bw as Ae,a$ as De,r as U,bO as Ue,k as we,u as ke,B as ee,aj as oe,h as k,c as r,a as ae,bP as Fe,b as je,f as Le,bQ as Ve,al as fe,bR as ze,aS as Ge,i as He,b7 as qe,bS as Xe,ap as Qe,aq as We,ao as Ye,A as Ze,aV as Je,aT as ea,bT as aa,aU as ta,bU as na,N as b,O as T,Q as I,S as y,X as L,Z as K,bV as la,U as D,R as $,$ as de,bW as oa,aa as xe,V as Se,W as sa,bX as ia,ah as ra,l as ca,t as da,I as ua,o as va,bY as ge,n as pa,av as fa,z as me,y as ga,bZ as ma,Y as h,T as J,a6 as re,a2 as _e,aG as _a,b_ as ha,v as he,x as ce,ad as ye,b$ as ya,af as be,c0 as ba,ae as Ca,c1 as Ia,aI as $a,aJ as Aa,c2 as wa}from"./index-28dbaa5b.js";import{S as ka}from"./index-4833c8e4.js";import"./index-e084b841.js";/* empty css */import{t as Ce,_ as xa,a as Sa,H as Pa}from"./searchHistory-34345204.js";var Oa=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:V.object,expandIconPosition:V.oneOf(Ke("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},Pe=function(){return{openAnimation:V.object,prefixCls:String,header:V.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:V.any,panelKey:V.oneOfType([V.string,V.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function Ie(o){var a=o;if(!Array.isArray(a)){var t=je(a);a=t==="number"||t==="string"?[a]:[]}return a.map(function(l){return String(l)})}const te=ne({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ae(Oa(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:De("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(a,t){var l=t.attrs,d=t.slots,s=t.emit,f=U(Ie(Ue([a.activeKey,a.defaultActiveKey])));we(function(){return a.activeKey},function(){f.value=Ie(a.activeKey)},{deep:!0});var c=ke("collapse",a),g=c.prefixCls,E=c.direction,N=ee(function(){var p=a.expandIconPosition;return p!==void 0?p:E.value==="rtl"?"right":"left"}),B=function(v){var m=a.expandIcon,w=m===void 0?d.expandIcon:m,C=w?w(v):r(ze,{rotate:v.isActive?90:void 0},null);return r("div",null,[Ge(Array.isArray(w)?C[0]:C)?fe(C,{class:"".concat(g.value,"-arrow")},!1):C])},F=function(v){a.activeKey===void 0&&(f.value=v);var m=a.accordion?v[0]:v;s("update:activeKey",m),s("change",m)},P=function(v){var m=f.value;if(a.accordion)m=m[0]===v?[]:[v];else{m=He(m);var w=m.indexOf(v),C=w>-1;C?m.splice(w,1):m.push(v)}F(m)},z=function(v,m){var w,C,j;if(!Ve(v)){var R=f.value,G=a.accordion,W=a.destroyInactivePanel,H=a.collapsible,Y=a.openAnimation,O=String((w=v.key)!==null&&w!==void 0?w:m),M=v.props||{},x=M.header,q=x===void 0?(C=v.children)===null||C===void 0||(j=C.header)===null||j===void 0?void 0:j.call(C):x,e=M.headerClass,n=M.collapsible,u=M.disabled,_=!1;G?_=R[0]===O:_=R.indexOf(O)>-1;var S=n??H;(u||u==="")&&(S="disabled");var Z={key:O,panelKey:O,header:q,headerClass:e,isActive:_,prefixCls:g.value,destroyInactivePanel:W,openAnimation:Y,accordion:G,onItemClick:S==="disabled"?null:P,expandIcon:B,collapsible:S};return fe(v,Z)}},Q=function(){var v;return Le((v=d.default)===null||v===void 0?void 0:v.call(d)).map(z)};return function(){var p,v=a.accordion,m=a.bordered,w=a.ghost,C=oe((p={},k(p,g.value,!0),k(p,"".concat(g.value,"-borderless"),!m),k(p,"".concat(g.value,"-icon-position-").concat(N.value),!0),k(p,"".concat(g.value,"-rtl"),E.value==="rtl"),k(p,"".concat(g.value,"-ghost"),!!w),k(p,l.class,!!l.class),p));return r("div",ae(ae({class:C},Fe(l)),{},{style:l.style,role:v?"tablist":null}),[Q()])}}}),Ta=ne({compatConfig:{MODE:3},name:"PanelContent",props:Pe(),setup:function(a,t){var l=t.slots,d=U(!1);return qe(function(){(a.isActive||a.forceRender)&&(d.value=!0)}),function(){var s,f;if(!d.value)return null;var c=a.prefixCls,g=a.isActive,E=a.role;return r("div",{ref:U,class:oe("".concat(c,"-content"),(s={},k(s,"".concat(c,"-content-active"),g),k(s,"".concat(c,"-content-inactive"),!g),s)),role:E},[r("div",{class:"".concat(c,"-content-box")},[(f=l.default)===null||f===void 0?void 0:f.call(l)])])}}}),se=ne({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ae(Pe(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(a,t){var l=t.slots,d=t.emit,s=t.attrs;Xe(a.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var f=ke("collapse",a),c=f.prefixCls,g=function(){d("itemClick",a.panelKey)},E=function(B){(B.key==="Enter"||B.keyCode===13||B.which===13)&&g()};return function(){var N,B,F,P,z=a.header,Q=z===void 0?(N=l.header)===null||N===void 0?void 0:N.call(l):z,p=a.headerClass,v=a.isActive,m=a.showArrow,w=a.destroyInactivePanel,C=a.accordion,j=a.forceRender,R=a.openAnimation,G=a.expandIcon,W=G===void 0?l.expandIcon:G,H=a.extra,Y=H===void 0?(B=l.extra)===null||B===void 0?void 0:B.call(l):H,O=a.collapsible,M=O==="disabled",x=c.value,q=oe("".concat(x,"-header"),(F={},k(F,p,p),k(F,"".concat(x,"-header-collapsible-only"),O==="header"),F)),e=oe((P={},k(P,"".concat(x,"-item"),!0),k(P,"".concat(x,"-item-active"),v),k(P,"".concat(x,"-item-disabled"),M),k(P,"".concat(x,"-no-arrow"),!m),k(P,"".concat(s.class),!!s.class),P)),n=r("i",{class:"arrow"},null);m&&typeof W=="function"&&(n=W(a));var u=Qe(r(Ta,{prefixCls:x,isActive:v,forceRender:j,role:C?"tabpanel":null},{default:l.default}),[[We,v]]),_=ae({appear:!1,css:!1},R);return r("div",ae(ae({},s),{},{class:e}),[r("div",{class:q,onClick:function(){return O!=="header"&&g()},role:C?"tab":"button",tabindex:M?-1:0,"aria-expanded":v,onKeypress:E},[m&&n,O==="header"?r("span",{onClick:g,class:"".concat(x,"-header-text")},[Q]):Q,Y&&r("div",{class:"".concat(x,"-extra")},[Y])]),r(Ye,_,{default:function(){return[!w||v?u:null]}})])}}});te.Panel=se;te.install=function(o){return o.component(te.name,te),o.component(se.name,se),o};var Na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const Ba=Na;function $e(o){for(var a=1;a(l?`[${t.type}] `:"")+(t.display_name?`${t.display_name} : ${t.name}`:t.name);return(t,l)=>(b(),T("div",Wa,[I("div",Ya,[I("div",{onClick:l[0]||(l[0]=d=>t.$emit("toggleAnd"))},y(t.$t("exactMatch")),1),I("div",{onClick:l[1]||(l[1]=d=>t.$emit("toggleOr"))},y(t.$t("anyMatch")),1),I("div",{onClick:l[2]||(l[2]=d=>t.$emit("toggleNot"))},y(t.$t("exclude")),1)]),I("li",{class:xe(["tag",{selected:t.selected}]),title:a(t.tag),onClick:l[4]||(l[4]=d=>t.$emit("click"))},[t.selected?(b(),L(K(la),{key:0})):D("",!0),$(" "+y(a(t.tag))+" ",1),t.name==="custom"&&t.idx!==0?(b(),T("span",{key:1,class:"remove",onClickCapture:l[3]||(l[3]=de(d=>t.$emit("remove"),["stop"]))},[r(K(oa))],32)):D("",!0)],10,Za)]))}});const et=Se(Ja,[["__scopeId","data-v-f043cb22"]]),Oe=o=>($a("data-v-90757be9"),o=o(),Aa(),o),at={class:"container"},tt={style:{"padding-right":"16px"}},nt=Oe(()=>I("div",null,null,-1)),lt={class:"search-bar"},ot={class:"form-name"},st={class:"search-bar"},it={class:"form-name"},rt=Oe(()=>I("div",{style:{"padding-left":"4px"}},null,-1)),ct={class:"search-bar"},dt={class:"form-name"},ut={class:"search-bar"},vt={class:"form-name"},pt={key:0,class:"generate-idx-hint"},ft={class:"list-container"},gt={key:0,class:"tag-list"},mt=["onClick"],_t={key:1},ht={key:2,class:"spin-container"},yt=ne({__name:"TagSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(o){const a=o,t=sa(),l=ia(),d=ee(()=>!l.isIdle),s=U(),f=U(!1),c=U({and_tags:[],or_tags:[],not_tags:[],folder_paths_str:a.searchScope}),g=ee(()=>s.value?s.value.tags.slice().sort((e,n)=>n.count-e.count):[]),E=["custom","Source Identifier","Model","Media Type","lora","lyco","pos","size","Sampler","Postprocess upscaler","Postprocess upscale by"].reduce((e,n,u)=>(e[n]=u,e),{}),N=ee(()=>Object.entries(Qa(g.value,e=>e.type)).sort((e,n)=>{const u=E[e[0]]!==void 0?E[e[0]]:Number.MAX_SAFE_INTEGER,_=E[n[0]]!==void 0?E[n[0]]:Number.MAX_SAFE_INTEGER;return u-_})),B=ra(new Map),F=e=>B.get(e)??512,P=U({}),z=U({});we(P,ca(e=>{z.value=da(e)},300),{deep:!0});const Q=ua(),p=U(N.value.map(e=>e[0]));va(async()=>{console.log(new Date().toLocaleString()),s.value=await ge(),await pa(20),console.log(new Date().toLocaleString()),p.value=N.value.map(e=>e[0]),fa(()=>{console.log(new Date().toLocaleString())}),s.value.img_count&&s.value.expired&&await v(),a.searchScope&&m()}),me("searchIndexExpired",()=>s.value&&(s.value.expired=!0));const v=ga(()=>l.pushAction(async()=>(await wa(),s.value=await ge(),p.value=N.value.map(e=>e[0]),s.value)).res),m=()=>{Ce.value.add(c.value),t.openTagSearchMatchedImageGridInRight(a.tabIdx,Q,c.value)},w=e=>{c.value=e,f.value=!1,m()};me("returnToIIB",async()=>{const e=await l.pushAction(ma).res;s.value.expired=e.expired});const C=(e,n=!1)=>(n?`[${e.type}] `:"")+(e.display_name?`${e.display_name} : ${e.name}`:e.name),j=U(!1),R=U(""),G=async()=>{var n,u,_;if(!R.value){j.value=!1;return}const e=await l.pushAction(()=>ha({tag_name:R.value})).res;e.type!=="custom"&&he.error(ce("existInOtherType")),(n=s.value)!=null&&n.tags.find(S=>S.id===e.id)?he.error(ce("alreadyExists")):((u=s.value)==null||u.tags.push(e),(_=t.conf)==null||_.all_custom_tags.push(e)),R.value="",j.value=!1},W=e=>{ye.confirm({title:ce("confirmDelete"),async onOk(){var u,_,S,Z;await ya({tag_id:e});const n=((u=s.value)==null?void 0:u.tags.findIndex(X=>X.id===e))??-1;(_=s.value)==null||_.tags.splice(n,1),(Z=t.conf)==null||Z.all_custom_tags.splice((S=t.conf)==null?void 0:S.all_custom_tags.findIndex(X=>X.id===e),1)}})},H=ee(()=>new Set([c.value.and_tags,c.value.or_tags,c.value.not_tags].flat())),Y=e=>{H.value.has(e.id)?(c.value.and_tags=c.value.and_tags.filter(n=>n!==e.id),c.value.or_tags=c.value.or_tags.filter(n=>n!==e.id),c.value.not_tags=c.value.not_tags.filter(n=>n!==e.id)):c.value.and_tags.push(e.id)},O={value:e=>e.id,text:C,optionText:e=>C(e,!0)},M=(e,n)=>{const u=n.indexOf(e);u===-1?n.push(e):n.splice(u,1)},x=(e,n)=>{const u=F(n);let _=z.value[n];return _&&(_=_.trim(),e=e.filter(S=>C(S).toLowerCase().includes(_.toLowerCase()))),e.slice(0,u)},q=e=>e.map(n=>{var u;return(u=g.value.find(_=>_.id===n))==null?void 0:u.name}).join(", ");return(e,n)=>{const u=xa,_=Sa,S=Pa,Z=ye,X=be,Te=ba,ve=Ca,pe=be,Ne=Ia,Be=se,Ee=te,Re=ka;return b(),T("div",at,[r(Z,{visible:f.value,"onUpdate:visible":n[0]||(n[0]=i=>f.value=i),width:"70vw","mask-closable":"",onOk:n[1]||(n[1]=i=>f.value=!1)},{default:h(()=>[r(S,{records:K(Ce),onReuseRecord:w},{default:h(({record:i})=>[I("div",tt,[i.and_tags.length?(b(),L(_,{key:0},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("exactMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.and_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.or_tags.length?(b(),L(_,{key:1},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("anyMatch"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.or_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.not_tags.length?(b(),L(_,{key:2},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("exclude"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(q(i.not_tags)),1)]),_:2},1024)]),_:2},1024)):D("",!0),i.folder_paths_str?(b(),L(_,{key:3},{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("searchScope"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(i.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):D("",!0),r(_,null,{default:h(()=>[r(u,{span:4},{default:h(()=>[$(y(e.$t("time"))+":",1)]),_:1}),r(u,{span:20},{default:h(()=>[$(y(i.time),1)]),_:2},1024)]),_:2},1024),nt])]),_:1},8,["records"])]),_:1},8,["visible"]),D("",!0),s.value?(b(),T(J,{key:1},[I("div",null,[I("div",lt,[I("div",ot,y(e.$t("exactMatch")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.and_tags,"onUpdate:value":n[2]||(n[2]=i=>c.value.and_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExactMatchTag")},null,8,["options","value","disabled","placeholder"]),s.value.expired||!s.value.img_count?(b(),L(X,{key:0,onClick:K(v),loading:!K(l).isIdle,type:"primary"},{default:h(()=>[$(y(s.value.img_count===0?e.$t("generateIndexHint"):e.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(b(),L(X,{key:1,type:"primary",onClick:m,loading:!K(l).isIdle},{default:h(()=>[$(y(e.$t("search")),1)]),_:1},8,["loading"]))]),I("div",st,[I("div",it,y(e.$t("anyMatch")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.or_tags,"onUpdate:value":n[3]||(n[3]=i=>c.value.or_tags=i),disabled:!g.value.length,placeholder:e.$t("selectAnyMatchTag")},null,8,["options","value","disabled","placeholder"]),rt,r(X,{onClick:n[4]||(n[4]=i=>f.value=!0)},{default:h(()=>[$(y(e.$t("history")),1)]),_:1})]),I("div",ct,[I("div",dt,y(e.$t("exclude")),1),r(K(re),{conv:O,mode:"multiple",style:{width:"100%"},options:g.value,value:c.value.not_tags,"onUpdate:value":n[5]||(n[5]=i=>c.value.not_tags=i),disabled:!g.value.length,placeholder:e.$t("selectExcludeTag")},null,8,["options","value","disabled","placeholder"])]),I("div",ut,[I("div",vt,y(e.$t("searchScope")),1),r(Te,{"auto-size":{maxRows:8},value:c.value.folder_paths_str,"onUpdate:value":n[6]||(n[6]=i=>c.value.folder_paths_str=i),placeholder:e.$t("specifiedSearchFolder")},null,8,["value","placeholder"])])]),g.value.filter(i=>i.type!=="custom").length?D("",!0):(b(),T("p",pt,y(e.$t("needGenerateIdx")),1)),I("div",ft,[(b(!0),T(J,null,_e(N.value,([i,ie])=>(b(),T(J,{key:i},[i!=="Media Type"||ie.length>1?(b(),T("ul",gt,[I("h3",{class:"cat-name",onClick:A=>p.value.includes(i)?p.value.splice(p.value.indexOf(i),1):p.value.push(i)},[r(K(Ra),{class:xe(["arrow",{down:p.value.includes(i)}])},null,8,["class"]),$(" "+y(e.$t(i))+" ",1),I("div",{onClick:n[7]||(n[7]=de(()=>{},["stop","prevent"])),class:"filter-input"},[r(ve,{value:P.value[i],"onUpdate:value":A=>P.value[i]=A,size:"small",allowClear:"",placeholder:e.$t("filterByKeyword")},null,8,["value","onUpdate:value","placeholder"])])],8,mt),r(Ee,{ghost:"",activeKey:p.value,"onUpdate:activeKey":n[10]||(n[10]=A=>p.value=A)},{expandIcon:h(()=>[]),default:h(()=>[(b(),L(Be,{key:i},{default:h(()=>[(b(!0),T(J,null,_e(x(ie,i),(A,Me)=>(b(),L(et,{onClick:le=>Y(A),onRemove:le=>W(A.id),onToggleAnd:le=>M(A.id,c.value.and_tags),onToggleOr:le=>M(A.id,c.value.or_tags),onToggleNot:le=>M(A.id,c.value.not_tags),key:A.id,idx:Me,name:i,tag:A,selected:H.value.has(A.id)},null,8,["onClick","onRemove","onToggleAnd","onToggleOr","onToggleNot","idx","name","tag","selected"]))),128)),i==="custom"?(b(),T("li",{key:0,class:"tag",onClick:n[9]||(n[9]=A=>j.value=!0)},[j.value?(b(),L(Ne,{key:0,compact:""},{default:h(()=>[r(ve,{value:R.value,"onUpdate:value":n[8]||(n[8]=A=>R.value=A),style:{width:"128px"},loading:d.value,"allow-clear":"",size:"small"},null,8,["value","loading"]),r(pe,{size:"small",type:"primary",onClickCapture:de(G,["stop"]),loading:d.value},{default:h(()=>[$(y(R.value?e.$t("submit"):e.$t("cancel")),1)]),_:1},8,["onClickCapture","loading"])]),_:1})):(b(),T(J,{key:1},[r(K(_a)),$(" "+y(e.$t("add")),1)],64))])):D("",!0),F(i)B.set(i,F(i)+512)},{default:h(()=>[$(y(e.$t("loadmore")),1)]),_:2},1032,["onClick"])])):D("",!0)]),_:2},1024))]),_:2},1032,["activeKey"])])):D("",!0)],64))),128))])],64)):(b(),T("div",ht,[r(Re,{size:"large"})]))])}}});const wt=Se(yt,[["__scopeId","data-v-90757be9"]]);export{wt as default}; diff --git a/vue/dist/assets/batchDownload-9e6efa2d.js b/vue/dist/assets/batchDownload-6d4058ca.js similarity index 90% rename from vue/dist/assets/batchDownload-9e6efa2d.js rename to vue/dist/assets/batchDownload-6d4058ca.js index 92dc41aa..8b643b20 100644 --- a/vue/dist/assets/batchDownload-9e6efa2d.js +++ b/vue/dist/assets/batchDownload-6d4058ca.js @@ -1 +1 @@ -import{d as v,cH as I,bX as C,N as l,O as _,Q as f,c,Y as r,R as h,S as d,Z as e,X as F,a9 as z,ca as B,cI as x,af as R,V as S}from"./index-fad1088f.js";import{u as $,a as V,k as E,F as A,d as N}from"./FileItem-55a122b3.js";import"./functionalCallableComp-32f74df9.js";import"./index-210fb107.js";/* empty css */const T={class:"actions-panel actions"},H={key:0,class:"file-list"},L={class:"hint"},U=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(O){const{stackViewEl:w}=$().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),i=E(),{selectdFiles:n}=I(i),u=C(),y=async t=>{const s=B(t);s&&i.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await x.value.post("/zip",{paths:n.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{n.value.splice(t,1)};return(t,s)=>{const a=R;return l(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",T,[c(a,{onClick:s[0]||(s[0]=o=>e(i).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(n).length?(l(),F(e(N),{key:1,ref:"scroller",class:"file-list",items:e(n).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(A,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:Q=>g(m),"full-screen-preview-image-url":e(z)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(l(),_("div",H,[f("p",L,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const Z=S(U,[["__scopeId","data-v-aab31da2"]]);export{Z as default}; +import{d as v,cH as I,bX as C,N as l,O as _,Q as f,c,Y as r,R as h,S as d,Z as e,X as F,a9 as z,ca as B,cI as x,af as R,V as S}from"./index-28dbaa5b.js";import{u as $,a as V,k as E,F as A,d as N}from"./FileItem-a9860a66.js";import"./functionalCallableComp-168f8428.js";import"./index-6980ed51.js";/* empty css */const T={class:"actions-panel actions"},H={key:0,class:"file-list"},L={class:"hint"},U=v({__name:"batchDownload",props:{tabIdx:{},paneIdx:{},id:{}},setup(O){const{stackViewEl:w}=$().toRefs(),{itemSize:p,gridItems:k,cellWidth:b}=V(),i=E(),{selectdFiles:n}=I(i),u=C(),y=async t=>{const s=B(t);s&&i.addFiles(s.nodes)},D=async()=>{u.pushAction(async()=>{const t=await x.value.post("/zip",{paths:n.value.map(o=>o.fullpath)},{responseType:"blob"}),s=window.URL.createObjectURL(new Blob([t.data])),a=document.createElement("a");a.href=s,a.setAttribute("download",`iib_${new Date().toLocaleString()}.zip`),document.body.appendChild(a),a.click()})},g=t=>{n.value.splice(t,1)};return(t,s)=>{const a=R;return l(),_("div",{class:"container",ref_key:"stackViewEl",ref:w,onDrop:y},[f("div",T,[c(a,{onClick:s[0]||(s[0]=o=>e(i).selectdFiles=[])},{default:r(()=>[h(d(t.$t("clear")),1)]),_:1}),c(a,{onClick:D,type:"primary",loading:!e(u).isIdle},{default:r(()=>[h(d(t.$t("zipDownload")),1)]),_:1},8,["loading"])]),e(n).length?(l(),F(e(N),{key:1,ref:"scroller",class:"file-list",items:e(n).slice(),"item-size":e(p).first,"key-field":"fullpath","item-secondary-size":e(p).second,gridItems:e(k)},{default:r(({item:o,index:m})=>[c(A,{idx:m,file:o,"cell-width":e(b),"enable-close-icon":"",onCloseIconClick:Q=>g(m),"full-screen-preview-image-url":e(z)(o),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","onCloseIconClick","full-screen-preview-image-url"])]),_:1},8,["items","item-size","item-secondary-size","gridItems"])):(l(),_("div",H,[f("p",L,d(t.$t("batchDownloaDDragAndDropHint")),1)]))],544)}}});const Z=S(U,[["__scopeId","data-v-aab31da2"]]);export{Z as default}; diff --git a/vue/dist/assets/emptyStartup-d89fe0f8.js b/vue/dist/assets/emptyStartup-e8b69d30.js similarity index 99% rename from vue/dist/assets/emptyStartup-d89fe0f8.js rename to vue/dist/assets/emptyStartup-e8b69d30.js index 6c70214f..2b7f5d69 100644 --- a/vue/dist/assets/emptyStartup-d89fe0f8.js +++ b/vue/dist/assets/emptyStartup-e8b69d30.js @@ -1,3 +1,3 @@ -import{d as M,B as U,ah as Br,r as j,k as Ue,ai as Hr,a as k,c as h,aj as se,u as te,_ as De,ak as Nr,al as cr,P as K,am as Vr,h as F,g as zr,f as Mr,b as Wr,an as Kr,ao as Jr,ap as Zr,aq as Xr,j as lr,ar as ur,as as Yr,at as Qr,au as es,av as rs,A as pr,W as dr,aw as ss,ad as fe,x as D,m as x,ae as gr,ax as os,v as be,ay as ts,az as pe,aA as ns,aB as as,N as G,X as he,Y as C,R as B,S as _,aC as is,ag as cs,M as ls,aD as us,n as ps,aE as ds,aF as gs,o as ms,a3 as hs,O as R,Q as T,Z as f,U as H,$ as z,aG as He,T as W,a2 as ae,I as ke,H as Ts,t as Es,aH as fs,af as bs,aI as _s,aJ as vs,V as ws}from"./index-fad1088f.js";import{V as ys}from"./Checkbox-7b8370e5.js";import{D as ks}from"./index-210fb107.js";/* empty css */function Ne(r){var e=r.prefixCls,s=r.value,o=r.current,t=r.offset,a=t===void 0?0:t,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),h("p",{style:n,class:se("".concat(e,"-only-unit"),{current:o})},[s])}function Ps(r,e,s){for(var o=r,t=0;(o+10)%10!==e;)o+=s,t+=s;return t}const Gs=M({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var s=U(function(){return Number(e.value)}),o=U(function(){return Math.abs(e.count)}),t=Br({prevValue:s.value,prevCount:o.value}),a=function(){t.prevValue=s.value,t.prevCount=o.value},n=j();return Ue(s,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Hr(function(){clearTimeout(n.value)}),function(){var i,l={},p=s.value;if(t.prevValue===p||Number.isNaN(p)||Number.isNaN(t.prevValue))i=[Ne(k(k({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var d=p+10,u=[],b=p;b<=d;b+=1)u.push(b);var w=u.findIndex(function(S){return S%10===t.prevValue});i=u.map(function(S,c){var m=S%10;return Ne(k(k({},e),{},{value:m,offset:c-w,current:c===w}))});var O=t.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),p=U(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),d=U(function(){return l.value==="0"||l.value===0}),u=U(function(){return e.dot&&!d.value}),b=U(function(){return u.value?"":l.value}),w=U(function(){var E=b.value===null||b.value===void 0||b.value==="";return(E||d.value&&!e.showZero)&&!u.value}),O=j(e.count),S=j(b.value),c=j(u.value);Ue([function(){return e.count},b,u],function(){w.value||(O.value=e.count,S.value=b.value,c.value=u.value)},{immediate:!0});var m=U(function(){var E;return E={},F(E,"".concat(n.value,"-status-dot"),p.value),F(E,"".concat(n.value,"-status-").concat(e.status),!!e.status),F(E,"".concat(n.value,"-status-").concat(e.color),le(e.color)),E}),P=U(function(){return e.color&&!le(e.color)?{background:e.color}:{}}),v=U(function(){var E;return E={},F(E,"".concat(n.value,"-dot"),c.value),F(E,"".concat(n.value,"-count"),!c.value),F(E,"".concat(n.value,"-count-sm"),e.size==="small"),F(E,"".concat(n.value,"-multiple-words"),!c.value&&S.value&&S.value.toString().length>1),F(E,"".concat(n.value,"-status-").concat(e.status),!!e.status),F(E,"".concat(n.value,"-status-").concat(e.color),le(e.color)),E});return function(){var E,A,L,$=e.offset,I=e.title,V=e.color,J=t.style,g=zr(o,e,"text"),y=n.value,q=O.value,Z=Mr((E=o.default)===null||E===void 0?void 0:E.call(o));Z=Z.length?Z:null;var ye=!!(!w.value||o.count),de=function(){if(!$)return k({},J);var me={marginTop:Us($[1])?"".concat($[1],"px"):$[1]};return i.value==="rtl"?me.left="".concat(parseInt($[0],10),"px"):me.right="".concat(-parseInt($[0],10),"px"),k(k({},me),J)}(),Ir=I??(typeof q=="string"||typeof q=="number"?q:void 0),xr=ye||!g?null:h("span",{class:"".concat(y,"-status-text")},[g]),jr=Wr(q)==="object"||q===void 0&&o.count?cr(q??((A=o.count)===null||A===void 0?void 0:A.call(o)),{style:de},!1):null,Be=se(y,(L={},F(L,"".concat(y,"-status"),p.value),F(L,"".concat(y,"-not-a-wrapper"),!Z),F(L,"".concat(y,"-rtl"),i.value==="rtl"),L),t.class);if(!Z&&p.value){var $r=de.color;return h("span",k(k({},t),{},{class:Be,style:de}),[h("span",{class:m.value,style:P.value},null),h("span",{style:{color:$r},class:"".concat(y,"-status-text")},[g])])}var qr=Kr(Z?"".concat(y,"-zoom"):"",{appear:!1}),ge=k(k({},de),e.numberStyle);return V&&!le(V)&&(ge=ge||{},ge.background=V),h("span",k(k({},t),{},{class:Be}),[Z,h(Jr,qr,{default:function(){return[Zr(h(As,{prefixCls:e.scrollNumberPrefixCls,show:ye,class:v.value,count:S.value,title:Ir,style:ge,key:"scrollNumber"},{default:function(){return[jr]}}),[[Xr,ye]])]}}),xr])}}});Te.install=function(r){return r.component(Te.name,Te),r.component(Se.name,Se),r};var Ls=["prefixCls","id"],mr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:K.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const N=M({compatConfig:{MODE:3},name:"ARadio",props:mr(),setup:function(e,s){var o=s.emit,t=s.expose,a=s.slots,n=lr(),i=j(),l=ur("radioGroupContext",void 0),p=te("radio",e),d=p.prefixCls,u=p.direction,b=function(){i.value.focus()},w=function(){i.value.blur()};t({focus:b,blur:w});var O=function(m){var P=m.target.checked;o("update:checked",P),o("update:value",P),o("change",m),n.onFieldChange()},S=function(m){o("change",m),l&&l.onRadioChange&&l.onRadioChange(m)};return function(){var c,m=l;e.prefixCls;var P=e.id,v=P===void 0?n.id.value:P,E=De(e,Ls),A=k({prefixCls:d.value,id:v},Yr(E,["onUpdate:checked","onUpdate:value"]));m?(A.name=m.props.name,A.onChange=S,A.checked=e.value===m.stateValue.value,A.disabled=e.disabled||m.props.disabled):A.onChange=O;var L=se((c={},F(c,"".concat(d.value,"-wrapper"),!0),F(c,"".concat(d.value,"-wrapper-checked"),A.checked),F(c,"".concat(d.value,"-wrapper-disabled"),A.disabled),F(c,"".concat(d.value,"-wrapper-rtl"),u.value==="rtl"),c));return h("label",{class:L},[h(ys,k(k({},A),{},{type:"radio",ref:i}),null),a.default&&h("span",null,[a.default()])])}}});var Is=es("large","default","small"),xs=function(){return{prefixCls:String,value:K.any,size:K.oneOf(Is),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const Le=M({compatConfig:{MODE:3},name:"ARadioGroup",props:xs(),setup:function(e,s){var o=s.slots,t=s.emit,a=lr(),n=te("radio",e),i=n.prefixCls,l=n.direction,p=n.size,d=j(e.value),u=j(!1);Ue(function(){return e.value},function(w){d.value=w,u.value=!1});var b=function(O){var S=d.value,c=O.target.value;"value"in e||(d.value=c),!u.value&&c!==S&&(u.value=!0,t("update:value",c),t("change",O),a.onFieldChange()),rs(function(){u.value=!1})};return Qr("radioGroupContext",{onRadioChange:b,stateValue:d,props:e}),function(){var w,O=e.options,S=e.optionType,c=e.buttonStyle,m=e.id,P=m===void 0?a.id.value:m,v="".concat(i.value,"-group"),E=se(v,"".concat(v,"-").concat(c),(w={},F(w,"".concat(v,"-").concat(p.value),p.value),F(w,"".concat(v,"-rtl"),l.value==="rtl"),w)),A=null;if(O&&O.length>0){var L=S==="button"?"".concat(i.value,"-button"):i.value;A=O.map(function(I){if(typeof I=="string"||typeof I=="number")return h(N,{key:I,prefixCls:L,disabled:e.disabled,value:I,checked:d.value===I},{default:function(){return[I]}});var V=I.value,J=I.disabled,g=I.label;return h(N,{key:"radio-group-value-options-".concat(V),prefixCls:L,disabled:J||e.disabled,value:V,checked:d.value===V},{default:function(){return[g]}})})}else{var $;A=($=o.default)===null||$===void 0?void 0:$.call(o)}return h("div",{class:E,id:P},[A])}}}),ue=M({compatConfig:{MODE:3},name:"ARadioButton",props:mr(),setup:function(e,s){var o=s.slots,t=te("radio-button",e),a=t.prefixCls,n=ur("radioGroupContext",void 0);return function(){var i,l=k(k({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),h(N,l,{default:function(){return[(i=o.default)===null||i===void 0?void 0:i.call(o)]}})}}});N.Group=Le;N.Button=ue;N.install=function(r){return r.component(N.name,N),r.component(N.Group.name,N.Group),r.component(N.Button.name,N.Button),r};var js={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const $s=js;function Ve(r){for(var e=1;e{const s=dr();let o=e??"";const t=j(r);if({}.TAURI_ARCH){const a=await ss({directory:!0,defaultPath:e});if(typeof a=="string")o=a;else return}else o=await new Promise(a=>{const n=j(o);console.log("dfd",n.value),fe.confirm({title:D("inputTargetFolderPath"),width:"800px",content:()=>{var i;return x("div",[(i=s.conf)!=null&&i.enable_access_control?x("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",x(gr,{value:n.value,"onUpdate:value":l=>n.value=l}),x("div",[x("span",D("type")+": "),x(Le,{value:t.value,"onUpdate:value":l=>t.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[x(ue,{value:"walk"},"Walk"),x(ue,{value:"scanned"},"Normal"),x(ue,{value:"scanned-fixed"},"Fixed")])]),x("p","Walk: "+D("walkModeDoc")),x("p","Normal: "+D("normalModelDoc")),x("p","Fixed: "+D("fixedModeDoc"))])},async onOk(){const i=n.value;(await os([i]))[i]?a(n.value):be.error(D("pathDoesNotExist"))}})});fe.confirm({content:D("confirmToAddToExtraPath"),async onOk(){await ts({types:[t.value],path:o}),be.success(D("addCompleted")),pe.emit("searchIndexExpired"),pe.emit("updateGlobalSetting")}})},We=(r,e)=>{fe.confirm({content:D("confirmDelete"),closable:!0,async onOk(){await ns({types:[e],path:r}),be.success(D("removeCompleted")),pe.emit("searchIndexExpired"),pe.emit("updateGlobalSetting")}})},Ke=r=>{const e=j("");fe.confirm({title:D("inputAlias"),content:()=>x("div",[x("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),x(gr,{value:e.value,"onUpdate:value":s=>e.value=s})]),async onOk(){await as({alias:e.value,path:r}),be.success(D("addAliasCompleted")),pe.emit("updateGlobalSetting")}})},Je=M({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const s=o=>{switch(o.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(o,t)=>{const a=cs,n=ls,i=ks;return G(),he(i,{trigger:["contextmenu"]},{overlay:C(()=>[h(n,{onClick:s},{default:C(()=>[h(a,{key:"openOnTheRight"},{default:C(()=>[B(_(o.$t("openOnTheRight")),1)]),_:1}),h(a,{key:"openInNewTab"},{default:C(()=>[B(_(o.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:C(()=>[is(o.$slots,"default")]),_:3})}}});function _e(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ve={exports:{}},zs=hr;function hr(r,e,s,o){if(typeof s!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(e)?e.reverse().reduce(function(t,a){return hr.bind(null,r,a,t,o)},s)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(t,a){return a.hook.bind(null,t,o)},s)():s(o)})}var Ms=Ws;function Ws(r,e,s,o){var t=o;r.registry[s]||(r.registry[s]=[]),e==="before"&&(o=function(a,n){return Promise.resolve().then(t.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(o=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,t(i,n)}).then(function(){return i})}),e==="error"&&(o=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return t(i,n)})}),r.registry[s].push({hook:o,orig:t})}var Ks=Js;function Js(r,e,s){if(r.registry[e]){var o=r.registry[e].map(function(t){return t.orig}).indexOf(s);o!==-1&&r.registry[e].splice(o,1)}}var Tr=zs,Zs=Ms,Xs=Ks,Ze=Function.bind,Xe=Ze.bind(Ze);function Er(r,e,s){var o=Xe(Xs,null).apply(null,s?[e,s]:[e]);r.api={remove:o},r.remove=o,["before","error","after","wrap"].forEach(function(t){var a=s?[e,t,s]:[e,t];r[t]=r.api[t]=Xe(Zs,null).apply(null,a)})}function Ys(){var r="h",e={registry:{}},s=Tr.bind(null,e,r);return Er(s,e,r),s}function fr(){var r={registry:{}},e=Tr.bind(null,r);return Er(e,r),e}var Ye=!1;function ne(){return Ye||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ye=!0),fr()}ne.Singular=Ys.bind();ne.Collection=fr.bind();ve.exports=ne;ve.exports.Hook=ne;ve.exports.Singular=ne.Singular;var Qs=ve.exports.Collection=ne.Collection,eo="9.0.5",ro=`octokit-endpoint.js/${eo} ${_e()}`,so={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ro},mediaType:{format:""}};function oo(r){return r?Object.keys(r).reduce((e,s)=>(e[s.toLowerCase()]=r[s],e),{}):{}}function to(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const s=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof s=="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function br(r,e){const s=Object.assign({},r);return Object.keys(e).forEach(o=>{to(e[o])?o in r?s[o]=br(r[o],e[o]):Object.assign(s,{[o]:e[o]}):Object.assign(s,{[o]:e[o]})}),s}function Qe(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function Ae(r,e,s){var t;if(typeof e=="string"){let[a,n]=e.split(" ");s=Object.assign(n?{method:a,url:n}:{url:a},s)}else s=Object.assign({},e);s.headers=oo(s.headers),Qe(s),Qe(s.headers);const o=br(r||{},s);return s.url==="/graphql"&&(r&&((t=r.mediaType.previews)!=null&&t.length)&&(o.mediaType.previews=r.mediaType.previews.filter(a=>!o.mediaType.previews.includes(a)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),o}function no(r,e){const s=/\?/.test(r)?"&":"?",o=Object.keys(e);return o.length===0?r:r+s+o.map(t=>t==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${t}=${encodeURIComponent(e[t])}`).join("&")}var ao=/\{[^}]+\}/g;function io(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function co(r){const e=r.match(ao);return e?e.map(io).reduce((s,o)=>s.concat(o),[]):[]}function er(r,e){const s={__proto__:null};for(const o of Object.keys(r))e.indexOf(o)===-1&&(s[o]=r[o]);return s}function _r(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function re(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function ie(r,e,s){return e=r==="+"||r==="#"?_r(e):re(e),s?re(s)+"="+e:e}function Y(r){return r!=null}function Ge(r){return r===";"||r==="&"||r==="?"}function lo(r,e,s,o){var t=r[s],a=[];if(Y(t)&&t!=="")if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")t=t.toString(),o&&o!=="*"&&(t=t.substring(0,parseInt(o,10))),a.push(ie(e,t,Ge(e)?s:""));else if(o==="*")Array.isArray(t)?t.filter(Y).forEach(function(n){a.push(ie(e,n,Ge(e)?s:""))}):Object.keys(t).forEach(function(n){Y(t[n])&&a.push(ie(e,t[n],n))});else{const n=[];Array.isArray(t)?t.filter(Y).forEach(function(i){n.push(ie(e,i))}):Object.keys(t).forEach(function(i){Y(t[i])&&(n.push(re(i)),n.push(ie(e,t[i].toString())))}),Ge(e)?a.push(re(s)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?Y(t)&&a.push(re(s)):t===""&&(e==="&"||e==="?")?a.push(re(s)+"="):t===""&&a.push("");return a}function uo(r){return{expand:po.bind(null,r)}}function po(r,e){var s=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,t,a){if(t){let i="";const l=[];if(s.indexOf(t.charAt(0))!==-1&&(i=t.charAt(0),t=t.substr(1)),t.split(/,/g).forEach(function(p){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(p);l.push(lo(e,i,d[1],d[2]||d[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return _r(a)}),r==="/"?r:r.replace(/\/$/,"")}function vr(r){var d;let e=r.method.toUpperCase(),s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},r.headers),t,a=er(r,["method","baseUrl","url","headers","request","mediaType"]);const n=co(s);s=uo(s).expand(a),/^http/.test(s)||(s=r.baseUrl+s);const i=Object.keys(r).filter(u=>n.includes(u)).concat("baseUrl"),l=er(a,i);if(!/application\/octet-stream/i.test(o.accept)&&(r.mediaType.format&&(o.accept=o.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&(d=r.mediaType.previews)!=null&&d.length)){const u=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=u.concat(r.mediaType.previews).map(b=>{const w=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${w}`}).join(",")}return["GET","HEAD"].includes(e)?s=no(s,l):"data"in l?t=l.data:Object.keys(l).length&&(t=l),!o["content-type"]&&typeof t<"u"&&(o["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof t>"u"&&(t=""),Object.assign({method:e,url:s,headers:o},typeof t<"u"?{body:t}:null,r.request?{request:r.request}:null)}function go(r,e,s){return vr(Ae(r,e,s))}function wr(r,e){const s=Ae(r,e),o=go.bind(null,s);return Object.assign(o,{DEFAULTS:s,defaults:wr.bind(null,s),merge:Ae.bind(null,s),parse:vr})}var mo=wr(null,so);class rr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var je={exports:{}},ho=yr;function yr(r,e){if(r&&e)return yr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(o){s[o]=r[o]}),s;function s(){for(var o=new Array(arguments.length),t=0;tconsole.warn(r)),fo=Gr(r=>console.warn(r)),ce=class extends Error{constructor(r,e,s){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let o;"headers"in s&&typeof s.headers<"u"&&(o=s.headers),"response"in s&&(this.response=s.response,o=s.response.headers);const t=Object.assign({},s.request);s.request.headers.authorization&&(t.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get(){return Eo(new rr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return fo(new rr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),o||{}}})}},bo="8.4.0";function _o(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const s=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof s=="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function vo(r){return r.arrayBuffer()}function sr(r){var i,l,p,d;const e=r.request&&r.request.log?r.request.log:console,s=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(_o(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let o={},t,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(p=r.request)==null?void 0:p.redirect,headers:r.headers,signal:(d=r.request)==null?void 0:d.signal,...r.body&&{duplex:"half"}}).then(async u=>{a=u.url,t=u.status;for(const b of u.headers)o[b[0]]=b[1];if("deprecation"in o){const b=o.link&&o.link.match(/<([^>]+)>; rel="deprecation"/),w=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${o.sunset}${w?`. See ${w}`:""}`)}if(!(t===204||t===205)){if(r.method==="HEAD"){if(t<400)return;throw new ce(u.statusText,t,{response:{url:a,status:t,headers:o,data:void 0},request:r})}if(t===304)throw new ce("Not modified",t,{response:{url:a,status:t,headers:o,data:await Oe(u)},request:r});if(t>=400){const b=await Oe(u);throw new ce(wo(b),t,{response:{url:a,status:t,headers:o,data:b},request:r})}return s?await Oe(u):u.body}}).then(u=>({status:t,url:a,headers:o,data:u})).catch(u=>{if(u instanceof ce)throw u;if(u.name==="AbortError")throw u;let b=u.message;throw u.name==="TypeError"&&"cause"in u&&(u.cause instanceof Error?b=u.cause.message:typeof u.cause=="string"&&(b=u.cause)),new ce(b,500,{request:r})})}async function Oe(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():vo(r)}function wo(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function Re(r,e){const s=r.defaults(e);return Object.assign(function(t,a){const n=s.merge(t,a);if(!n.request||!n.request.hook)return sr(s.parse(n));const i=(l,p)=>sr(s.parse(s.merge(l,p)));return Object.assign(i,{endpoint:s,defaults:Re.bind(null,s)}),n.request.hook(i,n)},{endpoint:s,defaults:Re.bind(null,s)})}var Fe=Re(mo,{headers:{"user-agent":`octokit-request.js/${bo} ${_e()}`}}),yo="7.1.0";function ko(r){return`Request failed due to following response errors: +import{d as M,B as U,ah as Br,r as j,k as Ue,ai as Hr,a as k,c as h,aj as se,u as te,_ as De,ak as Nr,al as cr,P as K,am as Vr,h as F,g as zr,f as Mr,b as Wr,an as Kr,ao as Jr,ap as Zr,aq as Xr,j as lr,ar as ur,as as Yr,at as Qr,au as es,av as rs,A as pr,W as dr,aw as ss,ad as fe,x as D,m as x,ae as gr,ax as os,v as be,ay as ts,az as pe,aA as ns,aB as as,N as G,X as he,Y as C,R as B,S as _,aC as is,ag as cs,M as ls,aD as us,n as ps,aE as ds,aF as gs,o as ms,a3 as hs,O as R,Q as T,Z as f,U as H,$ as z,aG as He,T as W,a2 as ae,I as ke,H as Ts,t as Es,aH as fs,af as bs,aI as _s,aJ as vs,V as ws}from"./index-28dbaa5b.js";import{V as ys}from"./Checkbox-e23ad1bf.js";import{D as ks}from"./index-6980ed51.js";/* empty css */function Ne(r){var e=r.prefixCls,s=r.value,o=r.current,t=r.offset,a=t===void 0?0:t,n;return a&&(n={position:"absolute",top:"".concat(a,"00%"),left:0}),h("p",{style:n,class:se("".concat(e,"-only-unit"),{current:o})},[s])}function Ps(r,e,s){for(var o=r,t=0;(o+10)%10!==e;)o+=s,t+=s;return t}const Gs=M({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var s=U(function(){return Number(e.value)}),o=U(function(){return Math.abs(e.count)}),t=Br({prevValue:s.value,prevCount:o.value}),a=function(){t.prevValue=s.value,t.prevCount=o.value},n=j();return Ue(s,function(){clearTimeout(n.value),n.value=setTimeout(function(){a()},1e3)},{flush:"post"}),Hr(function(){clearTimeout(n.value)}),function(){var i,l={},p=s.value;if(t.prevValue===p||Number.isNaN(p)||Number.isNaN(t.prevValue))i=[Ne(k(k({},e),{},{current:!0}))],l={transition:"none"};else{i=[];for(var d=p+10,u=[],b=p;b<=d;b+=1)u.push(b);var w=u.findIndex(function(S){return S%10===t.prevValue});i=u.map(function(S,c){var m=S%10;return Ne(k(k({},e),{},{value:m,offset:c-w,current:c===w}))});var O=t.prevCounte.overflowCount?"".concat(e.overflowCount,"+"):e.count}),p=U(function(){return e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0}),d=U(function(){return l.value==="0"||l.value===0}),u=U(function(){return e.dot&&!d.value}),b=U(function(){return u.value?"":l.value}),w=U(function(){var E=b.value===null||b.value===void 0||b.value==="";return(E||d.value&&!e.showZero)&&!u.value}),O=j(e.count),S=j(b.value),c=j(u.value);Ue([function(){return e.count},b,u],function(){w.value||(O.value=e.count,S.value=b.value,c.value=u.value)},{immediate:!0});var m=U(function(){var E;return E={},F(E,"".concat(n.value,"-status-dot"),p.value),F(E,"".concat(n.value,"-status-").concat(e.status),!!e.status),F(E,"".concat(n.value,"-status-").concat(e.color),le(e.color)),E}),P=U(function(){return e.color&&!le(e.color)?{background:e.color}:{}}),v=U(function(){var E;return E={},F(E,"".concat(n.value,"-dot"),c.value),F(E,"".concat(n.value,"-count"),!c.value),F(E,"".concat(n.value,"-count-sm"),e.size==="small"),F(E,"".concat(n.value,"-multiple-words"),!c.value&&S.value&&S.value.toString().length>1),F(E,"".concat(n.value,"-status-").concat(e.status),!!e.status),F(E,"".concat(n.value,"-status-").concat(e.color),le(e.color)),E});return function(){var E,A,L,$=e.offset,I=e.title,V=e.color,J=t.style,g=zr(o,e,"text"),y=n.value,q=O.value,Z=Mr((E=o.default)===null||E===void 0?void 0:E.call(o));Z=Z.length?Z:null;var ye=!!(!w.value||o.count),de=function(){if(!$)return k({},J);var me={marginTop:Us($[1])?"".concat($[1],"px"):$[1]};return i.value==="rtl"?me.left="".concat(parseInt($[0],10),"px"):me.right="".concat(-parseInt($[0],10),"px"),k(k({},me),J)}(),Ir=I??(typeof q=="string"||typeof q=="number"?q:void 0),xr=ye||!g?null:h("span",{class:"".concat(y,"-status-text")},[g]),jr=Wr(q)==="object"||q===void 0&&o.count?cr(q??((A=o.count)===null||A===void 0?void 0:A.call(o)),{style:de},!1):null,Be=se(y,(L={},F(L,"".concat(y,"-status"),p.value),F(L,"".concat(y,"-not-a-wrapper"),!Z),F(L,"".concat(y,"-rtl"),i.value==="rtl"),L),t.class);if(!Z&&p.value){var $r=de.color;return h("span",k(k({},t),{},{class:Be,style:de}),[h("span",{class:m.value,style:P.value},null),h("span",{style:{color:$r},class:"".concat(y,"-status-text")},[g])])}var qr=Kr(Z?"".concat(y,"-zoom"):"",{appear:!1}),ge=k(k({},de),e.numberStyle);return V&&!le(V)&&(ge=ge||{},ge.background=V),h("span",k(k({},t),{},{class:Be}),[Z,h(Jr,qr,{default:function(){return[Zr(h(As,{prefixCls:e.scrollNumberPrefixCls,show:ye,class:v.value,count:S.value,title:Ir,style:ge,key:"scrollNumber"},{default:function(){return[jr]}}),[[Xr,ye]])]}}),xr])}}});Te.install=function(r){return r.component(Te.name,Te),r.component(Se.name,Se),r};var Ls=["prefixCls","id"],mr=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:K.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}};const N=M({compatConfig:{MODE:3},name:"ARadio",props:mr(),setup:function(e,s){var o=s.emit,t=s.expose,a=s.slots,n=lr(),i=j(),l=ur("radioGroupContext",void 0),p=te("radio",e),d=p.prefixCls,u=p.direction,b=function(){i.value.focus()},w=function(){i.value.blur()};t({focus:b,blur:w});var O=function(m){var P=m.target.checked;o("update:checked",P),o("update:value",P),o("change",m),n.onFieldChange()},S=function(m){o("change",m),l&&l.onRadioChange&&l.onRadioChange(m)};return function(){var c,m=l;e.prefixCls;var P=e.id,v=P===void 0?n.id.value:P,E=De(e,Ls),A=k({prefixCls:d.value,id:v},Yr(E,["onUpdate:checked","onUpdate:value"]));m?(A.name=m.props.name,A.onChange=S,A.checked=e.value===m.stateValue.value,A.disabled=e.disabled||m.props.disabled):A.onChange=O;var L=se((c={},F(c,"".concat(d.value,"-wrapper"),!0),F(c,"".concat(d.value,"-wrapper-checked"),A.checked),F(c,"".concat(d.value,"-wrapper-disabled"),A.disabled),F(c,"".concat(d.value,"-wrapper-rtl"),u.value==="rtl"),c));return h("label",{class:L},[h(ys,k(k({},A),{},{type:"radio",ref:i}),null),a.default&&h("span",null,[a.default()])])}}});var Is=es("large","default","small"),xs=function(){return{prefixCls:String,value:K.any,size:K.oneOf(Is),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}};const Le=M({compatConfig:{MODE:3},name:"ARadioGroup",props:xs(),setup:function(e,s){var o=s.slots,t=s.emit,a=lr(),n=te("radio",e),i=n.prefixCls,l=n.direction,p=n.size,d=j(e.value),u=j(!1);Ue(function(){return e.value},function(w){d.value=w,u.value=!1});var b=function(O){var S=d.value,c=O.target.value;"value"in e||(d.value=c),!u.value&&c!==S&&(u.value=!0,t("update:value",c),t("change",O),a.onFieldChange()),rs(function(){u.value=!1})};return Qr("radioGroupContext",{onRadioChange:b,stateValue:d,props:e}),function(){var w,O=e.options,S=e.optionType,c=e.buttonStyle,m=e.id,P=m===void 0?a.id.value:m,v="".concat(i.value,"-group"),E=se(v,"".concat(v,"-").concat(c),(w={},F(w,"".concat(v,"-").concat(p.value),p.value),F(w,"".concat(v,"-rtl"),l.value==="rtl"),w)),A=null;if(O&&O.length>0){var L=S==="button"?"".concat(i.value,"-button"):i.value;A=O.map(function(I){if(typeof I=="string"||typeof I=="number")return h(N,{key:I,prefixCls:L,disabled:e.disabled,value:I,checked:d.value===I},{default:function(){return[I]}});var V=I.value,J=I.disabled,g=I.label;return h(N,{key:"radio-group-value-options-".concat(V),prefixCls:L,disabled:J||e.disabled,value:V,checked:d.value===V},{default:function(){return[g]}})})}else{var $;A=($=o.default)===null||$===void 0?void 0:$.call(o)}return h("div",{class:E,id:P},[A])}}}),ue=M({compatConfig:{MODE:3},name:"ARadioButton",props:mr(),setup:function(e,s){var o=s.slots,t=te("radio-button",e),a=t.prefixCls,n=ur("radioGroupContext",void 0);return function(){var i,l=k(k({},e),{},{prefixCls:a.value});return n&&(l.onChange=n.onRadioChange,l.checked=l.value===n.stateValue.value,l.disabled=l.disabled||n.props.disabled),h(N,l,{default:function(){return[(i=o.default)===null||i===void 0?void 0:i.call(o)]}})}}});N.Group=Le;N.Button=ue;N.install=function(r){return r.component(N.name,N),r.component(N.Group.name,N.Group),r.component(N.Button.name,N.Button),r};var js={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const $s=js;function Ve(r){for(var e=1;e{const s=dr();let o=e??"";const t=j(r);if({}.TAURI_ARCH){const a=await ss({directory:!0,defaultPath:e});if(typeof a=="string")o=a;else return}else o=await new Promise(a=>{const n=j(o);console.log("dfd",n.value),fe.confirm({title:D("inputTargetFolderPath"),width:"800px",content:()=>{var i;return x("div",[(i=s.conf)!=null&&i.enable_access_control?x("a",{style:{"word-break":"break-all","margin-bottom":"4px",display:"block"},target:"_blank",href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518"},"Please open this link first (Access Control mode only)"):"",x(gr,{value:n.value,"onUpdate:value":l=>n.value=l}),x("div",[x("span",D("type")+": "),x(Le,{value:t.value,"onUpdate:value":l=>t.value=l,buttonStyle:"solid",style:{margin:"16px 0 32px"}},[x(ue,{value:"walk"},"Walk"),x(ue,{value:"scanned"},"Normal"),x(ue,{value:"scanned-fixed"},"Fixed")])]),x("p","Walk: "+D("walkModeDoc")),x("p","Normal: "+D("normalModelDoc")),x("p","Fixed: "+D("fixedModeDoc"))])},async onOk(){const i=n.value;(await os([i]))[i]?a(n.value):be.error(D("pathDoesNotExist"))}})});fe.confirm({content:D("confirmToAddToExtraPath"),async onOk(){await ts({types:[t.value],path:o}),be.success(D("addCompleted")),pe.emit("searchIndexExpired"),pe.emit("updateGlobalSetting")}})},We=(r,e)=>{fe.confirm({content:D("confirmDelete"),closable:!0,async onOk(){await ns({types:[e],path:r}),be.success(D("removeCompleted")),pe.emit("searchIndexExpired"),pe.emit("updateGlobalSetting")}})},Ke=r=>{const e=j("");fe.confirm({title:D("inputAlias"),content:()=>x("div",[x("div",{style:{"word-break":"break-all","margin-bottom":"4px"}},"Path: "+r),x(gr,{value:e.value,"onUpdate:value":s=>e.value=s})]),async onOk(){await as({alias:e.value,path:r}),be.success(D("addAliasCompleted")),pe.emit("updateGlobalSetting")}})},Je=M({__name:"actionContextMenu",emits:["openOnTheRight","openInNewTab"],setup(r,{emit:e}){const s=o=>{switch(o.key.toString()){case"openOnTheRight":e("openOnTheRight");break;case"openInNewTab":e("openInNewTab");break}};return(o,t)=>{const a=cs,n=ls,i=ks;return G(),he(i,{trigger:["contextmenu"]},{overlay:C(()=>[h(n,{onClick:s},{default:C(()=>[h(a,{key:"openOnTheRight"},{default:C(()=>[B(_(o.$t("openOnTheRight")),1)]),_:1}),h(a,{key:"openInNewTab"},{default:C(()=>[B(_(o.$t("openInNewTab")),1)]),_:1})]),_:1})]),default:C(()=>[is(o.$slots,"default")]),_:3})}}});function _e(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var ve={exports:{}},zs=hr;function hr(r,e,s,o){if(typeof s!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(e)?e.reverse().reduce(function(t,a){return hr.bind(null,r,a,t,o)},s)():Promise.resolve().then(function(){return r.registry[e]?r.registry[e].reduce(function(t,a){return a.hook.bind(null,t,o)},s)():s(o)})}var Ms=Ws;function Ws(r,e,s,o){var t=o;r.registry[s]||(r.registry[s]=[]),e==="before"&&(o=function(a,n){return Promise.resolve().then(t.bind(null,n)).then(a.bind(null,n))}),e==="after"&&(o=function(a,n){var i;return Promise.resolve().then(a.bind(null,n)).then(function(l){return i=l,t(i,n)}).then(function(){return i})}),e==="error"&&(o=function(a,n){return Promise.resolve().then(a.bind(null,n)).catch(function(i){return t(i,n)})}),r.registry[s].push({hook:o,orig:t})}var Ks=Js;function Js(r,e,s){if(r.registry[e]){var o=r.registry[e].map(function(t){return t.orig}).indexOf(s);o!==-1&&r.registry[e].splice(o,1)}}var Tr=zs,Zs=Ms,Xs=Ks,Ze=Function.bind,Xe=Ze.bind(Ze);function Er(r,e,s){var o=Xe(Xs,null).apply(null,s?[e,s]:[e]);r.api={remove:o},r.remove=o,["before","error","after","wrap"].forEach(function(t){var a=s?[e,t,s]:[e,t];r[t]=r.api[t]=Xe(Zs,null).apply(null,a)})}function Ys(){var r="h",e={registry:{}},s=Tr.bind(null,e,r);return Er(s,e,r),s}function fr(){var r={registry:{}},e=Tr.bind(null,r);return Er(e,r),e}var Ye=!1;function ne(){return Ye||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),Ye=!0),fr()}ne.Singular=Ys.bind();ne.Collection=fr.bind();ve.exports=ne;ve.exports.Hook=ne;ve.exports.Singular=ne.Singular;var Qs=ve.exports.Collection=ne.Collection,eo="9.0.5",ro=`octokit-endpoint.js/${eo} ${_e()}`,so={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ro},mediaType:{format:""}};function oo(r){return r?Object.keys(r).reduce((e,s)=>(e[s.toLowerCase()]=r[s],e),{}):{}}function to(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const s=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof s=="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function br(r,e){const s=Object.assign({},r);return Object.keys(e).forEach(o=>{to(e[o])?o in r?s[o]=br(r[o],e[o]):Object.assign(s,{[o]:e[o]}):Object.assign(s,{[o]:e[o]})}),s}function Qe(r){for(const e in r)r[e]===void 0&&delete r[e];return r}function Ae(r,e,s){var t;if(typeof e=="string"){let[a,n]=e.split(" ");s=Object.assign(n?{method:a,url:n}:{url:a},s)}else s=Object.assign({},e);s.headers=oo(s.headers),Qe(s),Qe(s.headers);const o=br(r||{},s);return s.url==="/graphql"&&(r&&((t=r.mediaType.previews)!=null&&t.length)&&(o.mediaType.previews=r.mediaType.previews.filter(a=>!o.mediaType.previews.includes(a)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(a=>a.replace(/-preview/,""))),o}function no(r,e){const s=/\?/.test(r)?"&":"?",o=Object.keys(e);return o.length===0?r:r+s+o.map(t=>t==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${t}=${encodeURIComponent(e[t])}`).join("&")}var ao=/\{[^}]+\}/g;function io(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function co(r){const e=r.match(ao);return e?e.map(io).reduce((s,o)=>s.concat(o),[]):[]}function er(r,e){const s={__proto__:null};for(const o of Object.keys(r))e.indexOf(o)===-1&&(s[o]=r[o]);return s}function _r(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function re(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function ie(r,e,s){return e=r==="+"||r==="#"?_r(e):re(e),s?re(s)+"="+e:e}function Y(r){return r!=null}function Ge(r){return r===";"||r==="&"||r==="?"}function lo(r,e,s,o){var t=r[s],a=[];if(Y(t)&&t!=="")if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")t=t.toString(),o&&o!=="*"&&(t=t.substring(0,parseInt(o,10))),a.push(ie(e,t,Ge(e)?s:""));else if(o==="*")Array.isArray(t)?t.filter(Y).forEach(function(n){a.push(ie(e,n,Ge(e)?s:""))}):Object.keys(t).forEach(function(n){Y(t[n])&&a.push(ie(e,t[n],n))});else{const n=[];Array.isArray(t)?t.filter(Y).forEach(function(i){n.push(ie(e,i))}):Object.keys(t).forEach(function(i){Y(t[i])&&(n.push(re(i)),n.push(ie(e,t[i].toString())))}),Ge(e)?a.push(re(s)+"="+n.join(",")):n.length!==0&&a.push(n.join(","))}else e===";"?Y(t)&&a.push(re(s)):t===""&&(e==="&"||e==="?")?a.push(re(s)+"="):t===""&&a.push("");return a}function uo(r){return{expand:po.bind(null,r)}}function po(r,e){var s=["+","#",".","/",";","?","&"];return r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,t,a){if(t){let i="";const l=[];if(s.indexOf(t.charAt(0))!==-1&&(i=t.charAt(0),t=t.substr(1)),t.split(/,/g).forEach(function(p){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(p);l.push(lo(e,i,d[1],d[2]||d[3]))}),i&&i!=="+"){var n=",";return i==="?"?n="&":i!=="#"&&(n=i),(l.length!==0?i:"")+l.join(n)}else return l.join(",")}else return _r(a)}),r==="/"?r:r.replace(/\/$/,"")}function vr(r){var d;let e=r.method.toUpperCase(),s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},r.headers),t,a=er(r,["method","baseUrl","url","headers","request","mediaType"]);const n=co(s);s=uo(s).expand(a),/^http/.test(s)||(s=r.baseUrl+s);const i=Object.keys(r).filter(u=>n.includes(u)).concat("baseUrl"),l=er(a,i);if(!/application\/octet-stream/i.test(o.accept)&&(r.mediaType.format&&(o.accept=o.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`)).join(",")),s.endsWith("/graphql")&&(d=r.mediaType.previews)!=null&&d.length)){const u=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=u.concat(r.mediaType.previews).map(b=>{const w=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${b}-preview${w}`}).join(",")}return["GET","HEAD"].includes(e)?s=no(s,l):"data"in l?t=l.data:Object.keys(l).length&&(t=l),!o["content-type"]&&typeof t<"u"&&(o["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof t>"u"&&(t=""),Object.assign({method:e,url:s,headers:o},typeof t<"u"?{body:t}:null,r.request?{request:r.request}:null)}function go(r,e,s){return vr(Ae(r,e,s))}function wr(r,e){const s=Ae(r,e),o=go.bind(null,s);return Object.assign(o,{DEFAULTS:s,defaults:wr.bind(null,s),merge:Ae.bind(null,s),parse:vr})}var mo=wr(null,so);class rr extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var je={exports:{}},ho=yr;function yr(r,e){if(r&&e)return yr(r)(e);if(typeof r!="function")throw new TypeError("need wrapper function");return Object.keys(r).forEach(function(o){s[o]=r[o]}),s;function s(){for(var o=new Array(arguments.length),t=0;tconsole.warn(r)),fo=Gr(r=>console.warn(r)),ce=class extends Error{constructor(r,e,s){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=e;let o;"headers"in s&&typeof s.headers<"u"&&(o=s.headers),"response"in s&&(this.response=s.response,o=s.response.headers);const t=Object.assign({},s.request);s.request.headers.authorization&&(t.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),t.url=t.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=t,Object.defineProperty(this,"code",{get(){return Eo(new rr("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),e}}),Object.defineProperty(this,"headers",{get(){return fo(new rr("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),o||{}}})}},bo="8.4.0";function _o(r){if(typeof r!="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);if(e===null)return!0;const s=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof s=="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function vo(r){return r.arrayBuffer()}function sr(r){var i,l,p,d;const e=r.request&&r.request.log?r.request.log:console,s=((i=r.request)==null?void 0:i.parseSuccessResponseBody)!==!1;(_o(r.body)||Array.isArray(r.body))&&(r.body=JSON.stringify(r.body));let o={},t,a,{fetch:n}=globalThis;if((l=r.request)!=null&&l.fetch&&(n=r.request.fetch),!n)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return n(r.url,{method:r.method,body:r.body,redirect:(p=r.request)==null?void 0:p.redirect,headers:r.headers,signal:(d=r.request)==null?void 0:d.signal,...r.body&&{duplex:"half"}}).then(async u=>{a=u.url,t=u.status;for(const b of u.headers)o[b[0]]=b[1];if("deprecation"in o){const b=o.link&&o.link.match(/<([^>]+)>; rel="deprecation"/),w=b&&b.pop();e.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${o.sunset}${w?`. See ${w}`:""}`)}if(!(t===204||t===205)){if(r.method==="HEAD"){if(t<400)return;throw new ce(u.statusText,t,{response:{url:a,status:t,headers:o,data:void 0},request:r})}if(t===304)throw new ce("Not modified",t,{response:{url:a,status:t,headers:o,data:await Oe(u)},request:r});if(t>=400){const b=await Oe(u);throw new ce(wo(b),t,{response:{url:a,status:t,headers:o,data:b},request:r})}return s?await Oe(u):u.body}}).then(u=>({status:t,url:a,headers:o,data:u})).catch(u=>{if(u instanceof ce)throw u;if(u.name==="AbortError")throw u;let b=u.message;throw u.name==="TypeError"&&"cause"in u&&(u.cause instanceof Error?b=u.cause.message:typeof u.cause=="string"&&(b=u.cause)),new ce(b,500,{request:r})})}async function Oe(r){const e=r.headers.get("content-type");return/application\/json/.test(e)?r.json().catch(()=>r.text()).catch(()=>""):!e||/^text\/|charset=utf-8$/.test(e)?r.text():vo(r)}function wo(r){if(typeof r=="string")return r;let e;return"documentation_url"in r?e=` - ${r.documentation_url}`:e="","message"in r?Array.isArray(r.errors)?`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}${e}`:`${r.message}${e}`:`Unknown error: ${JSON.stringify(r)}`}function Re(r,e){const s=r.defaults(e);return Object.assign(function(t,a){const n=s.merge(t,a);if(!n.request||!n.request.hook)return sr(s.parse(n));const i=(l,p)=>sr(s.parse(s.merge(l,p)));return Object.assign(i,{endpoint:s,defaults:Re.bind(null,s)}),n.request.hook(i,n)},{endpoint:s,defaults:Re.bind(null,s)})}var Fe=Re(mo,{headers:{"user-agent":`octokit-request.js/${bo} ${_e()}`}}),yo="7.1.0";function ko(r){return`Request failed due to following response errors: `+r.errors.map(e=>` - ${e.message}`).join(` -`)}var Po=class extends Error{constructor(r,e,s){super(ko(s)),this.request=r,this.headers=e,this.response=s,this.name="GraphqlResponseError",this.errors=s.errors,this.data=s.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Go=["method","baseUrl","url","headers","request","query","mediaType"],Oo=["query","method","url"],or=/\/api\/v3\/?$/;function So(r,e,s){if(s){if(typeof e=="string"&&"query"in s)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in s)if(Oo.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const o=typeof e=="string"?Object.assign({query:e},s):e,t=Object.keys(o).reduce((n,i)=>Go.includes(i)?(n[i]=o[i],n):(n.variables||(n.variables={}),n.variables[i]=o[i],n),{}),a=o.baseUrl||r.endpoint.DEFAULTS.baseUrl;return or.test(a)&&(t.url=a.replace(or,"/api/graphql")),r(t).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Po(t,i,n.data)}return n.data.data})}function $e(r,e){const s=r.defaults(e);return Object.assign((t,a)=>So(s,t,a),{defaults:$e.bind(null,s),endpoint:s.endpoint})}$e(Fe,{headers:{"user-agent":`octokit-graphql.js/${yo} ${_e()}`},method:"POST",url:"/graphql"});function Ao(r){return $e(r,{method:"POST",url:"/graphql"})}var Ro=/^v1\./,Fo=/^ghs_/,Co=/^ghu_/;async function Uo(r){const e=r.split(/\./).length===3,s=Ro.test(r)||Fo.test(r),o=Co.test(r);return{type:"token",token:r,tokenType:e?"app":s?"installation":o?"user-to-server":"oauth"}}function Do(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function Lo(r,e,s,o){const t=e.endpoint.merge(s,o);return t.headers.authorization=Do(r),e(t)}var Io=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Uo.bind(null,e),{hook:Lo.bind(null,e)})},Or="5.2.0",tr=()=>{},xo=console.warn.bind(console),jo=console.error.bind(console),nr=`octokit-core.js/${Or} ${_e()}`,oe,$o=(oe=class{static defaults(e){return class extends this{constructor(...o){const t=o[0]||{};if(typeof e=="function"){super(e(t));return}super(Object.assign({},e,t,t.userAgent&&e.userAgent?{userAgent:`${t.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var t;const s=this.plugins;return t=class extends this{},(()=>{t.plugins=s.concat(e.filter(n=>!s.includes(n)))})(),t}constructor(e={}){const s=new Qs,o={baseUrl:Fe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:s.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=e.userAgent?`${e.userAgent} ${nr}`:nr,e.baseUrl&&(o.baseUrl=e.baseUrl),e.previews&&(o.mediaType.previews=e.previews),e.timeZone&&(o.headers["time-zone"]=e.timeZone),this.request=Fe.defaults(o),this.graphql=Ao(this.request).defaults(o),this.log=Object.assign({debug:tr,info:tr,warn:xo,error:jo},e.log),this.hook=s,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));s.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=Io(e.auth);s.wrap("request",a.hook),this.auth=a}const t=this.constructor;for(let a=0;a{oe.VERSION=Or})(),(()=>{oe.plugins=[]})(),oe),qo="4.0.1";function Sr(r){r.hook.wrap("request",(e,s)=>{r.log.debug("request",s);const o=Date.now(),t=r.request.endpoint.parse(s),a=t.url.replace(s.baseUrl,"");return e(s).then(n=>(r.log.info(`${t.method} ${a} - ${n.status} in ${Date.now()-o}ms`),n)).catch(n=>{throw r.log.info(`${t.method} ${a} - ${n.status} in ${Date.now()-o}ms`),n})})}Sr.VERSION=qo;var Bo="11.3.1";function Ho(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const s=r.data.incomplete_results,o=r.data.repository_selection,t=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof s<"u"&&(r.data.incomplete_results=s),typeof o<"u"&&(r.data.repository_selection=o),r.data.total_count=t,r}function qe(r,e,s){const o=typeof e=="function"?e.endpoint(s):r.request.endpoint(e,s),t=typeof e=="function"?e:r.request,a=o.method,n=o.headers;let i=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await t({method:a,url:i,headers:n}),p=Ho(l);return i=((p.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:p}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function Ar(r,e,s,o){return typeof s=="function"&&(o=s,s=void 0),Rr(r,[],qe(r,e,s)[Symbol.asyncIterator](),o)}function Rr(r,e,s,o){return s.next().then(t=>{if(t.done)return e;let a=!1;function n(){a=!0}return e=e.concat(o?o(t.value,n):t.value.data),a?e:Rr(r,e,s,o)})}Object.assign(Ar,{iterator:qe});function Fr(r){return{paginate:Object.assign(Ar.bind(null,r),{iterator:qe.bind(null,r)})}}Fr.VERSION=Bo;var No="13.2.2",Vo={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},zo=Vo,X=new Map;for(const[r,e]of Object.entries(zo))for(const[s,o]of Object.entries(e)){const[t,a,n]=o,[i,l]=t.split(/ /),p=Object.assign({method:i,url:l},a);X.has(r)||X.set(r,new Map),X.get(r).set(s,{scope:r,methodName:s,endpointDefaults:p,decorations:n})}var Mo={has({scope:r},e){return X.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,s){return Object.defineProperty(r.cache,e,s),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...X.get(r).keys()]},set(r,e,s){return r.cache[e]=s},get({octokit:r,scope:e,cache:s},o){if(s[o])return s[o];const t=X.get(e).get(o);if(!t)return;const{endpointDefaults:a,decorations:n}=t;return n?s[o]=Ko(r,e,o,a,n):s[o]=r.request.defaults(a),s[o]}};function Wo(r){const e={};for(const s of X.keys())e[s]=new Proxy({octokit:r,scope:s,cache:{}},Mo);return e}function Ko(r,e,s,o,t){const a=r.request.defaults(o);function n(...i){let l=a.endpoint.merge(...i);if(t.mapToData)return l=Object.assign({},l,{data:l[t.mapToData],[t.mapToData]:void 0}),a(l);if(t.renamed){const[p,d]=t.renamed;r.log.warn(`octokit.${e}.${s}() has been renamed to octokit.${p}.${d}()`)}if(t.deprecated&&r.log.warn(t.deprecated),t.renamedParameters){const p=a.endpoint.merge(...i);for(const[d,u]of Object.entries(t.renamedParameters))d in p&&(r.log.warn(`"${d}" parameter is deprecated for "octokit.${e}.${s}()". Use "${u}" instead`),u in p||(p[u]=p[d]),delete p[d]);return a(p)}return a(...i)}return Object.assign(n,a)}function Cr(r){const e=Wo(r);return{...e,rest:e}}Cr.VERSION=No;var Jo="20.1.1",Zo=$o.plugin(Sr,Cr,Fr).defaults({userAgent:`octokit-rest.js/${Jo}`});const Xo={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},Yo={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},Qo={build:Xo,package:{productName:"Infinite Image Browsing",version:"0.15.0"},tauri:Yo},Ur=new Zo,et="v"+Qo.package.version,Q=j(),Ce=j(""),Dr=j(""),Lr=j(""),ee=U(()=>({tag:Lr.value||et,hash:Dr.value})),rt=U(()=>Ce.value?Ce.value!==ee.value.tag:!1);async function st(r,e){try{return(await Ur.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(s){console.error("Error fetching the latest commit:",s)}}async function ot(r,e){try{return(await Ur.repos.getLatestRelease({owner:r,repo:e})).data}catch(s){console.error("Error fetching the latest release:",s)}}const ar="zanllp",ir="sd-webui-infinite-image-browsing";ps(500+500*Math.random()).then(async()=>{ds().then(e=>{Lr.value=e.tag??"",Dr.value=e.hash??""}),Q.value=await st(ar,ir);const r=await ot(ar,ir);Ce.value=(r==null?void 0:r.tag_name)??""});const we=r=>(_s("data-v-3c4213f7"),r=r(),vs(),r),tt={class:"container"},nt={class:"header"},at={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},it=we(()=>T("div",{"flex-placeholder":""},null,-1)),ct=we(()=>T("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},"Github",-1)),lt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"last-record"},ut=we(()=>T("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"last-record"},"Releases",-1)),pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"last-record"},dt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},gt={class:"access-mode-message"},mt=we(()=>T("div",{"flex-placeholder":""},null,-1)),ht={class:"content"},Tt={class:"feature-item"},Et={class:"text line-clamp-1"},ft=["onClick"],bt={class:"text line-clamp-2"},_t={key:0,class:"feature-item"},vt={class:"text line-clamp-1"},wt=["onClick"],yt={class:"text line-clamp-2"},kt={key:0,class:"fixed"},Pt={class:"feature-item"},Gt=["onClick"],Ot={class:"text line-clamp-1"},St={class:"text line-clamp-1"},At={class:"text line-clamp-1"},Rt={class:"text line-clamp-1"},Ft={key:1,class:"feature-item recent"},Ct={class:"title"},Ut=["onClick"],Dt={class:"text line-clamp-1"},Lt={class:"ver-info"},It={key:0},xt={key:1},jt={key:2},$t=M({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,s=dr(),o=gs();ms(()=>{e.popAddPathModal&&Pe(e.popAddPathModal.type,e.popAddPathModal.path)});const t={local:D("local"),"tag-search":D("imgSearch"),"fuzzy-search":D("fuzzy-search"),"global-setting":D("globalSettings"),"batch-download":D("batchDownload")+" / "+D("archive")},a=(c,m,P)=>{let v;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"fuzzy-search":case"empty":v={type:c,name:t[c],key:Date.now()+ke()};break;case"local":v={type:c,name:t[c],key:Date.now()+ke(),path:m,mode:P==="scanned-fixed"||P==="walk"?P:"scanned"}}return v},n=(c,m,P)=>{const v=a(c,m,P);if(!v)return;const E=s.tabList[e.tabIdx];E.panes.splice(e.paneIdx,1,v),E.key=v.key},i=(c,m,P)=>{const v=a(c,m,P);if(!v)return;s.tabList[e.tabIdx].panes.push(v)},l=(c,m,P)=>{const v=a(c,m,P);if(!v)return;let E=s.tabList[e.tabIdx+1];E||(E={panes:[],key:"",id:ke()},s.tabList[e.tabIdx+1]=E),E.panes.push(v),E.key=v.key},p=U(()=>{var c;return(c=s.tabListHistoryRecord)==null?void 0:c[1]}),d=U(()=>s.quickMovePaths.filter(({key:c,types:m})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||m.includes("walk"))),u=window.parent!==window,b=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),w=()=>{Ts(p.value),s.tabList=Es(p.value.tabs)},O=U(()=>{var c;return hs?"desktop application":((c=s.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),S=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ";return(c,m)=>{var $,I,V,J;const P=Te,v=ue,E=Le,A=fs,L=bs;return G(),R("div",tt,[T("div",nt,[T("h1",null,_(c.$t("welcome")),1),($=f(s).conf)!=null&&$.enable_access_control&&f(s).dontShowAgain?(G(),R("div",at,[h(f(Me),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):H("",!0),it,ct,T("a",lt,_(c.$t("privacyAndSecurity")),1),h(P,{count:f(rt)?"new":null,offset:[2,0],color:"geekblue"},{default:C(()=>[ut]),_:1},8,["count"]),T("a",pt,_(c.$t("changlog")),1),T("a",dt,_(c.$t("faq")),1),h(E,{value:f(s).darkModeControl,"onUpdate:value":m[0]||(m[0]=g=>f(s).darkModeControl=g),"button-style":"solid"},{default:C(()=>[h(v,{value:"light"},{default:C(()=>[B("Light")]),_:1}),h(v,{value:"auto"},{default:C(()=>[B("Auto")]),_:1}),h(v,{value:"dark"},{default:C(()=>[B("Dark")]),_:1})]),_:1},8,["value"])]),(I=f(s).conf)!=null&&I.enable_access_control&&!f(s).dontShowAgain?(G(),he(A,{key:0,"show-icon":""},{message:C(()=>[T("div",gt,[T("div",null,_(c.$t("accessControlModeTips")),1),mt,T("a",{onClick:m[1]||(m[1]=z(g=>f(s).dontShowAgain=!0,["prevent"]))},_(c.$t("dontShowAgain")),1)])]),icon:C(()=>[h(f(Me))]),_:1})):H("",!0),T("div",ht,[T("div",Tt,[T("h2",null,_(c.$t("walkMode")),1),T("ul",null,[T("li",{onClick:m[2]||(m[2]=g=>f(Pe)("walk")),class:"item"},[T("span",Et,[h(f(He)),B(" "+_(c.$t("add")),1)])]),(G(!0),R(W,null,ae(d.value,g=>(G(),he(Je,{key:g.key,onOpenInNewTab:y=>i("local",g.dir,"walk"),onOpenOnTheRight:y=>l("local",g.dir,"walk")},{default:C(()=>[T("li",{class:"item rem",onClick:z(y=>n("local",g.dir,"walk"),["prevent"])},[T("span",bt,_(g.zh),1),g.can_delete?(G(),R(W,{key:0},[h(L,{type:"link",onClick:z(y=>f(Ke)(g.dir),["stop"])},{default:C(()=>[B(_(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(L,{type:"link",onClick:z(y=>f(We)(g.dir,"walk"),["stop"])},{default:C(()=>[B(_(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):H("",!0)],8,ft)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),f(s).quickMovePaths.length?(G(),R("div",_t,[T("h2",null,_(c.$t("launchFromNormalAndFixed")),1),T("ul",null,[T("li",{onClick:m[3]||(m[3]=g=>f(Pe)("scanned")),class:"item"},[T("span",vt,[h(f(He)),B(" "+_(c.$t("add")),1)])]),(G(!0),R(W,null,ae(f(s).quickMovePaths.filter(({types:g})=>g.includes("cli_access_only")||g.includes("preset")||g.includes("scanned")||g.includes("scanned-fixed")),g=>(G(),R(W,{key:g.key},[(G(!0),R(W,null,ae(g.types.filter(y=>y!=="walk"),y=>(G(),he(Je,{key:y,onOpenInNewTab:q=>i("local",g.dir,y),onOpenOnTheRight:q=>l("local",g.dir,y)},{default:C(()=>[T("li",{class:"item rem",onClick:z(q=>n("local",g.dir,y),["prevent"])},[T("span",yt,[y=="scanned-fixed"?(G(),R("span",kt,"Fixed")):H("",!0),B(_(g.zh),1)]),g.can_delete&&(y==="scanned-fixed"||y==="scanned")?(G(),R(W,{key:0},[h(L,{type:"link",onClick:z(q=>f(Ke)(g.dir),["stop"])},{default:C(()=>[B(_(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(L,{type:"link",onClick:z(q=>f(We)(g.dir,y),["stop"])},{default:C(()=>[B(_(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):H("",!0)],8,wt)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):H("",!0),T("div",Pt,[T("h2",null,_(c.$t("launch")),1),T("ul",null,[(G(!0),R(W,null,ae(Object.keys(t),g=>(G(),R("li",{key:g,class:"item",onClick:z(y=>n(g),["prevent"])},[T("span",Ot,_(t[g]),1)],8,Gt))),128)),T("li",{class:"item",onClick:m[4]||(m[4]=g=>f(o).opened=!0)},[T("span",St,_(c.$t("imgCompare")),1)]),u?(G(),R("li",{key:0,class:"item",onClick:b},[T("span",At,_(c.$t("openInNewWindow")),1)])):H("",!0),(V=p.value)!=null&&V.tabs.length?(G(),R("li",{key:1,class:"item",onClick:w},[T("span",Rt,_(c.$t("restoreLastRecord")),1)])):H("",!0)])]),f(s).recent.length?(G(),R("div",Ft,[T("div",Ct,[T("h2",null,_(c.$t("recent")),1),h(L,{onClick:m[5]||(m[5]=g=>f(s).recent=[]),type:"link"},{default:C(()=>[B(_(c.$t("clear")),1)]),_:1})]),T("ul",null,[(G(!0),R(W,null,ae(f(s).recent,g=>(G(),R("li",{key:g.key,class:"item",onClick:z(y=>n("local",g.path,g.mode),["prevent"])},[h(f(Bs),{class:"icon"}),T("span",Dt,_(S(g.mode))+_(f(s).getShortPath(g.path)),1)],8,Ut))),128))])])):H("",!0)]),T("div",Lt,[T("div",null," Version: "+_(f(ee).tag)+" ("+_(O.value)+") ",1),f(ee).hash?(G(),R("div",It," Hash: "+_(f(ee).hash),1)):H("",!0),f(Q)&&f(ee).hash&&f(Q).sha!==f(ee).hash?(G(),R("div",xt," Not the latest commit ")):H("",!0),f(Q)?(G(),R("div",jt," Latest Commit: "+_(f(Q).sha)+" (Updated at "+_((J=f(Q).commit.author)==null?void 0:J.date)+") ",1)):H("",!0)])])}}});const zt=ws($t,[["__scopeId","data-v-3c4213f7"]]);export{zt as default}; +`)}var Po=class extends Error{constructor(r,e,s){super(ko(s)),this.request=r,this.headers=e,this.response=s,this.name="GraphqlResponseError",this.errors=s.errors,this.data=s.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Go=["method","baseUrl","url","headers","request","query","mediaType"],Oo=["query","method","url"],or=/\/api\/v3\/?$/;function So(r,e,s){if(s){if(typeof e=="string"&&"query"in s)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const n in s)if(Oo.includes(n))return Promise.reject(new Error(`[@octokit/graphql] "${n}" cannot be used as variable name`))}const o=typeof e=="string"?Object.assign({query:e},s):e,t=Object.keys(o).reduce((n,i)=>Go.includes(i)?(n[i]=o[i],n):(n.variables||(n.variables={}),n.variables[i]=o[i],n),{}),a=o.baseUrl||r.endpoint.DEFAULTS.baseUrl;return or.test(a)&&(t.url=a.replace(or,"/api/graphql")),r(t).then(n=>{if(n.data.errors){const i={};for(const l of Object.keys(n.headers))i[l]=n.headers[l];throw new Po(t,i,n.data)}return n.data.data})}function $e(r,e){const s=r.defaults(e);return Object.assign((t,a)=>So(s,t,a),{defaults:$e.bind(null,s),endpoint:s.endpoint})}$e(Fe,{headers:{"user-agent":`octokit-graphql.js/${yo} ${_e()}`},method:"POST",url:"/graphql"});function Ao(r){return $e(r,{method:"POST",url:"/graphql"})}var Ro=/^v1\./,Fo=/^ghs_/,Co=/^ghu_/;async function Uo(r){const e=r.split(/\./).length===3,s=Ro.test(r)||Fo.test(r),o=Co.test(r);return{type:"token",token:r,tokenType:e?"app":s?"installation":o?"user-to-server":"oauth"}}function Do(r){return r.split(/\./).length===3?`bearer ${r}`:`token ${r}`}async function Lo(r,e,s,o){const t=e.endpoint.merge(s,o);return t.headers.authorization=Do(r),e(t)}var Io=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Uo.bind(null,e),{hook:Lo.bind(null,e)})},Or="5.2.0",tr=()=>{},xo=console.warn.bind(console),jo=console.error.bind(console),nr=`octokit-core.js/${Or} ${_e()}`,oe,$o=(oe=class{static defaults(e){return class extends this{constructor(...o){const t=o[0]||{};if(typeof e=="function"){super(e(t));return}super(Object.assign({},e,t,t.userAgent&&e.userAgent?{userAgent:`${t.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var t;const s=this.plugins;return t=class extends this{},(()=>{t.plugins=s.concat(e.filter(n=>!s.includes(n)))})(),t}constructor(e={}){const s=new Qs,o={baseUrl:Fe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:s.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=e.userAgent?`${e.userAgent} ${nr}`:nr,e.baseUrl&&(o.baseUrl=e.baseUrl),e.previews&&(o.mediaType.previews=e.previews),e.timeZone&&(o.headers["time-zone"]=e.timeZone),this.request=Fe.defaults(o),this.graphql=Ao(this.request).defaults(o),this.log=Object.assign({debug:tr,info:tr,warn:xo,error:jo},e.log),this.hook=s,e.authStrategy){const{authStrategy:a,...n}=e,i=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));s.wrap("request",i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const a=Io(e.auth);s.wrap("request",a.hook),this.auth=a}const t=this.constructor;for(let a=0;a{oe.VERSION=Or})(),(()=>{oe.plugins=[]})(),oe),qo="4.0.1";function Sr(r){r.hook.wrap("request",(e,s)=>{r.log.debug("request",s);const o=Date.now(),t=r.request.endpoint.parse(s),a=t.url.replace(s.baseUrl,"");return e(s).then(n=>(r.log.info(`${t.method} ${a} - ${n.status} in ${Date.now()-o}ms`),n)).catch(n=>{throw r.log.info(`${t.method} ${a} - ${n.status} in ${Date.now()-o}ms`),n})})}Sr.VERSION=qo;var Bo="11.3.1";function Ho(r){if(!r.data)return{...r,data:[]};if(!("total_count"in r.data&&!("url"in r.data)))return r;const s=r.data.incomplete_results,o=r.data.repository_selection,t=r.data.total_count;delete r.data.incomplete_results,delete r.data.repository_selection,delete r.data.total_count;const a=Object.keys(r.data)[0],n=r.data[a];return r.data=n,typeof s<"u"&&(r.data.incomplete_results=s),typeof o<"u"&&(r.data.repository_selection=o),r.data.total_count=t,r}function qe(r,e,s){const o=typeof e=="function"?e.endpoint(s):r.request.endpoint(e,s),t=typeof e=="function"?e:r.request,a=o.method,n=o.headers;let i=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!i)return{done:!0};try{const l=await t({method:a,url:i,headers:n}),p=Ho(l);return i=((p.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:p}}catch(l){if(l.status!==409)throw l;return i="",{value:{status:200,headers:{},data:[]}}}}})}}function Ar(r,e,s,o){return typeof s=="function"&&(o=s,s=void 0),Rr(r,[],qe(r,e,s)[Symbol.asyncIterator](),o)}function Rr(r,e,s,o){return s.next().then(t=>{if(t.done)return e;let a=!1;function n(){a=!0}return e=e.concat(o?o(t.value,n):t.value.data),a?e:Rr(r,e,s,o)})}Object.assign(Ar,{iterator:qe});function Fr(r){return{paginate:Object.assign(Ar.bind(null,r),{iterator:qe.bind(null,r)})}}Fr.VERSION=Bo;var No="13.2.2",Vo={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},zo=Vo,X=new Map;for(const[r,e]of Object.entries(zo))for(const[s,o]of Object.entries(e)){const[t,a,n]=o,[i,l]=t.split(/ /),p=Object.assign({method:i,url:l},a);X.has(r)||X.set(r,new Map),X.get(r).set(s,{scope:r,methodName:s,endpointDefaults:p,decorations:n})}var Mo={has({scope:r},e){return X.get(r).has(e)},getOwnPropertyDescriptor(r,e){return{value:this.get(r,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(r,e,s){return Object.defineProperty(r.cache,e,s),!0},deleteProperty(r,e){return delete r.cache[e],!0},ownKeys({scope:r}){return[...X.get(r).keys()]},set(r,e,s){return r.cache[e]=s},get({octokit:r,scope:e,cache:s},o){if(s[o])return s[o];const t=X.get(e).get(o);if(!t)return;const{endpointDefaults:a,decorations:n}=t;return n?s[o]=Ko(r,e,o,a,n):s[o]=r.request.defaults(a),s[o]}};function Wo(r){const e={};for(const s of X.keys())e[s]=new Proxy({octokit:r,scope:s,cache:{}},Mo);return e}function Ko(r,e,s,o,t){const a=r.request.defaults(o);function n(...i){let l=a.endpoint.merge(...i);if(t.mapToData)return l=Object.assign({},l,{data:l[t.mapToData],[t.mapToData]:void 0}),a(l);if(t.renamed){const[p,d]=t.renamed;r.log.warn(`octokit.${e}.${s}() has been renamed to octokit.${p}.${d}()`)}if(t.deprecated&&r.log.warn(t.deprecated),t.renamedParameters){const p=a.endpoint.merge(...i);for(const[d,u]of Object.entries(t.renamedParameters))d in p&&(r.log.warn(`"${d}" parameter is deprecated for "octokit.${e}.${s}()". Use "${u}" instead`),u in p||(p[u]=p[d]),delete p[d]);return a(p)}return a(...i)}return Object.assign(n,a)}function Cr(r){const e=Wo(r);return{...e,rest:e}}Cr.VERSION=No;var Jo="20.1.1",Zo=$o.plugin(Sr,Cr,Fr).defaults({userAgent:`octokit-rest.js/${Jo}`});const Xo={beforeDevCommand:"yarn dev",beforeBuildCommand:"yarn build",devPath:"http://localhost:5173",distDir:"../dist",withGlobalTauri:!1},Yo={allowlist:{all:!0,fs:{all:!0,scope:["**"]},shell:{all:!0,open:!0,sidecar:!0,scope:[{name:"iib_api_server",sidecar:!0}]}},bundle:{active:!0,targets:"all",identifier:"com.zanllp.iib",icon:["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"],externalBin:["iib_api_server"]},security:{csp:null},windows:[{fullscreen:!1,resizable:!0,fileDropEnabled:!1,title:"Infinite Image Browsing",width:800,height:600,maximized:!0}]},Qo={build:Xo,package:{productName:"Infinite Image Browsing",version:"0.16.0"},tauri:Yo},Ur=new Zo,et="v"+Qo.package.version,Q=j(),Ce=j(""),Dr=j(""),Lr=j(""),ee=U(()=>({tag:Lr.value||et,hash:Dr.value})),rt=U(()=>Ce.value?Ce.value!==ee.value.tag:!1);async function st(r,e){try{return(await Ur.repos.listCommits({owner:r,repo:e,per_page:1})).data[0]}catch(s){console.error("Error fetching the latest commit:",s)}}async function ot(r,e){try{return(await Ur.repos.getLatestRelease({owner:r,repo:e})).data}catch(s){console.error("Error fetching the latest release:",s)}}const ar="zanllp",ir="sd-webui-infinite-image-browsing";ps(500+500*Math.random()).then(async()=>{ds().then(e=>{Lr.value=e.tag??"",Dr.value=e.hash??""}),Q.value=await st(ar,ir);const r=await ot(ar,ir);Ce.value=(r==null?void 0:r.tag_name)??""});const we=r=>(_s("data-v-3c4213f7"),r=r(),vs(),r),tt={class:"container"},nt={class:"header"},at={key:0,style:{"margin-left":"16px","font-size":"1.5em"}},it=we(()=>T("div",{"flex-placeholder":""},null,-1)),ct=we(()=>T("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing",target:"_blank",class:"last-record"},"Github",-1)),lt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example",target:"_blank",class:"last-record"},ut=we(()=>T("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/releases",target:"_blank",class:"last-record"},"Releases",-1)),pt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log",target:"_blank",class:"last-record"},dt={href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record"},gt={class:"access-mode-message"},mt=we(()=>T("div",{"flex-placeholder":""},null,-1)),ht={class:"content"},Tt={class:"feature-item"},Et={class:"text line-clamp-1"},ft=["onClick"],bt={class:"text line-clamp-2"},_t={key:0,class:"feature-item"},vt={class:"text line-clamp-1"},wt=["onClick"],yt={class:"text line-clamp-2"},kt={key:0,class:"fixed"},Pt={class:"feature-item"},Gt=["onClick"],Ot={class:"text line-clamp-1"},St={class:"text line-clamp-1"},At={class:"text line-clamp-1"},Rt={class:"text line-clamp-1"},Ft={key:1,class:"feature-item recent"},Ct={class:"title"},Ut=["onClick"],Dt={class:"text line-clamp-1"},Lt={class:"ver-info"},It={key:0},xt={key:1},jt={key:2},$t=M({__name:"emptyStartup",props:{tabIdx:{},paneIdx:{},popAddPathModal:{}},setup(r){const e=r,s=dr(),o=gs();ms(()=>{e.popAddPathModal&&Pe(e.popAddPathModal.type,e.popAddPathModal.path)});const t={local:D("local"),"tag-search":D("imgSearch"),"fuzzy-search":D("fuzzy-search"),"global-setting":D("globalSettings"),"batch-download":D("batchDownload")+" / "+D("archive")},a=(c,m,P)=>{let v;switch(c){case"grid-view":case"tag-search-matched-image-grid":case"img-sli":return;case"global-setting":case"tag-search":case"batch-download":case"fuzzy-search":case"empty":v={type:c,name:t[c],key:Date.now()+ke()};break;case"local":v={type:c,name:t[c],key:Date.now()+ke(),path:m,mode:P==="scanned-fixed"||P==="walk"?P:"scanned"}}return v},n=(c,m,P)=>{const v=a(c,m,P);if(!v)return;const E=s.tabList[e.tabIdx];E.panes.splice(e.paneIdx,1,v),E.key=v.key},i=(c,m,P)=>{const v=a(c,m,P);if(!v)return;s.tabList[e.tabIdx].panes.push(v)},l=(c,m,P)=>{const v=a(c,m,P);if(!v)return;let E=s.tabList[e.tabIdx+1];E||(E={panes:[],key:"",id:ke()},s.tabList[e.tabIdx+1]=E),E.panes.push(v),E.key=v.key},p=U(()=>{var c;return(c=s.tabListHistoryRecord)==null?void 0:c[1]}),d=U(()=>s.quickMovePaths.filter(({key:c,types:m})=>c==="outdir_txt2img_samples"||c==="outdir_img2img_samples"||c==="outdir_txt2img_grids"||c==="outdir_img2img_grids"||m.includes("walk"))),u=window.parent!==window,b=()=>window.parent.open("/infinite_image_browsing"+(window.parent.location.href.includes("theme=dark")?"?__theme=dark":"")),w=()=>{Ts(p.value),s.tabList=Es(p.value.tabs)},O=U(()=>{var c;return hs?"desktop application":((c=s.conf)==null?void 0:c.launch_mode)==="sd"?"sd-webui extension":"standalone"}),S=c=>!c||c==="scanned"?"":c==="walk"?"Walk: ":"Fixed: ";return(c,m)=>{var $,I,V,J;const P=Te,v=ue,E=Le,A=fs,L=bs;return G(),R("div",tt,[T("div",nt,[T("h1",null,_(c.$t("welcome")),1),($=f(s).conf)!=null&&$.enable_access_control&&f(s).dontShowAgain?(G(),R("div",at,[h(f(Me),{title:"Access Control mode",style:{"vertical-align":"text-bottom"}})])):H("",!0),it,ct,T("a",lt,_(c.$t("privacyAndSecurity")),1),h(P,{count:f(rt)?"new":null,offset:[2,0],color:"geekblue"},{default:C(()=>[ut]),_:1},8,["count"]),T("a",pt,_(c.$t("changlog")),1),T("a",dt,_(c.$t("faq")),1),h(E,{value:f(s).darkModeControl,"onUpdate:value":m[0]||(m[0]=g=>f(s).darkModeControl=g),"button-style":"solid"},{default:C(()=>[h(v,{value:"light"},{default:C(()=>[B("Light")]),_:1}),h(v,{value:"auto"},{default:C(()=>[B("Auto")]),_:1}),h(v,{value:"dark"},{default:C(()=>[B("Dark")]),_:1})]),_:1},8,["value"])]),(I=f(s).conf)!=null&&I.enable_access_control&&!f(s).dontShowAgain?(G(),he(A,{key:0,"show-icon":""},{message:C(()=>[T("div",gt,[T("div",null,_(c.$t("accessControlModeTips")),1),mt,T("a",{onClick:m[1]||(m[1]=z(g=>f(s).dontShowAgain=!0,["prevent"]))},_(c.$t("dontShowAgain")),1)])]),icon:C(()=>[h(f(Me))]),_:1})):H("",!0),T("div",ht,[T("div",Tt,[T("h2",null,_(c.$t("walkMode")),1),T("ul",null,[T("li",{onClick:m[2]||(m[2]=g=>f(Pe)("walk")),class:"item"},[T("span",Et,[h(f(He)),B(" "+_(c.$t("add")),1)])]),(G(!0),R(W,null,ae(d.value,g=>(G(),he(Je,{key:g.key,onOpenInNewTab:y=>i("local",g.dir,"walk"),onOpenOnTheRight:y=>l("local",g.dir,"walk")},{default:C(()=>[T("li",{class:"item rem",onClick:z(y=>n("local",g.dir,"walk"),["prevent"])},[T("span",bt,_(g.zh),1),g.can_delete?(G(),R(W,{key:0},[h(L,{type:"link",onClick:z(y=>f(Ke)(g.dir),["stop"])},{default:C(()=>[B(_(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(L,{type:"link",onClick:z(y=>f(We)(g.dir,"walk"),["stop"])},{default:C(()=>[B(_(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):H("",!0)],8,ft)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))])]),f(s).quickMovePaths.length?(G(),R("div",_t,[T("h2",null,_(c.$t("launchFromNormalAndFixed")),1),T("ul",null,[T("li",{onClick:m[3]||(m[3]=g=>f(Pe)("scanned")),class:"item"},[T("span",vt,[h(f(He)),B(" "+_(c.$t("add")),1)])]),(G(!0),R(W,null,ae(f(s).quickMovePaths.filter(({types:g})=>g.includes("cli_access_only")||g.includes("preset")||g.includes("scanned")||g.includes("scanned-fixed")),g=>(G(),R(W,{key:g.key},[(G(!0),R(W,null,ae(g.types.filter(y=>y!=="walk"),y=>(G(),he(Je,{key:y,onOpenInNewTab:q=>i("local",g.dir,y),onOpenOnTheRight:q=>l("local",g.dir,y)},{default:C(()=>[T("li",{class:"item rem",onClick:z(q=>n("local",g.dir,y),["prevent"])},[T("span",yt,[y=="scanned-fixed"?(G(),R("span",kt,"Fixed")):H("",!0),B(_(g.zh),1)]),g.can_delete&&(y==="scanned-fixed"||y==="scanned")?(G(),R(W,{key:0},[h(L,{type:"link",onClick:z(q=>f(Ke)(g.dir),["stop"])},{default:C(()=>[B(_(c.$t("alias")),1)]),_:2},1032,["onClick"]),h(L,{type:"link",onClick:z(q=>f(We)(g.dir,y),["stop"])},{default:C(()=>[B(_(c.$t("remove")),1)]),_:2},1032,["onClick"])],64)):H("",!0)],8,wt)]),_:2},1032,["onOpenInNewTab","onOpenOnTheRight"]))),128))],64))),128))])])):H("",!0),T("div",Pt,[T("h2",null,_(c.$t("launch")),1),T("ul",null,[(G(!0),R(W,null,ae(Object.keys(t),g=>(G(),R("li",{key:g,class:"item",onClick:z(y=>n(g),["prevent"])},[T("span",Ot,_(t[g]),1)],8,Gt))),128)),T("li",{class:"item",onClick:m[4]||(m[4]=g=>f(o).opened=!0)},[T("span",St,_(c.$t("imgCompare")),1)]),u?(G(),R("li",{key:0,class:"item",onClick:b},[T("span",At,_(c.$t("openInNewWindow")),1)])):H("",!0),(V=p.value)!=null&&V.tabs.length?(G(),R("li",{key:1,class:"item",onClick:w},[T("span",Rt,_(c.$t("restoreLastRecord")),1)])):H("",!0)])]),f(s).recent.length?(G(),R("div",Ft,[T("div",Ct,[T("h2",null,_(c.$t("recent")),1),h(L,{onClick:m[5]||(m[5]=g=>f(s).recent=[]),type:"link"},{default:C(()=>[B(_(c.$t("clear")),1)]),_:1})]),T("ul",null,[(G(!0),R(W,null,ae(f(s).recent,g=>(G(),R("li",{key:g.key,class:"item",onClick:z(y=>n("local",g.path,g.mode),["prevent"])},[h(f(Bs),{class:"icon"}),T("span",Dt,_(S(g.mode))+_(f(s).getShortPath(g.path)),1)],8,Ut))),128))])])):H("",!0)]),T("div",Lt,[T("div",null," Version: "+_(f(ee).tag)+" ("+_(O.value)+") ",1),f(ee).hash?(G(),R("div",It," Hash: "+_(f(ee).hash),1)):H("",!0),f(Q)&&f(ee).hash&&f(Q).sha!==f(ee).hash?(G(),R("div",xt," Not the latest commit ")):H("",!0),f(Q)?(G(),R("div",jt," Latest Commit: "+_(f(Q).sha)+" (Updated at "+_((J=f(Q).commit.author)==null?void 0:J.date)+") ",1)):H("",!0)])])}}});const zt=ws($t,[["__scopeId","data-v-3c4213f7"]]);export{zt as default}; diff --git a/vue/dist/assets/functionalCallableComp-32f74df9.js b/vue/dist/assets/functionalCallableComp-168f8428.js similarity index 98% rename from vue/dist/assets/functionalCallableComp-32f74df9.js rename to vue/dist/assets/functionalCallableComp-168f8428.js index 44baf435..7b75cba0 100644 --- a/vue/dist/assets/functionalCallableComp-32f74df9.js +++ b/vue/dist/assets/functionalCallableComp-168f8428.js @@ -1 +1 @@ -import{c as o,A as g,cI as i,co as b,W as w,ad as c,dc as y,dd as h,af as x,ch as O,a9 as I,x as r,de as S,az as F,v as M,r as m,ae as v,q as k,R as D,df as _}from"./index-fad1088f.js";function R(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const V=P;function p(t){for(var e=1;e(await i.value.get("/files",{params:{folder_path:t}})).data,U=async t=>(await i.value.post("/delete_files",{file_paths:t})).data,A=async(t,e,a)=>(await i.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:a})).data,E=async(t,e,a)=>(await i.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:a})).data,N=async t=>{await i.value.post("/mkdirs",{dest_folder:t})},H=t=>{const e=m("");return new Promise(a=>{c.confirm({title:r("inputFolderName"),content:()=>o(v,{value:e.value,"onUpdate:value":n=>e.value=n},null),async onOk(){if(!e.value)return;const n=k(t,e.value);await N(n),a()}})})},W=()=>o("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[D("Tips: "),r("multiSelectTips")]),$=(t,e)=>{const a=b(),n=w(),l=s=>{var u;return!!((u=a.tagMap.get(t.fullpath))!=null&&u.some(f=>f.id===s))};c.confirm({width:"80vw",title:t.name,icon:null,content:()=>o("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[o("video",{style:{maxHeight:y?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:h(t),controls:!0,autoplay:!0},null),o("div",{style:{marginTop:"4px"}},[n.conf.all_custom_tags.map(s=>o("div",{key:s.id,onClick:()=>e==null?void 0:e(s.id),style:{background:l(s.id)?a.getColor(s.name):"var(--zp-primary-background)",color:l(s.id)?"white":a.getColor(s.name),margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease",border:`2px solid ${a.getColor(s.name)}`,"user-select":"none"}},[s.name]))]),o("div",{class:"actions",style:{marginTop:"16px"}},[o(x,{onClick:()=>O([I(t,!0)])},{icon:o(C,null,null),default:r("download")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},B=()=>{c.confirm({title:r("confirmRebuildImageIndex"),onOk:async()=>{await S(),F.emit("searchIndexExpired"),M.success(r("rebuildComplete"))}})},q=t=>{const e=m(t.split(/[\\/]/).pop()??"");return new Promise(a=>{c.confirm({title:r("rename"),content:()=>o(v,{value:e.value,"onUpdate:value":n=>e.value=n},null),async onOk(){if(!e.value)return;const n=await _({path:t,name:e.value});a(n.new_path)}})})};export{W as M,B as a,q as b,E as c,U as d,$ as e,T as g,R as l,A as m,H as o}; +import{c as o,A as g,cI as i,co as b,W as w,ad as c,dc as y,dd as h,af as x,ch as O,a9 as I,x as r,de as S,az as F,v as M,r as m,ae as v,q as k,R as D,df as _}from"./index-28dbaa5b.js";function R(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const V=P;function p(t){for(var e=1;e(await i.value.get("/files",{params:{folder_path:t}})).data,U=async t=>(await i.value.post("/delete_files",{file_paths:t})).data,A=async(t,e,a)=>(await i.value.post("/move_files",{file_paths:t,dest:e,create_dest_folder:a})).data,E=async(t,e,a)=>(await i.value.post("/copy_files",{file_paths:t,dest:e,create_dest_folder:a})).data,N=async t=>{await i.value.post("/mkdirs",{dest_folder:t})},H=t=>{const e=m("");return new Promise(a=>{c.confirm({title:r("inputFolderName"),content:()=>o(v,{value:e.value,"onUpdate:value":n=>e.value=n},null),async onOk(){if(!e.value)return;const n=k(t,e.value);await N(n),a()}})})},W=()=>o("p",{style:{background:"var(--zp-secondary-background)",padding:"8px",borderLeft:"4px solid var(--primary-color)"}},[D("Tips: "),r("multiSelectTips")]),$=(t,e)=>{const a=b(),n=w(),l=s=>{var u;return!!((u=a.tagMap.get(t.fullpath))!=null&&u.some(f=>f.id===s))};c.confirm({width:"80vw",title:t.name,icon:null,content:()=>o("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}},[o("video",{style:{maxHeight:y?"80vh":"60vh",maxWidth:"100%",minWidth:"70%"},src:h(t),controls:!0,autoplay:!0},null),o("div",{style:{marginTop:"4px"}},[n.conf.all_custom_tags.map(s=>o("div",{key:s.id,onClick:()=>e==null?void 0:e(s.id),style:{background:l(s.id)?a.getColor(s.name):"var(--zp-primary-background)",color:l(s.id)?"white":a.getColor(s.name),margin:"2px",padding:"2px 16px","border-radius":"4px",display:"inline-block",cursor:"pointer","font-weight":"bold",transition:".5s all ease",border:`2px solid ${a.getColor(s.name)}`,"user-select":"none"}},[s.name]))]),o("div",{class:"actions",style:{marginTop:"16px"}},[o(x,{onClick:()=>O([I(t,!0)])},{icon:o(C,null,null),default:r("download")})])]),maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},B=()=>{c.confirm({title:r("confirmRebuildImageIndex"),onOk:async()=>{await S(),F.emit("searchIndexExpired"),M.success(r("rebuildComplete"))}})},q=t=>{const e=m(t.split(/[\\/]/).pop()??"");return new Promise(a=>{c.confirm({title:r("rename"),content:()=>o(v,{value:e.value,"onUpdate:value":n=>e.value=n},null),async onOk(){if(!e.value)return;const n=await _({path:t,name:e.value});a(n.new_path)}})})};export{W as M,B as a,q as b,E as c,U as d,$ as e,T as g,R as l,A as m,H as o}; diff --git a/vue/dist/assets/globalSetting-944d58db.js b/vue/dist/assets/globalSetting-649e9b76.js similarity index 94% rename from vue/dist/assets/globalSetting-944d58db.js rename to vue/dist/assets/globalSetting-649e9b76.js index 14b89c32..f8c7471c 100644 --- a/vue/dist/assets/globalSetting-944d58db.js +++ b/vue/dist/assets/globalSetting-649e9b76.js @@ -1 +1 @@ -import{d as R,W as A,r as F,k as E,l as L,N as h,O as v,c as l,Y as o,Z as e,x as u,X as k,U as C,Q as r,T as y,S as m,R as _,a6 as M,aK as z,a7 as H,a2 as x,$ as I,a3 as Q,aL as X,aM as Y,aN as Z,aO as j,af as B,ae as q,V as J}from"./index-fad1088f.js";import{N as T,_ as N,F as ee}from"./numInput-267668f7.js";import"./index-45a15a0d.js";/* empty css */import{_ as O,g as te,C as le}from"./shortcut-5e9fcb9b.js";/* empty css */import{a as ne}from"./functionalCallableComp-32f74df9.js";import"./Checkbox-7b8370e5.js";const K="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",ae=["width","height","src"],oe=R({__name:"ImageSetting",setup(D){function d(S,i){return new Promise(c=>{const n=new Image;n.onload=()=>{const t=document.createElement("canvas");t.width=n.width*i,t.height=n.height*i,t.getContext("2d").drawImage(n,0,0,t.width,t.height),c(t.toDataURL())},n.src=S})}const a=A(),w=F("");return E(()=>[a.enableThumbnail,a.gridThumbnailResolution],L(async()=>{a.enableThumbnail&&(w.value=await d(K,a.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(S,i)=>{const c=N,n=O;return h(),v(y,null,[l(c,{label:e(u)("defaultGridCellWidth")},{default:o(()=>[l(T,{min:64,max:1024,step:32,modelValue:e(a).defaultGridCellWidth,"onUpdate:modelValue":i[0]||(i[0]=t=>e(a).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),l(c,{label:e(u)("useThumbnailPreview")},{default:o(()=>[l(n,{checked:e(a).enableThumbnail,"onUpdate:checked":i[1]||(i[1]=t=>e(a).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),e(a).enableThumbnail?(h(),k(c,{key:0,label:e(u)("thumbnailResolution")},{default:o(()=>[l(T,{modelValue:e(a).gridThumbnailResolution,"onUpdate:modelValue":i[2]||(i[2]=t=>e(a).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):C("",!0),l(c,{label:e(u)("livePreview")},{default:o(()=>[r("div",null,[r("img",{width:e(a).defaultGridCellWidth,height:e(a).defaultGridCellWidth,src:e(a).enableThumbnail?w.value:e(K)},null,8,ae)])]),_:1},8,["label"]),l(c,{label:e(u)("defaultShowChangeIndicators")},{default:o(()=>[l(n,{checked:e(a).defaultChangeIndchecked,"onUpdate:checked":i[3]||(i[3]=t=>e(a).defaultChangeIndchecked=t)},null,8,["checked"])]),_:1},8,["label"]),e(a).defaultChangeIndchecked?(h(),k(c,{key:1,label:e(u)("defaultSeedAsChange")},{default:o(()=>[l(n,{checked:e(a).defaultSeedChangeChecked,"onUpdate:checked":i[4]||(i[4]=t=>e(a).defaultSeedChangeChecked=t)},null,8,["checked"])]),_:1},8,["label"])):C("",!0),l(c,{label:e(u)("previewMaskBackgroundOpacity")},{default:o(()=>[l(T,{min:0,max:1,step:.05,modelValue:e(a).previewBgOpacity,"onUpdate:modelValue":i[5]||(i[5]=t=>e(a).previewBgOpacity=t)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),de={class:"panel"},se={style:{"margin-top":"0"}},ie={class:"lang-select-wrap"},ue={class:"col"},re={class:"col"},ce={class:"col"},me={class:"col"},pe=R({__name:"globalSetting",setup(D){const d=A(),a=F(!1),w=async()=>{window.location.reload()},S=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],i=(n,t)=>{const f=te(n);f&&(d.shortcut[t]=f)},c=async()=>{await X("shutdown_api_server_command"),await Y.removeFile(Z),await j()};return(n,t)=>{const f=B,p=N,U=O,b=B,G=le,$=q,P=ee;return h(),v("div",de,[C("",!0),l(P,null,{default:o(()=>{var V;return[r("h2",se,m(e(u)("ImageBrowsingSettings")),1),l(oe),r("h2",null,m(e(u)("imgSearch")),1),l(p,{label:n.$t("rebuildImageIndex")},{default:o(()=>[l(f,{onClick:e(ne)},{default:o(()=>[_(m(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),r("h2",null,m(e(u)("other")),1),l(p,{label:n.$t("onlyFoldersAndImages")},{default:o(()=>[l(U,{checked:e(d).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=s=>e(d).onlyFoldersAndImages=s)},null,8,["checked"])]),_:1},8,["label"]),l(p,{label:n.$t("defaultSortingMethod")},{default:o(()=>[l(e(M),{value:e(d).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=s=>e(d).defaultSortingMethod=s),conv:e(z),options:e(H)},null,8,["value","conv","options"])]),_:1},8,["label"]),l(p,{label:n.$t("longPressOpenContextMenu")},{default:o(()=>[l(U,{checked:e(d).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=s=>e(d).longPressOpenContextMenu=s)},null,8,["checked"])]),_:1},8,["label"]),l(p,{label:n.$t("lang")},{default:o(()=>[r("div",ie,[l(e(M),{options:S,value:e(d).lang,"onUpdate:value":t[3]||(t[3]=s=>e(d).lang=s),onChange:t[4]||(t[4]=s=>a.value=!0)},null,8,["value"])]),a.value?(h(),k(b,{key:0,type:"primary",onClick:w,ghost:""},{default:o(()=>[_(m(e(u)("langChangeReload")),1)]),_:1})):C("",!0)]),_:1},8,["label"]),(h(!0),v(y,null,x(e(d).ignoredConfirmActions,(s,g)=>(h(),k(p,{label:n.$t(g+"SkipConfirm"),key:g},{default:o(()=>[l(G,{checked:e(d).ignoredConfirmActions[g],"onUpdate:checked":W=>e(d).ignoredConfirmActions[g]=W},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),r("h2",null,m(e(u)("shortcutKey")),1),l(p,{label:n.$t("download")},{default:o(()=>[r("div",ue,[l($,{value:e(d).shortcut.download,onKeydown:t[5]||(t[5]=I(s=>i(s,"download"),["stop","prevent"])),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),l(b,{onClick:t[6]||(t[6]=s=>e(d).shortcut.download=""),class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),l(p,{label:n.$t("deleteSelected")},{default:o(()=>[r("div",re,[l($,{value:e(d).shortcut.delete,onKeydown:t[7]||(t[7]=I(s=>i(s,"delete"),["stop","prevent"])),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),l(b,{onClick:t[8]||(t[8]=s=>e(d).shortcut.delete=""),class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(h(!0),v(y,null,x(((V=e(d).conf)==null?void 0:V.all_custom_tags)??[],s=>(h(),k(p,{label:n.$t("toggleTagSelection",{tag:s.name}),key:s.id},{default:o(()=>[r("div",ce,[l($,{value:e(d).shortcut[`toggle_tag_${s.name}`],onKeydown:I(g=>i(g,`toggle_tag_${s.name}`),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),l(b,{onClick:g=>e(d).shortcut[`toggle_tag_${s.name}`]="",class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),e(Q)?(h(),v(y,{key:0},[r("h2",null,m(e(u)("clientSpecificSettings")),1),l(p,null,{default:o(()=>[r("div",me,[l(b,{onClick:c,class:"clear-btn"},{default:o(()=>[_(m(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):C("",!0)]}),_:1})])}}});const we=J(pe,[["__scopeId","data-v-e5d3d829"]]);export{we as default}; +import{d as R,W as A,r as F,k as E,l as L,N as h,O as v,c as l,Y as o,Z as e,x as u,X as k,U as C,Q as r,T as y,S as m,R as _,a6 as M,aK as z,a7 as H,a2 as x,$ as I,a3 as Q,aL as X,aM as Y,aN as Z,aO as j,af as B,ae as q,V as J}from"./index-28dbaa5b.js";import{N as T,_ as N,F as ee}from"./numInput-7818914c.js";import"./index-e084b841.js";/* empty css */import{_ as O,g as te,C as le}from"./shortcut-aef21d22.js";/* empty css */import{a as ne}from"./functionalCallableComp-168f8428.js";import"./Checkbox-e23ad1bf.js";const K="/infinite_image_browsing/fe-static/assets/sample-55dcafc6.webp",ae=["width","height","src"],oe=R({__name:"ImageSetting",setup(D){function d(S,i){return new Promise(c=>{const n=new Image;n.onload=()=>{const t=document.createElement("canvas");t.width=n.width*i,t.height=n.height*i,t.getContext("2d").drawImage(n,0,0,t.width,t.height),c(t.toDataURL())},n.src=S})}const a=A(),w=F("");return E(()=>[a.enableThumbnail,a.gridThumbnailResolution],L(async()=>{a.enableThumbnail&&(w.value=await d(K,a.gridThumbnailResolution/1024))},300),{immediate:!0,deep:!0}),(S,i)=>{const c=N,n=O;return h(),v(y,null,[l(c,{label:e(u)("defaultGridCellWidth")},{default:o(()=>[l(T,{min:64,max:1024,step:32,modelValue:e(a).defaultGridCellWidth,"onUpdate:modelValue":i[0]||(i[0]=t=>e(a).defaultGridCellWidth=t)},null,8,["modelValue"])]),_:1},8,["label"]),l(c,{label:e(u)("useThumbnailPreview")},{default:o(()=>[l(n,{checked:e(a).enableThumbnail,"onUpdate:checked":i[1]||(i[1]=t=>e(a).enableThumbnail=t)},null,8,["checked"])]),_:1},8,["label"]),e(a).enableThumbnail?(h(),k(c,{key:0,label:e(u)("thumbnailResolution")},{default:o(()=>[l(T,{modelValue:e(a).gridThumbnailResolution,"onUpdate:modelValue":i[2]||(i[2]=t=>e(a).gridThumbnailResolution=t),min:256,max:1024,step:64},null,8,["modelValue"])]),_:1},8,["label"])):C("",!0),l(c,{label:e(u)("livePreview")},{default:o(()=>[r("div",null,[r("img",{width:e(a).defaultGridCellWidth,height:e(a).defaultGridCellWidth,src:e(a).enableThumbnail?w.value:e(K)},null,8,ae)])]),_:1},8,["label"]),l(c,{label:e(u)("defaultShowChangeIndicators")},{default:o(()=>[l(n,{checked:e(a).defaultChangeIndchecked,"onUpdate:checked":i[3]||(i[3]=t=>e(a).defaultChangeIndchecked=t)},null,8,["checked"])]),_:1},8,["label"]),e(a).defaultChangeIndchecked?(h(),k(c,{key:1,label:e(u)("defaultSeedAsChange")},{default:o(()=>[l(n,{checked:e(a).defaultSeedChangeChecked,"onUpdate:checked":i[4]||(i[4]=t=>e(a).defaultSeedChangeChecked=t)},null,8,["checked"])]),_:1},8,["label"])):C("",!0),l(c,{label:e(u)("previewMaskBackgroundOpacity")},{default:o(()=>[l(T,{min:0,max:1,step:.05,modelValue:e(a).previewBgOpacity,"onUpdate:modelValue":i[5]||(i[5]=t=>e(a).previewBgOpacity=t)},null,8,["modelValue"])]),_:1},8,["label"])],64)}}}),de={class:"panel"},se={style:{"margin-top":"0"}},ie={class:"lang-select-wrap"},ue={class:"col"},re={class:"col"},ce={class:"col"},me={class:"col"},pe=R({__name:"globalSetting",setup(D){const d=A(),a=F(!1),w=async()=>{window.location.reload()},S=[{value:"en",text:"English"},{value:"zhHans",text:"简体中文"},{value:"zhHant",text:"繁體中文"},{value:"de",text:"Deutsch"}],i=(n,t)=>{const f=te(n);f&&(d.shortcut[t]=f)},c=async()=>{await X("shutdown_api_server_command"),await Y.removeFile(Z),await j()};return(n,t)=>{const f=B,p=N,U=O,b=B,G=le,$=q,P=ee;return h(),v("div",de,[C("",!0),l(P,null,{default:o(()=>{var V;return[r("h2",se,m(e(u)("ImageBrowsingSettings")),1),l(oe),r("h2",null,m(e(u)("imgSearch")),1),l(p,{label:n.$t("rebuildImageIndex")},{default:o(()=>[l(f,{onClick:e(ne)},{default:o(()=>[_(m(n.$t("start")),1)]),_:1},8,["onClick"])]),_:1},8,["label"]),r("h2",null,m(e(u)("other")),1),l(p,{label:n.$t("onlyFoldersAndImages")},{default:o(()=>[l(U,{checked:e(d).onlyFoldersAndImages,"onUpdate:checked":t[0]||(t[0]=s=>e(d).onlyFoldersAndImages=s)},null,8,["checked"])]),_:1},8,["label"]),l(p,{label:n.$t("defaultSortingMethod")},{default:o(()=>[l(e(M),{value:e(d).defaultSortingMethod,"onUpdate:value":t[1]||(t[1]=s=>e(d).defaultSortingMethod=s),conv:e(z),options:e(H)},null,8,["value","conv","options"])]),_:1},8,["label"]),l(p,{label:n.$t("longPressOpenContextMenu")},{default:o(()=>[l(U,{checked:e(d).longPressOpenContextMenu,"onUpdate:checked":t[2]||(t[2]=s=>e(d).longPressOpenContextMenu=s)},null,8,["checked"])]),_:1},8,["label"]),l(p,{label:n.$t("lang")},{default:o(()=>[r("div",ie,[l(e(M),{options:S,value:e(d).lang,"onUpdate:value":t[3]||(t[3]=s=>e(d).lang=s),onChange:t[4]||(t[4]=s=>a.value=!0)},null,8,["value"])]),a.value?(h(),k(b,{key:0,type:"primary",onClick:w,ghost:""},{default:o(()=>[_(m(e(u)("langChangeReload")),1)]),_:1})):C("",!0)]),_:1},8,["label"]),(h(!0),v(y,null,x(e(d).ignoredConfirmActions,(s,g)=>(h(),k(p,{label:n.$t(g+"SkipConfirm"),key:g},{default:o(()=>[l(G,{checked:e(d).ignoredConfirmActions[g],"onUpdate:checked":W=>e(d).ignoredConfirmActions[g]=W},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"]))),128)),r("h2",null,m(e(u)("shortcutKey")),1),l(p,{label:n.$t("download")},{default:o(()=>[r("div",ue,[l($,{value:e(d).shortcut.download,onKeydown:t[5]||(t[5]=I(s=>i(s,"download"),["stop","prevent"])),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),l(b,{onClick:t[6]||(t[6]=s=>e(d).shortcut.download=""),class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),l(p,{label:n.$t("deleteSelected")},{default:o(()=>[r("div",re,[l($,{value:e(d).shortcut.delete,onKeydown:t[7]||(t[7]=I(s=>i(s,"delete"),["stop","prevent"])),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","placeholder"]),l(b,{onClick:t[8]||(t[8]=s=>e(d).shortcut.delete=""),class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:1})])]),_:1},8,["label"]),(h(!0),v(y,null,x(((V=e(d).conf)==null?void 0:V.all_custom_tags)??[],s=>(h(),k(p,{label:n.$t("toggleTagSelection",{tag:s.name}),key:s.id},{default:o(()=>[r("div",ce,[l($,{value:e(d).shortcut[`toggle_tag_${s.name}`],onKeydown:I(g=>i(g,`toggle_tag_${s.name}`),["stop","prevent"]),placeholder:n.$t("shortcutKeyDescription")},null,8,["value","onKeydown","placeholder"]),l(b,{onClick:g=>e(d).shortcut[`toggle_tag_${s.name}`]="",class:"clear-btn"},{default:o(()=>[_(m(n.$t("clear")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["label"]))),128)),e(Q)?(h(),v(y,{key:0},[r("h2",null,m(e(u)("clientSpecificSettings")),1),l(p,null,{default:o(()=>[r("div",me,[l(b,{onClick:c,class:"clear-btn"},{default:o(()=>[_(m(n.$t("initiateSoftwareStartupConfig")),1)]),_:1})])]),_:1})],64)):C("",!0)]}),_:1})])}}});const we=J(pe,[["__scopeId","data-v-e5d3d829"]]);export{we as default}; diff --git a/vue/dist/assets/gridView-71e07731.js b/vue/dist/assets/gridView-7eddc645.js similarity index 83% rename from vue/dist/assets/gridView-71e07731.js rename to vue/dist/assets/gridView-7eddc645.js index 7834cda5..abfcde8e 100644 --- a/vue/dist/assets/gridView-71e07731.js +++ b/vue/dist/assets/gridView-7eddc645.js @@ -1 +1 @@ -import{u as w,a as y,F as k,d as x}from"./FileItem-55a122b3.js";import{d as b,W as F,co as h,r as D,b7 as I,bb as C,N as V,O as E,c,Y as z,Z as e,a9 as S,ca as B,cJ as R,V as A}from"./index-fad1088f.js";import"./functionalCallableComp-32f74df9.js";import"./index-210fb107.js";/* empty css */const K=b({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,d=F(),{stackViewEl:m}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=h(),s=D(o.files??[]),_=async a=>{const l=B(a);o.allowDragAndDrop&&l&&(s.value=R([...s.value,...l.nodes]))},v=a=>{s.value.splice(a,1)};return I(()=>{d.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(s.value),setFiles:a=>s.value=a})}),(a,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:m,onDrop:_},[c(e(x),{ref:"scroller",class:"file-list",items:s.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:z(({item:t,index:r})=>{var n;return[c(k,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:N=>v(r),"full-screen-preview-image-url":e(S)(t),"extra-tags":(n=t==null?void 0:t.tags)==null?void 0:n.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const H=A(K,[["__scopeId","data-v-f35f4802"]]);export{H as default}; +import{u as w,a as y,F as k,d as x}from"./FileItem-a9860a66.js";import{d as b,W as F,co as h,r as D,b7 as I,bb as C,N as V,O as E,c,Y as z,Z as e,a9 as S,ca as B,cJ as R,V as A}from"./index-28dbaa5b.js";import"./functionalCallableComp-168f8428.js";import"./index-6980ed51.js";/* empty css */const K=b({__name:"gridView",props:{tabIdx:{},paneIdx:{},id:{},removable:{type:Boolean},allowDragAndDrop:{type:Boolean},files:{},paneKey:{}},setup(p){const o=p,d=F(),{stackViewEl:m}=w().toRefs(),{itemSize:i,gridItems:u,cellWidth:f}=y(),g=h(),s=D(o.files??[]),_=async a=>{const l=B(a);o.allowDragAndDrop&&l&&(s.value=R([...s.value,...l.nodes]))},v=a=>{s.value.splice(a,1)};return I(()=>{d.pageFuncExportMap.set(o.paneKey,{getFiles:()=>C(s.value),setFiles:a=>s.value=a})}),(a,l)=>(V(),E("div",{class:"container",ref_key:"stackViewEl",ref:m,onDrop:_},[c(e(x),{ref:"scroller",class:"file-list",items:s.value.slice(),"item-size":e(i).first,"key-field":"fullpath","item-secondary-size":e(i).second,gridItems:e(u)},{default:z(({item:t,index:r})=>{var n;return[c(k,{idx:r,file:t,"cell-width":e(f),"enable-close-icon":o.removable,onCloseIconClick:N=>v(r),"full-screen-preview-image-url":e(S)(t),"extra-tags":(n=t==null?void 0:t.tags)==null?void 0:n.map(e(g).tagConvert),"enable-right-click-menu":!1},null,8,["idx","file","cell-width","enable-close-icon","onCloseIconClick","full-screen-preview-image-url","extra-tags"])]}),_:1},8,["items","item-size","item-secondary-size","gridItems"])],544))}});const H=A(K,[["__scopeId","data-v-f35f4802"]]);export{H as default}; diff --git a/vue/dist/assets/hook-6f37aded.js b/vue/dist/assets/hook-937ac2fb.js similarity index 92% rename from vue/dist/assets/hook-6f37aded.js rename to vue/dist/assets/hook-937ac2fb.js index 87154b4f..1059220c 100644 --- a/vue/dist/assets/hook-6f37aded.js +++ b/vue/dist/assets/hook-937ac2fb.js @@ -1 +1 @@ -import{ah as F,r as g,c5 as q,c6 as A,H as b,B as D,bX as N,bk as z,c7 as G}from"./index-fad1088f.js";import{u as H,a as L,b as O,e as Q}from"./FileItem-55a122b3.js";import{a as j,b as B,c as T}from"./MultiSelectKeep-4400a569.js";let U=0;const W=()=>++U,X=(o,c,{dataUpdateStrategy:l="replace"}={})=>{const n=F([""]),u=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||u.value&&typeof e>"u")return!1;a.value=!0;const s=W();f.value=s;try{let r;if(typeof e=="number"){if(r=n[e],typeof r!="string")return!1}else r=n[n.length-1];const p=yield o(r);if(v.has(s))return v.delete(s),!1;w(c(p));const i=p.cursor;if((e===n.length-1||typeof e!="number")&&(u.value=!i.has_next,i.has_next)){const I=i.next_cursor||i.next;b(typeof I=="string"),n.push(I)}}finally{f.value===s&&(a.value=!1)}return!0}),h=()=>{v.add(f.value),a.value=!1},S=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&h(),b(!a.value),n.splice(0,n.length,""),a.value=!1,t.value=void 0,u.value=!1,s&&(yield d())}),m=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return q({abort:h,load:u,next:d,res:t,loading:a,cursorStack:n,reset:S,[Symbol.asyncIterator]:m,iter:{[Symbol.asyncIterator]:m}})},$=o=>F(X(o,c=>c.files,{dataUpdateStrategy:"merge"})),ee=o=>{const c=F(new Set),l=D(()=>(o.res??[]).filter(y=>!c.has(y.fullpath))),n=N(),{stackViewEl:u,multiSelectedIdxs:t,stack:a,scroller:f}=H({images:l}).toRefs(),{itemSize:v,gridItems:w,cellWidth:d,onScroll:h}=L({fetchNext:()=>o.next()}),{showMenuIdx:S}=O(),{onFileDragStart:m,onFileDragEnd:e}=j(),{showGenInfo:s,imageGenInfo:r,q:p,onContextMenuClick:i,onFileItemClick:I}=B({openNext:z}),{previewIdx:C,previewing:_,onPreviewVisibleChange:E,previewImgMove:M,canPreview:J}=T(),P=async(y,x,R)=>{a.value=[{curr:"",files:l.value}],await i(y,x,R)};Q("removeFiles",async({paths:y})=>{y.forEach(x=>c.add(x))});const k=()=>{G(l.value)};return{images:l,scroller:f,queue:n,iter:o,onContextMenuClickU:P,stackViewEl:u,previewIdx:C,previewing:_,onPreviewVisibleChange:E,previewImgMove:M,canPreview:J,itemSize:v,gridItems:w,showGenInfo:s,imageGenInfo:r,q:p,onContextMenuClick:i,onFileItemClick:I,showMenuIdx:S,multiSelectedIdxs:t,onFileDragStart:m,onFileDragEnd:e,cellWidth:d,onScroll:h,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!o.load;)await o.next();k()}}};export{$ as c,ee as u}; +import{ah as F,r as g,c5 as q,c6 as A,H as b,B as D,bX as N,bk as z,c7 as G}from"./index-28dbaa5b.js";import{u as H,a as L,b as O,e as Q}from"./FileItem-a9860a66.js";import{a as j,b as B,c as T}from"./MultiSelectKeep-40ee7c75.js";let U=0;const W=()=>++U,X=(o,c,{dataUpdateStrategy:l="replace"}={})=>{const n=F([""]),u=g(!1),t=g(),a=g(!1);let f=g(-1);const v=new Set,w=e=>{var s;l==="replace"?t.value=e:l==="merge"&&(b((Array.isArray(t.value)||typeof t.value>"u")&&Array.isArray(e),"数据更新策略为合并时仅可用于值为数组的情况"),t.value=[...(s=t==null?void 0:t.value)!==null&&s!==void 0?s:[],...e])},d=e=>A(void 0,void 0,void 0,function*(){if(a.value||u.value&&typeof e>"u")return!1;a.value=!0;const s=W();f.value=s;try{let r;if(typeof e=="number"){if(r=n[e],typeof r!="string")return!1}else r=n[n.length-1];const p=yield o(r);if(v.has(s))return v.delete(s),!1;w(c(p));const i=p.cursor;if((e===n.length-1||typeof e!="number")&&(u.value=!i.has_next,i.has_next)){const I=i.next_cursor||i.next;b(typeof I=="string"),n.push(I)}}finally{f.value===s&&(a.value=!1)}return!0}),h=()=>{v.add(f.value),a.value=!1},S=(e=!1)=>A(void 0,void 0,void 0,function*(){const{refetch:s,force:r}=typeof e=="object"?e:{refetch:e};r&&h(),b(!a.value),n.splice(0,n.length,""),a.value=!1,t.value=void 0,u.value=!1,s&&(yield d())}),m=()=>({next:()=>A(void 0,void 0,void 0,function*(){if(a.value)throw new Error("不允许同时迭代");return{done:!(yield d()),value:t.value}})});return q({abort:h,load:u,next:d,res:t,loading:a,cursorStack:n,reset:S,[Symbol.asyncIterator]:m,iter:{[Symbol.asyncIterator]:m}})},$=o=>F(X(o,c=>c.files,{dataUpdateStrategy:"merge"})),ee=o=>{const c=F(new Set),l=D(()=>(o.res??[]).filter(y=>!c.has(y.fullpath))),n=N(),{stackViewEl:u,multiSelectedIdxs:t,stack:a,scroller:f}=H({images:l}).toRefs(),{itemSize:v,gridItems:w,cellWidth:d,onScroll:h}=L({fetchNext:()=>o.next()}),{showMenuIdx:S}=O(),{onFileDragStart:m,onFileDragEnd:e}=j(),{showGenInfo:s,imageGenInfo:r,q:p,onContextMenuClick:i,onFileItemClick:I}=B({openNext:z}),{previewIdx:C,previewing:_,onPreviewVisibleChange:E,previewImgMove:M,canPreview:J}=T(),P=async(y,x,R)=>{a.value=[{curr:"",files:l.value}],await i(y,x,R)};Q("removeFiles",async({paths:y})=>{y.forEach(x=>c.add(x))});const k=()=>{G(l.value)};return{images:l,scroller:f,queue:n,iter:o,onContextMenuClickU:P,stackViewEl:u,previewIdx:C,previewing:_,onPreviewVisibleChange:E,previewImgMove:M,canPreview:J,itemSize:v,gridItems:w,showGenInfo:s,imageGenInfo:r,q:p,onContextMenuClick:i,onFileItemClick:I,showMenuIdx:S,multiSelectedIdxs:t,onFileDragStart:m,onFileDragEnd:e,cellWidth:d,onScroll:h,saveLoadedFileAsJson:k,saveAllFileAsJson:async()=>{for(;!o.load;)await o.next();k()}}};export{$ as c,ee as u}; diff --git a/vue/dist/assets/index-fad1088f.js b/vue/dist/assets/index-28dbaa5b.js similarity index 99% rename from vue/dist/assets/index-fad1088f.js rename to vue/dist/assets/index-28dbaa5b.js index f79affa5..4740c7e1 100644 --- a/vue/dist/assets/index-fad1088f.js +++ b/vue/dist/assets/index-28dbaa5b.js @@ -202,7 +202,7 @@ Note that this is not an issue if running this frontend on a browser instead of \r `,l+=`--- PARAMS ---\r `;for(const[d,v]of Object.entries(u))d=="prompt"||d=="negativePrompt"||(l+=d+": "+v+`\r -`);return l}return he(()=>{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>ib(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>ib(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=Yo("VueDiff");return $e(),jt(u,{class:"diff",mode:"split",theme:xe(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const OH={key:0,class:"hint"},PH={class:"hint-inline"},TH=de({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=H(50),a=([{size:c}])=>{r.value=c},i=H(),{width:o}=C9(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=Vf(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([qf(Pi(n.left)),qf(Pi(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=Vf(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,m=v/d,f=document.body.clientWidth/document.body.clientHeight;return m>f?"width":"height"});return(c,d)=>($e(),rt(Ae,null,[ct("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(qS),{class:"default-theme",onResize:a},{default:Et(()=>[c.left?($e(),jt(xe(Yf),{key:0},{default:Et(()=>[x(Sb,{side:"left","max-edge":xe(u),"container-width":xe(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):lr("",!0),c.right?($e(),jt(xe(Yf),{key:1},{default:Et(()=>[x(Sb,{"max-edge":xe(u),percent:r.value,img:c.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):lr("",!0)]),_:1})],512),c.container!=="drawer"?($e(),rt("div",OH,[ct("div",PH,[x(xe(Q9)),kn(" "+mn(c.$t("scrollDownToComparePrompt")),1)])])):lr("",!0),x(EH,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const AH={class:"actions"},IH=de({__name:"ImgSliDrawer",setup(t){const e=YS(),n=H();return(r,a)=>{const i=Rn,o=p2,s=Z4;return $e(),rt(Ae,null,[x(s,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Et(()=>[ct("div",AH,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:Et(()=>[kn(mn(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Et(()=>[kn(mn(r.$t("fullscreenview")),1)]),_:1}),x(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Et(()=>[xe(e).left&&xe(e).right?($e(),jt(TH,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:xe(e).left,right:xe(e).right},null,8,["left","right"])):lr("",!0)]),_:1},8,["visible"]),x(fH)],64)}}});const MH=ls(IH,[["__scopeId","data-v-91484911"]]),kH=de({__name:"SplitViewTab",setup(t){const e=za(),n={local:br(()=>nr(()=>import("./stackView-8b32dee4.js"),["assets/stackView-8b32dee4.js","assets/index-e6abe7d7.js","assets/index-41e4fe63.css","assets/numInput-267668f7.js","assets/index-45a15a0d.js","assets/index-abca4c64.css","assets/functionalCallableComp-32f74df9.js","assets/shortcut-5e9fcb9b.js","assets/Checkbox-7b8370e5.js","assets/shortcut-921d11b4.css","assets/numInput-22a3cb3a.css","assets/index-9fed83c2.css","assets/index-210fb107.js","assets/index-80432a0c.css","assets/FileItem-55a122b3.js","assets/FileItem-210ba22a.css","assets/MultiSelectKeep-4400a569.js","assets/MultiSelectKeep-4307ff81.css","assets/stackView-e3c4093f.css","assets/index-d55a76b1.css"])),empty:br(()=>nr(()=>import("./emptyStartup-d89fe0f8.js"),["assets/emptyStartup-d89fe0f8.js","assets/Checkbox-7b8370e5.js","assets/index-210fb107.js","assets/index-80432a0c.css","assets/emptyStartup-0b202b6f.css","assets/index-9fed83c2.css"])),"global-setting":br(()=>nr(()=>import("./globalSetting-944d58db.js"),["assets/globalSetting-944d58db.js","assets/numInput-267668f7.js","assets/index-45a15a0d.js","assets/index-abca4c64.css","assets/functionalCallableComp-32f74df9.js","assets/shortcut-5e9fcb9b.js","assets/Checkbox-7b8370e5.js","assets/shortcut-921d11b4.css","assets/numInput-22a3cb3a.css","assets/index-9fed83c2.css","assets/globalSetting-0057dff1.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":br(()=>nr(()=>import("./MatchedImageGrid-61169e0a.js"),["assets/MatchedImageGrid-61169e0a.js","assets/index-e6abe7d7.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-4400a569.js","assets/FileItem-55a122b3.js","assets/functionalCallableComp-32f74df9.js","assets/index-210fb107.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/shortcut-5e9fcb9b.js","assets/Checkbox-7b8370e5.js","assets/shortcut-921d11b4.css","assets/MultiSelectKeep-4307ff81.css","assets/hook-6f37aded.js","assets/MatchedImageGrid-7a6b86c2.css"])),"tag-search":br(()=>nr(()=>import("./TagSearch-6b14d1be.js"),["assets/TagSearch-6b14d1be.js","assets/index-e6abe7d7.js","assets/index-41e4fe63.css","assets/index-45a15a0d.js","assets/index-abca4c64.css","assets/searchHistory-1a31082f.js","assets/searchHistory-d0561c22.css","assets/TagSearch-2ec0d753.css","assets/index-d55a76b1.css"])),"fuzzy-search":br(()=>nr(()=>import("./SubstrSearch-cdc4a40f.js"),["assets/SubstrSearch-cdc4a40f.js","assets/index-e6abe7d7.js","assets/index-41e4fe63.css","assets/index-45a15a0d.js","assets/index-abca4c64.css","assets/FileItem-55a122b3.js","assets/functionalCallableComp-32f74df9.js","assets/index-210fb107.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/MultiSelectKeep-4400a569.js","assets/shortcut-5e9fcb9b.js","assets/Checkbox-7b8370e5.js","assets/shortcut-921d11b4.css","assets/MultiSelectKeep-4307ff81.css","assets/hook-6f37aded.js","assets/searchHistory-1a31082f.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-241755ef.css"])),"img-sli":br(()=>nr(()=>import("./ImgSliPagePane-723e9c72.js"),["assets/ImgSliPagePane-723e9c72.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":br(()=>nr(()=>import("./batchDownload-9e6efa2d.js"),["assets/batchDownload-9e6efa2d.js","assets/FileItem-55a122b3.js","assets/functionalCallableComp-32f74df9.js","assets/index-210fb107.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/batchDownload-08be3fc5.css"])),"grid-view":br(()=>nr(()=>import("./gridView-71e07731.js"),["assets/gridView-71e07731.js","assets/FileItem-55a122b3.js","assets/functionalCallableComp-32f74df9.js","assets/index-210fb107.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/gridView-eef9ac55.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:fr(),name:Re("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(m=>m.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const m=e.createEmptyPane();e.tabList.push({panes:[m],key:m.key,id:fr()})}}};Gf("closeTabPane",(o,s)=>r(o,s,"del"));const a=H();he(()=>e.tabList,async()=>{var o;await ze(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Il(()=>fh.emit("returnToIIB"),100);return U7(async()=>{const o=window.parent;if(!await j9(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),he(g9(),o=>o&&i()),(o,s)=>{const l=Al,u=fo;return $e(),rt("div",{ref_key:"container",ref:a},[x(xe(qS),{class:"default-theme"},{default:Et(()=>[($e(!0),rt(Ae,null,cl(xe(e).tabList,(c,d)=>($e(),jt(xe(Yf),{key:c.id},{default:Et(()=>[x(Y9,{tabIdx:d},{default:Et(()=>[x(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,m)=>r(d,v,m)},{default:Et(()=>[($e(!0),rt(Ae,null,cl(c.panes,(v,m)=>($e(),jt(l,{key:v.key,tab:v.name,class:"pane"},{default:Et(()=>[($e(),jt(YE(n[v.type]),xd({tabIdx:d,paneKey:v.key,paneIdx:m},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(MH)],512)}}});const NH=ls(kH,[["__scopeId","data-v-fccd7a9b"]]),RH=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:fr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,US(),z9(["action","path","mode"]);break}}};function Eb(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!vr(t)}const XS="app.conf.json",yo=H(),JS=()=>Wo.writeFile(XS,JSON.stringify(Me(yo.value),null,4)),$H=de({setup(){const t=async()=>{const e=await TS({directory:!0});if(typeof e=="string"){if(!await Wo.exists(`${e}/config.json`))return Ta.error(Re("tauriLaunchConfMessages.configNotFound"));if(!await Wo.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Ta.error(Re("tauriLaunchConfMessages.folderNotFound"));yo.value.sdwebui_dir=e,Ta.info(Re("tauriLaunchConfMessages.configCompletedMessage")),await JS(),await Nu("shutdown_api_server_command"),await os(1500),await ES()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Re("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Re("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Rn,{onClick:t,type:"primary"},Eb(e=Re("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Re("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Re("tauriLaunchConf.skipThisConfigDescription")]),x(Rn,{type:"primary",onClick:Vt.destroyAll},Eb(n=Re("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),DH=async()=>{try{yo.value=JSON.parse(await Wo.readTextFile(XS))}catch{}yo.value||(yo.value={sdwebui_dir:""},await JS(),Vt.info({title:Re("tauriLaunchConfMessages.firstTimeUserTitle"),content:x($H,null,null),width:"80vw",okText:Re("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Vt.destroyAll}}))},vK=async()=>(await st.value.get("/db/basic_info")).data,hK=async()=>(await st.value.get("/db/expired_dirs")).data,pK=async()=>{await st.value.post("/db/update_image_data",{},{timeout:1/0})},mK=async(t,e)=>(await st.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,gK=async t=>(await st.value.post("/db/add_custom_tag",t)).data,yK=async t=>(await st.value.post("/db/toggle_custom_tag_to_img",t)).data,bK=async t=>{await st.value.post("/db/remove_custom_tag",t)},wK=async t=>(await st.value.post("/db/search_by_substr",t)).data,ZS="/db/extra_paths",_K=async t=>{await st.value.post(ZS,t)},CK=async t=>{await st.value.delete(ZS,{data:t})},SK=async t=>{await st.value.post("/db/alias_extra_path",t)},LH=async t=>(await st.value.post("/db/get_image_tags",{paths:t})).data,xK=()=>st.value.post("/db/rebuild_index"),EK=t=>st.value.post("/db/batch_update_image_tag",t),OK=async t=>(await st.value.post("/db/rename",t)).data;function FH(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const Ob=FH(),BH=ch("useTagStore",()=>{const t=tt(new Map),e=async s=>{if(s=s.filter(l=>!t.has(l)),!!s.length)try{s.forEach(u=>t.set(u,[]));const l=await LH(s);for(const u in l)t.set(u,l[u])}catch{s.forEach(l=>t.delete(l))}},n=new Map,r=s=>{let l=n.get(s);if(!l){const u=kl.hash.sha256.hash(s),c=parseInt(kl.codec.hex.fromBits(u),16)%Ob.length;l=Ob[c],n.set(s,l)}return l},a=async s=>{s.forEach(l=>t.delete(l)),await e(s)},i=s=>({id:s.name,count:0,display_name:null,type:"temp",...s});return{set:(s,l)=>{const u=l.map(c=>i(typeof c=="string"?{name:c}:c));t.set(s,u)},colorCache:n,tagMap:t,getColor:r,fetchImageTags:e,refreshTags:a,tagConvert:i}}),jH=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=BH();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=fr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:US,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(m=>m.key===o));return()=>fh.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},zH=de({__name:"App",setup(t){const e=za(),n=GS(),r=HS.filter(o=>!["tabListHistoryRecord","recent"].includes(o));let a=null;const i=fz(async()=>{il||e.$subscribe(Il(async()=>{const o={};r.forEach(s=>{o[s]=di(e[s])}),JSON.stringify(o)!==JSON.stringify(a)&&(console.log("save global setting",o),await F7("global",o),a=di(o))},500))});return Gf("updateGlobalSetting",async()=>{var u,c;await N7(),console.log(Dl.value);const o=await D7();e.conf=o;const s=await _b(o);e.quickMovePaths=s.filter(d=>{var v,m;return(m=(v=d==null?void 0:d.dir)==null?void 0:v.trim)==null?void 0:m.call(v)});const l=(c=(u=e==null?void 0:e.conf)==null?void 0:u.app_fe_setting)==null?void 0:c.global;!il&&l&&(console.log("restoreFeGlobalSetting",l),a=di(l),r.forEach(d=>{const v=l[d];v!==void 0&&(e[d]=v)})),i(),jH(e),RH(e)}),Gf("returnToIIB",async()=>{const o=e.conf;if(!o)return;const s=o.global_setting;if(!s.outdir_txt2img_samples&&!s.outdir_img2img_samples)return;const l=new Set(e.quickMovePaths.map(c=>c.key));if(l.has("outdir_txt2img_samples")&&l.has("outdir_img2img_samples"))return;const u=await _b(o);e.quickMovePaths=u.filter(c=>{var d,v;return(v=(d=c==null?void 0:c.dir)==null?void 0:d.trim)==null?void 0:v.call(d)})}),he(()=>e.computedTheme==="dark",async o=>{await os();const s=document.getElementsByTagName("html")[0];if(o){document.body.classList.add("dark");const l=document.createElement("style"),{default:u}=await nr(()=>import("./antd.dark-35e9b327.js"),[]);l.innerHTML=u,l.setAttribute("antd-dark",""),s.appendChild(l)}else document.body.classList.remove("dark"),Array.from(s.querySelectorAll("style[antd-dark]")).forEach(l=>l.remove())},{immediate:!0}),he(()=>e.previewBgOpacity,o=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${o})`)},{immediate:!0}),Le(async()=>{il&&DH(),fh.emit("updateGlobalSetting")}),(o,s)=>{const l=ln;return $e(),jt(l,{loading:!xe(n).isIdle},{default:Et(()=>[x(NH)]),_:1},8,["loading"])}}});function HH(t){return typeof t=="object"&&t!==null}function Pb(t,e){return t=HH(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function WH(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function VH(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function UH(t,e){return e.reduce((n,r)=>{const a=r.split(".");return VH(n,a,WH(t,a))},{})}function Tb(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function Ab(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?UH(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function KH(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Pb(o,t)):[Pb(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var m;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((m=t.key)!=null?m:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{Ab(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),Tb(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),Tb(a,o),l==null||l(e),a.$subscribe((u,c)=>{Ab(c,o)},{detached:!0})})}}var GH=KH(),qH=Object.defineProperty,YH=Object.defineProperties,XH=Object.getOwnPropertyDescriptors,Ib=Object.getOwnPropertySymbols,JH=Object.prototype.hasOwnProperty,ZH=Object.prototype.propertyIsEnumerable,Mb=(t,e,n)=>e in t?qH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xf=(t,e)=>{for(var n in e||(e={}))JH.call(e,n)&&Mb(t,n,e[n]);if(Ib)for(var n of Ib(e))ZH.call(e,n)&&Mb(t,n,e[n]);return t},QH=(t,e)=>YH(t,XH(e));function eW(t){return Ul()?(ad(t),!0):!1}const QS=typeof window<"u";function ex(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const tW=t=>t();function nW(t,e={}){let n,r;return i=>{const o=xe(t),s=xe(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function rW(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=xe(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function ao(t,e=200,n=!0,r=!0){return ex(rW(e,n,r),t)}var kb=Object.getOwnPropertySymbols,aW=Object.prototype.hasOwnProperty,iW=Object.prototype.propertyIsEnumerable,oW=(t,e)=>{var n={};for(var r in t)aW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kb)for(var r of kb(t))e.indexOf(r)<0&&iW.call(t,r)&&(n[r]=t[r]);return n};function sW(t,e,n={}){const r=n,{eventFilter:a=tW}=r,i=oW(r,["eventFilter"]);return he(t,ex(a,e),i)}var lW=Object.defineProperty,uW=Object.defineProperties,cW=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,tx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Nb=(t,e,n)=>e in t?lW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fW=(t,e)=>{for(var n in e||(e={}))tx.call(e,n)&&Nb(t,n,e[n]);if(Fl)for(var n of Fl(e))nx.call(e,n)&&Nb(t,n,e[n]);return t},dW=(t,e)=>uW(t,cW(e)),vW=(t,e)=>{var n={};for(var r in t)tx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fl)for(var r of Fl(t))e.indexOf(r)<0&&nx.call(t,r)&&(n[r]=t[r]);return n};function rx(t,e,n={}){const r=n,{debounce:a=0}=r,i=vW(r,["debounce"]);return sW(t,e,dW(fW({},i),{eventFilter:nW(a)}))}function hW(t){var e;const n=xe(t);return(e=n==null?void 0:n.$el)!=null?e:n}const pW=QS?window:void 0,Rb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$b="__vueuse_ssr_handlers__";Rb[$b]=Rb[$b]||{};var Db=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,gW=Object.prototype.propertyIsEnumerable,yW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Db)for(var r of Db(t))e.indexOf(r)<0&&gW.call(t,r)&&(n[r]=t[r]);return n};function bW(t,e,n={}){const r=n,{window:a=pW}=r,i=yW(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=he(()=>hW(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return eW(c),{isSupported:s,stop:c}}var Lb,Fb;QS&&(window!=null&&window.navigator)&&((Lb=window==null?void 0:window.navigator)!=null&&Lb.platform)&&/iP(ad|hone|od)/.test((Fb=window==null?void 0:window.navigator)==null?void 0:Fb.platform);var vh={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var m=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),m&&f.push(new e.Diff(a,m)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var m=this.diff_halfMatch_(i,o);if(m){var f=m[0],h=m[1],g=m[2],p=m[3],y=m[4],b=this.diff_main(f,g,s,l),w=this.diff_main(h,p,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,m=0,f="",h="";d=1&&m>=1){c.splice(d-v-m,v+m),d=d-v-m;for(var g=this.diff_main(f,h,!1,s),p=g.length-1;p>=0;p--)c.splice(d,0,g[p]);d+=g.length}m=0,v=0,f="",h="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,m=new Array(v),f=new Array(v),h=0;hs);C++){for(var O=-C+y;O<=C-b;O+=2){var I=d+O,E;O==-C||O!=C&&m[I-1]l)b+=2;else if(N>u)y+=2;else if(p){var R=d+g-O;if(R>=0&&R=L)return this.diff_bisectSplit_(i,o,E,N,s)}}}for(var B=-C+w;B<=C-_;B+=2){var R=d+B,L;B==-C||B!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!p){var I=d+g-B;if(I>=0&&I=L)return this.diff_bisectSplit_(i,o,E,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),m=o.substring(l),f=this.diff_main(c,d,!1,u),h=this.diff_main(v,m,!1,u);return f.concat(h)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(m){for(var f="",h=0,g=-1,p=s.length;g{var s;return(s=e==null?void 0:e.lImg)==null?void 0:s.fullpath},async s=>{s&&(n.tasks.forEach(l=>l.cancel()),n.pushAction(()=>ib(s)).res.then(l=>{a.value=o(l)}),n.pushAction(()=>ib(e.rImg.fullpath)).res.then(l=>{i.value=o(l)}))},{immediate:!0}),(s,l)=>{const u=Yo("VueDiff");return $e(),jt(u,{class:"diff",mode:"split",theme:xe(r).computedTheme,language:"plaintext",prev:a.value,current:i.value},null,8,["theme","prev","current"])}}});const OH={key:0,class:"hint"},PH={class:"hint-inline"},TH=de({__name:"ImgSliComparePane",props:{left:{},right:{},container:{}},setup(t,{expose:e}){const n=t,r=H(50),a=([{size:c}])=>{r.value=c},i=H(),{width:o}=C9(i);e({requestFullScreen:()=>{var c;(c=i.value)==null||c.requestFullscreen()}});const l=Vf(async()=>{if(!n.left||!n.right)return{width:0,height:0};const[c,d]=await Promise.all([qf(Pi(n.left)),qf(Pi(n.right))]);return{width:Math.max(c.width,d.width),height:Math.max(d.height,c.height)}}),u=Vf(async()=>{const c=l.value;if(!c)return"width";const{height:d,width:v}=c,m=v/d,f=document.body.clientWidth/document.body.clientHeight;return m>f?"width":"height"});return(c,d)=>($e(),rt(Ae,null,[ct("div",{ref_key:"wrapperEl",ref:i,style:{height:"100%"}},[x(xe(qS),{class:"default-theme",onResize:a},{default:Et(()=>[c.left?($e(),jt(xe(Yf),{key:0},{default:Et(()=>[x(Sb,{side:"left","max-edge":xe(u),"container-width":xe(o),percent:r.value,img:c.left},null,8,["max-edge","container-width","percent","img"])]),_:1})):lr("",!0),c.right?($e(),jt(xe(Yf),{key:1},{default:Et(()=>[x(Sb,{"max-edge":xe(u),percent:r.value,img:c.right,side:"right","container-width":xe(o)},null,8,["max-edge","percent","img","container-width"])]),_:1})):lr("",!0)]),_:1})],512),c.container!=="drawer"?($e(),rt("div",OH,[ct("div",PH,[x(xe(Q9)),kn(" "+mn(c.$t("scrollDownToComparePrompt")),1)])])):lr("",!0),x(EH,{lImg:c.left,rImg:c.right},null,8,["lImg","rImg"])],64))}});const AH={class:"actions"},IH=de({__name:"ImgSliDrawer",setup(t){const e=YS(),n=H();return(r,a)=>{const i=Rn,o=p2,s=Z4;return $e(),rt(Ae,null,[x(s,{width:"100vw",visible:xe(e).drawerVisible,"onUpdate:visible":a[2]||(a[2]=l=>xe(e).drawerVisible=l),"destroy-on-close":"",class:"img-sli","close-icon":null},{footer:Et(()=>[ct("div",AH,[x(i,{onClick:a[0]||(a[0]=l=>xe(e).drawerVisible=!1)},{default:Et(()=>[kn(mn(r.$t("close")),1)]),_:1}),x(i,{onClick:a[1]||(a[1]=l=>{var u;return(u=n.value)==null?void 0:u.requestFullScreen()})},{default:Et(()=>[kn(mn(r.$t("fullscreenview")),1)]),_:1}),x(o,{banner:"",style:{height:"32px"},message:"👇 "+r.$t("scrollDownToComparePrompt"),type:"info","show-icon":""},null,8,["message"])])]),default:Et(()=>[xe(e).left&&xe(e).right?($e(),jt(TH,{key:0,ref_key:"splitpane",ref:n,container:"drawer",left:xe(e).left,right:xe(e).right},null,8,["left","right"])):lr("",!0)]),_:1},8,["visible"]),x(fH)],64)}}});const MH=ls(IH,[["__scopeId","data-v-91484911"]]),kH=de({__name:"SplitViewTab",setup(t){const e=za(),n={local:br(()=>nr(()=>import("./stackView-5faa1b55.js"),["assets/stackView-5faa1b55.js","assets/index-4833c8e4.js","assets/index-41e4fe63.css","assets/numInput-7818914c.js","assets/index-e084b841.js","assets/index-abca4c64.css","assets/functionalCallableComp-168f8428.js","assets/shortcut-aef21d22.js","assets/Checkbox-e23ad1bf.js","assets/shortcut-921d11b4.css","assets/numInput-22a3cb3a.css","assets/index-9fed83c2.css","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/FileItem-a9860a66.js","assets/FileItem-210ba22a.css","assets/MultiSelectKeep-40ee7c75.js","assets/MultiSelectKeep-7d9611ab.css","assets/stackView-e3c4093f.css","assets/index-d55a76b1.css"])),empty:br(()=>nr(()=>import("./emptyStartup-e8b69d30.js"),["assets/emptyStartup-e8b69d30.js","assets/Checkbox-e23ad1bf.js","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/emptyStartup-0b202b6f.css","assets/index-9fed83c2.css"])),"global-setting":br(()=>nr(()=>import("./globalSetting-649e9b76.js"),["assets/globalSetting-649e9b76.js","assets/numInput-7818914c.js","assets/index-e084b841.js","assets/index-abca4c64.css","assets/functionalCallableComp-168f8428.js","assets/shortcut-aef21d22.js","assets/Checkbox-e23ad1bf.js","assets/shortcut-921d11b4.css","assets/numInput-22a3cb3a.css","assets/index-9fed83c2.css","assets/globalSetting-0057dff1.css","assets/index-d55a76b1.css"])),"tag-search-matched-image-grid":br(()=>nr(()=>import("./MatchedImageGrid-f6d95674.js"),["assets/MatchedImageGrid-f6d95674.js","assets/index-4833c8e4.js","assets/index-41e4fe63.css","assets/MultiSelectKeep-40ee7c75.js","assets/FileItem-a9860a66.js","assets/functionalCallableComp-168f8428.js","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/shortcut-aef21d22.js","assets/Checkbox-e23ad1bf.js","assets/shortcut-921d11b4.css","assets/MultiSelectKeep-7d9611ab.css","assets/hook-937ac2fb.js","assets/MatchedImageGrid-7a6b86c2.css"])),"tag-search":br(()=>nr(()=>import("./TagSearch-dd8fcb61.js"),["assets/TagSearch-dd8fcb61.js","assets/index-4833c8e4.js","assets/index-41e4fe63.css","assets/index-e084b841.js","assets/index-abca4c64.css","assets/searchHistory-34345204.js","assets/searchHistory-d0561c22.css","assets/TagSearch-2ec0d753.css","assets/index-d55a76b1.css"])),"fuzzy-search":br(()=>nr(()=>import("./SubstrSearch-084810e7.js"),["assets/SubstrSearch-084810e7.js","assets/index-4833c8e4.js","assets/index-41e4fe63.css","assets/index-e084b841.js","assets/index-abca4c64.css","assets/FileItem-a9860a66.js","assets/functionalCallableComp-168f8428.js","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/MultiSelectKeep-40ee7c75.js","assets/shortcut-aef21d22.js","assets/Checkbox-e23ad1bf.js","assets/shortcut-921d11b4.css","assets/MultiSelectKeep-7d9611ab.css","assets/hook-937ac2fb.js","assets/searchHistory-34345204.js","assets/searchHistory-d0561c22.css","assets/SubstrSearch-241755ef.css"])),"img-sli":br(()=>nr(()=>import("./ImgSliPagePane-bc3cba5f.js"),["assets/ImgSliPagePane-bc3cba5f.js","assets/ImgSliPagePane-868b21f8.css"])),"batch-download":br(()=>nr(()=>import("./batchDownload-6d4058ca.js"),["assets/batchDownload-6d4058ca.js","assets/FileItem-a9860a66.js","assets/functionalCallableComp-168f8428.js","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/batchDownload-08be3fc5.css"])),"grid-view":br(()=>nr(()=>import("./gridView-7eddc645.js"),["assets/gridView-7eddc645.js","assets/FileItem-a9860a66.js","assets/functionalCallableComp-168f8428.js","assets/index-6980ed51.js","assets/index-80432a0c.css","assets/FileItem-210ba22a.css","assets/index-9fed83c2.css","assets/gridView-eef9ac55.css"]))},r=(o,s,l)=>{var c,d;const u=e.tabList[o];if(l==="add"){const v={type:"empty",key:fr(),name:Re("emptyStartPage")};u.panes.push(v),u.key=v.key}else{const v=u.panes.findIndex(m=>m.key===s);if(u.key===s&&(u.key=((c=u.panes[v-1])==null?void 0:c.key)??((d=u.panes[1])==null?void 0:d.key)),u.panes.splice(v,1),u.panes.length===0&&e.tabList.splice(o,1),e.tabList.length===0){const m=e.createEmptyPane();e.tabList.push({panes:[m],key:m.key,id:fr()})}}};Gf("closeTabPane",(o,s)=>r(o,s,"del"));const a=H();he(()=>e.tabList,async()=>{var o;await ze(),e.saveRecord(),Array.from(((o=a.value)==null?void 0:o.querySelectorAll(".splitpanes__pane"))??[]).forEach((s,l)=>{Array.from(s.querySelectorAll(".ant-tabs-tab")??[]).forEach((u,c)=>{const d=u;d.setAttribute("draggable","true"),d.setAttribute("tabIdx",l.toString()),d.setAttribute("paneIdx",c.toString()),d.ondragend=()=>{e.dragingTab=void 0},d.ondragstart=v=>{e.dragingTab={tabIdx:l,paneIdx:c},v.dataTransfer.setData("text/plain",JSON.stringify({tabIdx:l,paneIdx:c,from:"tab-drag"}))}})})},{immediate:!0,deep:!0});const i=Il(()=>fh.emit("returnToIIB"),100);return U7(async()=>{const o=window.parent;if(!await j9(()=>o==null?void 0:o.onUiTabChange,200,3e4)){console.log("watch tab change failed");return}o.onUiTabChange(()=>{const s=o.get_uiCurrentTabContent();s!=null&&s.id.includes("infinite-image-browsing")&&i()})}),he(g9(),o=>o&&i()),(o,s)=>{const l=Al,u=fo;return $e(),rt("div",{ref_key:"container",ref:a},[x(xe(qS),{class:"default-theme"},{default:Et(()=>[($e(!0),rt(Ae,null,cl(xe(e).tabList,(c,d)=>($e(),jt(xe(Yf),{key:c.id},{default:Et(()=>[x(Y9,{tabIdx:d},{default:Et(()=>[x(u,{type:"editable-card",activeKey:c.key,"onUpdate:activeKey":v=>c.key=v,onEdit:(v,m)=>r(d,v,m)},{default:Et(()=>[($e(!0),rt(Ae,null,cl(c.panes,(v,m)=>($e(),jt(l,{key:v.key,tab:v.name,class:"pane"},{default:Et(()=>[($e(),jt(YE(n[v.type]),xd({tabIdx:d,paneKey:v.key,paneIdx:m},v),null,16,["tabIdx","paneKey","paneIdx"]))]),_:2},1032,["tab"]))),128))]),_:2},1032,["activeKey","onUpdate:activeKey","onEdit"])]),_:2},1032,["tabIdx"])]),_:2},1024))),128))]),_:1}),x(MH)],512)}}});const NH=ls(kH,[["__scopeId","data-v-fccd7a9b"]]),RH=async t=>{var r;const e=(r=t.conf)==null?void 0:r.global_setting,n=new URLSearchParams(parent.location.search);switch(n.get("action")){case"open":{let a=n.get("path");if(!a||!e)return;const i={extra:e.outdir_extras_samples,save:e.outdir_save,txt2img:e.outdir_txt2img_samples,img2img:e.outdir_img2img_samples};i[a]&&(a=i[a]);const o=t.tabList[0],s=n.get("mode"),l={type:"local",path:a,key:fr(),name:"",mode:["scanned","walk","scanned-fixed"].includes(s||"scanned")?s:"scanned"};o.panes.unshift(l),o.key=l.key,US(),z9(["action","path","mode"]);break}}};function Eb(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!vr(t)}const XS="app.conf.json",yo=H(),JS=()=>Wo.writeFile(XS,JSON.stringify(Me(yo.value),null,4)),$H=de({setup(){const t=async()=>{const e=await TS({directory:!0});if(typeof e=="string"){if(!await Wo.exists(`${e}/config.json`))return Ta.error(Re("tauriLaunchConfMessages.configNotFound"));if(!await Wo.exists(`${e}/extensions/sd-webui-infinite-image-browsing`))return Ta.error(Re("tauriLaunchConfMessages.folderNotFound"));yo.value.sdwebui_dir=e,Ta.info(Re("tauriLaunchConfMessages.configCompletedMessage")),await JS(),await Nu("shutdown_api_server_command"),await os(1500),await ES()}};return()=>{let e,n;return x("div",{style:{padding:"32px 0"}},[x("div",{style:{padding:"16px 0"}},[x("h2",null,[Re("tauriLaunchConf.readSdWebuiConfigTitle")]),x("p",null,[Re("tauriLaunchConf.readSdWebuiConfigDescription")]),x(Rn,{onClick:t,type:"primary"},Eb(e=Re("tauriLaunchConf.selectSdWebuiFolder"))?e:{default:()=>[e]})]),x("div",{style:{padding:"16px 0"}},[x("h2",null,[Re("tauriLaunchConf.skipThisConfigTitle")]),x("p",null,[Re("tauriLaunchConf.skipThisConfigDescription")]),x(Rn,{type:"primary",onClick:Vt.destroyAll},Eb(n=Re("tauriLaunchConf.skipButton"))?n:{default:()=>[n]})])])}}}),DH=async()=>{try{yo.value=JSON.parse(await Wo.readTextFile(XS))}catch{}yo.value||(yo.value={sdwebui_dir:""},await JS(),Vt.info({title:Re("tauriLaunchConfMessages.firstTimeUserTitle"),content:x($H,null,null),width:"80vw",okText:Re("tauriLaunchConf.skipButton"),okButtonProps:{onClick:Vt.destroyAll}}))},vK=async()=>(await st.value.get("/db/basic_info")).data,hK=async()=>(await st.value.get("/db/expired_dirs")).data,pK=async()=>{await st.value.post("/db/update_image_data",{},{timeout:1/0})},mK=async(t,e)=>(await st.value.post("/db/match_images_by_tags",{...t,folder_paths:(t.folder_paths_str??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r),cursor:e})).data,gK=async t=>(await st.value.post("/db/add_custom_tag",t)).data,yK=async t=>(await st.value.post("/db/toggle_custom_tag_to_img",t)).data,bK=async t=>{await st.value.post("/db/remove_custom_tag",t)},wK=async t=>(await st.value.post("/db/search_by_substr",t)).data,ZS="/db/extra_paths",_K=async t=>{await st.value.post(ZS,t)},CK=async t=>{await st.value.delete(ZS,{data:t})},SK=async t=>{await st.value.post("/db/alias_extra_path",t)},LH=async t=>(await st.value.post("/db/get_image_tags",{paths:t})).data,xK=()=>st.value.post("/db/rebuild_index"),EK=t=>st.value.post("/db/batch_update_image_tag",t),OK=async t=>(await st.value.post("/db/rename",t)).data;function FH(){const t=[];for(let a=0;a<72;a++){const o=`hsl(${a*7.2}, 90%, 35%)`;t.push(o)}return t}const Ob=FH(),BH=ch("useTagStore",()=>{const t=tt(new Map),e=async s=>{if(s=s.filter(l=>!t.has(l)),!!s.length)try{s.forEach(u=>t.set(u,[]));const l=await LH(s);for(const u in l)t.set(u,l[u])}catch{s.forEach(l=>t.delete(l))}},n=new Map,r=s=>{let l=n.get(s);if(!l){const u=kl.hash.sha256.hash(s),c=parseInt(kl.codec.hex.fromBits(u),16)%Ob.length;l=Ob[c],n.set(s,l)}return l},a=async s=>{s.forEach(l=>t.delete(l)),await e(s)},i=s=>({id:s.name,count:0,display_name:null,type:"temp",...s});return{set:(s,l)=>{const u=l.map(c=>i(typeof c=="string"?{name:c}:c));t.set(s,u)},colorCache:n,tagMap:t,getColor:r,fetchImageTags:e,refreshTags:a,tagConvert:i}}),jH=async t=>{var i;if(!((i=t.conf)!=null&&i.export_fe_fn))return;const e=BH();a({insertTabPane:({tabIdx:o=0,paneIdx:s=0,pane:l})=>{const u=t.tabList[o];return l.key||(l.key=fr()),u.panes.splice(s,0,l),u.key=l.key,{key:l.key,ref:r(l.key)}},getTabList:()=>t.tabList,getPageRef:r,switch2IIB:US,openIIBInNewTab:()=>window.parent.open("/infinite_image_browsing"),setTagColor(o,s){e.colorCache.set(o,s)},setTags(o,s){e.set(o,s)},getTags(o){return e.tagMap.get(o)},createGridViewFile(o,s){return{name:o.split(/[/\\]/).pop()??"",size:"-",bytes:0,type:"file",created_time:"",date:"",fullpath:o,tags:s==null?void 0:s.map(l=>({name:l})),is_under_scanned_path:!0}}});function r(o){return new Proxy({},{get(s,l,u){var c;if(l==="close"){const d=t.tabList.findIndex(v=>v.panes.some(m=>m.key===o));return()=>fh.emit("closeTabPane",d,o)}return(c=t.pageFuncExportMap.get(o))==null?void 0:c[l]}})}function a(o){const s=window;for(const l in o)s[l]=(...u)=>o[l](...u)}},zH=de({__name:"App",setup(t){const e=za(),n=GS(),r=HS.filter(o=>!["tabListHistoryRecord","recent"].includes(o));let a=null;const i=fz(async()=>{il||e.$subscribe(Il(async()=>{const o={};r.forEach(s=>{o[s]=di(e[s])}),JSON.stringify(o)!==JSON.stringify(a)&&(console.log("save global setting",o),await F7("global",o),a=di(o))},500))});return Gf("updateGlobalSetting",async()=>{var u,c;await N7(),console.log(Dl.value);const o=await D7();e.conf=o;const s=await _b(o);e.quickMovePaths=s.filter(d=>{var v,m;return(m=(v=d==null?void 0:d.dir)==null?void 0:v.trim)==null?void 0:m.call(v)});const l=(c=(u=e==null?void 0:e.conf)==null?void 0:u.app_fe_setting)==null?void 0:c.global;!il&&l&&(console.log("restoreFeGlobalSetting",l),a=di(l),r.forEach(d=>{const v=l[d];v!==void 0&&(e[d]=v)})),i(),jH(e),RH(e)}),Gf("returnToIIB",async()=>{const o=e.conf;if(!o)return;const s=o.global_setting;if(!s.outdir_txt2img_samples&&!s.outdir_img2img_samples)return;const l=new Set(e.quickMovePaths.map(c=>c.key));if(l.has("outdir_txt2img_samples")&&l.has("outdir_img2img_samples"))return;const u=await _b(o);e.quickMovePaths=u.filter(c=>{var d,v;return(v=(d=c==null?void 0:c.dir)==null?void 0:d.trim)==null?void 0:v.call(d)})}),he(()=>e.computedTheme==="dark",async o=>{await os();const s=document.getElementsByTagName("html")[0];if(o){document.body.classList.add("dark");const l=document.createElement("style"),{default:u}=await nr(()=>import("./antd.dark-35e9b327.js"),[]);l.innerHTML=u,l.setAttribute("antd-dark",""),s.appendChild(l)}else document.body.classList.remove("dark"),Array.from(s.querySelectorAll("style[antd-dark]")).forEach(l=>l.remove())},{immediate:!0}),he(()=>e.previewBgOpacity,o=>{document.documentElement.style.setProperty("--iib-preview-mask-bg",`rgba(0, 0, 0, ${o})`)},{immediate:!0}),Le(async()=>{il&&DH(),fh.emit("updateGlobalSetting")}),(o,s)=>{const l=ln;return $e(),jt(l,{loading:!xe(n).isIdle},{default:Et(()=>[x(NH)]),_:1},8,["loading"])}}});function HH(t){return typeof t=="object"&&t!==null}function Pb(t,e){return t=HH(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function WH(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function VH(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function UH(t,e){return e.reduce((n,r)=>{const a=r.split(".");return VH(n,a,WH(t,a))},{})}function Tb(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function Ab(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?UH(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function KH(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a}=e;if(!r)return;const i=(Array.isArray(r)?r.map(o=>Pb(o,t)):[Pb(r,t)]).map(({storage:o=localStorage,beforeRestore:s=null,afterRestore:l=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:c=a.$id,paths:d=null,debug:v=!1})=>{var m;return{storage:o,beforeRestore:s,afterRestore:l,serializer:u,key:((m=t.key)!=null?m:f=>f)(c),paths:d,debug:v}});a.$persist=()=>{i.forEach(o=>{Ab(a.$state,o)})},a.$hydrate=({runHooks:o=!0}={})=>{i.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;o&&(l==null||l(e)),Tb(a,s),o&&(u==null||u(e))})},i.forEach(o=>{const{beforeRestore:s,afterRestore:l}=o;s==null||s(e),Tb(a,o),l==null||l(e),a.$subscribe((u,c)=>{Ab(c,o)},{detached:!0})})}}var GH=KH(),qH=Object.defineProperty,YH=Object.defineProperties,XH=Object.getOwnPropertyDescriptors,Ib=Object.getOwnPropertySymbols,JH=Object.prototype.hasOwnProperty,ZH=Object.prototype.propertyIsEnumerable,Mb=(t,e,n)=>e in t?qH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xf=(t,e)=>{for(var n in e||(e={}))JH.call(e,n)&&Mb(t,n,e[n]);if(Ib)for(var n of Ib(e))ZH.call(e,n)&&Mb(t,n,e[n]);return t},QH=(t,e)=>YH(t,XH(e));function eW(t){return Ul()?(ad(t),!0):!1}const QS=typeof window<"u";function ex(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const tW=t=>t();function nW(t,e={}){let n,r;return i=>{const o=xe(t),s=xe(e.maxWait);if(n&&clearTimeout(n),o<=0||s!==void 0&&s<=0)return r&&(clearTimeout(r),r=null),i();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,i()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,i()},o)}}function rW(t,e=!0,n=!0){let r=0,a,i=!n;const o=()=>{a&&(clearTimeout(a),a=void 0)};return l=>{const u=xe(t),c=Date.now()-r;if(o(),u<=0)return r=Date.now(),l();c>u&&(r=Date.now(),i?i=!1:l()),e&&(a=setTimeout(()=>{r=Date.now(),n||(i=!0),o(),l()},u)),!n&&!a&&(a=setTimeout(()=>i=!0,u))}}function ao(t,e=200,n=!0,r=!0){return ex(rW(e,n,r),t)}var kb=Object.getOwnPropertySymbols,aW=Object.prototype.hasOwnProperty,iW=Object.prototype.propertyIsEnumerable,oW=(t,e)=>{var n={};for(var r in t)aW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&kb)for(var r of kb(t))e.indexOf(r)<0&&iW.call(t,r)&&(n[r]=t[r]);return n};function sW(t,e,n={}){const r=n,{eventFilter:a=tW}=r,i=oW(r,["eventFilter"]);return he(t,ex(a,e),i)}var lW=Object.defineProperty,uW=Object.defineProperties,cW=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,tx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Nb=(t,e,n)=>e in t?lW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fW=(t,e)=>{for(var n in e||(e={}))tx.call(e,n)&&Nb(t,n,e[n]);if(Fl)for(var n of Fl(e))nx.call(e,n)&&Nb(t,n,e[n]);return t},dW=(t,e)=>uW(t,cW(e)),vW=(t,e)=>{var n={};for(var r in t)tx.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Fl)for(var r of Fl(t))e.indexOf(r)<0&&nx.call(t,r)&&(n[r]=t[r]);return n};function rx(t,e,n={}){const r=n,{debounce:a=0}=r,i=vW(r,["debounce"]);return sW(t,e,dW(fW({},i),{eventFilter:nW(a)}))}function hW(t){var e;const n=xe(t);return(e=n==null?void 0:n.$el)!=null?e:n}const pW=QS?window:void 0,Rb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$b="__vueuse_ssr_handlers__";Rb[$b]=Rb[$b]||{};var Db=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,gW=Object.prototype.propertyIsEnumerable,yW=(t,e)=>{var n={};for(var r in t)mW.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Db)for(var r of Db(t))e.indexOf(r)<0&&gW.call(t,r)&&(n[r]=t[r]);return n};function bW(t,e,n={}){const r=n,{window:a=pW}=r,i=yW(r,["window"]);let o;const s=a&&"ResizeObserver"in a,l=()=>{o&&(o.disconnect(),o=void 0)},u=he(()=>hW(t),d=>{l(),s&&a&&d&&(o=new ResizeObserver(e),o.observe(d,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return eW(c),{isSupported:s,stop:c}}var Lb,Fb;QS&&(window!=null&&window.navigator)&&((Lb=window==null?void 0:window.navigator)!=null&&Lb.platform)&&/iP(ad|hone|od)/.test((Fb=window==null?void 0:window.navigator)==null?void 0:Fb.platform);var vh={exports:{}};(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,a=0;e.Diff=function(i,o){return[i,o]},e.prototype.diff_main=function(i,o,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+1e3*this.Diff_Timeout);var u=l;if(i==null||o==null)throw new Error("Null input. (diff_main)");if(i==o)return i?[new e.Diff(a,i)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(i,o),v=i.substring(0,d);i=i.substring(d),o=o.substring(d),d=this.diff_commonSuffix(i,o);var m=i.substring(i.length-d);i=i.substring(0,i.length-d),o=o.substring(0,o.length-d);var f=this.diff_compute_(i,o,c,u);return v&&f.unshift(new e.Diff(a,v)),m&&f.push(new e.Diff(a,m)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,o,s,l){var u;if(!i)return[new e.Diff(r,o)];if(!o)return[new e.Diff(n,i)];var c=i.length>o.length?i:o,d=i.length>o.length?o:i,v=c.indexOf(d);if(v!=-1)return u=[new e.Diff(r,c.substring(0,v)),new e.Diff(a,d),new e.Diff(r,c.substring(v+d.length))],i.length>o.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,o)];var m=this.diff_halfMatch_(i,o);if(m){var f=m[0],h=m[1],g=m[2],p=m[3],y=m[4],b=this.diff_main(f,g,s,l),w=this.diff_main(h,p,s,l);return b.concat([new e.Diff(a,y)],w)}return s&&i.length>100&&o.length>100?this.diff_lineMode_(i,o,l):this.diff_bisect_(i,o,l)},e.prototype.diff_lineMode_=function(i,o,s){var l=this.diff_linesToChars_(i,o);i=l.chars1,o=l.chars2;var u=l.lineArray,c=this.diff_main(i,o,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(a,""));for(var d=0,v=0,m=0,f="",h="";d=1&&m>=1){c.splice(d-v-m,v+m),d=d-v-m;for(var g=this.diff_main(f,h,!1,s),p=g.length-1;p>=0;p--)c.splice(d,0,g[p]);d+=g.length}m=0,v=0,f="",h="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,o,s){for(var l=i.length,u=o.length,c=Math.ceil((l+u)/2),d=c,v=2*c,m=new Array(v),f=new Array(v),h=0;hs);C++){for(var O=-C+y;O<=C-b;O+=2){var I=d+O,E;O==-C||O!=C&&m[I-1]l)b+=2;else if(N>u)y+=2;else if(p){var R=d+g-O;if(R>=0&&R=L)return this.diff_bisectSplit_(i,o,E,N,s)}}}for(var B=-C+w;B<=C-_;B+=2){var R=d+B,L;B==-C||B!=C&&f[R-1]l)_+=2;else if(j>u)w+=2;else if(!p){var I=d+g-B;if(I>=0&&I=L)return this.diff_bisectSplit_(i,o,E,N,s)}}}}return[new e.Diff(n,i),new e.Diff(r,o)]},e.prototype.diff_bisectSplit_=function(i,o,s,l,u){var c=i.substring(0,s),d=o.substring(0,l),v=i.substring(s),m=o.substring(l),f=this.diff_main(c,d,!1,u),h=this.diff_main(v,m,!1,u);return f.concat(h)},e.prototype.diff_linesToChars_=function(i,o){var s=[],l={};s[0]="";function u(m){for(var f="",h=0,g=-1,p=s.length;gl?i=i.substring(s-l):so.length?i:o,l=i.length>o.length?o:i;if(s.length<4||2*l.length=b.length?[E,N,R,L,I]:null}var d=c(s,l,Math.ceil(s.length/4)),v=c(s,l,Math.ceil(s.length/2)),m;if(!d&&!v)return null;v?d?m=d[4].length>v[4].length?d:v:m=v:m=d;var f,h,g,p;i.length>o.length?(f=m[0],h=m[1],g=m[2],p=m[3]):(g=m[0],p=m[1],f=m[2],h=m[3]);var y=m[4];return[f,h,g,p,y]},e.prototype.diff_cleanupSemantic=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=0,v=0,m=0,f=0;c0?s[l-1]:-1,d=0,v=0,m=0,f=0,u=null,o=!0)),c++;for(o&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(p>=h.length/2||p>=g.length/2)&&(i.splice(c,0,new e.Diff(a,g.substring(0,p))),i[c-1][1]=h.substring(0,h.length-p),i[c+1][1]=g.substring(p),c++):(y>=h.length/2||y>=g.length/2)&&(i.splice(c,0,new e.Diff(a,h.substring(0,y))),i[c-1][0]=r,i[c-1][1]=g.substring(0,g.length-y),i[c+1][0]=n,i[c+1][1]=h.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function o(y,b){if(!y||!b)return 6;var w=y.charAt(y.length-1),_=b.charAt(0),C=w.match(e.nonAlphaNumericRegex_),O=_.match(e.nonAlphaNumericRegex_),I=C&&w.match(e.whitespaceRegex_),E=O&&_.match(e.whitespaceRegex_),N=I&&w.match(e.linebreakRegex_),R=E&&_.match(e.linebreakRegex_),L=N&&y.match(e.blanklineEndRegex_),B=R&&b.match(e.blanklineStartRegex_);return L||B?5:N||R?4:C&&!I&&E?3:I||E?2:C||O?1:0}for(var s=1;s=g&&(g=p,m=l,f=u,h=c)}i[s-1][1]!=m&&(m?i[s-1][1]=m:(i.splice(s-1,1),s--),i[s][1]=f,h?i[s+1][1]=h:(i.splice(s+1,1),s--))}s++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var o=!1,s=[],l=0,u=null,c=0,d=!1,v=!1,m=!1,f=!1;c0?s[l-1]:-1,m=f=!1),o=!0)),c++;o&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(a,""));for(var o=0,s=0,l=0,u="",c="",d;o1?(s!==0&&l!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(o-s-l>0&&i[o-s-l-1][0]==a?i[o-s-l-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(a,c.substring(0,d))),o++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[o][1]=c.substring(c.length-d)+i[o][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),o-=s+l,i.splice(o,s+l),u.length&&(i.splice(o,0,new e.Diff(n,u)),o++),c.length&&(i.splice(o,0,new e.Diff(r,c)),o++),o++):o!==0&&i[o-1][0]==a?(i[o-1][1]+=i[o][1],i.splice(o,1)):o++,l=0,s=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var v=!1;for(o=1;oo));d++)u=s,c=l;return i.length!=d&&i[d][0]===n?c:c+(o-u)},e.prototype.diff_prettyHtml=function(i){for(var o=[],s=/&/g,l=//g,c=/\n/g,d=0;d");switch(v){case r:o[d]=''+f+"";break;case n:o[d]=''+f+"";break;case a:o[d]=""+f+"";break}}return o.join("")},e.prototype.diff_text1=function(i){for(var o=[],s=0;sthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(o),u=this;function c(E,N){var R=E/o.length,L=Math.abs(s-N);return u.Match_Distance?R+L/u.Match_Distance:L?1:R}var d=this.Match_Threshold,v=i.indexOf(o,s);v!=-1&&(d=Math.min(c(0,v),d),v=i.lastIndexOf(o,s+o.length),v!=-1&&(d=Math.min(c(0,v),d)));var m=1<=b;C--){var O=l[i.charAt(C-1)];if(y===0?_[C]=(_[C+1]<<1|1)&O:_[C]=(_[C+1]<<1|1)&O|((p[C+1]|p[C])<<1|1)|p[C+1],_[C]&m){var I=c(y,C-1);if(I<=d)if(d=I,v=C-1,v>s)b=Math.max(1,2*s-v);else break}}if(c(y+1,s)>d)break;p=_}return v},e.prototype.match_alphabet_=function(i){for(var o={},s=0;s"u")l=i,u=this.diff_main(l,o,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof o>"u"&&typeof s>"u")u=i,l=this.diff_text1(u);else if(typeof i=="string"&&o&&typeof o=="object"&&typeof s>"u")l=i,u=o;else if(typeof i=="string"&&typeof o=="string"&&s&&typeof s=="object")l=i,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,v=0,m=0,f=0,h=l,g=l,p=0;p=2*this.Patch_Margin&&v&&(this.patch_addContext_(d,h),c.push(d),d=new e.patch_obj,v=0,h=g,m=f);break}y!==r&&(m+=b.length),y!==n&&(f+=b.length)}return v&&(this.patch_addContext_(d,h),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var o=[],s=0;sthis.Match_MaxBits?(m=this.match_main(o,v.substring(0,this.Match_MaxBits),d),m!=-1&&(f=this.match_main(o,v.substring(v.length-this.Match_MaxBits),d+v.length-this.Match_MaxBits),(f==-1||m>=f)&&(m=-1))):m=this.match_main(o,v,d),m==-1)u[c]=!1,l-=i[c].length2-i[c].length1;else{u[c]=!0,l=m-d;var h;if(f==-1?h=o.substring(m,m+v.length):h=o.substring(m,f+this.Match_MaxBits),v==h)o=o.substring(0,m)+this.diff_text2(i[c].diffs)+o.substring(m+v.length);else{var g=this.diff_main(v,h,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(g)/v.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(g);for(var p=0,y,b=0;bc[0][1].length){var d=o-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=a)c.push(new e.Diff(a,s)),u.length1+=o,u.length2+=o;else if(o>c[c.length-1][1].length){var d=o-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},e.prototype.patch_splitMax=function(i){for(var o=this.Match_MaxBits,s=0;s2*o?(v.length1+=h.length,u+=h.length,m=!1,v.diffs.push(new e.Diff(f,h)),l.diffs.shift()):(h=h.substring(0,o-v.length1-this.Patch_Margin),v.length1+=h.length,u+=h.length,f===a?(v.length2+=h.length,c+=h.length):m=!1,v.diffs.push(new e.Diff(f,h)),h==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(h.length))}d=this.diff_text2(v.diffs),d=d.substring(d.length-this.Patch_Margin);var g=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);g!==""&&(v.length1+=g.length,v.length2+=g.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===a?v.diffs[v.diffs.length-1][1]+=g:v.diffs.push(new e.Diff(a,g))),m||i.splice(++s,0,v)}}},e.prototype.patch_toText=function(i){for(var o=[],s=0;s=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var a,r,m,s=n.overlay||((a=o.overlay)===null||a===void 0?void 0:a.call(o)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};R(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&M(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=M(d)?k(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var a=t.slice(0,t.indexOf("Center"));return R(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return t}),N=function(a){P("update:visible",a),P("visibleChange",a)};return function(){var t,a,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=o.default)===null||t===void 0?void 0:t.call(o)[0],C=k(l,se({class:E(l==null||(a=l.props)===null||a===void 0?void 0:a.class,H({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,H({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),$),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});q.Button=ge;const be=q;export{be as D,ge as a}; +import{P as U,d9 as re,a as u,d as F,bw as W,u as z,c as y,cq as le,_ as ie,af as A,aj as E,B as L,bS as R,al as k,bu as se,h as H,da as de,b as ue,as as pe,db as ve,aS as M,bR as ce}from"./index-28dbaa5b.js";var G=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:U.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},T=re(),ye=function(){return u(u({},G()),{},{type:T.type,size:String,htmlType:T.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:U.any,title:String,loading:T.loading,onClick:{type:Function}})},fe=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],me=A.Group;const ge=F({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:W(ye(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(n,f){var o=f.slots,$=f.attrs,P=f.emit,g=function(p){P("update:visible",p),P("visibleChange",p)},i=z("dropdown-button",n),D=i.prefixCls,w=i.direction,O=i.getPopupContainer;return function(){var b,p,e=u(u({},n),$),N=e.type,t=N===void 0?"default":N,a=e.disabled,r=e.loading,m=e.htmlType,s=e.class,d=s===void 0?"":s,l=e.overlay,C=l===void 0?(b=o.overlay)===null||b===void 0?void 0:b.call(o):l,_=e.trigger,v=e.align,c=e.visible;e.onVisibleChange;var h=e.placement,x=h===void 0?w.value==="rtl"?"bottomLeft":"bottomRight":h,S=e.href,Y=e.title,j=e.icon,J=j===void 0?((p=o.icon)===null||p===void 0?void 0:p.call(o))||y(le,null,null):j,K=e.mouseEnterDelay,Q=e.mouseLeaveDelay,X=e.overlayClassName,Z=e.overlayStyle,ee=e.destroyPopupOnHide,te=e.onClick;e["onUpdate:visible"];var ae=ie(e,fe),oe={align:v,disabled:a,trigger:a?[]:_,placement:x,getPopupContainer:O.value,onVisibleChange:g,mouseEnterDelay:K,mouseLeaveDelay:Q,visible:c,overlayClassName:X,overlayStyle:Z,destroyPopupOnHide:ee},V=y(A,{type:t,disabled:a,loading:r,onClick:te,htmlType:m,href:S,title:Y},{default:o.default}),I=y(A,{type:t,icon:J},null);return y(me,u(u({},ae),{},{class:E(D.value,d)}),{default:function(){return[o.leftButton?o.leftButton({button:V}):V,y(be,oe,{default:function(){return[o.rightButton?o.rightButton({button:I}):I]},overlay:function(){return C}})]}})}}});var q=F({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:W(G(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(n,f){var o=f.slots,$=f.attrs,P=f.emit,g=z("dropdown",n),i=g.prefixCls,D=g.rootPrefixCls,w=g.direction,O=g.getPopupContainer,b=L(function(){var t=n.placement,a=t===void 0?"":t,r=n.transitionName;return r!==void 0?r:a.indexOf("top")>=0?"".concat(D.value,"-slide-down"):"".concat(D.value,"-slide-up")}),p=function(){var a,r,m,s=n.overlay||((a=o.overlay)===null||a===void 0?void 0:a.call(o)),d=Array.isArray(s)?s[0]:s;if(!d)return null;var l=d.props||{};R(!l.mode||l.mode==="vertical","Dropdown",'mode="'.concat(l.mode,`" is not supported for Dropdown's Menu.`));var C=l.selectable,_=C===void 0?!1:C,v=l.expandIcon,c=v===void 0?(r=d.children)===null||r===void 0||(m=r.expandIcon)===null||m===void 0?void 0:m.call(r):v,h=typeof c<"u"&&M(c)?c:y("span",{class:"".concat(i.value,"-menu-submenu-arrow")},[y(ce,{class:"".concat(i.value,"-menu-submenu-arrow-icon")},null)]),x=M(d)?k(d,{mode:"vertical",selectable:_,expandIcon:function(){return h}}):d;return x},e=L(function(){var t=n.placement;if(!t)return w.value==="rtl"?"bottomRight":"bottomLeft";if(t.includes("Center")){var a=t.slice(0,t.indexOf("Center"));return R(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(a,"' instead.")),a}return t}),N=function(a){P("update:visible",a),P("visibleChange",a)};return function(){var t,a,r=n.arrow,m=n.trigger,s=n.disabled,d=n.overlayClassName,l=(t=o.default)===null||t===void 0?void 0:t.call(o)[0],C=k(l,se({class:E(l==null||(a=l.props)===null||a===void 0?void 0:a.class,H({},"".concat(i.value,"-rtl"),w.value==="rtl"),"".concat(i.value,"-trigger"))},s?{disabled:s}:{})),_=E(d,H({},"".concat(i.value,"-rtl"),w.value==="rtl")),v=s?[]:m,c;v&&v.indexOf("contextmenu")!==-1&&(c=!0);var h=de({arrowPointAtCenter:ue(r)==="object"&&r.pointAtCenter,autoAdjustOverflow:!0}),x=pe(u(u(u({},n),$),{},{builtinPlacements:h,overlayClassName:_,arrow:r,alignPoint:c,prefixCls:i.value,getPopupContainer:O.value,transitionName:b.value,trigger:v,onVisibleChange:N,placement:e.value}),["overlay","onUpdate:visible"]);return y(ve,x,{default:function(){return[C]},overlay:p})}}});q.Button=ge;const be=q;export{be as D,ge as a}; diff --git a/vue/dist/assets/index-45a15a0d.js b/vue/dist/assets/index-e084b841.js similarity index 98% rename from vue/dist/assets/index-45a15a0d.js rename to vue/dist/assets/index-e084b841.js index 1689c993..b411eec2 100644 --- a/vue/dist/assets/index-45a15a0d.js +++ b/vue/dist/assets/index-e084b841.js @@ -1 +1 @@ -import{r as F,o as P,cB as K,ar as L,B as l,at as T,au as B,d as I,u as $,cC as _,b as y,ba as V,cD as A,aj as E,h as c,c as D,a as G}from"./index-fad1088f.js";const W=function(){var o=F(!1);return P(function(){o.value=K()}),o};var M=Symbol("rowContextKey"),U=function(r){T(M,r)},k=function(){return L(M,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};B("top","middle","bottom","stretch");B("start","end","center","space-around","space-between");var q=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},H=I({compatConfig:{MODE:3},name:"ARow",props:q(),setup:function(r,N){var m=N.slots,v=$("row",r),d=v.prefixCls,h=v.direction,j,x=F({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),S=W();P(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),V(function(){_.unsubscribe(j)});var w=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),S.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return D("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});const Y=H;function J(o){return typeof o=="number"?"".concat(o," ").concat(o," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(o)?"0 0 ".concat(o):o}var Q=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=I({compatConfig:{MODE:3},name:"ACol",props:Q(),setup:function(r,N){var m=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=$("col",r),S=x.prefixCls,w=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=S.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(g){var f,u={},C=r[g];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},c(f,"".concat(a,"-").concat(g,"-").concat(u.span),u.span!==void 0),c(f,"".concat(a,"-").concat(g,"-order-").concat(u.order),u.order||u.order===0),c(f,"".concat(a,"-").concat(g,"-offset-").concat(u.offset),u.offset||u.offset===0),c(f,"".concat(a,"-").concat(g,"-push-").concat(u.push),u.push||u.push===0),c(f,"".concat(a,"-").concat(g,"-pull-").concat(u.pull),u.pull||u.pull===0),c(f,"".concat(a,"-rtl"),w.value==="rtl"),f))}),E(a,(e={},c(e,"".concat(a,"-").concat(t),t!==void 0),c(e,"".concat(a,"-order-").concat(n),n),c(e,"".concat(a,"-offset-").concat(s),s),c(e,"".concat(a,"-push-").concat(i),i),c(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=J(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return D("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});export{Z as C,Y as R}; +import{r as F,o as P,cB as K,ar as L,B as l,at as T,au as B,d as I,u as $,cC as _,b as y,ba as V,cD as A,aj as E,h as c,c as D,a as G}from"./index-28dbaa5b.js";const W=function(){var o=F(!1);return P(function(){o.value=K()}),o};var M=Symbol("rowContextKey"),U=function(r){T(M,r)},k=function(){return L(M,{gutter:l(function(){}),wrap:l(function(){}),supportFlexGap:l(function(){})})};B("top","middle","bottom","stretch");B("start","end","center","space-around","space-between");var q=function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}},H=I({compatConfig:{MODE:3},name:"ARow",props:q(),setup:function(r,N){var m=N.slots,v=$("row",r),d=v.prefixCls,h=v.direction,j,x=F({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),S=W();P(function(){j=_.subscribe(function(e){var t=r.gutter||0;(!Array.isArray(t)&&y(t)==="object"||Array.isArray(t)&&(y(t[0])==="object"||y(t[1])==="object"))&&(x.value=e)})}),V(function(){_.unsubscribe(j)});var w=l(function(){var e=[0,0],t=r.gutter,n=t===void 0?0:t,s=Array.isArray(n)?n:[n,0];return s.forEach(function(i,b){if(y(i)==="object")for(var a=0;a0?"".concat(e[0]/-2,"px"):void 0,s=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),S.value?t.rowGap="".concat(e[1],"px"):s&&(t.marginTop=s,t.marginBottom=s),t});return function(){var e;return D("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});const Y=H;function J(o){return typeof o=="number"?"".concat(o," ").concat(o," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(o)?"0 0 ".concat(o):o}var Q=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const Z=I({compatConfig:{MODE:3},name:"ACol",props:Q(),setup:function(r,N){var m=N.slots,v=k(),d=v.gutter,h=v.supportFlexGap,j=v.wrap,x=$("col",r),S=x.prefixCls,w=x.direction,R=l(function(){var e,t=r.span,n=r.order,s=r.offset,i=r.push,b=r.pull,a=S.value,p={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(g){var f,u={},C=r[g];typeof C=="number"?u.span=C:y(C)==="object"&&(u=C||{}),p=G(G({},p),{},(f={},c(f,"".concat(a,"-").concat(g,"-").concat(u.span),u.span!==void 0),c(f,"".concat(a,"-").concat(g,"-order-").concat(u.order),u.order||u.order===0),c(f,"".concat(a,"-").concat(g,"-offset-").concat(u.offset),u.offset||u.offset===0),c(f,"".concat(a,"-").concat(g,"-push-").concat(u.push),u.push||u.push===0),c(f,"".concat(a,"-").concat(g,"-pull-").concat(u.pull),u.pull||u.pull===0),c(f,"".concat(a,"-rtl"),w.value==="rtl"),f))}),E(a,(e={},c(e,"".concat(a,"-").concat(t),t!==void 0),c(e,"".concat(a,"-order-").concat(n),n),c(e,"".concat(a,"-offset-").concat(s),s),c(e,"".concat(a,"-push-").concat(i),i),c(e,"".concat(a,"-pull-").concat(b),b),e),p)}),O=l(function(){var e=r.flex,t=d.value,n={};if(t&&t[0]>0){var s="".concat(t[0]/2,"px");n.paddingLeft=s,n.paddingRight=s}if(t&&t[1]>0&&!h.value){var i="".concat(t[1]/2,"px");n.paddingTop=i,n.paddingBottom=i}return e&&(n.flex=J(e),j.value===!1&&!n.minWidth&&(n.minWidth=0)),n});return function(){var e;return D("div",{class:R.value,style:O.value},[(e=m.default)===null||e===void 0?void 0:e.call(m)])}}});export{Z as C,Y as R}; diff --git a/vue/dist/assets/numInput-267668f7.js b/vue/dist/assets/numInput-7818914c.js similarity index 99% rename from vue/dist/assets/numInput-267668f7.js rename to vue/dist/assets/numInput-7818914c.js index 17a31c80..e4a4b117 100644 --- a/vue/dist/assets/numInput-267668f7.js +++ b/vue/dist/assets/numInput-7818914c.js @@ -1,4 +1,4 @@ -import{B,ar as tt,aP as lr,i as Z,a as V,b as Ae,aQ as qe,aR as oe,aS as Mt,e as sr,h as T,aT as $t,aU as Tt,aV as or,aW as ur,aX as fr,at as Et,aY as dr,aZ as cr,aj as ne,c as N,T as Te,a_ as vr,d as ae,u as Be,r as Q,k as ve,a$ as hr,b0 as mr,b1 as gr,b2 as pr,b3 as yr,b4 as br,b5 as xr,b6 as At,b7 as qt,b8 as Fr,t as Me,b9 as wr,ba as rt,ak as Cr,au as Ee,P as R,bb as He,av as Bt,bc as nt,bd as kr,be as Vr,bf as ut,bg as Sr,bh as Pr,bi as Or,bj as Mr,bk as $r,bl as Tr,bm as Er,bn as _t,bo as Ar,bp as qr,bq as Br,br as _r,bs as jr,bt as Nr,Z as fe,ah as Lr,bu as Se,l as Rr,bv as jt,bw as at,bx as Ir,w as xe,by as Nt,o as Hr,bz as ye,bA as le,bB as it,_ as De,bC as Dr,bD as Ue,bE as Ur,bF as Wr,bG as Gr,bH as Kr,bI as ft,bJ as zr,j as Xr,bK as Yr,bL as Zr,N as Qr,O as Jr,bM as dt,V as en}from"./index-fad1088f.js";import{C as Lt,R as tn}from"./index-45a15a0d.js";import{l as rn}from"./functionalCallableComp-32f74df9.js";/* empty css */import{a as nn}from"./shortcut-5e9fcb9b.js";var an=Symbol("SizeProvider"),ln=function(e){var r=e?B(function(){return e.size}):tt(an,B(function(){return"default"}));return r};function sn(a,e,r){var t=-1,n=a.length;e<0&&(e=-e>n?0:n+e),r=r>n?n:r,r<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(n);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $e(a,e,r){return un()?$e=Reflect.construct.bind():$e=function(n,i,l){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),f=new o;return l&&we(f,l.prototype),f},$e.apply(null,arguments)}function fn(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function Ge(a){var e=typeof Map=="function"?new Map:void 0;return Ge=function(t){if(t===null||!fn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return $e(t,arguments,We(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),we(n,t)},Ge(a)}var dn=/%[sdj%]/g,cn=function(){};typeof process<"u"&&process.env;function Ke(a){if(!a||!a.length)return null;var e={};return a.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function te(a){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return l}return a}function vn(a){return a==="string"||a==="url"||a==="hex"||a==="email"||a==="date"||a==="pattern"}function X(a,e){return!!(a==null||e==="array"&&Array.isArray(a)&&!a.length||vn(e)&&typeof a=="string"&&!a)}function hn(a,e,r){var t=[],n=0,i=a.length;function l(s){t.push.apply(t,s||[]),n++,n===i&&r(t)}a.forEach(function(s){e(s,l)})}function ct(a,e,r){var t=0,n=a.length;function i(l){if(l&&l.length){r(l);return}var s=t;t=t+1,sn?0:n+e),r=r>n?n:r,r<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(n);++t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $e(a,e,r){return un()?$e=Reflect.construct.bind():$e=function(n,i,l){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),f=new o;return l&&we(f,l.prototype),f},$e.apply(null,arguments)}function fn(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function Ge(a){var e=typeof Map=="function"?new Map:void 0;return Ge=function(t){if(t===null||!fn(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return $e(t,arguments,We(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),we(n,t)},Ge(a)}var dn=/%[sdj%]/g,cn=function(){};typeof process<"u"&&process.env;function Ke(a){if(!a||!a.length)return null;var e={};return a.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function te(a){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return l}return a}function vn(a){return a==="string"||a==="url"||a==="hex"||a==="email"||a==="date"||a==="pattern"}function X(a,e){return!!(a==null||e==="array"&&Array.isArray(a)&&!a.length||vn(e)&&typeof a=="string"&&!a)}function hn(a,e,r){var t=[],n=0,i=a.length;function l(s){t.push.apply(t,s||[]),n++,n===i&&r(t)}a.forEach(function(s){e(s,l)})}function ct(a,e,r){var t=0,n=a.length;function i(l){if(l&&l.length){r(l);return}var s=t;t=t+1,s{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,b(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(V(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const T=x(J,[["__scopeId","data-v-834a248f"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:C()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}}const m="iib://",q=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{T as H,E as _,A as a,q as f,M as t}; +import{R as y,C as v}from"./index-e084b841.js";import{bJ as f,c as d,A as w,d as P,N as a,O as c,Q as r,T as S,a2 as b,aC as O,Y as R,R as u,S as p,Z as V,af as $,V as x,I as C,cp as _}from"./index-28dbaa5b.js";const A=f(y),E=f(v);var H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"};const L=H;function h(t){for(var e=1;e{const n=$;return a(),c("div",null,[r("ul",F,[(a(!0),c(S,null,b(e.records.getRecords(),i=>(a(),c("li",{key:i.id,class:"record"},[r("div",I,[O(e.$slots,"default",{record:i},void 0,!0)]),r("div",k,[d(n,{onClick:g=>e.$emit("reuseRecord",i),type:"primary"},{default:R(()=>[u(p(e.$t("restore")),1)]),_:2},1032,["onClick"]),r("div",{class:"pin",onClick:g=>e.records.switchPin(i)},[d(V(z)),u(" "+p(e.records.isPinned(i)?e.$t("unpin"):e.$t("pin")),1)],8,B)])]))),128))])])}}});const T=x(J,[["__scopeId","data-v-834a248f"]]);class o{constructor(e=128,s=[],n=[]){this.maxLength=e,this.records=s,this.pinnedValues=n}isPinned(e){return this.pinnedValues.some(s=>s.id===e.id)}add(e){this.records.length>=this.maxLength&&this.records.pop(),this.records.unshift({...e,id:C()+Date.now(),time:new Date().toLocaleString()})}pin(e){const s=this.records.findIndex(n=>n.id===e.id);s!==-1&&this.records.splice(s,1),this.pinnedValues.push(e)}unpin(e){const s=this.pinnedValues.findIndex(n=>n.id===e.id);s!==-1&&this.pinnedValues.splice(s,1),this.records.unshift(e)}switchPin(e){this.isPinned(e)?this.unpin(e):this.pin(e)}getRecords(){return[...this.pinnedValues,...this.records]}}const m="iib://",q=_(`${m}fuzzy-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}}),M=_(`${m}tag-search-HistoryRecord`,new o,{serializer:{read:t=>{const e=JSON.parse(t);return new o(e.maxLength,e.records,e.pinnedValues)},write:JSON.stringify}});export{T as H,E as _,A as a,q as f,M as t}; diff --git a/vue/dist/assets/shortcut-5e9fcb9b.js b/vue/dist/assets/shortcut-aef21d22.js similarity index 99% rename from vue/dist/assets/shortcut-5e9fcb9b.js rename to vue/dist/assets/shortcut-aef21d22.js index a26de92b..5bfa9959 100644 --- a/vue/dist/assets/shortcut-5e9fcb9b.js +++ b/vue/dist/assets/shortcut-aef21d22.js @@ -1,2 +1,2 @@ -import{cv as Xe,a as k,P as E,d as te,j as ve,u as fe,ar as Je,b7 as Ye,ba as Ne,o as Oe,w as ye,r as D,f as Ze,_ as de,aj as z,h as y,c as N,k as J,B as H,at as Qe,i as en,A as nn,cw as $e,cx as Pe,cy as tn,b8 as an,bI as Be,b as rn,aZ as un,bA as ne,bu as ln,D as on,as as Te,al as cn,bJ as sn,au as dn,cz as vn,av as fn,b5 as mn,g as Me,cA as gn}from"./index-fad1088f.js";import{V as hn}from"./Checkbox-7b8370e5.js";function pn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xe(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var u=0,l=function(){};return{s:l,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(c){throw c},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{cv as Xe,a as k,P as E,d as te,j as ve,u as fe,ar as Je,b7 as Ye,ba as Ne,o as Oe,w as ye,r as D,f as Ze,_ as de,aj as z,h as y,c as N,k as J,B as H,at as Qe,i as en,A as nn,cw as $e,cx as Pe,cy as tn,b8 as an,bI as Be,b as rn,aZ as un,bA as ne,bu as ln,D as on,as as Te,al as cn,bJ as sn,au as dn,cz as vn,av as fn,b5 as mn,g as Me,cA as gn}from"./index-28dbaa5b.js";import{V as hn}from"./Checkbox-e23ad1bf.js";function pn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xe(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var u=0,l=function(){};return{s:l,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(c){throw c},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,g=!1,h;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return m=c.done,c},e:function(c){g=!0,h=c},f:function(){try{!m&&n.return!=null&&n.return()}finally{if(g)throw h}}}}var bn=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},yn=function(){return k(k({},bn()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},Sn=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:E.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},Cn=function(){return k(k({},Sn()),{},{indeterminate:{type:Boolean,default:!1}})},Ge=Symbol("CheckboxGroupContext"),xn=["indeterminate","skipGroup","id"],Nn=["onMouseenter","onMouseleave","onInput","class","style"];const ae=te({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:Cn(),setup:function(e,n){var u=n.emit,l=n.attrs,m=n.slots,g=n.expose,h=ve(),v=fe("checkbox",e),c=v.prefixCls,p=v.direction,r=Je(Ge,void 0),_=Symbol("checkboxUniId");Ye(function(){!e.skipGroup&&r&&r.registerValue(_,e.value)}),Ne(function(){r&&r.cancelValue(_)}),Oe(function(){ye(e.checked!==void 0||r||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var A=function(o){var C=o.target.checked;u("update:checked",C),u("change",o)},I=D(),V=function(){var o;(o=I.value)===null||o===void 0||o.focus()},P=function(){var o;(o=I.value)===null||o===void 0||o.blur()};return g({focus:V,blur:P}),function(){var F,o,C=Ze((F=m.default)===null||F===void 0?void 0:F.call(m)),x=e.indeterminate,b=e.skipGroup,B=e.id,s=B===void 0?h.id.value:B,d=de(e,xn),M=l.onMouseenter,K=l.onMouseleave;l.onInput;var G=l.class,q=l.style,W=de(l,Nn),T=k(k({},d),{},{id:s,prefixCls:c.value},W);r&&!b?(T.onChange=function(){for(var Q=arguments.length,L=new Array(Q),U=0;U0&&(b=r.value.map(function(s){var d;return N(ae,{prefixCls:v.value,key:s.value.toString(),disabled:"disabled"in s?s.disabled:e.disabled,indeterminate:s.indeterminate,value:s.value,checked:p.value.indexOf(s.value)!==-1,onChange:s.onChange,class:"".concat(B,"-item")},{default:function(){return[s.label===void 0?(d=u.label)===null||d===void 0?void 0:d.call(u,s):s.label]}})})),N("div",{class:[B,y({},"".concat(B,"-rtl"),c.value==="rtl")],id:x},[b||((o=u.default)===null||o===void 0?void 0:o.call(u))])}}});ae.Group=Se;ae.install=function(t){return t.component(ae.name,ae),t.component(Se.name,Se),t};var kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const In=kn;function _e(t){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(Ce()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(tNumber.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(l0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":we(this.number):this.origin}}]),t}(),Bn=function(){function t(e){if(Pe(this,t),y(this,"origin",""),Re(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var n=e;if(Ie(n)&&(n=Number(n)),n=typeof n=="string"?n:we(n),Ee(n)){var u=re(n);this.negative=u.negative;var l=u.trimStr.split(".");this.integer=BigInt(l[0]);var m=l[1]||"0";this.decimal=BigInt(m),this.decimalLen=m.length}else this.nan=!0}return $e(t,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var u="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(u)}},{key:"negate",value:function(){var n=new t(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new t(n);var u=new t(n);if(u.isInvalidate())return this;var l=Math.max(this.getDecimalStr().length,u.getDecimalStr().length),m=this.alignDecimal(l),g=u.alignDecimal(l),h=(m+g).toString(),v=re(h),c=v.negativeStr,p=v.trimStr,r="".concat(c).concat(p.padStart(l+1,"0"));return new t("".concat(r.slice(0,-l),".").concat(r.slice(-l)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":re("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),t}();function j(t){return Ce()?new Bn(t):new Vn(t)}function xe(t,e,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";var l=re(t),m=l.negativeStr,g=l.integerStr,h=l.decimalStr,v="".concat(e).concat(h),c="".concat(m).concat(g);if(n>=0){var p=Number(h[n]);if(p>=5&&!u){var r=j(t).add("".concat(m,"0.").concat("0".repeat(n)).concat(10-p));return xe(r.toString(),e,n,u)}return n===0?c:"".concat(c).concat(e).concat(h.padEnd(n,"0").slice(0,n))}return v===".0"?c:"".concat(c).concat(v)}var Mn=200,_n=600;const Dn=te({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,n){var u=n.slots,l=n.emit,m=D(),g=function(c,p){c.preventDefault(),l("step",p);function r(){l("step",p),m.value=setTimeout(r,Mn)}m.value=setTimeout(r,_n)},h=function(){clearTimeout(m.value)};return Ne(function(){h()}),function(){if(tn())return null;var v=e.prefixCls,c=e.upDisabled,p=e.downDisabled,r="".concat(v,"-handler"),_=z(r,"".concat(r,"-up"),y({},"".concat(r,"-up-disabled"),c)),A=z(r,"".concat(r,"-down"),y({},"".concat(r,"-down-disabled"),p)),I={unselectable:"on",role:"button",onMouseup:h,onMouseleave:h},V=u.upNode,P=u.downNode;return N("div",{class:"".concat(r,"-wrap")},[N("span",k(k({},I),{},{onMousedown:function(o){g(o,!0)},"aria-label":"Increase Value","aria-disabled":c,class:_}),[(V==null?void 0:V())||N("span",{unselectable:"on",class:"".concat(v,"-handler-up-inner")},null)]),N("span",k(k({},I),{},{onMousedown:function(o){g(o,!1)},"aria-label":"Decrease Value","aria-disabled":p,class:A}),[(P==null?void 0:P())||N("span",{unselectable:"on",class:"".concat(v,"-handler-down-inner")},null)])])}}});function An(t,e){var n=D(null);function u(){try{var m=t.value,g=m.selectionStart,h=m.selectionEnd,v=m.value,c=v.substring(0,g),p=v.substring(h);n.value={start:g,end:h,value:v,beforeTxt:c,afterTxt:p}}catch{}}function l(){if(t.value&&n.value&&e.value)try{var m=t.value.value,g=n.value,h=g.beforeTxt,v=g.afterTxt,c=g.start,p=m.length;if(m.endsWith(v))p=m.length-n.value.afterTxt.length;else if(m.startsWith(h))p=h.length;else{var r=h[c-1],_=m.indexOf(r,c-1);_!==-1&&(p=_+1)}t.value.setSelectionRange(p,p)}catch(A){an(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(A.message))}}return[u,l]}const Fn=function(){var t=D(0),e=function(){Be.cancel(t.value)};return Ne(function(){e()}),function(n){e(),t.value=Be(function(){n()})}};var On=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],De=function(e,n){return e||n.isEmpty()?n.toString():n.toNumber()},Ae=function(e){var n=j(e);return n.isInvalidate()?null:n},Ue=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const $n=te({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:k(k({},Ue()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,n){var u=n.attrs,l=n.slots,m=n.emit,g=n.expose,h=D(),v=D(!1),c=D(!1),p=D(!1),r=D(j(e.value));function _(f){e.value===void 0&&(r.value=f)}var A=function(a,S){if(!S)return e.precision>=0?e.precision:Math.max(ue(a),ue(e.step))},I=function(a){var S=String(a);if(e.parser)return e.parser(S);var i=S;return e.decimalSeparator&&(i=i.replace(e.decimalSeparator,".")),i.replace(/[^\w.-]+/g,"")},V=D(""),P=function(a,S){if(e.formatter)return e.formatter(a,{userTyping:S,input:String(V.value)});var i=typeof a=="number"?we(a):a;if(!S){var $=A(i,S);if(Ee(i)&&(e.decimalSeparator||$>=0)){var O=e.decimalSeparator||".";i=xe(i,O,$)}}return i},F=function(){var f=e.value;return r.value.isInvalidate()&&["string","number"].includes(rn(f))?Number.isNaN(f)?"":f:P(r.value.toString(),!1)}();V.value=F;function o(f,a){V.value=P(f.isInvalidate()?f.toString(!1):f.toString(!a),a)}var C=H(function(){return Ae(e.max)}),x=H(function(){return Ae(e.min)}),b=H(function(){return!C.value||!r.value||r.value.isInvalidate()?!1:C.value.lessEquals(r.value)}),B=H(function(){return!x.value||!r.value||r.value.isInvalidate()?!1:r.value.lessEquals(x.value)}),s=An(h,v),d=un(s,2),M=d[0],K=d[1],G=function(a){return C.value&&!a.lessEquals(C.value)?C.value:x.value&&!x.value.lessEquals(a)?x.value:null},q=function(a){return!G(a)},W=function(a,S){var i=a,$=q(i)||i.isEmpty();if(!i.isEmpty()&&!S&&(i=G(i)||i,$=!0),!e.readonly&&!e.disabled&&$){var O=i.toString(),R=A(O,S);if(R>=0&&(i=j(xe(O,".",R))),!i.equals(r.value)){var X;_(i),(X=e.onChange)===null||X===void 0||X.call(e,i.isEmpty()?null:De(e.stringMode,i)),e.value===void 0&&o(i,S)}return i}return r.value},T=Fn(),Y=function f(a){var S;if(M(),V.value=a,!p.value){var i=I(a),$=j(i);$.isNaN()||W($,!0)}(S=e.onInput)===null||S===void 0||S.call(e,a),T(function(){var O=a;e.parser||(O=a.replace(/。/g,".")),O!==a&&f(O)})},Z=function(){p.value=!0},Q=function(){p.value=!1,Y(h.value.value)},L=function(a){Y(a.target.value)},U=function(a){var S,i;if(!(a&&b.value||!a&&B.value)){c.value=!1;var $=j(e.step);a||($=$.negate());var O=(r.value||j(0)).add($.toString()),R=W(O,!1);(S=e.onStep)===null||S===void 0||S.call(e,De(e.stringMode,R),{offset:e.step,type:a?"up":"down"}),(i=h.value)===null||i===void 0||i.focus()}},ie=function(a){var S=j(I(V.value)),i=S;S.isNaN()?i=r.value:i=W(S,a),e.value!==void 0?o(r.value,!1):i.isNaN()||o(i,!1)},me=function(a){var S=a.which;if(c.value=!0,S===ne.ENTER){var i;p.value||(c.value=!1),ie(!1),(i=e.onPressEnter)===null||i===void 0||i.call(e,a)}e.keyboard!==!1&&!p.value&&[ne.UP,ne.DOWN].includes(S)&&(U(ne.UP===S),a.preventDefault())},w=function(){c.value=!1},ee=function(a){ie(!1),v.value=!1,c.value=!1,m("blur",a)};return J(function(){return e.precision},function(){r.value.isInvalidate()||o(r.value,!1)},{flush:"post"}),J(function(){return e.value},function(){var f=j(e.value);r.value=f;var a=j(I(V.value));(!f.equals(a)||!c.value||e.formatter)&&o(f,c.value)},{flush:"post"}),J(V,function(){e.formatter&&K()},{flush:"post"}),J(function(){return e.disabled},function(f){f&&(v.value=!1)}),g({focus:function(){var a;(a=h.value)===null||a===void 0||a.focus()},blur:function(){var a;(a=h.value)===null||a===void 0||a.blur()}}),function(){var f,a=k(k({},u),e),S=a.prefixCls,i=S===void 0?"rc-input-number":S,$=a.min,O=a.max,R=a.step,X=R===void 0?1:R;a.defaultValue,a.value;var le=a.disabled,oe=a.readonly;a.keyboard;var ce=a.controls,ge=ce===void 0?!0:ce,se=a.autofocus;a.stringMode,a.parser,a.formatter,a.precision,a.decimalSeparator,a.onChange,a.onInput,a.onPressEnter,a.onStep;var je=a.lazy,ze=a.class,He=a.style,Ke=de(a,On),qe=l.upHandler,We=l.downHandler,Ve="".concat(i,"-input"),he={};return je?he.onChange=L:he.onInput=L,N("div",{class:z(i,ze,(f={},y(f,"".concat(i,"-focused"),v.value),y(f,"".concat(i,"-disabled"),le),y(f,"".concat(i,"-readonly"),oe),y(f,"".concat(i,"-not-a-number"),r.value.isNaN()),y(f,"".concat(i,"-out-of-range"),!r.value.isInvalidate()&&!q(r.value)),f)),style:He,onKeydown:me,onKeyup:w},[ge&&N(Dn,{prefixCls:i,upDisabled:b.value,downDisabled:B.value,onStep:U},{upNode:qe,downNode:We}),N("div",{class:"".concat(Ve,"-wrap")},[N("input",k(k(k({autofocus:se,autocomplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":O,"aria-valuenow":r.value.isInvalidate()?null:r.value.toString(),step:X},Ke),{},{ref:h,class:Ve,value:V.value,disabled:le,readonly:oe,onFocus:function(Le){v.value=!0,m("focus",Le)}},he),{},{onBlur:ee,onCompositionstart:Z,onCompositionend:Q}),null)])])}}});function pe(t){return t!=null}var Pn=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],Fe=Ue(),Tn=function(){return k(k({},Fe),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:E.any,addonAfter:E.any,prefix:E.any,"onUpdate:value":Fe.onChange,valueModifiers:Object})},be=te({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Tn(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,n){var u=n.emit,l=n.expose,m=n.attrs,g=n.slots,h=ve(),v=fe("input-number",e),c=v.prefixCls,p=v.size,r=v.direction,_=D(e.value===void 0?e.defaultValue:e.value),A=D(!1);J(function(){return e.value},function(){_.value=e.value});var I=D(null),V=function(){var b;(b=I.value)===null||b===void 0||b.focus()},P=function(){var b;(b=I.value)===null||b===void 0||b.blur()};l({focus:V,blur:P});var F=function(b){e.value===void 0&&(_.value=b),u("update:value",b),u("change",b),h.onFieldChange()},o=function(b){A.value=!1,u("blur",b),h.onFieldBlur()},C=function(b){A.value=!0,u("focus",b)};return function(){var x,b,B,s,d=k(k({},m),e),M=d.class,K=d.bordered,G=d.readonly,q=d.style,W=d.addonBefore,T=W===void 0?(x=g.addonBefore)===null||x===void 0?void 0:x.call(g):W,Y=d.addonAfter,Z=Y===void 0?(b=g.addonAfter)===null||b===void 0?void 0:b.call(g):Y,Q=d.prefix,L=Q===void 0?(B=g.prefix)===null||B===void 0?void 0:B.call(g):Q,U=d.valueModifiers,ie=U===void 0?{}:U,me=de(d,Pn),w=c.value,ee=p.value,f=z((s={},y(s,"".concat(w,"-lg"),ee==="large"),y(s,"".concat(w,"-sm"),ee==="small"),y(s,"".concat(w,"-rtl"),r.value==="rtl"),y(s,"".concat(w,"-readonly"),G),y(s,"".concat(w,"-borderless"),!K),s),M),a=N($n,k(k({},Te(me,["size","defaultValue"])),{},{ref:I,lazy:!!ie.lazy,value:_.value,class:f,prefixCls:w,readonly:G,onChange:F,onBlur:o,onFocus:C}),{upHandler:function(){return N(En,{class:"".concat(w,"-handler-up-inner")},null)},downHandler:function(){return N(on,{class:"".concat(w,"-handler-down-inner")},null)}}),S=pe(T)||pe(Z);if(pe(L)){var i,$=z("".concat(w,"-affix-wrapper"),(i={},y(i,"".concat(w,"-affix-wrapper-focused"),A.value),y(i,"".concat(w,"-affix-wrapper-disabled"),e.disabled),y(i,"".concat(w,"-affix-wrapper-rtl"),r.value==="rtl"),y(i,"".concat(w,"-affix-wrapper-readonly"),G),y(i,"".concat(w,"-affix-wrapper-borderless"),!K),y(i,"".concat(M),!S&&M),i));a=N("div",{class:$,style:q,onMouseup:function(){return I.value.focus()}},[N("span",{class:"".concat(w,"-prefix")},[L]),a])}if(S){var O,R="".concat(w,"-group"),X="".concat(R,"-addon"),le=T?N("div",{class:X},[T]):null,oe=Z?N("div",{class:X},[Z]):null,ce=z("".concat(w,"-wrapper"),R,y({},"".concat(R,"-rtl"),r.value==="rtl")),ge=z("".concat(w,"-group-wrapper"),(O={},y(O,"".concat(w,"-group-wrapper-sm"),ee==="small"),y(O,"".concat(w,"-group-wrapper-lg"),ee==="large"),y(O,"".concat(w,"-group-wrapper-rtl"),r.value==="rtl"),O),M);a=N("div",{class:ge,style:q},[N("div",{class:ce},[le,a,oe])])}return cn(a,{style:q})}}});const Kn=ln(be,{install:function(e){return e.component(be.name,be),e}});var Gn=dn("small","default"),Rn=function(){return{id:String,prefixCls:String,size:E.oneOf(Gn),disabled:{type:Boolean,default:void 0},checkedChildren:E.any,unCheckedChildren:E.any,tabindex:E.oneOfType([E.string,E.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:E.oneOfType([E.string,E.number,E.looseBool]),checkedValue:E.oneOfType([E.string,E.number,E.looseBool]).def(!0),unCheckedValue:E.oneOfType([E.string,E.number,E.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},Un=te({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:Rn(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,n){var u=n.attrs,l=n.slots,m=n.expose,g=n.emit,h=ve();vn(function(){ye(!("defaultChecked"in u),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),ye(!("value"in u),"Switch","`value` is not validate prop, do you mean `checked`?")});var v=D(e.checked!==void 0?e.checked:u.defaultChecked),c=H(function(){return v.value===e.checkedValue});J(function(){return e.checked},function(){v.value=e.checked});var p=fe("switch",e),r=p.prefixCls,_=p.direction,A=p.size,I=D(),V=function(){var d;(d=I.value)===null||d===void 0||d.focus()},P=function(){var d;(d=I.value)===null||d===void 0||d.blur()};m({focus:V,blur:P}),Oe(function(){fn(function(){e.autofocus&&!e.disabled&&I.value.focus()})});var F=function(d,M){e.disabled||(g("update:checked",d),g("change",d,M),h.onFieldChange())},o=function(d){g("blur",d)},C=function(d){V();var M=c.value?e.unCheckedValue:e.checkedValue;F(M,d),g("click",M,d)},x=function(d){d.keyCode===ne.LEFT?F(e.unCheckedValue,d):d.keyCode===ne.RIGHT&&F(e.checkedValue,d),g("keydown",d)},b=function(d){var M;(M=I.value)===null||M===void 0||M.blur(),g("mouseup",d)},B=H(function(){var s;return s={},y(s,"".concat(r.value,"-small"),A.value==="small"),y(s,"".concat(r.value,"-loading"),e.loading),y(s,"".concat(r.value,"-checked"),c.value),y(s,"".concat(r.value,"-disabled"),e.disabled),y(s,r.value,!0),y(s,"".concat(r.value,"-rtl"),_.value==="rtl"),s});return function(){var s;return N(gn,{insertExtraNode:!0},{default:function(){return[N("button",k(k(k({},Te(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),u),{},{id:(s=e.id)!==null&&s!==void 0?s:h.id.value,onKeydown:x,onClick:C,onBlur:o,onMouseup:b,type:"button",role:"switch","aria-checked":v.value,disabled:e.disabled||e.loading,class:[u.class,B.value],ref:I}),[N("div",{class:"".concat(r.value,"-handle")},[e.loading?N(mn,{class:"".concat(r.value,"-loading-icon")},null):null]),N("span",{class:"".concat(r.value,"-inner")},[c.value?Me(l,e,"checkedChildren"):Me(l,e,"unCheckedChildren")])])]}})}}});const qn=sn(Un);const Wn=t=>{const e=[];return t.shiftKey&&e.push("Shift"),t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Cmd"),(t.code.startsWith("Key")||t.code.startsWith("Digit"))&&e.push(t.code),t.key==="Escape"&&e.push("Esc"),e.join(" + ")};export{ae as C,qn as _,Kn as a,Wn as g}; diff --git a/vue/dist/assets/stackView-8b32dee4.js b/vue/dist/assets/stackView-5faa1b55.js similarity index 97% rename from vue/dist/assets/stackView-8b32dee4.js rename to vue/dist/assets/stackView-5faa1b55.js index 4a899c95..6ff4752b 100644 --- a/vue/dist/assets/stackView-8b32dee4.js +++ b/vue/dist/assets/stackView-5faa1b55.js @@ -1 +1 @@ -import{d as ce,u as je,g as re,_ as it,c as l,a as Oe,P as ke,D as Be,f as ut,w as Mt,b as Ot,e as Bt,h as Ze,M as Le,i as Lt,j as Rt,F as Re,A as ct,r as le,k as Ne,l as et,o as Nt,s as Pe,m as Ae,n as dt,p as Et,q as zt,t as Tt,v as $e,x as X,y as tt,z as jt,B as Fe,C as at,E as Ee,G as Vt,H as Ut,I as De,J as Gt,K as Wt,L as qt,N as D,O as j,Q as y,R as Y,S as P,T as ze,U as G,V as pt,W as Ht,X as V,Y as b,Z as e,$ as S,a0 as U,a1 as Kt,a2 as nt,a3 as Qt,a4 as Jt,a5 as Xt,a6 as Yt,a7 as Zt,a8 as ea,a9 as ta,aa as st,ab as aa,ac as na,ad as sa,ae as oa,af as ra,ag as la}from"./index-fad1088f.js";import{S as ie,s as ia}from"./index-e6abe7d7.js";import{F as W,N as ua,_ as ca}from"./numInput-267668f7.js";import"./index-45a15a0d.js";/* empty css */import{_ as da}from"./shortcut-5e9fcb9b.js";import{D as ft}from"./index-210fb107.js";/* empty css */import{u as Ve,N as pa,g as x,s as vt,a as fa,b as va,c as ma,d as ga,F as ha}from"./FileItem-55a122b3.js";import{u as ka,a as ba,b as ya,c as Ca,M as wa,L as _a,R as Ia,f as Sa}from"./MultiSelectKeep-4400a569.js";import{g as he,l as xe,o as Pa}from"./functionalCallableComp-32f74df9.js";import"./Checkbox-7b8370e5.js";var Aa=["class","style"],$a=function(){return{prefixCls:String,href:String,separator:ke.any,overlay:ke.any,onClick:Function}};const ue=ce({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:$a(),slots:["separator","overlay"],setup:function(t,c){var r=c.slots,v=c.attrs,m=je("breadcrumb",t),A=m.prefixCls,M=function(i,d){var f=re(r,t,"overlay");return f?l(ft,{overlay:f,placement:"bottom"},{default:function(){return[l("span",{class:"".concat(d,"-overlay-link")},[i,l(Be,null,null)])]}}):i};return function(){var w,i=(w=re(r,t,"separator"))!==null&&w!==void 0?w:"/",d=re(r,t),f=v.class,g=v.style,C=it(v,Aa),h;return t.href!==void 0?h=l("a",Oe({class:"".concat(A.value,"-link"),onClick:t.onClick},C),[d]):h=l("span",Oe({class:"".concat(A.value,"-link"),onClick:t.onClick},C),[d]),h=M(h,A.value),d?l("span",{class:f,style:g},[h,i&&l("span",{class:"".concat(A.value,"-separator")},[i])]):null}}});var Fa=function(){return{prefixCls:String,routes:{type:Array},params:ke.any,separator:ke.any,itemRender:{type:Function}}};function Da(s,t){if(!s.breadcrumbName)return null;var c=Object.keys(t).join("|"),r=s.breadcrumbName.replace(new RegExp(":(".concat(c,")"),"g"),function(v,m){return t[m]||v});return r}function ot(s){var t=s.route,c=s.params,r=s.routes,v=s.paths,m=r.indexOf(t)===r.length-1,A=Da(t,c);return m?l("span",null,[A]):l("a",{href:"#/".concat(v.join("/"))},[A])}const ae=ce({compatConfig:{MODE:3},name:"ABreadcrumb",props:Fa(),slots:["separator","itemRender"],setup:function(t,c){var r=c.slots,v=je("breadcrumb",t),m=v.prefixCls,A=v.direction,M=function(f,g){return f=(f||"").replace(/^\//,""),Object.keys(g).forEach(function(C){f=f.replace(":".concat(C),g[C])}),f},w=function(f,g,C){var h=Lt(f),O=M(g||"",C);return O&&h.push(O),h},i=function(f){var g=f.routes,C=g===void 0?[]:g,h=f.params,O=h===void 0?{}:h,_=f.separator,L=f.itemRender,B=L===void 0?ot:L,R=[];return C.map(function(I){var T=M(I.path,O);T&&R.push(T);var q=[].concat(R),H=null;return I.children&&I.children.length&&(H=l(Le,null,{default:function(){return[I.children.map(function(z){return l(Le.Item,{key:z.path||z.breadcrumbName},{default:function(){return[B({route:z,params:O,routes:C,paths:w(q,z.path,O)})]}})})]}})),l(ue,{overlay:H,separator:_,key:T||I.breadcrumbName},{default:function(){return[B({route:I,params:O,routes:C,paths:q})]}})})};return function(){var d,f,g,C=t.routes,h=t.params,O=h===void 0?{}:h,_=ut(re(r,t)),L=(d=re(r,t,"separator"))!==null&&d!==void 0?d:"/",B=t.itemRender||r.itemRender||ot;C&&C.length>0?g=i({routes:C,params:O,separator:L,itemRender:B}):_.length&&(g=_.map(function(I,T){return Mt(Ot(I.type)==="object"&&(I.type.__ANT_BREADCRUMB_ITEM||I.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Bt(I,{separator:L,key:T})}));var R=(f={},Ze(f,m.value,!0),Ze(f,"".concat(m.value,"-rtl"),A.value==="rtl"),f);return l("div",{class:R},[g])}}});var xa=["separator","class"],Ma=function(){return{prefixCls:String}};const Te=ce({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ma(),setup:function(t,c){var r=c.slots,v=c.attrs,m=je("breadcrumb",t),A=m.prefixCls;return function(){var M;v.separator;var w=v.class,i=it(v,xa),d=ut((M=r.default)===null||M===void 0?void 0:M.call(r));return l("span",Oe({class:["".concat(A.value,"-separator"),w]},i),[d.length>0?d:"/"])}}});ae.Item=ue;ae.Separator=Te;ae.install=function(s){return s.component(ae.name,ae),s.component(ue.name,ue),s.component(Te.name,Te),s};W.useInjectFormItemContext=Rt;W.ItemRest=Re;W.install=function(s){return s.component(W.name,W),s.component(W.Item.name,W.Item),s.component(Re.name,Re),s};ie.setDefaultIndicator=ia;ie.install=function(s){return s.component(ie.name,ie),s};var Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Ba=Oa;function rt(s){for(var t=1;tr.value.length,et((a,u)=>{var p;a!==u&&((p=t.value)==null||p.scrollToItem(0))},300)),Nt(async()=>{var a;if(!r.value.length)if(i.value.mode==="scanned-fixed"||i.value.mode==="walk")r.value=[{files:[],curr:i.value.path??""}];else{const u=await he("/");r.value.push({files:u.files,curr:"/"})}s.value=new pa,s.value.configure({parent:c.value}),i.value.path&&i.value.path!=="/"?await B(i.value.path):(a=x.conf)!=null&&a.home&&B(x.conf.home)}),Ne(m,et(a=>{const u=w.value();if(!u)return;u.path=a;const p=Pe(a).pop()??"",F=(()=>{const N={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[i.value.mode??"scanned"],E=ee=>N?`${N}: ${ee}`:ee,J=x.getShortPath(a);return E(J.length>24&&p?p:J)})();u.name=Ae("div",{style:"display:flex;align-items:center"},[Ae(Ta),Ae("span",{class:"line-clamp-1",style:"max-width: 256px"},F)]),u.nameFallbackStr=F,x.recent=x.recent.filter(N=>N.key!==u.key),x.recent.unshift({path:a,key:u.key,mode:i.value.mode}),x.recent.length>20&&(x.recent=x.recent.slice(0,20))},300));const C=()=>Ee(m.value),h=async a=>{var u,p;if(a.type==="dir")try{(u=s.value)==null||u.start();const{files:$}=await he(a.fullpath);i.value.mode=="scanned-fixed"?r.value=[{files:$,curr:a.fullpath}]:r.value.push({files:$,curr:a.name})}finally{(p=s.value)==null||p.done()}},O=a=>{if(i.value.mode!="walk")for(;a{B(Vt(m.value))},L=(a,u)=>(Ut(x.conf,"global.conf load failed"),x.conf.is_win?a.toLowerCase()==u.toLowerCase():a==u),B=async a=>{i.value.mode==="walk"?w.value().path=a:i.value.mode==="scanned-fixed"?await h({fullpath:a,name:a,type:"dir"}):await R(a),dt(500).then(()=>M.value.emit("viewableAreaFilesChange"))},R=async a=>{var p,$;const u=r.value.slice();try{Et(a)||(a=zt(((p=x.conf)==null?void 0:p.sd_cwd)??"/",a));const F=Pe(a),N=r.value.map(E=>E.curr);for(N.shift();N[0]&&F[0]&&L(N[0],F[0]);)N.shift(),F.shift();for(let E=0;EL(ee.name,E));if(!J)throw console.error({frags:F,frag:E,stack:Tt(r.value)}),new Error(`${E} not found`);await h(J)}}catch(F){throw $e.error(X("moveFailedCheckPath")+(F instanceof Error?F.message:"")),console.error(a,Pe(a),v.value),r.value=u,F}},I=tt(async()=>{var a,u,p;try{if((a=s.value)==null||a.start(),f.value)await f.value.reset(),M.value.emit("loadNextDir");else{const{files:$}=await he(m.value);xe(r.value).files=$}d.value.clear(),(u=t.value)==null||u.scrollToItem(0),$e.success(X("refreshCompleted"))}finally{(p=s.value)==null||p.done()}});jt("returnToIIB",tt(async()=>{var a,u;if(i.value.mode!=="walk")try{(a=s.value)==null||a.start();const{files:p}=await he(m.value);xe(r.value).files.map(F=>F.date).join()!==p.map(F=>F.date).join()&&(xe(r.value).files=p,$e.success(X("autoUpdate")))}finally{(u=s.value)==null||u.done()}})),A.value("refresh",I);const T=a=>{B(a)},q=Fe(()=>x.quickMovePaths.map(a=>({...a,path:at(a.dir)}))),H=Fe(()=>{const a=at(m.value);return q.value.find(p=>p.path===a)}),Z=async()=>{const a=x.tabList[i.value.tabIdx],u={type:"empty",name:X("emptyStartPage"),key:Date.now()+De(),popAddPathModal:{path:m.value,type:"scanned"}};a.panes.push(u),a.key=u.key},z=le(!1),K=le(m.value),de=()=>{z.value=!0,K.value=m.value},be=async()=>{await B(K.value),z.value=!1};ka("click",a=>{var u,p,$;($=(p=(u=a.target)==null?void 0:u.className)==null?void 0:p.includes)!=null&&$.call(p,"ant-input")||(z.value=!1)});const ye=()=>{const a=parent.location,u=a.href.substring(0,a.href.length-a.search.length),p=new URLSearchParams(a.search);p.set("action","open"),p.set("path",m.value),p.set("mode",i.value.mode??"scanned");const $=`${u}?${p.toString()}`;Ee($,X("copyLocationUrlSuccessMsg"))},ne=(a="tag-search")=>{const u=x.tabList[i.value.tabIdx],p={type:a,key:De(),searchScope:m.value,name:X(a==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(p),u.key=p.key},Q=()=>M.value.emit("selectAll"),se=async()=>{await Pa(m.value),await I()},pe=()=>{const a=m.value;vt.set(a,r.value);const u=x.tabList[i.value.tabIdx],p={type:"local",key:De(),path:a,name:X("local"),stackKey:a,mode:"walk"};u.panes.push(p),u.key=p.key},Ce=Fe(()=>!f.value&&g.value.some(a=>a.type==="dir"));return{locInputValue:K,isLocationEditing:z,onLocEditEnter:be,onEditBtnClick:de,addToSearchScanPathAndQuickMove:Z,searchPathInfo:H,refresh:I,copyLocation:C,back:O,openNext:h,currPage:v,currLocation:m,stack:r,scroller:t,share:ye,selectAll:Q,quickMoveTo:T,onCreateFloderBtnClick:se,onWalkBtnClick:pe,showWalkButton:Ce,searchInCurrentDir:ne,backToLastUseTo:_}}const Me=new Map,Va=()=>{const{useEventListen:s,sortedFiles:t,getViewableAreaFiles:c}=Ve().toRefs(),r=le(x.defaultChangeIndchecked),v=le(x.defaultSeedChangeChecked),m=async()=>{if(await dt(100),!r.value)return;const w=c.value().filter(d=>Gt(d.fullpath)&&!d.gen_info_obj);if(!w.length)return;const i=await Wt(w.map(d=>d.fullpath).filter(d=>!Me.has(d)));w.forEach(d=>{const f=i[d.fullpath]||Me.get(d.fullpath)||"";Me.set(d.fullpath,f),d.gen_info_obj=qt(f),d.gen_info_raw=f})};s.value("viewableAreaFilesChange",m);const A=w=>{const i=t.value;return[w,v.value,i[w-1],i[w],i[w+1]]};function M(w,i,d,f){const g={diff:{},empty:!0,ownFile:"",otherFile:""};if(i+d<0||i+d>=t.value.length||t.value[i]==null||!("gen_info_obj"in t.value[i])||!("gen_info_obj"in t.value[i+d]))return g;const C=w,h=t.value[i+d].gen_info_obj;if(h==null)return g;const O=["hashes","resources"];g.diff={},g.ownFile=f.name,g.otherFile=t.value[i+d].name,g.empty=!1,v.value||O.push("seed");for(const _ in C)if(!O.includes(_)){if(!(_ in h)){g.diff[_]="+";continue}if(C[_]!=h[_])if(_.includes("rompt")&&C[_]!=""&&h[_]!=""){const L=C[_].split(","),B=h[_].split(",");let R=0;for(const I in L)L[I]!=B[I]&&R++;g.diff[_]=R}else g.diff[_]=[C[_],h[_]]}return g}return{getGenDiff:M,changeIndchecked:r,seedChangeChecked:v,getRawGenParams:()=>m(),getGenDiffWatchDep:A}};const Ua={class:"base-info"},Ga=ce({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(s){return(t,c)=>(D(),j("div",Ua,[y("span",null,[Y(P(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(D(),j(ze,{key:0},[Y(", "+P(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):G("",!0)])]))}});const Wa=pt(Ga,[["__scopeId","data-v-afd25667"]]),qa={class:"hint"},Ha={class:"location-bar"},Ka=["onClick"],Qa={key:3,class:"location-act"},Ja={class:"actions"},Xa=["onClick"],Ya={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Za={style:{padding:"4px"}},en={style:{padding:"4px"}},tn={style:{padding:"4px"}},an={key:0,class:"view"},nn={style:{padding:"16px 0 512px"}},sn={key:0,class:"preview-switch"},on=ce({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const t=s,c=Ht(),{scroller:r,stackViewEl:v,props:m,multiSelectedIdxs:A,spinning:M}=Ve().toRefs(),{currLocation:w,currPage:i,refresh:d,copyLocation:f,back:g,openNext:C,stack:h,quickMoveTo:O,addToSearchScanPathAndQuickMove:_,locInputValue:L,isLocationEditing:B,onLocEditEnter:R,onEditBtnClick:I,share:T,selectAll:q,onCreateFloderBtnClick:H,onWalkBtnClick:Z,showWalkButton:z,searchInCurrentDir:K,backToLastUseTo:de}=ja(),{gridItems:be,sortMethodConv:ye,moreActionsDropdownShow:ne,sortedFiles:Q,sortMethod:se,itemSize:pe,loadNextDir:Ce,loadNextDirLoading:a,canLoadNext:u,onScroll:p,cellWidth:$,dirCoverCache:F}=fa(),{onDrop:N,onFileDragStart:E,onFileDragEnd:J}=ba(),{onFileItemClick:ee,onContextMenuClick:We,showGenInfo:fe,imageGenInfo:qe,q:mt}=ya({openNext:C}),{previewIdx:ve,onPreviewVisibleChange:gt,previewing:we,previewImgMove:He,canPreview:Ke}=Ca(),{showMenuIdx:_e}=va(),{onClearAllSelected:ht,onReverseSelect:kt,onSelectAll:bt}=ma(),{getGenDiff:yt,changeIndchecked:oe,seedChangeChecked:me,getRawGenParams:Ct,getGenDiffWatchDep:wt}=Va();return Ne(()=>t,()=>{m.value=t;const k=vt.get(t.stackKey??"");k&&(h.value=k.slice())},{immediate:!0}),(k,n)=>{const _t=aa,It=na,St=sa,Pt=oa,At=ue,$t=ae,Qe=ra,Ie=la,Je=Le,Se=ft,Ft=ua,ge=ca,Xe=da,Dt=W,xt=ie;return D(),V(xt,{spinning:e(M),size:"large"},{default:b(()=>[l(wa,{show:e(c).keepMultiSelect||!!e(A).length,onClearAllSelected:e(ht),onSelectAll:e(bt),onReverseSelect:e(kt)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),l(_t,{style:{display:"none"}}),y("div",{ref_key:"stackViewEl",ref:v,onDragover:n[30]||(n[30]=S(()=>{},["prevent"])),onDrop:n[31]||(n[31]=S(o=>e(N)(o),["prevent"])),class:"container"},[l(St,{visible:e(fe),"onUpdate:visible":n[1]||(n[1]=o=>U(fe)?fe.value=o:null),width:"70vw","mask-closable":"",onOk:n[2]||(n[2]=o=>fe.value=!1)},{cancelText:b(()=>[]),default:b(()=>[l(It,{active:"",loading:!e(mt).isIdle},{default:b(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:n[0]||(n[0]=o=>e(Ee)(e(qe)))},[y("div",qa,P(k.$t("doubleClickToCopy")),1),Y(" "+P(e(qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),y("div",Ha,[y("div",{class:"breadcrumb",style:Kt({flex:e(B)?1:""})},[e(B)?(D(),V(Pt,{key:0,style:{flex:"1"},value:e(L),"onUpdate:value":n[3]||(n[3]=o=>U(L)?L.value=o:null),onClick:n[4]||(n[4]=S(()=>{},["stop"])),onKeydown:n[5]||(n[5]=S(()=>{},["stop"])),onPressEnter:e(R),"allow-clear":""},null,8,["value","onPressEnter"])):(D(),V($t,{key:1,style:{flex:"1"}},{default:b(()=>[(D(!0),j(ze,null,nt(e(h),(o,te)=>(D(),V(At,{key:te},{default:b(()=>[y("a",{onClick:S(Ye=>e(g)(te),["prevent"])},P(o.curr==="/"?k.$t("root"):o.curr.replace(/:\/$/,k.$t("drive"))),9,Ka)]),_:2},1024))),128))]),_:1})),e(B)?(D(),V(Qe,{key:2,size:"small",onClick:e(R),type:"primary"},{default:b(()=>[Y(P(k.$t("go")),1)]),_:1},8,["onClick"])):(D(),j("div",Qa,[k.mode==="scanned-fixed"?(D(),j("a",{key:0,onClick:n[6]||(n[6]=S((...o)=>e(de)&&e(de)(...o),["prevent"])),style:{margin:"0 8px 16px 0"}},[l(e(Ra))])):G("",!0),y("a",{onClick:n[7]||(n[7]=S((...o)=>e(f)&&e(f)(...o),["prevent"])),class:"copy"},P(k.$t("copy")),1),y("a",{onClick:n[8]||(n[8]=S((...o)=>e(I)&&e(I)(...o),["prevent","stop"]))},P(k.$t("edit")),1)]))],4),y("div",Ja,[y("a",{class:"opt",onClick:n[9]||(n[9]=S((...o)=>e(d)&&e(d)(...o),["prevent"]))},P(k.$t("refresh")),1),l(Se,null,{overlay:b(()=>[l(Je,null,{default:b(()=>[l(Ie,{key:"tag-search"},{default:b(()=>[y("a",{onClick:n[11]||(n[11]=S(o=>e(K)("tag-search"),["prevent"]))},P(k.$t("imgSearch")),1)]),_:1}),l(Ie,{key:"tag-search"},{default:b(()=>[y("a",{onClick:n[12]||(n[12]=S(o=>e(K)("fuzzy-search"),["prevent"]))},P(k.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:b(()=>[y("a",{class:"opt",onClick:n[10]||(n[10]=S(()=>{},["prevent"]))},[Y(P(k.$t("search"))+" ",1),l(e(Be))])]),_:1}),e(z)?(D(),j("a",{key:0,class:"opt",onClick:n[13]||(n[13]=S((...o)=>e(Z)&&e(Z)(...o),["prevent"]))}," Walk ")):G("",!0),y("a",{class:"opt",onClick:n[14]||(n[14]=S((...o)=>e(q)&&e(q)(...o),["prevent","stop"]))},P(k.$t("selectAll")),1),e(Qt)?G("",!0):(D(),j("a",{key:1,class:"opt",onClick:n[15]||(n[15]=S((...o)=>e(T)&&e(T)(...o),["prevent"]))},P(k.$t("share")),1)),l(Se,null,{overlay:b(()=>[l(Je,null,{default:b(()=>[(D(!0),j(ze,null,nt(e(c).quickMovePaths,o=>(D(),V(Ie,{key:o.dir},{default:b(()=>[y("a",{onClick:S(te=>e(O)(o.dir),["prevent"])},P(o.zh),9,Xa)]),_:2},1024))),128))]),_:1})]),default:b(()=>[y("a",{class:"opt",onClick:n[16]||(n[16]=S(()=>{},["prevent"]))},[Y(P(k.$t("quickMove"))+" ",1),l(e(Be))])]),_:1}),l(Se,{trigger:["click"],visible:e(ne),"onUpdate:visible":n[26]||(n[26]=o=>U(ne)?ne.value=o:null),placement:"bottomLeft",getPopupContainer:o=>o.parentNode},{overlay:b(()=>[y("div",Ya,[l(Dt,Jt(Xt({labelCol:{span:10},wrapperCol:{span:14}})),{default:b(()=>[l(ge,{label:k.$t("gridCellWidth")},{default:b(()=>[l(Ft,{modelValue:e($),"onUpdate:modelValue":n[18]||(n[18]=o=>U($)?$.value=o:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),l(ge,{label:k.$t("sortingMethod")},{default:b(()=>[l(e(Yt),{value:e(se),"onUpdate:value":n[19]||(n[19]=o=>U(se)?se.value=o:null),onClick:n[20]||(n[20]=S(()=>{},["stop"])),conv:e(ye),options:e(Zt)},null,8,["value","conv","options"])]),_:1},8,["label"]),l(ge,{label:k.$t("showChangeIndicators")},{default:b(()=>[l(Xe,{checked:e(oe),"onUpdate:checked":n[21]||(n[21]=o=>U(oe)?oe.value=o:null),onClick:e(Ct)},null,8,["checked","onClick"])]),_:1},8,["label"]),l(ge,{label:k.$t("seedAsChange")},{default:b(()=>[l(Xe,{checked:e(me),"onUpdate:checked":n[22]||(n[22]=o=>U(me)?me.value=o:null),disabled:!e(oe)},null,8,["checked","disabled"])]),_:1},8,["label"]),y("div",Za,[y("a",{onClick:n[23]||(n[23]=S((...o)=>e(_)&&e(_)(...o),["prevent"]))},P(k.$t("addToSearchScanPathAndQuickMove")),1)]),y("div",en,[y("a",{onClick:n[24]||(n[24]=S(o=>e(ea)(e(w)+"/"),["prevent"]))},P(k.$t("openWithLocalFileBrowser")),1)]),y("div",tn,[y("a",{onClick:n[25]||(n[25]=S((...o)=>e(H)&&e(H)(...o),["prevent"]))},P(k.$t("createFolder")),1)])]),_:1},16)])]),default:b(()=>[y("a",{class:"opt",onClick:n[17]||(n[17]=S(()=>{},["prevent"]))},P(k.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(i)?(D(),j("div",an,[l(e(ga),{class:"file-list",items:e(Q),ref_key:"scroller",ref:r,onScroll:e(p),"item-size":e(pe).first,"key-field":"fullpath","item-secondary-size":e(pe).second,gridItems:e(be)},{default:b(({item:o,index:te})=>[l(ha,{idx:parseInt(te),file:o,"full-screen-preview-image-url":e(Q)[e(ve)]?e(ta)(e(Q)[e(ve)]):"","show-menu-idx":e(_e),"onUpdate:showMenuIdx":n[27]||(n[27]=Ye=>U(_e)?_e.value=Ye:null),selected:e(A).includes(te),"cell-width":e($),onFileItemClick:e(ee),onDragstart:e(E),onDragend:e(J),onPreviewVisibleChange:e(gt),onContextMenuClick:e(We),"is-selected-mutil-files":e(A).length>1,"enable-change-indicator":e(oe),"seed-change-checked":e(me),"get-gen-diff":e(yt),"get-gen-diff-watch-dep":e(wt),previewing:e(we),"cover-files":e(F).get(o.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:b(()=>[y("div",nn,[t.mode==="walk"?(D(),V(Qe,{key:0,onClick:e(Ce),loading:e(a),block:"",type:"primary",disabled:!e(u),ghost:""},{default:b(()=>[Y(P(k.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):G("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(we)?(D(),j("div",sn,[l(e(_a),{onClick:n[28]||(n[28]=o=>e(He)("prev")),class:st({disable:!e(Ke)("prev")})},null,8,["class"]),l(e(Ia),{onClick:n[29]||(n[29]=o=>e(He)("next")),class:st({disable:!e(Ke)("next")})},null,8,["class"])])):G("",!0)])):G("",!0)],544),e(we)?(D(),V(Sa,{key:0,file:e(Q)[e(ve)],idx:e(ve),onContextMenuClick:e(We)},null,8,["file","idx","onContextMenuClick"])):G("",!0),l(Wa,{"file-num":e(Q).length,"selected-file-num":e(A).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const bn=pt(on,[["__scopeId","data-v-c0df9ec0"]]);export{bn as default}; +import{d as ce,u as je,g as re,_ as it,c as l,a as Oe,P as ke,D as Be,f as ut,w as Mt,b as Ot,e as Bt,h as Ze,M as Le,i as Lt,j as Rt,F as Re,A as ct,r as le,k as Ne,l as et,o as Nt,s as Pe,m as Ae,n as dt,p as Et,q as zt,t as Tt,v as $e,x as X,y as tt,z as jt,B as Fe,C as at,E as Ee,G as Vt,H as Ut,I as De,J as Gt,K as Wt,L as qt,N as D,O as j,Q as y,R as Y,S as P,T as ze,U as G,V as pt,W as Ht,X as V,Y as b,Z as e,$ as S,a0 as U,a1 as Kt,a2 as nt,a3 as Qt,a4 as Jt,a5 as Xt,a6 as Yt,a7 as Zt,a8 as ea,a9 as ta,aa as st,ab as aa,ac as na,ad as sa,ae as oa,af as ra,ag as la}from"./index-28dbaa5b.js";import{S as ie,s as ia}from"./index-4833c8e4.js";import{F as W,N as ua,_ as ca}from"./numInput-7818914c.js";import"./index-e084b841.js";/* empty css */import{_ as da}from"./shortcut-aef21d22.js";import{D as ft}from"./index-6980ed51.js";/* empty css */import{u as Ve,N as pa,g as x,s as vt,a as fa,b as va,c as ma,d as ga,F as ha}from"./FileItem-a9860a66.js";import{u as ka,a as ba,b as ya,c as Ca,M as wa,L as _a,R as Ia,f as Sa}from"./MultiSelectKeep-40ee7c75.js";import{g as he,l as xe,o as Pa}from"./functionalCallableComp-168f8428.js";import"./Checkbox-e23ad1bf.js";var Aa=["class","style"],$a=function(){return{prefixCls:String,href:String,separator:ke.any,overlay:ke.any,onClick:Function}};const ue=ce({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:$a(),slots:["separator","overlay"],setup:function(t,c){var r=c.slots,v=c.attrs,m=je("breadcrumb",t),A=m.prefixCls,M=function(i,d){var f=re(r,t,"overlay");return f?l(ft,{overlay:f,placement:"bottom"},{default:function(){return[l("span",{class:"".concat(d,"-overlay-link")},[i,l(Be,null,null)])]}}):i};return function(){var w,i=(w=re(r,t,"separator"))!==null&&w!==void 0?w:"/",d=re(r,t),f=v.class,g=v.style,C=it(v,Aa),h;return t.href!==void 0?h=l("a",Oe({class:"".concat(A.value,"-link"),onClick:t.onClick},C),[d]):h=l("span",Oe({class:"".concat(A.value,"-link"),onClick:t.onClick},C),[d]),h=M(h,A.value),d?l("span",{class:f,style:g},[h,i&&l("span",{class:"".concat(A.value,"-separator")},[i])]):null}}});var Fa=function(){return{prefixCls:String,routes:{type:Array},params:ke.any,separator:ke.any,itemRender:{type:Function}}};function Da(s,t){if(!s.breadcrumbName)return null;var c=Object.keys(t).join("|"),r=s.breadcrumbName.replace(new RegExp(":(".concat(c,")"),"g"),function(v,m){return t[m]||v});return r}function ot(s){var t=s.route,c=s.params,r=s.routes,v=s.paths,m=r.indexOf(t)===r.length-1,A=Da(t,c);return m?l("span",null,[A]):l("a",{href:"#/".concat(v.join("/"))},[A])}const ae=ce({compatConfig:{MODE:3},name:"ABreadcrumb",props:Fa(),slots:["separator","itemRender"],setup:function(t,c){var r=c.slots,v=je("breadcrumb",t),m=v.prefixCls,A=v.direction,M=function(f,g){return f=(f||"").replace(/^\//,""),Object.keys(g).forEach(function(C){f=f.replace(":".concat(C),g[C])}),f},w=function(f,g,C){var h=Lt(f),O=M(g||"",C);return O&&h.push(O),h},i=function(f){var g=f.routes,C=g===void 0?[]:g,h=f.params,O=h===void 0?{}:h,_=f.separator,L=f.itemRender,B=L===void 0?ot:L,R=[];return C.map(function(I){var T=M(I.path,O);T&&R.push(T);var q=[].concat(R),H=null;return I.children&&I.children.length&&(H=l(Le,null,{default:function(){return[I.children.map(function(z){return l(Le.Item,{key:z.path||z.breadcrumbName},{default:function(){return[B({route:z,params:O,routes:C,paths:w(q,z.path,O)})]}})})]}})),l(ue,{overlay:H,separator:_,key:T||I.breadcrumbName},{default:function(){return[B({route:I,params:O,routes:C,paths:q})]}})})};return function(){var d,f,g,C=t.routes,h=t.params,O=h===void 0?{}:h,_=ut(re(r,t)),L=(d=re(r,t,"separator"))!==null&&d!==void 0?d:"/",B=t.itemRender||r.itemRender||ot;C&&C.length>0?g=i({routes:C,params:O,separator:L,itemRender:B}):_.length&&(g=_.map(function(I,T){return Mt(Ot(I.type)==="object"&&(I.type.__ANT_BREADCRUMB_ITEM||I.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Bt(I,{separator:L,key:T})}));var R=(f={},Ze(f,m.value,!0),Ze(f,"".concat(m.value,"-rtl"),A.value==="rtl"),f);return l("div",{class:R},[g])}}});var xa=["separator","class"],Ma=function(){return{prefixCls:String}};const Te=ce({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Ma(),setup:function(t,c){var r=c.slots,v=c.attrs,m=je("breadcrumb",t),A=m.prefixCls;return function(){var M;v.separator;var w=v.class,i=it(v,xa),d=ut((M=r.default)===null||M===void 0?void 0:M.call(r));return l("span",Oe({class:["".concat(A.value,"-separator"),w]},i),[d.length>0?d:"/"])}}});ae.Item=ue;ae.Separator=Te;ae.install=function(s){return s.component(ae.name,ae),s.component(ue.name,ue),s.component(Te.name,Te),s};W.useInjectFormItemContext=Rt;W.ItemRest=Re;W.install=function(s){return s.component(W.name,W),s.component(W.Item.name,W.Item),s.component(Re.name,Re),s};ie.setDefaultIndicator=ia;ie.install=function(s){return s.component(ie.name,ie),s};var Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const Ba=Oa;function rt(s){for(var t=1;tr.value.length,et((a,u)=>{var p;a!==u&&((p=t.value)==null||p.scrollToItem(0))},300)),Nt(async()=>{var a;if(!r.value.length)if(i.value.mode==="scanned-fixed"||i.value.mode==="walk")r.value=[{files:[],curr:i.value.path??""}];else{const u=await he("/");r.value.push({files:u.files,curr:"/"})}s.value=new pa,s.value.configure({parent:c.value}),i.value.path&&i.value.path!=="/"?await B(i.value.path):(a=x.conf)!=null&&a.home&&B(x.conf.home)}),Ne(m,et(a=>{const u=w.value();if(!u)return;u.path=a;const p=Pe(a).pop()??"",F=(()=>{const N={walk:"Walk","scanned-fixed":"Fixed",scanned:null}[i.value.mode??"scanned"],E=ee=>N?`${N}: ${ee}`:ee,J=x.getShortPath(a);return E(J.length>24&&p?p:J)})();u.name=Ae("div",{style:"display:flex;align-items:center"},[Ae(Ta),Ae("span",{class:"line-clamp-1",style:"max-width: 256px"},F)]),u.nameFallbackStr=F,x.recent=x.recent.filter(N=>N.key!==u.key),x.recent.unshift({path:a,key:u.key,mode:i.value.mode}),x.recent.length>20&&(x.recent=x.recent.slice(0,20))},300));const C=()=>Ee(m.value),h=async a=>{var u,p;if(a.type==="dir")try{(u=s.value)==null||u.start();const{files:$}=await he(a.fullpath);i.value.mode=="scanned-fixed"?r.value=[{files:$,curr:a.fullpath}]:r.value.push({files:$,curr:a.name})}finally{(p=s.value)==null||p.done()}},O=a=>{if(i.value.mode!="walk")for(;a{B(Vt(m.value))},L=(a,u)=>(Ut(x.conf,"global.conf load failed"),x.conf.is_win?a.toLowerCase()==u.toLowerCase():a==u),B=async a=>{i.value.mode==="walk"?w.value().path=a:i.value.mode==="scanned-fixed"?await h({fullpath:a,name:a,type:"dir"}):await R(a),dt(500).then(()=>M.value.emit("viewableAreaFilesChange"))},R=async a=>{var p,$;const u=r.value.slice();try{Et(a)||(a=zt(((p=x.conf)==null?void 0:p.sd_cwd)??"/",a));const F=Pe(a),N=r.value.map(E=>E.curr);for(N.shift();N[0]&&F[0]&&L(N[0],F[0]);)N.shift(),F.shift();for(let E=0;EL(ee.name,E));if(!J)throw console.error({frags:F,frag:E,stack:Tt(r.value)}),new Error(`${E} not found`);await h(J)}}catch(F){throw $e.error(X("moveFailedCheckPath")+(F instanceof Error?F.message:"")),console.error(a,Pe(a),v.value),r.value=u,F}},I=tt(async()=>{var a,u,p;try{if((a=s.value)==null||a.start(),f.value)await f.value.reset(),M.value.emit("loadNextDir");else{const{files:$}=await he(m.value);xe(r.value).files=$}d.value.clear(),(u=t.value)==null||u.scrollToItem(0),$e.success(X("refreshCompleted"))}finally{(p=s.value)==null||p.done()}});jt("returnToIIB",tt(async()=>{var a,u;if(i.value.mode!=="walk")try{(a=s.value)==null||a.start();const{files:p}=await he(m.value);xe(r.value).files.map(F=>F.date).join()!==p.map(F=>F.date).join()&&(xe(r.value).files=p,$e.success(X("autoUpdate")))}finally{(u=s.value)==null||u.done()}})),A.value("refresh",I);const T=a=>{B(a)},q=Fe(()=>x.quickMovePaths.map(a=>({...a,path:at(a.dir)}))),H=Fe(()=>{const a=at(m.value);return q.value.find(p=>p.path===a)}),Z=async()=>{const a=x.tabList[i.value.tabIdx],u={type:"empty",name:X("emptyStartPage"),key:Date.now()+De(),popAddPathModal:{path:m.value,type:"scanned"}};a.panes.push(u),a.key=u.key},z=le(!1),K=le(m.value),de=()=>{z.value=!0,K.value=m.value},be=async()=>{await B(K.value),z.value=!1};ka("click",a=>{var u,p,$;($=(p=(u=a.target)==null?void 0:u.className)==null?void 0:p.includes)!=null&&$.call(p,"ant-input")||(z.value=!1)});const ye=()=>{const a=parent.location,u=a.href.substring(0,a.href.length-a.search.length),p=new URLSearchParams(a.search);p.set("action","open"),p.set("path",m.value),p.set("mode",i.value.mode??"scanned");const $=`${u}?${p.toString()}`;Ee($,X("copyLocationUrlSuccessMsg"))},ne=(a="tag-search")=>{const u=x.tabList[i.value.tabIdx],p={type:a,key:De(),searchScope:m.value,name:X(a==="tag-search"?"imgSearch":"fuzzy-search")};u.panes.push(p),u.key=p.key},Q=()=>M.value.emit("selectAll"),se=async()=>{await Pa(m.value),await I()},pe=()=>{const a=m.value;vt.set(a,r.value);const u=x.tabList[i.value.tabIdx],p={type:"local",key:De(),path:a,name:X("local"),stackKey:a,mode:"walk"};u.panes.push(p),u.key=p.key},Ce=Fe(()=>!f.value&&g.value.some(a=>a.type==="dir"));return{locInputValue:K,isLocationEditing:z,onLocEditEnter:be,onEditBtnClick:de,addToSearchScanPathAndQuickMove:Z,searchPathInfo:H,refresh:I,copyLocation:C,back:O,openNext:h,currPage:v,currLocation:m,stack:r,scroller:t,share:ye,selectAll:Q,quickMoveTo:T,onCreateFloderBtnClick:se,onWalkBtnClick:pe,showWalkButton:Ce,searchInCurrentDir:ne,backToLastUseTo:_}}const Me=new Map,Va=()=>{const{useEventListen:s,sortedFiles:t,getViewableAreaFiles:c}=Ve().toRefs(),r=le(x.defaultChangeIndchecked),v=le(x.defaultSeedChangeChecked),m=async()=>{if(await dt(100),!r.value)return;const w=c.value().filter(d=>Gt(d.fullpath)&&!d.gen_info_obj);if(!w.length)return;const i=await Wt(w.map(d=>d.fullpath).filter(d=>!Me.has(d)));w.forEach(d=>{const f=i[d.fullpath]||Me.get(d.fullpath)||"";Me.set(d.fullpath,f),d.gen_info_obj=qt(f),d.gen_info_raw=f})};s.value("viewableAreaFilesChange",m);const A=w=>{const i=t.value;return[w,v.value,i[w-1],i[w],i[w+1]]};function M(w,i,d,f){const g={diff:{},empty:!0,ownFile:"",otherFile:""};if(i+d<0||i+d>=t.value.length||t.value[i]==null||!("gen_info_obj"in t.value[i])||!("gen_info_obj"in t.value[i+d]))return g;const C=w,h=t.value[i+d].gen_info_obj;if(h==null)return g;const O=["hashes","resources"];g.diff={},g.ownFile=f.name,g.otherFile=t.value[i+d].name,g.empty=!1,v.value||O.push("seed");for(const _ in C)if(!O.includes(_)){if(!(_ in h)){g.diff[_]="+";continue}if(C[_]!=h[_])if(_.includes("rompt")&&C[_]!=""&&h[_]!=""){const L=C[_].split(","),B=h[_].split(",");let R=0;for(const I in L)L[I]!=B[I]&&R++;g.diff[_]=R}else g.diff[_]=[C[_],h[_]]}return g}return{getGenDiff:M,changeIndchecked:r,seedChangeChecked:v,getRawGenParams:()=>m(),getGenDiffWatchDep:A}};const Ua={class:"base-info"},Ga=ce({__name:"BaseFileListInfo",props:{fileNum:{},selectedFileNum:{}},setup(s){return(t,c)=>(D(),j("div",Ua,[y("span",null,[Y(P(t.$t("items",[t.fileNum]))+" ",1),t.selectedFileNum?(D(),j(ze,{key:0},[Y(", "+P(t.$t("selectedItems",[t.selectedFileNum])),1)],64)):G("",!0)])]))}});const Wa=pt(Ga,[["__scopeId","data-v-afd25667"]]),qa={class:"hint"},Ha={class:"location-bar"},Ka=["onClick"],Qa={key:3,class:"location-act"},Ja={class:"actions"},Xa=["onClick"],Ya={style:{width:"512px",background:"var(--zp-primary-background)",padding:"16px","border-radius":"4px","box-shadow":"0 0 4px var(--zp-secondary-background)",border:"1px solid var(--zp-secondary-background)"}},Za={style:{padding:"4px"}},en={style:{padding:"4px"}},tn={style:{padding:"4px"}},an={key:0,class:"view"},nn={style:{padding:"16px 0 512px"}},sn={key:0,class:"preview-switch"},on=ce({__name:"stackView",props:{tabIdx:{},paneIdx:{},path:{},mode:{},stackKey:{}},setup(s){const t=s,c=Ht(),{scroller:r,stackViewEl:v,props:m,multiSelectedIdxs:A,spinning:M}=Ve().toRefs(),{currLocation:w,currPage:i,refresh:d,copyLocation:f,back:g,openNext:C,stack:h,quickMoveTo:O,addToSearchScanPathAndQuickMove:_,locInputValue:L,isLocationEditing:B,onLocEditEnter:R,onEditBtnClick:I,share:T,selectAll:q,onCreateFloderBtnClick:H,onWalkBtnClick:Z,showWalkButton:z,searchInCurrentDir:K,backToLastUseTo:de}=ja(),{gridItems:be,sortMethodConv:ye,moreActionsDropdownShow:ne,sortedFiles:Q,sortMethod:se,itemSize:pe,loadNextDir:Ce,loadNextDirLoading:a,canLoadNext:u,onScroll:p,cellWidth:$,dirCoverCache:F}=fa(),{onDrop:N,onFileDragStart:E,onFileDragEnd:J}=ba(),{onFileItemClick:ee,onContextMenuClick:We,showGenInfo:fe,imageGenInfo:qe,q:mt}=ya({openNext:C}),{previewIdx:ve,onPreviewVisibleChange:gt,previewing:we,previewImgMove:He,canPreview:Ke}=Ca(),{showMenuIdx:_e}=va(),{onClearAllSelected:ht,onReverseSelect:kt,onSelectAll:bt}=ma(),{getGenDiff:yt,changeIndchecked:oe,seedChangeChecked:me,getRawGenParams:Ct,getGenDiffWatchDep:wt}=Va();return Ne(()=>t,()=>{m.value=t;const k=vt.get(t.stackKey??"");k&&(h.value=k.slice())},{immediate:!0}),(k,n)=>{const _t=aa,It=na,St=sa,Pt=oa,At=ue,$t=ae,Qe=ra,Ie=la,Je=Le,Se=ft,Ft=ua,ge=ca,Xe=da,Dt=W,xt=ie;return D(),V(xt,{spinning:e(M),size:"large"},{default:b(()=>[l(wa,{show:e(c).keepMultiSelect||!!e(A).length,onClearAllSelected:e(ht),onSelectAll:e(bt),onReverseSelect:e(kt)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),l(_t,{style:{display:"none"}}),y("div",{ref_key:"stackViewEl",ref:v,onDragover:n[30]||(n[30]=S(()=>{},["prevent"])),onDrop:n[31]||(n[31]=S(o=>e(N)(o),["prevent"])),class:"container"},[l(St,{visible:e(fe),"onUpdate:visible":n[1]||(n[1]=o=>U(fe)?fe.value=o:null),width:"70vw","mask-closable":"",onOk:n[2]||(n[2]=o=>fe.value=!1)},{cancelText:b(()=>[]),default:b(()=>[l(It,{active:"",loading:!e(mt).isIdle},{default:b(()=>[y("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto","z-index":"9999"},onDblclick:n[0]||(n[0]=o=>e(Ee)(e(qe)))},[y("div",qa,P(k.$t("doubleClickToCopy")),1),Y(" "+P(e(qe)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),y("div",Ha,[y("div",{class:"breadcrumb",style:Kt({flex:e(B)?1:""})},[e(B)?(D(),V(Pt,{key:0,style:{flex:"1"},value:e(L),"onUpdate:value":n[3]||(n[3]=o=>U(L)?L.value=o:null),onClick:n[4]||(n[4]=S(()=>{},["stop"])),onKeydown:n[5]||(n[5]=S(()=>{},["stop"])),onPressEnter:e(R),"allow-clear":""},null,8,["value","onPressEnter"])):(D(),V($t,{key:1,style:{flex:"1"}},{default:b(()=>[(D(!0),j(ze,null,nt(e(h),(o,te)=>(D(),V(At,{key:te},{default:b(()=>[y("a",{onClick:S(Ye=>e(g)(te),["prevent"])},P(o.curr==="/"?k.$t("root"):o.curr.replace(/:\/$/,k.$t("drive"))),9,Ka)]),_:2},1024))),128))]),_:1})),e(B)?(D(),V(Qe,{key:2,size:"small",onClick:e(R),type:"primary"},{default:b(()=>[Y(P(k.$t("go")),1)]),_:1},8,["onClick"])):(D(),j("div",Qa,[k.mode==="scanned-fixed"?(D(),j("a",{key:0,onClick:n[6]||(n[6]=S((...o)=>e(de)&&e(de)(...o),["prevent"])),style:{margin:"0 8px 16px 0"}},[l(e(Ra))])):G("",!0),y("a",{onClick:n[7]||(n[7]=S((...o)=>e(f)&&e(f)(...o),["prevent"])),class:"copy"},P(k.$t("copy")),1),y("a",{onClick:n[8]||(n[8]=S((...o)=>e(I)&&e(I)(...o),["prevent","stop"]))},P(k.$t("edit")),1)]))],4),y("div",Ja,[y("a",{class:"opt",onClick:n[9]||(n[9]=S((...o)=>e(d)&&e(d)(...o),["prevent"]))},P(k.$t("refresh")),1),l(Se,null,{overlay:b(()=>[l(Je,null,{default:b(()=>[l(Ie,{key:"tag-search"},{default:b(()=>[y("a",{onClick:n[11]||(n[11]=S(o=>e(K)("tag-search"),["prevent"]))},P(k.$t("imgSearch")),1)]),_:1}),l(Ie,{key:"tag-search"},{default:b(()=>[y("a",{onClick:n[12]||(n[12]=S(o=>e(K)("fuzzy-search"),["prevent"]))},P(k.$t("fuzzy-search")),1)]),_:1})]),_:1})]),default:b(()=>[y("a",{class:"opt",onClick:n[10]||(n[10]=S(()=>{},["prevent"]))},[Y(P(k.$t("search"))+" ",1),l(e(Be))])]),_:1}),e(z)?(D(),j("a",{key:0,class:"opt",onClick:n[13]||(n[13]=S((...o)=>e(Z)&&e(Z)(...o),["prevent"]))}," Walk ")):G("",!0),y("a",{class:"opt",onClick:n[14]||(n[14]=S((...o)=>e(q)&&e(q)(...o),["prevent","stop"]))},P(k.$t("selectAll")),1),e(Qt)?G("",!0):(D(),j("a",{key:1,class:"opt",onClick:n[15]||(n[15]=S((...o)=>e(T)&&e(T)(...o),["prevent"]))},P(k.$t("share")),1)),l(Se,null,{overlay:b(()=>[l(Je,null,{default:b(()=>[(D(!0),j(ze,null,nt(e(c).quickMovePaths,o=>(D(),V(Ie,{key:o.dir},{default:b(()=>[y("a",{onClick:S(te=>e(O)(o.dir),["prevent"])},P(o.zh),9,Xa)]),_:2},1024))),128))]),_:1})]),default:b(()=>[y("a",{class:"opt",onClick:n[16]||(n[16]=S(()=>{},["prevent"]))},[Y(P(k.$t("quickMove"))+" ",1),l(e(Be))])]),_:1}),l(Se,{trigger:["click"],visible:e(ne),"onUpdate:visible":n[26]||(n[26]=o=>U(ne)?ne.value=o:null),placement:"bottomLeft",getPopupContainer:o=>o.parentNode},{overlay:b(()=>[y("div",Ya,[l(Dt,Jt(Xt({labelCol:{span:10},wrapperCol:{span:14}})),{default:b(()=>[l(ge,{label:k.$t("gridCellWidth")},{default:b(()=>[l(Ft,{modelValue:e($),"onUpdate:modelValue":n[18]||(n[18]=o=>U($)?$.value=o:null),max:1024,min:64,step:64},null,8,["modelValue"])]),_:1},8,["label"]),l(ge,{label:k.$t("sortingMethod")},{default:b(()=>[l(e(Yt),{value:e(se),"onUpdate:value":n[19]||(n[19]=o=>U(se)?se.value=o:null),onClick:n[20]||(n[20]=S(()=>{},["stop"])),conv:e(ye),options:e(Zt)},null,8,["value","conv","options"])]),_:1},8,["label"]),l(ge,{label:k.$t("showChangeIndicators")},{default:b(()=>[l(Xe,{checked:e(oe),"onUpdate:checked":n[21]||(n[21]=o=>U(oe)?oe.value=o:null),onClick:e(Ct)},null,8,["checked","onClick"])]),_:1},8,["label"]),l(ge,{label:k.$t("seedAsChange")},{default:b(()=>[l(Xe,{checked:e(me),"onUpdate:checked":n[22]||(n[22]=o=>U(me)?me.value=o:null),disabled:!e(oe)},null,8,["checked","disabled"])]),_:1},8,["label"]),y("div",Za,[y("a",{onClick:n[23]||(n[23]=S((...o)=>e(_)&&e(_)(...o),["prevent"]))},P(k.$t("addToSearchScanPathAndQuickMove")),1)]),y("div",en,[y("a",{onClick:n[24]||(n[24]=S(o=>e(ea)(e(w)+"/"),["prevent"]))},P(k.$t("openWithLocalFileBrowser")),1)]),y("div",tn,[y("a",{onClick:n[25]||(n[25]=S((...o)=>e(H)&&e(H)(...o),["prevent"]))},P(k.$t("createFolder")),1)])]),_:1},16)])]),default:b(()=>[y("a",{class:"opt",onClick:n[17]||(n[17]=S(()=>{},["prevent"]))},P(k.$t("more")),1)]),_:1},8,["visible","getPopupContainer"])])]),e(i)?(D(),j("div",an,[l(e(ga),{class:"file-list",items:e(Q),ref_key:"scroller",ref:r,onScroll:e(p),"item-size":e(pe).first,"key-field":"fullpath","item-secondary-size":e(pe).second,gridItems:e(be)},{default:b(({item:o,index:te})=>[l(ha,{idx:parseInt(te),file:o,"full-screen-preview-image-url":e(Q)[e(ve)]?e(ta)(e(Q)[e(ve)]):"","show-menu-idx":e(_e),"onUpdate:showMenuIdx":n[27]||(n[27]=Ye=>U(_e)?_e.value=Ye:null),selected:e(A).includes(te),"cell-width":e($),onFileItemClick:e(ee),onDragstart:e(E),onDragend:e(J),onPreviewVisibleChange:e(gt),onContextMenuClick:e(We),"is-selected-mutil-files":e(A).length>1,"enable-change-indicator":e(oe),"seed-change-checked":e(me),"get-gen-diff":e(yt),"get-gen-diff-watch-dep":e(wt),previewing:e(we),"cover-files":e(F).get(o.fullpath)},null,8,["idx","file","full-screen-preview-image-url","show-menu-idx","selected","cell-width","onFileItemClick","onDragstart","onDragend","onPreviewVisibleChange","onContextMenuClick","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","previewing","cover-files"])]),after:b(()=>[y("div",nn,[t.mode==="walk"?(D(),V(Qe,{key:0,onClick:e(Ce),loading:e(a),block:"",type:"primary",disabled:!e(u),ghost:""},{default:b(()=>[Y(P(k.$t("loadNextPage")),1)]),_:1},8,["onClick","loading","disabled"])):G("",!0)])]),_:1},8,["items","onScroll","item-size","item-secondary-size","gridItems"]),e(we)?(D(),j("div",sn,[l(e(_a),{onClick:n[28]||(n[28]=o=>e(He)("prev")),class:st({disable:!e(Ke)("prev")})},null,8,["class"]),l(e(Ia),{onClick:n[29]||(n[29]=o=>e(He)("next")),class:st({disable:!e(Ke)("next")})},null,8,["class"])])):G("",!0)])):G("",!0)],544),e(we)?(D(),V(Sa,{key:0,file:e(Q)[e(ve)],idx:e(ve),onContextMenuClick:e(We)},null,8,["file","idx","onContextMenuClick"])):G("",!0),l(Wa,{"file-num":e(Q).length,"selected-file-num":e(A).length},null,8,["file-num","selected-file-num"])]),_:1},8,["spinning"])}}});const bn=pt(on,[["__scopeId","data-v-c0df9ec0"]]);export{bn as default}; diff --git a/vue/dist/index.html b/vue/dist/index.html index 8a7d2574..6e023ebf 100644 --- a/vue/dist/index.html +++ b/vue/dist/index.html @@ -7,7 +7,7 @@ Infinite Image Browsing - + diff --git a/vue/src/page/fileTransfer/fullScreenContextMenu.vue b/vue/src/page/fileTransfer/fullScreenContextMenu.vue index 9ade0317..76413e09 100644 --- a/vue/src/page/fileTransfer/fullScreenContextMenu.vue +++ b/vue/src/page/fileTransfer/fullScreenContextMenu.vue @@ -4,7 +4,7 @@ import type { FileNodeInfo } from '@/api/files' import { useGlobalStore } from '@/store/useGlobalStore' import { useLocalStorage } from '@vueuse/core' import type { MenuInfo } from 'ant-design-vue/lib/menu/src/interface' -import { debounce, throttle } from 'lodash-es' +import { debounce, throttle, last } from 'lodash-es' import { computed, watch } from 'vue' import { ref } from 'vue' import { copy2clipboardI18n } from '@/util' @@ -120,7 +120,7 @@ const { isOutside } = useMouseInElement(computed(() => { } const isIn = isInside.value as boolean - return isIn ? el.value : document.querySelector('.iib-tab-edge-trigger') + return isIn ? el.value : last(document.querySelectorAll('.iib-tab-edge-trigger')) }))