PageSourceSearch

https://globalhouse.co.th/_next/static/chunks/2h5my21up0p58.js

js globalhouse.co.th collected 2026-10-03 23:49:22 UTC 27,806 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,102927,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(271645).forwardRef)(({src:e,color:r="currentColor",className:n,style:o,...i},a)=>(0,t.jsx)("span",{ref:a,className:`bg-current ${n||""}`,style:{backgroundColor:r,mask:`url(${e}) no-repeat center / contain`,WebkitMask:`url(${e}) no-repeat center / contain`,display:"inline-block",...o},...i}));r.displayName="SvgColor",e.s(["SvgColor",0,r])},945448,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),o=e.i(981140),i=e.i(820783),a=e.i(30030),l=e.i(726330),c=e.i(610772),u=e.i(853660),s=e.i(774606),f=e.i(296626),d=e.i(248425),m=e.i(991918),p=e.i(369340),h=e.i(934620),g=e.i(959411),b=Object.defineProperty,y=(e,t)=>b(e,"name",{value:t,configurable:!0}),[v,x]=(0,a.createContextScope)("Tooltip",[u.createPopperScope]),_=(0,u.createPopperScope)(),w="tooltip.open",[T,C]=v("TooltipProvider"),P=y(e=>{let{__scopeTooltip:r,delayDuration:o=700,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:l}=e,c=n.useRef(!0),u=n.useRef(!1),s=n.useRef(0);return n.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(T,{scope:r,isOpenDelayedRef:c,delayDuration:o,onOpen:n.useCallback(()=>{i<=0||(window.clearTimeout(s.current),c.current=!1)},[i]),onClose:n.useCallback(()=>{i<=0||(window.clearTimeout(s.current),s.current=window.setTimeout(()=>c.current=!0,i))},[i]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback(e=>{u.current=e},[]),disableHoverableContent:a,children:l})},"TooltipProvider"),N="Tooltip",[F,k]=v(N),E=y(e=>{let{__scopeTooltip:r,children:o,open:i,defaultOpen:a,onOpenChange:l,disableHoverableContent:s,delayDuration:f}=e,d=C(N,e.__scopeTooltip),m=_(r),[h,g]=n.useState(null),[b,v]=n.useState(void 0),x=(0,c.useId)(),T=n.useRef(0),P=s??d.disableHoverableContent,k=f??d.delayDuration,E=n.useRef(!1),[S,L]=(0,p.useControllableState)({prop:i,defaultProp:a??!1,onChange:y(e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),l?.(e)},"onChange"),caller:N}),M=n.useMemo(()=>S?E.current?"delayed-open":"instant-open":"closed",[S]),B=n.useCallback(()=>{window.clearTimeout(T.current),T.current=0,E.current=!1,L(!0)},[L]),R=n.useCallback(()=>{window.clearTimeout(T.current),T.current=0,L(!1)},[L]),$=n.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>{E.current=!0,L(!0),T.current=0},k)},[k,L]);return n.useEffect(()=>()=>{T.current&&(window.clearTimeout(T.current),T.current=0)},[]),(0,t.jsx)(u.Root,{...m,children:(0,t.jsx)(F,{scope:r,contentId:b??x,setContentId:v,open:S,stateAttribute:M,trigger:h,onTriggerChange:g,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayedRef.current?$():B()},[d.isOpenDelayedRef,$,B]),onTriggerLeave:n.useCallback(()=>{P?R():(window.clearTimeout(T.current),T.current=0)},[R,P]),onOpen:B,onClose:R,disableHoverableContent:P,children:o})})},"Tooltip"),S="TooltipTrigger",L=n.forwardRef(y(function(e,r){let{__scopeTooltip:a,...l}=e,c=k(S,a),s=C(S,a),f=_(a),m=n.useRef(null),p=(0,i.useComposedRefs)(r,m,c.onTriggerChange),h=n.useRef(!1),g=n.useRef(!1),b=n.useCallback(()=>h.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),(0,t.jsx)(u.Anchor,{asChild:!0,...f,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...l,ref:p,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||s.isPointerInTransitRef.current||(c.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,()=>{c.onTriggerLeave(),g.current=!1}),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:(0,o.composeEventHandlers)(e.onBlur,c.onClose),onClick:(0,o.composeEventHandlers)(e.onClick,c.onClose)})})},"TooltipTrigger")),M="TooltipPortal",[B,R]=v(M,{forceMount:void 0}),$=y(e=>{let{__scopeTooltip:r,forceMount:n,children:o,container:i}=e,a=k(M,r);return(0,t.jsx)(B,{scope:r,forceMount:n,children:(0,t.jsx)(f.Presence,{present:n||a.open,children:(0,t.jsx)(s.Portal,{asChild:!0,container:i,children:o})})})},"TooltipPortal"),j="TooltipContent",I=n.forwardRef(y(function(e,r){let n=R(j,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...a}=e,l=k(j,e.__scopeTooltip);return(0,t.jsx)(f.Presence,{present:o||l.open,children:l.disableHoverableContent?(0,t.jsx)(D,{side:i,...a,ref:r}):(0,t.jsx)(O,{side:i,...a,ref:r})})},"TooltipContent")),O=n.forwardRef(y(function(e,r){let o=k(j,e.__scopeTooltip),a=C(j,e.__scopeTooltip),l=n.useRef(null),c=(0,i.useComposedRefs)(r,l),[u,s]=n.useState(null),{trigger:f,onClose:d}=o,m=l.current,{onPointerInTransitChange:p}=a,h=n.useCallback(()=>{s(null),p(!1)},[p]),g=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=A(n,r.getBoundingClientRect());s(Y([...U(n,o),...G(t.getBoundingClientRect())])),p(!0)},[p]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(f&&m){let e=y(e=>g(e,m),"handleTriggerLeave"),t=y(e=>g(e,f),"handleContentLeave");return f.addEventListener("pointerleave",e),m.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),m.removeEventListener("pointerleave",t)}}},[f,m,g,h]),n.useEffect(()=>{if(u){let e=y(e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=f?.contains(t)||m?.contains(t),o=!V(r,u);n?h():o&&(h(),d())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[f,m,u,d,h]),(0,t.jsx)(D,{...e,ref:c})},"TooltipContentHoverable")),z=(0,m.createSlottable)("TooltipContent"),D=n.forwardRef(y(function(e,r){let{__scopeTooltip:o,children:i,"aria-label":a,id:c,onEscapeKeyDown:s,onPointerDownOutside:f,...d}=e,m=k(j,o),p=_(o),{onClose:b}=m;n.useEffect(()=>(document.addEventListener(w,b),()=>document.removeEventListener(w,b)),[b]),n.useEffect(()=>{if(m.trigger){let e=y(e=>{e.target instanceof Node&&e.target.contains(m.trigger)&&b()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[m.trigger,b]);let{setContentId:v}=m;return(0,h.useLayoutEffect)(()=>(v(c),()=>{v(void 0)}),[c,v]),(0,t.jsx)(l.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:e=>e.preventDefault(),onDismiss:b,children:(0,t.jsxs)(u.Content,{"data-state":m.stateAttribute,role:a?void 0:"tooltip",id:a?void 0:m.contentId,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(z,{children:i}),a?(0,t.jsx)(g.Root,{id:m.contentId,role:"tooltip",children:a}):null]})})},"TooltipContentImpl")),H=n.forwardRef(y(function(e,r){let{__scopeTooltip:n,...o}=e,i=_(n);return(0,t.jsx)(u.Arrow,{...i,...o,ref:r})},"TooltipArrow"));function A(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}function U(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}function G(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function V(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],c=a.x,u=a.y,s=l.x,f=l.y;u>n!=f>n&&r<(s-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function Y(e){let t=e.slice();return t.sort((e,t)=>
1e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),q(t)}function q(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}y(A,"getExitSideFromRect"),y(U,"getPaddedExitPoints"),y(G,"getPointsFromRect"),y(V,"isPointInPolygon"),y(Y,"getHull"),y(q,"getHullPresorted");var K=e.i(284513);function W(e){let n,o,i,a=(0,r.c)(6);a[0]!==e?({delayDuration:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let l=void 0===o?0:o;return a[3]!==l||a[4]!==n?(i=(0,t.jsx)(P,{"data-slot":"tooltip-provider",delayDuration:l,...n}),a[3]=l,a[4]=n,a[5]=i):i=a[5],i}e.s(["Tooltip",0,function(e){let n,o,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(o=(0,t.jsx)(W,{children:(0,t.jsx)(E,{"data-slot":"tooltip",...n})}),i[2]=n,i[3]=o):o=i[3],o},"TooltipContent",0,function(e){let n,o,i,a,l,c,u,s=(0,r.c)(13);s[0]!==e?({className:o,sideOffset:a,children:n,...i}=e,s[0]=e,s[1]=n,s[2]=o,s[3]=i,s[4]=a):(n=s[1],o=s[2],i=s[3],a=s[4]);let f=void 0===a?0:a;return s[5]!==o?(l=(0,K.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),s[5]=o,s[6]=l):l=s[6],s[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(H,{className:"bg-white fill-white z-50 size-2.5 translate-y-[calc(-50%_-_1px)] rotate-45 rounded-[2px] border-b border-r"}),s[7]=c):c=s[7],s[8]!==n||s[9]!==i||s[10]!==f||s[11]!==l?(u=(0,t.jsx)($,{children:(0,t.jsxs)(I,{"data-slot":"tooltip-content",sideOffset:f,className:l,...i,children:[n,c]})}),s[8]=n,s[9]=i,s[10]=f,s[11]=l,s[12]=u):u=s[12],u},"TooltipProvider",0,W,"TooltipTrigger",0,function(e){let n,o,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(o=(0,t.jsx)(L,{"data-slot":"tooltip-trigger",...n}),i[2]=n,i[3]=o):o=i[3],o}],945448)},50894,e=>{"use strict";e.s(["hexToRGBA",0,function(e,t=.15){let r,n,o,i=e.replace("#","");return 3===i.length?(r=parseInt(i[0]+i[0],16),n=parseInt(i[1]+i[1],16),o=parseInt(i[2]+i[2],16)):(r=parseInt(i.substring(0,2),16),n=parseInt(i.substring(2,4),16),o=parseInt(i.substring(4,6),16)),`rgba(${r}, ${n}, ${o}, ${t})`}])},966270,e=>{"use strict";var t=e.i(45158),r=e.i(723771);let n=new Set(["globalhouse.co.th","www.globalhouse.co.th"]),o=new Set(["http:","https:"]);e.s(["getBrandSearchHref",0,function(e,t){let n=e?.trim();if(!n)return"#";let o=new URLSearchParams({brand:n}),i=t?.trim();return i&&r.featureFlags.brandSearchScopeByCategory&&o.set("categoryId",i),`/brand/search?${o.toString()}`},"getInternalHref",0,function(e){if(!e)return"#";try{let t=new URL(e);if(!o.has(t.protocol))return"#";if(n.has(t.host))return`${t.pathname}${t.search}${t.hash}`||"#";return e}catch{return e.startsWith("/")?e:"#"}},"getProductDetailHref",0,function(e,r,n){if(!r)return"/product";let o=e?(0,t.fSlugs)(e).replace(/-+/g,"-").replace(/^-|-$/g,""):r,i=`/product/${o}-i.${r}`,a=n?.trim();return a?`${i}?${new URLSearchParams({cat:a}).toString()}`:i}])},352051,e=>{"use strict";function t(e){let t=window;t.dataLayer=t.dataLayer??[],t.dataLayer.push(e)}async function r(e){try{let t=encodeURIComponent(JSON.stringify(e));await fetch(`/api/analytics?body=${t}`,{method:"GET",keepalive:!0})}catch{}}function n(e,t,r,n,o){return{domain:"globalhouse.co.th",name:e,url:"",referrer:"referrer",location:null!=r&&null!=n?`${r},${n}`:"",branch:t,parameters:o}}e.s(["pushDataLayer",0,t,"trackAddToCart",0,function(e){let n=e.salePrice>0?e.salePrice:e.basePrice,o=e.salePrice>0?Math.max(0,e.basePrice-e.salePrice):0;r({domain:"globalhouse.co.th",name:"add_to_cart",url:"",referrer:"referrer",location:e.location??"",branch:e.branchCode,parameters:{item_id:e.barcode,item_price:e.basePrice,item_sale_price:e.salePrice,item_branch:e.branchCode,item_quantity:e.qty,item_category:e.categoryId??0}}),t({event:"add_to_cart",ecommerce:{currency:"THB",items:[{item_id:e.barcode,item_name:e.productName,affiliation:"Globalhouse Store",coupon:"",discount:o,index:0,item_brand:e.brand??"",item_category:e.category1??"",item_category2:e.category2??"",item_category3:e.category1??"",item_category4:"",item_category5:"",item_list_id:"",item_list_name:"",item_variant:e.variant??"",in_stock:e.stock>0,location_id:"",price:n,quantity:e.qty}]}}),e.ga4UserId&&t({event:"userIdSet",user_id:e.ga4UserId})},"trackCategoryView",0,function(e){r(n("category_view",e.branchCode,e.latitude,e.longitude,{category_id:e.categoryId,category_name:e.categoryName??""}))},"trackSearchList",0,function(e){r(n("view_search_list",e.branchCode,e.latitude,e.longitude,{search:e.search,items:e.items.map(t=>({item_id:t.barcode,item_price:t.basePrice,item_branch:e.branchCode,item_sale_price:t.salePrice,lat:e.latitude??"",lon:e.longitude??""}))}))},"trackViewItem",0,function(e){let{latitude:t,longitude:o}=e;r(n("view_item",e.branchCode,t,o,{item_id:e.barcode,item_price:e.basePrice,item_sale_price:e.salePrice,item_branch:e.branchCode,lat:t??"",lon:o??""}))}])},959411,e=>{"use strict";var t=e.i(271645),r=e.i(248425),n=e.i(843476),o=Object.defineProperty,i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=t.forwardRef(o(function(e,t){return(0,n.jsx)(r.Primitive.span,{...e,ref:t,style:{...i,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0}));e.s(["Root",0,a,"VISUALLY_HIDDEN_STYLES",0,i])},286536,e=>{"use strict";let t=(0,e.i(475254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],286536)},952571,e=>{"use strict";let t=(0,e.i(475254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],952571)},531278,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],531278)},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}]]);e.s(["Shield",0,t],98919)},643289,(e,t,r)=>{!function(n,o){if("function"==typeof define&&define.amd){let n;void 0!==(n=o(e.r,r,t))&&e.v(n)}else t.exports?t.exports=o():n.numeral=o()}(e.e,function(){var e,t,r,n,o,i={},a={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(n=function(e){var t,r,a,l;if(n.isNumeral(e))t=e.value();else if(0===e||void 0===e)t=0;else if(null===e||o.isNaN(e))t=null;else if("string"==typeof e)if(c.zeroFormat&&e===c.zeroFormat)t=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)t=null;else{for(r in i)if((l="function"==typeof i[r].regexps.unformat?i[r].regexps.unformat():i[r].regexps.unformat)&&e.match(l)){a=i[r].unformat;break}t=(a=a||n._.stringToNumber)(e)}else t=Number(e)||null;return new u(e,t)}).version="2.0.6",n.isNumeral=function(e){return e instanceof u},n._=o={numberToFormat:function(e,t,r){var o,i,l,c,u,s,f,d=a[n.options.currentLocale],m=!1,p=!1,h=0,g="",b="",y=!1;if(i=Math.abs(e=e||0),n._.includes(t,"(")?(m=!0,t=t.replace(/[\(|\)]/g,"")):(n._.includes(t,"+")||n._.includes(t,"-"))&&(u=n._.includes(t,"+")?t.indexOf("+"):e<0?t.indexOf("-"):-1,t=t.replace(/[\+|\-]/g,"")),n._.includes(t,"a")&&(o=!!(o=t.match(/a(k|m|b|t)?/))&&o[1],n._.includes(t," a")&&(g=" "),t=t.replace(RegExp(g+"a[kmbt]?"),""),i>=1e12&&!o||"t"===o?(g+=d.abbreviations.trillion,e/=1e12):i<1e12&&i>=1e9&&!o||"b"===o?(g+=d.abbreviations.billion,e/=1e9):i<1e9&&i>=1e6&&!o||"m"===o?(g+=d.abbreviations.million,e/=1e6):(i<1e6&&i>=1e3&&!o||"k"===o)&&(g+=d.abbreviations.thousand,e/=1e3)),n._.includes(t,"[.]")&&(p=!0,t=t.replace("[.]",".")),l=e.toString().split(".")[0],c=t.split(".")[1],s=t.indexOf(","),h=(t.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(n._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),b=n._.toFixed(e,c[0].length+c[1].length,r,c[1].length)):b=n._.toFixed(e,c.length,r),l=b.split(".")[0],b=n._.includes(b,".")?d.delimiters.decimal+b.split(".")[1]:"",p&&0===Number(b.slice(1))&&(b="")):l=n._.toFixed(e,0,r),g&&!o&&Number(l)>=1e3&&g!==d.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case d.abbreviations.thousand:g=d.abbreviations.million;break;case d.abbreviations.million:g=d.abbreviations.billion;break;case d.abbreviations.billion:g=d.abbreviations.trillion}if(n._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<h)for(var v=h-l.length;v>0;v--)l="0"+l;return s>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===t.indexOf(".")&&(l=""),f=l+b+(g||""),m?f=(m&&y?"(":"")+f+(m&&y?")":""):u>=0?f=0===u?(y?"-":"+")+f:f+(y?"-":"+"):y&&(f="-"+f),f},stringToNumber:function(e){var t,r,n,o=a[c.currentLocale],i=e,l={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(n=RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,l[t]);break}r*=((e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1)*Number(e=e.replace(/[^0-9\.]+/g,""))}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return -1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(this===null)throw TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3==arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var r=o.multiplier(t);return e>r?e:r},1)},toFixed:function(e,t,r,n){var o,i,a,l,c=e.toString().split("."),u=t-(n||0);return a=Math.pow(10,o=2===c.length?Math.min(Math.max(c[1].length,u),t):u),l=(r(e+"e+"+o)/a).toFixed(o),n>t-o&&(i=RegExp("\\.?0{1,"+(n-(t-o))+"}$"),l=l.replace(i,"")),l}},n.options=c,n.formats=i,n.locales=a,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return a[c.currentLocale];if(!a[e=e.toLowerCase()])throw Error("Unknown locale : "+e);return a[e]},n.reset=function(){for(var e in l)c[e]=l[e]},n.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},n.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},n.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},n.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},n.validate=function(e,t){var r,o,i,a,l,c,u,s;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;
1if(""===e)return!1;try{u=n.localeData(t)}catch(e){u=n.localeData(n.locale())}if(i=u.currency.symbol,l=u.abbreviations,r=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,null!==(s=e.match(/^[^\d]+/))&&(e=e.substr(1),s[0]!==i)||null!==(s=e.match(/[^\d]+$/))&&(e=e.slice(0,-1),s[0]!==l.thousand&&s[0]!==l.million&&s[0]!==l.billion&&s[0]!==l.trillion))return!1;if(c=RegExp(o+"{2}"),!e.match(/[^\d.,]/g))if((a=e.split(r)).length>2);else if(a.length<2)return!!a[0].match(/^\d+.*\d$/)&&!a[0].match(c);else if(1===a[0].length)return!!a[0].match(/^\d+$/)&&!a[0].match(c)&&!!a[1].match(/^\d+$/);else return!!a[0].match(/^\d+.*\d$/)&&!a[0].match(c)&&!!a[1].match(/^\d+$/);return!1},n.fn=u.prototype={clone:function(){return n(this)},format:function(e,t){var r,o,a,l=this._value,u=e||c.defaultFormat;if(t=t||Math.round,0===l&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===l&&null!==c.nullFormat)o=c.nullFormat;else{for(r in i)if(u.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||n._.numberToFormat)(l,u,t)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var t=o.correctionFactor.call(null,this._value,e);return this._value=o.reduce([this._value,e],function(e,r,n,o){return e+Math.round(t*r)},0)/t,this},subtract:function(e){var t=o.correctionFactor.call(null,this._value,e);return this._value=o.reduce([e],function(e,r,n,o){return e-Math.round(t*r)},Math.round(this._value*t))/t,this},multiply:function(e){return this._value=o.reduce([this._value,e],function(e,t,r,n){var i=o.correctionFactor(e,t);return Math.round(e*i)*Math.round(t*i)/Math.round(i*i)},1),this},divide:function(e){return this._value=o.reduce([this._value,e],function(e,t,r,n){var i=o.correctionFactor(e,t);return Math.round(e*i)/Math.round(t*i)}),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,t,r){var o,i=n._.includes(t," BPS")?" ":"";return e*=1e4,t=t.replace(/\s?BPS/,""),o=n._.numberToFormat(e,t,r),n._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(e){return+(1e-4*n._.stringToNumber(e)).toFixed(15)}}),t={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r="("+(r=(e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(t.suffixes.filter(function(t){return 0>e.suffixes.indexOf(t)})).join("|")).replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,i){var a,l,c,u=n._.includes(o,"ib")?t:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(l=Math.pow(u.base,a),c=Math.pow(u.base,a+1),null===r||0===r||r>=l&&r<c){s+=u.suffixes[a],l>0&&(r/=l);break}return n._.numberToFormat(r,o,i)+s},unformat:function(r){var o,i,a=n._.stringToNumber(r);if(a){for(o=e.suffixes.length-1;o>=0;
1o--){if(n._.includes(r,e.suffixes[o])){i=Math.pow(e.base,o);break}if(n._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}}a*=i||1}return a}}),n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,t,r){var o,i,a=n.locales[n.options.currentLocale],l={before:t.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:t.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(t=t.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,t,r),e>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):!(e<0)||n._.includes(l.before,"-")||n._.includes(l.before,"(")||(l.before="-"+l.before),i=0;i<l.before.length;i++)switch(l.before[i]){case"$":o=n._.insert(o,a.currency.symbol,i);break;case" ":o=n._.insert(o," ",i+a.currency.symbol.length-1)}for(i=l.after.length-1;i>=0;i--)switch(l.after[i]){case"$":o=i===l.after.length-1?o+a.currency.symbol:n._.insert(o,a.currency.symbol,-(l.after.length-(1+i)));break;case" ":o=i===l.after.length-1?o+" ":n._.insert(o," ",-(l.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,t,r){var o=("number"!=typeof e||n._.isNaN(e)?"0e+0":e.toExponential()).split("e");return t=t.replace(/e[\+|\-]{1}0/,""),n._.numberToFormat(Number(o[0]),t,r)+"e"+o[1]},unformat:function(e){var t=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(t[0]),o=Number(t[1]);return o=n._.includes(e,"e-")?o*=-1:o,n._.reduce([r,Math.pow(10,o)],function(e,t,r,o){var i=n._.correctionFactor(e,t);return e*i*(t*i)/(i*i)},1)}}),n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,t,r){var o=n.locales[n.options.currentLocale],i=n._.includes(t," o")?" ":"";return t=t.replace(/\s?o/,""),i+=o.ordinal(e),n._.numberToFormat(e,t,r)+i}}),n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,t,r){var o,i=n._.includes(t," %")?" ":"";return n.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?\%/,""),o=n._.numberToFormat(e,t,r),n._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(e){var t=n._.stringToNumber(e);return n.options.scalePercentBy100?.01*t:t}}),n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),n})},45158,e=>{"use strict";var t=e.i(643289);e.s(["fCurrencyTH",0,function(e){return Number.isInteger(e)?`${(0,t.default)(e).format("0,0")}.-`:(0,t.default)(e).format("0,0.00")},"fNumber",0,function(e){return(0,t.default)(e).format()},"fProductName",0,function(e){let t=e.replace("'","");return(t=(t=(t=(t=(t=t.replace(/\u201D/g," นิ้ว ")).replace(/\u201C/g," นิ้ว ")).replace(/°/g," องศา ")).replace(/\*/g,"x")).replace(/[/\\^?,|[\]{}]/g,"")).replace(/(?:\r\n|\r|\n)/g,"")},"fSlugs",0,function(e){let t=e.replace("'","");return(t=(t=(t=(t=(t=(t=t.replace(/\u201D/g," นิ้ว ")).replace(/\u201C/g," นิ้ว ")).replace(/°/g," องศา ")).replace(/\*/g,"x")).replace(/[`~!@#$%^&*()_|+\-=?;:'"<>{},[\]\\/]/gi,"")).replace(/(?:\r\n|\r|\n)/g,"")).replace(/ /g,"-")},"formatCurrency",0,function(e){return null==e||Number.isNaN(e)?"0.-":Number.isInteger(e)?`${(0,t.default)(e).format("0,0")}.-`:(0,t.default)(e).format("0,0.00")},"formatCurrencyParts",0,function(e){return null==e||Number.isNaN(e)?{amount:"0",suffix:".-"}:Number.isInteger(e)?{amount:(0,t.default)(e).format("0,0"),suffix:".-"}:{amount:(0,t.default)(e).format("0,0.00"),suffix:""}},"formatNumber",0,function(e){return null==e||Number.isNaN(e)?"0":(0,t.default)(e).format()},"formatPhoneNumber",0,function(e){let t=e.replace(/-/g,"");return 10===t.length?`+66${t.substring(1)}`:t},"formatShorten",0,function(e){return null==e||Number.isNaN(e)?"0":(0,t.default)(e).format("0.[00]a")}])}]);

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.