1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38622,66765,e=>{"use strict";let t="dkk-cart",r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function n(e){return r.test(e)}function i(){try{let e=localStorage.getItem(t);if(!e)return null;let r=JSON.parse(e),i=r.state?.cartId;if("string"!=typeof i||!n(i))return null;return i}catch{return null}}function a(){try{localStorage.removeItem(t)}catch{}}e.s(["CART_PERSIST_KEY",0,t,"clearPersistedCartId",()=>a,"isValidCartId",()=>n,"readPersistedCartId",()=>i],38622);var o=e.i(61238),l=e.i(15929),u=e.i(60711);async function s(e,t){let r;if(((0,l.toLowerCaseKeys)(e).inv_images??[]).flat().length>0)return e;let n=(r=(0,l.toLowerCaseKeys)(e)).category_id??r.categoryid??e.categoryId??e.category_id;if(!n||!t)return e;try{let r=await (0,o.getInventoryPage)(`/api/inventory/${n}?item_id=${encodeURIComponent(t)}&limit=1&page=0`),i=(0,u.findChildInGroups)(r.data,t);if(!i)return e;return{...e,id:i.id,inv_images:i.inv_images,sku:i.sku??e.sku,styleNo:i.styleno??e.styleNo,name:i.name??e.name}}catch{return e}}e.s(["fetchInventoryWithImages",()=>s],66765)},91997,89381,e=>{"use strict";let t={shape:"å½¢ç",cut:"åå²",carat:"å
æ",color:"é¡è²",clarity:"淨度",polish:"æç£¨",symmetry:"å°ç¨±",fluorescence:"è¢å
åæ",reportno:"èæ¸ç·¨è",depthpercent:"深度%",tablepercent:"檯度%",PrimaryButton:"éé",White:"ç½é","Yellow Gold":"é»é","Rose Gold":"ç«ç°é","White Gold":"ç½è²é»é",Platinum:"éé",Gold:"é»é",gold:"é»é","yellow gold":"é»é","rose gold":"ç«ç°é","white gold":"ç½è²é»é",platinum:"éé","18K White Gold":"18Kç½é","18K Gold":"é»é","18K Rose Gold":"ç«ç°é","950 Platinum":"éé","Combined 18K Gold":"çµå18Ké",ring:"ææ",bracelet:"æé²/æé",pendant:"åå¢",necklace:"é
é",earrings:"è³ç°",Ring:"ææ",Bracelet:"æé²/æé",Pendant:"åå¢",Necklace:"é
é",Earrings:"è³ç°",occasion:"å ´å",Diamond:"é½ç³","Blue Sapphire":"è寶ç³","blue sapphire":"è寶ç³",Ruby:"ç´
寶ç³",ruby:"ç´
寶ç³",Emerald:"ç¶ å¯¶ç³",emerald:"ç¥æ¯ç¶ å½¢","Pink Sapphire":"ç²è寶ç³","pink sapphire":"ç²è寶ç³","Color Sapphire":"彩è¹è寶ç³","color sapphire":"彩è¹è寶ç³",Alexandrite:"äºæ·å±±å¤§ç³",alexandrite:"äºæ·å±±å¤§ç³",Aquamarine:"æµ·è寶ç³",aquamarine:"æµ·è寶ç³",Tsavorite:"æ²å¼èç³",tsavorite:"æ²å¼èç³",Carnelian:"ç´
çé«",carnelian:"ç´
çé«",Pearl:"çç ",pearl:"çç ","M-O-P":"çç æ¯è²","m-o-p":"çç æ¯è²",Morganite:"æ©æ ¹ç³",morganite:"æ©æ ¹ç³",Paraiba:"叿ä¼å·´",paraiba:"叿ä¼å·´",Garnet:"ç³æ¦´ç³",garnet:"ç³æ¦´ç³","Teal Sapphire":"é·è寶ç³","teal sapphire":"é·è寶ç³",Padparadscha:"å¸å¸ææ°",padparadscha:"å¸å¸ææ°",Spinel:"å°æ¶ç³",spinel:"å°æ¶ç³","White Sapphire":"ç½è寶ç³","white sapphire":"ç½è寶ç³","Purple Sapphire":"ç´«è寶ç³","purple sapphire":"ç´«è寶ç³",Sapphire:"è寶ç³",Tourmaline:"碧ç½",tourmaline:"碧ç½",Rubellite:"ç´
碧ç½",rubellite:"ç´
碧ç½",Ag925:"925é",PT850:"éé",PT900:"éé",PT950:"éé",Pt850:"éé",RING:"ææ",BRACELET:"æé²/æé",NECKLACE:"é ¸é",EARRINGS:"è³ç°",WEDDINGBAND:"æ±å©ç³»å",india:"å°åº¦","sri lanka":"æ¯éèå¡",brazil:"巴西",burma:"ç·¬ç¸",colombia:"å¥å«æ¯äº",blue:"èè²",pink:"ç²ç´
è²",yellow:"é»è²",white:"ç½è²",lightBlue:"æ·ºèè²",lavanda:"è°è¡£èè²",red:"ç´
è²",green:"ç¶ è²",colorchange:"彩è²",gradient:"漸è®",rainbow:"彩è²",au750:"18K",pt850:"éé",pt900:"éé",pt950:"éé",round:"åå½¢",pear:"梨形","emerald cut":"ç¥æ¯ç¶ å½¢",princess:"å
¬ä¸»æ¹å½¢",marquise:"æ©æ¬å½¢",asscher:"ä¸ä¸æ¹å½¢",cushion:"æå½¢",oval:"æ©¢åå½¢",heart:"å¿å½¢",square:"æ¹å½¢",triangle:"ä¸è§å½¢",sapphire:"è寶ç³"};function r(e){return t[e]??e}e.s(["t",()=>r],89381);let n={round:"åå½¢",pear:"梨形",emerald:"ç¥æ¯ç¶ å½¢",princess:"å
¬ä¸»æ¹å½¢",marquise:"æ©æ¬å½¢",asscher:"ä¸ä¸æ¹å½¢",cushion:"æå½¢",oval:"æ©¢åå½¢",heart:"å¿å½¢",square:"æ¹å½¢",triangle:"ä¸è§å½¢"},i={round:"åå½¢",pear:"梨形",princess:"å
¬ä¸»æ¹å½¢",marquise:"æ©æ¬å½¢",asscher:"ä¸ä¸æ¹å½¢",cushion:"æå½¢",oval
1:"æ©¢åå½¢",heart:"å¿å½¢",square:"æ¹å½¢",triangle:"ä¸è§å½¢","blue sapphire":"è寶ç³","teal sapphire":"é·è寶ç³","pink sapphire":"ç²ç´
è寶ç³","color sapphire":"彩è¹è寶ç³",ruby:"ç´
寶ç³",emerald:"ç¥æ¯ç¶ ",sapphire:"è寶ç³",diamond:"é½ç³",aquamarine:"æµ·è寶ç³",pearl:"çç ",spinel:"å°æ¶ç³",alexandrite:"äºæ·å±±å¤§ç³",tsavorite:"æ²å¼èç³",paraiba:"叿ä¼å·´",garnet:"ç³æ¦´ç³",padparadscha:"å¸å¸ææ°",morganite:"æ©æ ¹ç³"};function a(e){return e?i[e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").toLowerCase().trim()]??r(e)??e:""}function o(e,t="zh-HK"){return e?i[e.trim().toLowerCase()]??(t.startsWith("zh")?r(e):e)??e:""}function l(e,t="zh-HK"){return e?n[e.trim().toLowerCase()]??(t.startsWith("zh")?r(e):e)??e:""}function u(e,t,i="zh-HK"){let a=[],o=e.trim();if(o){let e=n[o.toLowerCase()]??(i.startsWith("zh")?r(o):o);a.push(e)}let l=String(t).trim();return l&&a.push(`${l}å¡`),a.join(" ")}function s(e,t){let r,o,l,u,s=(r=e.attributes,o=n[(r?.stoneshape??"").toLowerCase()]??r?.stoneshape??"",l=i[(r?.stone??"").toLowerCase()]??r?.stone??"",u=r?.nonheat==="YES"?" ç¡ç":"",`${o}${l}${u}`.trim());if(s)return s;let f=e.name??t??"";return f?a(f):""}e.s(["GEM_TRANSLATE",0,i,"buildGemDisplayName",()=>s,"buildGemSpecDisplayLabel",()=>u,"translateGemGroupName",()=>a,"translateGemStoneShape",()=>l,"translateGemStoneType",()=>o],91997)},3687,e=>{"use strict";e.s(["buildPdpSpecDisplayLabel",()=>f,"getAttributeFilterOptionDisplayLabel",()=>c,"getAttributeValueDisplayLabel",()=>s]);var t=e.i(20718),r=e.i(1073),n=e.i(89381);let i=new Set(["zh-HK","zh-CN"]),a={RING:"ææ",BRACELET:"æé²/æé",NECKLACE:"é ¸é",EARRINGS:"è³ç°",WEDDINGBAND:"æ±å©ç³»å"},o=[t.GEMSTONE_OPTIONS,t.GEM_GEMSTONE_OPTIONS,t.JEWELRY_OPTIONS];function l(e){let t=e.trim();return!!(/[\u4e00-\u9fff\u3400-\u4dbf]/.test(t)||/^\d+(\.\d+)?$/.test(t)||/^#\d/.test(t)||/\d+\s*(cm|inch)\b/i.test(t)||/^\d+(\.\d+)?\s*-\s*\d+(\.\d+)?(\s*cm)?$/i.test(t)||/^\d+\s*-\s*\d+$/.test(t)||/^<\$?HK?\d/i.test(t)||/^>\$?HK?\d/i.test(t))}function u(e,t){let i=e.trim();if(!i)return e;if(l(i))return i;for(let e of o){let t=function(e,t){let r=t.find(t=>t.value.toLowerCase()===e.toLowerCase());return r?.label}(i,e);if(t)return t}let u=a[i.toUpperCase()];if(u)return u;if("MetalColor"===t){let e=r.METAL_COLOR_MAP[i]?.label;if(e)return e}let s=(0,n.t)(i);if(s!==i)return s;let f=(0,n.t)(i.toLowerCase());return f!==i.toLowerCase()?f:i}function s(e,t,r){if(!i.has(r))return e;let n=e.trim();return n?l(n)?n:n.includes(",")?n.split(",").map(e=>u(e,t)).join(","):u(n,t):e}function f(e,t,r){let n=[],i=e.trim();i&&n.push(i);let a=t.trim();return a&&n.push(s(a,"MainStone",r)),n.join(" ")}function c(e,t,r){let{label:n}=e;if(!i.has(r)||l(n))return n;let a=(e.equalValue??n).trim();return a.includes(",")?a.split(",").map(e=>u(e,t)).join(","):n.includes(",")&&!a.includes(",")?n.split(",").map(e=>u(e,t)).join(","):u(a,t)}},1073,e=>{"use strict";e.s(["METAL_COLOR_MAP",()=>i,"buildCartItemSpecs",()=>o,"buildGemSpecOptions",()=>f,"buildMaterialOptions",()=>u,"buildSpecOptions",()=>s,"metalColorLabel",()=>a]);var t=e.i(3687),r=e.i(91997),n=e.i(15929);let i={"Rose Gold":{label:"18Kç«ç°é",color:"#F1CDC5"},"Yellow Gold":{label:"18Ké»é",color:"#F0E0C2"},"White Gold":{label:"18Kç½é",color:"#E8E8E8"}};function a(e){return e?i[e]?.label??e:""}function o(e,n="zh-HK"){let i=e.attributes;if(!i)return;let l="string"==typeof i.specs?i.specs.trim():"string"==typeof i.itemdesc?i.itemdesc.trim():"";if(l)return l;let u=a(i.metalcolor),s=null!=i.size&&""!==i.size?String(i.size):"",f=String(i.mainstone??i.stone??"").trim(),c=String(i.stoneshape??"").trim(),h=i.stonect,p=c&&null!=h&&""!==h?(0,r.buildGemSpecDisplayLabel)(c,h,n):(0,t.buildPdpSpecDisplayLabel)(s,f,n),d=[];return u&&d.push(u),p&&d.push(p),d.length>0?d.join(" / "):void 0}function l(e){let t=e??0;return 0===t?"缺貨":t<=3?`é¤${t}`:void 0}function u(e){let t=e.reduce((e,t)=>{let r=t.attributes?.metalcolor;if(!r||!i[r])return e;let a=(0,n.getAvailableQuantity)(t)>0;return e[r]&&(e[r].inStock||!a)||(e[r]={itemId:t.id,inStock:a}),e},{});return Object.entries(i).map(([e,{label:r,color:n}])=>({id:e,label:r,color:n,itemId:t[e]?.itemId,inStock:t[e]?.inStock??!1}))}function s(e,r="zh-HK"){let i=[];for(let a of e){let e=a.attributes?.size,o=null!=e&&""!==e?String(e):"",u=a.attributes?.mainstone??a.attributes?.stone??"",s=null!=u&&""!==u?String(u):"";(o||s)&&i.push({value:a.id,label:(0,t.buildPdpSpecDisplayLabel)(o,s,r),status:l((0,n.getAvailableQuantity)(a))})}return i}function f(e,t="zh-HK"){let i=e.map(e=>{let n=e.attributes?.stonect;if(null==n||""===n)return null;let i=String(e.attributes?.stoneshape??"").trim(),a=Number(n),o=(0,r.buildGemSpecDisplayLabel)(i,n,t);return o?{item:e,ct:Number.isNaN(a)?0:a,shape:i.toLowerCase(),label:o}:null}).filter(e=>null!=e);return i.sort((e,t)=>
1e.shape.localeCompare(t.shape)||e.ct-t.ct||e.label.localeCompare(t.label)),i.map(({item:e,label:t})=>({value:e.id,label:t,status:l((0,n.getAvailableQuantity)(e))}))}},8904,e=>{"use strict";var t=e.i(44677),r=e.i(91997),n=e.i(1073);function i(e){let i=e.inventoryItem,l=i?.name??e.description??"â";if(!i||!function(e){if(e.categoryId===t.CATEGORY_IDS.gem)return!0;let r=e.attributes;if(!r)return!1;let n=a(r);return!!(n.stoneshape&&null!=n.stonect&&""!==n.stonect&&!n.metalcolor&&!n.mainstone)}(i))return{name:l,subtitle:function(e){if(!e)return"";let t=[],r=e.material??e.metal??e.Metal,n=e.size??e["ring size"]??e.Size;return r&&t.push(String(r)),n&&t.push(`港度${n}碼`),t.join("/")}(i?.attributes)};let u=i.attributes?.stone??i.attributes?.Stone??i.attributes?.STONE??"";return{name:(0,r.translateGemGroupName)(o(i.styleNo??void 0,u||l)),subtitle:i.attributes?(0,n.buildCartItemSpecs)({attributes:a(i.attributes)})??"":""}}function a(e){let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}function o(e,t){let n=e?.trim()??"",i=t?.trim()??"";return n&&(0,r.translateGemGroupName)(n)!==n?n:i&&(0,r.translateGemGroupName)(i)!==i?i:n||i}function l(e){return!function(e){if("gem"===e.type||"gem"===e.category)return!0;let t=o(e.styleno,e.name);return""!==t&&(0,r.translateGemGroupName)(t)!==t}(e)?{styleno:e.styleno,name:e.name}:{name:(0,r.translateGemGroupName)(o(e.styleno,e.name))}}function u(e,t){return e.category_id||e.categoryid||t?.categoryId||t?.category_id||void 0}function s(e,r,n){if(u(e,r)===t.CATEGORY_IDS.gem||n?.type==="gem"||n?.category==="gem")return!0;let i=e.attributes;return!!(i?.stoneshape&&null!=i.stonect&&""!==i.stonect&&!i.metalcolor&&!i.mainstone)}e.s(["getCartItemDisplayLabels",()=>l,"getOrderInvoiceLineDisplay",()=>i,"inferGemFromInventory",()=>s,"inventoryCategoryId",()=>u,"resolveGemCartStyleKey",()=>o])},93948,45008,23421,e=>{"use strict";function t(e){let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;let r=e.inventoryItem,n=String(t.itemid??t.inventoryitemid??r?.id??e.itemId??e.inventoryItemId??"");return n?{id:"string"==typeof e.id?e.id:void 0,itemId:n,quantity:Number(t.quantity??e.quantity??1),unitPrice:"number"==typeof t.unitprice?t.unitprice:"number"==typeof e.unitPrice?e.unitPrice:void 0,discount:"number"==typeof t.discount?t.discount:"number"==typeof e.discount?e.discount:void 0,description:"string"==typeof t.description||null===t.description?t.description:e.description,addOnOfferItemId:"string"==typeof t.addonofferitemid?t.addonofferitemid:"string"==typeof e.addOnOfferItemId?e.addOnOfferItemId:null}:null}function r(e){let t=e.itemId??e.id??"";return e.addOnOfferItemId?`${t}::addon:${e.addOnOfferItemId}`:t}function n(e){return(e.webCartItems??e.items??[]).map(e=>t(e)).filter(e=>null!=e)}e.s(["CUSTOM_CATEGORY_STOCK_GROUP_FIELD",0,"__stock__"],45008),e.s(["cartLineKey",()=>r,"getWebCartLines",()=>n,"parseWebCartLine",()=>t],23421),e.s([],93948)},80230,e=>{"use strict";var t=e.i(68307),r=e.i(17884),n=e.i(61238),i=e.i(67581),a=e.i(38622),o=e.i(66765),l=e.i(44677),u=e.i(8904),s=e.i(91997),f=e.i(15929),c=e.i(1073);e.i(93948);var h=e.i(23421);async function p(){return(0,n.post)(l.API_ENDPOINTS.cart,{})}async function d(e){if(!(0,a.isValidCartId)(e))throw Error("Invalid cart ID");return(0,n.get)(l.API_ENDPOINTS.cartById(e))}async function m(e,t){return(await n.default.put(l.API_ENDPOINTS.cartPut(e),{items:t})).data}function y(e){let t=e().items,r=e().cart,n=new Map((r?(0,h.getWebCartLines)(r):[]).map(e=>[(0,h.cartLineKey)(e),e.id]));return t.map(e=>({id:n.get((0,h.cartLineKey)(e)),itemId:e.id,inventoryItemId:e.id,quantity:e.quantity,unitPrice:e.price,discount:0,description:null,addOnOfferItemId:e.addOnOfferItemId??null}))}async function g(e,t){let r=(0,u.inventoryCategoryId)((0,f.toLowerCaseKeys)(e),e);if(r)try{let e=(await (0,n.getInventoryPage)(l.API_ENDPOINTS.inventoryByItemIdRaw(r,t))).data.flatMap(e=>e.children??[]),i=e.find(e=>e.id===t)??e[0];if(!i)return;return(0,f.getRawAvailableQuantity)((0,f.toLowerCaseKeys)(i))??void 0}catch{return}}async function v(e,t,r){let n=await (0,o.fetchInventoryWithImages)(t,e.itemId),i=function(e,t,r){let n=(0,f.convertItemImages)((0,f.parseSalesHKD)((0,f.toLowerCaseKeys)(t))),{price:i,originalPrice
1:a}=(0,f.getHKDPriceDiscount)(n),o=n.images??[],l=(0,f.selectPrimaryImage)(o)||r?.imageSrc||"",h=l?(0,f.selectHoverImage)(o,l)??r?.hoverImageSrc:r?.hoverImageSrc,p=null!=a?i:"number"==typeof e.unitPrice?e.unitPrice:i,d=(0,u.inferGemFromInventory)(n,t,r),m=(0,f.getItemName)(n),y=d?r?.styleno??(0,u.resolveGemCartStyleKey)(n.styleno,m):void 0;return{id:e.itemId,addOnOfferItemId:e.addOnOfferItemId??void 0,styleno:d?y:n.styleno??r?.styleno,name:d?(0,s.translateGemGroupName)(y??""):m,specs:(0,c.buildCartItemSpecs)(n)??r?.specs,imageSrc:l,hoverImageSrc:h,price:p,originalPrice:a,quantity:e.quantity,isCustom:!1,stock:(0,f.getRawAvailableQuantity)(n)??void 0,type:d?"gem":r?.type??"product",category:d?"gem":r?.category}}(e,n,r);return null==i.stock&&(i.stock=await g(n,e.itemId)),i}async function b(e,t=[]){return(await Promise.allSettled(e.map(async e=>{let r=t.find(t=>t.id===e.itemId),i=await (0,n.get)(l.API_ENDPOINTS.inventoryItem(e.itemId));return v(e,i,r)}))).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function I(e,t=[]){let r=e.webCartItems??[],n=[],i=[];for(let e of r){let r=(0,h.parseWebCartLine)(e);if(!r)continue;let a=t.find(e=>e.id===r.itemId);e.inventoryItem?n.push(await v(r,e.inventoryItem,a)):i.push(r)}return(i.length>0&&n.push(...await b(i,t)),0===r.length&&e.items?.length)?b(e.items,t):n}function E(e){let t=e().cartId??(0,a.readPersistedCartId)();return t&&(0,a.isValidCartId)(t)?t:null}let S=(0,t.create)()((0,r.persist)((e,t)=>({cartId:null,cart:null,items:[],isOpen:!1,itemCount:0,isSyncing:!1,lastError:null,ensureOpenCart:async()=>{let r=E(t);if(r)return t().cartId!==r&&e({cartId:r}),r;try{let t=await p();return e({cartId:t.id,cart:t,lastError:null}),t.id}catch(t){return e({lastError:t instanceof Error?t.message:"ç¡æ³å»ºç«è³¼ç©è»"}),null}},refreshCart:async()=>{let r=t().cartId,n=(0,a.readPersistedCartId)(),o=r??n;if(o){t().cartId!==o&&e({cartId:o}),e({isSyncing:!0});try{let r=await d(o),n=await I(r,t().items);e({cart:r,items:n,itemCount:n.reduce((e,t)=>e+t.quantity,0),lastError:null})}catch(t){t instanceof i.APIError&&400===t.status||t instanceof Error&&"Invalid cart ID"===t.message?e({cartId:null,cart:null,items:[],itemCount:0,lastError:null}):e({lastError:t instanceof Error?t.message:"ç¡æ³åæ¥è³¼ç©è»"})}finally{e({isSyncing:!1})}}},prefetchCart:async()=>{let r=E(t);r&&(t().cartId!==r&&e({cartId:r}),await t().refreshCart())},hydrateCart:async()=>{e({isSyncing:!0});try{let r=E(t);if(r&&t().cartId!==r&&e({cartId:r}),r&&(await t().refreshCart(),!t().lastError))return;(r=await t().ensureOpenCart())&&await t().refreshCart()}finally{e({isSyncing:!1})}},syncCartLines:async()=>{let r=E(t);r&&0!==t().items.length&&e({cart:await m(r,y(t)),lastError:null})},putCartOnceAfterLogin:async r=>{if(!r)return;let n=E(t);if(n){{let e=`dkk-cart:put-on-login:${r}:${n}`;if(window.sessionStorage.getItem(e))return;window.sessionStorage.setItem(e,"1")}try{let t=await d(n),r=(0,h.getWebCartLines)(t);if(0===r.length)return;let i=await m(n,r);e({cart:i,lastError:null})}catch(t){e({lastError:t instanceof Error?t.message:"æ´æ°è³¼ç©è»å¤±æ"})}}},addItem:async(r,i)=>{let a=await t().ensureOpenCart();if(!a)return;let o=(0,h.cartLineKey)(r);e(e=>{let t=e.items.find(e=>(0,h.cartLineKey)(e)===o),n=r.stock??1/0,i=t?e.items.map(e=>(0,h.cartLineKey)(e)===o?{...e,quantity:Math.min(e.quantity+(r.quantity||1),n),styleno:r.styleno??e.styleno}:e):[...e.items,{...r,quantity:Math.min(r.quantity||1,n)}];return{items:i,itemCount:i.reduce((e,t)=>e+t.quantity,0)}});try{await (0,n.post)(l.API_ENDPOINTS.cartAddItem(a),{itemId:String(r.id),quantity:r.quantity||1,...r.addOnOfferItemId?{addOnOfferItemId:r.addOnOfferItemId}:{},...i?.bundleInventoryItemIds?.length?{bundleInventoryItemIds:i.bundleInventoryItemIds}:{}}),await t().refreshCart()}catch(t){e({lastError:t instanceof Error?t.message:"å å
¥è³¼ç©è»å¤±æ"})}},removeItem:async r=>{e(e=>{let t=e.items.filter(e=>(0,h.cartLineKey)(e)!==r);return{items:t,itemCount:t.reduce((e,t)=>e+t.quantity,0)}});let n=t().cartId;if(n)try{let i=y(t).filter(e=>(0,h.cartLineKey)(e)!==r),a=await m(n,i);e({cart:a,lastError:null})}catch(t){e({lastError:t instanceof Error?t.message:"æ´æ°è³¼ç©è»å¤±æ"})}},updateQuantity:async(r,n)=>{if(n<=0)return void await t().removeItem(r);e(e=>{let t=e.items.map(e=>{if((0,h.cartLineKey)(e)!==r)return e;let t=e.stock??1/0;return{...e,quantity:Math.min(n,t)}});return{items:t,itemCount:t.reduce((e,t)=>
1e+t.quantity,0)}});let i=t().cartId;if(i)try{let r=y(t),n=await m(i,r);e({cart:n,lastError:null})}catch(t){e({lastError:t instanceof Error?t.message:"æ´æ°è³¼ç©è»å¤±æ"})}},openCart:()=>e({isOpen:!0}),closeCart:()=>e({isOpen:!1}),clearCart:()=>{(0,a.clearPersistedCartId)(),e({cartId:null,cart:null,items:[],itemCount:0,lastError:null})}}),{name:a.CART_PERSIST_KEY,partialize:e=>({cartId:e.cartId})}));e.s(["useCart",0,S])},82869,e=>{"use strict";var t=e.i(68307),r=e.i(17884);let n={lastName:"",firstName:"",district:"",area:"",addressLine1:"",addressLine2:"",zipCode:"",tel:"",email:"",deliveryMethod:"pickup",sfAddress:"same",sfDistrict:"",sfArea:"",sfAddressLine1:"",sfAddressLine2:"",sfZipCode:"",packagingOption:"none",selectedPackage:null,remarks:""},i=(0,t.create)()((0,r.persist)(e=>({formData:n,referenceNo:null,paymentRequestId:null,couponCode:"",pointsToRedeem:0,setFormData:t=>e({formData:t}),setReferenceNo:t=>e({referenceNo:t}),setPaymentRequestId:t=>e({paymentRequestId:t}),setCouponCode:t=>e({couponCode:t}),setPointsToRedeem:t=>e({pointsToRedeem:t}),reset:()=>e({formData:n,referenceNo:null,paymentRequestId:null,couponCode:"",pointsToRedeem:0})}),{name:"dkk-checkout",storage:(0,r.createJSONStorage)(()=>sessionStorage)}));e.s(["useCheckoutStore",0,i])},17884,e=>{"use strict";function t(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(n=r.getItem(e))?n:null;return a instanceof Promise?a.then(i):i(a)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},n=(e,n)=>(i,a,o)=>{let l,u={storage:t(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...n},s=!1,f=0,c=new Set,h=new Set,p=u.storage;if(!p)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),i(...e)},a,o);let d=()=>{let e=u.partialize({...a()});return p.setItem(u.name,{state:e,version:u.version})},m=o.setState;o.setState=(e,t)=>(m(e,t),d());let y=e((...e)=>(i(...e),d()),a,o);o.getInitialState=()=>y;let g=()=>{var e,t;if(!p)return;let n=++f;s=!1,c.forEach(e=>{var t;return e(null!=(t=a())?t:y)});let o=(null==(t=u.onRehydrateStorage)?void 0:t.call(u,null!=(e=a())?e:y))||void 0;return r(p.getItem.bind(p))(u.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===u.version)return[!1,e.state];else{if(u.migrate){let t=u.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(n!==f)return;let[r,o]=e;if(i(l=u.merge(o,null!=(t=a())?t:y),!0),r)return d()}).then(()=>{n===f&&(null==o||o(l,void 0),l=a(),s=!0,h.forEach(e=>e(l)))}).catch(e=>{n===f&&(null==o||o(void 0,e))})};return o.persist={setOptions:e=>{u={...u,...e},e.storage&&(p=e.storage)},clearStorage:()=>{null==p||p.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(h.add(e),()=>{h.delete(e)})},u.skipHydration||g(),l||y};e.s(["createJSONStorage",()=>t,"persist",()=>n])},15929,20718,60711,e=>{"use strict";var t=e.i(99074);let r=["<3000","3000~8000",">8000"],n=new Set(["new-arrival","sale"]);function i(e,t){return 0===t.length?e:e.filter(e=>{let{min:n,max:i}=w(e);return t.some(e=>e===r[0]?n<3e3:e===r[1]?i>=3e3&&n<=8e3:e===r[2]&&i>8e3)})}function a(e){let t=e.attributes?.discount;return null!=t&&""!==t&&Number(t)>0}function o(e,t,{applyPrice:r=!0}={}){let u=e;if(t.filterIds&&t.filterIds.length>0){let e=new Set(t.filterIds);u=u.filter(t=>null!=t.id&&e.has(t.id))}return t.categories.length>0&&t.categories.some(e=>n.has(e))&&(u=u.filter(e=>t.categories.some(t=>"new-arrival"===t?e.attributes?.newitem==="YES":"sale"===t&&a(e)))),t.jewelry.length>0&&(u=u.filter(e=>t.jewelry.some(t=>e.attributes?.category?.toLowerCase()===t.toLowerCase()))),t.gemstones.length>0&&(u=u.filter(e=>t.gemstones.some(t=>e.attributes?.mainstone?.toLowerCase()===t.toLowerCase()))),u=l(u,t.stock),r&&(u=i(u,t.price)),u}function l(e,t){return 0===t.length?e:e.filter(e=>t.some(t=>{let r=s(e);return"in-stock"===t?r>0:"out-of-stock"===t&&0===r}))}function u(e){let t=e.availablequantity??e.availableQuantity;return null!=t?t:e.quantity??null}function s(e){return u(e)??0}function f(e){let t={};for(let[r,n]of Object.entries(e))if("attributes"===r&&null!==n&&"object"==typeof n){let e={};for(let[t,r]of Object.entries(n))e[t.toLowerCase()]=r;t.attributes=e}else t[r.toLowerCase()]=n;return t}function c(e,r,n){let i=t.ENV.IMAGE_API_URL;return`${i}/inventory/asset/${encodeURIComponent(e)}/${encodeURIComponent(r)}?dimension=${n??275}`}e.s(["CATEGORY_OPTIONS",0,[{value:"hot-sale",label:"æç±é·"},{value:"trending",label:"ç±é趨å¢"},{value:"new-arrival",label:"æ°å䏿¶"},{value:"engagement",label:"æ±å©ç³»å"},{value:"sale",label:"SALE"}],"GEMSTONE_OPTIONS",0,[{value:"Diamond",label:"é½ç³"},{value:"Blue Sapphire",label:"è寶ç³"},{value:"Ruby",label:"ç´
寶ç³"},{value:"Emerald",label:"ç¶ å¯¶ç³"},{value:"Pink Sapphire",label:"ç²è寶ç³"},{value:"Color Sapphire",label:"彩è¹è寶ç³"},{value:"Alexandrite",label:"äºæ·å±±å¤§ç³"},{value:"Aquamarine",label:"æµ·è寶ç³"},{value:"Tsavorite",label:"æ²å¼èç³"},{value:"Carnelian",label:"ç´
çé«"},{value:"Pearl",label:"çç "},{value:"M-O-P",label:"çç æ¯è²"},{value:"Morganite",label:"æ©æ ¹ç³"},{value:"Paraiba",label:"叿ä¼å·´"},{value:"Garnet",label:"ç³æ¦´ç³"},{value:"Teal Sapphire",label:"é·è寶ç³"},{value:"Padparadscha",label:"å¸å¸ææ°"},{value:"Spinel",label:"å°æ¶ç³"}],"GEM_GEMSTONE_OPTIONS",0,[{value:"Blue Sapphire",label:"è寶ç³"},{value:"Teal Sapphire",label:"é·è寶ç³"},{value:"Pink Sapphire",label:"ç²è寶ç³"},{value:"Color Sapphire",label:"彩è¹è寶ç³"},{value:"Ruby",label:"ç´
寶ç³"},{value:"Emerald",label:"ç¶ å¯¶ç³"},{value:"Diamond",label:"é½ç³"},{value:"Alexandrite",label:"äºæ·å±±å¤§ç³"},{value:"Aquamarine",label:"æµ·è寶ç³"},{value:"Garnet",label:"ç³æ¦´ç³"},{value:"Padparadscha",label:"å¸å¸ææ°"},{value:"Spinel",label:"å°æ¶ç³"}],"JEWELRY_OPTIONS",0,[{value:"ring",label:"ææ"},{value:"bracelet",label:"æé²/æé"},{value:"pendant",label:"åå¢"},{value:"necklace",label:"é ¸é"},{value:"earrings",label:"è³ç°"}],"PRICE_ZONES",0,r,"RECOGNIZED_CATEGORIES",0,n,"SHAPE_OPTIONS",0,[{value:"round",label:"åå½¢"},{value:"princess",label:"å
¬ä¸»æ¹å½¢"},{value:"cushion",label:"æå½¢"},{value:"oval",label:"æ©¢åå½¢"},{value:"emerald",label:"ç¥æ¯ç¶ å½¢"},{value:"pear",label:"梨形"},{value:"asscher",label:"ä¸ä¸æ¹å½¢"},{value:"heart",label:"å¿å½¢"},{value:"marquise",label:"æ©æ¬å½¢"},{value:"other",label:"å
¶ä»"}],"STOCK_OPTIONS",0,[{value:"in-stock",label:"æå貨"},{value:"out-of-stock",label:"缺貨"}],"WEIGHT_ZONES",0,["<0.5å¡","0.5~1.5å¡",">1.5å¡"]],20718);let h=/\.(jpe?g|png|gif|webp|avif|svg)$/i;function p(e){return(e??[]).flat().filter(e=>h.test(e))}function d(e,t=275,r){let n=r??e.id,i=p(e.inv_images),a=(e.inv_images??[]).flat().filter(e=>!h.test(e));return a.length>0&&console.warn(`[inventory] item ${e.id}
1 has invalid inv_images:`,a),{...e,inv_images:i,images:i.map(e=>c(n,e,t))}}function m(e,t,r=275){let n=p(t);return{inv_images:n,images:n.map(t=>c(e,t,r))}}function y(e){return e.filter(e=>e.inv_images&&e.inv_images.length>0).map(e=>d(e))}function g(e,t=""){return e[0]??t}function v(e,t){return e.find(e=>e!==t)}function b(e){return e.name??e.attributes?.name??""}function I(e){let t=e.filter(e=>0!==u(e)).map(e=>C(e).price).filter(e=>e>0);return 0===t.length?{min:0,max:0}:{min:Math.min(...t),max:Math.max(...t)}}function E(e){return e.length>0&&e.every(e=>0===u(e))&&e.some(e=>C(e).price>0)}function S(e){return e.reduce((e,t)=>e+s(t),0)}function w(e){let{price:t}=C(e);return{min:e.plpPriceMin??t,max:e.plpPriceMax??t}}function P(e,t,r=!1){return r?"SOLD OUT":e<=0&&t<=0?"è¨åæ¬¾å¼ æ¡è¿æ¥è©¢":t>0&&t!==e?`HK$ ${e.toLocaleString()}-${t.toLocaleString()}`:`HK$ ${e.toLocaleString()}`}function C(e){let t=Number(e.attributes?.saleshkd)||0,r=Number(e.attributes?.discount)||0;return r>0&&t>0?{price:t-r,originalPrice:t,percent:`${(r/t*100).toFixed(0)}% off`}:{price:t,originalPrice:void 0,percent:void 0}}function O(e){let t=e.attributes?.saleshkd,r=null!=t?Number(t):0;return{...e,attributes:{...e.attributes,saleshkd:Number.isNaN(r)?0:r}}}function A(e){return y(e.map(f).map(O))}e.s(["applyJewelryFilters",()=>o,"applyPriceFilter",()=>i,"applyStockFilter",()=>l,"convertItemImages",()=>d,"convertItemsImages",()=>y,"formatPlpPriceLabel",()=>P,"getAvailableQuantity",()=>s,"getChildrenPriceRange",()=>I,"getHKDPriceDiscount",()=>C,"getImageUrl",()=>c,"getItemName",()=>b,"getPlpPriceRange",()=>w,"getRawAvailableQuantity",()=>u,"getTotalAvailableQuantity",()=>S,"hasDiscount",()=>a,"isStyleSoldOut",()=>E,"mapInvImagesToUrls",()=>m,"parseSalesHKD",()=>O,"selectHoverImage",()=>v,"selectPrimaryImage",()=>g,"toLowerCaseKeys",()=>f],15929);let L=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function T(e){return L.test(e)}function _(e){return y(e.children.map(f).map(O))}function R(e){return e.children.map(f).map(O)}function N(e){return e.flatMap(e=>_(e)).map(({plpChildren:e,plpPriceMin:t,plpPriceMax:r,styleno:n,...i})=>i)}function B(e){if(0===e.length)return;let t=e.filter(e=>e.inv_images&&e.inv_images.length>0),r=t.find(e=>s(e)>0);return r||(t[0]??e[0])}function M(e){let t=[];for(let r of e){let e=(r.inv_images??[]).flat(),n=R(r),i=_(r),a=B(i.length>0?i:n);if(!a)continue;let{min:o,max:l}=I(n),u=e.length>0?m(a.id,e):null;t.push({...a,...u??{},styleno:r.id,quantity:r.quantity,plpChildren:n,plpPriceMin:o,plpPriceMax:l})}return t}function k(e,t){if(0===e.length)return null;if(t){let r=e.find(e=>e.id===t);if(r)return r}return B(e)??e[0]??null}function U(e,t){for(let r of e){let e=r.children.map(f).map(O).find(e=>e.id===t);if(e)return d(e)}return null}function D(e){return e[0]?.id??null}e.s(["findChildInGroups",()=>U,"groupsToFlatGemPlpItems",()=>N,"groupsToPLPItems",()=>M,"isInventoryItemUuid",()=>T,"normalizeAllGroupChildren",()=>R,"normalizeInventoryListItems",()=>A,"pickPrimaryChild",()=>k,"styleNoFromGroups",()=>D],60711)},54020,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},7676,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(38238);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44705,e=>{"use strict";var t=e.i(47793),r=e.i(38238),n=e.i(31823),i=r["use".trim()],a=e.i(2051),o=e.i(39159),l=e.i(11246),u=e.i(69834),s=e.i(26301);let{Link:f,redirect:c,permanentRedirect:h,usePathname:p,useRouter:d}=function(e){let{Link:f,config:c,getPathname:h,...p}=function(e,n){var s,f,c;let h={...s=n||{},localePrefix:"object"==typeof(c=s.localePrefix)?c:{mode:c||"always"}
1,localeCookie:!!((f=s.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof f&&f},localeDetection:s.localeDetection??!0,alternateLinks:s.alternateLinks??!0},p=h.pathnames,d=(0,r.forwardRef)(function({href:t,locale:r,...n},l){let s,f;"object"==typeof t?(s=t.pathname,f=t.params):s=t;let c=(0,a.isLocalizableHref)(t),d=e(),y=(0,a.isPromise)(d)?i(d):d,g=c?m({locale:r||y,href:null==p?s:{pathname:s,params:f},forcePrefix:null!=r||void 0}):s;return(0,u.jsx)(o.default,{ref:l,href:"object"==typeof t?{...t,pathname:g}:g,locale:r,localeCookie:h.localeCookie,...n})});function m(e){let t,{forcePrefix:r,href:n,locale:i}=e;return null==p?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,l.serializeSearchParams)(n.query))):t=n:t=(0,l.compileLocalizedPathname)({locale:i,...(0,l.normalizeNameOrNameWithParams)(n),pathnames:h.pathnames}),(0,l.applyPathnamePrefix)(t,i,h,r)}function y(e){return function(t,...r){return e(m(t),...r)}}return{config:h,Link:d,redirect:y(t.redirect),permanentRedirect:y(t.permanentRedirect),getPathname:m}}(n.useLocale,e);return{...p,Link:f,usePathname:function(){let e,i,o=(e=(0,t.usePathname)(),i=(0,n.useLocale)(),(0,r.useMemo)(()=>{if(!e)return e;let t=e,r=(0,a.getLocalePrefix)(i,c.localePrefix);if((0,a.hasPathnamePrefixed)(r,e))t=(0,a.unprefixPathname)(e,r);else if("never"!==c.localePrefix.mode&&c.localePrefix.prefixes){let r=(0,a.getLocaleAsPrefix)(i);(0,a.hasPathnamePrefixed)(r,e)&&(t=(0,a.unprefixPathname)(e,r))}return t},[c.localePrefix,i,e])),u=(0,n.useLocale)();return(0,r.useMemo)(()=>o&&c.pathnames?(0,l.getRoute)(u,o,c.pathnames):o,[u,o])},useRouter:function(){let e=(0,t.useRouter)(),i=(0,n.useLocale)(),a=(0,t.usePathname)();return(0,r.useMemo)(()=>{function t(e){return function(t,r){let{locale:n,...o}=r||{},l=[h({href:t,locale:n||i,forcePrefix:null!=n||void 0})];Object.keys(o).length>0&&l.push(o),(0,s.default)(c.localeCookie,a,i,n),e(...l)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[i,a,e])},getPathname:h}}({locales:["zh-HK","zh-CN","en"],defaultLocale:"zh-HK",localePrefix:"as-needed",localeDetection:!1});e.s(["Link",0,f,"usePathname",0,p,"useRouter",0,d],44705)},84732,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=u(e),o=a[0],l=a[1],s=new i((o+l)*3/4-l),f=0,c=l>0?o-4:o;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],s[f++]=t>>16&255,s[f++]=t>>8&255,s[f++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,s[f++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,s[f++]=t>>8&255,s[f++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,l=n-i;o<l;o+=16383)a.push(function(e,t,n){for(var i,a=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>l?l:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o<l;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|p(n,i),u=o(a),s=u.write(n,i);return s!==a&&(u=u.slice(0,s)),u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),l.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var f=e.valueOf&&e.valueOf();if(null!=f&&f!==e)return l.from(f,t,r);var d=function(e){if(l.isBuffer(e)){var t=0|h(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return s(e),o(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(s(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},l.allocUnsafe=function(e){return f(e)},l.allocUnsafeSlow=function(e){return f(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,a,o,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=_[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,o=r,0===a&&o===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return g(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var a,o=1,l=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,l/=2,u/=2,r/=2}function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(a=r;a<l;a++)if(s(e,a)===s(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else -1!==f&&(a-=a-f),f=-1}else for(r+u>l&&(r=l-u),a=r;a>=0;a--){for(var c=!0,h=0;h<u;h++)if(s(e,a+h)!==s(t,h)){c=!1;break}if(c)return a}return -1}l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(T(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(T(a,Uint8Array)&&(a=l.from(a)),!l.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):d.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,u=Math.min(a,o),s=this.slice(n,i),f=e.slice(t,r),c=0;c<u;++c)if(s[c]!==f[c]){a=s[c],o=f[c];break}return a<o?-1:+(o<a)},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,l,u,s=e[i],f=null,c=s>239?4:s>223?3:s>191?2:1;if(i+c<=r)switch(c){case 1:s<128&&(f=s);break;case 2:(192&(a=e[i+1]))==128&&(u=(31&s)<<6|63&a)>127&&(f=u);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(u=(15&s)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=e[i+1],o=e[i+2],l=e[i+3],(192&a)==128&&(192&o)==128&&(192&l)==128&&(u=(15&s)<<18|(63&a)<<12|(63&o)<<6|63&l)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",m=0;m<p;)d+=String.fromCharCode.apply(String,h.slice(m,m+=4096));return d}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,a){return t*=1,r>>>=0,a||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function w(e,t,r,n,a){return t*=1,r>>>=0,a||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,l,u,s,f,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l,u=parseInt(t.substr(2*o,2),16);if((l=u)!=l)break;e[r+o]=u}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,L(C(e,this.length-i),this,i,a);case"ascii":return o=t,l=r,L(O(e),this,o,l);case"latin1":case"binary":return function(e,t,r,n){return L(O(t),e,r,n)}(this,e,t,r);case"base64":return u=t,s=r,L(A(e),this,u,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,c=r,L(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-f),this,f,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;I(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;I(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=0,o=1,l=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);I(this,e,t,r,i-1,-i)}var a=r-1,o=1,l=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/o|0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||I(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return w(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return w(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=l.isBuffer(e)?e:l.from(e,n),u=o.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%u]}return this};var P=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function O(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var a,o,l=8*i-n-1,u=(1<<l)-1,s=u>>1,f=-7,c=r?i-1:0,h=r?-1:1,p=e[t+c];for(c+=h,a=p&(1<<-f)-1,p>>=-f,f+=l;f>0;a=256*a+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+e[t+c],c+=h,f-=8);if(0===a)a=1-s;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=s}return(p?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,l,u,s=8*a-i-1,f=(1<<s)-1,c=f>>1,h=5960464477539062e-23*(23===i),p=n?0:a-1,d=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(t*u-1)*Math.pow(2,i),o+=c):(l=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&l,p+=d,l/=256,i-=8);for(o=o<<i|l,s+=i;s>0;e[r+p]=255&o,p+=d,o/=256,s-=8);e[r+p-d]|=128*m}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},o=!0;try{n[e](r,r.exports,a),o=!1}finally{o&&delete i[e]}return r.exports}a.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},99074,e=>{"use strict";var t=e.i(23938);let r={APP_URL:"https://v2.daykarkal.com",SITE_URL:t.default.env.NEXT_PUBLIC_SITE_URL||"https://daykarkal.com",BACKEND_API_URL:t.default.env.BACKEND_API_URL||"https://api.daykarkal.com",BACKEND_TOKEN:t.default.env.BACKEND_TOKEN||"liajnwekfjhawlfaw9ri3u192438717432uyqaiekfjh",SUB_COMPANY_ID:t.default.env.SUB_COMPANY_ID||"",PRODUCT_TOKEN:"liajnwekfjhawlfaw9ri3u192438717432uyqaiekfjh",PRODUCT_SUB_COMPANY_ID:"558375c5-db94-4ef2-9fcd-7df4c9788483",IMAGE_API_URL:"https://api.daykarkal.com",SESSION_SECRET:t.default.env.SESSION_SECRET||"",GOOGLE_OAUTH_CLIENT_ID:"48679777590-vu43bktismv62jd15vl8v9a0krdhbgk0.apps.googleusercontent.com",FACEBOOK_APP_ID:"2121260404733237",APPOINTMENT_SHOP_ALIASES:t.default.env.NEXT_PUBLIC_APPOINTMENT_SHOP_ALIASES||"DKK",APPOINTMENT_SHOP_ADDRESS:t.default.env.NEXT_PUBLIC_APPOINTMENT_SHOP_ADDRESS||"馿¸¯ä¹é¾å°æ²åæ²³å
§é18èK11 Art Mall 1æ¨Kiosk9ï¼è¿æ¶æé»æ¢¯ï¼",IS_PRODUCTION:!0,IS_DEVELOPMENT:!1};e.s(["ENV",0,r])},46856,e=>{"use strict";e.s(["ROUTES",0,{HOME:"/",DIAMONDS:"/diamonds",DIAMOND_DETAIL:e=>`/diamonds/${e}`,RINGS:"/rings",GEMSTONES:"/gemstones",CART:"/cart",CHECKOUT:"/checkout",LOGIN:"/login",loginUrl:e=>e?`/login?redirect=${encodeURIComponent(e)}`:"/login",REGISTER:"/register",registerUrl:e=>e?`/register?redirect=${encodeURIComponent(e)}`:"/register",FORGOT_PASSWORD:"/forgot-password",RESET_PASSWORD:"/reset-password",MEMBER:"/member",MEMBER_PROFILE_EDIT:"/member/profile-edit",MEMBER_SHIP_ADDR:"/member/ship-addr",MEMBER_NEWSLETTER:"/member/newsletter",MEMBER_ORDERS:"/member/orders",MEMBER_WISHLIST:"/member/wishlist",MEMBER_POINTS:"/member/points",MEMBER_REPAIRS:"/member/repairs",ABOUT:"/about",CONTACT:"/contact",SUPPORT:"/support",FAQ:"/faq"}])}]);
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.