1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{m as n}from"./data-DFVmY6UK.js";import{t as r}from"./notify-sync-BT2OO8Ck.js";import{G as i,L as a,S as o,X as s,_ as c,j as l}from"./mobile-B3VeWKWM.js";var u=e(t(),1),d=`otoku:mobile-current`,f,p=new Set;function m(){if(f!==void 0)return f;try{let e=JSON.parse(localStorage.getItem(d)??`null`);f=e&&typeof e.carrier==`string`?{carrier:e.carrier,planId:typeof e.planId==`string`?e.planId:void 0,yen:Number.isFinite(e.yen)&&e.yen>0?Math.round(e.yen):void 0}:null}catch{f=null}return f}function h(e){f=e;try{e?localStorage.setItem(d,JSON.stringify(e)):localStorage.removeItem(d)}catch{}for(let e of p)e();r()}function g(e){return p.add(e),()=>p.delete(e)}function _(){return(0,u.useSyncExternalStore)(g,m,()=>null)}function v(){let e=o().map(e=>({value:e.slug,label:e.name})),t=n.merchants.filter(e=>e.categoryId===`mobile`&&!a.mobileCarriers.some(t=>t.merchantId===e.id)).map(e=>({value:e.slug,label:e.name}));return[...e,...t,{value:`other`,label:`ãã®ã»ã`}]}var y=e=>v().find(t=>t.value===e.carrier)?.label??`ãã®ã»ã`;function b(e,t){if(e){if(e.yen)return e.yen;if(e.planId){let n=i(e.planId,l({},t));if(!n.excluded)return n.first}}}function x(e,t,n){let r=b(e,t),i=n??s(l({},t)).find(e=>!e.excluded);if(r!==void 0&&i)return{now:r,top:i,diff:r-i.perMonth}}var S=e=>{let t=e?c(e.carrier):void 0;return t?a.mobilePlans.filter(e=>e.carrierId===t.id):[]};export{x as a,S as i,v as n,h as o,b as r,_ as s,y as t};
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.