mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 18:10:06 -04:00
Upgrade sveltekit
This commit is contained in:
parent
3214263336
commit
a332223828
54 changed files with 1295 additions and 584 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.tooltip.svelte-1x4n8x:after{content:"";position:absolute;left:100%;top:50%;border-width:7px;border-style:solid;transform:translate3d(0,-7px,0);border-color:transparent transparent transparent black}.value .val,.value .key{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.dark .value{--leafDefaultColor:white;--leafStringColor:white;--leafNumberColor:white;--leafBooleanColor:white;--nodeColor:white}.value{--nodeBorderLeft:1px dotted #9ca3b0;--leafDefaultColor:#525a69;--leafStringColor:#525a69;--leafNumberColor:#525a69;--leafBooleanColor:#525a69;--nodeColor:#525a69}.value .key,.value .comma{color:#9ca3b0}.active.svelte-1wpa6us{background-color:#f3f4f6;color:#111828}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
var b=Object.defineProperty;var g=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var p=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,h=(t,e)=>{for(var s in e||(e={}))_.call(e,s)&&p(t,s,e[s]);if(g)for(var s of g(e))w.call(e,s)&&p(t,s,e[s]);return t};import{D as l,X as f,_ as i,Y as m}from"./vendor-be4ac25a.js";const A=l(""),d=l(!1),c=l([]),v=l({}),u=l([]);function I(t){const e=t.toLowerCase().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)||[],s=[];for(let n of e){let o="_key";if(n.includes(":")&&([o,n]=n.split(":")),n=n.replace(/\"/g,""),o&&n){let r=["streams","guides"].includes(o);s.push({field:o,numerical:r,value:n})}}if(!s.length){d.set(!1),u.set(f(c));return}const a=f(c).filter(n=>{let o=[];for(let r of s){if(!r.value)return!1;if(r.numerical)r.value.startsWith("<")?o.push(n._searchable[r.field]<parseInt(r.value.replace("<",""))):r.value.startsWith(">")?o.push(n._searchable[r.field]>parseInt(r.value.replace(">",""))):o.push(n._searchable[r.field]===parseInt(r.value));else{const y=new RegExp(r.value.replaceAll(",","|"),"i");o.push(y.test(n._searchable[r.field]))}}return o.every(Boolean)});u.set(a),d.set(!0),console.log(".")}async function L(){const t=await $();v.set(t.countries);let e=t.channels.map(s=>(s._raw=k(s),s._streams=t.streams[s.id]||[],s._guides=t.guides[s.id]||[],s._country=t.countries[s.country],s._subdivision=t.subdivisions[s.subdivision],s._languages=s.languages.map(a=>t.languages[a]).filter(a=>a),s._categories=s.categories.map(a=>t.categories[a]).filter(a=>a),s._broadcast_area=s.broadcast_area.map(a=>{const[n,o]=a.split("/");switch(n){case"c":return h({type:n},t.countries[o]);case"r":return h({type:n},t.regions[o]);case"s":return h({type:n},t.subdivisions[o])}}),s._searchable=j(s),s));c.set(e),u.set(e)}function j(t){const e={};for(let s in t)s.startsWith("_")||(Array.isArray(t[s])?e[s]=t[s].map(a=>a.toString().toLowerCase()).join(","):e[s]=t[s]?t[s].toString().toLowerCase():"");return e.streams=t._streams.length,e.guides=t._guides.length,e.is=t.closed||t.replaced_by?"closed":"active",e._key=B(t),e}function B(t){const e=Object.values(i.pick(t,["id","name","alt_names","network","country","subdivision","city","broadcast_area","languages","categories","launched","closed","replaced_by"])),s=t.alt_names?m(t.alt_names):null;return[...e,s].map(a=>a||"").filter(a=>a).join("|").toLowerCase()}function k(t){return JSON.parse(JSON.stringify(t))}function q(t,e){if(window.history.pushState){let s=t&&e?`?${t}=${e}`:"";s=s.replace(/\+/g,"%2B");const a=`${window.location.protocol}//${window.location.host}${window.location.pathname}${s}`,n={};n[t]=e,window.history.pushState(n,"",a),S(e)}}function S(t){const e=t?`${t} \xB7 iptv-org`:"iptv-org";document.title=e}async function $(){const t={};return t.countries=await fetch("https://iptv-org.github.io/api/countries.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>e.map(s=>(s.expanded=!1,s))).then(e=>i.keyBy(e,"code")).catch(console.error),t.regions=await fetch("https://iptv-org.github.io/api/regions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.subdivisions=await fetch("https://iptv-org.github.io/api/subdivisions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.languages=await fetch("https://iptv-org.github.io/api/languages.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.categories=await fetch("https://iptv-org.github.io/api/categories.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"id")).catch(console.error),t.streams=await fetch("https://iptv-org.github.io/api/streams.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.guides=await fetch("https://iptv-org.github.io/api/guides.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.channels=await fetch("https://iptv-org.github.io/api/channels.json").then(e=>e.json()).catch(e=>(console.error(e),[])),t}export{I as a,S as b,c,L as d,v as e,u as f,d as h,A as q,q as s};
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{S as w,i as y,s as z,e as E,t as v,c as d,a as b,h as P,d as o,g as u,H as R,j as H,k as N,l as q,m as S,L as C}from"./chunks/vendor-be4ac25a.js";function L(r){let l,t=r[1].frame+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&H(a,t)},d(f){f&&o(l)}}}function h(r){let l,t=r[1].stack+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&H(a,t)},d(f){f&&o(l)}}}function A(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&L(r),_=r[1].stack&&h(r);return{c(){l=E("h1"),t=v(r[0]),a=N(),f=E("pre"),c=v(s),k=N(),i&&i.c(),n=N(),_&&_.c(),p=q()},l(e){l=d(e,"H1",{});var m=b(l);t=P(m,r[0]),m.forEach(o),a=S(e),f=d(e,"PRE",{});var j=b(f);c=P(j,s),j.forEach(o),k=S(e),i&&i.l(e),n=S(e),_&&_.l(e),p=q()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&H(t,e[0]),m&2&&s!==(s=e[1].message+"")&&H(c,s),e[1].frame?i?i.p(e,m):(i=L(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=h(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:C,o:C,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function F({error:r,status:l}){return{props:{error:r,status:l}}}function B(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends w{constructor(l){super();y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load};
|
Binary file not shown.
Binary file not shown.
|
@ -1,62 +0,0 @@
|
|||
{
|
||||
".svelte-kit/runtime/client/start.js": {
|
||||
"file": "start-4d4bbd8b.js",
|
||||
"src": ".svelte-kit/runtime/client/start.js",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_vendor-be4ac25a.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"src/routes/__layout.svelte",
|
||||
".svelte-kit/runtime/components/error.svelte",
|
||||
"src/routes/index.svelte"
|
||||
]
|
||||
},
|
||||
"src/routes/__layout.svelte": {
|
||||
"file": "pages/__layout.svelte-bbbb0830.js",
|
||||
"src": "src/routes/__layout.svelte",
|
||||
"isEntry": true,
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_vendor-be4ac25a.js",
|
||||
"_store-92203636.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/pages/__layout.svelte-c7d2bc0e.css"
|
||||
]
|
||||
},
|
||||
".svelte-kit/runtime/components/error.svelte": {
|
||||
"file": "error.svelte-9550f281.js",
|
||||
"src": ".svelte-kit/runtime/components/error.svelte",
|
||||
"isEntry": true,
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_vendor-be4ac25a.js"
|
||||
]
|
||||
},
|
||||
"src/routes/index.svelte": {
|
||||
"file": "pages/index.svelte-a8f6902b.js",
|
||||
"src": "src/routes/index.svelte",
|
||||
"isEntry": true,
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_vendor-be4ac25a.js",
|
||||
"_store-92203636.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/pages/index.svelte-fade4f59.css"
|
||||
]
|
||||
},
|
||||
"_vendor-be4ac25a.js": {
|
||||
"file": "chunks/vendor-be4ac25a.js",
|
||||
"css": [
|
||||
"assets/vendor-eecf3eda.css"
|
||||
]
|
||||
},
|
||||
"_store-92203636.js": {
|
||||
"file": "chunks/store-92203636.js",
|
||||
"imports": [
|
||||
"_vendor-be4ac25a.js"
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
{"version":"1669100105277"}
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue