vendor: 4,743 bytes, line 1
1import{$ as w,I as T,C as p,m as z,l as F,o as W}from"./web.7cd7f0a9.js";const D=Symbol("store-raw"),g=Symbol("store-node"),q=Symbol("store-name");function C(n,e){let i=n[w];if(!i&&(Object.defineProperty(n,w,{value:i=new Proxy(n,X)}),!Array.isArray(n))){const l=Object.keys(n),f=Object.getOwnPropertyDescriptors(n);for(let o=0,t=l.length;o<t;o++){const u=l[o];f[u].get&&Object.defineProperty(n,u,{enumerable:f[u].enumerable,get:f[u].get.bind(i)})}}return i}function O(n){let e;return n!=null&&typeof n=="object"&&(n[w]||!(e=Object.getPrototypeOf(n))||e===Object.prototype||Array.isArray(n))}function y(n,e=new Set){let i,l,f,o;if(i=n!=null&&n[D])return i;if(!O(n)||e.has(n))return n;if(Array.isArray(n)){Object.isFrozen(n)?n=n.slice(0):e.add(n);for(let t=0,u=n.length;t<u;t++)f=n[t],(l=y(f,e))!==f&&(n[t]=l)}else{Object.isFrozen(n)?n=Object.assign({},n):e.add(n);const t=Object.keys(n),u=Object.getOwnPropertyDescriptors(n);for(let r=0,s=t.length;r<s;r++)o=t[r],!u[o].get&&(f=n[o],(l=y(f,e))!==f&&(n[o]=l))}return n}function R(n){let e=n[g];return e||Object.defineProperty(n,g,{value:e={}}),e}function N(n,e,i){return n[e]||(n[e]=I(i))}function L(n,e){const i=Reflect.getOwnPropertyDescriptor(n,e);return!i||i.get||!i.configurable||e===w||e===g||e===q||(delete i.value,delete i.writable,i.get=()=>n[w][e]),i}function E(n){if(p()){const e=R(n);(e._||(e._=I()))()}}function V(n){return E(n),Reflect.ownKeys(n)}function I(n){const[e,i]=F(n,{equals:!1,internal:!0});return e.$=i,e}const X={get(n,e,i){if(e===D)return n;if(e===w)return i;if(e===T)return E(n),i;const l=R(n),f=l.hasOwnProperty(e);let o=f?l[e]():n[e];if(e===g||e==="__proto__")return o;if(!f){const t=Object.getOwnPropertyDescriptor(n,e);p()&&(typeof o!="function"||n.hasOwnProperty(e))&&!(t&&t.get)&&(o=N(l,e,o)())}return O(o)?C(o):o},has(n,e){return e===D||e===w||e===T||e===g||e==="__proto__"?!0:(this.get(n,e,n),e in n)},set(){return!0},deleteProperty(){return!0},ownKeys:V,getOwnPropertyDescriptor:L};function h(n,e,i,l=!1){if(!l&&n[e]===i)return;const f=n[e],o=n.length;i===void 0?delete n[e]:n[e]=i;let t=R(n),u;(u=N(t,e,f))&&u.$(()=>i),Array.isArray(n)&&n.length!==o&&(u=N(t,"length",o))&&u.$(n.length),(u=t._)&&u.$()}function M(n,e){const i=Object.keys(e);for(let l=0;l<i.length;l+=1){const f=i[l];h(n,f,e[f])}}function Y(n,e){if(typeof e=="function"&&(e=e(n)),e=y(e),Array.isArray(e)){if(n===e)return;let i=0,l=e.length;for(;i<l;i++){const f=e[i];n[i]!==f&&h(n,i,f)}h(n,"length",l)}else M(n,e)}function $(n,e,i=[]){let l,f=n;if(e.length>1){l=e.shift();const t=typeof l,u=Array.isArray(n);if(Array.isArray(l)){for(let r=0;r<l.length;r++)$(n,[l[r]].concat(e),i);return}else if(u&&t==="function"){for(let r=0;r<n.length;r++)l(n[r],r)&&$(n,[r].concat(e),i);return}else if(u&&t==="object"){const{from:r=0,to:s=n.length-1,by:c=1}=l;for(let d=r;d<=s;d+=c)$(n,[d].concat(e),i);return}else if(e.length>1){$(n[l],e,[l].concat(i));return}f=n[l],i=[l].concat(i)}let o=e[0];typeof o=="function"&&(o=o(f,i),o===f)||l===void 0&&o==null||(o=y(o),l===void 0||O(f)&&O(o)&&!Array.isArray(o)?M(f,o):h(n,l,o))}function v(...[n,e]){const i=y(n||{}),l=Array.isArray(i),f=C(i);function o(...t){z(()=>{l&&t.length===1?Y(i,t[0]):$(i,t)})}return[f,o]}const K=Symbol("store-root");function P(n,e,i,l,f){const o=e[i];if(n===o)return;if(i!==K&&(!O(n)||!O(o)||f&&n[f]!==o[f])){h(e,i,n);return}if(Array.isArray(n)){if(n.length&&o.length&&(!l||f&&n[0]&&n[0][f]!=null)){let r,s,c,d,b,A,_,a;for(c=0,d=Math.min(o.length,n.length);c<d&&(o[c]===n[c]||f&&o[c]&&n[c]&&o[c][f]===n[c][f]);c++)P(n[c],o,c,l,f);const j=new Array(n.length),S=new Map;for(d=o.length-1,b=n.length-1;d>=c&&b>=c&&(o[d]===n[b]||f&&o[c]&&n[c]&&o[d][f]===n[b][f]);d--,b--)j[b]=o[d];if(c>b||c>d){for(s=c;s<=b;s++)h(o,s,n[s]);for(;s<n.length;s++)h(o,s,j[s]),P(n[s],o,s,l,f);o.length>n.length&&h(o,"length",n.length);return}for(_=new Array(b+1),s=b;s>=c;s--)A=n[s],a=f&&A?A[f]:A,r=S.get(a),_[s]=r===void 0?-1:r,S.set(a,s);for(r=c;r<=d;r++)A=o[r],a=f&&A?A[f]:A,s=S.get(a),s!==void 0&&s!==-1&&(j[s]=o[r],s=_[s],S.set(a,s));for(s=c;s<n.length;s++)s in j?(h(o,s,j[s]),P(n[s],o,s,l,f)):h(o,s,n[s])}else for(let r=0,s=n.length;r<s;r++)P(n[r],o,r,l,f);o.length>n.length&&h(o,"length",n.length);return}const t=Object.keys(n);for(let r=0,s=t.length;r<s;r++)P(n[t[r]],o,t[r],l,f);const u=Object.keys(o);for(let r=0,s=u.length;r<s;r++)n[u[r]]===void 0&&h(o,u[r],void 0)}function B(n,e={}){const{merge:i,key:l="id"}=e,f=y(n);return o=>{if(!O(o)||!O(f))return f;const t=P(f,{[K]:o},K,i,l);return t===void 0?o:t}}function J(n){let e=n.get(),[i,l]=G(e),f=n.subscribe(l);return W(()=>f()),i}function G(n){let[e,i]=v({value:n});return[()=>e.value,l=>{let f=y(e.value);return typeof l=="function"&&(l=l(f)),i("value",B(l)),e.value}]}export{v as c,J as f,B as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.