PageSourceSearch

https://claim.skycop.com/assets/ClientOnly-DyDA404a.js

js skycop.com collected 2026-09-25 19:04:29 UTC 13,144 bytes, 1 lines download raw bytes

1import{Si as e,_i as t,yi as n}from"./src-DfHhMFvI.js";import{_ as r,a as i}from"./useMatch-BZ_DVfil.js";function a(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var o=4,s=5;function c(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function l(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=c(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function u(e,t,n,r,i,a,c){c?.(n);let d=r;{let r=n.fullPath??n.from,c=r.length,u=n.options?.caseSensitive??e,f=n.options?.params?.parse??n.options?.parseParams;for(;d<c;){let e=l(r,d,t),o,s=d,c=e[5];switch(d=c+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(u){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=p(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=p(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(1,n.fullPath??n.from,d,p,h);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.optional?.find(e=>!e.parse&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(3,n.fullPath??n.from,d,p,h);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),f=t?d?t:t.toLowerCase():void 0,p=l?d?l:l.toLowerCase():void 0,h=m(2,n.fullPath??n.from,d,f,p);o=h,h.parent=i,h.depth=a,i.wildcard??=[],i.wildcard.push(h)}}i=o}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=p(n.fullPath??n.from);e.kind=s,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&r.endsWith(`/`)){let e=p(n.fullPath??n.from);e.kind=o,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=f??null,i.priority=n.options?.params?.priority??0,h&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)u(e,t,r,d,i,a,c)}function d(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function f(e){if(e.pathless)for(let t of e.pathless)f(t);if(e.static)for(let t of e.static.values())f(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())f(t);if(e.dynamic?.length){e.dynamic.sort(d);for(let t of e.dynamic)f(t)}if(e.optional?.length){e.optional.sort(d);for(let t of e.optional)f(t)}if(e.wildcard?.length){e.wildcard.sort(d);for(let t of e.wildcard)f(t)}}function p(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function m(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function h(e,t){let n=p(`/`),r=new Uint16Array(6);for(let t of e)u(!1,r,t,1,n,0);f(n),t.masksTree=n,t.flatCache=a(1e3)}function g(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=x(e,t.masksTree);return t.flatCache.set(e,r),r}function _(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=p(`/`),u(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),x(r,o,n)}function v(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=x(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=C(a.route)),t.matchCache.set(r,a),a}function y(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function b(e,t=!1,n){let r=p(e.fullPath),o=new Uint16Array(6),s={},c={},l=0;return u(t,o,e,1,r,0,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=y(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++}),f(r),{processedTree:{segmentTree:r,singleCache:a(1e3),matchCache:a(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function x(e,t,n=!1){let r=e.split(`/`),i=T(e,r,t,n);if(!i)return null;let[a]=S(e,r,i);return{route:i.node.route,rawParams:a}}function S(e,t,n){let r=w(n.node),i=null,a=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l<r.length;c++,l++,u++,d++){let f=r[l];if(f.kind===o)break;if(f.kind===s){d--,c--,u--;continue}let p=t[c],m=u;if(p&&(u+=p.length),f.kind===1){i??=n.node.fullPath.split(`/`);let e=i[d],t=f.prefix?.length??0;if(e.charCodeAt(t)===123){let n=f.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=p.substring(t,p.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(p)}}else if(f.kind===3){if(n.skipped&1<<l){c--,u=m-1;continue}i??=n.node.fullPath.split(`/`);let e=i[d],t=f.prefix?.length??0,r=f.suffix?.length??0,o=e.substring(t+3,e.length-r-1),s=f.suffix||f.prefix?p.substring(t,p.length-r):p;s&&(a[o]=decodeURIComponent(s))}else if(f.kind===2){let t=f,n=e.substring(m+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:c,node:l,path:u,segment:d}]}function C(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function w(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function T(e,t,n,i){if(e===`/`&&n.index)return{node:n.index,skipped:0};let a=!r(t),s=a&&e!==`/`,c=t.length-+!!a,l=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],u=null,d=null;for(;l.length;){let n=l.pop(),{node:r,index:a,skipped:f,depth:p,statics:m,dynamics:h,optionals:g}=n,{extract:_,rawParams:v}=n;if(r.kind===2&&r.route&&!k(d,n))continue;if(r.parse){if(!O(e,t,n))continue;v=n.rawParams,_=n.extract}i&&r.route&&r.kind!==o&&k(u,n)&&(u=n);let y=a===c;if(y&&(r.route&&(!s||r.kind===o||r.kind===2)&&k(d,n)&&(d=n),!r.optional&&!r.wildcard&&!r.index&&!r.pathless))continue;let b=y?void 0:t[a],x;if(y&&r.index){let n={node:r.index,index:a,skipped:f,depth:p+1,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v},i=!0;if(r.index.parse&&(O(e,t,n)||(i=!1)),i){if(!h&&!g&&!f&&D(m,c))return n;k(d,n)&&(d=n)}}if(r.wildcard)for(let e=r.wildcard.length-1;e>=0;e--){let n=r.wildcard[e],{prefix:i,suffix:o}=n;if(!(i&&(y||!(n.caseSensitive?b:x??=b.toLowerCase()).startsWith(i)))){if(o){if(y)continue;let e=t.slice(a).join(`/`).slice(-o.length);if((n.caseSensitive?e:e.toLowerCase())!==o)continue}l.push({node:n,index:c,skipped:f,depth:p+1,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}}if(r.optional){let e=f|1<<p,t=p+1;for(let n=r.optional.length-1;n>=0;n--){let i=r.optional[n];l.push({node:i,index:a,skipped:e,depth:t,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}if(!y)for(let e=r.optional.length-1;e>=0;e--){let n=r.optional[e],{prefix:i,suffix:o}=n;if(i||o){let e=n.caseSensitive?b:x??=b.toLowerCase();if(i&&!e.startsWith(i)||o&&!e.endsWith(o))continue}l.push({node:n,index:a+1,skipped:f,depth:t,statics:m,dynamics:h,optionals:g+E(c,a),extract:_,rawParams:v})}}if(!y&&r.dynamic&&b)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?b:x??=b.toLowerCase();if(n&&!e.startsWith(n)||i&&!e.endsWith(i))continue}l.push({node:t,index:a+1,skipped:f,depth:p+1,statics:m,dynamics:h+E(c,a),optionals:g,extract:_,rawParams:v})}if(!y&&r.staticInsensitive){let e=r.staticInsensitive.get(x??=b.toLowerCase());e&&l.push({node:e,index:a+1,skipped:f,depth:p+1,statics:m+E(c,a),dynamics:h,optionals:g,extract:_,rawParams:v})}if(!y&&r.static){let e=r.static.get(b);e&&l.push({node:e,index:a+1,skipped:f,depth:p+1,statics:m+E(c,a),dynamics:h,optionals:g,extract:_,rawParams:v})}if(r.pathless){let e=p+1;for(let t=r.pathless.length-1;t>=0;t--){let n=r.pathless[t];l.push({node:n,index:a,skipped:f,depth:e,statics:m,dynamics:h,optionals:g,extract:_,rawParams:v})}}}if(d)return d;if(i&&u){let n=u.index;for(let e=0;e<u.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return u.rawParams??=Object.create(null),u.rawParams[`**`]=decodeURIComponent(r),u}return null}function E(e,t){return 2**(e-t-1)}function D(e,t){return e===2**(t-1)-1}function O(e,t,n){let r,i;try{[r,i]=S(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function k(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===o)>(e.node.kind===o)||t.node.kind===o==(e.node.kind===o)&&t.depth>e.depth))):!0}function A(e){return j(e.filter(e=>e!==void 0).join(`/`))}function j(e){return e.replace(/\/{2,}/g,`/`)}function M(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function N(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function P(e){return N(M(e))}function F(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function I(e,t,n){return F(e,n)===F(t,n)}function L({base:e,to:t,trailingSlash:n=`never`,cache:i}){let a=t.startsWith(`/`),o=!a&&t===`.`,s;if(i){s=a?t:o?e:e+`\0`+t;let n=i.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(a)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&r(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&c.push(r):c=[r]:r===`..`?c.pop():r===`.`||c.push(r)}}c.length>1&&(r(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let l=j(c.join(`/`))||`/`;return s&&i&&i.set(s,l),l}function R(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function z(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>V(e,n)).join(`/`):V(r,n):r}function B({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,u=``;for(;s<o;){let r=s;c=l(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let d=c[0];if(d===0){u+=`/`+e.substring(r,o);continue}if(d===2){let s=t._splat;a._splat=s,a[`*`]=s;let l=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(l||d)&&(u+=`/`+l+d);continue}let f=z(`_splat`,t,n);u+=`/`+l+f+d;continue}if(d===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let l=e.substring(r,c[1]),d=e.substring(c[4],o),f=z(s,t,n)??`undefined`;u+=`/`+l+f+d;continue}if(d===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let l=e.substring(r,c[1]),d=e.substring(c[4],o),f=z(i,t,n)??``;u+=`/`+l+f+d;continue}}return e.endsWith(`/`)&&(u+=`/`),{usedParams:a,interpolatedPath:u||`/`,isMissingParams:i}}function V(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var H=e(n(),1),U=t();function W({children:e,fallback:t=null}){return G()?(0,U.jsx)(H.Fragment,{children:e}):(0,U.jsx)(H.Fragment,{children:t})}function G(){return H.useSyncExternalStore(K,()=>!0,()=>!1)}function K(){return()=>{}}export{h as _,I as a,F as c,M as d,N as f,_ as g,v as h,R as i,L as l,g as m,G as n,B as o,C as p,j as r,A as s,W as t,P as u,b as v,a as y};

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.