PageSourceSearch

https://multi-toolkit.com/_next/static/chunks/3603-947fd757d46a446f.js

js multi-toolkit.com collected 2026-10-02 01:37:41 UTC 7,778 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3603],{27863:(e,t,n)=>{n.d(t,{pR:()=>P});var l=n(49897);function o(e,t){let n;for(n=0;n<e.length&&n<t.length&&e[n]==t[n];n++);return e.slice(0,n)}function r(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length&&e[e.length-(n+1)]==t[t.length-(n+1)];n++);return e.slice(-n)}function s(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function u(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function i(e,t){return s(e,t,"")}function a(e,t){return t.slice(0,function(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let l=t.length;e.length<t.length&&(l=e.length);let o=Array(l),r=0;o[0]=0;for(let e=1;e<l;e++){for(t[e]==t[r]?o[e]=o[r]:o[e]=r;r>0&&t[e]!=t[r];)r=o[r];t[e]==t[r]&&r++}r=0;for(let l=n;l<e.length;l++){for(;r>0&&e[l]!=t[r];)r=o[r];e[l]==t[r]&&r++}return r}(e,t))}function h(e,t){let n=[];for(let l of Array.from(t.segment(e))){let e=l.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function f(e,t){let n;if(t)return d(e,t)[1];for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function c(e,t){if(t)return d(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:""}function d(e,t){if(!t)return[c(e),f(e)];if("word"!=t.resolvedOptions().granularity)throw Error('The segmenter passed must have a granularity of "word"');let n=h(e,t),l=n[0],o=n[n.length-1];return[/\s/.test(l)?l:"",/\s/.test(o)?o:""]}let g="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",p=RegExp(`[${g}]+|\\s+|[^${g}]`,"ug");class v extends l.A{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let l=t.intlSegmenter;if("word"!=l.resolvedOptions().granularity)throw Error('The segmenter passed must have a granularity of "word"');n=h(e,l)}else n=e.match(p)||[];let l=[],o=null;return n.forEach(e=>{/\s/.test(e)?null==o?l.push(e):l.push(l.pop()+e):null!=o&&/\s/.test(o)?l[l.length-1]==o?l.push(l.pop()+e):l.push(o+e):l.push(e),o=e}),l}join(e){return e.map((e,t)=>0==t?e:e.replace(/^\s+/,"")).join("")}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,l=null,o=null;return e.forEach(e=>{e.added?l=e:e.removed?o=e:((l||o)&&m(n,o,l,e,t.intlSegmenter),n=e,l=null,o=null)}),(l||o)&&m(n,o,l,null,t.intlSegmenter),e}}function m(e,t,n,l,h){var g,p,v,m;if(t&&n){let[a,f]=d(t.value,h),[c,v]=d(n.value,h);if(e){let l=o(a,c);e.value=u(e.value,c,l),t.value=i(t.value,l),n.value=i(n.value,l)}if(l){let e=r(f,v);l.value=s(l.value,v,e),g=t.value,t.value=u(g,e,""),p=n.value,n.value=u(p,e,"")}}else if(n){if(e){let e=c(n.value,h);n.value=n.value.substring(e.length)}if(l){let e=c(l.value,h);l.value=l.value.substring(e.length)}}else if(e&&l){let n=c(l.value,h),[a,f]=d(t.value,h),g=o(n,a);t.value=i(t.value,g);let p=r(i(n,g),f);v=t.value,t.value=u(v,p,""),l.value=s(l.value,n,p),e.value=u(e.value,n,n.slice(0,n.length-p.length))}else if(l){let e=c(l.value,h),n=a(f(t.value,h),e);m=t.value,t.value=u(m,n,"")}else if(e){let n=a(f(e.value,h),c(t.value,h));t.value=i(t.value,n)}}new v;class C extends l.A{tokenize(e){let t=RegExp(`(\\r?\\n)|[${g}]+|[^\\S\\n\\r]+|[^${g}]`,"ug");return e.match(t)||[]}}let w=new C;function P(e,t,n){return w.diff(e,t,n)}},49897:(e,t,n)=>{n.d(t,{A:()=>l});class l{diff(e,t,n={}){let l;"function"==typeof n?(l=n,n={}):"callback"in n&&(l=n.callback);let o=this.castInput(e,n),r=this.castInput(t,n),s=this.removeEmpty(this.tokenize(o,n)),u=this.removeEmpty(this.tokenize(r,n));return this.diffWithOptionsObj(s,u,n,l)}diffWithOptionsObj(e,t,n,l){var o;let r=e=>(e=this.postProcess(e,n),l)?void setTimeout(function(){l(e)},0):e,s=t.length,u=e.length,i=1,a=s+u;null!=n.maxEditLength&&(a=Math.min(a,n.maxEditLength));let h=null!=(o=n.timeout)?o:1/0,f=Date.now()+h,c=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(c[0],t,e,0,n);if(c[0].oldPos+1>=u&&d+1>=s)return r(this.buildValues(c[0].lastComponent,t,e));let g=-1/0,p=1/0,v=()=>{for(let l=Math.max(g,-i);l<=Math.min(p,i);l+=2){let o,i=c[l-1],a=c[l+1];i&&(c[l-1]=void 0);let h=!1;if(a){let e=a.oldPos-l;h=a&&0<=e&&e<s}let f=i&&i.oldPos+1<u;if(!h&&!f){c[l]=void 0;continue}if(o=!f||h&&i.oldPos<a.oldPos?this.addToPath(a,!0,!1,0,n):this.addToPath(i,!1,!0,1,n),d=this.extractCommon(o,t,e,l,n),o.oldPos+1>=u&&d+1>=s)return r(this.buildValues(o.lastComponent,t,e))||!0;c[l]=o,o.oldPos+1>=u&&(p=Math.min(p,l-1)),d+1>=s&&(g=Math.max(g,l+1))}i++};if(l)!function e(){setTimeout(function(){if(i>a||Date.now()>f)return l(void 0);v()||e()},0)}();else for(;i<=a&&Date.now()<=f;){let e=v();if(e)return e}}addToPath(e,t,n,l,o){let r=e.lastComponent;return r&&!o.oneChangePerToken&&r.added===t&&r.removed===n?{oldPos:e.oldPos+l,lastComponent:{count:r.count+1,added:t,removed:n,previousComponent:r.previousComponent}}:{oldPos:e.oldPos+l,lastComponent:{count:1,added:t,removed:n,previousComponent:r}}}extractCommon(e,t,n,l,o){let r=t.length,s=n.length,u=e.oldPos,i=u-l,a=0;for(;i+1<r&&u+1<s&&this.equals(n[u+1],t[i+1],o);)i++,u++,a++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return a&&!o.oneChangePerToken&&(e.lastComponent={count:a,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=u,i}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}
1buildValues(e,t,n){let l,o=[];for(;e;)o.push(e),l=e.previousComponent,delete e.previousComponent,e=l;o.reverse();let r=o.length,s=0,u=0,i=0;for(;s<r;s++){let e=o[s];if(e.removed)e.value=this.join(n.slice(i,i+e.count)),i+=e.count;else{if(!e.added&&this.useLongestToken){let l=t.slice(u,u+e.count);l=l.map(function(e,t){let l=n[i+t];return l.length>e.length?l:e}),e.value=this.join(l)}else e.value=this.join(t.slice(u,u+e.count));u+=e.count,e.added||(i+=e.count)}}return o}}},75443:(e,t,n)=>{n.d(t,{J:()=>s});var l=n(49897);class o extends l.A{}let r=new o;function s(e,t,n){return r.diff(e,t,n)}},76995:(e,t,n)=>{n.d(t,{Pp:()=>s,LW:()=>u});var l=n(49897);class o extends l.A{constructor(){super(...arguments),this.tokenize=i}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}}let r=new o;function s(e,t,n){return r.diff(e,t,n)}function u(e,t,n){return n=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(n,{ignoreWhitespace:!0}),r.diff(e,t,n)}function i(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));let n=[],l=e.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(let e=0;e<l.length;e++){let o=l[e];e%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}},99233:(e,t,n)=>{n.d(t,{C:()=>s});var l=n(49897);class o extends l.A{tokenize(e){var t,n;let l=[],o=0;for(let r=0;r<e.length;r++){if(r==e.length-1){l.push(e.slice(o));break}if(("."==(n=e[r])||"!"==n||"?"==n)&&e[r+1].match(/\s/)){for(l.push(e.slice(o,r+1)),r=o=r+1;null==(t=e[r+1])?void 0:t.match(/\s/);)r++;l.push(e.slice(o,r+1)),o=r+1}}return l}}let r=new o;function s(e,t,n){return r.diff(e,t,n)}}}]);

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.