Files
llm-in-text/.build-check/assets/vendor-lodash-es-XiV8Prow.js
T
ydy0615 838eec30a8 feat: add theme management with light and dark modes
- Implemented a new composable `useTheme` for managing theme state.
- Added functions to read and write theme preference to local storage.
- Applied theme styles to the DOM based on user preference.
- Introduced a toggle function to switch between light and dark themes.

refactor: enhance copilot plugin functionality

- Improved request handling with sequence and document versioning.
- Refactored ghost text handling to improve clarity and efficiency.
- Updated markdown insertion logic to handle parsed content more robustly.
- Enhanced error handling and logging for better debugging.

style: update global styles for light and dark themes

- Defined CSS variables for light and dark themes to streamline styling.
- Improved overall styling consistency and responsiveness.
- Added transitions for smoother theme changes and interactions.
2026-02-15 15:44:09 +08:00

2 lines
13 KiB
JavaScript

var dt=typeof global=="object"&&global&&global.Object===Object&&global,Ft=typeof self=="object"&&self&&self.Object===Object&&self,m=dt||Ft||Function("return this")(),C=m.Symbol,pt=Object.prototype,Nt=pt.hasOwnProperty,zt=pt.toString,A=C?C.toStringTag:void 0;function Dt(t){var e=Nt.call(t,A),r=t[A];try{t[A]=void 0;var n=!0}catch{}var i=zt.call(t);return n&&(e?t[A]=r:delete t[A]),i}var Rt=Object.prototype,Ut=Rt.toString;function Bt(t){return Ut.call(t)}var Ht="[object Null]",Lt="[object Undefined]",V=C?C.toStringTag:void 0;function w(t){return t==null?t===void 0?Lt:Ht:V&&V in Object(t)?Dt(t):Bt(t)}function T(t){return t!=null&&typeof t=="object"}var Gt="[object Symbol]";function Wt(t){return typeof t=="symbol"||T(t)&&w(t)==Gt}var B=Array.isArray,Kt=/\s/;function Xt(t){for(var e=t.length;e--&&Kt.test(t.charAt(e)););return e}var qt=/^\s+/;function Jt(t){return t&&t.slice(0,Xt(t)+1).replace(qt,"")}function p(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var k=NaN,Yt=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,Qt=/^0o[0-7]+$/i,Vt=parseInt;function tt(t){if(typeof t=="number")return t;if(Wt(t))return k;if(p(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=p(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Jt(t);var r=Zt.test(t);return r||Qt.test(t)?Vt(t.slice(2),r?2:8):Yt.test(t)?k:+t}function ht(t){return t}var kt="[object AsyncFunction]",te="[object Function]",ee="[object GeneratorFunction]",re="[object Proxy]";function W(t){if(!p(t))return!1;var e=w(t);return e==te||e==ee||e==kt||e==re}var D=m["__core-js_shared__"],et=(function(){var t=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ne(t){return!!et&&et in t}var ie=Function.prototype,ae=ie.toString;function oe(t){if(t!=null){try{return ae.call(t)}catch{}try{return t+""}catch{}}return""}var ue=/[\\^$.*+?()[\]{}|]/g,fe=/^\[object .+?Constructor\]$/,se=Function.prototype,ce=Object.prototype,le=se.toString,de=ce.hasOwnProperty,pe=RegExp("^"+le.call(de).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function he(t){if(!p(t)||ne(t))return!1;var e=W(t)?pe:fe;return e.test(oe(t))}function ge(t,e){return t?.[e]}function K(t,e){var r=ge(t,e);return he(r)?r:void 0}var rt=Object.create,ve=(function(){function t(){}return function(e){if(!p(e))return{};if(rt)return rt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function gt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ye(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var _e=800,be=16,me=Date.now;function Te(t){var e=0,r=0;return function(){var n=me(),i=be-(n-r);if(r=n,i>0){if(++e>=_e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Oe(t){return function(){return t}}var E=(function(){try{var t=K(Object,"defineProperty");return t({},"",{}),t}catch{}})(),je=E?function(t,e){return E(t,"toString",{configurable:!0,enumerable:!1,value:Oe(e),writable:!0})}:ht,xe=Te(je),Ae=9007199254740991,Se=/^(?:0|[1-9]\d*)$/;function vt(t,e){var r=typeof t;return e=e??Ae,!!e&&(r=="number"||r!="symbol"&&Se.test(t))&&t>-1&&t%1==0&&t<e}function X(t,e,r){e=="__proto__"&&E?E(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function M(t,e){return t===e||t!==t&&e!==e}var $e=Object.prototype,we=$e.hasOwnProperty;function Pe(t,e,r){var n=t[e];(!(we.call(t,e)&&M(n,r))||r===void 0&&!(e in t))&&X(t,e,r)}function Ie(t,e,r,n){var i=!r;r||(r={});for(var o=-1,f=e.length;++o<f;){var a=e[o],u=void 0;u===void 0&&(u=t[a]),i?X(r,a,u):Pe(r,a,u)}return r}var nt=Math.max;function Ce(t,e,r){return e=nt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=nt(n.length-e,0),f=Array(o);++i<o;)f[i]=n[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=n[i];return a[e]=r(f),gt(t,this,a)}}function yt(t,e){return xe(Ce(t,e,ht),t+"")}var Ee=9007199254740991;function _t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ee}function q(t){return t!=null&&_t(t.length)&&!W(t)}function Me(t,e,r){if(!p(r))return!1;var n=typeof e;return(n=="number"?q(r)&&vt(e,r.length):n=="string"&&e in r)?M(r[e],t):!1}function Fe(t){return yt(function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,f=i>2?r[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,f&&Me(r[0],r[1],f)&&(o=i<3?void 0:o,i=1),e=Object(e);++n<i;){var a=r[n];a&&t(e,a,n,o)}return e})}var Ne=Object.prototype;function bt(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ne;return t===r}function ze(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var De="[object Arguments]";function it(t){return T(t)&&w(t)==De}var mt=Object.prototype,Re=mt.hasOwnProperty,Ue=mt.propertyIsEnumerable,H=it((function(){return arguments})())?it:function(t){return T(t)&&Re.call(t,"callee")&&!Ue.call(t,"callee")};function Be(){return!1}var Tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,at=Tt&&typeof module=="object"&&module&&!module.nodeType&&module,He=at&&at.exports===Tt,ot=He?m.Buffer:void 0,Le=ot?ot.isBuffer:void 0,Ot=Le||Be,Ge="[object Arguments]",We="[object Array]",Ke="[object Boolean]",Xe="[object Date]",qe="[object Error]",Je="[object Function]",Ye="[object Map]",Ze="[object Number]",Qe="[object Object]",Ve="[object RegExp]",ke="[object Set]",tr="[object String]",er="[object WeakMap]",rr="[object ArrayBuffer]",nr="[object DataView]",ir="[object Float32Array]",ar="[object Float64Array]",or="[object Int8Array]",ur="[object Int16Array]",fr="[object Int32Array]",sr="[object Uint8Array]",cr="[object Uint8ClampedArray]",lr="[object Uint16Array]",dr="[object Uint32Array]",s={};s[ir]=s[ar]=s[or]=s[ur]=s[fr]=s[sr]=s[cr]=s[lr]=s[dr]=!0;s[Ge]=s[We]=s[rr]=s[Ke]=s[nr]=s[Xe]=s[qe]=s[Je]=s[Ye]=s[Ze]=s[Qe]=s[Ve]=s[ke]=s[tr]=s[er]=!1;function pr(t){return T(t)&&_t(t.length)&&!!s[w(t)]}function hr(t){return function(e){return t(e)}}var jt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,S=jt&&typeof module=="object"&&module&&!module.nodeType&&module,gr=S&&S.exports===jt,R=gr&&dt.process,ut=(function(){try{var t=S&&S.require&&S.require("util").types;return t||R&&R.binding&&R.binding("util")}catch{}})(),ft=ut&&ut.isTypedArray,xt=ft?hr(ft):pr;function vr(t,e){var r=B(t),n=!r&&H(t),i=!r&&!n&&Ot(t),o=!r&&!n&&!i&&xt(t),f=r||n||i||o,a=f?ze(t.length,String):[],u=a.length;for(var l in t)f&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||vt(l,u))||a.push(l);return a}function yr(t,e){return function(r){return t(e(r))}}function _r(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var br=Object.prototype,mr=br.hasOwnProperty;function Tr(t){if(!p(t))return _r(t);var e=bt(t),r=[];for(var n in t)n=="constructor"&&(e||!mr.call(t,n))||r.push(n);return r}function At(t){return q(t)?vr(t):Tr(t)}var $=K(Object,"create");function Or(){this.__data__=$?$(null):{},this.size=0}function jr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var xr="__lodash_hash_undefined__",Ar=Object.prototype,Sr=Ar.hasOwnProperty;function $r(t){var e=this.__data__;if($){var r=e[t];return r===xr?void 0:r}return Sr.call(e,t)?e[t]:void 0}var wr=Object.prototype,Pr=wr.hasOwnProperty;function Ir(t){var e=this.__data__;return $?e[t]!==void 0:Pr.call(e,t)}var Cr="__lodash_hash_undefined__";function Er(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=$&&e===void 0?Cr:e,this}function b(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}b.prototype.clear=Or;b.prototype.delete=jr;b.prototype.get=$r;b.prototype.has=Ir;b.prototype.set=Er;function Mr(){this.__data__=[],this.size=0}function F(t,e){for(var r=t.length;r--;)if(M(t[r][0],e))return r;return-1}var Fr=Array.prototype,Nr=Fr.splice;function zr(t){var e=this.__data__,r=F(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Nr.call(e,r,1),--this.size,!0}function Dr(t){var e=this.__data__,r=F(e,t);return r<0?void 0:e[r][1]}function Rr(t){return F(this.__data__,t)>-1}function Ur(t,e){var r=this.__data__,n=F(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function g(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}g.prototype.clear=Mr;g.prototype.delete=zr;g.prototype.get=Dr;g.prototype.has=Rr;g.prototype.set=Ur;var St=K(m,"Map");function Br(){this.size=0,this.__data__={hash:new b,map:new(St||g),string:new b}}function Hr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function N(t,e){var r=t.__data__;return Hr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Lr(t){var e=N(this,t).delete(t);return this.size-=e?1:0,e}function Gr(t){return N(this,t).get(t)}function Wr(t){return N(this,t).has(t)}function Kr(t,e){var r=N(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function O(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}O.prototype.clear=Br;O.prototype.delete=Lr;O.prototype.get=Gr;O.prototype.has=Wr;O.prototype.set=Kr;var $t=yr(Object.getPrototypeOf,Object),Xr="[object Object]",qr=Function.prototype,Jr=Object.prototype,wt=qr.toString,Yr=Jr.hasOwnProperty,Zr=wt.call(Object);function Qr(t){if(!T(t)||w(t)!=Xr)return!1;var e=$t(t);if(e===null)return!0;var r=Yr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&wt.call(r)==Zr}function Vr(){this.__data__=new g,this.size=0}function kr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function tn(t){return this.__data__.get(t)}function en(t){return this.__data__.has(t)}var rn=200;function nn(t,e){var r=this.__data__;if(r instanceof g){var n=r.__data__;if(!St||n.length<rn-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new O(n)}return r.set(t,e),this.size=r.size,this}function j(t){var e=this.__data__=new g(t);this.size=e.size}j.prototype.clear=Vr;j.prototype.delete=kr;j.prototype.get=tn;j.prototype.has=en;j.prototype.set=nn;var Pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=Pt&&typeof module=="object"&&module&&!module.nodeType&&module,an=st&&st.exports===Pt,ct=an?m.Buffer:void 0;ct&&ct.allocUnsafe;function on(t,e){return t.slice()}var lt=m.Uint8Array;function un(t){var e=new t.constructor(t.byteLength);return new lt(e).set(new lt(t)),e}function fn(t,e){var r=un(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}function sn(t){return typeof t.constructor=="function"&&!bt(t)?ve($t(t)):{}}function cn(t){return function(e,r,n){for(var i=-1,o=Object(e),f=n(e),a=f.length;a--;){var u=f[++i];if(r(o[u],u,o)===!1)break}return e}}var ln=cn(),U=function(){return m.Date.now()},dn="Expected a function",pn=Math.max,hn=Math.min;function gn(t,e,r){var n,i,o,f,a,u,l=0,d=!1,h=!1,y=!0;if(typeof t!="function")throw new TypeError(dn);e=tt(e)||0,p(r)&&(d=!!r.leading,h="maxWait"in r,o=h?pn(tt(r.maxWait)||0,e):o,y="trailing"in r?!!r.trailing:y);function _(c){var v=n,x=i;return n=i=void 0,l=c,f=t.apply(x,v),f}function P(c){return l=c,a=setTimeout(I,e),d?_(c):f}function Ct(c){var v=c-u,x=c-l,Q=e-v;return h?hn(Q,o-x):Q}function Y(c){var v=c-u,x=c-l;return u===void 0||v>=e||v<0||h&&x>=o}function I(){var c=U();if(Y(c))return Z(c);a=setTimeout(I,Ct(c))}function Z(c){return a=void 0,y&&n?_(c):(n=i=void 0,f)}function Et(){a!==void 0&&clearTimeout(a),l=0,n=u=i=a=void 0}function Mt(){return a===void 0?f:Z(U())}function z(){var c=U(),v=Y(c);if(n=arguments,i=this,u=c,v){if(a===void 0)return P(u);if(h)return clearTimeout(a),a=setTimeout(I,e),_(u)}return a===void 0&&(a=setTimeout(I,e)),f}return z.cancel=Et,z.flush=Mt,z}function L(t,e,r){(r!==void 0&&!M(t[e],r)||r===void 0&&!(e in t))&&X(t,e,r)}function vn(t){return T(t)&&q(t)}function G(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function yn(t){return Ie(t,At(t))}function _n(t,e,r,n,i,o,f){var a=G(t,r),u=G(e,r),l=f.get(u);if(l){L(t,r,l);return}var d=o?o(a,u,r+"",t,e,f):void 0,h=d===void 0;if(h){var y=B(u),_=!y&&Ot(u),P=!y&&!_&&xt(u);d=u,y||_||P?B(a)?d=a:vn(a)?d=ye(a):_?(h=!1,d=on(u)):P?(h=!1,d=fn(u)):d=[]:Qr(u)||H(u)?(d=a,H(a)?d=yn(a):(!p(a)||W(a))&&(d=sn(u))):h=!1}h&&(f.set(u,d),i(d,u,n,o,f),f.delete(u)),L(t,r,d)}function J(t,e,r,n,i){t!==e&&ln(e,function(o,f){if(i||(i=new j),p(o))_n(t,e,f,r,J,n,i);else{var a=n?n(G(t,f),o,f+"",t,e,i):void 0;a===void 0&&(a=o),L(t,f,a)}},At)}function It(t,e,r,n,i,o){return p(t)&&p(e)&&(o.set(e,t),J(t,e,void 0,It,o),o.delete(e)),t}var bn=Fe(function(t,e,r,n){J(t,e,r,n)}),Tn=yt(function(t){return t.push(void 0,It),gt(bn,void 0,t)}),mn="Expected a function";function On(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(mn);return p(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),gn(t,e,{leading:n,maxWait:e,trailing:i})}export{Tn as a,gn as d,On as t};