PageSourceSearch

https://www.tuifly.com/chunk-QTQRAB6K.js

js tuifly.com collected 2026-10-02 04:15:09 UTC 1,108 bytes, 1 lines download raw bytes

1import{a as i,b as g}from"./chunk-V3P3RFZI.js";function c(t){return(t.segments??[]).flatMap(n=>Object.entries(n.passengerSegment??{}).flatMap(([s,o])=>(o.ssrs??[]).map(d=>g(i({},d),{passengerKey:s}))))}function C(t,n){return!!n&&c(t).some(s=>s.ssrCode===n)}function y(t,n){return n?c(t).filter(s=>s.ssrCode===n).reduce((s,o)=>s+(o.count??1),0):0}function l(t,n,s,o,d,m=!1,p=!1){let f=new Map;for(let e of c(t))e.ssrCode&&n.has(e.ssrCode)&&!d?.includes(e.ssrCode)&&f.set(e.ssrCode,(f.get(e.ssrCode)??0)+(e.count??1));return[...f.entries()].map(([e,u])=>{let r=s?.[e]?.name??e;return{name:r,amount:m?p?o.find(a=>a.name===r)?.amount??0:(o.find(a=>a.name===r)?.amount??0)*u:0,count:u}})}function M(t,n,s,o,d){let m=new Map(n.map(e=>[e.passengerKey,e.passengerTypeCode])),p=new Map,f=new Set;for(let[e,u]of m){let r=u?d?.[u]:void 0;if(!(!r||!o.has(r)))for(let a of c(t))a.passengerKey===e&&a.ssrCode===r&&!f.has(`${e}::${a.ssrCode}`)&&(f.add(`${e}::${a.ssrCode}`),p.set(r,(p.get(r)??0)+1))}return[...p.entries()].map(([e,u])=>({name:s?.[e]?.name??e,amount:0,count:u}))}export{c as a,C as b,y as c,l as d,M as e};

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.