@yuhufe/wtool-vdiff 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".m-loading-parent--relative{position:relative}.m-loading-mask[data-v-ad861b5c]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff9}@keyframes widgetLoading-ad861b5c{0%{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}50%{opacity:1;transform:translateY(calc(var(--column-height) / 2)) scaleY(2)}to{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}}.loading-animate[data-v-ad861b5c]{height:30px;position:relative}.loading-animate .loading-animate-column[data-v-ad861b5c]{position:absolute;width:var(--column-width);height:var(--column-height);opacity:.2;animation:.6s ease-in-out 0s infinite widgetLoading-ad861b5c;transform:translateY(var(--column-height)) scaleY(1);transform-origin:top}.xfade-enter[data-v-ad861b5c],.xfade-enter-from[data-v-ad861b5c]{opacity:0}.xfade-enter-active[data-v-ad861b5c]{transition:opacity .4s ease}.xfade-leave-active[data-v-ad861b5c]{transition:opacity .4s ease;opacity:0}.monaco-editor-container[data-v-cfbdfd35]{width:100%;height:100%}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget{cursor:not-allowed}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget .diff-hidden-lines{pointer-events:none;opacity:.75}.top-bar-wrap[data-v-937915eb]{box-sizing:border-box;height:32px;display:flex;overflow:hidden;align-items:center;background-color:#f7f7f7;padding:4px 8px}.top-bar-wrap .title-area[data-v-937915eb]{flex:1;display:flex;align-items:center;overflow:hidden}.top-bar-wrap .title-area .filename[data-v-937915eb]{font-size:14px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-bar-wrap .title-area .diff-line-num[data-v-937915eb]{flex-shrink:0;display:inline-flex;font-size:12px;font-weight:700;margin-left:4px}.top-bar-wrap .title-area .diff-line-num .add[data-v-937915eb]{color:#1a7f37}.top-bar-wrap .title-area .diff-line-num .del[data-v-937915eb]{color:#d1242f;margin-left:4px}.top-bar-wrap .toolbar[data-v-937915eb]{font-size:12px;flex-shrink:0;display:flex;align-items:center;gap:4px}.top-bar-wrap .toolbar label[data-v-937915eb]{display:inline-flex;align-items:center;cursor:pointer;margin-right:4px}.top-bar-wrap .toolbar label.disabled[data-v-937915eb]{opacity:.4;cursor:not-allowed;pointer-events:none}.top-bar-wrap .toolbar label input[data-v-937915eb]{margin-right:2px}.diff-type-tag[data-v-937915eb]{flex-shrink:0;display:block;font-size:10px;font-weight:600;padding:2px 4px;border-radius:2px;margin-left:4px}.diff-type-tag.changed[data-v-937915eb]{background-color:#ddf4ff;color:#0969da}.diff-type-tag.add[data-v-937915eb]{background-color:#dafbe1;color:#1a7f37}.diff-type-tag.del[data-v-937915eb]{background-color:#ffebe9;color:#d1242f}.diff-type-tag.rename[data-v-937915eb]{background-color:#fff8c5;color:#9a6700}.diff-viewer-wrap[data-v-1a08d1d2]{width:var(--viewer-width);border:1px solid #ddd}.diff-viewer-wrap .top-bar[data-v-1a08d1d2]{flex-shrink:0}.diff-viewer-wrap .content-wrap[data-v-1a08d1d2]{height:var(--viewer-height);overflow:hidden}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Ve(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ne=process.env.NODE_ENV!=="production"?Object.freeze({}):{},es=process.env.NODE_ENV!=="production"?Object.freeze([]):[],ge=()=>{},Zn=()=>!1,Qt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ji=e=>e.startsWith("onUpdate:"),ee=Object.assign,Zo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zp=Object.prototype.hasOwnProperty,re=(e,t)=>Zp.call(e,t),H=Array.isArray,xn=e=>_s(e)==="[object Map]",Bn=e=>_s(e)==="[object Set]",sc=e=>_s(e)==="[object Date]",Qp=e=>_s(e)==="[object RegExp]",z=e=>typeof e=="function",Y=e=>typeof e=="string",et=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",gr=e=>(se(e)||z(e))&&z(e.then)&&z(e.catch),Pa=Object.prototype.toString,_s=e=>Pa.call(e),Qo=e=>_s(e).slice(8,-1),vr=e=>_s(e)==="[object Object]",Er=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yt=Ve(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ra=Ve("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),yr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ed=/-\w/g,pe=yr(e=>e.replace(ed,t=>t.slice(1).toUpperCase())),td=/\B([A-Z])/g,Me=yr(e=>e.replace(td,"-$1").toLowerCase()),Ft=yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),kt=yr(e=>e?`on${Ft(e)}`:""),Ue=(e,t)=>!Object.is(e,t),dn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ls=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},_r=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hi=e=>{const t=Y(e)?Number(e):NaN;return isNaN(t)?e:t};let ic;const ci=()=>ic||(ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nd(e,t){return e+JSON.stringify(t,(n,s)=>typeof s=="function"?s.toString():s)}const Ps={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},sd={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},id="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",rd=Ve(id),rc=2;function od(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let s=e.split(/(\r?\n)/);const i=s.filter((l,c)=>c%2===1);s=s.filter((l,c)=>c%2===0);let r=0;const o=[];for(let l=0;l<s.length;l++)if(r+=s[l].length+(i[l]&&i[l].length||0),r>=t){for(let c=l-rc;c<=l+rc||n>r;c++){if(c<0||c>=s.length)continue;const f=c+1;o.push(`${f}${" ".repeat(Math.max(3-String(f).length,0))}| ${s[c]}`);const u=s[c].length,a=i[c]&&i[c].length||0;if(c===l){const p=t-(r-(u+a)),m=Math.max(1,n>r?u-p:n-t);o.push(" | "+" ".repeat(p)+"^".repeat(m))}else if(c>l){if(n>r){const p=Math.max(Math.min(n-r,u),1);o.push(" | "+"^".repeat(p))}r+=u+a}}break}return o.join(`
2
3
  `)}function Rt(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=Y(s)?Ma(s):Rt(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(Y(e)||se(e))return e}const ld=/;(?![^(]*\))/g,cd=/:([^]+)/,ad=/\/\*[^]*?\*\//g;function Ma(e){const t={};return e.replace(ad,"").split(ld).forEach(n=>{if(n){const s=n.split(cd);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function fd(e){if(!e)return"";if(Y(e))return e;let t="";for(const n in e){const s=e[n];if(Y(s)||typeof s=="number"){const i=n.startsWith("--")?n:Me(n);t+=`${i}:${s};`}}return t}function tn(e){let t="";if(Y(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=tn(e[n]);s&&(t+=s+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ud(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Y(t)&&(e.class=tn(t)),n&&(e.style=Rt(n)),e}const pd="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",dd="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",hd="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",md="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",$a=Ve(pd),La=Ve(dd),Fa=Ve(hd),gd=Ve(md),ja="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vd=Ve(ja),oc=Ve(ja+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function el(e){return!!e||e===""}const Ed=Ve("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),yd=Ve("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function _d(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Nd=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function bd(e,t){return e.replace(Nd,n=>`\\${n}`)}function Od(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=En(e[s],t[s]);return n}function En(e,t){if(e===t)return!0;let n=sc(e),s=sc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=et(e),s=et(t),n||s)return e===t;if(n=H(e),s=H(t),n||s)return n&&s?Od(e,t):!1;if(n=se(e),s=se(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!En(e[o],t[o]))return!1}}return String(e)===String(t)}function Nr(e,t){return e.findIndex(n=>En(n,t))}const Ha=e=>!!(e&&e.__v_isRef===!0),Tn=e=>Y(e)?e:e==null?"":H(e)||se(e)&&(e.toString===Pa||!z(e.toString))?Ha(e)?Tn(e.value):JSON.stringify(e,Ba,2):String(e),Ba=(e,t)=>Ha(t)?Ba(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Yr(s,r)+" =>"]=i,n),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yr(n))}:et(t)?Yr(t):se(t)&&!H(t)&&!vr(t)?String(t):t,Yr=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ua(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:((typeof e!="number"||!Number.isFinite(e))&&process.env.NODE_ENV!=="production"&&console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",e),String(e))}function rt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Pe;class tl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}else process.env.NODE_ENV!=="production"&&rt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Pe,Pe=this)}off(){this._on>0&&--this._on===0&&(Pe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Sd(e){return new tl(e)}function Ka(){return Pe}function wd(e,t=!1){Pe?Pe.cleanups.push(e):process.env.NODE_ENV!=="production"&&!t&&rt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let ae;const Xr=new WeakSet;class Ks{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Pe&&Pe.active&&Pe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xr.has(this)&&(Xr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qa(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lc(this),Ga(this);const t=ae,n=St;ae=this,St=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&ae!==this&&rt("Active effect was not restored correctly - this is likely a Vue internal bug."),za(this),ae=t,St=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)il(t);this.deps=this.depsTail=void 0,lc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Eo(this)&&this.run()}get dirty(){return Eo(this)}}let Wa=0,Rs,Ms;function qa(e,t=!1){if(e.flags|=8,t){e.next=Ms,Ms=e;return}e.next=Rs,Rs=e}function nl(){Wa++}function sl(){if(--Wa>0)return;if(Ms){let t=Ms;for(Ms=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rs;){let t=Rs;for(Rs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ga(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function za(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),il(s),Cd(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function Eo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ja(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ja(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ws)||(e.globalVersion=Ws,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Eo(e))))return;e.flags|=2;const t=e.dep,n=ae,s=St;ae=e,St=!0;try{Ga(e);const i=e.fn(e._value);(t.version===0||Ue(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ae=n,St=s,za(e),e.flags&=-3}}function il(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)il(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Cd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Td(e,t){e.effect instanceof Ks&&(e=e.effect.fn);const n=new Ks(e);t&&ee(n,t);try{n.run()}catch(i){throw n.stop(),i}const s=n.run.bind(n);return s.effect=n,s}function Dd(e){e.effect.stop()}let St=!0;const Ya=[];function Ct(){Ya.push(St),St=!1}function Tt(){const e=Ya.pop();St=e===void 0?!0:e}function lc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ae;ae=void 0;try{t()}finally{ae=n}}}let Ws=0;class Vd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class br{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!ae||!St||ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ae)n=this.activeLink=new Vd(ae,this),ae.deps?(n.prevDep=ae.depsTail,ae.depsTail.nextDep=n,ae.depsTail=n):ae.deps=ae.depsTail=n,Xa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ae.depsTail,n.nextDep=void 0,ae.depsTail.nextDep=n,ae.depsTail=n,ae.deps===n&&(ae.deps=s)}return process.env.NODE_ENV!=="production"&&ae.onTrack&&ae.onTrack(ee({effect:ae},t)),n}trigger(t){this.version++,Ws++,this.notify(t)}notify(t){nl();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(ee({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{sl()}}}function Xa(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Xa(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Bi=new WeakMap,An=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),yo=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),qs=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function Te(e,t,n){if(St&&ae){let s=Bi.get(e);s||Bi.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new br),i.map=s,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Pt(e,t,n,s,i,r){const o=Bi.get(e);if(!o){Ws++;return}const l=c=>{c&&(process.env.NODE_ENV!=="production"?c.trigger({target:e,type:t,key:n,newValue:s,oldValue:i,oldTarget:r}):c.trigger())};if(nl(),t==="clear")o.forEach(l);else{const c=H(e),f=c&&Er(n);if(c&&n==="length"){const u=Number(s);o.forEach((a,p)=>{(p==="length"||p===qs||!et(p)&&p>=u)&&l(a)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(qs)),t){case"add":c?f&&l(o.get("length")):(l(o.get(An)),xn(e)&&l(o.get(yo)));break;case"delete":c||(l(o.get(An)),xn(e)&&l(o.get(yo)));break;case"set":xn(e)&&l(o.get(An));break}}sl()}function xd(e,t){const n=Bi.get(e);return n&&n.get(t)}function zn(e){const t=Q(e);return t===e?t:(Te(t,"iterate",qs),Ie(e)?t:t.map(Dt))}function Or(e){return Te(e=Q(e),"iterate",qs),e}function cn(e,t){return ht(e)?cs(Mt(e)?Dt(t):t):Dt(t)}const Ad={__proto__:null,[Symbol.iterator](){return Zr(this,Symbol.iterator,e=>cn(this,e))},concat(...e){return zn(this).concat(...e.map(t=>H(t)?zn(t):t))},entries(){return Zr(this,"entries",e=>(e[1]=cn(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(s=>cn(this,s)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>cn(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>cn(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qr(this,"includes",e)},indexOf(...e){return Qr(this,"indexOf",e)},join(e){return zn(this).join(e)},lastIndexOf(...e){return Qr(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return Ss(this,"pop")},push(...e){return Ss(this,"push",e)},reduce(e,...t){return cc(this,"reduce",e,t)},reduceRight(e,...t){return cc(this,"reduceRight",e,t)},shift(){return Ss(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return Ss(this,"splice",e)},toReversed(){return zn(this).toReversed()},toSorted(e){return zn(this).toSorted(e)},toSpliced(...e){return zn(this).toSpliced(...e)},unshift(...e){return Ss(this,"unshift",e)},values(){return Zr(this,"values",e=>cn(this,e))}};function Zr(e,t,n){const s=Or(e),i=s[t]();return s!==e&&!Ie(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const Id=Array.prototype;function Ht(e,t,n,s,i,r){const o=Or(e),l=o!==e&&!Ie(e),c=o[t];if(c!==Id[t]){const a=c.apply(e,r);return l?Dt(a):a}let f=n;o!==e&&(l?f=function(a,p){return n.call(this,cn(e,a),p,e)}:n.length>2&&(f=function(a,p){return n.call(this,a,p,e)}));const u=c.call(o,f,s);return l&&i?i(u):u}function cc(e,t,n,s){const i=Or(e);let r=n;return i!==e&&(Ie(e)?n.length>3&&(r=function(o,l,c){return n.call(this,o,l,c,e)}):r=function(o,l,c){return n.call(this,o,cn(e,l),c,e)}),i[t](r,...s)}function Qr(e,t,n){const s=Q(e);Te(s,"iterate",qs);const i=s[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=Q(n[0]),s[t](...n)):i}function Ss(e,t,n=[]){Ct(),nl();const s=Q(e)[t].apply(e,n);return sl(),Tt(),s}const kd=Ve("__proto__,__v_isRef,__isVue"),Za=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function Pd(e){et(e)||(e=String(e));const t=Q(this);return Te(t,"has",e),t.hasOwnProperty(e)}class Qa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?of:rf:r?sf:nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!i){let c;if(o&&(c=Ad[n]))return c;if(n==="hasOwnProperty")return Pd}const l=Reflect.get(t,n,ye(t)?t:s);if((et(n)?Za.has(n):kd(n))||(i||Te(t,"get",n),r))return l;if(ye(l)){const c=o&&Er(n)?l:l.value;return i&&se(c)?Gs(c):c}return se(l)?i?Gs(l):wr(l):l}}class ef extends Qa{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];const o=H(t)&&Er(n);if(!this._isShallow){const f=ht(r);if(!Ie(s)&&!ht(s)&&(r=Q(r),s=Q(s)),!o&&ye(r)&&!ye(s))return f?(process.env.NODE_ENV!=="production"&&rt(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(r.value=s,!0)}const l=o?Number(n)<t.length:re(t,n),c=Reflect.set(t,n,s,ye(t)?t:i);return t===Q(i)&&(l?Ue(s,r)&&Pt(t,"set",n,s,r):Pt(t,"add",n,s)),c}deleteProperty(t,n){const s=re(t,n),i=t[n],r=Reflect.deleteProperty(t,n);return r&&s&&Pt(t,"delete",n,void 0,i),r}has(t,n){const s=Reflect.has(t,n);return(!et(n)||!Za.has(n))&&Te(t,"has",n),s}ownKeys(t){return Te(t,"iterate",H(t)?"length":An),Reflect.ownKeys(t)}}class tf extends Qa{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&rt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&rt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Rd=new ef,Md=new tf,$d=new ef(!0),Ld=new tf(!0),_o=e=>e,yi=e=>Reflect.getPrototypeOf(e);function Fd(e,t,n){return function(...s){const i=this.__v_raw,r=Q(i),o=xn(r),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=i[e](...s),u=n?_o:t?cs:Dt;return!t&&Te(r,"iterate",c?yo:An),ee(Object.create(f),{next(){const{value:a,done:p}=f.next();return p?{value:a,done:p}:{value:l?[u(a[0]),u(a[1])]:u(a),done:p}}})}}function _i(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";rt(`${Ft(e)} operation ${n}failed: target is readonly.`,Q(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function jd(e,t){const n={get(i){const r=this.__v_raw,o=Q(r),l=Q(i);e||(Ue(i,l)&&Te(o,"get",i),Te(o,"get",l));const{has:c}=yi(o),f=t?_o:e?cs:Dt;if(c.call(o,i))return f(r.get(i));if(c.call(o,l))return f(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Te(Q(i),"iterate",An),i.size},has(i){const r=this.__v_raw,o=Q(r),l=Q(i);return e||(Ue(i,l)&&Te(o,"has",i),Te(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,c=Q(l),f=t?_o:e?cs:Dt;return!e&&Te(c,"iterate",An),l.forEach((u,a)=>i.call(r,f(u),f(a),o))}};return ee(n,e?{add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear")}:{add(i){!t&&!Ie(i)&&!ht(i)&&(i=Q(i));const r=Q(this);return yi(r).has.call(r,i)||(r.add(i),Pt(r,"add",i,i)),this},set(i,r){!t&&!Ie(r)&&!ht(r)&&(r=Q(r));const o=Q(this),{has:l,get:c}=yi(o);let f=l.call(o,i);f?process.env.NODE_ENV!=="production"&&ac(o,l,i):(i=Q(i),f=l.call(o,i));const u=c.call(o,i);return o.set(i,r),f?Ue(r,u)&&Pt(o,"set",i,r,u):Pt(o,"add",i,r),this},delete(i){const r=Q(this),{has:o,get:l}=yi(r);let c=o.call(r,i);c?process.env.NODE_ENV!=="production"&&ac(r,o,i):(i=Q(i),c=o.call(r,i));const f=l?l.call(r,i):void 0,u=r.delete(i);return c&&Pt(r,"delete",i,void 0,f),u},clear(){const i=Q(this),r=i.size!==0,o=process.env.NODE_ENV!=="production"?xn(i)?new Map(i):new Set(i):void 0,l=i.clear();return r&&Pt(i,"clear",void 0,void 0,o),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Fd(i,e,t)}),n}function Sr(e,t){const n=jd(e,t);return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(re(n,i)&&i in s?n:s,i,r)}const Hd={get:Sr(!1,!1)},Bd={get:Sr(!1,!0)},Ud={get:Sr(!0,!1)},Kd={get:Sr(!0,!0)};function ac(e,t,n){const s=Q(n);if(s!==n&&t.call(e,s)){const i=Qo(e);rt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const nf=new WeakMap,sf=new WeakMap,rf=new WeakMap,of=new WeakMap;function Wd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qd(e){return e.__v_skip||!Object.isExtensible(e)?0:Wd(Qo(e))}function wr(e){return ht(e)?e:Cr(e,!1,Rd,Hd,nf)}function lf(e){return Cr(e,!1,$d,Bd,sf)}function Gs(e){return Cr(e,!0,Md,Ud,rf)}function Nt(e){return Cr(e,!0,Ld,Kd,of)}function Cr(e,t,n,s,i){if(!se(e))return process.env.NODE_ENV!=="production"&&rt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=qd(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?s:n);return i.set(e,l),l}function Mt(e){return ht(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function cf(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&ls(e,"__v_skip",!0),e}const Dt=e=>se(e)?wr(e):e,cs=e=>se(e)?Gs(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function $e(e){return af(e,!1)}function Qn(e){return af(e,!0)}function af(e,t){return ye(e)?e:new Gd(e,t)}class Gd{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:Dt(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ie(t)||ht(t);t=s?t:Q(t),Ue(t,n)&&(this._rawValue=t,this._value=s?t:Dt(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function zd(e){e.dep&&(process.env.NODE_ENV!=="production"?e.dep.trigger({target:e,type:"set",key:"value",newValue:e._value}):e.dep.trigger())}function $t(e){return ye(e)?e.value:e}function Jd(e){return z(e)?e():$t(e)}const Yd={get:(e,t,n)=>t==="__v_raw"?e:$t(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ye(i)&&!ye(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function rl(e){return Mt(e)?e:new Proxy(e,Yd)}class Xd{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new br,{get:s,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ff(e){return new Xd(e)}function Zd(e){process.env.NODE_ENV!=="production"&&!$n(e)&&rt("toRefs() expects a reactive object but received a plain one.");const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=uf(e,n);return t}class Qd{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Q(t);let i=!0,r=t;if(!H(t)||!Er(String(n)))do i=!$n(r)||Ie(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=$t(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ye(this._raw[this._key])){const n=this._object[this._key];if(ye(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return xd(this._raw,this._key)}}class eh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function th(e,t,n){return ye(e)?e:z(e)?new eh(e):se(e)&&arguments.length>1?uf(e,t,n):$e(e)}function uf(e,t,n){return new Qd(e,t,n)}class nh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ws-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ae!==this)return qa(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ja(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&rt("Write operation failed: computed value is readonly")}}function sh(e,t,n=!1){let s,i;z(e)?s=e:(s=e.get,i=e.set);const r=new nh(s,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(r.onTrack=t.onTrack,r.onTrigger=t.onTrigger),r}const ih={GET:"get",HAS:"has",ITERATE:"iterate"},rh={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Ni={},Ui=new WeakMap;let an;function oh(){return an}function pf(e,t=!1,n=an){if(n){let s=Ui.get(n);s||Ui.set(n,s=[]),s.push(e)}else process.env.NODE_ENV!=="production"&&!t&&rt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function lh(e,t,n=ne){const{immediate:s,deep:i,once:r,scheduler:o,augmentJob:l,call:c}=n,f=y=>{(n.onWarn||rt)("Invalid watch source: ",y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=y=>i?y:Ie(y)||i===!1||i===0?zt(y,1):zt(y);let a,p,m,g,v=!1,x=!1;if(ye(e)?(p=()=>e.value,v=Ie(e)):Mt(e)?(p=()=>u(e),v=!0):H(e)?(x=!0,v=e.some(y=>Mt(y)||Ie(y)),p=()=>e.map(y=>{if(ye(y))return y.value;if(Mt(y))return u(y);if(z(y))return c?c(y,2):y();process.env.NODE_ENV!=="production"&&f(y)})):z(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Ct();try{m()}finally{Tt()}}const y=an;an=a;try{return c?c(e,3,[g]):e(g)}finally{an=y}}:(p=ge,process.env.NODE_ENV!=="production"&&f(e)),t&&i){const y=p,T=i===!0?1/0:i;p=()=>zt(y(),T)}const D=Ka(),b=()=>{a.stop(),D&&D.active&&Zo(D.effects,a)};if(r&&t){const y=t;t=(...T)=>{y(...T),b()}}let h=x?new Array(e.length).fill(Ni):Ni;const _=y=>{if(!(!(a.flags&1)||!a.dirty&&!y))if(t){const T=a.run();if(i||v||(x?T.some((j,V)=>Ue(j,h[V])):Ue(T,h))){m&&m();const j=an;an=a;try{const V=[T,h===Ni?void 0:x&&h[0]===Ni?[]:h,g];h=T,c?c(t,3,V):t(...V)}finally{an=j}}}else a.run()};return l&&l(_),a=new Ks(p),a.scheduler=o?()=>o(_,!1):_,g=y=>pf(y,!1,a),m=a.onStop=()=>{const y=Ui.get(a);if(y){if(c)c(y,4);else for(const T of y)T();Ui.delete(a)}},process.env.NODE_ENV!=="production"&&(a.onTrack=n.onTrack,a.onTrigger=n.onTrigger),t?s?_(!0):h=a.run():o?o(_.bind(null,!0),!0):a.run(),b.pause=a.pause.bind(a),b.resume=a.resume.bind(a),b.stop=b,b}function zt(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ye(e))zt(e.value,t,n);else if(H(e))for(let s=0;s<e.length;s++)zt(e[s],t,n);else if(Bn(e)||xn(e))e.forEach(s=>{zt(s,t,n)});else if(vr(e)){for(const s in e)zt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&zt(e[s],t,n)}return e}const In=[];function ts(e){In.push(e)}function ns(){In.pop()}let eo=!1;function C(e,...t){if(eo)return;eo=!0,Ct();const n=In.length?In[In.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=ch();if(s)Un(s,n,11,[e+t.map(r=>{var o,l;return(l=(o=r.toString)==null?void 0:o.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${di(n,r.type)}>`).join(`
3
4
  `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
@@ -40,7 +41,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
40
41
  monaco.config({ paths: { vs: '...' } })
41
42
 
42
43
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
43
- `},Ia=Qy(s_)(Hp),i_={config:t_},r_=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return function(i){return n.reduceRight(function(r,o){return o(r)},i)}};function Bp(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Bp(e[n],t[n]))}),Va(Va({},e),t)}var o_={type:"cancelation",msg:"operation is manually canceled"};function mo(e){var t=!1,n=new Promise(function(s,i){e.then(function(r){return t?i(o_):s(r)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var l_=["monaco"],c_=Xy.create({config:Zy,isInitialized:!1,resolve:null,reject:null,monaco:null}),Up=ky(c_,2),vi=Up[0],Wr=Up[1];function a_(e){var t=i_.config(e),n=t.monaco,s=Ay(t,l_);Wr(function(i){return{config:Bp(i.config,s),monaco:n}})}function f_(){var e=vi(function(t){var n=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:s,resolve:i}});if(!e.isInitialized){if(Wr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),mo(go);if(window.monaco&&window.monaco.editor)return Kp(window.monaco),e.resolve(window.monaco),mo(go);r_(u_,d_)(h_)}return mo(go)}function u_(e){return document.body.appendChild(e)}function p_(e){var t=document.createElement("script");return e&&(t.src=e),t}function d_(e){var t=vi(function(s){var i=s.config,r=s.reject;return{config:i,reject:r}}),n=p_("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function h_(){var e=vi(function(n){var s=n.config,i=n.resolve,r=n.reject;return{config:s,resolve:i,reject:r}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var s=n.m||n;Kp(s),e.resolve(s)},function(n){e.reject(n)})}function Kp(e){vi().monaco||Wr({monaco:e})}function m_(){return vi(function(e){var t=e.monaco;return t})}var go=new Promise(function(e,t){return Wr({resolve:e,reject:t})}),Wp={config:a_,init:f_,__getMonacoInstance:m_};const Xl=function({isMaster:e=!1}={}){return{...Cy({isMaster:e,key:"diffViewer"})}},g_=Kn({__name:"MonacoDiffViewer",props:{originalCode:{default:""},modifiedCode:{default:""},language:{default:"plaintext"},options:{default:()=>({})},modelOptions:{default:()=>({})}},emits:["renderComplete"],setup(e,{emit:t}){const n=e,s=t,{funcs:i}=Xl(),r=i.canUnchangeVisible,o=$e(null),l=Qn(null),c=Qn(null),f=Qn(null),u=Qn(null);let a=!1;return Wn(()=>{a=!1,(async()=>{const m=await Wp.init();if(a||!o.value)return;l.value=m,f.value=m.editor.createModel(n.originalCode,n.language),u.value=m.editor.createModel(n.modifiedCode,n.language),c.value=m.editor.createDiffEditor(o.value,{automaticLayout:!0,readOnly:!0,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!1,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...n.options}),c.value.setModel({original:f.value,modified:u.value}),Object.keys(n.modelOptions).length>0&&(f.value.updateOptions(n.modelOptions),u.value.updateOptions(n.modelOptions));const g=c.value.onDidUpdateDiff(()=>{const v=c.value?.getLineChanges()??[],x=(h,_)=>_===0?0:_-h+1,D=v.reduce((h,_)=>h+x(_.modifiedStartLineNumber,_.modifiedEndLineNumber),0),b=v.reduce((h,_)=>h+x(_.originalStartLineNumber,_.originalEndLineNumber),0);i.updateChangedLines?.({added:D,removed:b}),s("renderComplete"),g.dispose()})})()}),ui(()=>{a=!0,c.value?.dispose(),f.value?.dispose(),u.value?.dispose(),c.value=null,f.value=null,u.value=null,l.value=null}),yt(()=>n.options,p=>{c.value&&c.value.updateOptions(p)},{deep:!0}),yt(()=>n.originalCode,p=>{f.value&&f.value.getValue()!==p&&f.value.setValue(p)}),yt(()=>n.modifiedCode,p=>{u.value&&u.value.getValue()!==p&&u.value.setValue(p)}),yt(()=>n.language,p=>{const m=l.value,g=f.value,v=u.value;!m||!g||!v||(m.editor.setModelLanguage(g,p),m.editor.setModelLanguage(v,p))}),yt(()=>n.modelOptions,p=>{!f.value||!u.value||(f.value.updateOptions(p),u.value.updateOptions(p))},{deep:!0}),(p,m)=>(Fe(),bt("div",{ref_key:"containerEl",ref:o,class:tn(["monaco-editor-container",{"hide-unchanged-actions":!$t(r)}])},null,2))}}),v_=Kr(g_,[["__scopeId","data-v-cfbdfd35"]]),E_={class:"top-bar-wrap"},y_={class:"title-area"},__={class:"filename"},N_={class:"diff-line-num"},b_={key:0,class:"add"},O_={key:1,class:"del"},S_={class:"toolbar"},w_=["checked"],C_={key:0},T_=["checked"],D_=Kn({__name:"TopBar",props:{diffPair:{default:()=>[]}},setup(e){const{funcs:t,registerFunc:n}=Xl(),s=e,i=ut(()=>{const[g,v]=s.diffPair;if(!g||!v)return"changed";const x=g.content===null,D=v.content===null;return x&&!D?"add":!x&&D?"del":g.filename!==v.filename?"rename":"changed"}),r=ut(()=>({changed:"changed",add:"added",del:"deleted",rename:"renamed"})[i.value]),o=ut(()=>{const[g,v]=s.diffPair;return g?i.value==="rename"?`${g.filename} → ${v.filename}`:g.filename:""}),{viewed:l,rawed:c,canUnchangeVisible:f}=t,u=function(g){const v=g.target.checked;l.value=v},a=function(g){const v=g.target.checked;c.value=v};Wn(()=>{});const p=$e({added:0,removed:0});function m(g){Object.assign(p.value,g)}return n({viewed:l,rawed:c,updateChangedLines:m}),(g,v)=>(Fe(),bt("div",E_,[nt("div",y_,[nt("div",__,Tn(o.value),1),nt("span",{class:tn(["diff-type-tag",i.value])},Tn(r.value),3),nt("div",N_,[i.value!=="del"?(Fe(),bt("div",b_,"+"+Tn(p.value.added),1)):js("",!0),i.value!=="add"?(Fe(),bt("div",O_,"-"+Tn(p.value.removed),1)):js("",!0)])]),nt("div",S_,[nt("label",null,[nt("input",{type:"checkbox",checked:$t(l),onChange:u},null,40,w_),v[0]||(v[0]=ei(" viewed ",-1))]),$t(f)?(Fe(),bt("label",C_,[nt("input",{type:"checkbox",checked:$t(c),onChange:a},null,40,T_),v[1]||(v[1]=ei(" raw ",-1))])):js("",!0)])]))}}),V_=Kr(D_,[["__scopeId","data-v-31155d0c"]]);function qp(e){const t=e.split(`
44
+ `},Ia=Qy(s_)(Hp),i_={config:t_},r_=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return function(i){return n.reduceRight(function(r,o){return o(r)},i)}};function Bp(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Bp(e[n],t[n]))}),Va(Va({},e),t)}var o_={type:"cancelation",msg:"operation is manually canceled"};function mo(e){var t=!1,n=new Promise(function(s,i){e.then(function(r){return t?i(o_):s(r)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var l_=["monaco"],c_=Xy.create({config:Zy,isInitialized:!1,resolve:null,reject:null,monaco:null}),Up=ky(c_,2),vi=Up[0],Wr=Up[1];function a_(e){var t=i_.config(e),n=t.monaco,s=Ay(t,l_);Wr(function(i){return{config:Bp(i.config,s),monaco:n}})}function f_(){var e=vi(function(t){var n=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:s,resolve:i}});if(!e.isInitialized){if(Wr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),mo(go);if(window.monaco&&window.monaco.editor)return Kp(window.monaco),e.resolve(window.monaco),mo(go);r_(u_,d_)(h_)}return mo(go)}function u_(e){return document.body.appendChild(e)}function p_(e){var t=document.createElement("script");return e&&(t.src=e),t}function d_(e){var t=vi(function(s){var i=s.config,r=s.reject;return{config:i,reject:r}}),n=p_("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function h_(){var e=vi(function(n){var s=n.config,i=n.resolve,r=n.reject;return{config:s,resolve:i,reject:r}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var s=n.m||n;Kp(s),e.resolve(s)},function(n){e.reject(n)})}function Kp(e){vi().monaco||Wr({monaco:e})}function m_(){return vi(function(e){var t=e.monaco;return t})}var go=new Promise(function(e,t){return Wr({resolve:e,reject:t})}),Wp={config:a_,init:f_,__getMonacoInstance:m_};const Xl=function({isMaster:e=!1}={}){return{...Cy({isMaster:e,key:"diffViewer"})}},g_=Kn({__name:"MonacoDiffViewer",props:{originalCode:{default:""},modifiedCode:{default:""},language:{default:"plaintext"},options:{default:()=>({})},modelOptions:{default:()=>({})}},emits:["renderComplete"],setup(e,{emit:t}){const n=e,s=t,{funcs:i}=Xl(),r=i.canUnchangeVisible,o=$e(null),l=Qn(null),c=Qn(null),f=Qn(null),u=Qn(null);let a=!1;return Wn(()=>{a=!1,(async()=>{const m=await Wp.init();if(a||!o.value)return;l.value=m,f.value=m.editor.createModel(n.originalCode,n.language),u.value=m.editor.createModel(n.modifiedCode,n.language),c.value=m.editor.createDiffEditor(o.value,{automaticLayout:!0,readOnly:!0,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!1,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...n.options}),c.value.setModel({original:f.value,modified:u.value}),Object.keys(n.modelOptions).length>0&&(f.value.updateOptions(n.modelOptions),u.value.updateOptions(n.modelOptions));const g=c.value.onDidUpdateDiff(()=>{const v=c.value?.getLineChanges()??[],x=(h,_)=>_===0?0:_-h+1,D=v.reduce((h,_)=>h+x(_.modifiedStartLineNumber,_.modifiedEndLineNumber),0),b=v.reduce((h,_)=>h+x(_.originalStartLineNumber,_.originalEndLineNumber),0);i.updateChangedLines?.({added:D,removed:b}),s("renderComplete"),g.dispose()})})()}),ui(()=>{a=!0,c.value?.dispose(),f.value?.dispose(),u.value?.dispose(),c.value=null,f.value=null,u.value=null,l.value=null}),yt(()=>n.options,p=>{c.value&&c.value.updateOptions(p)},{deep:!0}),yt(()=>n.originalCode,p=>{f.value&&f.value.getValue()!==p&&f.value.setValue(p)}),yt(()=>n.modifiedCode,p=>{u.value&&u.value.getValue()!==p&&u.value.setValue(p)}),yt(()=>n.language,p=>{const m=l.value,g=f.value,v=u.value;!m||!g||!v||(m.editor.setModelLanguage(g,p),m.editor.setModelLanguage(v,p))}),yt(()=>n.modelOptions,p=>{!f.value||!u.value||(f.value.updateOptions(p),u.value.updateOptions(p))},{deep:!0}),(p,m)=>(Fe(),bt("div",{ref_key:"containerEl",ref:o,class:tn(["monaco-editor-container",{"hide-unchanged-actions":!$t(r)}])},null,2))}}),v_=Kr(g_,[["__scopeId","data-v-cfbdfd35"]]),E_={class:"top-bar-wrap"},y_={class:"title-area"},__={class:"filename"},N_={class:"diff-line-num"},b_={key:0,class:"add"},O_={key:1,class:"del"},S_={class:"toolbar"},w_=["checked"],C_={key:0},T_=["checked"],D_=Kn({__name:"TopBar",props:{diffPair:{default:()=>[]}},setup(e){const{funcs:t,registerFunc:n}=Xl(),s=e,i=ut(()=>{const[g,v]=s.diffPair;if(!g||!v)return"changed";const x=g.content===null,D=v.content===null;return x&&!D?"add":!x&&D?"del":g.filename!==v.filename?"rename":"changed"}),r=ut(()=>({changed:"changed",add:"added",del:"deleted",rename:"renamed"})[i.value]),o=ut(()=>{const[g,v]=s.diffPair;return g?i.value==="rename"?`${g.filename} → ${v.filename}`:g.filename:""}),{viewed:l,rawed:c,canUnchangeVisible:f}=t,u=function(g){const v=g.target.checked;l.value=v},a=function(g){const v=g.target.checked;c.value=v};Wn(()=>{});const p=$e({added:0,removed:0});function m(g){Object.assign(p.value,g)}return n({viewed:l,rawed:c,updateChangedLines:m}),(g,v)=>(Fe(),bt("div",E_,[nt("div",y_,[nt("div",__,Tn(o.value),1),nt("span",{class:tn(["diff-type-tag",i.value])},Tn(r.value),3),nt("div",N_,[i.value!=="del"?(Fe(),bt("div",b_,"+"+Tn(p.value.added),1)):js("",!0),i.value!=="add"?(Fe(),bt("div",O_,"-"+Tn(p.value.removed),1)):js("",!0)])]),nt("div",S_,[nt("label",null,[nt("input",{type:"checkbox",checked:$t(l),onChange:u},null,40,w_),v[0]||(v[0]=ei(" viewed ",-1))]),$t(f)?(Fe(),bt("label",C_,[nt("input",{type:"checkbox",checked:$t(c),onChange:a},null,40,T_),v[1]||(v[1]=ei(" raw ",-1))])):js("",!0)])]))}}),V_=Kr(D_,[["__scopeId","data-v-937915eb"]]);function qp(e){const t=e.split(`
44
45
  `);let n="",s="";const i=[];let r=null;for(const o of t){if(o.startsWith("--- ")){n=o.slice(4).trim();continue}if(o.startsWith("+++ ")){s=o.slice(4).trim();continue}const l=o.match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);if(l){r={origStart:parseInt(l[1],10),origCount:l[2]!==void 0?parseInt(l[2],10):1,modStart:parseInt(l[3],10),modCount:l[4]!==void 0?parseInt(l[4],10):1,lines:[]},i.push(r);continue}if(r){if(o.startsWith("\\"))continue;r.lines.push(o)}}return{origFilename:n,modFilename:s,hunks:i}}const x_=function(e){if(!e)return[{filename:"",content:""},{filename:"",content:""}];const{origFilename:t,modFilename:n,hunks:s}=qp(e),i=[],r=[],o=[],l=[],c=()=>{const a=Math.max(o.length,l.length);for(let p=0;p<a;p++)i.push(o[p]??""),r.push(l[p]??"");o.length=0,l.length=0};let f=1,u=1;for(const a of s){for(;f<a.origStart;)i.push(""),f++;for(;u<a.modStart;)r.push(""),u++;for(const p of a.lines){const m=p[0],g=p.slice(1);m===" "?(c(),i.push(g),r.push(g),f++,u++):m==="-"?(o.push(g),f++):m==="+"&&(l.push(g),u++)}c()}return[{filename:t,content:i.join(`
45
46
  `)},{filename:n,content:r.join(`
46
47
  `)}]},vo=18;function Gp(e,t,n){let s=0,i=-1,r=-1;const o=()=>{i!==-1&&(i>1&&(s+=1),s+=r-i+1,i=-1,r=-1)};return{feed(l,c){const f=Math.max(1,l-t),u=Math.min(e,c+t);r===-1||f>r+1?(o(),i=f,r=u):r=Math.max(r,u)},flush(){return o(),s>0&&r!==e&&(s+=1),Math.min(s,n)},get visible(){return s},get maxReached(){return s>=n}}}const A_=function({patch:e,minLine:t,maxLine:n,unchangedCtxLineNum:s}){const{hunks:i}=qp(e);if(i.length===0)return t;const r=i[i.length-1],o=Math.max(r.origStart+r.origCount-1,r.modStart+r.modCount-1),l=Gp(o,s,n);for(const c of i){const f=Math.max(c.origStart+c.origCount-1,c.modStart+c.modCount-1);if(l.feed(c.origStart,f),l.maxReached)return n}return Math.max(t,l.flush())},I_=function({pair:e,minLine:t,maxLine:n,unchangedVisiable:s,unchangedCtxLineNum:i}){if(!e||e.length<2)return t;const r=e[0].content?.split(`
@@ -1,3 +1,4 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".m-loading-parent--relative{position:relative}.m-loading-mask[data-v-ad861b5c]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff9}@keyframes widgetLoading-ad861b5c{0%{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}50%{opacity:1;transform:translateY(calc(var(--column-height) / 2)) scaleY(2)}to{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}}.loading-animate[data-v-ad861b5c]{height:30px;position:relative}.loading-animate .loading-animate-column[data-v-ad861b5c]{position:absolute;width:var(--column-width);height:var(--column-height);opacity:.2;animation:.6s ease-in-out 0s infinite widgetLoading-ad861b5c;transform:translateY(var(--column-height)) scaleY(1);transform-origin:top}.xfade-enter[data-v-ad861b5c],.xfade-enter-from[data-v-ad861b5c]{opacity:0}.xfade-enter-active[data-v-ad861b5c]{transition:opacity .4s ease}.xfade-leave-active[data-v-ad861b5c]{transition:opacity .4s ease;opacity:0}.monaco-editor-container[data-v-cfbdfd35]{width:100%;height:100%}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget{cursor:not-allowed}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget .diff-hidden-lines{pointer-events:none;opacity:.75}.top-bar-wrap[data-v-937915eb]{box-sizing:border-box;height:32px;display:flex;overflow:hidden;align-items:center;background-color:#f7f7f7;padding:4px 8px}.top-bar-wrap .title-area[data-v-937915eb]{flex:1;display:flex;align-items:center;overflow:hidden}.top-bar-wrap .title-area .filename[data-v-937915eb]{font-size:14px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-bar-wrap .title-area .diff-line-num[data-v-937915eb]{flex-shrink:0;display:inline-flex;font-size:12px;font-weight:700;margin-left:4px}.top-bar-wrap .title-area .diff-line-num .add[data-v-937915eb]{color:#1a7f37}.top-bar-wrap .title-area .diff-line-num .del[data-v-937915eb]{color:#d1242f;margin-left:4px}.top-bar-wrap .toolbar[data-v-937915eb]{font-size:12px;flex-shrink:0;display:flex;align-items:center;gap:4px}.top-bar-wrap .toolbar label[data-v-937915eb]{display:inline-flex;align-items:center;cursor:pointer;margin-right:4px}.top-bar-wrap .toolbar label.disabled[data-v-937915eb]{opacity:.4;cursor:not-allowed;pointer-events:none}.top-bar-wrap .toolbar label input[data-v-937915eb]{margin-right:2px}.diff-type-tag[data-v-937915eb]{flex-shrink:0;display:block;font-size:10px;font-weight:600;padding:2px 4px;border-radius:2px;margin-left:4px}.diff-type-tag.changed[data-v-937915eb]{background-color:#ddf4ff;color:#0969da}.diff-type-tag.add[data-v-937915eb]{background-color:#dafbe1;color:#1a7f37}.diff-type-tag.del[data-v-937915eb]{background-color:#ffebe9;color:#d1242f}.diff-type-tag.rename[data-v-937915eb]{background-color:#fff8c5;color:#9a6700}.diff-viewer-wrap[data-v-1a08d1d2]{width:var(--viewer-width);border:1px solid #ddd}.diff-viewer-wrap .top-bar[data-v-1a08d1d2]{flex-shrink:0}.diff-viewer-wrap .content-wrap[data-v-1a08d1d2]{height:var(--viewer-height);overflow:hidden}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
2
  // @__NO_SIDE_EFFECTS__
2
3
  function Ve(e) {
3
4
  const t = /* @__PURE__ */ Object.create(null);
@@ -12799,7 +12800,7 @@ const Xl = function({ isMaster: e = !1 } = {}) {
12799
12800
  ])
12800
12801
  ]));
12801
12802
  }
12802
- }), T_ = /* @__PURE__ */ Kr(C_, [["__scopeId", "data-v-31155d0c"]]);
12803
+ }), T_ = /* @__PURE__ */ Kr(C_, [["__scopeId", "data-v-937915eb"]]);
12803
12804
  function Kp(e) {
12804
12805
  const t = e.split(`
12805
12806
  `);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yuhufe/wtool-vdiff",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "description": "Monaco diff viewer as Vue 3 Web Component",
7
7
  "keywords": [
@@ -35,15 +35,16 @@
35
35
  "vue": "^3.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@yuhufe/web-ui": "workspace:*",
39
38
  "@monaco-editor/loader": "^1.6.1",
40
- "monaco-editor": "^0.53.0",
41
- "less": "4.6.4"
39
+ "less": "4.6.4",
40
+ "monaco-editor": "^0.53.0"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@vitejs/plugin-vue": "^5.2.0",
44
+ "@yuhufe/web-ui": "workspace:*",
45
45
  "typescript": "^5.9.3",
46
46
  "vite": "^7.3.1",
47
+ "vite-plugin-css-injected-by-js": "5.0.1",
47
48
  "vite-plugin-dts": "^4.5.3",
48
49
  "vue": "^3.5.0"
49
50
  },
@@ -148,12 +148,17 @@ registerFunc({
148
148
  display: inline-flex;
149
149
  align-items: center;
150
150
  cursor: pointer;
151
+ margin-right: 4px;
151
152
 
152
153
  &.disabled {
153
154
  opacity: 0.4;
154
155
  cursor: not-allowed;
155
156
  pointer-events: none;
156
157
  }
158
+
159
+ input {
160
+ margin-right: 2px;
161
+ }
157
162
  }
158
163
  }
159
164
  }
@@ -1 +0,0 @@
1
- .m-loading-parent--relative{position:relative}.m-loading-mask[data-v-ad861b5c]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff9}@keyframes widgetLoading-ad861b5c{0%{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}50%{opacity:1;transform:translateY(calc(var(--column-height) / 2)) scaleY(2)}to{opacity:.2;transform:translateY(var(--column-height)) scaleY(1)}}.loading-animate[data-v-ad861b5c]{height:30px;position:relative}.loading-animate .loading-animate-column[data-v-ad861b5c]{position:absolute;width:var(--column-width);height:var(--column-height);opacity:.2;animation:.6s ease-in-out 0s infinite widgetLoading-ad861b5c;transform:translateY(var(--column-height)) scaleY(1);transform-origin:top}.xfade-enter[data-v-ad861b5c],.xfade-enter-from[data-v-ad861b5c]{opacity:0}.xfade-enter-active[data-v-ad861b5c]{transition:opacity .4s ease}.xfade-leave-active[data-v-ad861b5c]{transition:opacity .4s ease;opacity:0}.monaco-editor-container[data-v-cfbdfd35]{width:100%;height:100%}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget{cursor:not-allowed}.monaco-editor-container.hide-unchanged-actions .diff-hidden-lines-widget .diff-hidden-lines{pointer-events:none;opacity:.75}.top-bar-wrap[data-v-31155d0c]{box-sizing:border-box;height:32px;display:flex;overflow:hidden;align-items:center;background-color:#f7f7f7;padding:4px 8px}.top-bar-wrap .title-area[data-v-31155d0c]{flex:1;display:flex;align-items:center;overflow:hidden}.top-bar-wrap .title-area .filename[data-v-31155d0c]{font-size:14px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-bar-wrap .title-area .diff-line-num[data-v-31155d0c]{flex-shrink:0;display:inline-flex;font-size:12px;font-weight:700;margin-left:4px}.top-bar-wrap .title-area .diff-line-num .add[data-v-31155d0c]{color:#1a7f37}.top-bar-wrap .title-area .diff-line-num .del[data-v-31155d0c]{color:#d1242f;margin-left:4px}.top-bar-wrap .toolbar[data-v-31155d0c]{font-size:12px;flex-shrink:0;display:flex;align-items:center;gap:4px}.top-bar-wrap .toolbar label[data-v-31155d0c]{display:inline-flex;align-items:center;cursor:pointer}.top-bar-wrap .toolbar label.disabled[data-v-31155d0c]{opacity:.4;cursor:not-allowed;pointer-events:none}.diff-type-tag[data-v-31155d0c]{flex-shrink:0;display:block;font-size:10px;font-weight:600;padding:2px 4px;border-radius:2px;margin-left:4px}.diff-type-tag.changed[data-v-31155d0c]{background-color:#ddf4ff;color:#0969da}.diff-type-tag.add[data-v-31155d0c]{background-color:#dafbe1;color:#1a7f37}.diff-type-tag.del[data-v-31155d0c]{background-color:#ffebe9;color:#d1242f}.diff-type-tag.rename[data-v-31155d0c]{background-color:#fff8c5;color:#9a6700}.diff-viewer-wrap[data-v-1a08d1d2]{width:var(--viewer-width);border:1px solid #ddd}.diff-viewer-wrap .top-bar[data-v-1a08d1d2]{flex-shrink:0}.diff-viewer-wrap .content-wrap[data-v-1a08d1d2]{height:var(--viewer-height);overflow:hidden}