@swell/apps-sdk 1.0.95 → 1.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/index.cjs +49 -49
  2. package/dist/index.cjs.map +4 -4
  3. package/dist/index.js +48 -48
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +49 -49
  6. package/dist/index.mjs.map +4 -4
  7. package/dist/src/api.d.ts +1 -3
  8. package/dist/src/cache/cache.d.ts +12 -2
  9. package/dist/src/cache/request-cache.d.ts +2 -1
  10. package/dist/src/cache/resource-cache.d.ts +1 -2
  11. package/dist/src/cache/theme-cache.d.ts +2 -7
  12. package/dist/src/compatibility/drops/object-handles.d.ts +1 -1
  13. package/dist/src/compatibility/shopify-configs.d.ts +4 -8
  14. package/dist/src/compatibility/shopify-objects/resource.d.ts +1 -1
  15. package/dist/src/compatibility/shopify.d.ts +6 -2
  16. package/dist/src/constants.d.ts +2 -2
  17. package/dist/src/easyblocks/config.d.ts +9 -3
  18. package/dist/src/liquid/filters/asset_url.d.ts +3 -2
  19. package/dist/src/liquid/filters/default_errors.d.ts +3 -2
  20. package/dist/src/liquid/filters/index.d.ts +4 -2
  21. package/dist/src/liquid/filters/json.d.ts +3 -2
  22. package/dist/src/liquid/filters/json_pretty.d.ts +3 -2
  23. package/dist/src/liquid/filters/script_tag.d.ts +3 -0
  24. package/dist/src/liquid/filters/stylesheet_tag.d.ts +3 -2
  25. package/dist/src/liquid/filters/translate.d.ts +3 -2
  26. package/dist/src/liquid/index.d.ts +15 -19
  27. package/dist/src/liquid/tags/case.d.ts +1 -1
  28. package/dist/src/liquid/tags/for.d.ts +1 -1
  29. package/dist/src/liquid/tags/form.d.ts +1 -1
  30. package/dist/src/liquid/tags/inline_editable.d.ts +1 -1
  31. package/dist/src/liquid/tags/javascript.d.ts +1 -1
  32. package/dist/src/liquid/tags/layout.d.ts +1 -1
  33. package/dist/src/liquid/tags/paginate.d.ts +1 -1
  34. package/dist/src/liquid/tags/render.d.ts +1 -1
  35. package/dist/src/liquid/tags/section.d.ts +1 -1
  36. package/dist/src/liquid/tags/sections.d.ts +1 -1
  37. package/dist/src/liquid/tags/shopify/include.d.ts +1 -1
  38. package/dist/src/liquid/tags/style.d.ts +1 -1
  39. package/dist/src/liquid/test-helpers.d.ts +2 -0
  40. package/dist/src/liquid/utils.d.ts +6 -14
  41. package/dist/src/menus.d.ts +1 -1
  42. package/dist/src/theme/theme-loader.d.ts +5 -1
  43. package/dist/src/theme.d.ts +15 -15
  44. package/dist/src/utils/index.d.ts +1 -1
  45. package/dist/types/shopify.d.ts +19 -15
  46. package/dist/types/swell.d.ts +15 -5
  47. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,30 +1,30 @@
1
- "use strict";var y1=Object.create;var K3=Object.defineProperty;var S1=Object.getOwnPropertyDescriptor;var k1=Object.getOwnPropertyNames;var L1=Object.getPrototypeOf,A1=Object.prototype.hasOwnProperty;var w2=(n,e)=>{for(var t in e)K3(n,t,{get:e[t],enumerable:!0})},y2=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of k1(e))!A1.call(n,r)&&r!==t&&K3(n,r,{get:()=>e[r],enumerable:!(i=S1(e,r))||i.enumerable});return n};var t3=(n,e,t)=>(t=n!=null?y1(L1(n)):{},y2(e||!n||!n.__esModule?K3(t,"default",{value:n,enumerable:!0}):t,n)),b1=n=>y2(K3({},"__esModule",{value:!0}),n);var N6={};w2(N6,{DEFAULT_QUERY_PAGE_LIMIT:()=>s2,DeferredShopifyResource:()=>U,FILE_DATA_INCLUDE_QUERY:()=>n4,GEO_DATA:()=>B4,LANG_TO_COUNTRY_CODES:()=>G4,LiquidSwell:()=>R3,MAX_QUERY_PAGE_LIMIT:()=>a2,MockRecordResource:()=>p2,MockRecordSingleton:()=>g2,PageError:()=>Z3,PageNotFound:()=>N3,SECTION_GROUP_CONTENT:()=>I3,ShopifyArticle:()=>S3,ShopifyBlog:()=>p4,ShopifyCart:()=>m3,ShopifyCollection:()=>k3,ShopifyCollections:()=>f4,ShopifyCompatibility:()=>f3,ShopifyCustomer:()=>K,ShopifyFont:()=>L3,ShopifyForm:()=>B3,ShopifyLink:()=>A3,ShopifyLocalization:()=>b3,ShopifyOrder:()=>r3,ShopifyPage:()=>k4,ShopifyPaginate:()=>g3,ShopifyPredictiveSearch:()=>y4,ShopifyProduct:()=>P,ShopifyRecommendations:()=>S4,ShopifyResource:()=>y,ShopifySearch:()=>L4,ShopifyVariant:()=>G,StorefrontResource:()=>T,Swell:()=>c2,SwellBackendAPI:()=>P4,SwellError:()=>q3,SwellStorefrontCollection:()=>A,SwellStorefrontPagination:()=>v3,SwellStorefrontRecord:()=>_,SwellStorefrontResource:()=>T3,SwellStorefrontSingleton:()=>Y,SwellTheme:()=>W5,ThemeColor:()=>S,ThemeFont:()=>D,ThemeForm:()=>O,ThemeFormErrors:()=>J3,adaptShopifyFontData:()=>b4,adaptShopifyFormData:()=>T4,adaptShopifyMenuData:()=>A4,arrayToObject:()=>K5,deferMenuItemUrlAndResource:()=>s3,dehydrateSwellRefsInStorefrontResources:()=>e1,extractSettingsFromForm:()=>y3,findCircularReferences:()=>s6,findEditorSetting:()=>Y5,findThemeSettingsByType:()=>J5,fontMap:()=>W3,forEachKeyDeep:()=>h2,getAllSections:()=>Q5,getBlog:()=>g6,getBlogs:()=>p6,getCategories:()=>d6,getCategory:()=>s1,getCategoryWithProducts:()=>u6,getContentEntry:()=>u2,getContentList:()=>l1,getContentModel:()=>C6,getCountryCodeFromLocale:()=>a6,getEasyblocksBackend:()=>g1,getEasyblocksComponentDefinitions:()=>x6,getEasyblocksPagePropsWithConfigs:()=>D6,getEasyblocksPageTemplate:()=>p1,getEasyblocksPropsFromThemeConfigs:()=>k6,getLayoutSectionGroups:()=>X5,getMenuItemStorefrontUrl:()=>l3,getMenuItemUrlAndResource:()=>Fe,getMenuItemValueId:()=>Ne,getPage:()=>m6,getPageSections:()=>C4,getProduct:()=>h6,getProducts:()=>d2,getProductsFiltered:()=>c6,getSectionGroupProp:()=>h3,getSectionSettingsFromProps:()=>C1,getThemeSettingsFromProps:()=>u1,isArray:()=>o6,isObject:()=>w3,md5:()=>J,removeCircularReferences:()=>l6,resolveAsyncResources:()=>Q,resolveLookupCollection:()=>He,resolveMenuItemUrlAndResource:()=>je,resolveMenuItems:()=>U5,resolveMenuSettings:()=>O5,resolveSectionSettings:()=>u4,resolveThemeSettings:()=>F3,scopeCustomCSS:()=>e2,stringifyQueryParams:()=>q,systemFonts:()=>R1,toBase64:()=>l2});module.exports=b1(N6);var o1=t3(require("swell-js"),1),a1=t3(require("qs"),1);var S2=require("cache-manager"),k2=require("keyv"),T1=Object.freeze({ttl:1e3*60*60*24}),H=class{client;constructor(e){e=e||{},e.stores=e.stores||[new k2.Keyv],this.client=(0,S2.createCache)({...T1,...e})}async fetch(e,t){return this.client.wrap(e,t)}async get(e){return this.client.get(e)}async set(e,t,i){return this.client.set(e,t,i)}async flush(e){await this.client.del(e)}async flushAll(){await this.client.clear()}};var L2=require("keyv");var _1=30*1e3,_3=class extends H{constructor(){super({stores:M1(),ttl:_1})}};function M1(){return[new L2.Keyv]}var G6=require("cache-manager"),A2=require("keyv");var E1=30*1e3,M3=class extends H{constructor(e){super({stores:P1(),ttl:E1})}};function P1(){return[new A2.Keyv({serialize:void 0,deserialize:void 0})]}var R4=require("keyv");var z3=class{namespace;store;constructor(e){this.store=e,this.namespace="dummy"}async has(e){return this.get(e)!==void 0}async get(e){return this.store.get(e)}async set(e,t){return this.store.put(e,t)}async delete(e){await this.store.delete(e)}async clear(){let e="",t=!1;for(;!t;){let i=await this.store.list({prefix:`${this.namespace}:`,cursor:e||void 0});e=i.cursor??"",t=i.list_complete,i.keys.length>0&&await Promise.all(i.keys.map(r=>this.store.delete(r.name)))}}};var v1="THEME",D1=90*24*60*60*1e3,E3=class extends H{constructor(e){super({stores:x1(e),ttl:D1})}};function x1(n){let e=[new R4.Keyv];return console.log(`Initializing KV store: ${n?"enabled":"disabled"}`),n&&e.push(new R4.Keyv({namespace:v1,store:new z3(n)})),e}var Xe=t3(require("qs"),1),E4=require("lodash-es");var o2=require("lodash-es");var M4=require("lodash-es");var W3=[{family:"monospace",label:"Monospace",fallback:"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"serif",label:"Serif",fallback:"Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"sans-serif",label:"Sans-serif",fallback:"BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"Abel",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Abril Fatface",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Alegreya",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Alegreya Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Amiri",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Anonymous Pro",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Arapey",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1}]},{family:"Archivo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Archivo Narrow",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Arimo",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Armata",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Arvo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Asap",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Assistant",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:600},{wght:700},{wght:800}]},{family:"Asul",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Bio Rhyme",fallback:"serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:700},{wght:800}]},{family:"Bitter",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Cabin",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Cardo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Catamaran",fallback:"serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Chivo",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Cormorant",fallback:"serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Crimson Text",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"DM Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Domine",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Dosis",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Eczar",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Fira Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Fjalla One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Glegoo",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"IBM Plex Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Inconsolata",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Inknut Antiqua",fallback:"serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Inter",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Josefin Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Josefin Slab",fallback:"serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Kalam",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"Karla",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Kreon",fallback:"serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"Lato",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Libre Baskerville",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Libre Franklin",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Lobster",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Lobster Two",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Lora",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Maven Pro",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Megrim",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Merriweather Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Montserrat",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Mouse Memoirs",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Muli",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Neuton",fallback:"serif",axes:["wght","ital"],variants:[{wght:200},{wght:300},{wght:400},{wght:400,ital:1},{wght:700},{wght:800}]},{family:"News Cycle",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Newsreader",fallback:"serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Nobile",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Noticia Text",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Noto Serif",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Nunito",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Nunito Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Old Standard TT",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Open Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Open Sans Condensed",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:700}]},{family:"Oswald",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700}]},{family:"Ovo",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Oxygen",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"PT Mono",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"PT Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"PT Sans Narrow",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"PT Serif",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Pacifico",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Playball",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Playfair Display",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Poppins",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Prata",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Prompt",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Proza Libre",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Quantico",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Quattrocento",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Quattrocento Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Questrial",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Quicksand",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700}]},{family:"Rajdhani",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:600},{wght:700}]},{family:"Raleway",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Righteous",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Roboto",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Roboto Condensed",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Roboto Mono",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Roboto Slab",fallback:"serif",axes:["wght"],variants:[{wght:100},{wght:300},{wght:400},{wght:700}]},{family:"Rubik",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Shadows Into Light",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Slabo 13px",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Smooch",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Source Code Pro",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]},{family:"Source Sans Pro",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Space Mono",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Syne",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Tenor Sans",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Tinos",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Titillium Web",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900}]},{family:"Ubuntu",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Unica One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Unna",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Varela",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Varela Round",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Vidaloka",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Volkhov",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Vollkorn",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Work Sans",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"BIZ UDPMincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Dela Gothic One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Hina Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Kaisei Decol",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700}]},{family:"Kaisei Opti",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700}]},{family:"Kaisei Tokumin",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700},{wght:800}]},{family:"M PLUS 1",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"M PLUS Rounded 1c",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:300},{wght:400},{wght:500},{wght:700},{wght:800},{wght:900}]},{family:"Mochiy Pop P One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Murecho",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Noto Sans Japanese",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Noto Serif Japanese",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]},{family:"Shippori Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Zen Kaku Gothic New",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Zen Kurenaido",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Zen Maru Gothic",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Zen Old Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]}],R1=W3.filter(n=>n.system).map(n=>n.family);var D=class n{id="";family="sans-serif";weight=400;style="normal";fallback_families="sans-serif";system=!0;variant={wght:400};variants=[];definition;constructor(e){let t,i,r,o;typeof e=="string"?{family:t,style:i,weight:r,variant:o}=n.stringToSetting(e):e&&({family:t,style:i,weight:r,variant:o}=n.resolveSetting(e)),t&&(this.id=typeof e=="string"?e:n.settingToString({family:t,weight:r,style:i,variant:o}),this.family=t,this.style=i||"normal",r&&(this.weight=r),o&&(this.variant=o),this.definition=n.findByFamily(t),this.definition&&(this.fallback_families=this.definition.fallback,this.system=this.definition.system||!1))}static get(e){return b2(e)?e:new n(e)}static clone(e){return b2(e)?new n(n.get(e).toString()):new n(e)}static findByFamily(e){return e?W3.find(t=>t.family.toLowerCase()===e.toLowerCase()):void 0}static stringToSetting(e){let[t,i]=e.split(":"),[r,o]=i?.toLowerCase().split("@")||[],a=r?.split(",")||[],s=o?.split(",")||[],l=Number.parseInt(s[a.indexOf("wght")],10);return{family:t,weight:l,style:a.includes("ital")?"italic":a.includes("slnt")?"oblique":"normal",variant:{wght:l,wdth:a.includes("wdth")?Number.parseInt(s[a.indexOf("wdth")],10):void 0,slnt:a.includes("slnt")?Number.parseInt(s[a.indexOf("slnt")],10):void 0,opsz:a.includes("opsz")?Number.parseInt(s[a.indexOf("opsz")],10):void 0,ital:a.includes("ital")?Number.parseInt(s[a.indexOf("ital")],10):void 0}}}static settingToString(e){let{family:t,variant:i}=n.resolveSetting(e);return`${t}:${n.variantToString(i)}`}static variantToString(e){let t=[],i=[];e.ital!==void 0&&(t.push("ital"),i.push(e.ital||0)),e.opsz!==void 0&&(t.push("opsz"),i.push(e.opsz||0)),e.slnt!==void 0&&(t.push("slnt"),i.push(e.slnt||0)),e.wdth!==void 0&&(t.push("wdth"),i.push(e.wdth||0)),t.push("wght"),i.push(e.wght);let r=t.join(","),o=i.join(",");return`${r}@${o}`}static resolveSetting(e){let{family:t,style:i,weight:r,variant:o}=e,a=n.findByFamily(t),s=typeof o?.wdth=="number"?o.wdth:void 0,l=typeof o?.ital=="number"?o.ital:i==="italic"?a?.variants.find(h=>h.ital&&h.ital>0)?.ital:void 0,d=typeof o?.opsz=="number"?o.opsz:void 0,u=typeof o?.slnt=="number"?o.slnt:i==="oblique"?a?.variants.find(h=>h.slnt&&h.slnt>0)?.slnt:void 0;return{family:t,weight:r||o?.wght,style:l!==void 0?"italic":u!==void 0?"oblique":"normal",variant:{wght:r||o?.wght,wdth:s,slnt:u,opsz:d,ital:l}}}static combinedGoogleFontUrl(e){let t=e.map(r=>n.get(r)),i=[];for(let r of t){let o=r.googleFamily();i.includes(o)||i.push(o)}return`https://fonts.googleapis.com/css2?family=${i.join("&family=")}&display=swap`}toString(){return this.id}googleFamily(){if(this.definition){let e=this.definition.axes.sort(),t=this.definition.variants.map(i=>e.map(r=>i[r]||0).join(",")).sort();return`${this.family}:${e.join(",")}@${t.join(";")}`}return""}url(){return`https://fonts.googleapis.com/css2?family=${this.googleFamily()}&display=swap`}face(e={}){return`
1
+ "use strict";var Lt=Object.create;var W3=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var At=Object.getOwnPropertyNames;var Tt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var S2=(n,e)=>{for(var t in e)W3(n,t,{get:e[t],enumerable:!0})},k2=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of At(e))!_t.call(n,r)&&r!==t&&W3(n,r,{get:()=>e[r],enumerable:!(i=bt(e,r))||i.enumerable});return n};var i3=(n,e,t)=>(t=n!=null?Lt(Tt(n)):{},k2(e||!n||!n.__esModule?W3(t,"default",{value:n,enumerable:!0}):t,n)),Mt=n=>k2(W3({},"__esModule",{value:!0}),n);var I6={};S2(I6,{DEFAULT_QUERY_PAGE_LIMIT:()=>s2,DeferredShopifyResource:()=>z,FILE_DATA_INCLUDE_QUERY:()=>i4,GEO_DATA:()=>B4,LANG_TO_COUNTRY_CODES:()=>G4,LiquidSwell:()=>x3,MAX_QUERY_PAGE_LIMIT:()=>o2,MockRecordResource:()=>g2,MockRecordSingleton:()=>f2,PageError:()=>N3,PageNotFound:()=>F3,SECTION_GROUP_CONTENT:()=>H3,ShopifyArticle:()=>b3,ShopifyBlog:()=>p4,ShopifyCart:()=>w3,ShopifyCollection:()=>A3,ShopifyCollections:()=>f4,ShopifyCompatibility:()=>k3,ShopifyCustomer:()=>J,ShopifyFont:()=>T3,ShopifyForm:()=>G3,ShopifyLink:()=>_3,ShopifyLocalization:()=>M3,ShopifyOrder:()=>a3,ShopifyPage:()=>k4,ShopifyPaginate:()=>S3,ShopifyPredictiveSearch:()=>y4,ShopifyProduct:()=>P,ShopifyRecommendations:()=>S4,ShopifyResource:()=>y,ShopifySearch:()=>L4,ShopifyVariant:()=>V,StorefrontResource:()=>T,Swell:()=>c2,SwellBackendAPI:()=>P4,SwellError:()=>U3,SwellStorefrontCollection:()=>b,SwellStorefrontPagination:()=>v3,SwellStorefrontRecord:()=>_,SwellStorefrontResource:()=>E3,SwellStorefrontSingleton:()=>X,SwellTheme:()=>W5,ThemeColor:()=>S,ThemeFont:()=>D,ThemeForm:()=>K,ThemeFormErrors:()=>Q3,adaptShopifyFontData:()=>A4,adaptShopifyFormData:()=>T4,adaptShopifyMenuData:()=>b4,arrayToObject:()=>K5,deferMenuItemUrlAndResource:()=>h3,dehydrateSwellRefsInStorefrontResources:()=>et,extractSettingsFromForm:()=>L3,findCircularReferences:()=>t6,findEditorSetting:()=>Y5,findThemeSettingsByType:()=>J5,fontMap:()=>Y3,forEachKeyDeep:()=>h2,getAllSections:()=>Q5,getBlog:()=>w6,getBlogs:()=>f6,getCategories:()=>m6,getCategory:()=>dt,getCategoryWithProducts:()=>C6,getContentEntry:()=>m2,getContentList:()=>ct,getContentModel:()=>p6,getCountryCodeFromLocale:()=>e6,getEasyblocksBackend:()=>yt,getEasyblocksComponentDefinitions:()=>j6,getEasyblocksPagePropsWithConfigs:()=>x6,getEasyblocksPageTemplate:()=>wt,getEasyblocksPropsFromThemeConfigs:()=>b6,getLayoutSectionGroups:()=>X5,getMenuItemStorefrontUrl:()=>d3,getMenuItemUrlAndResource:()=>Ne,getMenuItemValueId:()=>Ze,getPage:()=>g6,getPageSections:()=>m4,getProduct:()=>c6,getProducts:()=>u2,getProductsFiltered:()=>u6,getSectionGroupProp:()=>c3,getSectionSettingsFromProps:()=>gt,getThemeSettingsFromProps:()=>pt,isArray:()=>X1,isObject:()=>e3,md5:()=>l3,removeCircularReferences:()=>i6,resolveAsyncResources:()=>I,resolveLookupCollection:()=>Ie,resolveMenuItemUrlAndResource:()=>xe,resolveMenuItems:()=>U5,resolveMenuSettings:()=>O5,resolveSectionSettings:()=>u4,resolveThemeSettings:()=>I3,scopeCustomCSS:()=>e2,stringifyQueryParams:()=>O,systemFonts:()=>Et,toBase64:()=>l2});module.exports=Mt(I6);var lt=i3(require("swell-js"),1),ht=i3(require("qs"),1);var d2=require("keyv"),it=require("cache-manager");var J3=class{namespace;store;constructor(e){this.store=e,this.namespace="dummy"}async has(e){return this.get(e)!==void 0}async get(e){return this.store.get(e)}async set(e,t){return this.store.put(e,t)}async delete(e){await this.store.delete(e)}async clear(){let e="",t=!1;for(;!t;){let i=await this.store.list({prefix:`${this.namespace}:`,cursor:e||void 0});e=i.cursor??"",t=i.list_complete,i.keys.length>0&&await Promise.all(i.keys.map(r=>this.store.delete(r.name)))}}};var Xe=i3(require("qs"),1),E4=require("lodash-es");var a2=require("lodash-es");var M4=require("lodash-es");var Y3=[{family:"monospace",label:"Monospace",fallback:"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"serif",label:"Serif",fallback:"Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"sans-serif",label:"Sans-serif",fallback:"BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600,ital:1}],system:!0},{family:"Abel",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Abril Fatface",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Alegreya",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Alegreya Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Amiri",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Anonymous Pro",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Arapey",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1}]},{family:"Archivo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Archivo Narrow",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Arimo",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Armata",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Arvo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Asap",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Assistant",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:600},{wght:700},{wght:800}]},{family:"Asul",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Bio Rhyme",fallback:"serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:700},{wght:800}]},{family:"Bitter",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Cabin",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Cardo",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Catamaran",fallback:"serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Chivo",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Cormorant",fallback:"serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Crimson Text",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"DM Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Domine",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Dosis",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Eczar",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Fira Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Fjalla One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Glegoo",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"IBM Plex Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Inconsolata",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Inknut Antiqua",fallback:"serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Inter",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Josefin Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Josefin Slab",fallback:"serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Kalam",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"Karla",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Kreon",fallback:"serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"Lato",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Libre Baskerville",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Libre Franklin",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Lobster",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Lobster Two",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Lora",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Maven Pro",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Megrim",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Merriweather Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Montserrat",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Mouse Memoirs",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Muli",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Neuton",fallback:"serif",axes:["wght","ital"],variants:[{wght:200},{wght:300},{wght:400},{wght:400,ital:1},{wght:700},{wght:800}]},{family:"News Cycle",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Newsreader",fallback:"serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Nobile",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Noticia Text",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Noto Serif",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Nunito",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Nunito Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Old Standard TT",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700}]},{family:"Open Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Open Sans Condensed",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:700}]},{family:"Oswald",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700}]},{family:"Ovo",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Oxygen",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:700}]},{family:"PT Mono",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"PT Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"PT Sans Narrow",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"PT Serif",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Pacifico",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Playball",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Playfair Display",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Poppins",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Prata",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Prompt",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Proza Libre",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1}]},{family:"Quantico",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Quattrocento",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Quattrocento Sans",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Questrial",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Quicksand",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700}]},{family:"Rajdhani",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:600},{wght:700}]},{family:"Raleway",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:800},{wght:800,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Righteous",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Roboto",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Roboto Condensed",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Roboto Mono",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:100},{wght:100,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Roboto Slab",fallback:"serif",axes:["wght"],variants:[{wght:100},{wght:300},{wght:400},{wght:700}]},{family:"Rubik",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Shadows Into Light",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Slabo 13px",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Smooch",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Source Code Pro",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]},{family:"Source Sans Pro",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Space Mono",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Syne",fallback:"sans-serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Tenor Sans",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Tinos",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Titillium Web",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:200},{wght:200,ital:1},{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900}]},{family:"Ubuntu",fallback:"sans-serif",axes:["wght","ital"],variants:[{wght:300},{wght:300,ital:1},{wght:400},{wght:400,ital:1},{wght:500},{wght:500,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Unica One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Unna",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Varela",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Varela Round",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Vidaloka",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Volkhov",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:700},{wght:700,ital:1}]},{family:"Vollkorn",fallback:"serif",axes:["wght","ital"],variants:[{wght:400},{wght:400,ital:1},{wght:600},{wght:600,ital:1},{wght:700},{wght:700,ital:1},{wght:900},{wght:900,ital:1}]},{family:"Work Sans",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"BIZ UDPMincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:700}]},{family:"Dela Gothic One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Hina Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400}]},{family:"Kaisei Decol",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700}]},{family:"Kaisei Opti",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700}]},{family:"Kaisei Tokumin",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:700},{wght:800}]},{family:"M PLUS 1",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"M PLUS Rounded 1c",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:300},{wght:400},{wght:500},{wght:700},{wght:800},{wght:900}]},{family:"Mochiy Pop P One",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Murecho",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Noto Sans Japanese",fallback:"sans-serif",axes:["wght"],variants:[{wght:100},{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:800},{wght:900}]},{family:"Noto Serif Japanese",fallback:"sans-serif",axes:["wght"],variants:[{wght:200},{wght:300},{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]},{family:"Shippori Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:800}]},{family:"Zen Kaku Gothic New",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Zen Kurenaido",fallback:"sans-serif",axes:["wght"],variants:[{wght:400}]},{family:"Zen Maru Gothic",fallback:"sans-serif",axes:["wght"],variants:[{wght:300},{wght:400},{wght:500},{wght:700},{wght:900}]},{family:"Zen Old Mincho",fallback:"serif",axes:["wght"],variants:[{wght:400},{wght:500},{wght:600},{wght:700},{wght:900}]}],Et=Y3.filter(n=>n.system).map(n=>n.family);var D=class n{id="";family="sans-serif";weight=400;style="normal";fallback_families="sans-serif";system=!0;variant={wght:400};variants=[];definition;constructor(e){let t,i,r,a;typeof e=="string"?{family:t,style:i,weight:r,variant:a}=n.stringToSetting(e):e&&({family:t,style:i,weight:r,variant:a}=n.resolveSetting(e)),t&&(this.id=typeof e=="string"?e:n.settingToString({family:t,weight:r,style:i,variant:a}),this.family=t,this.style=i||"normal",r&&(this.weight=r),a&&(this.variant=a),this.definition=n.findByFamily(t),this.definition&&(this.fallback_families=this.definition.fallback,this.system=this.definition.system||!1))}static get(e){return L2(e)?e:new n(e)}static clone(e){return L2(e)?new n(n.get(e).toString()):new n(e)}static findByFamily(e){return e?Y3.find(t=>t.family.toLowerCase()===e.toLowerCase()):void 0}static stringToSetting(e){let[t,i]=e.split(":"),[r,a]=i?.toLowerCase().split("@")||[],o=r?.split(",")||[],s=a?.split(",")||[],l=Number.parseInt(s[o.indexOf("wght")],10);return{family:t,weight:l,style:o.includes("ital")?"italic":o.includes("slnt")?"oblique":"normal",variant:{wght:l,wdth:o.includes("wdth")?Number.parseInt(s[o.indexOf("wdth")],10):void 0,slnt:o.includes("slnt")?Number.parseInt(s[o.indexOf("slnt")],10):void 0,opsz:o.includes("opsz")?Number.parseInt(s[o.indexOf("opsz")],10):void 0,ital:o.includes("ital")?Number.parseInt(s[o.indexOf("ital")],10):void 0}}}static settingToString(e){let{family:t,variant:i}=n.resolveSetting(e);return`${t}:${n.variantToString(i)}`}static variantToString(e){let t=[],i=[];e.ital!==void 0&&(t.push("ital"),i.push(e.ital||0)),e.opsz!==void 0&&(t.push("opsz"),i.push(e.opsz||0)),e.slnt!==void 0&&(t.push("slnt"),i.push(e.slnt||0)),e.wdth!==void 0&&(t.push("wdth"),i.push(e.wdth||0)),t.push("wght"),i.push(e.wght);let r=t.join(","),a=i.join(",");return`${r}@${a}`}static resolveSetting(e){let{family:t,style:i,weight:r,variant:a}=e,o=n.findByFamily(t),s=typeof a?.wdth=="number"?a.wdth:void 0,l=typeof a?.ital=="number"?a.ital:i==="italic"?o?.variants.find(h=>h.ital&&h.ital>0)?.ital:void 0,c=typeof a?.opsz=="number"?a.opsz:void 0,u=typeof a?.slnt=="number"?a.slnt:i==="oblique"?o?.variants.find(h=>h.slnt&&h.slnt>0)?.slnt:void 0;return{family:t,weight:r||a?.wght,style:l!==void 0?"italic":u!==void 0?"oblique":"normal",variant:{wght:r||a?.wght,wdth:s,slnt:u,opsz:c,ital:l}}}static combinedGoogleFontUrl(e){let t=e.map(r=>n.get(r)),i=[];for(let r of t){let a=r.googleFamily();i.includes(a)||i.push(a)}return`https://fonts.googleapis.com/css2?family=${i.join("&family=")}&display=swap`}toString(){return this.id}googleFamily(){if(this.definition){let e=this.definition.axes.sort(),t=this.definition.variants.map(i=>e.map(r=>i[r]||0).join(",")).sort();return`${this.family}:${e.join(",")}@${t.join(";")}`}return""}url(){return`https://fonts.googleapis.com/css2?family=${this.googleFamily()}&display=swap`}face(e={}){return`
2
2
  @font-face {
3
3
  font-family: '${this.family}';
4
4
  font-style: ${this.style};
5
5
  font-weight: ${this.weight};${e.font_display?`
6
6
  font-display: ${e.font_display};`:""}
7
7
  }
8
- `.replace(/^ {3} */gm,"").trim()}modify(e,t){switch(e){case"style":{if(this.resolveValidProperty(e,t)){switch(this.style=t,t){case"oblique":this.variant.slnt=1;break;case"italic":this.variant.ital=1;break;default:this.variant.slnt=0,this.variant.ital=0;break}break}return null}case"weight":{let i;switch(t){case"normal":i=400;break;case"bold":i=700;break;case"lighter":{this.weight<=400?i=100:this.weight<=700?i=400:i=700;break}case"bolder":{this.weight<400?i=400:this.weight<700?i=700:i=900;break}default:{switch(t.slice(0,1)){case"+":i=this.weight+Number.parseInt(t.slice(1),10);break;case"-":i=this.weight-Number.parseInt(t.slice(1),10);break;default:i=Number.parseInt(t,10);break}break}}let r=this.resolveValidProperty(e,i);if(r){this.weight=i,this.variant.wght=r;break}return null}case"wght":case"wdth":case"slnt":case"opsz":case"ital":{let i=this.resolveValidProperty(e,t);if(i){this.variant[e]=i,e==="slnt"&&i>0?this.style="oblique":e==="ital"&&i>0?this.style="italic":(e==="slnt"||e==="ital")&&(this.style="normal");break}return null}default:throw new Error(`Invalid font property: ${e}`)}return this.id=n.settingToString({variant:this.variant,family:this.family,weight:this.weight,style:this.style}),this}resolveValidProperty(e,t){if(!this.definition)return null;if(e==="style")switch(t){case"italic":return this.definition.axes.includes("ital")?"italic":null;case"oblique":return this.definition.axes.includes("slnt")?"oblique":null;default:return null}let i=typeof t=="string"?Number.parseInt(t,10):t;switch(e){case"wght":case"weight":return this.definition.variants.find(r=>r.wght===i)||null;case"wdth":return this.definition.variants.find(r=>r.wdth===i)||null;case"slnt":return this.definition.variants.find(r=>r.slnt===i)||null;case"opsz":return this.definition.variants.find(r=>r.opsz===i)||null;case"ital":return this.definition.variants.find(r=>r.ital===i)||null;default:return null}}};function j1(n){return typeof n=="object"&&n!==null}function b2(n){return j1(n)&&typeof n.style=="string"&&typeof n.family=="string"&&typeof n.weight=="number"&&typeof n.modify=="function"&&typeof n.googleFamily=="function"}var O=class{id;success=!1;errors=null;constructor(e){this.id=e}setSuccess(e=!0){this.success=e}setParams(e){Object.assign(this,e)}setErrors(e){this.errors=new J3(e)}clearErrors(){this.errors=null}},J3=class{errors;constructor(e){this.errors=e||[]}*[Symbol.iterator](){yield*this.errors}some(e,t){return this.errors.some(i=>e(i?.code),t)}};var b=require("lodash-es");var t4=require("lodash-es");var n9=require("liquidjs");var Z1=Object.prototype.toString,a9=Object.hasOwnProperty,Y3=class{liquidMethodMissing(e){}},u3=class extends Y3{i;length;name;test="test";index;index0;first;last;rindex;rindex0;constructor(e,t,i){super(),this.length=e,this.name=`${i}-${t}`,this.i=0,this.index=1,this.index0=0,this.first=!0,this.last=!1,this.rindex=e,this.rindex0=e-1}next(){this.i++,this.index++,this.index0++,this.first=!1,this.last=this.i===this.length-1,this.rindex--,this.rindex0--}valueOf(){return JSON.stringify(this)}};function B(n){return n instanceof Y3&&Q3(n.valueOf)?n.valueOf():n}function T2(n){return typeof n=="string"}function j4(n){return typeof n=="number"}function Q3(n){return typeof n=="function"}function _2(n){return n==null}function i3(n){return Z1.call(n)==="[object Array]"}function x(n){let e=typeof n;return n!==null&&(e==="object"||e==="function")}function N1(n){return x(n)&&Symbol.iterator in n}function v(n){return x(n)&&typeof n.then=="function"}function M2(n,e){return!F1(n,e)}function F1(n,e){return e.opts.jsTruthy?!n:n===!1||n===void 0||n===null}function P3(n){return x(n)&&Q3(n.equals)}function E2(n){return _2(n)?[]:i3(n)?n:[n]}function X3(n){return n=B(n),i3(n)?n:T2(n)&&n.length>0?[n]:N1(n)?Array.from(n):x(n)?Object.entries(n).reduce((e,[t,i])=>(e.push({id:t,...i}),e),[]):[]}function Z4(n){return n=B(n),T2(n)?n:_2(n)?"":i3(n)?n.map(e=>Z4(e)).join(""):String(n)}function j(n){if(Array.isArray(n))return n.reduce((e,t,i)=>{if(Array.isArray(t)){let[r,o]=t;e[r]=o}else i%2===0&&(e[t]=n[i+1]);return e},{});if(x(n)){let e={},t=Object.values(n);for(let i=0;i<t.length;i+=2)e[t[i]]=t[i+1];return e}return{}}async function e4(n,e=0){let t=n;t instanceof T&&(t=await t.resolve()),await P2(t);let i=[];return JSON.stringify(t,(r,o)=>{if(typeof o=="object"&&o!==null){if(i.includes(o))return;i.push(o)}return o},e)}async function P2(n,e=new WeakSet){await v2(n,async(t,i)=>{if(!x(i))return;let r=i[t];if(v(r))i[t]=await r,await P2(i[t],e);else if(typeof r=="object"&&r!==null){if(e.has(r))return!1;e.add(r)}})}async function v2(n,e){if(!(typeof n!="object"||n===null)){for(let t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&await e(t,n)!==!1){let r=n[t];typeof r=="object"&&r!==null&&await v2(r,e)}}}var y=class n{props;stringProp;linkProps;constructor(e,t,i){return this.props=e,this.stringProp=t,this.linkProps=i,new Proxy(e,{get(r,o){let a=r;switch(o){case"toJSON":return e;case"clone":return()=>new n((0,t4.cloneDeep)(e),(0,t4.cloneDeep)(t),(0,t4.cloneDeep)(i));case"toString":{if(t)return()=>e[t];break}default:break}return a[o]instanceof U?a[o].resolve().then(s=>(a[o]=s,s)).catch(s=>(console.log(s),a[o]=null,null)):a[o]},getPrototypeOf(){return n.prototype}})}valueOf(){return this.stringProp?this.props[this.stringProp]:this}clone(){return new n({})}},U=class{handler;result;constructor(e){this.handler=e}async resolve(){return this.result===void 0&&(this.result=Promise.resolve().then(()=>this.handler()).then(e=>(this.result=e!==void 0?e:null,e))),this.result}};function w(n){return new U(n)}function I1(n){return x(n)&&(v(n)||typeof n._resolve=="function")}function D2(n){return x(n)&&typeof n._resolve=="function"}async function H1(n){return Array.isArray(n)?Promise.all(n.map(e=>D2(e)?e._resolve():e)):D2(n)?n._resolve():n}async function x2(n,e){return H1(n).then(t=>Array.isArray(n)&&Array.isArray(t)?e(...t.map(i=>i||{})):I1(t)?x2(t,e):e(t||{})).catch(t=>(console.log(t),null))}function c(n,e){return new U(()=>x2(n,e))}function N4(n,e,t,i,r){return c(e,o=>o[t]?._cloneWithCompatibilityResult(a=>({results:a?.results?.map(s=>{let l=i(n,s);return r&&r(l,s),l})}))||[])}function F4(n,e){return new y({directory:e.path,name:e.name,suffix:e.alt_name},"name")}function Z(n,e,t,i){return e instanceof y?e.clone():new y({alt:c(e,r=>r.alt||t?.name),aspect_ratio:1,"attached_to_variant?":!0,height:w(()=>e.height),id:c(e,r=>r.file?.id),media_type:"image",position:null,presentation:{focal_point:null},preview_image:w(()=>e.file),product_id:w(()=>t?.id),src:c(e,async r=>r.file&&B1(r.file)),variants:null,width:w(()=>e.width)})}function B1(n){return new y({url:n.url,width:n.width,height:n.height},"url")}function $(n,e){return e instanceof y?e.clone():new y({alt:e.alt,id:e.id||e.file?.id,media_type:"image",position:null,preview_image:e.file})}function G(n,e,t,i=0){if(e instanceof y)return e.clone();let r=t||e.product||{};return new y({available:c(e,o=>o.stock_status==="in_stock"||!o.stock_status),barcode:null,compare_at_price:w(()=>e.orig_price),featured_image:c([r,e],(o,a)=>{let s=a.images?.[0]||o.images?.[0];return s&&$(n,s)}),featured_media:c([r,e],(o,a)=>{let s=a.images?.[0]||o.images?.[0];return s&&$(n,s)}),id:c(e,o=>o.id),image:c([r,e],(o,a)=>{let s=a.images?.[0]||o.images?.[0];return s&&$(n,s)}),incoming:!1,inventory_management:null,inventory_policy:null,matched:!1,metafields:null,next_incoming_date:null,options:G1(r,e),option1:I4(r,e,0),option2:I4(r,e,1),option3:I4(r,e,2),price:w(()=>e.price!==null&&e.price!==void 0?e.price:r.price),product:c(r,o=>P(n,o,i+1)),quantity_price_breaks:null,"quantity_price_breaks_configured?":c(e,()=>e.prices?.length>0),quantity_rule:{min:1,max:null,increment:1},requires_selling_plan:!1,requires_shipping:c(r,()=>r.delivery?.contains("shipment")),selected:!1,selected_selling_plan_allocation:null,selling_plan_allocations:null,sku:c(e,o=>o.sku),store_availabilities:null,taxable:!0,title:w(()=>e.name),unit_price:w(()=>e.price),unit_price_measurement:null,url:w(()=>r.url),weight:c(e,o=>o.weight),weight_in_unit:w(()=>e.weight_unit),weight_unit:c(e,o=>o.weight_unit)})}function G1(n,e){return c([n,e],(t,i)=>{let r=t.options?.reduce((o,a)=>{for(let s of a.values)o[s.id]||(o[s.id]=s.name);return o},{});return i.option_value_ids?.map(o=>r[o])})}function I4(n,e,t){return c([n,e],(i,r)=>{let o=i.options?.reduce((a,s)=>{for(let l of s.values)a[l.id]||(a[l.id]=l.name);return a},{});return r.option_value_ids?.[t]&&o[r.option_value_ids[t]]})}function P(n,e,t=0){return e instanceof y?e.clone():t>1?null:new y({available:c(e,i=>i.stock_status==="in_stock"||!i.stock_status),collections:[],compare_at_price:w(()=>e.orig_price),compare_at_price_max:null,compare_at_price_min:null,compare_at_price_varies:!1,content:w(()=>e.description),created_at:w(()=>e.date_created),description:c(e,i=>i.description),featured_image:c(e,i=>i.images?.[0]&&Z(n,i.images[0],i)),featured_media:c(e,i=>i.images?.[0]&&$(n,i.images[0])),first_available_variant:c(e,i=>H4(i,{})),"gift_card?":c(e,i=>i.type==="giftcard"),handle:w(()=>e.slug),has_only_default_variant:c(e,i=>!i.options?.length),id:c(e,i=>i.id),images:c(e,i=>i.images?.map(r=>r&&Z(n,r,i))),media:c(e,i=>i.images?.map(r=>$(n,r))),metafields:null,options:c(e,i=>i.options?.map(r=>r.active&&r.name).filter(Boolean)),options_by_name:c(e,i=>i.options?.reduce((r,o,a)=>(o.active&&(r[o.name?.toLowerCase()]={name:o.name,position:a+1,selected_value:null,values:o.values?.map(s=>R2({available:!0,id:s.id,name:s.name,product_url:null,selected:!1,swatch:null,variant:null}))}),r),{})),options_with_values:c(e,i=>{let o=H4(i,n.swell.queryParams)?.option_value_ids||[];return i.options?.map((a,s)=>({name:a.name,position:s+1,selected_value:null,values:a.values?.map(l=>R2({available:!0,id:l.id,name:l.name,product_url:null,selected:o.includes(l.id),swatch:null,variant:null}))}))}),price:c(e,i=>i.price),price_max:c(e,i=>i.variants?.results?.reduce((r,o)=>Math.max(r,o.price),0)),price_min:c(e,i=>i.variants?.results?.reduce((r,o)=>Math.min(r,o.price),1/0)),price_varies:c(e,i=>i.variants?.results?.some(r=>r.price!==i.price)),published_at:w(()=>e.date_created),"quantity_price_breaks_configured?":c(e,i=>i.prices?.length>0),quantity_rule:{min:1,max:null,increment:1},requires_selling_plan:!1,selected_or_first_available_selling_plan_allocation:null,selected_or_first_available_variant:c(e,i=>{let r=H4(i,n.swell.queryParams);return r?G(n,r,i,t+1):P(n,i,t+1)}),selected_selling_plan:null,selected_variant:null,selling_plan_groups:null,tags:c(e,i=>i.tags),template_suffix:null,title:w(()=>e.name),type:c(e,i=>i.type),url:c(e,i=>`/products/${i.slug}`),variants:c(e,i=>i.variants?.results?.map(o=>G(n,o,i,t+1)).reverse()),vendor:null})}function R2(n){return new y(n,"name")}function H4(n,e){let{variant:t,option_values:i}=e,r=q1(n),o=null;if(t)o=r.find(a=>a.id===t);else if(i){let a=i.split(",");o=r.find(s=>s.option_value_ids.every(l=>a.includes(l)))}return o||r?.[0]||null}function q1(n){return(n.variants?.results?.slice()?.reverse()||[]).filter(e=>e.stock_status==="in_stock"||!e.stock_status)}function C3(n,e,t,i={}){return new y({...e,discount_allocations:e.discounts?.map(r=>{let o=t.discounts?.find(s=>s.id===r.id),a=(o?.source_id===t.coupon_id?t.coupon?.name:t.promotions?.results?.find(s=>o?.source_id===s.id)?.name)||o?.source_id;return[{amount:r.amount,discount_application:o&&{target_selection:o.type==="order"?"all":["shipment","product"].includes(o.type)?"entitled":"explicit",target_type:o.type==="shipment"?"shipping_line":"line_item",title:a,total_allocated_amount:o.amount,type:o.type==="promo"?"automatic":o.type==="coupon"?"discount_code":"manual",value:o.rule?.value_type==="fixed"?o.rule?.value_fixed:o.rule?.value_percent,value_type:o.rule?.value_type==="fixed"?"fixed_amount":"percentage"}}]}),error_message:null,final_line_price:e.price_total-e.discount_total,final_price:e.price-e.discount_each,fulfillment_service:"manual",gift_card:e.delivery==="giftcard",grams:e.shipment_weight,id:e.id,image:c([e.product,e.variant],(r,o)=>r?.images?.[0]&&Z(n,r.images?.[0],r,o)),item_components:e.bundle_items?.map(r=>C3(n,r,t,{...i,bundle:!0})),key:e.id,line_level_discount_allocations:[],line_level_total_discount:e.discount_total,message:null,options_with_values:e.options,original_line_price:e.price*e.quantity,original_price:e.price,product:c(e.product,()=>e.product&&P(n,e.product)),product_id:e.product_id,properties:e.metadata,quantity:e.quantity,requires_shipping:e.delivery==="shipment",selling_plan_allocation:null,sku:c(e.product,r=>r.sku),successfully_fulfilled_quantity:e.quantity_delivered,tax_lines:e.taxes?.map(r=>{let o=t.taxes?.find(a=>a.id===r.id);return{price:r.amount,rate:(o?.rate||0)/100,rate_percentage:o?.rate||0,title:r.name}}),taxable:e.tax_total>0,title:c([e.product,e.variant],(r,o)=>`${r?.name||e.product_id}${o?.name?` - ${o.name}`:""}`),url:c(e.product,r=>`/products/${r.slug}`),url_to_remove:null,variant:c([e.product,e.variant],()=>e.variant?G(n,e.variant,e.product):P(n,e.product)),vendor:null,discounts:null,line_price:e.price_total,price:e.price,total_discount:e.discount_total})}function i4(n,e="quantity"){return n?.reduce((t,i)=>t+i[e],0)||0}function m3(n,e){return e instanceof y?e.clone():new y({attributes:w(()=>e.metadata),cart_level_discount_applications:[],checkout_charge_amount:w(()=>e.grand_total),currency:c(e,t=>t.currency),discount_applications:[],duties_included:w(()=>e.item_tax_included),"empty?":c(e,t=>!t.items?.length),item_count:c(e,t=>i4(t.items)),items:c(e,t=>t.items?.map(i=>C3(n,i,t))),items_subtotal_price:w(()=>e.sub_total),note:w(()=>e.comments),original_total_price:c(e,t=>t.sub_total+t.item_discount),requires_shipping:w(()=>!!e.shipment_delivery),taxes_included:w(()=>!!e.item_tax_included),total_discount:w(()=>e.discount_total),total_price:w(()=>e.grand_total),total_weight:w(()=>e.item_shipment_weight)})}function n3(n,e,t){return e instanceof y?e.clone():new y({address1:c(e,i=>i.address1),address2:c(e,i=>i.address2),city:c(e,i=>i.city),company:c(e,i=>i.company),country:c(e,i=>V1(n,i.country)),country_code:c(e,i=>i.country_code),first_name:c(e,i=>i.first_name||t?.first_name),id:c(e,i=>i.id),last_name:c(e,i=>i.last_name||t?.last_name),name:c(e,i=>i.name||t?.name),phone:c(e,i=>i.phone),province:c(e,i=>i.state),province_code:c(e,i=>String(i.state||"").substring(0,2)),street:c(e,i=>j2(i.address1,i.address2)),summary:c(e,i=>j2(i.name||t?.name,i.company,i.address1,i.address2,i.city,i.state,i.country)),url:c(e,i=>`/account/addresses/${i.id}`),zip:c(e,i=>i.zip)})}function j2(...n){return n.filter(Boolean).join(`
9
- `)}function V1(n,e){return new y({available_languages:[],continent:"",currency:"",iso_code:e,market:null,name:e,"popular?":!0,unit_system:"metric"},"iso_code")}function r3(n,e,t){if(e instanceof y)return e.clone();let i=t||e.account,r=c(e,o=>o.items?.map(a=>C3(n,a,o,{order:!0})));return new y({attributes:w(()=>e.metadata),billing_address:c(e,()=>n3(n,e.billing)),cancelled:w(()=>e.canceled),cancelled_at:w(()=>e.date_canceled),confirmation_number:w(()=>e.number),created_at:w(()=>e.date_created),customer:i&&w(()=>K(n,i)),customer_order_url:c(e,o=>`/account/orders/${o.id}`),customer_url:c(e,o=>`/account/orders/${o.id}`),email:i&&c(i,o=>o.email),financial_status:c(e,o=>Z2(o)),financial_status_label:c(e,o=>O1(o)),fulfillment_status:c(e,o=>N2(o)),fulfillment_status_label:c(e,o=>U1(o)),id:c(e,o=>o.id),item_count:c(e,o=>i4(o.items)),line_items:r,line_items_subtotal_price:w(()=>e.sub_total),name:w(()=>e.number),number:c(e,o=>o.number),note:w(()=>e.comments),phone:i&&c([e,i],(o,a)=>o.billing?.phone||o.shipping.phone||a.phone),shipping_address:c(e,()=>n3(n,e.shipping)),shipping_methods:w(()=>{let o=z1(e);return o&&[o]}),shipping_price:w(()=>e.shipment_total),subtotal_line_items:r,subtotal_price:w(()=>e.sub_total),tags:null,tax_price:w(()=>e.tax_total),total_discounts:w(()=>e.discount_total),total_net_amount:w(()=>e.grand_total),total_price:w(()=>e.grand_total),total_refunded_amount:w(()=>e.refund_total)})}function Z2(n){return K1(n)?"refund_due":n.payment_total>0&&n.payment_total>n.refund_total&&n.payment_total<n.grand_total&&$1(n)>0?"partially_paid":n.refund_total>0&&n.refund_total<n.payment_total?"partially_refunded":n.refund_total>0&&n.refund_total===n.payment_total?"refunded":n.payment_total>0&&n.payment_balance===0?"paid":n.authorized_payment_id&&!n.paid?"authorized":n.grand_total>0?"unpaid":"complete"}function N2(n){return n.canceled?"canceled":n.hold||n.status==="hold"?"on_hold":n.delivered?n.item_quantity_returned>0||n.return_total>0?n.item_quantity_returned===n.item_quantity?"returned":"rartially_returned":"fulfilled":n.item_quantity_delivered>0?"partially_fulfilled":n.item_quantity_deliverable>0?"unfulfilled":"complete"}function O1(n){return F2(Z2(n))}function U1(n){return F2(N2(n))}function F2(n){let e=n.replace(/\_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}function $1(n){return!n.canceled&&n.payment_balance<0?-n.payment_balance:0}function K1(n){if(n.canceled)return n.payment_total-n.refund_total;if(n.payment_balance>0)return n.payment_balance}function z1(n){return n.shipping?.service?new y({id:n.shipping.service,handle:`${n.shipping.service}-${n.shipping.price}`,original_price:n.shipment_price,price:n.shipment_total,tax_lines:[],title:n.shipping.service_name||n.shipping.service}):null}function K(n,e){return e instanceof y?e.clone():new y({accepts_marketing:w(()=>e.email_optin),addresses:N4(n,e,"addresses",n3),addresses_count:c(e.addresses,t=>t.count||0),"b2b?":c(e,()=>e.type==="business"),company_available_locations:[],current_company:null,current_location:null,default_address:c(e,t=>n3(n,t.shipping||t.billing||{},t)),email:c(e,t=>t.email),first_name:c(e,t=>t.first_name),has_account:!0,"has_avatar?":!1,id:c(e,t=>t.id),last_name:c(e,t=>t.last_name),last_order:w(()=>W1(n,e)),name:c(e,t=>t.name),orders:N4(n,e,"orders",r3),orders_count:w(()=>e.order_count),phone:c(e,t=>t.phone||t.shipping?.phone||t.billing?.phone),tags:c(e,t=>t.tags||[t.group]),tax_exempt:w(()=>e.tax_exempt),total_spent:w(()=>e.order_value)})}async function W1(n,e){let t=await e.id,i=await n.swell.getCachedResource(`last-order-${t}`,[],async()=>(await n.swell.storefront.account.listOrders({limit:1}))?.results?.[0]);if(i)return r3(n,i,e)}var n4={url:"/:themes:configs/{id}/file/data",conditions:{file:{$or:[{$and:[{content_type:{$regex:"^(?!image)"}},{content_type:{$regex:"^(?!video)"}}]},{content_type:{$regex:"^image/svg"}}]},$or:[{file_path:{$regex:"^(?!theme/assets/)"}},{file_path:{$regex:".liquid.[a-zA-Z0-9]+$"}},{file_path:{$regex:".(css|js|svg)$"}}]}},B4={countries:[{id:"US",name:"United States",state_label:"State"},{id:"CA",name:"Canada",state_label:"Province"},{id:"AU",name:"Australia",state_label:"State/territory"},{id:"GB",name:"United Kingdom"},{id:"AF",name:"Afghanistan"},{id:"AX",name:"Aland Islands"},{id:"AL",name:"Albania"},{id:"DZ",name:"Algeria",state_label:"Province"},{id:"AD",name:"Andorra"},{id:"AO",name:"Angola"},{id:"AI",name:"Anguilla"},{id:"AG",name:"Antigua And Barbuda"},{id:"AR",name:"Argentina"},{id:"AM",name:"Armenia"},{id:"AW",name:"Aruba"},{id:"AT",name:"Austria"},{id:"AZ",name:"Azerbaijan"},{id:"BS",name:"Bahamas"},{id:"BH",name:"Bahrain"},{id:"BD",name:"Bangladesh"},{id:"BB",name:"Barbados"},{id:"BY",name:"Belarus"},{id:"BE",name:"Belgium"},{id:"BZ",name:"Belize"},{id:"BJ",name:"Benin"},{id:"BM",name:"Bermuda"},{id:"BT",name:"Bhutan"},{id:"BO",name:"Bolivia"},{id:"BA",name:"Bosnia And Herzegovina"},{id:"BW",name:"Botswana"},{id:"BV",name:"Bouvet Island"},{id:"BR",name:"Brazil",state_label:"State"},{id:"IO",name:"British Indian Ocean Territory"},{id:"BN",name:"Brunei"},{id:"BG",name:"Bulgaria"},{id:"BF",name:"Burkina Faso"},{id:"BU",name:"Burma"},{id:"BI",name:"Burundi"},{id:"KH",name:"Cambodia"},{id:"CM",name:"Cameroon"},{id:"CV",name:"Cape Verde"},{id:"KY",name:"Cayman Islands"},{id:"CF",name:"Central African Republic"},{id:"TD",name:"Chad"},{id:"CL",name:"Chile"},{id:"CN",name:"China"},{id:"CX",name:"Christmas Island"},{id:"CC",name:"Cocos (Keeling) Islands"},{id:"CO",name:"Colombia"},{id:"KM",name:"Comoros"},{id:"CG",name:"Congo"},{id:"CD",name:"Congo, The Democratic Republic Of The"},{id:"CK",name:"Cook Islands"},{id:"CR",name:"Costa Rica"},{id:"CI",name:"Cote D'Ivoire"},{id:"HR",name:"Croatia"},{id:"CU",name:"Cuba"},{id:"CY",name:"Cyprus"},{id:"CZ",name:"Czech Republic"},{id:"DK",name:"Denmark"},{id:"DJ",name:"Djibouti"},{id:"DM",name:"Dominica"},{id:"DO",name:"Dominican Republic"},{id:"EC",name:"Ecuador"},{id:"EG",name:"Egypt"},{id:"SV",name:"El Salvador"},{id:"GQ",name:"Equatorial Guinea"},{id:"ER",name:"Eritrea"},{id:"EE",name:"Estonia"},{id:"ET",name:"Ethiopia"},{id:"FK",name:"Falkland Islands (Malvinas)"},{id:"FO",name:"Faroe Islands"},{id:"FJ",name:"Fiji"},{id:"FI",name:"Finland"},{id:"FR",name:"France"},{id:"GF",name:"French Guiana"},{id:"PF",name:"French Polynesia"},{id:"TF",name:"French Southern Territories"},{id:"GA",name:"Gabon"},{id:"GM",name:"Gambia"},{id:"GE",name:"Georgia"},{id:"DE",name:"Germany"},{id:"GH",name:"Ghana"},{id:"GI",name:"Gibraltar"},{id:"GR",name:"Greece"},{id:"GL",name:"Greenland"},{id:"GD",name:"Grenada"},{id:"GP",name:"Guadeloupe"},{id:"GT",name:"Guatemala",state_label:"Department"},{id:"GG",name:"Guernsey"},{id:"GN",name:"Guinea"},{id:"GW",name:"Guinea Bissau"},{id:"GY",name:"Guyana"},{id:"HT",name:"Haiti"},{id:"HM",name:"Heard Island And Mcdonald Islands"},{id:"VA",name:"Holy See (Vatican City State)"},{id:"HN",name:"Honduras"},{id:"HK",name:"Hong Kong"},{id:"HU",name:"Hungary"},{id:"IS",name:"Iceland"},{id:"IN",name:"India",state_label:"State"},{id:"ID",name:"Indonesia"},{id:"IR",name:"Iran, Islamic Republic Of"},{id:"IQ",name:"Iraq"},{id:"IE",name:"Ireland"},{id:"IM",name:"Isle Of Man"},{id:"IL",name:"Israel"},{id:"IT",name:"Italy"},{id:"JM",name:"Jamaica"},{id:"JP",name:"Japan"},{id:"JE",name:"Jersey"},{id:"JO",name:"Jordan"},{id:"KZ",name:"Kazakhstan"},{id:"KE",name:"Kenya"},{id:"KI",name:"Kiribati"},{id:"KP",name:"Korea, North"},{id:"KR",name:"Korea, South"},{id:"KW",name:"Kuwait"},{id:"KG",name:"Kyrgyzstan"},{id:"LA",name:"Laos"},{id:"LV",name:"Latvia"},{id:"LB",name:"Lebanon"},{id:"LS",name:"Lesotho"},{id:"LR",name:"Liberia"},{id:"LY",name:"Libya"},{id:"LI",name:"Liechtenstein"},{id:"LT",name:"Lithuania"},{id:"LU",name:"Luxembourg"},{id:"MO",name:"Macao"},{id:"MK",name:"Macedonia"},{id:"MG",name:"Madagascar"},{id:"MW",name:"Malawi"},{id:"MY",name:"Malaysia",state_label:"State/territory"},{id:"MV",name:"Maldives"},{id:"ML",name:"Mali"},{id:"MT",name:"Malta"},{id:"MQ",name:"Martinique"},{id:"MR",name:"Mauritania"},{id:"MU",name:"Mauritius"},{id:"YT",name:"Mayotte"},{id:"MX",name:"Mexico",state_label:"State"},{id:"MD",name:"Moldova"},{id:"MC",name:"Monaco"},{id:"MN",name:"Mongolia"},{id:"ME",name:"Montenegro"},{id:"MS",name:"Montserrat"},{id:"MA",name:"Morocco"},{id:"MZ",name:"Mozambique"},{id:"MM",name:"Myanmar"},{id:"NA",name:"Namibia"},{id:"NR",name:"Nauru"},{id:"NP",name:"Nepal"},{id:"NL",name:"Netherlands"},{id:"AN",name:"Netherlands Antilles"},{id:"NC",name:"New Caledonia"},{id:"NZ",name:"New Zealand",state_label:"Region"},{id:"NI",name:"Nicaragua"},{id:"NE",name:"Niger"},{id:"NG",name:"Nigeria"},{id:"NU",name:"Niue"},{id:"NF",name:"Norfolk Island"},{id:"NO",name:"Norway"},{id:"OM",name:"Oman"},{id:"PK",name:"Pakistan"},{id:"PS",name:"Palestinian Territory, Occupied"},{id:"PA",name:"Panama"},{id:"PG",name:"Papua New Guinea"},{id:"PY",name:"Paraguay"},{id:"PE",name:"Peru"},{id:"PH",name:"Philippines",state_label:"Region"},{id:"PN",name:"Pitcairn"},{id:"PL",name:"Poland"},{id:"PT",name:"Portugal"},{id:"QA",name:"Qatar"},{id:"RE",name:"Reunion"},{id:"RO",name:"Romania"},{id:"RU",name:"Russia"},{id:"RW",name:"Rwanda"},{id:"BL",name:"Saint Barthelemy"},{id:"SH",name:"Saint Helena"},{id:"KN",name:"Saint Kitts And Nevis"},{id:"LC",name:"Saint Lucia"},{id:"MF",name:"Saint Martin"},{id:"PM",name:"Saint Pierre And Miquelon"},{id:"VC",name:"Saint Vincent"},{id:"WS",name:"Samoa"},{id:"SM",name:"San Marino"},{id:"ST",name:"Sao Tome And Principe"},{id:"SA",name:"Saudi Arabia"},{id:"SN",name:"Senegal"},{id:"RS",name:"Serbia"},{id:"SC",name:"Seychelles"},{id:"SL",name:"Sierra Leone"},{id:"SG",name:"Singapore"},{id:"SK",name:"Slovakia"},{id:"SI",name:"Slovenia"},{id:"SB",name:"Solomon Islands"},{id:"SO",name:"Somalia"},{id:"ZA",name:"South Africa"},{id:"GS",name:"South Georgia And The South Sandwich Islands"},{id:"ES",name:"Spain",state_label:"Province"},{id:"LK",name:"Sri Lanka"},{id:"SD",name:"Sudan"},{id:"SR",name:"Suriname"},{id:"SJ",name:"Svalbard And Jan Mayen"},{id:"SZ",name:"Swaziland"},{id:"SE",name:"Sweden"},{id:"CH",name:"Switzerland"},{id:"SY",name:"Syria"},{id:"TW",name:"Taiwan"},{id:"TJ",name:"Tajikistan"},{id:"TZ",name:"Tanzania"},{id:"TH",name:"Thailand"},{id:"TL",name:"Timor-Leste"},{id:"TG",name:"Togo"},{id:"TK",name:"Tokelau"},{id:"TO",name:"Tonga"},{id:"TT",name:"Trinidad and Tobago"},{id:"TN",name:"Tunisia"},{id:"TR",name:"Turkey"},{id:"TM",name:"Turkmenistan"},{id:"TC",name:"Turks And Caicos Islands"},{id:"TV",name:"Tuvalu"},{id:"UG",name:"Uganda"},{id:"UA",name:"Ukraine"},{id:"AE",name:"United Arab Emirates",state_label:"Emirate"},{id:"UM",name:"United States Minor Outlying Islands"},{id:"UY",name:"Uruguay"},{id:"UZ",name:"Uzbekistan"},{id:"VU",name:"Vanuatu"},{id:"VE",name:"Venezuela"},{id:"VN",name:"Vietnam"},{id:"VG",name:"Virgin Islands, British"},{id:"WF",name:"Wallis And Futuna"},{id:"EH",name:"Western Sahara"},{id:"YE",name:"Yemen"},{id:"ZM",name:"Zambia"},{id:"ZW",name:"Zimbabwe"}],states:[{country:"US",id:"AL",name:"Alabama"},{country:"US",id:"AK",name:"Alaska"},{country:"US",id:"AZ",name:"Arizona"},{country:"US",id:"AR",name:"Arkansas"},{country:"US",id:"CA",name:"California"},{country:"US",id:"CO",name:"Colorado"},{country:"US",id:"CT",name:"Connecticut"},{country:"US",id:"DE",name:"Delaware"},{country:"US",id:"DC",name:"District of Columbia"},{country:"US",id:"FL",name:"Florida"},{country:"US",id:"GA",name:"Georgia"},{country:"US",id:"HI",name:"Hawaii"},{country:"US",id:"ID",name:"Idaho"},{country:"US",id:"IL",name:"Illinois"},{country:"US",id:"IN",name:"Indiana"},{country:"US",id:"IA",name:"Iowa"},{country:"US",id:"KS",name:"Kansas"},{country:"US",id:"KY",name:"Kentucky"},{country:"US",id:"LA",name:"Louisiana"},{country:"US",id:"ME",name:"Maine"},{country:"US",id:"MD",name:"Maryland"},{country:"US",id:"MA",name:"Massachusetts"},{country:"US",id:"MI",name:"Michigan"},{country:"US",id:"MN",name:"Minnesota"},{country:"US",id:"MS",name:"Mississippi"},{country:"US",id:"MO",name:"Missouri"},{country:"US",id:"MT",name:"Montana"},{country:"US",id:"NE",name:"Nebraska"},{country:"US",id:"NV",name:"Nevada"},{country:"US",id:"NH",name:"New Hampshire"},{country:"US",id:"NJ",name:"New Jersey"},{country:"US",id:"NM",name:"New Mexico"},{country:"US",id:"NY",name:"New York"},{country:"US",id:"NC",name:"North Carolina"},{country:"US",id:"ND",name:"North Dakota"},{country:"US",id:"OH",name:"Ohio"},{country:"US",id:"OK",name:"Oklahoma"},{country:"US",id:"OR",name:"Oregon"},{country:"US",id:"PA",name:"Pennsylvania"},{country:"US",id:"RI",name:"Rhode Island"},{country:"US",id:"SC",name:"South Carolina"},{country:"US",id:"SD",name:"South Dakota"},{country:"US",id:"TN",name:"Tennessee"},{country:"US",id:"TX",name:"Texas"},{country:"US",id:"UT",name:"Utah"},{country:"US",id:"VT",name:"Vermont"},{country:"US",id:"VA",name:"Virginia"},{country:"US",id:"WA",name:"Washington"},{country:"US",id:"WV",name:"West Virginia"},{country:"US",id:"WI",name:"Wisconsin"},{country:"US",id:"WY",name:"Wyoming"},{country:"US",id:"AS",name:"American Samoa"},{country:"US",id:"AA",name:"Armed Forces Americas"},{country:"US",id:"AE",name:"Armed Forces Europe"},{country:"US",id:"AP",name:"Armed Forces Pacific"},{country:"US",id:"FM",name:"Federated States of Micronesia"},{country:"US",id:"GU",name:"Guam"},{country:"US",id:"MH",name:"Marshall Islands"},{country:"US",id:"MP",name:"Northern Mariana Islands"},{country:"US",id:"PW",name:"Palau"},{country:"US",id:"PR",name:"Puerto Rico"},{country:"US",id:"VI",name:"Virgin Islands"},{country:"CA",id:"AB",name:"Alberta"},{country:"CA",id:"BC",name:"British Columbia"},{country:"CA",id:"MB",name:"Manitoba"},{country:"CA",id:"NB",name:"New Brunswick"},{country:"CA",id:"NL",name:"Newfoundland"},{country:"CA",id:"NT",name:"Northwest Territories"},{country:"CA",id:"NS",name:"Nova Scotia"},{country:"CA",id:"NU",name:"Nunavut"},{country:"CA",id:"ON",name:"Ontario"},{country:"CA",id:"PE",name:"Prince Edward Island"},{country:"CA",id:"QC",name:"Quebec"},{country:"CA",id:"SK",name:"Saskatchewan"},{country:"CA",id:"YT",name:"Yukon"},{country:"AU",id:"ACT",name:"Australian Capital Territory"},{country:"AU",id:"NSW",name:"New South Wales"},{country:"AU",id:"NT",name:"Northern Territory"},{country:"AU",id:"QLD",name:"Queensland"},{country:"AU",id:"SA",name:"South Australia"},{country:"AU",id:"TAS",name:"Tasmania"},{country:"AU",id:"VIC",name:"Victoria"},{country:"AU",id:"WA",name:"Western Australia"},{country:"BR",id:"AC",name:"Acre"},{country:"BR",id:"AL",name:"Alagoas"},{country:"BR",id:"AP",name:"Amapa"},{country:"BR",id:"AM",name:"Amazonas"},{country:"BR",id:"BA",name:"Bahia"},{country:"BR",id:"CE",name:"Ceara"},{country:"BR",id:"BRDF",name:"Distrito Federal"},{country:"BR",id:"ES",name:"Espirito Santo"},{country:"BR",id:"GO",name:"Goias;"},{country:"BR",id:"MA",name:"Maranhao"},{country:"BR",id:"MT",name:"Mato Grosso"},{country:"BR",id:"MS",name:"Mato Grosso do Sul"},{country:"BR",id:"MG",name:"Minas Gerais"},{country:"BR",id:"PA",name:"Para;"},{country:"BR",id:"PB",name:"Paraiba"},{country:"BR",id:"PR",name:"Parana"},{country:"BR",id:"PE",name:"Pernambuco"},{country:"BR",id:"PI",name:"Piaui"},{country:"BR",id:"RJ",name:"Rio de Janeiro"},{country:"BR",id:"RN",name:"Rio Grande do Norte"},{country:"BR",id:"RS",name:"Rio Grande do Sul"},{country:"BR",id:"RO",name:"Rondonia"},{country:"BR",id:"RR",name:"Roraima"},{country:"BR",id:"SC",name:"Santa Catarina"},{country:"BR",id:"SP",name:"Sao Paulo"},{country:"BR",id:"SE",name:"Sergipe"},{country:"BR",id:"TO",name:"Tocantins"},{country:"GT",id:"Alta Verapaz",name:"Alta Verapaz"},{country:"GT",id:"Baja Verapaz",name:"Baja Verapaz"},{country:"GT",id:"Chimaltenango",name:"Chimaltenango"},{country:"GT",id:"Chiquimula",name:"Chiquimula"},{country:"GT",id:"El Progreso",name:"El Progreso"},{country:"GT",id:"Escuintla",name:"Escuintla"},{country:"GT",id:"Guatemala",name:"Guatemala"},{country:"GT",id:"Huehuetenango",name:"Huehuetenango"},{country:"GT",id:"Izabal",name:"Izabal"},{country:"GT",id:"Jalapa",name:"Jalapa"},{country:"GT",id:"Jutiapa",name:"Jutiapa"},{country:"GT",id:"Peten",name:"Peten"},{country:"GT",id:"Quetzaltenango",name:"Quetzaltenango"},{country:"GT",id:"Quiche",name:"Quiche"},{country:"GT",id:"Retalhuleu",name:"Retalhuleu"},{country:"GT",id:"Sacatepequez",name:"Sacatepequez"},{country:"GT",id:"San Marcos",name:"San Marcos"},{country:"GT",id:"Santa Rosa",name:"Santa Rosa"},{country:"GT",id:"Solola",name:"Solola"},{country:"GT",id:"Suchitepequez",name:"Suchitepequez"},{country:"GT",id:"Totonicapan",name:"Totonicapan"},{country:"GT",id:"Zacapa",name:"Zacapa"},{country:"IN",id:"AN",name:"Andaman and Nicobar"},{country:"IN",id:"AP",name:"Andhra Pradesh"},{country:"IN",id:"AR",name:"Arunachal Pradesh"},{country:"IN",id:"AS",name:"Assam"},{country:"IN",id:"BR",name:"Bihar"},{country:"IN",id:"CH",name:"Chandigarh"},{country:"IN",id:"CT",name:"Chattisgarh"},{country:"IN",id:"DN",name:"Dadra and Nagar Haveli"},{country:"IN",id:"DD",name:"Daman and Diu"},{country:"IN",id:"DL",name:"Delhi"},{country:"IN",id:"GA",name:"Goa"},{country:"IN",id:"GJ",name:"Gujarat"},{country:"IN",id:"HR",name:"Haryana"},{country:"IN",id:"HP",name:"Himachal Pradesh"},{country:"IN",id:"JK",name:"Jammu and Kashmir"},{country:"IN",id:"JH",name:"Jharkhand"},{country:"IN",id:"KA",name:"Karnataka"},{country:"IN",id:"KL",name:"Kerala"},{country:"IN",id:"LD",name:"Lakshadweep"},{country:"IN",id:"MP",name:"Madhya Pradesh"},{country:"IN",id:"MH",name:"Maharashtra"},{country:"IN",id:"MN",name:"Manipur"},{country:"IN",id:"ML",name:"Meghalaya"},{country:"IN",id:"MZ",name:"Mizoram"},{country:"IN",id:"NL",name:"Nagaland"},{country:"IN",id:"OR",name:"Orissa"},{country:"IN",id:"PY",name:"Puducherry"},{country:"IN",id:"PB",name:"Punjab"},{country:"IN",id:"RJ",name:"Rajasthan"},{country:"IN",id:"SK",name:"Sikkim"},{country:"IN",id:"TN",name:"Tamil Nadu"},{country:"IN",id:"TR",name:"Tripura"},{country:"IN",id:"UP",name:"Uttar Pradesh"},{country:"IN",id:"UT",name:"Uttarakhand"},{country:"IN",id:"WB",name:"West Bengal"},{country:"MY",id:"JHR",name:"Johor"},{country:"MY",id:"KDH",name:"Kedah"},{country:"MY",id:"KTN",name:"Kelantan"},{country:"MY",id:"KUL",name:"Kuala Lumpur"},{country:"MY",id:"LBN",name:"Labuan"},{country:"MY",id:"MLK",name:"Malacca"},{country:"MY",id:"NSN",name:"Negeri Sembilan"},{country:"MY",id:"PHG",name:"Pahang"},{country:"MY",id:"PNG",name:"Penang"},{country:"MY",id:"PRK",name:"Perak"},{country:"MY",id:"PLS",name:"Perlis"},{country:"MY",id:"PJY",name:"Putrajaya"},{country:"MY",id:"SBH",name:"Sabah"},{country:"MY",id:"SRW",name:"Sarawak"},{country:"MY",id:"SGR",name:"Selangor"},{country:"MY",id:"TRG",name:"Terengganu"},{country:"MX",id:"AG",name:"Aguascalientes"},{country:"MX",id:"BJ",name:"Baja California"},{country:"MX",id:"BS",name:"Baja California Sur"},{country:"MX",id:"CI",name:"Chihuahua"},{country:"MX",id:"CL",name:"Colima"},{country:"MX",id:"CP",name:"Campeche"},{country:"MX",id:"CU",name:"Coahuila"},{country:"MX",id:"CH",name:"Chiapas"},{country:"MX",id:"DF",name:"Distrito Federal"},{country:"MX",id:"DG",name:"Durango"},{country:"MX",id:"GR",name:"Guerrero"},{country:"MX",id:"GJ",name:"Guanajuato"},{country:"MX",id:"HG",name:"Hidalgo"},{country:"MX",id:"JA",name:"Jalisco"},{country:"MX",id:"MH",name:"Michoacan"},{country:"MX",id:"MR",name:"Morelos"},{country:"MX",id:"EM",name:"Mexico"},{country:"MX",id:"NA",name:"Nayarit"},{country:"MX",id:"NL",name:"Nuevo Leon"},{country:"MX",id:"OA",name:"Oaxaca"},{country:"MX",id:"PU",name:"Puebla"},{country:"MX",id:"QR",name:"Quintana Roo"},{country:"MX",id:"QA",name:"Queretaro"},{country:"MX",id:"SI",name:"Sinaloa"},{country:"MX",id:"SL",name:"San Luis Potosi"},{country:"MX",id:"SO",name:"Sonora"},{country:"MX",id:"TA",name:"Tabasco"},{country:"MX",id:"TL",name:"Tlaxcala"},{country:"MX",id:"TM",name:"Tamaulipas"},{country:"MX",id:"VZ",name:"Veracruz"},{country:"MX",id:"YC",name:"Yucatan"},{country:"MX",id:"ZT",name:"Zacatecas"},{country:"NZ",id:"AUK",name:"Auckland"},{country:"NZ",id:"BOP",name:"Bay of Plenty"},{country:"NZ",id:"CAN",name:"Canterbury"},{country:"NZ",id:"GIS",name:"Gisborne"},{country:"NZ",id:"HKB",name:"Hawke's Bay"},{country:"NZ",id:"MWT",name:"Manawatu-Wanganui"},{country:"NZ",id:"MBH",name:"Marlborough"},{country:"NZ",id:"NSN",name:"Nelson"},{country:"NZ",id:"NTL",name:"Northland"},{country:"NZ",id:"OTA",name:"Otago"},{country:"NZ",id:"STL",name:"Southland"},{country:"NZ",id:"TKI",name:"Taranaki"},{country:"NZ",id:"NZTAS",name:"Tasman"},{country:"NZ",id:"WKO",name:"Waikato"},{country:"NZ",id:"WGN",name:"Wellington"},{country:"NZ",id:"WTC",name:"West Coast"},{country:"ES",id:"A Coruna",name:"A Coruna"},{country:"ES",id:"Alava",name:"Alava"},{country:"ES",id:"Albacete",name:"Albacete"},{country:"ES",id:"Alicante",name:"Alicante"},{country:"ES",id:"Almeria",name:"Almeria"},{country:"ES",id:"Asturias",name:"Asturias"},{country:"ES",id:"Avila",name:"Avila"},{country:"ES",id:"Badajoz",name:"Badajoz"},{country:"ES",id:"Baleares",name:"Baleares"},{country:"ES",id:"Barcelona",name:"Barcelona"},{country:"ES",id:"Burgos",name:"Burgos"},{country:"ES",id:"Caceres",name:"Caceres"},{country:"ES",id:"Cadiz",name:"Cadiz"},{country:"ES",id:"Cantabria",name:"Cantabria"},{country:"ES",id:"Castellon",name:"Castellon"},{country:"ES",id:"Ceuta",name:"Ceuta"},{country:"ES",id:"Ciudad Real",name:"Ciudad Real"},{country:"ES",id:"Cordoba",name:"Cordoba"},{country:"ES",id:"Cuenca",name:"Cuenca"},{country:"ES",id:"Girona",name:"Girona"},{country:"ES",id:"Granada",name:"Granada"},{country:"ES",id:"Guadalajara",name:"Guadalajara"},{country:"ES",id:"Guipuzcoa",name:"Guipuzcoa"},{country:"ES",id:"Huelva",name:"Huelva"},{country:"ES",id:"Huesca",name:"Huesca"},{country:"ES",id:"Jaen",name:"Jaen"},{country:"ES",id:"La Rioja",name:"La Rioja"},{country:"ES",id:"Las Palmas",name:"Las Palmas"},{country:"ES",id:"Leon",name:"Leon"},{country:"ES",id:"Lleida",name:"Lleida"},{country:"ES",id:"Lugo",name:"Lugo"},{country:"ES",id:"Madrid",name:"Madrid"},{country:"ES",id:"Malaga",name:"Malaga"},{country:"ES",id:"Melilla",name:"Melilla"},{country:"ES",id:"Murcia",name:"Murcia"},{country:"ES",id:"Navarra",name:"Navarra"},{country:"ES",id:"Ourense",name:"Ourense"},{country:"ES",id:"Palencia",name:"Palencia"},{country:"ES",id:"Pontevedra",name:"Pontevedra"},{country:"ES",id:"Salamanca",name:"Salamanca"},{country:"ES",id:"Santa Cruz de Tenerife",name:"Santa Cruz de Tenerife"},{country:"ES",id:"Segovia",name:"Segovia"},{country:"ES",id:"Sevilla",name:"Sevilla"},{country:"ES",id:"Soria",name:"Soria"},{country:"ES",id:"Tarragona",name:"Tarragona"},{country:"ES",id:"Teruel",name:"Teruel"},{country:"ES",id:"Toledo",name:"Toledo"},{country:"ES",id:"Valencia",name:"Valencia"},{country:"ES",id:"Valladolid",name:"Valladolid"},{country:"ES",id:"Vizcaya",name:"Vizcaya"},{country:"ES",id:"Zamora",name:"Zamora"},{country:"ES",id:"Zaragoza",name:"Zaragoza"},{country:"AE",id:"Abu Dhabi",name:"Abu Dhabi"},{country:"AE",id:"Ajman",name:"Ajman"},{country:"AE",id:"Dubai",name:"Dubai"},{country:"AE",id:"Fujairah",name:"Fujairah"},{country:"AE",id:"Ras al-Khaimah",name:"Ras al-Khaimah"},{country:"AE",id:"Sharjah",name:"Sharjah"},{country:"AE",id:"Umm al-Quwain",name:"Umm al-Quwain"},{country:"DZ",id:"DZ-01",name:"Adrar"},{country:"DZ",id:"DZ-44",name:"A\xEFn Defla"},{country:"DZ",id:"DZ-46",name:"A\xEFn T\xE9mouchent"},{country:"DZ",id:"DZ-16",name:"Algiers"},{country:"DZ",id:"DZ-23",name:"Annaba"},{country:"DZ",id:"DZ-05",name:"Batna"},{country:"DZ",id:"DZ-08",name:"B\xE9char"},{country:"DZ",id:"DZ-06",name:"B\xE9ja\xEFa"},{country:"DZ",id:"DZ-53",name:"B\xE9ni Abb\xE8s"},{country:"DZ",id:"DZ-07",name:"Biskra"},{country:"DZ",id:"DZ-09",name:"Blida"},{country:"DZ",id:"DZ-52",name:"Bordj Baji Mokhtar"},{country:"DZ",id:"DZ-34",name:"Bordj Bou Arr\xE9ridj"},{country:"DZ",id:"DZ-10",name:"Bou\xEFra"},{country:"DZ",id:"DZ-35",name:"Boumerd\xE8s"},{country:"DZ",id:"DZ-02",name:"Chlef"},{country:"DZ",id:"DZ-25",name:"Constantine"},{country:"DZ",id:"DZ-56",name:"Djanet"},{country:"DZ",id:"DZ-17",name:"Djelfa"},{country:"DZ",id:"DZ-32",name:"El Bayadh"},{country:"DZ",id:"DZ-49",name:"El M'Ghair"},{country:"DZ",id:"DZ-50",name:"El Menia"},{country:"DZ",id:"DZ-39",name:"El Oued"},{country:"DZ",id:"DZ-36",name:"El Tarf"},{country:"DZ",id:"DZ-47",name:"Gharda\xEFa"},{country:"DZ",id:"DZ-24",name:"Guelma"},{country:"DZ",id:"DZ-33",name:"Illizi"},{country:"DZ",id:"DZ-58",name:"In Guezzam"},{country:"DZ",id:"DZ-57",name:"In Salah"},{country:"DZ",id:"DZ-18",name:"Jijel"},{country:"DZ",id:"DZ-40",name:"Khenchela"},{country:"DZ",id:"DZ-03",name:"Laghouat"},{country:"DZ",id:"DZ-28",name:"M'Sila"},{country:"DZ",id:"DZ-29",name:"Mascara"},{country:"DZ",id:"DZ-26",name:"M\xE9d\xE9a"},{country:"DZ",id:"DZ-43",name:"Mila"},{country:"DZ",id:"DZ-27",name:"Mostaganem"},{country:"DZ",id:"DZ-45",name:"Na\xE2ma"},{country:"DZ",id:"DZ-31",name:"Oran"},{country:"DZ",id:"DZ-30",name:"Ouargla"},{country:"DZ",id:"DZ-51",name:"Ouled Djellal"},{country:"DZ",id:"DZ-04",name:"Oum El Bouaghi"},{country:"DZ",id:"DZ-48",name:"Relizane"},{country:"DZ",id:"DZ-20",name:"Sa\xEFda"},{country:"DZ",id:"DZ-19",name:"S\xE9tif"},{country:"DZ",id:"DZ-22",name:"Sidi Bel Abb\xE8s"},{country:"DZ",id:"DZ-21",name:"Skikda"},{country:"DZ",id:"DZ-41",name:"Souk Ahras"},{country:"DZ",id:"DZ-11",name:"Tamanrasset"},{country:"DZ",id:"DZ-12",name:"T\xE9bessa"},{country:"DZ",id:"DZ-14",name:"Tiaret"},{country:"DZ",id:"DZ-54",name:"Timimoun"},{country:"DZ",id:"DZ-37",name:"Tindouf"},{country:"DZ",id:"DZ-42",name:"Tipaza"},{country:"DZ",id:"DZ-38",name:"Tissemsilt"},{country:"DZ",id:"DZ-15",name:"Tizi Ouzou"},{country:"DZ",id:"DZ-13",name:"Tlemcen"},{country:"DZ",id:"DZ-55",name:"Touggourt"},{country:"PH",id:"PH-00",name:"National Capital Region [NCR]"},{country:"PH",id:"PH-01",name:"Ilocos [I]"},{country:"PH",id:"PH-02",name:"Cagayan Valley [II]"},{country:"PH",id:"PH-03",name:"Central Luzon [III]"},{country:"PH",id:"PH-05",name:"Bicol [V]"},{country:"PH",id:"PH-06",name:"Western Visayas [VI]"},{country:"PH",id:"PH-07",name:"Central Visayas [VII]"},{country:"PH",id:"PH-08",name:"Eastern Visayas [VIII]"},{country:"PH",id:"PH-09",name:"Zamboanga Peninsula [IX]"},{country:"PH",id:"PH-10",name:"Northern Mindanao [X]"},{country:"PH",id:"PH-11",name:"Davao [XI]"},{country:"PH",id:"PH-12",name:"Soccsksargen [XII]"},{country:"PH",id:"PH-13",name:"Caraga [XIII]"},{country:"PH",id:"PH-14",name:"Autonomous Region in Muslim Mindanao [ARMM]"},{country:"PH",id:"PH-15",name:"Cordillera Administrative Region [CAR]"},{country:"PH",id:"PH-40",name:"Calabarzon [IV-A]"},{country:"PH",id:"PH-41",name:"Mimaropa [IV-B]"}],timezones:[{id:"Pacific/Kiritimati",name:"Line Islands Time"},{id:"Pacific/Enderbury",name:"Phoenix Islands Time"},{id:"Pacific/Tongatapu",name:"Tonga Time"},{id:"Pacific/Chatham",name:"Chatham Daylight Time"},{id:"Asia/Kamchatka",name:"Petropavlovsk-Kamchatski Time"},{id:"Pacific/Auckland",name:"New Zealand Daylight Time"},{id:"Pacific/Fiji",name:"Fiji Time"},{id:"Pacific/Norfolk",name:"Norfolk Time"},{id:"Pacific/Guadalcanal",name:"Solomon Islands Time"},{id:"Australia/Lord_Howe",name:"Lord Howe Summer Time"},{id:"Australia/Brisbane",name:"Australian Eastern Standard Time (Brisbane)"},{id:"Australia/Sydney",name:"Australian Eastern Standard Time (Sydney)"},{id:"Australia/Adelaide",name:"Australian Central Standard Time (Adelaide)"},{id:"Australia/Darwin",name:"Australian Central Standard Time (Darwin)"},{id:"Asia/Seoul",name:"Korea Standard Time"},{id:"Asia/Tokyo",name:"Japan Standard Time"},{id:"Asia/Hong_Kong",name:"Hong Kong Time"},{id:"Asia/Kuala_Lumpur",name:"Malaysia Time"},{id:"Asia/Manila",name:"Philippines Time"},{id:"Asia/Shanghai",name:"China Standard Time (Shanghai)"},{id:"Asia/Singapore",name:"Singapore Time"},{id:"Asia/Taipei",name:"China Standard Time (Taipei)"},{id:"Australia/Perth",name:"Australian Western Standard Time"},{id:"Asia/Bangkok",name:"Indochina Time (Bangkok)"},{id:"Asia/Jakarta",name:"West Indonesia Time"},{id:"Asia/Saigon",name:"Indochina Time (Saigon)"},{id:"Asia/Rangoon",name:"Myanmar Time"},{id:"Asia/Dacca",name:"Bangladesh Time"},{id:"Asia/Katmandu",name:"Nepal Time"},{id:"Asia/Calcutta",name:"India Standard Time (Calcutta)"},{id:"Asia/Colombo",name:"India Standard Time (Colombo)"},{id:"Asia/Karachi",name:"Pakistan Summer Time"},{id:"Asia/Tashkent",name:"Uzbekistan Time"},{id:"Asia/Yekaterinburg",name:"Yekaterinburg Time"},{id:"Asia/Kabul",name:"Afghanistan Time"},{id:"Asia/Baku",name:"Azerbaijan Time"},{id:"Asia/Dubai",name:"Gulf Standard Time"},{id:"Asia/Tbilisi",name:"Georgia Time"},{id:"Asia/Yerevan",name:"Armenia Time"},{id:"Asia/Tehran",name:"Iran Standard Time"},{id:"Africa/Nairobi",name:"Eastern African Time"},{id:"Asia/Baghdad",name:"Arabia Standard Time (Baghdad)"},{id:"Asia/Kuwait",name:"Arabia Standard Time (Kuwait)"},{id:"Asia/Riyadh",name:"Arabia Standard Time (Riyadh)"},{id:"Europe/Moscow",name:"Moscow Standard Time"},{id:"Africa/Cairo",name:"Eastern European Time (Cairo)"},{id:"Africa/Johannesburg",name:"South Africa Standard Time"},{id:"Asia/Beirut",name:"Eastern European Time (Beirut)"},{id:"Asia/Jerusalem",name:"Israel Standard Time"},{id:"Europe/Athens",name:"Eastern European Time (Athens)"},{id:"Europe/Bucharest",name:"Eastern European Time (Bucharest)"},{id:"Europe/Helsinki",name:"Eastern European Time (Helsinki)"},{id:"Europe/Istanbul",name:"Eastern European Time (Istanbul)"},{id:"Europe/Minsk",name:"Eastern European Time (Minsk)"},{id:"Europe/Amsterdam",name:"Central European Time (Amsterdam)"},{id:"Europe/Berlin",name:"Central European Time (Berlin)"},{id:"Europe/Brussels",name:"Central European Time (Brussels)"},{id:"Europe/Prague",name:"Central European Time (Prague)"},{id:"Europe/Rome",name:"Central European Time (Rome)"},{id:"Europe/Dublin",name:"Irish Summer Time"},{id:"Europe/Lisbon",name:"Western European Summer Time"},{id:"Europe/London",name:"British Summer Time"},{id:"GMT",name:"Greenwich Mean Time"},{id:"America/Scoresbysund",name:"East Greenland Time"},{id:"Atlantic/Azores",name:"Azores Time"},{id:"Atlantic/Cape_Verde",name:"Cape Verde Time"},{id:"Atlantic/South_Georgia",name:"South Georgia Standard Time"},{id:"America/Buenos_Aires",name:"Argentine Summer Time"},{id:"America/Sao_Paulo",name:"Brasilia Summer Time"},{id:"America/St_Johns",name:"Newfoundland Daylight Time"},{id:"America/Halifax",name:"Atlantic Daylight Time (Halifax)"},{id:"America/Puerto_Rico",name:"Atlantic Standard Time"},{id:"America/Santiago",name:"Chile Summer Time"},{id:"Atlantic/Bermuda",name:"Atlantic Daylight Time (Bermuda)"},{id:"America/Caracas",name:"Venezuela Time"},{id:"America/Bogota",name:"Colombia Time"},{id:"America/Indianapolis",name:"Eastern Daylight Time (Indianapolis)"},{id:"America/Lima",name:"Peru Time"},{id:"America/New_York",name:"Eastern Daylight Time (New York)"},{id:"America/Panama",name:"Eastern Standard Time (Panama)"},{id:"America/Chicago",name:"Central Daylight Time (Chicago)"},{id:"America/El_Salvador",name:"Central Standard Time (El Salvador)"},{id:"America/Mexico_City",name:"Central Standard Time (Mexico City)"},{id:"America/Denver",name:"Mountain Daylight Time"},{id:"America/Phoenix",name:"Mountain Standard Time"},{id:"America/Los_Angeles",name:"Pacific Daylight Time"},{id:"America/Tijuana",name:"Pacific Standard Time"},{id:"Pacific/Pitcairn",name:"Pitcairn Standard Time"},{id:"America/Anchorage",name:"Alaska Daylight Time"},{id:"Pacific/Gambier",name:"Gambier Time"},{id:"Pacific/Marquesas",name:"Marquesas Time"},{id:"Pacific/Honolulu",name:"Hawaii Standard Time"},{id:"America/Atka",name:"Hawaii-Aleutian Standard Time"},{id:"Pacific/Niue",name:"Niue Time"},{id:"Pacific/Pago_Pago",name:"Samoa Standard Time"}],locales:[{id:"af",name:"Afrikaans"},{id:"af-ZA",name:"Afrikaans (South Africa)"},{id:"az",name:"Azerbaijani"},{id:"az-AZ",name:"Azerbaijani (Azerbaijani)"},{id:"id",name:"Indonesian"},{id:"id-ID",name:"Indonesian (Indonesia)"},{id:"ms",name:"Malay"},{id:"ms-MY",name:"Malay (Malaysia)"},{id:"ca",name:"Catalan"},{id:"ca-ES",name:"Catalan (Spain)"},{id:"cs",name:"Czech"},{id:"cs-CZ",name:"Czech (Czech Republic)"},{id:"da",name:"Danish"},{id:"da-DK",name:"Danish (Denmark)"},{id:"de",name:"German"},{id:"de-DE",name:"German (Germany)"},{id:"de-CH",name:"German (Switzerland)"},{id:"de-AT",name:"German (Austria)"},{id:"et",name:"Estonian"},{id:"et-EE",name:"Estonian (Estonia)"},{id:"en",name:"English"},{id:"en-AU",name:"English (Australia)"},{id:"en-CA",name:"English (Canada)"},{id:"en-IE",name:"English (Ireland)"},{id:"en-NZ",name:"English (New Zealand)"},{id:"en-GB",name:"English (United Kingdom)"},{id:"en-US",name:"English (United States)"},{id:"es",name:"Spanish"},{id:"es-AR",name:"Spanish (Argentina)"},{id:"es-CL",name:"Spanish (Chile)"},{id:"es-CO",name:"Spanish (Colombia)"},{id:"es-CR",name:"Spanish (Costa Rica)"},{id:"es-ES",name:"Spanish (Spain)"},{id:"es-MX",name:"Spanish (Mexico)"},{id:"es-PA",name:"Spanish (Panama)"},{id:"es-PE",name:"Spanish (Peru)"},{id:"es-VE",name:"Spanish (Venezuela)"},{id:"fil",name:"Filipino"},{id:"fil-PH",name:"Filipino (Philippines)"},{id:"fr",name:"French"},{id:"fr-CA",name:"French (Canada)"},{id:"fr-FR",name:"French (France)"},{id:"fr-CH",name:"French (Switzerland)"},{id:"gl",name:"Galician"},{id:"gl-ES",name:"Galician (Spain)"},{id:"hr",name:"Croatian"},{id:"hr-HR",name:"Croatian (Croatia)"},{id:"it",name:"Italian"},{id:"it-IT",name:"Italian (Italy)"},{id:"it-CH",name:"Italian (Switzerland)"},{id:"sw",name:"Swahili"},{id:"sw-KE",name:"Swahili (Kenya)"},{id:"sw-KE",name:"Swahili (Tanzania)"},{id:"lv",name:"Latvian"},{id:"lv-LV",name:"Latvian (Latvia)"},{id:"lt",name:"Lithuanian"},{id:"lt-LT",name:"Lithuanian (Lithuania)"},{id:"hu",name:"Hungarian"},{id:"hu-HU",name:"Hungarian (Hungary)"},{id:"nl",name:"Dutch"},{id:"nl-NL",name:"Dutch (Netherlands)"},{id:"nb",name:"Norwegian Bokm\xE5l"},{id:"nb-NO",name:"Norwegian Bokm\xE5l (Norway)"},{id:"nn",name:"Norwegian Nynorsk"},{id:"nn-NO",name:"Norwegian Nynorsk (Norway)"},{id:"pl",name:"Polish"},{id:"pl-PL",name:"Polish (Poland)"},{id:"pt",name:"Portuguese"},{id:"pt-BR",name:"Portuguese (Brazil)"},{id:"pt-PT",name:"Portuguese (Portugal)"},{id:"ro",name:"Romanian"},{id:"ro-MD",name:"Romanian (Moldova)"},{id:"ro-RO",name:"Romanian (Romania)"},{id:"sq",name:"Albanian"},{id:"sq-AL",name:"Albanian (Albania)"},{id:"sk",name:"Slovak"},{id:"sk-SK",name:"Slovak (Slovakia)"},{id:"sl",name:"Slovenian"},{id:"sl-SI",name:"Slovenian (Slovenia)"},{id:"fi",name:"Finnish"},{id:"fi-FI",name:"Finnish (Finland)"},{id:"sv",name:"Swedish"},{id:"sv-FI",name:"Swedish (Finland)"},{id:"sv-SE",name:"Swedish (Sweden)"},{id:"vi",name:"Vietnamese"},{id:"vi-VN",name:"Vietnamese (Vietnam)"},{id:"tr",name:"Turkish"},{id:"tr-TR",name:"Turkish (Turkey)"},{id:"is",name:"Icelandic"},{id:"is-IS",name:"Icelandic (Iceland)"},{id:"el",name:"Greek"},{id:"el-CY",name:"Greek (Cyprus)"},{id:"el-GR",name:"Greek (Greece)"},{id:"sr",name:"Serbian"},{id:"sr-RS",name:"Serbian (Serbia)"},{id:"be",name:"Belarusian"},{id:"be-BY",name:"Belarusian (Belarus)"},{id:"bg",name:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},{id:"bg-BG",name:"Bulgarian (Bulgaria)"},{id:"mk",name:"Macedonian"},{id:"mk-MK",name:"Macedonian (Macedonia)"},{id:"ru",name:"Russian"},{id:"ru-MD",name:"Russian (Moldova)"},{id:"ru-RU",name:"Russian (Russia)"},{id:"ru-UA",name:"Russian (Ukraine)"},{id:"uk",name:"Ukrainian"},{id:"uk-UA",name:"Ukrainian (Ukraine)"},{id:"he",name:"Hebrew"},{id:"he-IL",name:"Hebrew (Israel)"},{id:"ar",name:"Arabic"},{id:"ar-DZ",name:"Arabic (Algeria)"},{id:"ar-KW",name:"Arabic (Kuwait)"},{id:"ar-MA",name:"Arabic (Morocco)"},{id:"ar-SA",name:"Arabic (Saudi Arabia)"},{id:"ar-EG",name:"Arabic (Egypt)"},{id:"hi",name:"Hindi"},{id:"hi-IN",name:"Hindi (India)"},{id:"th",name:"Thai"},{id:"th-TH",name:"Thai (Thailand)"},{id:"zh",name:"Chinese"},{id:"zh-CN",name:"Chinese (China)"},{id:"zh-HK",name:"Chinese (Hong Kong)"},{id:"zh-TW",name:"Chinese (Taiwan)"},{id:"ja",name:"Japanese"},{id:"ja-JP",name:"Japanese (Japan)"},{id:"ko",name:"Korean"},{id:"ko-KR",name:"Korean (South Korea)"},{id:"km",name:"Khmer"},{id:"km-KH",name:"Khmer (Cambodia)"}],currencies:[{id:"AFN",name:"Afghan Afghani"},{id:"ALL",name:"Albanian Lek"},{id:"DZD",name:"Algerian Dinar"},{id:"AOA",name:"Angolan Kwanza"},{id:"ARS",name:"Argentine Peso"},{id:"AMD",name:"Armenian Dram"},{id:"AWG",name:"Aruban Florin"},{id:"AUD",name:"Australian Dollar"},{id:"AZN",name:"Azerbaijani Manat"},{id:"AZM",name:"Azerbaijani Manat (1993-2006)"},{id:"BSD",name:"Bahamian Dollar"},{id:"BHD",name:"Bahraini Dinar"},{id:"BDT",name:"Bangladeshi Taka"},{id:"BBD",name:"Barbadian Dollar"},{id:"BYR",name:"Belarusian Ruble"},{id:"BZD",name:"Belize Dollar"},{id:"BMD",name:"Bermudan Dollar"},{id:"BTN",name:"Bhutanese Ngultrum"},{id:"BOB",name:"Bolivian Boliviano"},{id:"BAM",name:"Bosnia-Herzegovina Convertible Mark"},{id:"BWP",name:"Botswanan Pula"},{id:"BRL",name:"Brazilian Real"},{id:"GBP",name:"British Pound Sterling"},{id:"BND",name:"Brunei Dollar"},{id:"BGN",name:"Bulgarian Lev"},{id:"BUK",name:"Burmese Kyat"},{id:"BIF",name:"Burundian Franc"},{id:"XOF",name:"CFA Franc BCEAO"},{id:"XPF",name:"CFP Franc"},{id:"KHR",name:"Cambodian Riel"},{id:"CAD",name:"Canadian Dollar"},{id:"CVE",name:"Cape Verdean Escudo"},{id:"KYD",name:"Cayman Islands Dollar"},{id:"CLP",name:"Chilean Peso"},{id:"CNY",name:"Chinese Yuan Renminbi"},{id:"COP",name:"Colombian Peso"},{id:"KMF",name:"Comorian Franc"},{id:"CDF",name:"Congolese Franc"},{id:"CRC",name:"Costa Rican Col\xF3n"},{id:"HRK",name:"Croatian Kuna"},{id:"CUP",name:"Cuban Peso"},{id:"CZK",name:"Czech Republic Koruna"},{id:"DKK",name:"Danish Krone"},{id:"DJF",name:"Djiboutian Franc"},{id:"DOP",name:"Dominican Peso"},{id:"XCD",name:"East Caribbean Dollar"},{id:"EGP",name:"Egyptian Pound"},{id:"GQE",name:"Equatorial Guinean Ekwele"},{id:"ERN",name:"Eritrean Nakfa"},{id:"EEK",name:"Estonian Kroon"},{id:"ETB",name:"Ethiopian Birr"},{id:"EUR",name:"Euro"},{id:"FKP",name:"Falkland Islands Pound"},{id:"FJD",name:"Fijian Dollar"},{id:"GMD",name:"Gambian Dalasi"},{id:"GEK",name:"Georgian Kupon Larit"},{id:"GEL",name:"Georgian Lari"},{id:"GHS",name:"Ghanaian Cedi"},{id:"GIP",name:"Gibraltar Pound"},{id:"GTQ",name:"Guatemalan Quetzal"},{id:"GNF",name:"Guinean Franc"},{id:"GYD",name:"Guyanaese Dollar"},{id:"HTG",name:"Haitian Gourde"},{id:"HNL",name:"Honduran Lempira"},{id:"HKD",name:"Hong Kong Dollar"},{id:"HUF",name:"Hungarian Forint"},{id:"ISK",name:"Icelandic Kr\xF3na"},{id:"INR",name:"Indian Rupee"},{id:"IDR",name:"Indonesian Rupiah"},{id:"IRR",name:"Iranian Rial"},{id:"IQD",name:"Iraqi Dinar"},{id:"ILS",name:"Israeli New Sheqel"},{id:"JMD",name:"Jamaican Dollar"},{id:"JPY",name:"Japanese Yen"},{id:"JOD",name:"Jordanian Dinar"},{id:"KZT",name:"Kazakhstan Tenge"},{id:"KES",name:"Kenyan Shilling"},{id:"KWD",name:"Kuwaiti Dinar"},{id:"KGS",name:"Kyrgystani Som"},{id:"LAK",name:"Laotian Kip"},{id:"LVL",name:"Latvian Lats"},{id:"LBP",name:"Lebanese Pound"},{id:"LSL",name:"Lesotho Loti"},{id:"LRD",name:"Liberian Dollar"},{id:"LYD",name:"Libyan Dinar"},{id:"LTL",name:"Lithuanian Litas"},{id:"MOP",name:"Macanese Pataca"},{id:"MKD",name:"Macedonian Denar"},{id:"MGA",name:"Malagasy Ariary"},{id:"MWK",name:"Malawian Kwacha"},{id:"MYR",name:"Malaysian Ringgit"},{id:"MVR",name:"Maldivian Rufiyaa"},{id:"MRO",name:"Mauritanian Ouguiya"},{id:"MUR",name:"Mauritian Rupee"},{id:"MXN",name:"Mexican Peso"},{id:"MDL",name:"Moldovan Leu"},{id:"MNT",name:"Mongolian Tugrik"},{id:"MAD",name:"Moroccan Dirham"},{id:"MZN",name:"Mozambican Metical"},{id:"MMK",name:"Myanma Kyat"},{id:"NAD",name:"Namibian Dollar"},{id:"NPR",name:"Nepalese Rupee"},{id:"ANG",name:"Netherlands Antillean Guilder"},{id:"TWD",name:"New Taiwan Dollar"},{id:"NZD",name:"New Zealand Dollar"},{id:"NIC",name:"Nicaraguan Cordoba"},{id:"NGN",name:"Nigerian Naira"},{id:"KPW",name:"North Korean Won"},{id:"NOK",name:"Norwegian Krone"},{id:"ROL",name:"Old Romanian Leu"},{id:"TRL",name:"Old Turkish Lira"},{id:"OMR",name:"Omani Rial"},{id:"PKR",name:"Pakistani Rupee"},{id:"PAB",name:"Panamanian Balboa"},{id:"PGK",name:"Papua New Guinean Kina"},{id:"PYG",name:"Paraguayan Guarani"},{id:"PEN",name:"Peruvian Nuevo Sol"},{id:"PHP",name:"Philippine Peso"},{id:"PLN",name:"Polish Zloty"},{id:"QAR",name:"Qatari Rial"},{id:"RHD",name:"Rhodesian Dollar"},{id:"RON",name:"Romanian Leu"},{id:"RUB",name:"Russian Ruble"},{id:"RWF",name:"Rwandan Franc"},{id:"SHP",name:"Saint Helena Pound"},{id:"SVC",name:"Salvadoran Col\xF3n"},{id:"WST",name:"Samoan Tala"},{id:"SAR",name:"Saudi Riyal"},{id:"RSD",name:"Serbian Dinar"},{id:"SCR",name:"Seychellois Rupee"},{id:"SLL",name:"Sierra Leonean Leone"},{id:"SGD",name:"Singapore Dollar"},{id:"SKK",name:"Slovak Koruna"},{id:"SBD",name:"Solomon Islands Dollar"},{id:"SOS",name:"Somali Shilling"},{id:"ZAR",name:"South African Rand"},{id:"KRW",name:"South Korean Won"},{id:"LKR",name:"Sri Lanka Rupee"},{id:"SDG",name:"Sudanese Pound"},{id:"SRD",name:"Surinamese Dollar"},{id:"SZL",name:"Swazi Lilangeni"},{id:"SEK",name:"Swedish Krona"},{id:"CHF",name:"Swiss Franc"},{id:"SYP",name:"Syrian Pound"},{id:"STD",name:"S\xE3o Tom\xE9 and Pr\xEDncipe Dobra"},{id:"TJS",name:"Tajikistani Somoni"},{id:"TZS",name:"Tanzanian Shilling"},{id:"THB",name:"Thai Baht"},{id:"TOP",name:"Tongan Pa\u02BBanga"},{id:"TTD",name:"Trinidad and Tobago Dollar"},{id:"TND",name:"Tunisian Dinar"},{id:"TRY",name:"Turkish Lira"},{id:"TMM",name:"Turkmenistani Manat"},{id:"USD",name:"US Dollar"},{id:"UGX",name:"Ugandan Shilling"},{id:"UAH",name:"Ukrainian Hryvnia"},{id:"AED",name:"United Arab Emirates Dirham"},{id:"UYU",name:"Uruguayan Peso"},{id:"UZS",name:"Uzbekistan Som"},{id:"VUV",name:"Vanuatu Vatu"},{id:"VEB",name:"Venezuelan Bol\xEDvar"},{id:"VEF",name:"Venezuelan Bol\xEDvar Fuerte"},{id:"VND",name:"Vietnamese Dong"},{id:"CHE",name:"WIR Euro"},{id:"CHW",name:"WIR Franc"},{id:"YER",name:"Yemeni Rial"},{id:"ZMK",name:"Zambian Kwacha"},{id:"ZWD",name:"Zimbabwean Dollar"}],id:"geo"},G4={aa:"ET",ab:"GE",abr:"GH",ace:"ID",ach:"UG",ada:"GH",ady:"RU",ae:"IR",aeb:"TN",af:"ZA",agq:"CM",aho:"IN",ak:"GH",akk:"IQ",aln:"XK",alt:"RU",am:"ET",amo:"NG",aoz:"ID",apd:"TG",ar:"EG",arc:"IR","arc-Nbat":"JO","arc-Palm":"SY",arn:"CL",aro:"BO",arq:"DZ",ary:"MA",arz:"EG",as:"IN",asa:"TZ",ase:"US",ast:"ES",atj:"CA",av:"RU",awa:"IN",ay:"BO",az:"AZ","az-Arab":"IR",ba:"RU",bal:"PK",ban:"ID",bap:"NP",bar:"AT",bas:"CM",bax:"CM",bbc:"ID",bbj:"CM",bci:"CI",be:"BY",bej:"SD",bem:"ZM",bew:"ID",bez:"TZ",bfd:"CM",bfq:"IN",bft:"PK",bfy:"IN",bg:"BG",bgc:"IN",bgn:"PK",bgx:"TR",bhb:"IN",bhi:"IN",bhk:"PH",bho:"IN",bi:"VU",bik:"PH",bin:"NG",bjj:"IN",bjn:"ID",bjt:"SN",bkm:"CM",bku:"PH",blt:"VN",bm:"ML",bmq:"ML",bn:"BD",bo:"CN",bpy:"IN",bqi:"IR",bqv:"CI",br:"FR",bra:"IN",brh:"PK",brx:"IN",bs:"BA",bsq:"LR",bss:"CM",bto:"PH",btv:"PK",bua:"RU",buc:"YT",bug:"ID",bum:"CM",bvb:"GQ",byn:"ER",byv:"CM",bze:"ML",ca:"ES",cch:"NG",ccp:"BD",ce:"RU",ceb:"PH",cgg:"UG",ch:"GU",chk:"FM",chm:"RU",cho:"US",chp:"CA",chr:"US",cja:"KH",cjm:"VN",ckb:"IQ",co:"FR",cop:"EG",cps:"PH",cr:"CA",crh:"UA",crj:"CA",crk:"CA",crl:"CA",crm:"CA",crs:"SC",cs:"CZ",csb:"PL",csw:"CA",ctd:"MM",cu:"RU","cu-Glag":"BG",cv:"RU",cy:"GB",da:"DK",dak:"US",dar:"RU",dav:"KE",dcc:"IN",de:"DE",den:"CA",dgr:"CA",dje:"NE",dnj:"CI",doi:"IN",dsb:"DE",dtm:"ML",dtp:"MY",dty:"NP",dua:"CM",dv:"MV",dyo:"SN",dyu:"BF",dz:"BT",ebu:"KE",ee:"GH",efi:"NG",egl:"IT",egy:"EG",eky:"MM",el:"GR",en:"US","en-Shaw":"GB",es:"ES",esu:"US",et:"EE",ett:"IT",eu:"ES",ewo:"CM",ext:"ES",fa:"IR",fan:"GQ",ff:"SN","ff-Adlm":"GN",ffm:"ML",fi:"FI",fia:"SD",fil:"PH",fit:"SE",fj:"FJ",fo:"FO",fon:"BJ",fr:"FR",frc:"US",frp:"FR",frr:"DE",frs:"DE",fub:"CM",fud:"WF",fuf:"GN",fuq:"NE",fur:"IT",fuv:"NG",fvr:"SD",fy:"NL",ga:"IE",gaa:"GH",gag:"MD",gan:"CN",gay:"ID",gbm:"IN",gbz:"IR",gcr:"GF",gd:"GB",gez:"ET",ggn:"NP",gil:"KI",gjk:"PK",gju:"PK",gl:"ES",glk:"IR",gn:"PY",gom:"IN",gon:"IN",gor:"ID",gos:"NL",got:"UA",grc:"CY","grc-Linb":"GR",grt:"IN",gsw:"CH",gu:"IN",gub:"BR",guc:"CO",gur:"GH",guz:"KE",gv:"IM",gvr:"NP",gwi:"CA",ha:"NG",hak:"CN",haw:"US",haz:"AF",he:"IL",hi:"IN",hif:"FJ",hil:"PH",hlu:"TR",hmd:"CN",hnd:"PK",hne:"IN",hnj:"LA",hnn:"PH",hno:"PK",ho:"PG",hoc:"IN",hoj:"IN",hr:"HR",hsb:"DE",hsn:"CN",ht:"HT",hu:"HU",hy:"AM",hz:"NA",ia:"FR",iba:"MY",ibb:"NG",id:"ID",ife:"TG",ig:"NG",ii:"CN",ik:"US",ikt:"CA",ilo:"PH",in:"ID",inh:"RU",is:"IS",it:"IT",iu:"CA",iw:"IL",izh:"RU",ja:"JP",jam:"JM",jgo:"CM",ji:"UA",jmc:"TZ",jml:"NP",jut:"DK",jv:"ID",jw:"ID",ka:"GE",kaa:"UZ",kab:"DZ",kac:"MM",kaj:"NG",kam:"KE",kao:"ML",kbd:"RU",kby:"NE",kcg:"NG",kck:"ZW",kde:"TZ",kdh:"TG",kdt:"TH",kea:"CV",ken:"CM",kfo:"CI",kfr:"IN",kfy:"IN",kg:"CD",kge:"ID",kgp:"BR",kha:"IN",khb:"CN",khn:"IN",khq:"ML",kht:"IN",khw:"PK",ki:"KE",kiu:"TR",kj:"NA",kjg:"LA",kk:"KZ","kk-Arab":"CN",kkj:"CM",kl:"GL",kln:"KE",km:"KH",kmb:"AO",kn:"IN",knf:"SN",ko:"KR",koi:"RU",kok:"IN",kos:"FM",kpe:"LR",krc:"RU",kri:"SL",krj:"PH",krl:"RU",kru:"IN",ks:"IN",ksb:"TZ",ksf:"CM",ksh:"DE",ku:"TR","ku-Arab":"IQ",kum:"RU",kv:"RU",kvr:"ID",kvx:"PK",kw:"GB",kxm:"TH",kxp:"PK",ky:"KG","ky-Arab":"CN","ky-Latn":"TR",la:"VA",lab:"GR",lad:"IL",lag:"TZ",lah:"PK",laj:"UG",lb:"LU",lbe:"RU",lbw:"ID",lcp:"CN",lep:"IN",lez:"RU",lg:"UG",li:"NL",lif:"NP","lif-Limb":"IN",lij:"IT",lis:"CN",ljp:"ID",lki:"IR",lkt:"US",lmn:"IN",lmo:"IT",ln:"CD",lo:"LA",lol:"CD",loz:"ZM",lrc:"IR",lt:"LT",ltg:"LV",lu:"CD",lua:"CD",luo:"KE",luy:"KE",luz:"IR",lv:"LV",lwl:"TH",lzh:"CN",lzz:"TR",mad:"ID",maf:"CM",mag:"IN",mai:"IN",mak:"ID",man:"GM","man-Nkoo":"GN",mas:"KE",maz:"MX",mdf:"RU",mdh:"PH",mdr:"ID",men:"SL",mer:"KE",mfa:"TH",mfe:"MU",mg:"MG",mgh:"MZ",mgo:"CM",mgp:"NP",mgy:"TZ",mh:"MH",mi:"NZ",min:"ID",mis:"IQ",mk:"MK",ml:"IN",mls:"SD",mn:"MN","mn-Mong":"CN",mni:"IN",mnw:"MM",moe:"CA",moh:"CA",mos:"BF",mr:"IN",mrd:"NP",mrj:"RU",mro:"BD",ms:"MY",mt:"MT",mtr:"IN",mua:"CM",mus:"US",mvy:"PK",mwk:"ML",mwr:"IN",mwv:"ID",mxc:"ZW",my:"MM",myv:"RU",myx:"UG",myz:"IR",mzn:"IR",na:"NR",nan:"CN",nap:"IT",naq:"NA",nb:"NO",nch:"MX",nd:"ZW",ndc:"MZ",nds:"DE",ne:"NP",new:"NP",ng:"NA",ngl:"MZ",nhe:"MX",nhw:"MX",nij:"ID",niu:"NU",njo:"IN",nl:"NL",nmg:"CM",nn:"NO",nnh:"CM",no:"NO",nod:"TH",noe:"IN",non:"SE",nqo:"GN",nr:"ZA",nsk:"CA",nso:"ZA",nus:"SS",nv:"US",nxq:"CN",ny:"MW",nym:"TZ",nyn:"UG",nzi:"GH",oc:"FR",om:"ET",or:"IN",os:"GE",osa:"US",otk:"MN",pa:"IN","pa-Arab":"PK",pag:"PH",pal:"IR","pal-Phlp":"CN",pam:"PH",pap:"AW",pau:"PW",pcd:"FR",pcm:"NG",pdc:"US",pdt:"CA",peo:"IR",pfl:"DE",phn:"LB",pka:"IN",pko:"KE",pl:"PL",pms:"IT",pnt:"GR",pon:"FM",pra:"PK",prd:"IR",ps:"AF",pt:"BR",puu:"GA",qu:"PE",quc:"GT",qug:"EC",raj:"IN",rcf:"RE",rej:"ID",rgn:"IT",ria:"IN",rif:"MA",rjs:"NP",rkt:"BD",rm:"CH",rmf:"FI",rmo:"CH",rmt:"IR",rmu:"SE",rn:"BI",rng:"MZ",ro:"RO",rob:"ID",rof:"TZ",rtm:"FJ",ru:"RU",rue:"UA",rug:"SB",rw:"RW",rwk:"TZ",ryu:"JP",sa:"IN",saf:"GH",sah:"RU",saq:"KE",sas:"ID",sat:"IN",sav:"SN",saz:"IN",sbp:"TZ",sc:"IT",sck:"IN",scn:"IT",sco:"GB",scs:"CA",sd:"PK","sd-Deva":"IN","sd-Khoj":"IN","sd-Sind":"IN",sdc:"IT",sdh:"IR",se:"NO",sef:"CI",seh:"MZ",sei:"MX",ses:"ML",sg:"CF",sga:"IE",sgs:"LT",shi:"MA",shn:"MM",si:"LK",sid:"ET",sk:"SK",skr:"PK",sl:"SI",sli:"PL",sly:"ID",sm:"WS",sma:"SE",smj:"SE",smn:"FI",smp:"IL",sms:"FI",sn:"ZW",snk:"ML",so:"SO",sou:"TH",sq:"AL",sr:"RS",srb:"IN",srn:"SR",srr:"SN",srx:"IN",ss:"ZA",ssy:"ER",st:"ZA",stq:"DE",su:"ID",suk:"TZ",sus:"GN",sv:"SE",sw:"TZ",swb:"YT",swc:"CD",swg:"DE",swv:"IN",sxn:"ID",syl:"BD",syr:"IQ",szl:"PL",ta:"IN",taj:"NP",tbw:"PH",tcy:"IN",tdd:"CN",tdg:"NP",tdh:"NP",te:"IN",tem:"SL",teo:"UG",tet:"TL",tg:"TJ","tg-Arab":"PK",th:"TH",thl:"NP",thq:"NP",thr:"NP",ti:"ET",tig:"ER",tiv:"NG",tk:"TM",tkl:"TK",tkr:"AZ",tkt:"NP",tl:"PH",tly:"AZ",tmh:"NE",tn:"ZA",to:"TO",tog:"MW",tpi:"PG",tr:"TR",tru:"TR",trv:"TW",ts:"ZA",tsd:"GR",tsf:"NP",tsg:"PH",tsj:"BT",tt:"RU",ttj:"UG",tts:"TH",ttt:"AZ",tum:"MW",tvl:"TV",twq:"NE",txg:"CN",ty:"PF",tyv:"RU",tzm:"MA",udm:"RU",ug:"CN","ug-Cyrl":"KZ",uga:"SY",uk:"UA",uli:"FM",umb:"AO",und:"US",unr:"IN","unr-Deva":"NP",unx:"IN",ur:"PK",uz:"UZ","uz-Arab":"AF",vai:"LR",ve:"ZA",vec:"IT",vep:"RU",vi:"VN",vic:"SX",vls:"BE",vmf:"DE",vmw:"MZ",vot:"RU",vro:"EE",vun:"TZ",wa:"BE",wae:"CH",wal:"ET",war:"PH",wbp:"AU",wbq:"IN",wbr:"IN",wls:"WF",wni:"KM",wo:"SN",wtm:"IN",wuu:"CN",xav:"BR",xcr:"TR",xh:"ZA",xlc:"TR",xld:"TR",xmf:"GE",xmn:"CN",xmr:"SD",xna:"SA",xnr:"IN",xog:"UG",xpr:"IR",xsa:"YE",xsr:"NP",yao:"MZ",yap:"FM",yav:"CM",ybb:"CM",yo:"NG",yrl:"BR",yua:"MX",yue:"HK","yue-Hans":"CN",za:"CN",zag:"SD",zdj:"KM",zea:"NL",zgh:"MA",zh:"CN","zh-Bopo":"TW","zh-Hanb":"TW","zh-Hant":"TW",zlm:"TG",zmi:"MY",zu:"ZA",zza:"TR"};var q5=require("liquidjs");var O2=require("lodash-es");var z=require("liquidjs");function q4(n){return class extends z.Tag{value;branches=[];elseTemplates=[];isBlock=!1;constructor(t,i,r){super(t,i,r);let o=this.tokenizer.p,a=this.tokenizer.readValue()?.getText();this.isBlock=!!a?.startsWith("block."),this.tokenizer.p=o,this.value=new z.Value(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let s=[],l=0,d=this.liquid.parser.parseStream(i).on("tag:when",u=>{if(l>0)return;s=[];let h=[];for(;!u.tokenizer.end();)h.push(u.tokenizer.readValueOrThrow()),u.tokenizer.skipBlank(),u.tokenizer.peek()===","?u.tokenizer.readTo(","):u.tokenizer.readTo("or");this.branches.push({values:h,templates:s})}).on("tag:else",()=>{l++,s=this.elseTemplates}).on("tag:endcase",()=>d.stop()).on("template",u=>{(s!==this.elseTemplates||l===1)&&s.push(u)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});d.start()}*render(t){let i=this.liquid.renderer,r=(0,z.toValue)(yield this.value.value(t,t.opts.lenientIf)),o=!1,a="";for(let s of this.branches)for(let l of s.values){let d=yield(0,z.evalToken)(l,t,t.opts.lenientIf);if(r===d){let u=yield i.renderTemplates(s.templates,t);a+=this.isBlock&&n.isEditor?`<span class="swell-block">${u}</span>`:u,o=!0;break}}return o||(a+=yield i.renderTemplates(this.elseTemplates,t)),a}}}var p3=require("liquidjs");var I2=["offset","limit","reversed"];function V4(n){return class extends p3.Tag{variable;collection;hash;templates;elseTemplates;constructor(t,i,r){super(t,i,r);let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readIdentifier(),s=this.tokenizer.readValue();if(!o.size()||a.content!=="in"||!s)throw new Error(`illegal tag: ${t.getText()}`);this.variable=o.content,this.collection=s,this.hash=new p3.Hash(this.tokenizer.remaining()),this.templates=[],this.elseTemplates=[];let l,d=this.liquid.parser.parseStream(i).on("start",()=>l=this.templates).on("tag:else",()=>l=this.elseTemplates).on("tag:endfor",()=>d.stop()).on("template",u=>l.push(u)).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});d.start()}*render(t,i){let r=this.liquid.renderer,o=yield(0,p3.evalToken)(this.collection,t);if(!o?._result&&o?._get?yield o._get():o instanceof Array||(o=X3(o)),!o.length){yield r.renderTemplates(this.elseTemplates,t,i);return}let a="continue-"+this.variable+"-"+this.collection.getText();t.push({continue:t.getRegister(a)});let s=yield this.hash.render(t);t.pop(),o=(this.liquid.options.orderedFilterParameters?Object.keys(s).filter(h=>I2.includes(h)):I2.filter(h=>s[h]!==void 0)).reduce((h,p)=>{switch(p){case"offset":return Y1(h,s.offset);case"limit":return Q1(h,s.limit);case"reversed":return J1(h);default:return h}},o),t.setRegister(a,(s.offset||0)+o.length);let d={forloop:new u3(o.length,this.collection.getText(),this.variable)};t.push(d);let u=0;for(let h of o){if(x(h)&&(h.index=u++),d[this.variable]=h,yield r.renderTemplates(this.templates,t,i),i.break){i.break=!1;break}i.continue=!1,d.forloop.next()}t.pop()}}}function J1(n){return[...n].reverse()}function Y1(n,e){return n.slice(e)}function Q1(n,e){return n.slice(0,e)}var W=require("liquidjs");var X1=["new_comment","guest_login"];function O4(n){return class extends W.Tag{formType;formConfig;templates=[];hash;arg;constructor(t,i,r){super(t,i,r);let{tokenizer:o}=t;for(this.formType=o.readValue()?.content,this.formConfig=n.theme.getFormConfig(this.formType),o.advance(),this.arg=o.readValue(),this.hash=new W.Hash(this.tokenizer.remaining());i.length;){let a=i.shift();if(W.TypeGuards.isTagToken(a)&&a.name==="endform")return;this.templates.push(r.parser.parseToken(a,i))}if(!(!this.formConfig&&!X1.includes(this.formType)))throw new Error(`tag ${t.getText()} not closed`)}*render(t){if(!this.formConfig)return`<!-- form '${this.formType}' not found in theme configuration -->`;let i=this.liquid.renderer,r=yield(0,W.evalToken)(this.arg,t),o=yield this.hash.render(t),a=t.getAll(),s=" "+Object.entries(o).reduce((m,[g,f])=>f!==!0?[...m,`${g}="${f}"`]:m,[]).join(" "),d=n.theme.formData[this.formConfig.id]||new O(this.formConfig.id),u="";if(n.theme.shopifyCompatibility){Object.assign(d,n.theme.shopifyCompatibility.getFormData(d));let m=yield n.theme.shopifyCompatibility.getAdaptedFormClientHtml(this.formConfig.id,a,r);m&&(u=yield n.renderTemplateString(m));let g=yield n.theme.shopifyCompatibility.getAdaptedFormClientParams(this.formConfig.id,a,r);g&&d.setParams(g)}t.push({form:{...r||void 0,...d}});let h=yield i.renderTemplates(this.templates,t),p=this.formConfig.params instanceof Array?yield Promise.all(this.formConfig.params.map(async m=>{let g=await n.renderTemplateString(m.value,{value:r});return`<input type="hidden" name="${m.name}" value="${g}" />`})):[],C=o.return_to||n.theme.globals.request?.path;return`
10
- <form action="${this.formConfig.url}" method="post" accept-charset="UTF-8" enctype="multipart/form-data"${s}>
8
+ `.replace(/^ {3} */gm,"").trim()}modify(e,t){switch(e){case"style":{if(this.resolveValidProperty(e,t)){switch(this.style=t,t){case"oblique":this.variant.slnt=1;break;case"italic":this.variant.ital=1;break;default:this.variant.slnt=0,this.variant.ital=0;break}break}return null}case"weight":{let i;switch(t){case"normal":i=400;break;case"bold":i=700;break;case"lighter":{this.weight<=400?i=100:this.weight<=700?i=400:i=700;break}case"bolder":{this.weight<400?i=400:this.weight<700?i=700:i=900;break}default:{switch(t.slice(0,1)){case"+":i=this.weight+Number.parseInt(t.slice(1),10);break;case"-":i=this.weight-Number.parseInt(t.slice(1),10);break;default:i=Number.parseInt(t,10);break}break}}let r=this.resolveValidProperty(e,i);if(r){this.weight=i,this.variant.wght=r;break}return null}case"wght":case"wdth":case"slnt":case"opsz":case"ital":{let i=this.resolveValidProperty(e,t);if(i){this.variant[e]=i,e==="slnt"&&i>0?this.style="oblique":e==="ital"&&i>0?this.style="italic":(e==="slnt"||e==="ital")&&(this.style="normal");break}return null}default:throw new Error(`Invalid font property: ${e}`)}return this.id=n.settingToString({variant:this.variant,family:this.family,weight:this.weight,style:this.style}),this}resolveValidProperty(e,t){if(!this.definition)return null;if(e==="style")switch(t){case"italic":return this.definition.axes.includes("ital")?"italic":null;case"oblique":return this.definition.axes.includes("slnt")?"oblique":null;default:return null}let i=typeof t=="string"?Number.parseInt(t,10):t;switch(e){case"wght":case"weight":return this.definition.variants.find(r=>r.wght===i)||null;case"wdth":return this.definition.variants.find(r=>r.wdth===i)||null;case"slnt":return this.definition.variants.find(r=>r.slnt===i)||null;case"opsz":return this.definition.variants.find(r=>r.opsz===i)||null;case"ital":return this.definition.variants.find(r=>r.ital===i)||null;default:return null}}};function Pt(n){return typeof n=="object"&&n!==null}function L2(n){return Pt(n)&&typeof n.style=="string"&&typeof n.family=="string"&&typeof n.weight=="number"&&typeof n.modify=="function"&&typeof n.googleFamily=="function"}var K=class{id;success=!1;errors=null;constructor(e){this.id=e}setSuccess(e=!0){this.success=e}setParams(e){Object.assign(this,e)}setErrors(e){this.errors=new Q3(e)}clearErrors(){this.errors=null}},Q3=class{errors;constructor(e){this.errors=e||[]}*[Symbol.iterator](){yield*this.errors}some(e,t){return this.errors.some(i=>e(i?.code),t)}};var A=require("lodash-es");var g3=require("lodash-es");var x4=require("liquidjs");var C3=class extends x4.Drop{i;length;name;test="test";index;index0;first;last;rindex;rindex0;constructor(e,t,i){super(),this.length=e,this.name=`${i}-${t}`,this.i=0,this.index=1,this.index0=0,this.first=!0,this.last=!1,this.rindex=e,this.rindex0=e-1}next(){this.i+=1,this.index+=1,this.index0+=1,this.first=!1,this.last=this.i===this.length-1,this.rindex-=1,this.rindex0-=1}valueOf(){return JSON.stringify(this)}};function q(n){return n instanceof x4.Drop&&p3(n.valueOf)?n.valueOf():n}function b2(n){return typeof n=="string"}function j4(n){return typeof n=="number"}function p3(n){return typeof n=="function"}function A2(n){return n==null}function n3(n){return Object.prototype.toString.call(n)==="[object Array]"}function v(n){switch(typeof n){case"object":case"function":return n!==null;default:return!1}}function vt(n){return v(n)&&Symbol.iterator in n}function R(n){return v(n)&&typeof n.then=="function"}function T2(n,e){return!Rt(n,e)}function Rt(n,e){return e.opts.jsTruthy?!n:n===!1||n===void 0||n===null}function P3(n){return v(n)&&p3(n.equals)}function _2(n){return A2(n)?[]:n3(n)?n:[n]}function X3(n){return n=q(n),n3(n)?n:b2(n)&&n.length>0?[n]:vt(n)?Array.from(n):v(n)?Object.entries(n).reduce((e,[t,i])=>(e.push({id:t,...i}),e),[]):[]}function Z4(n){return n=q(n),b2(n)?n:A2(n)?"":n3(n)?n.map(e=>Z4(e)).join(""):String(n)}function N(n){if(Array.isArray(n))return n.reduce((e,t,i)=>{if(Array.isArray(t)){let[r,a]=t;e[r]=a}else i%2===0&&(e[t]=n[i+1]);return e},{});if(v(n)){let e={},t=Object.values(n);for(let i=0;i<t.length;i+=2)e[t[i]]=t[i+1];return e}return{}}async function e4(n,e=0){let t=n;t instanceof T&&(t=await t.resolve()),typeof t>"u"?t=null:await M2(t);let i=new WeakSet;return JSON.stringify(t,(r,a)=>{if(v(a)){if(i.has(a))return;i.add(a)}return a},e)}async function M2(n,e=new WeakSet){await E2(n,async(t,i)=>{if(!v(i))return;let r=i[t];if(R(r))i[t]=await r,await M2(i[t],e);else if(v(r)){if(e.has(r))return!1;e.add(r)}})}async function E2(n,e){if(v(n))for(let[t,i]of Object.entries(n))await e(t,n)!==!1&&v(i)&&await E2(i,e)}var y=class n{props;stringProp;linkProps;constructor(e,t,i){return this.props=e,this.stringProp=t,this.linkProps=i,new Proxy(e,{get(r,a){let o=r;switch(a){case"toJSON":return e;case"clone":return()=>new n((0,g3.cloneDeep)(e),(0,g3.cloneDeep)(t),(0,g3.cloneDeep)(i));case"toString":{if(t)return()=>e[t];break}default:break}return o[a]instanceof z?o[a].resolve().then(s=>(o[a]=s,s),s=>(console.log(s),o[a]=null,null)):o[a]},getPrototypeOf(){return n.prototype}})}valueOf(){return this.stringProp?this.props[this.stringProp]:this}clone(){return new n({})}},z=class{handler;result;constructor(e){this.result=void 0,this.handler=e}async resolve(){return this.result===void 0&&(this.result=Promise.resolve().then(()=>{let e=this.handler();return this.handler=g3.noop,e}).then(e=>(e=e!==void 0?e:null,this.result=e,e))),this.result}};function w(n){return new z(n)}function Dt(n){return v(n)&&(R(n)||typeof n._resolve=="function")}function P2(n){return v(n)&&typeof n._resolve=="function"}async function xt(n){return Array.isArray(n)?Promise.all(n.map(e=>P2(e)?e._resolve():e)):P2(n)?n._resolve():n}async function v2(n,e){return xt(n).then(t=>Array.isArray(n)&&Array.isArray(t)?e(...t.map(i=>i||{})):Dt(t)?v2(t,e):e(t||{})).catch(t=>(console.log(t),null))}function d(n,e){return new z(()=>v2(n,e))}function N4(n,e,t,i,r){return d(e,a=>a[t]?._cloneWithCompatibilityResult(o=>({results:o?.results?.map(s=>{let l=i(n,s);return r&&r(l,s),l})}))||[])}function F4(n,e){return new y({directory:e.path,name:e.name,suffix:e.alt_name},"name")}function F(n,e,t,i){return e instanceof y?e.clone():new y({alt:d(e,r=>r.alt||t?.name),aspect_ratio:1,"attached_to_variant?":!0,height:w(()=>e.height),id:d(e,r=>r.file?.id),media_type:"image",position:null,presentation:{focal_point:null},preview_image:w(()=>e.file),product_id:w(()=>t?.id),src:d(e,async r=>r.file&&jt(r.file)),variants:null,width:w(()=>e.width)})}function jt(n){return new y({url:n.url,width:n.width,height:n.height},"url")}function W(n,e){return e instanceof y?e.clone():new y({alt:e.alt,id:e.id||e.file?.id,media_type:"image",position:null,preview_image:e.file})}function V(n,e,t,i=0){if(e instanceof y)return e.clone();let r=t||e.product||{};return new y({available:d(e,a=>a.stock_status==="in_stock"||!a.stock_status),barcode:null,compare_at_price:w(()=>e.orig_price),featured_image:d([r,e],(a,o)=>{let s=o.images?.[0]||a.images?.[0];return s&&W(n,s)}),featured_media:d([r,e],(a,o)=>{let s=o.images?.[0]||a.images?.[0];return s&&W(n,s)}),id:d(e,a=>a.id),image:d([r,e],(a,o)=>{let s=o.images?.[0]||a.images?.[0];return s&&W(n,s)}),incoming:!1,inventory_management:null,inventory_policy:null,inventory_quantity:1/0,matched:!1,metafields:null,next_incoming_date:null,options:Zt(r,e),option1:I4(r,e,0),option2:I4(r,e,1),option3:I4(r,e,2),price:w(()=>e.price!==null&&e.price!==void 0?e.price:r.price),product:d(r,a=>P(n,a,i+1)),quantity_price_breaks:null,"quantity_price_breaks_configured?":d(e,()=>e.prices?.length>0),quantity_rule:{min:1,max:null,increment:1},requires_selling_plan:!1,requires_shipping:d(r,()=>r.delivery?.contains("shipment")),selected:!1,selected_selling_plan_allocation:null,selling_plan_allocations:null,sku:d(e,a=>a.sku),store_availabilities:null,taxable:!0,title:w(()=>e.name),unit_price:w(()=>e.price),unit_price_measurement:null,url:w(()=>r.url),weight:d(e,a=>a.weight),weight_in_unit:w(()=>e.weight_unit),weight_unit:d(e,a=>a.weight_unit)})}function Zt(n,e){return d([n,e],(t,i)=>{let r=t.options?.reduce((a,o)=>{for(let s of o.values)a[s.id]||(a[s.id]=s.name);return a},{});return i.option_value_ids?.map(a=>r[a]).filter(Boolean)})}function I4(n,e,t){return d([n,e],(i,r)=>{let a=i.options?.reduce((o,s)=>{for(let l of s.values)o[l.id]||(o[l.id]=l.name);return o},{});return r.option_value_ids?.[t]&&a[r.option_value_ids[t]]})}function P(n,e,t=0){return e instanceof y?e.clone():t>1?null:new y({available:d(e,i=>i.stock_status==="in_stock"||!i.stock_status),collections:[],compare_at_price:w(()=>e.orig_price),compare_at_price_max:null,compare_at_price_min:null,compare_at_price_varies:!1,content:w(()=>e.description),created_at:w(()=>e.date_created),description:d(e,i=>i.description),featured_image:d(e,i=>i.images?.[0]&&F(n,i.images[0],i)),featured_media:d(e,i=>i.images?.[0]&&W(n,i.images[0])),first_available_variant:d(e,i=>H4(i,{})),"gift_card?":d(e,i=>i.type==="giftcard"),handle:w(()=>e.slug),has_only_default_variant:d(e,i=>!i.options?.length),id:d(e,i=>i.id),images:d(e,i=>i.images?.map(r=>r&&F(n,r,i))),media:d(e,i=>i.images?.map(r=>W(n,r))),metafields:null,options:d(e,i=>i.options?.map(r=>r.active&&r.name).filter(Boolean)),options_by_name:d(e,i=>i.options?.reduce((r,a,o)=>(a.active&&(r[a.name?.toLowerCase()]={name:a.name,position:o+1,selected_value:null,values:a.values?.map(s=>R2({available:!0,id:s.id,name:s.name,product_url:null,selected:!1,swatch:null,variant:null}))}),r),{})),options_with_values:d(e,i=>{let a=H4(i,n.swell.queryParams)?.option_value_ids||[];return i.options?.map((o,s)=>({name:o.name,position:s+1,selected_value:null,values:o.values?.map(l=>R2({available:!0,id:l.id,name:l.name,product_url:null,selected:a.includes(l.id),swatch:null,variant:null}))}))}),price:d(e,i=>i.price),price_max:d(e,i=>i.variants?.results?.reduce((r,a)=>Math.max(r,a.price),0)),price_min:d(e,i=>i.variants?.results?.reduce((r,a)=>Math.min(r,a.price),1/0)),price_varies:d(e,i=>i.variants?.results?.some(r=>r.price!==i.price)),published_at:w(()=>e.date_created),"quantity_price_breaks_configured?":d(e,i=>i.prices?.length>0),quantity_rule:{min:1,max:null,increment:1},requires_selling_plan:!1,selected_or_first_available_selling_plan_allocation:null,selected_or_first_available_variant:d(e,i=>{let r=H4(i,n.swell.queryParams);return r?V(n,r,i,t+1):P(n,i,t+1)}),selected_selling_plan:null,selected_variant:null,selling_plan_groups:null,tags:d(e,i=>i.tags),template_suffix:null,title:w(()=>e.name),type:d(e,i=>i.type),url:d(e,i=>`/products/${i.slug}`),variants:d(e,i=>i.variants?.results?.map(a=>V(n,a,i,t+1)).reverse()),vendor:null})}function R2(n){return new y(n,"name")}function H4(n,e){let{variant:t,option_values:i}=e,r=Nt(n),a=null;if(t)a=r.find(o=>o.id===t);else if(i){let o=i.split(",");a=r.find(s=>s.option_value_ids.every(l=>o.includes(l)))}return a||r?.[0]||null}function Nt(n){return(n.variants?.results?.slice()?.reverse()||[]).filter(e=>e.stock_status==="in_stock"||!e.stock_status)}function f3(n,e,t,i={}){return new y({...e,discount_allocations:e.discounts?.map(r=>{let a=t.discounts?.find(s=>s.id===r.id),o=(a?.source_id===t.coupon_id?t.coupon?.name:t.promotions?.results?.find(s=>a?.source_id===s.id)?.name)||a?.source_id;return[{amount:r.amount,discount_application:a&&{target_selection:a.type==="order"?"all":["shipment","product"].includes(a.type)?"entitled":"explicit",target_type:a.type==="shipment"?"shipping_line":"line_item",title:o,total_allocated_amount:a.amount,type:a.type==="promo"?"automatic":a.type==="coupon"?"discount_code":"manual",value:a.rule?.value_type==="fixed"?a.rule?.value_fixed:a.rule?.value_percent,value_type:a.rule?.value_type==="fixed"?"fixed_amount":"percentage"}}]}),error_message:null,final_line_price:e.price_total-e.discount_total,final_price:e.price-e.discount_each,fulfillment_service:"manual",gift_card:e.delivery==="giftcard",grams:e.shipment_weight,id:e.id,image:d([e.product,e.variant],(r,a)=>r?.images?.[0]&&F(n,r.images?.[0],r,a)),item_components:e.bundle_items?.map(r=>f3(n,r,t,{...i,bundle:!0})),key:e.id,line_level_discount_allocations:[],line_level_total_discount:e.discount_total,message:null,options_with_values:e.options,original_line_price:e.price*e.quantity,original_price:e.price,product:d(e.product,()=>e.product&&P(n,e.product)),product_id:e.product_id,properties:e.metadata,quantity:e.quantity,requires_shipping:e.delivery==="shipment",selling_plan_allocation:null,sku:d(e.product,r=>r.sku),successfully_fulfilled_quantity:e.quantity_delivered,tax_lines:e.taxes?.map(r=>{let a=t.taxes?.find(o=>o.id===r.id);return{price:r.amount,rate:(a?.rate||0)/100,rate_percentage:a?.rate||0,title:r.name}}),taxable:e.tax_total>0,title:d([e.product,e.variant],(r,a)=>`${r?.name||e.product_id}${a?.name?` - ${a.name}`:""}`),url:d(e.product,r=>`/products/${r.slug}`),url_to_remove:null,variant:d([e.product,e.variant],()=>e.variant?V(n,e.variant,e.product):P(n,e.product)),vendor:null,discounts:null,line_price:e.price_total,price:e.price,total_discount:e.discount_total})}function t4(n,e="quantity"){return n?.reduce((t,i)=>t+i[e],0)||0}function w3(n,e){return e instanceof y?e.clone():new y({attributes:w(()=>e.metadata),cart_level_discount_applications:[],checkout_charge_amount:w(()=>e.grand_total),currency:d(e,t=>t.currency),discount_applications:[],duties_included:w(()=>e.item_tax_included),"empty?":d(e,t=>!t.items?.length),item_count:d(e,t=>t4(t.items)),items:d(e,t=>t.items?.map(i=>f3(n,i,t))),items_subtotal_price:w(()=>e.sub_total),note:w(()=>e.comments),original_total_price:d(e,t=>t.sub_total+t.item_discount),requires_shipping:w(()=>!!e.shipment_delivery),taxes_included:w(()=>!!e.item_tax_included),total_discount:w(()=>e.discount_total),total_price:w(()=>e.grand_total),total_weight:w(()=>e.item_shipment_weight)})}function r3(n,e,t){return e instanceof y?e.clone():new y({address1:d(e,i=>i.address1),address2:d(e,i=>i.address2),city:d(e,i=>i.city),company:d(e,i=>i.company),country:d(e,i=>Ft(n,i.country)),country_code:d(e,i=>i.country_code),first_name:d(e,i=>i.first_name||t?.first_name),id:d(e,i=>i.id),last_name:d(e,i=>i.last_name||t?.last_name),name:d(e,i=>i.name||t?.name),phone:d(e,i=>i.phone),province:d(e,i=>i.state),province_code:d(e,i=>String(i.state||"").substring(0,2)),street:d(e,i=>D2(i.address1,i.address2)),summary:d(e,i=>D2(i.name||t?.name,i.company,i.address1,i.address2,i.city,i.state,i.country)),url:d(e,i=>`/account/addresses/${i.id}`),zip:d(e,i=>i.zip)})}function D2(...n){return n.filter(Boolean).join(`
9
+ `)}function Ft(n,e){return new y({available_languages:[],continent:"",currency:"",iso_code:e,market:null,name:e,"popular?":!0,unit_system:"metric"},"iso_code")}function a3(n,e,t){if(e instanceof y)return e.clone();let i=t||e.account,r=d(e,a=>a.items?.map(o=>f3(n,o,a,{order:!0})));return new y({attributes:w(()=>e.metadata),billing_address:d(e,()=>r3(n,e.billing)),cancelled:w(()=>e.canceled),cancelled_at:w(()=>e.date_canceled),confirmation_number:w(()=>e.number),created_at:w(()=>e.date_created),customer:i&&w(()=>J(n,i)),customer_order_url:d(e,a=>`/account/orders/${a.id}`),customer_url:d(e,a=>`/account/orders/${a.id}`),email:i&&d(i,a=>a.email),financial_status:d(e,a=>x2(a)),financial_status_label:d(e,a=>It(a)),fulfillment_status:d(e,a=>j2(a)),fulfillment_status_label:d(e,a=>Ht(a)),id:d(e,a=>a.id),item_count:d(e,a=>t4(a.items)),line_items:r,line_items_subtotal_price:w(()=>e.sub_total),name:w(()=>e.number),number:d(e,a=>a.number),note:w(()=>e.comments),phone:i&&d([e,i],(a,o)=>a.billing?.phone||a.shipping.phone||o.phone),shipping_address:d(e,()=>r3(n,e.shipping)),shipping_methods:w(()=>{let a=qt(e);return a&&[a]}),shipping_price:w(()=>e.shipment_total),subtotal_line_items:r,subtotal_price:w(()=>e.sub_total),tags:null,tax_price:w(()=>e.tax_total),total_discounts:w(()=>e.discount_total),total_net_amount:w(()=>e.grand_total),total_price:w(()=>e.grand_total),total_refunded_amount:w(()=>e.refund_total)})}function x2(n){return Gt(n)?"refund_due":n.payment_total>0&&n.payment_total>n.refund_total&&n.payment_total<n.grand_total&&Bt(n)>0?"partially_paid":n.refund_total>0&&n.refund_total<n.payment_total?"partially_refunded":n.refund_total>0&&n.refund_total===n.payment_total?"refunded":n.payment_total>0&&n.payment_balance===0?"paid":n.authorized_payment_id&&!n.paid?"authorized":n.grand_total>0?"unpaid":"complete"}function j2(n){return n.canceled?"canceled":n.hold||n.status==="hold"?"on_hold":n.delivered?n.item_quantity_returned>0||n.return_total>0?n.item_quantity_returned===n.item_quantity?"returned":"rartially_returned":"fulfilled":n.item_quantity_delivered>0?"partially_fulfilled":n.item_quantity_deliverable>0?"unfulfilled":"complete"}function It(n){return Z2(x2(n))}function Ht(n){return Z2(j2(n))}function Z2(n){let e=n.replace(/\_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}function Bt(n){return!n.canceled&&n.payment_balance<0?-n.payment_balance:0}function Gt(n){if(n.canceled)return n.payment_total-n.refund_total;if(n.payment_balance>0)return n.payment_balance}function qt(n){return n.shipping?.service?new y({id:n.shipping.service,handle:`${n.shipping.service}-${n.shipping.price}`,original_price:n.shipment_price,price:n.shipment_total,tax_lines:[],title:n.shipping.service_name||n.shipping.service}):null}function J(n,e){return e instanceof y?e.clone():new y({accepts_marketing:w(()=>e.email_optin),addresses:N4(n,e,"addresses",r3),addresses_count:d(e.addresses,t=>t.count||0),"b2b?":d(e,()=>e.type==="business"),company_available_locations:[],current_company:null,current_location:null,default_address:d(e,t=>r3(n,t.shipping||t.billing||{},t)),email:d(e,t=>t.email),first_name:d(e,t=>t.first_name),has_account:!0,"has_avatar?":!1,id:d(e,t=>t.id),last_name:d(e,t=>t.last_name),last_order:w(()=>Vt(n,e)),name:d(e,t=>t.name),orders:N4(n,e,"orders",a3),orders_count:w(()=>e.order_count),phone:d(e,t=>t.phone||t.shipping?.phone||t.billing?.phone),tags:d(e,t=>t.tags||[t.group]),tax_exempt:w(()=>e.tax_exempt),total_spent:w(()=>e.order_value)})}async function Vt(n,e){let t=await e.id,i=await n.swell.getCachedResource(`last-order-${t}`,[],async()=>(await n.swell.storefront.account.listOrders({limit:1}))?.results?.[0]);if(i)return a3(n,i,e)}var i4={url:"/:themes:configs/{id}/file/data",conditions:{file:{$or:[{$and:[{content_type:{$regex:"^(?!image)"}},{content_type:{$regex:"^(?!video)"}}]},{content_type:{$regex:"^image/svg"}}]},$or:[{file_path:{$regex:"^(?!theme/assets/)"}},{file_path:{$regex:".liquid.[a-zA-Z0-9]+$"}},{file_path:{$regex:".(css|js|svg)$"}}]}},B4={countries:[{id:"US",name:"United States",state_label:"State"},{id:"CA",name:"Canada",state_label:"Province"},{id:"AU",name:"Australia",state_label:"State/territory"},{id:"GB",name:"United Kingdom"},{id:"AF",name:"Afghanistan"},{id:"AX",name:"Aland Islands"},{id:"AL",name:"Albania"},{id:"DZ",name:"Algeria",state_label:"Province"},{id:"AD",name:"Andorra"},{id:"AO",name:"Angola"},{id:"AI",name:"Anguilla"},{id:"AG",name:"Antigua And Barbuda"},{id:"AR",name:"Argentina"},{id:"AM",name:"Armenia"},{id:"AW",name:"Aruba"},{id:"AT",name:"Austria"},{id:"AZ",name:"Azerbaijan"},{id:"BS",name:"Bahamas"},{id:"BH",name:"Bahrain"},{id:"BD",name:"Bangladesh"},{id:"BB",name:"Barbados"},{id:"BY",name:"Belarus"},{id:"BE",name:"Belgium"},{id:"BZ",name:"Belize"},{id:"BJ",name:"Benin"},{id:"BM",name:"Bermuda"},{id:"BT",name:"Bhutan"},{id:"BO",name:"Bolivia"},{id:"BA",name:"Bosnia And Herzegovina"},{id:"BW",name:"Botswana"},{id:"BV",name:"Bouvet Island"},{id:"BR",name:"Brazil",state_label:"State"},{id:"IO",name:"British Indian Ocean Territory"},{id:"BN",name:"Brunei"},{id:"BG",name:"Bulgaria"},{id:"BF",name:"Burkina Faso"},{id:"BU",name:"Burma"},{id:"BI",name:"Burundi"},{id:"KH",name:"Cambodia"},{id:"CM",name:"Cameroon"},{id:"CV",name:"Cape Verde"},{id:"KY",name:"Cayman Islands"},{id:"CF",name:"Central African Republic"},{id:"TD",name:"Chad"},{id:"CL",name:"Chile"},{id:"CN",name:"China"},{id:"CX",name:"Christmas Island"},{id:"CC",name:"Cocos (Keeling) Islands"},{id:"CO",name:"Colombia"},{id:"KM",name:"Comoros"},{id:"CG",name:"Congo"},{id:"CD",name:"Congo, The Democratic Republic Of The"},{id:"CK",name:"Cook Islands"},{id:"CR",name:"Costa Rica"},{id:"CI",name:"Cote D'Ivoire"},{id:"HR",name:"Croatia"},{id:"CU",name:"Cuba"},{id:"CY",name:"Cyprus"},{id:"CZ",name:"Czech Republic"},{id:"DK",name:"Denmark"},{id:"DJ",name:"Djibouti"},{id:"DM",name:"Dominica"},{id:"DO",name:"Dominican Republic"},{id:"EC",name:"Ecuador"},{id:"EG",name:"Egypt"},{id:"SV",name:"El Salvador"},{id:"GQ",name:"Equatorial Guinea"},{id:"ER",name:"Eritrea"},{id:"EE",name:"Estonia"},{id:"ET",name:"Ethiopia"},{id:"FK",name:"Falkland Islands (Malvinas)"},{id:"FO",name:"Faroe Islands"},{id:"FJ",name:"Fiji"},{id:"FI",name:"Finland"},{id:"FR",name:"France"},{id:"GF",name:"French Guiana"},{id:"PF",name:"French Polynesia"},{id:"TF",name:"French Southern Territories"},{id:"GA",name:"Gabon"},{id:"GM",name:"Gambia"},{id:"GE",name:"Georgia"},{id:"DE",name:"Germany"},{id:"GH",name:"Ghana"},{id:"GI",name:"Gibraltar"},{id:"GR",name:"Greece"},{id:"GL",name:"Greenland"},{id:"GD",name:"Grenada"},{id:"GP",name:"Guadeloupe"},{id:"GT",name:"Guatemala",state_label:"Department"},{id:"GG",name:"Guernsey"},{id:"GN",name:"Guinea"},{id:"GW",name:"Guinea Bissau"},{id:"GY",name:"Guyana"},{id:"HT",name:"Haiti"},{id:"HM",name:"Heard Island And Mcdonald Islands"},{id:"VA",name:"Holy See (Vatican City State)"},{id:"HN",name:"Honduras"},{id:"HK",name:"Hong Kong"},{id:"HU",name:"Hungary"},{id:"IS",name:"Iceland"},{id:"IN",name:"India",state_label:"State"},{id:"ID",name:"Indonesia"},{id:"IR",name:"Iran, Islamic Republic Of"},{id:"IQ",name:"Iraq"},{id:"IE",name:"Ireland"},{id:"IM",name:"Isle Of Man"},{id:"IL",name:"Israel"},{id:"IT",name:"Italy"},{id:"JM",name:"Jamaica"},{id:"JP",name:"Japan"},{id:"JE",name:"Jersey"},{id:"JO",name:"Jordan"},{id:"KZ",name:"Kazakhstan"},{id:"KE",name:"Kenya"},{id:"KI",name:"Kiribati"},{id:"KP",name:"Korea, North"},{id:"KR",name:"Korea, South"},{id:"KW",name:"Kuwait"},{id:"KG",name:"Kyrgyzstan"},{id:"LA",name:"Laos"},{id:"LV",name:"Latvia"},{id:"LB",name:"Lebanon"},{id:"LS",name:"Lesotho"},{id:"LR",name:"Liberia"},{id:"LY",name:"Libya"},{id:"LI",name:"Liechtenstein"},{id:"LT",name:"Lithuania"},{id:"LU",name:"Luxembourg"},{id:"MO",name:"Macao"},{id:"MK",name:"Macedonia"},{id:"MG",name:"Madagascar"},{id:"MW",name:"Malawi"},{id:"MY",name:"Malaysia",state_label:"State/territory"},{id:"MV",name:"Maldives"},{id:"ML",name:"Mali"},{id:"MT",name:"Malta"},{id:"MQ",name:"Martinique"},{id:"MR",name:"Mauritania"},{id:"MU",name:"Mauritius"},{id:"YT",name:"Mayotte"},{id:"MX",name:"Mexico",state_label:"State"},{id:"MD",name:"Moldova"},{id:"MC",name:"Monaco"},{id:"MN",name:"Mongolia"},{id:"ME",name:"Montenegro"},{id:"MS",name:"Montserrat"},{id:"MA",name:"Morocco"},{id:"MZ",name:"Mozambique"},{id:"MM",name:"Myanmar"},{id:"NA",name:"Namibia"},{id:"NR",name:"Nauru"},{id:"NP",name:"Nepal"},{id:"NL",name:"Netherlands"},{id:"AN",name:"Netherlands Antilles"},{id:"NC",name:"New Caledonia"},{id:"NZ",name:"New Zealand",state_label:"Region"},{id:"NI",name:"Nicaragua"},{id:"NE",name:"Niger"},{id:"NG",name:"Nigeria"},{id:"NU",name:"Niue"},{id:"NF",name:"Norfolk Island"},{id:"NO",name:"Norway"},{id:"OM",name:"Oman"},{id:"PK",name:"Pakistan"},{id:"PS",name:"Palestinian Territory, Occupied"},{id:"PA",name:"Panama"},{id:"PG",name:"Papua New Guinea"},{id:"PY",name:"Paraguay"},{id:"PE",name:"Peru"},{id:"PH",name:"Philippines",state_label:"Region"},{id:"PN",name:"Pitcairn"},{id:"PL",name:"Poland"},{id:"PT",name:"Portugal"},{id:"QA",name:"Qatar"},{id:"RE",name:"Reunion"},{id:"RO",name:"Romania"},{id:"RU",name:"Russia"},{id:"RW",name:"Rwanda"},{id:"BL",name:"Saint Barthelemy"},{id:"SH",name:"Saint Helena"},{id:"KN",name:"Saint Kitts And Nevis"},{id:"LC",name:"Saint Lucia"},{id:"MF",name:"Saint Martin"},{id:"PM",name:"Saint Pierre And Miquelon"},{id:"VC",name:"Saint Vincent"},{id:"WS",name:"Samoa"},{id:"SM",name:"San Marino"},{id:"ST",name:"Sao Tome And Principe"},{id:"SA",name:"Saudi Arabia"},{id:"SN",name:"Senegal"},{id:"RS",name:"Serbia"},{id:"SC",name:"Seychelles"},{id:"SL",name:"Sierra Leone"},{id:"SG",name:"Singapore"},{id:"SK",name:"Slovakia"},{id:"SI",name:"Slovenia"},{id:"SB",name:"Solomon Islands"},{id:"SO",name:"Somalia"},{id:"ZA",name:"South Africa"},{id:"GS",name:"South Georgia And The South Sandwich Islands"},{id:"ES",name:"Spain",state_label:"Province"},{id:"LK",name:"Sri Lanka"},{id:"SD",name:"Sudan"},{id:"SR",name:"Suriname"},{id:"SJ",name:"Svalbard And Jan Mayen"},{id:"SZ",name:"Swaziland"},{id:"SE",name:"Sweden"},{id:"CH",name:"Switzerland"},{id:"SY",name:"Syria"},{id:"TW",name:"Taiwan"},{id:"TJ",name:"Tajikistan"},{id:"TZ",name:"Tanzania"},{id:"TH",name:"Thailand"},{id:"TL",name:"Timor-Leste"},{id:"TG",name:"Togo"},{id:"TK",name:"Tokelau"},{id:"TO",name:"Tonga"},{id:"TT",name:"Trinidad and Tobago"},{id:"TN",name:"Tunisia"},{id:"TR",name:"Turkey"},{id:"TM",name:"Turkmenistan"},{id:"TC",name:"Turks And Caicos Islands"},{id:"TV",name:"Tuvalu"},{id:"UG",name:"Uganda"},{id:"UA",name:"Ukraine"},{id:"AE",name:"United Arab Emirates",state_label:"Emirate"},{id:"UM",name:"United States Minor Outlying Islands"},{id:"UY",name:"Uruguay"},{id:"UZ",name:"Uzbekistan"},{id:"VU",name:"Vanuatu"},{id:"VE",name:"Venezuela"},{id:"VN",name:"Vietnam"},{id:"VG",name:"Virgin Islands, British"},{id:"WF",name:"Wallis And Futuna"},{id:"EH",name:"Western Sahara"},{id:"YE",name:"Yemen"},{id:"ZM",name:"Zambia"},{id:"ZW",name:"Zimbabwe"}],states:[{country:"US",id:"AL",name:"Alabama"},{country:"US",id:"AK",name:"Alaska"},{country:"US",id:"AZ",name:"Arizona"},{country:"US",id:"AR",name:"Arkansas"},{country:"US",id:"CA",name:"California"},{country:"US",id:"CO",name:"Colorado"},{country:"US",id:"CT",name:"Connecticut"},{country:"US",id:"DE",name:"Delaware"},{country:"US",id:"DC",name:"District of Columbia"},{country:"US",id:"FL",name:"Florida"},{country:"US",id:"GA",name:"Georgia"},{country:"US",id:"HI",name:"Hawaii"},{country:"US",id:"ID",name:"Idaho"},{country:"US",id:"IL",name:"Illinois"},{country:"US",id:"IN",name:"Indiana"},{country:"US",id:"IA",name:"Iowa"},{country:"US",id:"KS",name:"Kansas"},{country:"US",id:"KY",name:"Kentucky"},{country:"US",id:"LA",name:"Louisiana"},{country:"US",id:"ME",name:"Maine"},{country:"US",id:"MD",name:"Maryland"},{country:"US",id:"MA",name:"Massachusetts"},{country:"US",id:"MI",name:"Michigan"},{country:"US",id:"MN",name:"Minnesota"},{country:"US",id:"MS",name:"Mississippi"},{country:"US",id:"MO",name:"Missouri"},{country:"US",id:"MT",name:"Montana"},{country:"US",id:"NE",name:"Nebraska"},{country:"US",id:"NV",name:"Nevada"},{country:"US",id:"NH",name:"New Hampshire"},{country:"US",id:"NJ",name:"New Jersey"},{country:"US",id:"NM",name:"New Mexico"},{country:"US",id:"NY",name:"New York"},{country:"US",id:"NC",name:"North Carolina"},{country:"US",id:"ND",name:"North Dakota"},{country:"US",id:"OH",name:"Ohio"},{country:"US",id:"OK",name:"Oklahoma"},{country:"US",id:"OR",name:"Oregon"},{country:"US",id:"PA",name:"Pennsylvania"},{country:"US",id:"RI",name:"Rhode Island"},{country:"US",id:"SC",name:"South Carolina"},{country:"US",id:"SD",name:"South Dakota"},{country:"US",id:"TN",name:"Tennessee"},{country:"US",id:"TX",name:"Texas"},{country:"US",id:"UT",name:"Utah"},{country:"US",id:"VT",name:"Vermont"},{country:"US",id:"VA",name:"Virginia"},{country:"US",id:"WA",name:"Washington"},{country:"US",id:"WV",name:"West Virginia"},{country:"US",id:"WI",name:"Wisconsin"},{country:"US",id:"WY",name:"Wyoming"},{country:"US",id:"AS",name:"American Samoa"},{country:"US",id:"AA",name:"Armed Forces Americas"},{country:"US",id:"AE",name:"Armed Forces Europe"},{country:"US",id:"AP",name:"Armed Forces Pacific"},{country:"US",id:"FM",name:"Federated States of Micronesia"},{country:"US",id:"GU",name:"Guam"},{country:"US",id:"MH",name:"Marshall Islands"},{country:"US",id:"MP",name:"Northern Mariana Islands"},{country:"US",id:"PW",name:"Palau"},{country:"US",id:"PR",name:"Puerto Rico"},{country:"US",id:"VI",name:"Virgin Islands"},{country:"CA",id:"AB",name:"Alberta"},{country:"CA",id:"BC",name:"British Columbia"},{country:"CA",id:"MB",name:"Manitoba"},{country:"CA",id:"NB",name:"New Brunswick"},{country:"CA",id:"NL",name:"Newfoundland"},{country:"CA",id:"NT",name:"Northwest Territories"},{country:"CA",id:"NS",name:"Nova Scotia"},{country:"CA",id:"NU",name:"Nunavut"},{country:"CA",id:"ON",name:"Ontario"},{country:"CA",id:"PE",name:"Prince Edward Island"},{country:"CA",id:"QC",name:"Quebec"},{country:"CA",id:"SK",name:"Saskatchewan"},{country:"CA",id:"YT",name:"Yukon"},{country:"AU",id:"ACT",name:"Australian Capital Territory"},{country:"AU",id:"NSW",name:"New South Wales"},{country:"AU",id:"NT",name:"Northern Territory"},{country:"AU",id:"QLD",name:"Queensland"},{country:"AU",id:"SA",name:"South Australia"},{country:"AU",id:"TAS",name:"Tasmania"},{country:"AU",id:"VIC",name:"Victoria"},{country:"AU",id:"WA",name:"Western Australia"},{country:"BR",id:"AC",name:"Acre"},{country:"BR",id:"AL",name:"Alagoas"},{country:"BR",id:"AP",name:"Amapa"},{country:"BR",id:"AM",name:"Amazonas"},{country:"BR",id:"BA",name:"Bahia"},{country:"BR",id:"CE",name:"Ceara"},{country:"BR",id:"BRDF",name:"Distrito Federal"},{country:"BR",id:"ES",name:"Espirito Santo"},{country:"BR",id:"GO",name:"Goias;"},{country:"BR",id:"MA",name:"Maranhao"},{country:"BR",id:"MT",name:"Mato Grosso"},{country:"BR",id:"MS",name:"Mato Grosso do Sul"},{country:"BR",id:"MG",name:"Minas Gerais"},{country:"BR",id:"PA",name:"Para;"},{country:"BR",id:"PB",name:"Paraiba"},{country:"BR",id:"PR",name:"Parana"},{country:"BR",id:"PE",name:"Pernambuco"},{country:"BR",id:"PI",name:"Piaui"},{country:"BR",id:"RJ",name:"Rio de Janeiro"},{country:"BR",id:"RN",name:"Rio Grande do Norte"},{country:"BR",id:"RS",name:"Rio Grande do Sul"},{country:"BR",id:"RO",name:"Rondonia"},{country:"BR",id:"RR",name:"Roraima"},{country:"BR",id:"SC",name:"Santa Catarina"},{country:"BR",id:"SP",name:"Sao Paulo"},{country:"BR",id:"SE",name:"Sergipe"},{country:"BR",id:"TO",name:"Tocantins"},{country:"GT",id:"Alta Verapaz",name:"Alta Verapaz"},{country:"GT",id:"Baja Verapaz",name:"Baja Verapaz"},{country:"GT",id:"Chimaltenango",name:"Chimaltenango"},{country:"GT",id:"Chiquimula",name:"Chiquimula"},{country:"GT",id:"El Progreso",name:"El Progreso"},{country:"GT",id:"Escuintla",name:"Escuintla"},{country:"GT",id:"Guatemala",name:"Guatemala"},{country:"GT",id:"Huehuetenango",name:"Huehuetenango"},{country:"GT",id:"Izabal",name:"Izabal"},{country:"GT",id:"Jalapa",name:"Jalapa"},{country:"GT",id:"Jutiapa",name:"Jutiapa"},{country:"GT",id:"Peten",name:"Peten"},{country:"GT",id:"Quetzaltenango",name:"Quetzaltenango"},{country:"GT",id:"Quiche",name:"Quiche"},{country:"GT",id:"Retalhuleu",name:"Retalhuleu"},{country:"GT",id:"Sacatepequez",name:"Sacatepequez"},{country:"GT",id:"San Marcos",name:"San Marcos"},{country:"GT",id:"Santa Rosa",name:"Santa Rosa"},{country:"GT",id:"Solola",name:"Solola"},{country:"GT",id:"Suchitepequez",name:"Suchitepequez"},{country:"GT",id:"Totonicapan",name:"Totonicapan"},{country:"GT",id:"Zacapa",name:"Zacapa"},{country:"IN",id:"AN",name:"Andaman and Nicobar"},{country:"IN",id:"AP",name:"Andhra Pradesh"},{country:"IN",id:"AR",name:"Arunachal Pradesh"},{country:"IN",id:"AS",name:"Assam"},{country:"IN",id:"BR",name:"Bihar"},{country:"IN",id:"CH",name:"Chandigarh"},{country:"IN",id:"CT",name:"Chattisgarh"},{country:"IN",id:"DN",name:"Dadra and Nagar Haveli"},{country:"IN",id:"DD",name:"Daman and Diu"},{country:"IN",id:"DL",name:"Delhi"},{country:"IN",id:"GA",name:"Goa"},{country:"IN",id:"GJ",name:"Gujarat"},{country:"IN",id:"HR",name:"Haryana"},{country:"IN",id:"HP",name:"Himachal Pradesh"},{country:"IN",id:"JK",name:"Jammu and Kashmir"},{country:"IN",id:"JH",name:"Jharkhand"},{country:"IN",id:"KA",name:"Karnataka"},{country:"IN",id:"KL",name:"Kerala"},{country:"IN",id:"LD",name:"Lakshadweep"},{country:"IN",id:"MP",name:"Madhya Pradesh"},{country:"IN",id:"MH",name:"Maharashtra"},{country:"IN",id:"MN",name:"Manipur"},{country:"IN",id:"ML",name:"Meghalaya"},{country:"IN",id:"MZ",name:"Mizoram"},{country:"IN",id:"NL",name:"Nagaland"},{country:"IN",id:"OR",name:"Orissa"},{country:"IN",id:"PY",name:"Puducherry"},{country:"IN",id:"PB",name:"Punjab"},{country:"IN",id:"RJ",name:"Rajasthan"},{country:"IN",id:"SK",name:"Sikkim"},{country:"IN",id:"TN",name:"Tamil Nadu"},{country:"IN",id:"TR",name:"Tripura"},{country:"IN",id:"UP",name:"Uttar Pradesh"},{country:"IN",id:"UT",name:"Uttarakhand"},{country:"IN",id:"WB",name:"West Bengal"},{country:"MY",id:"JHR",name:"Johor"},{country:"MY",id:"KDH",name:"Kedah"},{country:"MY",id:"KTN",name:"Kelantan"},{country:"MY",id:"KUL",name:"Kuala Lumpur"},{country:"MY",id:"LBN",name:"Labuan"},{country:"MY",id:"MLK",name:"Malacca"},{country:"MY",id:"NSN",name:"Negeri Sembilan"},{country:"MY",id:"PHG",name:"Pahang"},{country:"MY",id:"PNG",name:"Penang"},{country:"MY",id:"PRK",name:"Perak"},{country:"MY",id:"PLS",name:"Perlis"},{country:"MY",id:"PJY",name:"Putrajaya"},{country:"MY",id:"SBH",name:"Sabah"},{country:"MY",id:"SRW",name:"Sarawak"},{country:"MY",id:"SGR",name:"Selangor"},{country:"MY",id:"TRG",name:"Terengganu"},{country:"MX",id:"AG",name:"Aguascalientes"},{country:"MX",id:"BJ",name:"Baja California"},{country:"MX",id:"BS",name:"Baja California Sur"},{country:"MX",id:"CI",name:"Chihuahua"},{country:"MX",id:"CL",name:"Colima"},{country:"MX",id:"CP",name:"Campeche"},{country:"MX",id:"CU",name:"Coahuila"},{country:"MX",id:"CH",name:"Chiapas"},{country:"MX",id:"DF",name:"Distrito Federal"},{country:"MX",id:"DG",name:"Durango"},{country:"MX",id:"GR",name:"Guerrero"},{country:"MX",id:"GJ",name:"Guanajuato"},{country:"MX",id:"HG",name:"Hidalgo"},{country:"MX",id:"JA",name:"Jalisco"},{country:"MX",id:"MH",name:"Michoacan"},{country:"MX",id:"MR",name:"Morelos"},{country:"MX",id:"EM",name:"Mexico"},{country:"MX",id:"NA",name:"Nayarit"},{country:"MX",id:"NL",name:"Nuevo Leon"},{country:"MX",id:"OA",name:"Oaxaca"},{country:"MX",id:"PU",name:"Puebla"},{country:"MX",id:"QR",name:"Quintana Roo"},{country:"MX",id:"QA",name:"Queretaro"},{country:"MX",id:"SI",name:"Sinaloa"},{country:"MX",id:"SL",name:"San Luis Potosi"},{country:"MX",id:"SO",name:"Sonora"},{country:"MX",id:"TA",name:"Tabasco"},{country:"MX",id:"TL",name:"Tlaxcala"},{country:"MX",id:"TM",name:"Tamaulipas"},{country:"MX",id:"VZ",name:"Veracruz"},{country:"MX",id:"YC",name:"Yucatan"},{country:"MX",id:"ZT",name:"Zacatecas"},{country:"NZ",id:"AUK",name:"Auckland"},{country:"NZ",id:"BOP",name:"Bay of Plenty"},{country:"NZ",id:"CAN",name:"Canterbury"},{country:"NZ",id:"GIS",name:"Gisborne"},{country:"NZ",id:"HKB",name:"Hawke's Bay"},{country:"NZ",id:"MWT",name:"Manawatu-Wanganui"},{country:"NZ",id:"MBH",name:"Marlborough"},{country:"NZ",id:"NSN",name:"Nelson"},{country:"NZ",id:"NTL",name:"Northland"},{country:"NZ",id:"OTA",name:"Otago"},{country:"NZ",id:"STL",name:"Southland"},{country:"NZ",id:"TKI",name:"Taranaki"},{country:"NZ",id:"NZTAS",name:"Tasman"},{country:"NZ",id:"WKO",name:"Waikato"},{country:"NZ",id:"WGN",name:"Wellington"},{country:"NZ",id:"WTC",name:"West Coast"},{country:"ES",id:"A Coruna",name:"A Coruna"},{country:"ES",id:"Alava",name:"Alava"},{country:"ES",id:"Albacete",name:"Albacete"},{country:"ES",id:"Alicante",name:"Alicante"},{country:"ES",id:"Almeria",name:"Almeria"},{country:"ES",id:"Asturias",name:"Asturias"},{country:"ES",id:"Avila",name:"Avila"},{country:"ES",id:"Badajoz",name:"Badajoz"},{country:"ES",id:"Baleares",name:"Baleares"},{country:"ES",id:"Barcelona",name:"Barcelona"},{country:"ES",id:"Burgos",name:"Burgos"},{country:"ES",id:"Caceres",name:"Caceres"},{country:"ES",id:"Cadiz",name:"Cadiz"},{country:"ES",id:"Cantabria",name:"Cantabria"},{country:"ES",id:"Castellon",name:"Castellon"},{country:"ES",id:"Ceuta",name:"Ceuta"},{country:"ES",id:"Ciudad Real",name:"Ciudad Real"},{country:"ES",id:"Cordoba",name:"Cordoba"},{country:"ES",id:"Cuenca",name:"Cuenca"},{country:"ES",id:"Girona",name:"Girona"},{country:"ES",id:"Granada",name:"Granada"},{country:"ES",id:"Guadalajara",name:"Guadalajara"},{country:"ES",id:"Guipuzcoa",name:"Guipuzcoa"},{country:"ES",id:"Huelva",name:"Huelva"},{country:"ES",id:"Huesca",name:"Huesca"},{country:"ES",id:"Jaen",name:"Jaen"},{country:"ES",id:"La Rioja",name:"La Rioja"},{country:"ES",id:"Las Palmas",name:"Las Palmas"},{country:"ES",id:"Leon",name:"Leon"},{country:"ES",id:"Lleida",name:"Lleida"},{country:"ES",id:"Lugo",name:"Lugo"},{country:"ES",id:"Madrid",name:"Madrid"},{country:"ES",id:"Malaga",name:"Malaga"},{country:"ES",id:"Melilla",name:"Melilla"},{country:"ES",id:"Murcia",name:"Murcia"},{country:"ES",id:"Navarra",name:"Navarra"},{country:"ES",id:"Ourense",name:"Ourense"},{country:"ES",id:"Palencia",name:"Palencia"},{country:"ES",id:"Pontevedra",name:"Pontevedra"},{country:"ES",id:"Salamanca",name:"Salamanca"},{country:"ES",id:"Santa Cruz de Tenerife",name:"Santa Cruz de Tenerife"},{country:"ES",id:"Segovia",name:"Segovia"},{country:"ES",id:"Sevilla",name:"Sevilla"},{country:"ES",id:"Soria",name:"Soria"},{country:"ES",id:"Tarragona",name:"Tarragona"},{country:"ES",id:"Teruel",name:"Teruel"},{country:"ES",id:"Toledo",name:"Toledo"},{country:"ES",id:"Valencia",name:"Valencia"},{country:"ES",id:"Valladolid",name:"Valladolid"},{country:"ES",id:"Vizcaya",name:"Vizcaya"},{country:"ES",id:"Zamora",name:"Zamora"},{country:"ES",id:"Zaragoza",name:"Zaragoza"},{country:"AE",id:"Abu Dhabi",name:"Abu Dhabi"},{country:"AE",id:"Ajman",name:"Ajman"},{country:"AE",id:"Dubai",name:"Dubai"},{country:"AE",id:"Fujairah",name:"Fujairah"},{country:"AE",id:"Ras al-Khaimah",name:"Ras al-Khaimah"},{country:"AE",id:"Sharjah",name:"Sharjah"},{country:"AE",id:"Umm al-Quwain",name:"Umm al-Quwain"},{country:"DZ",id:"DZ-01",name:"Adrar"},{country:"DZ",id:"DZ-44",name:"A\xEFn Defla"},{country:"DZ",id:"DZ-46",name:"A\xEFn T\xE9mouchent"},{country:"DZ",id:"DZ-16",name:"Algiers"},{country:"DZ",id:"DZ-23",name:"Annaba"},{country:"DZ",id:"DZ-05",name:"Batna"},{country:"DZ",id:"DZ-08",name:"B\xE9char"},{country:"DZ",id:"DZ-06",name:"B\xE9ja\xEFa"},{country:"DZ",id:"DZ-53",name:"B\xE9ni Abb\xE8s"},{country:"DZ",id:"DZ-07",name:"Biskra"},{country:"DZ",id:"DZ-09",name:"Blida"},{country:"DZ",id:"DZ-52",name:"Bordj Baji Mokhtar"},{country:"DZ",id:"DZ-34",name:"Bordj Bou Arr\xE9ridj"},{country:"DZ",id:"DZ-10",name:"Bou\xEFra"},{country:"DZ",id:"DZ-35",name:"Boumerd\xE8s"},{country:"DZ",id:"DZ-02",name:"Chlef"},{country:"DZ",id:"DZ-25",name:"Constantine"},{country:"DZ",id:"DZ-56",name:"Djanet"},{country:"DZ",id:"DZ-17",name:"Djelfa"},{country:"DZ",id:"DZ-32",name:"El Bayadh"},{country:"DZ",id:"DZ-49",name:"El M'Ghair"},{country:"DZ",id:"DZ-50",name:"El Menia"},{country:"DZ",id:"DZ-39",name:"El Oued"},{country:"DZ",id:"DZ-36",name:"El Tarf"},{country:"DZ",id:"DZ-47",name:"Gharda\xEFa"},{country:"DZ",id:"DZ-24",name:"Guelma"},{country:"DZ",id:"DZ-33",name:"Illizi"},{country:"DZ",id:"DZ-58",name:"In Guezzam"},{country:"DZ",id:"DZ-57",name:"In Salah"},{country:"DZ",id:"DZ-18",name:"Jijel"},{country:"DZ",id:"DZ-40",name:"Khenchela"},{country:"DZ",id:"DZ-03",name:"Laghouat"},{country:"DZ",id:"DZ-28",name:"M'Sila"},{country:"DZ",id:"DZ-29",name:"Mascara"},{country:"DZ",id:"DZ-26",name:"M\xE9d\xE9a"},{country:"DZ",id:"DZ-43",name:"Mila"},{country:"DZ",id:"DZ-27",name:"Mostaganem"},{country:"DZ",id:"DZ-45",name:"Na\xE2ma"},{country:"DZ",id:"DZ-31",name:"Oran"},{country:"DZ",id:"DZ-30",name:"Ouargla"},{country:"DZ",id:"DZ-51",name:"Ouled Djellal"},{country:"DZ",id:"DZ-04",name:"Oum El Bouaghi"},{country:"DZ",id:"DZ-48",name:"Relizane"},{country:"DZ",id:"DZ-20",name:"Sa\xEFda"},{country:"DZ",id:"DZ-19",name:"S\xE9tif"},{country:"DZ",id:"DZ-22",name:"Sidi Bel Abb\xE8s"},{country:"DZ",id:"DZ-21",name:"Skikda"},{country:"DZ",id:"DZ-41",name:"Souk Ahras"},{country:"DZ",id:"DZ-11",name:"Tamanrasset"},{country:"DZ",id:"DZ-12",name:"T\xE9bessa"},{country:"DZ",id:"DZ-14",name:"Tiaret"},{country:"DZ",id:"DZ-54",name:"Timimoun"},{country:"DZ",id:"DZ-37",name:"Tindouf"},{country:"DZ",id:"DZ-42",name:"Tipaza"},{country:"DZ",id:"DZ-38",name:"Tissemsilt"},{country:"DZ",id:"DZ-15",name:"Tizi Ouzou"},{country:"DZ",id:"DZ-13",name:"Tlemcen"},{country:"DZ",id:"DZ-55",name:"Touggourt"},{country:"PH",id:"PH-00",name:"National Capital Region [NCR]"},{country:"PH",id:"PH-01",name:"Ilocos [I]"},{country:"PH",id:"PH-02",name:"Cagayan Valley [II]"},{country:"PH",id:"PH-03",name:"Central Luzon [III]"},{country:"PH",id:"PH-05",name:"Bicol [V]"},{country:"PH",id:"PH-06",name:"Western Visayas [VI]"},{country:"PH",id:"PH-07",name:"Central Visayas [VII]"},{country:"PH",id:"PH-08",name:"Eastern Visayas [VIII]"},{country:"PH",id:"PH-09",name:"Zamboanga Peninsula [IX]"},{country:"PH",id:"PH-10",name:"Northern Mindanao [X]"},{country:"PH",id:"PH-11",name:"Davao [XI]"},{country:"PH",id:"PH-12",name:"Soccsksargen [XII]"},{country:"PH",id:"PH-13",name:"Caraga [XIII]"},{country:"PH",id:"PH-14",name:"Autonomous Region in Muslim Mindanao [ARMM]"},{country:"PH",id:"PH-15",name:"Cordillera Administrative Region [CAR]"},{country:"PH",id:"PH-40",name:"Calabarzon [IV-A]"},{country:"PH",id:"PH-41",name:"Mimaropa [IV-B]"}],timezones:[{id:"Pacific/Kiritimati",name:"Line Islands Time"},{id:"Pacific/Enderbury",name:"Phoenix Islands Time"},{id:"Pacific/Tongatapu",name:"Tonga Time"},{id:"Pacific/Chatham",name:"Chatham Daylight Time"},{id:"Asia/Kamchatka",name:"Petropavlovsk-Kamchatski Time"},{id:"Pacific/Auckland",name:"New Zealand Daylight Time"},{id:"Pacific/Fiji",name:"Fiji Time"},{id:"Pacific/Norfolk",name:"Norfolk Time"},{id:"Pacific/Guadalcanal",name:"Solomon Islands Time"},{id:"Australia/Lord_Howe",name:"Lord Howe Summer Time"},{id:"Australia/Brisbane",name:"Australian Eastern Standard Time (Brisbane)"},{id:"Australia/Sydney",name:"Australian Eastern Standard Time (Sydney)"},{id:"Australia/Adelaide",name:"Australian Central Standard Time (Adelaide)"},{id:"Australia/Darwin",name:"Australian Central Standard Time (Darwin)"},{id:"Asia/Seoul",name:"Korea Standard Time"},{id:"Asia/Tokyo",name:"Japan Standard Time"},{id:"Asia/Hong_Kong",name:"Hong Kong Time"},{id:"Asia/Kuala_Lumpur",name:"Malaysia Time"},{id:"Asia/Manila",name:"Philippines Time"},{id:"Asia/Shanghai",name:"China Standard Time (Shanghai)"},{id:"Asia/Singapore",name:"Singapore Time"},{id:"Asia/Taipei",name:"China Standard Time (Taipei)"},{id:"Australia/Perth",name:"Australian Western Standard Time"},{id:"Asia/Bangkok",name:"Indochina Time (Bangkok)"},{id:"Asia/Jakarta",name:"West Indonesia Time"},{id:"Asia/Saigon",name:"Indochina Time (Saigon)"},{id:"Asia/Rangoon",name:"Myanmar Time"},{id:"Asia/Dacca",name:"Bangladesh Time"},{id:"Asia/Katmandu",name:"Nepal Time"},{id:"Asia/Calcutta",name:"India Standard Time (Calcutta)"},{id:"Asia/Colombo",name:"India Standard Time (Colombo)"},{id:"Asia/Karachi",name:"Pakistan Summer Time"},{id:"Asia/Tashkent",name:"Uzbekistan Time"},{id:"Asia/Yekaterinburg",name:"Yekaterinburg Time"},{id:"Asia/Kabul",name:"Afghanistan Time"},{id:"Asia/Baku",name:"Azerbaijan Time"},{id:"Asia/Dubai",name:"Gulf Standard Time"},{id:"Asia/Tbilisi",name:"Georgia Time"},{id:"Asia/Yerevan",name:"Armenia Time"},{id:"Asia/Tehran",name:"Iran Standard Time"},{id:"Africa/Nairobi",name:"Eastern African Time"},{id:"Asia/Baghdad",name:"Arabia Standard Time (Baghdad)"},{id:"Asia/Kuwait",name:"Arabia Standard Time (Kuwait)"},{id:"Asia/Riyadh",name:"Arabia Standard Time (Riyadh)"},{id:"Europe/Moscow",name:"Moscow Standard Time"},{id:"Africa/Cairo",name:"Eastern European Time (Cairo)"},{id:"Africa/Johannesburg",name:"South Africa Standard Time"},{id:"Asia/Beirut",name:"Eastern European Time (Beirut)"},{id:"Asia/Jerusalem",name:"Israel Standard Time"},{id:"Europe/Athens",name:"Eastern European Time (Athens)"},{id:"Europe/Bucharest",name:"Eastern European Time (Bucharest)"},{id:"Europe/Helsinki",name:"Eastern European Time (Helsinki)"},{id:"Europe/Istanbul",name:"Eastern European Time (Istanbul)"},{id:"Europe/Minsk",name:"Eastern European Time (Minsk)"},{id:"Europe/Amsterdam",name:"Central European Time (Amsterdam)"},{id:"Europe/Berlin",name:"Central European Time (Berlin)"},{id:"Europe/Brussels",name:"Central European Time (Brussels)"},{id:"Europe/Prague",name:"Central European Time (Prague)"},{id:"Europe/Rome",name:"Central European Time (Rome)"},{id:"Europe/Dublin",name:"Irish Summer Time"},{id:"Europe/Lisbon",name:"Western European Summer Time"},{id:"Europe/London",name:"British Summer Time"},{id:"GMT",name:"Greenwich Mean Time"},{id:"America/Scoresbysund",name:"East Greenland Time"},{id:"Atlantic/Azores",name:"Azores Time"},{id:"Atlantic/Cape_Verde",name:"Cape Verde Time"},{id:"Atlantic/South_Georgia",name:"South Georgia Standard Time"},{id:"America/Buenos_Aires",name:"Argentine Summer Time"},{id:"America/Sao_Paulo",name:"Brasilia Summer Time"},{id:"America/St_Johns",name:"Newfoundland Daylight Time"},{id:"America/Halifax",name:"Atlantic Daylight Time (Halifax)"},{id:"America/Puerto_Rico",name:"Atlantic Standard Time"},{id:"America/Santiago",name:"Chile Summer Time"},{id:"Atlantic/Bermuda",name:"Atlantic Daylight Time (Bermuda)"},{id:"America/Caracas",name:"Venezuela Time"},{id:"America/Bogota",name:"Colombia Time"},{id:"America/Indianapolis",name:"Eastern Daylight Time (Indianapolis)"},{id:"America/Lima",name:"Peru Time"},{id:"America/New_York",name:"Eastern Daylight Time (New York)"},{id:"America/Panama",name:"Eastern Standard Time (Panama)"},{id:"America/Chicago",name:"Central Daylight Time (Chicago)"},{id:"America/El_Salvador",name:"Central Standard Time (El Salvador)"},{id:"America/Mexico_City",name:"Central Standard Time (Mexico City)"},{id:"America/Denver",name:"Mountain Daylight Time"},{id:"America/Phoenix",name:"Mountain Standard Time"},{id:"America/Los_Angeles",name:"Pacific Daylight Time"},{id:"America/Tijuana",name:"Pacific Standard Time"},{id:"Pacific/Pitcairn",name:"Pitcairn Standard Time"},{id:"America/Anchorage",name:"Alaska Daylight Time"},{id:"Pacific/Gambier",name:"Gambier Time"},{id:"Pacific/Marquesas",name:"Marquesas Time"},{id:"Pacific/Honolulu",name:"Hawaii Standard Time"},{id:"America/Atka",name:"Hawaii-Aleutian Standard Time"},{id:"Pacific/Niue",name:"Niue Time"},{id:"Pacific/Pago_Pago",name:"Samoa Standard Time"}],locales:[{id:"af",name:"Afrikaans"},{id:"af-ZA",name:"Afrikaans (South Africa)"},{id:"az",name:"Azerbaijani"},{id:"az-AZ",name:"Azerbaijani (Azerbaijani)"},{id:"id",name:"Indonesian"},{id:"id-ID",name:"Indonesian (Indonesia)"},{id:"ms",name:"Malay"},{id:"ms-MY",name:"Malay (Malaysia)"},{id:"ca",name:"Catalan"},{id:"ca-ES",name:"Catalan (Spain)"},{id:"cs",name:"Czech"},{id:"cs-CZ",name:"Czech (Czech Republic)"},{id:"da",name:"Danish"},{id:"da-DK",name:"Danish (Denmark)"},{id:"de",name:"German"},{id:"de-DE",name:"German (Germany)"},{id:"de-CH",name:"German (Switzerland)"},{id:"de-AT",name:"German (Austria)"},{id:"et",name:"Estonian"},{id:"et-EE",name:"Estonian (Estonia)"},{id:"en",name:"English"},{id:"en-AU",name:"English (Australia)"},{id:"en-CA",name:"English (Canada)"},{id:"en-IE",name:"English (Ireland)"},{id:"en-NZ",name:"English (New Zealand)"},{id:"en-GB",name:"English (United Kingdom)"},{id:"en-US",name:"English (United States)"},{id:"es",name:"Spanish"},{id:"es-AR",name:"Spanish (Argentina)"},{id:"es-CL",name:"Spanish (Chile)"},{id:"es-CO",name:"Spanish (Colombia)"},{id:"es-CR",name:"Spanish (Costa Rica)"},{id:"es-ES",name:"Spanish (Spain)"},{id:"es-MX",name:"Spanish (Mexico)"},{id:"es-PA",name:"Spanish (Panama)"},{id:"es-PE",name:"Spanish (Peru)"},{id:"es-VE",name:"Spanish (Venezuela)"},{id:"fil",name:"Filipino"},{id:"fil-PH",name:"Filipino (Philippines)"},{id:"fr",name:"French"},{id:"fr-CA",name:"French (Canada)"},{id:"fr-FR",name:"French (France)"},{id:"fr-CH",name:"French (Switzerland)"},{id:"gl",name:"Galician"},{id:"gl-ES",name:"Galician (Spain)"},{id:"hr",name:"Croatian"},{id:"hr-HR",name:"Croatian (Croatia)"},{id:"it",name:"Italian"},{id:"it-IT",name:"Italian (Italy)"},{id:"it-CH",name:"Italian (Switzerland)"},{id:"sw",name:"Swahili"},{id:"sw-KE",name:"Swahili (Kenya)"},{id:"sw-KE",name:"Swahili (Tanzania)"},{id:"lv",name:"Latvian"},{id:"lv-LV",name:"Latvian (Latvia)"},{id:"lt",name:"Lithuanian"},{id:"lt-LT",name:"Lithuanian (Lithuania)"},{id:"hu",name:"Hungarian"},{id:"hu-HU",name:"Hungarian (Hungary)"},{id:"nl",name:"Dutch"},{id:"nl-NL",name:"Dutch (Netherlands)"},{id:"nb",name:"Norwegian Bokm\xE5l"},{id:"nb-NO",name:"Norwegian Bokm\xE5l (Norway)"},{id:"nn",name:"Norwegian Nynorsk"},{id:"nn-NO",name:"Norwegian Nynorsk (Norway)"},{id:"pl",name:"Polish"},{id:"pl-PL",name:"Polish (Poland)"},{id:"pt",name:"Portuguese"},{id:"pt-BR",name:"Portuguese (Brazil)"},{id:"pt-PT",name:"Portuguese (Portugal)"},{id:"ro",name:"Romanian"},{id:"ro-MD",name:"Romanian (Moldova)"},{id:"ro-RO",name:"Romanian (Romania)"},{id:"sq",name:"Albanian"},{id:"sq-AL",name:"Albanian (Albania)"},{id:"sk",name:"Slovak"},{id:"sk-SK",name:"Slovak (Slovakia)"},{id:"sl",name:"Slovenian"},{id:"sl-SI",name:"Slovenian (Slovenia)"},{id:"fi",name:"Finnish"},{id:"fi-FI",name:"Finnish (Finland)"},{id:"sv",name:"Swedish"},{id:"sv-FI",name:"Swedish (Finland)"},{id:"sv-SE",name:"Swedish (Sweden)"},{id:"vi",name:"Vietnamese"},{id:"vi-VN",name:"Vietnamese (Vietnam)"},{id:"tr",name:"Turkish"},{id:"tr-TR",name:"Turkish (Turkey)"},{id:"is",name:"Icelandic"},{id:"is-IS",name:"Icelandic (Iceland)"},{id:"el",name:"Greek"},{id:"el-CY",name:"Greek (Cyprus)"},{id:"el-GR",name:"Greek (Greece)"},{id:"sr",name:"Serbian"},{id:"sr-RS",name:"Serbian (Serbia)"},{id:"be",name:"Belarusian"},{id:"be-BY",name:"Belarusian (Belarus)"},{id:"bg",name:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},{id:"bg-BG",name:"Bulgarian (Bulgaria)"},{id:"mk",name:"Macedonian"},{id:"mk-MK",name:"Macedonian (Macedonia)"},{id:"ru",name:"Russian"},{id:"ru-MD",name:"Russian (Moldova)"},{id:"ru-RU",name:"Russian (Russia)"},{id:"ru-UA",name:"Russian (Ukraine)"},{id:"uk",name:"Ukrainian"},{id:"uk-UA",name:"Ukrainian (Ukraine)"},{id:"he",name:"Hebrew"},{id:"he-IL",name:"Hebrew (Israel)"},{id:"ar",name:"Arabic"},{id:"ar-DZ",name:"Arabic (Algeria)"},{id:"ar-KW",name:"Arabic (Kuwait)"},{id:"ar-MA",name:"Arabic (Morocco)"},{id:"ar-SA",name:"Arabic (Saudi Arabia)"},{id:"ar-EG",name:"Arabic (Egypt)"},{id:"hi",name:"Hindi"},{id:"hi-IN",name:"Hindi (India)"},{id:"th",name:"Thai"},{id:"th-TH",name:"Thai (Thailand)"},{id:"zh",name:"Chinese"},{id:"zh-CN",name:"Chinese (China)"},{id:"zh-HK",name:"Chinese (Hong Kong)"},{id:"zh-TW",name:"Chinese (Taiwan)"},{id:"ja",name:"Japanese"},{id:"ja-JP",name:"Japanese (Japan)"},{id:"ko",name:"Korean"},{id:"ko-KR",name:"Korean (South Korea)"},{id:"km",name:"Khmer"},{id:"km-KH",name:"Khmer (Cambodia)"}],currencies:[{id:"AFN",name:"Afghan Afghani"},{id:"ALL",name:"Albanian Lek"},{id:"DZD",name:"Algerian Dinar"},{id:"AOA",name:"Angolan Kwanza"},{id:"ARS",name:"Argentine Peso"},{id:"AMD",name:"Armenian Dram"},{id:"AWG",name:"Aruban Florin"},{id:"AUD",name:"Australian Dollar"},{id:"AZN",name:"Azerbaijani Manat"},{id:"AZM",name:"Azerbaijani Manat (1993-2006)"},{id:"BSD",name:"Bahamian Dollar"},{id:"BHD",name:"Bahraini Dinar"},{id:"BDT",name:"Bangladeshi Taka"},{id:"BBD",name:"Barbadian Dollar"},{id:"BYR",name:"Belarusian Ruble"},{id:"BZD",name:"Belize Dollar"},{id:"BMD",name:"Bermudan Dollar"},{id:"BTN",name:"Bhutanese Ngultrum"},{id:"BOB",name:"Bolivian Boliviano"},{id:"BAM",name:"Bosnia-Herzegovina Convertible Mark"},{id:"BWP",name:"Botswanan Pula"},{id:"BRL",name:"Brazilian Real"},{id:"GBP",name:"British Pound Sterling"},{id:"BND",name:"Brunei Dollar"},{id:"BGN",name:"Bulgarian Lev"},{id:"BUK",name:"Burmese Kyat"},{id:"BIF",name:"Burundian Franc"},{id:"XOF",name:"CFA Franc BCEAO"},{id:"XPF",name:"CFP Franc"},{id:"KHR",name:"Cambodian Riel"},{id:"CAD",name:"Canadian Dollar"},{id:"CVE",name:"Cape Verdean Escudo"},{id:"KYD",name:"Cayman Islands Dollar"},{id:"CLP",name:"Chilean Peso"},{id:"CNY",name:"Chinese Yuan Renminbi"},{id:"COP",name:"Colombian Peso"},{id:"KMF",name:"Comorian Franc"},{id:"CDF",name:"Congolese Franc"},{id:"CRC",name:"Costa Rican Col\xF3n"},{id:"HRK",name:"Croatian Kuna"},{id:"CUP",name:"Cuban Peso"},{id:"CZK",name:"Czech Republic Koruna"},{id:"DKK",name:"Danish Krone"},{id:"DJF",name:"Djiboutian Franc"},{id:"DOP",name:"Dominican Peso"},{id:"XCD",name:"East Caribbean Dollar"},{id:"EGP",name:"Egyptian Pound"},{id:"GQE",name:"Equatorial Guinean Ekwele"},{id:"ERN",name:"Eritrean Nakfa"},{id:"EEK",name:"Estonian Kroon"},{id:"ETB",name:"Ethiopian Birr"},{id:"EUR",name:"Euro"},{id:"FKP",name:"Falkland Islands Pound"},{id:"FJD",name:"Fijian Dollar"},{id:"GMD",name:"Gambian Dalasi"},{id:"GEK",name:"Georgian Kupon Larit"},{id:"GEL",name:"Georgian Lari"},{id:"GHS",name:"Ghanaian Cedi"},{id:"GIP",name:"Gibraltar Pound"},{id:"GTQ",name:"Guatemalan Quetzal"},{id:"GNF",name:"Guinean Franc"},{id:"GYD",name:"Guyanaese Dollar"},{id:"HTG",name:"Haitian Gourde"},{id:"HNL",name:"Honduran Lempira"},{id:"HKD",name:"Hong Kong Dollar"},{id:"HUF",name:"Hungarian Forint"},{id:"ISK",name:"Icelandic Kr\xF3na"},{id:"INR",name:"Indian Rupee"},{id:"IDR",name:"Indonesian Rupiah"},{id:"IRR",name:"Iranian Rial"},{id:"IQD",name:"Iraqi Dinar"},{id:"ILS",name:"Israeli New Sheqel"},{id:"JMD",name:"Jamaican Dollar"},{id:"JPY",name:"Japanese Yen"},{id:"JOD",name:"Jordanian Dinar"},{id:"KZT",name:"Kazakhstan Tenge"},{id:"KES",name:"Kenyan Shilling"},{id:"KWD",name:"Kuwaiti Dinar"},{id:"KGS",name:"Kyrgystani Som"},{id:"LAK",name:"Laotian Kip"},{id:"LVL",name:"Latvian Lats"},{id:"LBP",name:"Lebanese Pound"},{id:"LSL",name:"Lesotho Loti"},{id:"LRD",name:"Liberian Dollar"},{id:"LYD",name:"Libyan Dinar"},{id:"LTL",name:"Lithuanian Litas"},{id:"MOP",name:"Macanese Pataca"},{id:"MKD",name:"Macedonian Denar"},{id:"MGA",name:"Malagasy Ariary"},{id:"MWK",name:"Malawian Kwacha"},{id:"MYR",name:"Malaysian Ringgit"},{id:"MVR",name:"Maldivian Rufiyaa"},{id:"MRO",name:"Mauritanian Ouguiya"},{id:"MUR",name:"Mauritian Rupee"},{id:"MXN",name:"Mexican Peso"},{id:"MDL",name:"Moldovan Leu"},{id:"MNT",name:"Mongolian Tugrik"},{id:"MAD",name:"Moroccan Dirham"},{id:"MZN",name:"Mozambican Metical"},{id:"MMK",name:"Myanma Kyat"},{id:"NAD",name:"Namibian Dollar"},{id:"NPR",name:"Nepalese Rupee"},{id:"ANG",name:"Netherlands Antillean Guilder"},{id:"TWD",name:"New Taiwan Dollar"},{id:"NZD",name:"New Zealand Dollar"},{id:"NIC",name:"Nicaraguan Cordoba"},{id:"NGN",name:"Nigerian Naira"},{id:"KPW",name:"North Korean Won"},{id:"NOK",name:"Norwegian Krone"},{id:"ROL",name:"Old Romanian Leu"},{id:"TRL",name:"Old Turkish Lira"},{id:"OMR",name:"Omani Rial"},{id:"PKR",name:"Pakistani Rupee"},{id:"PAB",name:"Panamanian Balboa"},{id:"PGK",name:"Papua New Guinean Kina"},{id:"PYG",name:"Paraguayan Guarani"},{id:"PEN",name:"Peruvian Nuevo Sol"},{id:"PHP",name:"Philippine Peso"},{id:"PLN",name:"Polish Zloty"},{id:"QAR",name:"Qatari Rial"},{id:"RHD",name:"Rhodesian Dollar"},{id:"RON",name:"Romanian Leu"},{id:"RUB",name:"Russian Ruble"},{id:"RWF",name:"Rwandan Franc"},{id:"SHP",name:"Saint Helena Pound"},{id:"SVC",name:"Salvadoran Col\xF3n"},{id:"WST",name:"Samoan Tala"},{id:"SAR",name:"Saudi Riyal"},{id:"RSD",name:"Serbian Dinar"},{id:"SCR",name:"Seychellois Rupee"},{id:"SLL",name:"Sierra Leonean Leone"},{id:"SGD",name:"Singapore Dollar"},{id:"SKK",name:"Slovak Koruna"},{id:"SBD",name:"Solomon Islands Dollar"},{id:"SOS",name:"Somali Shilling"},{id:"ZAR",name:"South African Rand"},{id:"KRW",name:"South Korean Won"},{id:"LKR",name:"Sri Lanka Rupee"},{id:"SDG",name:"Sudanese Pound"},{id:"SRD",name:"Surinamese Dollar"},{id:"SZL",name:"Swazi Lilangeni"},{id:"SEK",name:"Swedish Krona"},{id:"CHF",name:"Swiss Franc"},{id:"SYP",name:"Syrian Pound"},{id:"STD",name:"S\xE3o Tom\xE9 and Pr\xEDncipe Dobra"},{id:"TJS",name:"Tajikistani Somoni"},{id:"TZS",name:"Tanzanian Shilling"},{id:"THB",name:"Thai Baht"},{id:"TOP",name:"Tongan Pa\u02BBanga"},{id:"TTD",name:"Trinidad and Tobago Dollar"},{id:"TND",name:"Tunisian Dinar"},{id:"TRY",name:"Turkish Lira"},{id:"TMM",name:"Turkmenistani Manat"},{id:"USD",name:"US Dollar"},{id:"UGX",name:"Ugandan Shilling"},{id:"UAH",name:"Ukrainian Hryvnia"},{id:"AED",name:"United Arab Emirates Dirham"},{id:"UYU",name:"Uruguayan Peso"},{id:"UZS",name:"Uzbekistan Som"},{id:"VUV",name:"Vanuatu Vatu"},{id:"VEB",name:"Venezuelan Bol\xEDvar"},{id:"VEF",name:"Venezuelan Bol\xEDvar Fuerte"},{id:"VND",name:"Vietnamese Dong"},{id:"CHE",name:"WIR Euro"},{id:"CHW",name:"WIR Franc"},{id:"YER",name:"Yemeni Rial"},{id:"ZMK",name:"Zambian Kwacha"},{id:"ZWD",name:"Zimbabwean Dollar"}],id:"geo"},G4={aa:"ET",ab:"GE",abr:"GH",ace:"ID",ach:"UG",ada:"GH",ady:"RU",ae:"IR",aeb:"TN",af:"ZA",agq:"CM",aho:"IN",ak:"GH",akk:"IQ",aln:"XK",alt:"RU",am:"ET",amo:"NG",aoz:"ID",apd:"TG",ar:"EG",arc:"IR","arc-Nbat":"JO","arc-Palm":"SY",arn:"CL",aro:"BO",arq:"DZ",ary:"MA",arz:"EG",as:"IN",asa:"TZ",ase:"US",ast:"ES",atj:"CA",av:"RU",awa:"IN",ay:"BO",az:"AZ","az-Arab":"IR",ba:"RU",bal:"PK",ban:"ID",bap:"NP",bar:"AT",bas:"CM",bax:"CM",bbc:"ID",bbj:"CM",bci:"CI",be:"BY",bej:"SD",bem:"ZM",bew:"ID",bez:"TZ",bfd:"CM",bfq:"IN",bft:"PK",bfy:"IN",bg:"BG",bgc:"IN",bgn:"PK",bgx:"TR",bhb:"IN",bhi:"IN",bhk:"PH",bho:"IN",bi:"VU",bik:"PH",bin:"NG",bjj:"IN",bjn:"ID",bjt:"SN",bkm:"CM",bku:"PH",blt:"VN",bm:"ML",bmq:"ML",bn:"BD",bo:"CN",bpy:"IN",bqi:"IR",bqv:"CI",br:"FR",bra:"IN",brh:"PK",brx:"IN",bs:"BA",bsq:"LR",bss:"CM",bto:"PH",btv:"PK",bua:"RU",buc:"YT",bug:"ID",bum:"CM",bvb:"GQ",byn:"ER",byv:"CM",bze:"ML",ca:"ES",cch:"NG",ccp:"BD",ce:"RU",ceb:"PH",cgg:"UG",ch:"GU",chk:"FM",chm:"RU",cho:"US",chp:"CA",chr:"US",cja:"KH",cjm:"VN",ckb:"IQ",co:"FR",cop:"EG",cps:"PH",cr:"CA",crh:"UA",crj:"CA",crk:"CA",crl:"CA",crm:"CA",crs:"SC",cs:"CZ",csb:"PL",csw:"CA",ctd:"MM",cu:"RU","cu-Glag":"BG",cv:"RU",cy:"GB",da:"DK",dak:"US",dar:"RU",dav:"KE",dcc:"IN",de:"DE",den:"CA",dgr:"CA",dje:"NE",dnj:"CI",doi:"IN",dsb:"DE",dtm:"ML",dtp:"MY",dty:"NP",dua:"CM",dv:"MV",dyo:"SN",dyu:"BF",dz:"BT",ebu:"KE",ee:"GH",efi:"NG",egl:"IT",egy:"EG",eky:"MM",el:"GR",en:"US","en-Shaw":"GB",es:"ES",esu:"US",et:"EE",ett:"IT",eu:"ES",ewo:"CM",ext:"ES",fa:"IR",fan:"GQ",ff:"SN","ff-Adlm":"GN",ffm:"ML",fi:"FI",fia:"SD",fil:"PH",fit:"SE",fj:"FJ",fo:"FO",fon:"BJ",fr:"FR",frc:"US",frp:"FR",frr:"DE",frs:"DE",fub:"CM",fud:"WF",fuf:"GN",fuq:"NE",fur:"IT",fuv:"NG",fvr:"SD",fy:"NL",ga:"IE",gaa:"GH",gag:"MD",gan:"CN",gay:"ID",gbm:"IN",gbz:"IR",gcr:"GF",gd:"GB",gez:"ET",ggn:"NP",gil:"KI",gjk:"PK",gju:"PK",gl:"ES",glk:"IR",gn:"PY",gom:"IN",gon:"IN",gor:"ID",gos:"NL",got:"UA",grc:"CY","grc-Linb":"GR",grt:"IN",gsw:"CH",gu:"IN",gub:"BR",guc:"CO",gur:"GH",guz:"KE",gv:"IM",gvr:"NP",gwi:"CA",ha:"NG",hak:"CN",haw:"US",haz:"AF",he:"IL",hi:"IN",hif:"FJ",hil:"PH",hlu:"TR",hmd:"CN",hnd:"PK",hne:"IN",hnj:"LA",hnn:"PH",hno:"PK",ho:"PG",hoc:"IN",hoj:"IN",hr:"HR",hsb:"DE",hsn:"CN",ht:"HT",hu:"HU",hy:"AM",hz:"NA",ia:"FR",iba:"MY",ibb:"NG",id:"ID",ife:"TG",ig:"NG",ii:"CN",ik:"US",ikt:"CA",ilo:"PH",in:"ID",inh:"RU",is:"IS",it:"IT",iu:"CA",iw:"IL",izh:"RU",ja:"JP",jam:"JM",jgo:"CM",ji:"UA",jmc:"TZ",jml:"NP",jut:"DK",jv:"ID",jw:"ID",ka:"GE",kaa:"UZ",kab:"DZ",kac:"MM",kaj:"NG",kam:"KE",kao:"ML",kbd:"RU",kby:"NE",kcg:"NG",kck:"ZW",kde:"TZ",kdh:"TG",kdt:"TH",kea:"CV",ken:"CM",kfo:"CI",kfr:"IN",kfy:"IN",kg:"CD",kge:"ID",kgp:"BR",kha:"IN",khb:"CN",khn:"IN",khq:"ML",kht:"IN",khw:"PK",ki:"KE",kiu:"TR",kj:"NA",kjg:"LA",kk:"KZ","kk-Arab":"CN",kkj:"CM",kl:"GL",kln:"KE",km:"KH",kmb:"AO",kn:"IN",knf:"SN",ko:"KR",koi:"RU",kok:"IN",kos:"FM",kpe:"LR",krc:"RU",kri:"SL",krj:"PH",krl:"RU",kru:"IN",ks:"IN",ksb:"TZ",ksf:"CM",ksh:"DE",ku:"TR","ku-Arab":"IQ",kum:"RU",kv:"RU",kvr:"ID",kvx:"PK",kw:"GB",kxm:"TH",kxp:"PK",ky:"KG","ky-Arab":"CN","ky-Latn":"TR",la:"VA",lab:"GR",lad:"IL",lag:"TZ",lah:"PK",laj:"UG",lb:"LU",lbe:"RU",lbw:"ID",lcp:"CN",lep:"IN",lez:"RU",lg:"UG",li:"NL",lif:"NP","lif-Limb":"IN",lij:"IT",lis:"CN",ljp:"ID",lki:"IR",lkt:"US",lmn:"IN",lmo:"IT",ln:"CD",lo:"LA",lol:"CD",loz:"ZM",lrc:"IR",lt:"LT",ltg:"LV",lu:"CD",lua:"CD",luo:"KE",luy:"KE",luz:"IR",lv:"LV",lwl:"TH",lzh:"CN",lzz:"TR",mad:"ID",maf:"CM",mag:"IN",mai:"IN",mak:"ID",man:"GM","man-Nkoo":"GN",mas:"KE",maz:"MX",mdf:"RU",mdh:"PH",mdr:"ID",men:"SL",mer:"KE",mfa:"TH",mfe:"MU",mg:"MG",mgh:"MZ",mgo:"CM",mgp:"NP",mgy:"TZ",mh:"MH",mi:"NZ",min:"ID",mis:"IQ",mk:"MK",ml:"IN",mls:"SD",mn:"MN","mn-Mong":"CN",mni:"IN",mnw:"MM",moe:"CA",moh:"CA",mos:"BF",mr:"IN",mrd:"NP",mrj:"RU",mro:"BD",ms:"MY",mt:"MT",mtr:"IN",mua:"CM",mus:"US",mvy:"PK",mwk:"ML",mwr:"IN",mwv:"ID",mxc:"ZW",my:"MM",myv:"RU",myx:"UG",myz:"IR",mzn:"IR",na:"NR",nan:"CN",nap:"IT",naq:"NA",nb:"NO",nch:"MX",nd:"ZW",ndc:"MZ",nds:"DE",ne:"NP",new:"NP",ng:"NA",ngl:"MZ",nhe:"MX",nhw:"MX",nij:"ID",niu:"NU",njo:"IN",nl:"NL",nmg:"CM",nn:"NO",nnh:"CM",no:"NO",nod:"TH",noe:"IN",non:"SE",nqo:"GN",nr:"ZA",nsk:"CA",nso:"ZA",nus:"SS",nv:"US",nxq:"CN",ny:"MW",nym:"TZ",nyn:"UG",nzi:"GH",oc:"FR",om:"ET",or:"IN",os:"GE",osa:"US",otk:"MN",pa:"IN","pa-Arab":"PK",pag:"PH",pal:"IR","pal-Phlp":"CN",pam:"PH",pap:"AW",pau:"PW",pcd:"FR",pcm:"NG",pdc:"US",pdt:"CA",peo:"IR",pfl:"DE",phn:"LB",pka:"IN",pko:"KE",pl:"PL",pms:"IT",pnt:"GR",pon:"FM",pra:"PK",prd:"IR",ps:"AF",pt:"BR",puu:"GA",qu:"PE",quc:"GT",qug:"EC",raj:"IN",rcf:"RE",rej:"ID",rgn:"IT",ria:"IN",rif:"MA",rjs:"NP",rkt:"BD",rm:"CH",rmf:"FI",rmo:"CH",rmt:"IR",rmu:"SE",rn:"BI",rng:"MZ",ro:"RO",rob:"ID",rof:"TZ",rtm:"FJ",ru:"RU",rue:"UA",rug:"SB",rw:"RW",rwk:"TZ",ryu:"JP",sa:"IN",saf:"GH",sah:"RU",saq:"KE",sas:"ID",sat:"IN",sav:"SN",saz:"IN",sbp:"TZ",sc:"IT",sck:"IN",scn:"IT",sco:"GB",scs:"CA",sd:"PK","sd-Deva":"IN","sd-Khoj":"IN","sd-Sind":"IN",sdc:"IT",sdh:"IR",se:"NO",sef:"CI",seh:"MZ",sei:"MX",ses:"ML",sg:"CF",sga:"IE",sgs:"LT",shi:"MA",shn:"MM",si:"LK",sid:"ET",sk:"SK",skr:"PK",sl:"SI",sli:"PL",sly:"ID",sm:"WS",sma:"SE",smj:"SE",smn:"FI",smp:"IL",sms:"FI",sn:"ZW",snk:"ML",so:"SO",sou:"TH",sq:"AL",sr:"RS",srb:"IN",srn:"SR",srr:"SN",srx:"IN",ss:"ZA",ssy:"ER",st:"ZA",stq:"DE",su:"ID",suk:"TZ",sus:"GN",sv:"SE",sw:"TZ",swb:"YT",swc:"CD",swg:"DE",swv:"IN",sxn:"ID",syl:"BD",syr:"IQ",szl:"PL",ta:"IN",taj:"NP",tbw:"PH",tcy:"IN",tdd:"CN",tdg:"NP",tdh:"NP",te:"IN",tem:"SL",teo:"UG",tet:"TL",tg:"TJ","tg-Arab":"PK",th:"TH",thl:"NP",thq:"NP",thr:"NP",ti:"ET",tig:"ER",tiv:"NG",tk:"TM",tkl:"TK",tkr:"AZ",tkt:"NP",tl:"PH",tly:"AZ",tmh:"NE",tn:"ZA",to:"TO",tog:"MW",tpi:"PG",tr:"TR",tru:"TR",trv:"TW",ts:"ZA",tsd:"GR",tsf:"NP",tsg:"PH",tsj:"BT",tt:"RU",ttj:"UG",tts:"TH",ttt:"AZ",tum:"MW",tvl:"TV",twq:"NE",txg:"CN",ty:"PF",tyv:"RU",tzm:"MA",udm:"RU",ug:"CN","ug-Cyrl":"KZ",uga:"SY",uk:"UA",uli:"FM",umb:"AO",und:"US",unr:"IN","unr-Deva":"NP",unx:"IN",ur:"PK",uz:"UZ","uz-Arab":"AF",vai:"LR",ve:"ZA",vec:"IT",vep:"RU",vi:"VN",vic:"SX",vls:"BE",vmf:"DE",vmw:"MZ",vot:"RU",vro:"EE",vun:"TZ",wa:"BE",wae:"CH",wal:"ET",war:"PH",wbp:"AU",wbq:"IN",wbr:"IN",wls:"WF",wni:"KM",wo:"SN",wtm:"IN",wuu:"CN",xav:"BR",xcr:"TR",xh:"ZA",xlc:"TR",xld:"TR",xmf:"GE",xmn:"CN",xmr:"SD",xna:"SA",xnr:"IN",xog:"UG",xpr:"IR",xsa:"YE",xsr:"NP",yao:"MZ",yap:"FM",yav:"CM",ybb:"CM",yo:"NG",yrl:"BR",yua:"MX",yue:"HK","yue-Hans":"CN",za:"CN",zag:"SD",zdj:"KM",zea:"NL",zgh:"MA",zh:"CN","zh-Bopo":"TW","zh-Hanb":"TW","zh-Hant":"TW",zlm:"TG",zmi:"MY",zu:"ZA",zza:"TR"};var De=require("liquidjs");var q2=require("lodash-es");var Y=require("liquidjs");function q4(n){return class extends Y.Tag{value;branches;elseTemplates;isBlock;constructor(t,i,r,a){super(t,i,r);let o=this.tokenizer.p,s=this.tokenizer.readValue()?.getText();this.isBlock=!!s?.startsWith("block."),this.tokenizer.p=o,this.value=new Y.Value(this.tokenizer.readFilteredValue(),this.liquid),this.branches=[],this.elseTemplates=[];let l=[],c=0,u=a.parseStream(i).on("tag:when",h=>{if(c>0)return;l=[];let m=[];for(;!h.tokenizer.end();)m.push(h.tokenizer.readValueOrThrow()),h.tokenizer.skipBlank(),h.tokenizer.peek()===","?h.tokenizer.readTo(","):h.tokenizer.readTo("or");this.branches.push({values:m,templates:l})}).on("tag:else",()=>{c++,l=this.elseTemplates}).on("tag:endcase",()=>u.stop()).on("template",h=>{(l!==this.elseTemplates||c===1)&&l.push(h)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});u.start()}*render(t,i){let r=this.liquid.renderer,a=(0,Y.toValue)(yield this.value.value(t,t.opts.lenientIf)),o=!1,s="";for(let l of this.branches)for(let c of l.values){let u=yield(0,Y.evalToken)(c,t,t.opts.lenientIf);if(a===u){let h=yield r.renderTemplates(l.templates,t);s+=this.isBlock&&n.isEditor?`<span class="swell-block">${h}</span>`:h,o=!0;break}}return o||(s+=yield r.renderTemplates(this.elseTemplates,t)),s}}}var y3=require("liquidjs");var N2=Object.freeze(["offset","limit","reversed"]);function V4(n){return class extends y3.Tag{variable;collection;hash;templates;elseTemplates;constructor(t,i,r,a){super(t,i,r);let o=this.tokenizer.readIdentifier(),s=this.tokenizer.readIdentifier(),l=this.tokenizer.readValue();if(!o.size()||s.content!=="in"||!l)throw new Error(`illegal tag: ${t.getText()}`);this.variable=o.content,this.collection=l,this.hash=new y3.Hash(this.tokenizer.remaining()),this.templates=[],this.elseTemplates=[];let c,u=a.parseStream(i).on("start",()=>{c=this.templates}).on("tag:else",()=>{c=this.elseTemplates}).on("tag:endfor",()=>{u.stop()}).on("template",h=>{c.push(h)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});u.start()}*render(t,i){let r=this.liquid.renderer,a=yield(0,y3.evalToken)(this.collection,t);if(!a?._result&&a?._get?yield a._get():a instanceof Array||(a=X3(a)),!a.length){yield r.renderTemplates(this.elseTemplates,t,i);return}let o="continue-"+this.variable+"-"+this.collection.getText();t.push({continue:t.getRegister(o)});let s=yield this.hash.render(t);t.pop(),a=(this.liquid.options.orderedFilterParameters?Object.keys(s).filter(h=>N2.includes(h)):N2.filter(h=>s[h]!==void 0)).reduce((h,m)=>{switch(m){case"offset":return Ut(h,s.offset);case"limit":return $t(h,s.limit);case"reversed":return Ot(h);default:return h}},a),t.setRegister(o,(s.offset||0)+a.length);let c={forloop:new C3(a.length,this.collection.getText(),this.variable)};t.push(c);let u=0;for(let h of a){if(v(h)&&(h.index=u++),c[this.variable]=h,yield r.renderTemplates(this.templates,t,i),i.break){i.break=!1;break}i.continue=!1,c.forloop.next()}t.pop()}}}function Ot(n){return[...n].reverse()}function Ut(n,e){return n.slice(e)}function $t(n,e){return n.slice(0,e)}var Q=require("liquidjs");var Kt=Object.freeze(["new_comment","guest_login"]);function O4(n){return class extends Q.Tag{formType;formConfig;templates;hash;arg;constructor(t,i,r,a){super(t,i,r);let{tokenizer:o}=t;for(this.formType=o.readValue()?.content,this.formConfig=n.theme.getFormConfig(this.formType),o.advance(),this.arg=o.readValue(),this.templates=[],this.hash=new Q.Hash(this.tokenizer.remaining());i.length>0;){let s=i.shift();if(Q.TypeGuards.isTagToken(s)&&s.name==="endform")return;this.templates.push(a.parseToken(s,i))}if(!(!this.formConfig&&!Kt.includes(this.formType)))throw new Error(`tag ${t.getText()} not closed`)}*render(t,i){if(!this.formConfig)return`<!-- form '${this.formType}' not found in theme configuration -->`;let r=this.liquid.renderer,a=yield(0,Q.evalToken)(this.arg,t),o=yield this.hash.render(t),s=t.getAll(),l=" "+Object.entries(o).reduce((p,[f,Z])=>(Z!==!0&&p.push(`${f}="${String(Z)}"`),p),[]).join(" "),u=n.theme.formData[this.formConfig.id]||new K(this.formConfig.id),h="";if(n.theme.shopifyCompatibility){Object.assign(u,n.theme.shopifyCompatibility.getFormData(u));let p=yield n.theme.shopifyCompatibility.getAdaptedFormClientHtml(this.formConfig.id,s,a);p&&(h=yield n.renderTemplateString(p));let f=yield n.theme.shopifyCompatibility.getAdaptedFormClientParams(this.formConfig.id,s,a);f&&u.setParams(f)}t.push({form:{...a||void 0,...u}});let m=yield r.renderTemplates(this.templates,t),C=Array.isArray(this.formConfig.params)?yield Promise.all(this.formConfig.params.map(async p=>{let f=await n.renderTemplateString(p.value,{value:a});return`<input type="hidden" name="${p.name}" value="${f}" />`})):[],g=o.return_to||n.theme.globals.request?.path;return`
10
+ <form action="${this.formConfig.url}" method="post" accept-charset="UTF-8" enctype="multipart/form-data"${l}>
11
11
  <input type="hidden" name="form_type" value="${this.formConfig.id}" />
12
- ${p.join("")}
13
- ${C?`<input type="hidden" name="return_to" value="${C}" />`:""}
14
- ${u}
12
+ ${C.join("")}
13
+ ${g?`<input type="hidden" name="return_to" value="${g}" />`:""}
15
14
  ${h}
15
+ ${m}
16
16
  </form>
17
- `}}}var r4=require("liquidjs");function U4(n){return class extends r4.Tag{templates=[];constructor(t,i,r){for(super(t,i,r);i.length;){let o=i.shift();if(r4.TypeGuards.isTagToken(o)&&o.name==="endjavascript")return;this.templates.push(r.parser.parseToken(o,i))}throw new Error(`tag ${t.getText()} not closed`)}*render(t){return`<script type="text/javascript" data-swell>${yield this.liquid.renderer.renderTemplates(this.templates,t)}</script>`}}}var H2=require("liquidjs");function $4(n){return class extends H2.Tag{fileName;constructor(t,i,r){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){return n.layoutName=this.fileName,""}}}var o3=require("liquidjs");function g3(n,e){let{page:t,count:i,pages:r,page_count:o,limit:a,next:s,previous:l}=e,d=r[t]||{};return new y({current_offset:d.start||0,current_page:t,items:i||0,next:s?K4(t+1,s?.url):null,page_param:"page",page_size:a,pages:o,parts:Object.keys(r).map(([u])=>K4(u,u!=e.page?`${n.swell.url.pathname}?${q({...n.swell.queryParams,page:u})}`:void 0)),previous:l?K4(t-1,l?.url):null})}function K4(n,e){return{is_link:!!e,title:String(n),url:e||null}}function z4(n){return class extends o3.Tag{collection;pageSize;templates=[];hash;constructor(t,i,r){super(t,i,r);let o=this.tokenizer.readValue(),a=this.tokenizer.readIdentifier();if(this.pageSize=this.tokenizer.readValue(),a.content!=="by"||!o)throw new Error(`illegal tag: ${t.getText()}`);this.collection=o,this.hash=new o3.Hash(this.tokenizer.remaining());let s,l=this.liquid.parser.parseStream(i).on("start",()=>s=this.templates).on("tag:endpaginate",()=>l.stop()).on("template",d=>s.push(d)).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});l.start()}*render(t,i){let r=this.liquid.renderer,o=yield(0,o3.evalToken)(this.collection,t),a=Number(yield(0,o3.evalToken)(this.pageSize,t)),s=yield this.hash.render(t);if(!isNaN(a)&&o instanceof A&&o.limit!=a&&(yield o._get({limit:a,window:s.window_size||void 0})),o){let l=new v3(o);n.theme.shopifyCompatibility&&l.setCompatibilityProps(g3(n.theme.shopifyCompatibility,l)),t.push({paginate:l})}yield r.renderTemplates(this.templates,t,i)}}}var W4=require("lodash-es"),a3=require("liquidjs");function J4(n){return class extends a3.Tag{fileName;hash;args={};constructor(t,i,r){super(t,i,r);let o=this.tokenizer;for(this.fileName=o.readValue()?.content;!o.end();){let a=o.p,s=o.readIdentifier();if((s.content==="with"||s.content==="for")&&(o.skipBlank(),o.peek()!==":")){let l=o.readValue();if(l){let d=o.p,u=o.readIdentifier(),h;u.content==="as"?h=o.readIdentifier():o.p=d,this.args[s.content]={value:l,alias:h&&h.content},o.skipBlank(),o.peek()===","&&o.advance();continue}}o.p=a;break}this.hash=new a3.Hash(o.remaining())}*render(t){let{hash:i}=this,r=yield n.getThemeConfig(yield n.getComponentPath(this.fileName)),a=t.spawn().bottom();(0,W4.assign)(a,yield i.render(t));let s=yield t._get(["section"]);s&&(0,W4.assign)(a,{section:s});let l="";if(this.args.with){let{value:d,alias:u}=this.args.with,h=u||this.fileName;a[h]=yield(0,a3.evalToken)(d,t)}if(this.args.for){let{value:d,alias:u}=this.args.for,h=X3(yield(0,a3.evalToken)(d,t));a.forloop=new u3(h.length,d.getText(),u);for(let p of h)a[u]=p,l+=yield n.renderTemplate(r,a),a.forloop.next()}else l+=yield n.renderTemplate(r,a);return l}}}var B2=require("liquidjs");function Y4(n){return class extends B2.Tag{fileName;constructor(t,i,r){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){let i=yield n.getSectionPath(this.fileName),r=yield n.getThemeConfig(i);if(!r){console.error(`Section not found: ${i}`);return}let o=yield n.theme.getTemplateSchema(r),a=yield n.theme.resolveSectionDefaultSettings(o);return yield n.renderTemplate(r,{section:a})}}}var G2=require("liquidjs");function Q4(n){return class extends G2.Tag{fileName;constructor(t,i,r){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){let i=yield n.getSectionGroupPath(this.fileName),r=yield n.getThemeConfig(i);try{let o=JSON.parse(r.file_data),a=yield n.renderPageSections(o),{shopify_compatibility:s}=n.theme.globals;return`<div id="swell-section-group__${this.fileName}">${a.map(l=>{let d=`${s?"shopify":"swell"}-section-sections--${r.hash}__${l.id}`,u=s?`shopify-section shopify-section-group-${this.fileName} section-${l.id}`:`swell-section swell-section-group-${this.fileName} section-${l.id}`;return`<${l.tag} id="${d}" class="${u} ${l.class||""}">${l.output}</${l.tag}>`}).join("")}</div>`}catch{return""}}}}var o4=require("liquidjs");function X4(n){return class extends o4.Tag{templates=[];hash=null;constructor(t,i,r){for(super(t,i,r),this.hash=J(t.input);i.length;){let o=i.shift();if(o4.TypeGuards.isTagToken(o)&&o.name==="endstyle")return;this.templates.push(r.parser.parseToken(o,i))}throw new Error(`tag ${t.getText()} not closed`)}*render(t){let r=yield this.liquid.renderer.renderTemplates(this.templates,t);return`<style data-swell data-hash="${this.hash}">${r}</style>`}}}var a4=require("liquidjs");function e5(n){return class extends a4.Tag{fileName;hash;constructor(t,i,r){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content,this.hash=new a4.Hash(o.remaining())}*render(t){let{hash:i}=this,r=yield i.render(t);t.push(r);let o=yield n.getThemeConfig(yield n.getComponentPath(this.fileName)),a=yield n.renderTemplate(o,r);return t.pop(),a}}}var q2=require("liquidjs");function t5(n){return class extends q2.Tag{templates=[];constructor(t,i,r){super(t,i,r),this.templates=[],r.parser.parseStream(i).on("template",o=>{this.templates.push(o)}).on("tag:endschema",function(){this.stop()}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)}).start()}*render(t){let i=yield this.liquid.renderer.renderTemplates(this.templates,t);try{let r=JSON.parse(i);n.lastSchema=r}catch{n.lastSchema=void 0}return""}}}var V2=require("liquidjs");function i5(n){return class extends V2.Tag{key="";value="";constructor(t,i,r){super(t,i,r);let o=t.args.split(",").map(l=>l.trim()),a=o.find(l=>l.startsWith("setting:")),s=o.find(l=>l.startsWith("value:"));this.key=a?a.split(":")[1].trim().replace(/['"]/g,""):o[0].split(".")[o[0].split(".").length-1],this.value=s?s.split(":")[1].trim():o[0]}*render(t){let i=yield this.liquid.evalValue(this.value,t);return i.value&&(i=i.value),`<span data-swell-inline-editable="${this.key}">${i}</span>`}}}var et={case:q4,for:V4,form:O4,javascript:U4,layout:$4,paginate:z4,render:J4,section:Y4,sections:Q4,style:X4,include:e5,schema:t5,inline_editable:i5};function U2(n){(0,O2.each)(et,(e,t)=>n.engine.registerTag(t,e(n)))}var Ee=require("lodash-es");function n5(n){return e=>n.getAssetUrl(e)||""}function r5(n){return(e,t)=>S.get(e).brightnessDifference(S.get(t))}function o5(n){return e=>S.get(e).brightness()}function a5(n){return(e,t)=>S.get(e).contrast(S.get(t))}function s5(n){return(e,t)=>S.get(e).darken(t)}function l5(n){return(e,t)=>S.get(e).desaturate(t)}function h5(n){return(e,t)=>S.get(e).difference(S.get(t))}function c5(n){return(e,t)=>S.get(e).extract(t)}function d5(n){return(e,t)=>S.get(e).lighten(t)}function u5(n){return(e,t,i)=>S.get(e).mix(S.get(t),i)}function C5(n){return(e,t,i)=>S.get(e).modify(t,i)}function m5(n){return(e,t)=>S.get(e).saturate(t)}function p5(n){return e=>S.get(e).hex()}function g5(n){return e=>S.get(e).hsl()}function f5(n){return(e,t)=>t!==void 0?S.get(e).rgba(t):S.get(e).rgb()}var R=t3(require("strftime"),1);function D3(n){return(e,...t)=>{let i=w5(e),{format:r}=tt(t);return it(r,i)}}function w5(n){return n==="now"||n==="today"?new Date:n instanceof Date?n:typeof n=="string"?new Date(n):new Date}function tt(n){return typeof n[0]=="string"?{format:n[0]}:j(n)}function it(n,e){if(nt(n))return rt(n,e);switch(n){case"abbreviated_date":return(0,R.default)("%b %d, %Y",e);case"basic":return(0,R.default)("%m/%d/%Y",e);case"date":return(0,R.default)("%B %d, %Y",e);case"date_at_time":return`${(0,R.default)("%B %d, %Y",e)} at ${(0,R.default)("%I:%M %P",e)}`;case"default":return(0,R.default)("%A, %B %d, %Y at %I:%M %P %z",e);case"on_date":return`on ${(0,R.default)("%b %d, %Y",e)}`;case"short":return(0,R.default)("%-d %b %H:%M",e);case"long":return(0,R.default)("%B %d, %Y %H:%M",e);default:return e.toLocaleString()}}function nt(n){return n.includes("%")}function rt(n,e){return(0,R.default)(n,e)}function y5(n){return async e=>{let t=await Promise.all(Array.from(e).map(i=>i?.message||"Unknown error"));return t.length===0?"":`
17
+ `}}}var n4=require("liquidjs");function U4(n){return class extends n4.Tag{templates;constructor(t,i,r,a){for(super(t,i,r),this.templates=[];i.length>0;){let o=i.shift();if(n4.TypeGuards.isTagToken(o)&&o.name==="endjavascript")return;this.templates.push(a.parseToken(o,i))}throw new Error(`tag ${t.getText()} not closed`)}*render(t,i){return`<script type="text/javascript" data-swell>${yield this.liquid.renderer.renderTemplates(this.templates,t)}</script>`}}}var F2=require("liquidjs");function $4(n){return class extends F2.Tag{fileName;constructor(t,i,r,a){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){return n.layoutName=this.fileName,""}}}var o3=require("liquidjs");function S3(n,e){let{page:t,count:i,pages:r,page_count:a,limit:o,next:s,previous:l}=e,c=r[t]||{};return new y({current_offset:c.start||0,current_page:t,items:i||0,next:s?K4(t+1,s?.url):null,page_param:"page",page_size:o,pages:a,parts:Object.keys(r).map(([u])=>K4(u,u!=e.page?`${n.swell.url.pathname}?${O({...n.swell.queryParams,page:u})}`:void 0)),previous:l?K4(t-1,l?.url):null})}function K4(n,e){return{is_link:!!e,title:String(n),url:e||null}}function z4(n){return class extends o3.Tag{collection;pageSize;templates;hash;constructor(t,i,r,a){super(t,i,r);let o=this.tokenizer.readValue(),s=this.tokenizer.readIdentifier();if(this.pageSize=this.tokenizer.readValue(),s.content!=="by"||!o)throw new Error(`illegal tag: ${t.getText()}`);this.templates=[],this.collection=o,this.hash=new o3.Hash(this.tokenizer.remaining());let l=a.parseStream(i).on("tag:endpaginate",()=>l.stop()).on("template",c=>{this.templates.push(c)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});l.start()}*render(t,i){let r=this.liquid.renderer,a=yield(0,o3.evalToken)(this.collection,t),o=Number(yield(0,o3.evalToken)(this.pageSize,t)),s=yield this.hash.render(t);if(!Number.isNaN(o)&&a instanceof b&&a.limit!=o&&(yield a._get({limit:o,window:s.window_size||void 0})),a){let l=new v3(a);n.theme.shopifyCompatibility&&l.setCompatibilityProps(S3(n.theme.shopifyCompatibility,l)),t.push({paginate:l})}yield r.renderTemplates(this.templates,t,i)}}}var W4=require("lodash-es"),s3=require("liquidjs");function J4(n){return class extends s3.Tag{fileName;hash;args;constructor(t,i,r,a){super(t,i,r);let o=this.tokenizer;for(this.args={},this.fileName=o.readValue()?.content;!o.end();){let s=o.p,l=o.readIdentifier();if((l.content==="with"||l.content==="for")&&(o.skipBlank(),o.peek()!==":")){let c=o.readValue();if(c){let u=o.p,h=o.readIdentifier(),m;h.content==="as"?m=o.readIdentifier():o.p=u,this.args[l.content]={value:c,alias:m&&m.content},o.skipBlank(),o.peek()===","&&o.advance();continue}}o.p=s;break}this.hash=new s3.Hash(o.remaining())}*render(t){let{hash:i}=this,r=yield n.getThemeConfig(yield n.getComponentPath(this.fileName)),o=t.spawn().bottom();(0,W4.assign)(o,yield i.render(t));let s=yield t._get(["section"]);s&&(0,W4.assign)(o,{section:s});let l="";if(this.args.with){let{value:c,alias:u}=this.args.with,h=u||this.fileName;o[h]=yield(0,s3.evalToken)(c,t)}if(this.args.for){let{value:c,alias:u}=this.args.for,h=X3(yield(0,s3.evalToken)(c,t));o.forloop=new C3(h.length,c.getText(),u);for(let m of h)o[u]=m,l+=yield n.renderTemplate(r,o),o.forloop.next()}else l+=yield n.renderTemplate(r,o);return l}}}var I2=require("liquidjs");function Y4(n){return class extends I2.Tag{fileName;constructor(t,i,r,a){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){let i=yield n.getSectionPath(this.fileName),r=yield n.getThemeConfig(i);if(!r){console.error(`Section not found: ${i}`);return}let a=yield n.theme.getTemplateSchema(r),o=yield n.theme.resolveSectionDefaultSettings(a);return yield n.renderTemplate(r,{section:o})}}}var H2=require("liquidjs");function Q4(n){return class extends H2.Tag{fileName;constructor(t,i,r,a){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content}*render(t){let i=yield n.getSectionGroupPath(this.fileName),r=yield n.getThemeConfig(i);try{let a=JSON.parse(r.file_data),o=yield n.renderPageSections(a),{shopify_compatibility:s}=n.theme.globals;return`<div id="swell-section-group__${this.fileName}">${o.map(l=>{let c=`${s?"shopify":"swell"}-section-sections--${r.hash}__${l.id}`,u=s?`shopify-section shopify-section-group-${this.fileName} section-${l.id}`:`swell-section swell-section-group-${this.fileName} section-${l.id}`;return`<${l.tag} id="${c}" class="${u} ${l.class||""}">${l.output}</${l.tag}>`}).join("")}</div>`}catch{return""}}}}var r4=require("liquidjs");function X4(n){return class extends r4.Tag{templates;hash;constructor(t,i,r,a){for(super(t,i,r),this.hash=l3(t.input),this.templates=[];i.length>0;){let o=i.shift();if(r4.TypeGuards.isTagToken(o)&&o.name==="endstyle")return;this.templates.push(a.parseToken(o,i))}throw new Error(`tag ${t.getText()} not closed`)}*render(t,i){let a=yield this.liquid.renderer.renderTemplates(this.templates,t);return`<style data-swell data-hash="${this.hash}">${a}</style>`}}}var a4=require("liquidjs");function e5(n){return class extends a4.Tag{fileName;hash;constructor(t,i,r,a){super(t,i,r);let{tokenizer:o}=t;this.fileName=o.readValue()?.content,this.hash=new a4.Hash(o.remaining())}*render(t){let{hash:i}=this,r=yield i.render(t);t.push(r);let a=yield n.getThemeConfig(yield n.getComponentPath(this.fileName)),o=yield n.renderTemplate(a,r);return t.pop(),o}}}var B2=require("liquidjs");function t5(n){return class extends B2.Tag{templates;constructor(t,i,r,a){super(t,i,r),this.templates=[],a.parseStream(i).on("template",o=>{this.templates.push(o)}).on("tag:endschema",function(){this.stop()}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)}).start()}*render(t,i){let r=yield this.liquid.renderer.renderTemplates(this.templates,t);try{let a=JSON.parse(r);n.lastSchema=a}catch{n.lastSchema=void 0}return""}}}var G2=require("liquidjs");function i5(n){return class extends G2.Tag{key;value;constructor(t,i,r,a){super(t,i,r);let o=t.args.split(",").map(c=>c.trim()),s=o.find(c=>c.startsWith("setting:")),l=o.find(c=>c.startsWith("value:"));this.key=s?s.split(":")[1].trim().replace(/['"]/g,""):o[0].split(".")[o[0].split(".").length-1],this.value=l?l.split(":")[1].trim():o[0]}*render(t){let i=yield this.liquid.evalValue(this.value,t);return i.value&&(i=i.value),`<span data-swell-inline-editable="${this.key}">${i}</span>`}}}var zt={case:q4,for:V4,form:O4,javascript:U4,layout:$4,paginate:z4,render:J4,section:Y4,sections:Q4,style:X4,include:e5,schema:t5,inline_editable:i5};function V2(n){(0,q2.each)(zt,(e,t)=>n.registerTag(t,e(n)))}var _e=require("lodash-es");function n5(n){return function(t){return n.getAssetUrl(t).then(i=>i||"")}}function r5(n){return(e,t)=>S.get(e).brightnessDifference(S.get(t))}function a5(n){return e=>S.get(e).brightness()}function o5(n){return(e,t)=>S.get(e).contrast(S.get(t))}function s5(n){return(e,t)=>S.get(e).darken(t)}function l5(n){return(e,t)=>S.get(e).desaturate(t)}function h5(n){return(e,t)=>S.get(e).difference(S.get(t))}function d5(n){return(e,t)=>S.get(e).extract(t)}function c5(n){return(e,t)=>S.get(e).lighten(t)}function u5(n){return(e,t,i)=>S.get(e).mix(S.get(t),i)}function m5(n){return(e,t,i)=>S.get(e).modify(t,i)}function C5(n){return(e,t)=>S.get(e).saturate(t)}function p5(n){return e=>S.get(e).hex()}function g5(n){return e=>S.get(e).hsl()}function f5(n){return(e,t)=>t!==void 0?S.get(e).rgba(t):S.get(e).rgb()}var x=i3(require("strftime"),1);function R3(n){return(e,...t)=>{let i=w5(e),{format:r}=Wt(t);return Jt(r,i)}}function w5(n){return n==="now"||n==="today"?new Date:n instanceof Date?n:typeof n=="string"?new Date(n):new Date}function Wt(n){return typeof n[0]=="string"?{format:n[0]}:N(n)}function Jt(n,e){if(Yt(n))return Qt(n,e);switch(n){case"abbreviated_date":return(0,x.default)("%b %d, %Y",e);case"basic":return(0,x.default)("%m/%d/%Y",e);case"date":return(0,x.default)("%B %d, %Y",e);case"date_at_time":return`${(0,x.default)("%B %d, %Y",e)} at ${(0,x.default)("%I:%M %P",e)}`;case"default":return(0,x.default)("%A, %B %d, %Y at %I:%M %P %z",e);case"on_date":return`on ${(0,x.default)("%b %d, %Y",e)}`;case"short":return(0,x.default)("%-d %b %H:%M",e);case"long":return(0,x.default)("%B %d, %Y %H:%M",e);default:return e.toLocaleString()}}function Yt(n){return n.includes("%")}function Qt(n,e){return(0,x.default)(n,e)}function y5(n){return async function(t){if(!t)return"";let i=await Promise.all(Array.from(t).map(r=>r?.message||"Unknown error"));return i.length===0?"":`
18
18
  <div class="errors">
19
19
  <ul>
20
- ${t.map(i=>`
21
- <li>${i}</li>
20
+ ${i.map(r=>`
21
+ <li>${r}</li>
22
22
  `).join("")}
23
23
  </ul>
24
24
  </div>
25
- `}}function S5(n){return(e,t,i)=>!j4(e)||!j4(t)?e:i?Math.floor(e/t):e/t}function k5(n){return(e,...t)=>{if(!e)return null;let i=D.get(e),r=j(t);return i.face(r)}}function L5(n){return(e,t,i)=>D.clone(e).modify(t,i)}function A5(n){return e=>D.get(e).url()}var $2={bind(n){return async e=>{if(e){let t=e.country?.iso_code||e.country_code||(typeof e.country=="string"?e.country:null);if(e.name||e.address1||e.state||t){let i=[e.name,e.company,e.address1,e.address2,e.city,e.state,t,e.zip].filter(Boolean);if(i.length>0)return`
25
+ `}}function S5(n){return(e,t,i)=>!j4(e)||!j4(t)?e:i?Math.floor(e/t):e/t}function k5(n){return(e,...t)=>{if(!e)return null;let i=D.get(e),r=N(t);return i.face(r)}}function L5(n){return(e,t,i)=>D.clone(e).modify(t,i)}function b5(n){return e=>D.get(e).url()}var O2={bind(n){return async e=>{if(e){let t=e.country?.iso_code||e.country_code||(typeof e.country=="string"?e.country:null);if(e.name||e.address1||e.state||t){let i=[e.name,e.company,e.address1,e.address2,e.city,e.state,t,e.zip].filter(Boolean);if(i.length>0)return`
26
26
  <p>${i.join("<br />")}</p>
27
- `}}return"<p></p>"}},resolve:[["name","company","address1","address2","city","state","country_code","country","zip"]]};function b5(n){return(e,...t)=>{let{width:i,height:r,widths:o,srcset:a,preload:s,alt:l,loading:d="lazy",...u}=j(t);i===void 0&&(i=K2(e,"width")),r===void 0&&(r=K2(e,"height")),o===void 0&&typeof i=="number"&&(o=ot(i)),a===void 0&&Array.isArray(o)&&(a=at(e,o)),d===null?d=void 0:s&&(d="eager");let h={src:e,width:i,height:r,srcset:a,alt:l,loading:d,...u};return`<img ${Object.entries(h).filter(([p,C])=>C!=null).map(([p,C])=>`${p}="${C}"`).join(" ")} />`}}function K2(n,e){let t=n.match(new RegExp(`${e}=(\\d+)`));return t?parseInt(t[1])/2:null}function ot(n){let e=[],t=n;for(;t>256;)t=Math.round(t*.8),e.push(t);return e}function at(n,e){return e?.map(t=>{let i=n;return i.includes("?")?(i=i.replace(/width=\d+/,`width=${t}`),i=i.replace(/height=\d+/,"")):i=`${i}?width=${t}`,`${i} ${t}w`}).join(", ")}var z2={bind(n){return async(e,...t)=>{let r=await(e?.images?.[0]||e?.image||e?.preview_image||e),o=r?.url||r?.file?.url||(await r?.src)?.url||r,a=String(o);if(typeof a!="string")return"";let s=j(t),l=[s.width&&`width=${Number(s.width)*2}`,s.height&&`height=${Number(s.height)*2}`].filter(Boolean).join("&");return`${a}${l?`?${l}`:""}`}},resolve:[["images","image","preview_image"]]};function T5(n){return async e=>(await n.theme.getThemeConfig(`theme/assets/${e}`))?.file_data||""}function _5(n){return async(e,t=0)=>e4(e,t)}function M5(n){return async(e,t=2)=>`<pre>${await e4(e,t)}</pre>`}var W2=require("country-flag-icons"),s4=t3(require("country-flag-icons/string/1x1"),1);function st(n){return n.includes("-")?n.split("-")[1].toUpperCase():n.toUpperCase()}function E5(n){return e=>{if(typeof e!="string")return s4.US;let t=st(e);return(0,W2.hasFlag)(t)?s4[t]:s4.US}}function P5(n){return e=>n.renderCurrency(Number(e||0))}function v5(n){return e=>{let{currency:t}=n.theme.swell.getStorefrontLocalization();return`${n.renderCurrency(e)} ${t?.toUpperCase()}`}}function D5(n){return e=>n.renderCurrency(e).replace(/[^0-9.,]/g,"")}function x5(n){return e=>n.renderCurrency(e).split(".")[0].split(",")[0]}function R5(n){return e=>`<link href="${e}" rel="stylesheet" type="text/css" media="all" />`}function j5(n){let e=D3(n);return(t,...i)=>{let r=w5(t),o=e(t,...i);return`<time datetime="${r.toISOString()}">${o}</time>`}}function l4(n){return async(e,t)=>{let i=t&&j(t);return await n.renderTranslation(e,i)}}function Z5(n){return function*(t,i,r){let o=[];t=E2(B(t));for(let a of t)o.push(yield this.context._getFromScope(a,Z4(i).replace(/\?$/,"").split("."),!1));return t.filter((a,s)=>r===void 0?M2(o[s],this.context):P3(r)?r.equals(o[s]):o[s]===r)}}function N5(n){return(e,t)=>S.get(e).rgba(t||1)}var J2={bind(n){return(e,t)=>e?.items?.find(r=>r.variant_id===t)?.quantity||0},resolve:[["items"]]};function F5(n){return e=>null}function I5(n){return e=>null}var Y2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
27
+ `}}return"<p></p>"}},resolve:[["name","company","address1","address2","city","state","country_code","country","zip"]]};function A5(n){return(e,...t)=>{let{width:i,height:r,widths:a,srcset:o,preload:s,alt:l,loading:c="lazy",...u}=N(t);i===void 0&&(i=U2(e,"width")),r===void 0&&(r=U2(e,"height")),a===void 0&&typeof i=="number"&&(a=Xt(i)),o===void 0&&Array.isArray(a)&&(o=e1(e,a)),c===null?c=void 0:s&&(c="eager");let h={src:e,width:i,height:r,srcset:o,alt:l,loading:c,...u};return`<img ${Object.entries(h).filter(([m,C])=>C!=null).map(([m,C])=>`${m}="${C}"`).join(" ")} />`}}function U2(n,e){let t=n.match(new RegExp(`${e}=(\\d+)`));return t?parseInt(t[1])/2:null}function Xt(n){let e=[],t=n;for(;t>256;)t=Math.round(t*.8),e.push(t);return e}function e1(n,e){return e?.map(t=>{let i=n;return i.includes("?")?(i=i.replace(/width=\d+/,`width=${t}`),i=i.replace(/height=\d+/,"")):i=`${i}?width=${t}`,`${i} ${t}w`}).join(", ")}var $2={bind(n){return async(e,...t)=>{let r=await(e?.images?.[0]||e?.image||e?.preview_image||e),a=r?.url||r?.file?.url||(await r?.src)?.url||r,o=String(a);if(typeof o!="string")return"";let s=N(t),l=[s.width&&`width=${Number(s.width)*2}`,s.height&&`height=${Number(s.height)*2}`].filter(Boolean).join("&");return`${o}${l?`?${l}`:""}`}},resolve:[["images","image","preview_image"]]};function T5(n){return async e=>(await n.theme.getThemeConfig(`theme/assets/${e}`))?.file_data||""}function _5(n){return async function(t,i=0){return e4(t,i)}}function M5(n){return async function(t,i=2){return`<pre>${await e4(t,i)}</pre>`}}var K2=require("country-flag-icons"),o4=i3(require("country-flag-icons/string/1x1"),1);function t1(n){return n.includes("-")?n.split("-")[1].toUpperCase():n.toUpperCase()}function E5(n){return e=>{if(typeof e!="string")return o4.US;let t=t1(e);return(0,K2.hasFlag)(t)?o4[t]:o4.US}}function P5(n){return e=>n.renderCurrency(Number(e||0))}function v5(n){return e=>{let{currency:t}=n.theme.swell.getStorefrontLocalization();return`${n.renderCurrency(e)} ${t?.toUpperCase()}`}}function R5(n){return e=>n.renderCurrency(e).replace(/[^0-9.,]/g,"")}function D5(n){return e=>n.renderCurrency(e).split(".")[0].split(",")[0]}function x5(n){return function(t){return`<script src="${t}" type="text/javascript"></script>`}}function j5(n){return function(t){return`<link href="${t}" rel="stylesheet" type="text/css" media="all" />`}}function Z5(n){let e=R3(n);return(t,...i)=>{let r=w5(t),a=e(t,...i);return`<time datetime="${r.toISOString()}">${a}</time>`}}function s4(n){return async function(t,i){let r=i&&N(i);return await n.renderTranslation(t,r)}}function N5(n){return function*(t,i,r){let a=[];t=_2(q(t));for(let o of t)a.push(yield this.context._getFromScope(o,Z4(i).replace(/\?$/,"").split("."),!1));return t.filter((o,s)=>r===void 0?T2(a[s],this.context):P3(r)?r.equals(a[s]):a[s]===r)}}function F5(n){return(e,t)=>S.get(e).rgba(t||1)}var z2={bind(n){return(e,t)=>e?.items?.find(r=>r.variant_id===t)?.quantity||0},resolve:[["items"]]};function I5(n){return e=>null}function H5(n){return e=>null}var W2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
28
28
  <rect width="760" height="760" fill="white"/>
29
29
  <path d="M434.923 262.5C415.291 255.712 393.386 252.693 372.579 254.298V254.309C330.763 257.518 289.641 283.753 268.363 319.614C251.778 347.565 248.351 376.93 251.587 409.157C255.63 406.306 258.956 406.811 263.335 405.97C263.01 404.556 263.536 403.266 263.749 401.942C268.755 370.243 260.58 356.284 280.704 324.338C348.39 216.91 510.044 278.524 495.116 402.559L494.433 405.263L517.01 413.297C522.789 349.596 506.898 297.139 447.835 263.51C448.272 271.32 438.742 263.824 434.923 262.5Z" fill="#E5E5E5"/>
30
30
  <path d="M515.711 490.283C521.176 481.295 517.402 445.871 517.649 432.193C505.89 421.533 491.98 415.538 472.685 414.744V404.578C464.868 405.454 459.583 401.437 451.911 405.095C450.097 405.959 449.963 409.83 445.304 408.248C442.292 438.746 447.342 474.394 445.55 505.42C449.526 516.876 468.911 515.889 472.741 504.388L473.413 504.264C490.267 501.998 504.949 507.967 515.711 490.283Z" fill="#E5E5E5"/>
@@ -40,7 +40,7 @@
40
40
  <path d="M263.749 404.175C268.755 372.476 260.58 356.273 280.704 324.327C348.39 216.899 510.044 279.646 495.128 403.692" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
41
41
  <path d="M515.89 416.663C521.669 352.963 506.897 297.139 447.835 263.51C373.296 221.073 278.755 256.71 247.959 336.951C238.697 361.098 241.71 392.348 242.079 417.785" stroke="#A3A3A3" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
42
42
  </svg>
43
- `;var Q2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
43
+ `;var J2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
44
44
  <rect width="760" height="760" fill="white"/>
45
45
  <path d="M298.828 423.56C298.825 423.565 298.822 423.571 298.818 423.576L298.803 423.56C298.812 423.56 298.82 423.56 298.828 423.56C299.52 422.467 298.938 421.453 298.818 420.391C298.818 420.391 296.5 395 293 380.5C289.5 366 279.5 364.5 279.5 352.5C279.5 340.5 345 353.5 363.495 304.489C370.311 311.32 375.638 317.641 383.253 323.74L383.855 324.17C390.852 329.711 397.082 332.927 404.636 337.195L405.313 337.529C411.723 341.128 418.6 344.248 425.191 347.481L426.485 348.134C464.075 366.397 497.617 371.206 534.455 385.504C550.225 391.635 563.121 400.153 558.456 420.773C556.53 420.98 554.724 421.57 552.858 421.968C472.954 439.308 429.856 424.006 353.879 421.458C336.747 420.885 316.834 423.701 298.828 423.56Z" fill="#E5E5E5"/>
46
46
  <path d="M263.967 421.52C238.509 421.335 211.845 417.439 186.947 417.867C185.698 417.895 184.435 418.109 183.185 418.081C183.114 416.54 183.516 414.856 183.516 413.3C183.516 413.072 183.544 412.843 183.544 412.615C183.544 395.547 184.391 370.774 186.56 354.034C186.617 353.577 186.56 353.121 186.631 352.678C186.574 353.121 186.631 353.592 186.56 354.034L189.661 353.963C229.937 357.445 258.697 376.853 263.967 418.652C264.082 419.622 264.642 420.521 263.967 421.506V421.52Z" fill="#E5E5E5"/>
@@ -53,7 +53,7 @@
53
53
  <path d="M188.374 340.734C236.786 344.934 273.252 370.236 279.586 420.645" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
54
54
  <path d="M336.782 430.986C285.696 434.428 218.846 429.551 191.807 426.683C204.751 431.846 242.03 442.172 287.594 442.172C344.549 442.172 328.153 435.288 404.955 444.754C466.398 452.327 486.936 445.041 489.525 440.451C448.966 447.336 400.641 426.683 336.782 430.986Z" fill="#E5E5E5"/>
55
55
  </svg>
56
- `;var X2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
56
+ `;var Y2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
57
57
  <rect width="760" height="760" fill="white"/>
58
58
  <path d="M464.905 411.321C419.039 409.104 343.478 420.962 324.414 424.145C305.351 427.328 304.544 428.112 304.544 428.112C319.607 450.43 372.586 486.89 400.257 486.028C409.793 485.725 447.459 458.488 459.33 452.08C470.128 446.252 481.392 441.07 493.169 437.613C493.358 437.559 493.534 437.431 493.723 437.377C503.738 434.5 514.374 432.472 524.963 433.995L524.633 429.015C504.123 423.348 486.535 412.365 464.905 411.321Z" fill="#E5E5E5"/>
59
59
  <path d="M228.031 432.95C229.037 435.565 229.928 434.742 232.452 436.171L321.231 418.132C306.742 345.385 308.595 315.263 343.478 295.335C323.812 295.84 297.255 303.185 279.816 312.376C275.624 314.586 265.95 320.705 258.158 327.449C240.593 342.653 223.698 354.112 223.698 375.938C223.698 397.764 226.344 428.577 228.031 432.95Z" fill="#E5E5E5"/>
@@ -65,7 +65,7 @@
65
65
  <path d="M491.715 437.232C507.242 446.669 535.659 455.341 551.349 443.018L551.993 442.601" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
66
66
  <path d="M334.318 277.358C326.417 270.595 317.369 269.4 310.974 279.127" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
67
67
  </svg>
68
- `;var ee=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
68
+ `;var Q2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
69
69
  <rect width="760" height="760" fill="white"/>
70
70
  <path d="M313.863 430.914C357.895 429.203 371.999 379.5 365.499 368.769C357.493 368.769 348.402 368.427 337.88 364.778C324.728 360.217 270.998 358.057 265.499 364.778C260 371.5 263.54 433.765 313.863 430.914Z" fill="#E5E5E5"/>
71
71
  <path d="M464 430C503.581 428.778 517.594 386.5 512.594 368.5C501.594 367 494.194 364 486.594 364C477.094 364 473.594 367 443.594 365.5C419.594 364.3 415.261 370 416.094 373C415.427 391.667 415.406 431.5 464 430Z" fill="#E5E5E5"/>
@@ -77,7 +77,7 @@
77
77
  <path d="M334.5 335C334.5 335 327 326.5 319.5 328C312 329.5 248 354.5 248 354.5" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
78
78
  <path d="M427 335C427 335 434.5 326.5 442 328C449.5 329.5 513.5 354.5 513.5 354.5" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
79
79
  </svg>
80
- `;var te=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
80
+ `;var X2=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
81
81
  <rect width="760" height="760" fill="white"/>
82
82
  <path d="M323.499 252.705C321.786 251.737 309.397 252.126 305.964 252.831V252.822C303.445 253.338 284.999 252.831 284.999 265V345.5C284.99 362.006 283.462 386.467 283.498 402.982L301.832 402.855H483.152L486.603 402.982C486.63 385.418 486.782 367.882 487.006 350.327C489.292 349.793 489.686 351.856 490.744 352.877C495.172 357.164 512.4 377.197 517.097 375.795C522.978 369.899 561.881 334.527 560.984 329.345C559.783 322.444 496.275 265.312 487.293 255.165C482.264 251.873 440.251 251.33 437.983 252.705C436.45 253.636 433.806 264.182 431.484 267.537C414.982 291.377 353.781 291.16 336.499 268.369C333.397 264.281 327.093 254.749 323.499 252.705Z" fill="#E5E5E5"/>
83
83
  <path d="M482.876 494H316.318C316.318 494 314.499 495.5 314.499 501.5C314.499 507.5 317.138 518.545 332.965 521.543C374.094 517.431 423.018 525.959 463.188 521.847C480.073 520.118 484.966 509.337 485.999 494.147L482.876 494Z" fill="#E5E5E5"/>
@@ -90,7 +90,7 @@
90
90
  <path d="M380.67 276.51V347.63" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
91
91
  <path d="M270.59 347.79C264.6 351.31 247.68 374.64 242.11 373.31C238.65 372.49 192.56 326.23 192.23 322.69C192.35 320.82 193.16 319.53 194.26 318.07C201.33 308.73 267.69 243.35 275.37 239.37C277.97 238.02 280.87 237.72 283.68 237.15C287.51 236.37 325.57 235.94 327.48 237.01C331.49 239.27 333.61 249.81 337.07 254.33C356.35 279.53 405.3 279.77 423.71 253.41C426.3 249.7 429.25 238.04 430.96 237.01C433.49 235.49 480.36 236.09 485.97 239.73C495.99 250.95 566.84 314.12 568.18 321.75C569.18 327.48 525.78 366.59 519.22 373.11C513.98 374.66 494.76 352.51 489.82 347.77" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
92
92
  </svg>
93
- `;var ie=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
93
+ `;var ee=`<svg viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
94
94
  <rect width="760" height="760" fill="white"/>
95
95
  <path d="M328 261.307C317.995 265.675 308.33 272.901 301.141 281C301.115 279.935 301.124 278.87 301.124 277.789C301.107 263.428 300.597 255.95 301.779 241.623C305.761 241.706 325.371 239.979 327.166 241.941L327.821 260.066L328 261.307Z" fill="#E5E5E5"/>
96
96
  <path d="M466.91 284C460.74 277.235 449.527 268.778 441 265.124L441.261 263.773L442.549 241H467.129C468.821 242.46 467.491 277.936 467.693 283.458L466.918 286L466.91 284Z" fill="#E5E5E5"/>
@@ -105,7 +105,7 @@
105
105
  <path d="M398.23 251.677C401.431 222.145 358.537 223.067 362.79 252.371" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
106
106
  <path d="M468.414 288.486C468.306 288.356 468.208 288.204 468.1 288.074C467.839 287.261 467.644 286.447 467.611 285.591C467.351 278.411 469.065 229.682 466.884 227.785H435.199L433.539 259.995" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
107
107
  </svg>
108
- `;var ne=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
108
+ `;var te=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
109
109
  <rect width="760" height="760" fill="white"/>
110
110
  <rect x="480.218" y="279.857" width="12.8302" height="64.1508" rx="6.41508" fill="#E5E5E5"/>
111
111
  <rect width="12.8302" height="64.1508" rx="6.41508" transform="matrix(-1 0 0 1 626.802 279.857)" fill="#E5E5E5"/>
@@ -142,7 +142,7 @@
142
142
  <path d="M157.598 258.225C162.241 228.818 154.658 213.787 173.326 184.152C236.117 84.4937 386.08 142.702 372.242 257.777" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
143
143
  <path d="M391.502 269.81C396.863 210.717 383.16 158.931 328.369 127.734C259.221 88.3659 171.518 121.426 142.949 195.863C134.357 218.263 137.152 247.253 137.495 270.851" stroke="#A3A3A3" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
144
144
  </svg>
145
- `;var re=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
145
+ `;var ie=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
146
146
  <rect width="760" height="760" fill="white"/>
147
147
  <path d="M220.595 428.523C220.592 428.528 220.589 428.532 220.586 428.537L220.573 428.523C220.58 428.523 220.587 428.523 220.595 428.523C221.192 427.579 220.689 426.702 220.586 425.785C220.586 425.785 218.582 403.839 215.557 391.306C212.532 378.773 203.889 377.477 203.889 367.105C203.889 356.733 260.501 367.97 276.486 325.609C282.378 331.513 286.982 336.977 293.563 342.247L294.084 342.619C300.132 347.408 305.516 350.188 312.045 353.877L312.631 354.166C318.171 357.276 324.115 359.973 329.812 362.767L330.93 363.331C363.42 379.117 392.41 383.273 424.249 395.631C437.88 400.93 449.026 408.293 444.994 426.115C443.33 426.294 441.769 426.803 440.156 427.147C371.093 442.134 333.844 428.909 268.175 426.707C253.368 426.211 236.157 428.645 220.595 428.523Z" fill="#E5E5E5"/>
148
148
  <path d="M190.463 426.76C168.459 426.6 145.413 423.233 123.894 423.603C122.814 423.627 121.722 423.812 120.642 423.788C120.58 422.455 120.928 421 120.928 419.656C120.928 419.458 120.952 419.261 120.952 419.064C120.952 404.312 121.685 382.899 123.559 368.431C123.608 368.036 123.559 367.642 123.621 367.259C123.571 367.642 123.621 368.049 123.559 368.431L126.239 368.37C161.05 371.379 185.908 388.154 190.463 424.281C190.562 425.12 191.046 425.897 190.463 426.748V426.76Z" fill="#E5E5E5"/>
@@ -176,7 +176,7 @@
176
176
  <path d="M424.787 550.674C427.596 553.312 430.404 555.906 433.213 558.543L440.515 565.331" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
177
177
  <path d="M336.469 623.617L620.723 620.66C636.713 620.494 594.794 638.379 572.754 638.379C550.714 638.379 539.91 628.871 510.955 628.871C482.001 628.871 469.036 638.379 410.695 638.379C372.347 638.379 347.516 631.766 335.724 626.69C333.907 625.909 334.492 623.637 336.469 623.617Z" fill="#E5E5E5"/>
178
178
  </svg>
179
- `;var oe=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
179
+ `;var ne=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
180
180
  <rect width="760" height="760" fill="white"/>
181
181
  <path d="M618.798 398.382C618.637 398.179 618.41 398.03 618.248 397.834L608.309 398.662C613.228 414.915 613.587 433.341 613.276 450.38C613.132 458.129 612.756 477.782 611.065 484.494C608.226 495.786 586.088 497.668 576.556 498.526C544.324 501.426 501.622 497.216 471.099 502.379C464.86 503.433 468.38 506.322 467.442 511.682C456.732 511.664 446.028 511.64 435.318 511.622C437.404 472.291 426.114 430.798 461.16 402.795C485.969 382.969 551.693 386.971 583.734 388.49C586.011 388.597 598.239 391.301 598.92 389.865V382.325C606.528 386.453 612.696 391.152 618.242 397.84C618.41 398.042 618.631 398.191 618.792 398.388L618.798 398.382Z" fill="#E5E5E5"/>
182
182
  <path d="M598.92 382.32V389.859C598.239 391.295 586.017 388.591 583.734 388.484C551.693 386.965 485.969 382.963 461.161 402.789C426.12 430.792 437.404 472.285 435.318 511.616L416.486 511.581H415.93L415.948 511.003C417.185 456.866 404.712 380.86 481.313 374.178C505.542 372.064 579.437 371.754 598.92 382.32Z" fill="white"/>
@@ -207,7 +207,7 @@
207
207
  <path d="M253.05 281.143C256.184 260.944 216.01 260.961 219.178 281.143" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
208
208
  <path d="M124.245 413.479H348.966" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round"/>
209
209
  </svg>
210
- `;var ae=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
210
+ `;var re=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
211
211
  <rect width="760" height="760" fill="white"/>
212
212
  <path d="M313.863 430.914C357.895 429.203 371.999 379.5 365.499 368.769C357.493 368.769 348.402 368.427 337.88 364.778C324.728 360.217 270.998 358.057 265.499 364.778C260 371.5 263.54 433.765 313.863 430.914Z" fill="#E5E5E5"/>
213
213
  <path d="M464 430C503.581 428.778 517.594 386.5 512.594 368.5C501.594 367 494.194 364 486.594 364C477.094 364 473.594 367 443.594 365.5C419.594 364.3 415.261 370 416.094 373C415.427 391.667 415.406 431.5 464 430Z" fill="#E5E5E5"/>
@@ -235,7 +235,7 @@
235
235
  <path d="M250 510V555C250 566.046 258.954 575 270 575H347C358.046 575 367 566.046 367 555V510" stroke="#A3A3A3" stroke-width="5"/>
236
236
  <path d="M399 510V555C399 566.046 407.954 575 419 575H496C507.046 575 516 566.046 516 555V510" stroke="#A3A3A3" stroke-width="5"/>
237
237
  </svg>
238
- `;var se=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
238
+ `;var ae=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
239
239
  <rect width="760" height="760" fill="white"/>
240
240
  <path d="M150.34 202.699C149.47 212.199 149.73 221.699 149.73 231.219C149.73 249.479 150.1 267.729 150.14 285.989C150.16 295.229 150.05 304.479 150.14 313.709C150.24 323.559 149.97 333.429 150.14 343.269C150.29 352.109 149.2 362.609 149.8 371.029C151.01 388.149 154.85 400.749 174.16 404.409C224.34 399.389 284.03 409.799 333.04 404.779C353.64 402.669 359.6 389.499 360.87 370.969C361.44 362.589 359.9 352.059 360.04 343.209C360.19 333.349 360.21 323.439 360.28 313.569C360.34 304.339 359.97 295.149 359.98 285.939C360.02 266.529 360.18 247.129 360.43 227.719C360.54 219.379 360.66 211.009 360.81 202.669" fill="white"/>
241
241
  <path d="M145.36 230.559C139.37 234.079 122.45 257.409 116.88 256.079C113.42 255.259 67.33 208.999 67 205.459C67.12 203.589 67.93 202.299 69.03 200.839C76.1 191.499 142.46 126.119 150.14 122.139C152.74 120.789 155.64 120.489 158.45 119.919C162.28 119.139 200.34 118.709 202.25 119.779C206.26 122.039 208.38 132.579 211.84 137.099C231.12 162.299 280.07 162.539 298.48 136.179C301.07 132.469 304.02 120.809 305.73 119.779C308.26 118.259 355.13 118.859 360.74 122.499C370.76 133.719 441.61 196.889 442.95 204.519C443.95 210.249 400.55 249.359 393.99 255.879C388.75 257.429 369.53 235.279 364.59 230.539" fill="white"/>
@@ -265,7 +265,7 @@
265
265
  <path d="M228.84 519.819H431.13" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
266
266
  <path d="M330.44 393.279V464.399" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
267
267
  </svg>
268
- `;var le=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
268
+ `;var oe=`<svg viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
269
269
  <rect width="760" height="760" fill="white"/>
270
270
  <path d="M228.364 295.356C222.342 298.789 216.809 303.025 211.757 307.791C211.129 307.4 209.392 307.923 209.057 307.442C207.927 305.844 209.51 272.851 209.636 268.239C212.49 268.706 227.212 267.227 227.98 269.202C229.647 273.507 226.424 289.766 228.364 295.349V295.356Z" fill="#E5E5E5"/>
271
271
  <path d="M343.08 311.238C337.115 305.049 331.619 300.614 324.153 296.367L324.55 268.343L343.116 268.141L343.073 311.238H343.08Z" fill="#E5E5E5"/>
@@ -309,7 +309,7 @@
309
309
  <path d="M467.844 133.607C466.654 127.582 469.43 104.861 465.904 101.164C464.818 100.026 463.543 99.6465 462.086 99.2586C461 98.9656 440.744 98.9656 439.667 99.2586C437.426 99.862 436.064 100.508 434.797 102.594C431.383 108.257 435.995 149.554 433.935 158.888" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
310
310
  <path d="M583.743 159.371V104.508C583.519 102.681 582.295 101.422 580.881 100.405C578.019 98.3449 554.316 98.5087 551.782 101.172C548.058 105.077 551.351 127.505 549.816 133.616" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
311
311
  </svg>
312
- `;var he=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1052 400" fill="none" xmlns="http://www.w3.org/2000/svg">
312
+ `;var se=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1052 400" fill="none" xmlns="http://www.w3.org/2000/svg">
313
313
  <g clip-path="url(#clip0_65_2798)">
314
314
  <rect width="1052" height="400" fill="#F5F5F5"/>
315
315
  <circle cx="534.998" cy="242.131" r="124.342" fill="#FCFCFD"/>
@@ -347,7 +347,7 @@
347
347
  </clipPath>
348
348
  </defs>
349
349
  </svg>
350
- `;var ce=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1052 400" fill="none" xmlns="http://www.w3.org/2000/svg">
350
+ `;var le=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1052 400" fill="none" xmlns="http://www.w3.org/2000/svg">
351
351
  <g clip-path="url(#clip0_65_2754)">
352
352
  <rect width="1052" height="400" fill="#F5F5F5"/>
353
353
  <path d="M0 400L1052 400V353.653C1052 353.653 1022.39 351.823 1004.35 353.653C991.923 354.914 987.185 358.993 974.363 358.992C955.976 358.99 954.547 348.101 936.161 348.001C926.066 347.946 920.797 349.533 911.514 351.118C899.549 353.161 895.714 357.348 882.76 357.843C870.108 358.327 864.611 354.106 851.952 353.653C839.292 353.201 829.573 356.35 821.929 355.269C814.285 354.189 807.353 353.525 799.115 353.653C777.714 353.99 760.99 355.691 740.776 357.113C719.303 358.621 700.501 356.085 678.969 359.649C657.438 363.214 657.496 366.249 641.353 368.342C627.261 370.168 618.332 369.295 603.736 370.31C588.922 371.34 580.919 372.529 566.119 373.591C551.515 374.638 543.333 375.906 528.502 375.723C513.506 375.538 505.457 374.032 490.885 372.606C476.053 371.155 467.916 370.066 453.268 368.342C438.534 366.607 430.118 365.812 415.652 363.749C400.689 361.615 389.192 358.052 378.035 357.559C366.877 357.066 353.334 357.725 341.642 357.327C315.291 356.426 289.866 353.776 262.506 353.634C250.126 353.568 244.823 353.862 230.446 355.71C216.069 357.559 194.4 357.327 179.92 357.327C165.44 357.327 137.105 361.684 114.607 361.78C92.1081 361.876 75.8997 352.826 53.401 352.922C30.9023 353.018 0 356.695 0 356.695V400Z" fill="#FCFCFD"/>
@@ -392,7 +392,7 @@
392
392
  </clipPath>
393
393
  </defs>
394
394
  </svg>
395
- `;var de=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 525 525" fill="none" xmlns="http://www.w3.org/2000/svg">
395
+ `;var he=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 525 525" fill="none" xmlns="http://www.w3.org/2000/svg">
396
396
  <rect width="525" height="525" fill="white"/>
397
397
  <path d="M239.872 275.199L237.36 276.741C236.665 277.168 236.084 277.758 235.67 278.46L224.453 297.458C222.485 300.791 224.888 305 228.759 305H272.221C276.096 305 278.499 300.782 276.522 297.449L265.256 278.455C264.842 277.756 264.263 277.169 263.571 276.744L261.13 275.246C259.025 273.954 256.292 274.393 254.697 276.279L254.349 276.691C252.379 279.021 248.799 279.058 246.781 276.77L246.237 276.153C244.629 274.331 241.944 273.928 239.872 275.199Z" fill="#E5E5E5"/>
398
398
  <path d="M273.155 305H225.845C221.955 305 219.555 300.754 221.561 297.422L245.216 258.118C247.159 254.889 251.841 254.889 253.784 258.118L277.439 297.422C279.445 300.754 277.045 305 273.155 305Z" stroke="#A3A3A3" stroke-width="2" stroke-linejoin="round"/>
@@ -408,7 +408,7 @@
408
408
  <circle cx="203.5" cy="212.5" r="5.5" stroke="#A3A3A3" stroke-width="2"/>
409
409
  <rect x="174" y="194" width="178" height="138" rx="7" stroke="#A3A3A3" stroke-width="2"/>
410
410
  </svg>
411
- `;var ue=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
411
+ `;var de=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
412
412
  <rect width="760" height="760" fill="white"/>
413
413
  <path d="M275.341 319.699C274.471 329.199 274.731 338.699 274.731 348.219C274.731 366.479 275.101 384.729 275.141 402.989C275.161 412.229 275.051 421.479 275.141 430.709C275.241 440.559 274.971 450.429 275.141 460.269C275.291 469.109 274.201 479.609 274.801 488.029C276.011 505.149 279.851 517.749 299.161 521.409C349.341 516.389 409.031 526.799 458.041 521.779C478.641 519.669 484.601 506.499 485.871 487.969C486.441 479.589 484.901 469.059 485.041 460.209C485.191 450.349 485.211 440.439 485.281 430.569C485.341 421.339 484.971 412.149 484.981 402.939C485.021 383.529 485.181 364.129 485.431 344.719C485.541 336.379 485.661 328.009 485.811 319.669" fill="white"/>
414
414
  <path d="M270.36 347.559C264.37 351.079 247.45 374.409 241.88 373.079C238.42 372.259 192.33 325.999 192 322.459C192.12 320.589 192.93 319.299 194.03 317.839C201.1 308.499 267.46 243.119 275.14 239.139C277.74 237.789 280.64 237.489 283.45 236.919C287.28 236.139 325.34 235.709 327.25 236.779C331.26 239.039 333.38 249.579 336.84 254.099C356.12 279.299 405.07 279.539 423.48 253.179C426.07 249.469 429.02 237.809 430.73 236.779C433.26 235.259 480.13 235.859 485.74 239.499C495.76 250.719 566.61 313.889 567.95 321.519C568.95 327.249 525.55 366.359 518.99 372.879C513.75 374.429 494.53 352.279 489.59 347.539" fill="white"/>
@@ -417,7 +417,7 @@
417
417
  <path d="M380.439 276.279V347.399" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
418
418
  <path d="M270.36 347.559C264.37 351.079 247.45 374.409 241.88 373.079C238.42 372.259 192.33 325.999 192 322.459C192.12 320.589 192.93 319.299 194.03 317.839C201.1 308.499 267.46 243.119 275.14 239.139C277.74 237.789 280.64 237.489 283.45 236.919C287.28 236.139 325.34 235.709 327.25 236.779C331.26 239.039 333.38 249.579 336.84 254.099C356.12 279.299 405.07 279.539 423.48 253.179C426.07 249.469 429.02 237.809 430.73 236.779C433.26 235.259 480.13 235.859 485.74 239.499C495.76 250.719 566.61 313.889 567.95 321.519C568.95 327.249 525.55 366.359 518.99 372.879C513.75 374.429 494.53 352.279 489.59 347.539" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
419
419
  </svg>
420
- `;var Ce=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
420
+ `;var ce=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
421
421
  <rect width="760" height="760" fill="white"/>
422
422
  <path d="M275.339 319.699C274.469 329.199 274.729 338.699 274.729 348.219C274.729 366.479 275.099 384.729 275.139 402.989C275.159 412.229 275.049 421.479 275.139 430.709C275.239 440.559 274.969 450.429 275.139 460.269C275.289 469.109 274.199 479.609 274.799 488.029C276.009 505.149 279.849 517.749 299.159 521.409C349.339 516.389 409.029 526.799 458.039 521.779C478.639 519.669 484.599 506.499 485.869 487.969C486.439 479.589 484.899 469.059 485.039 460.209C485.189 450.349 485.209 440.439 485.279 430.569C485.339 421.339 484.969 412.149 484.979 402.939C485.019 383.529 485.179 364.129 485.429 344.719C485.539 336.379 485.659 328.009 485.809 319.669" fill="white"/>
423
423
  <path d="M270.36 347.559C264.37 351.079 247.45 374.409 241.88 373.079C238.42 372.259 192.33 325.999 192 322.459C192.12 320.589 192.93 319.299 194.03 317.839C201.1 308.499 267.46 243.119 275.14 239.139C277.74 237.789 280.64 237.489 283.45 236.919C287.28 236.139 325.34 235.709 327.25 236.779C331.26 239.039 333.38 249.579 336.84 254.099C356.12 279.299 405.07 279.539 423.48 253.179C426.07 249.469 429.02 237.809 430.73 236.779C433.26 235.259 480.13 235.859 485.74 239.499C495.76 250.719 566.61 313.889 567.95 321.519C568.95 327.249 525.55 366.359 518.99 372.879C513.75 374.429 494.53 352.279 489.59 347.539" fill="white"/>
@@ -432,7 +432,7 @@
432
432
  <path d="M278.84 402.819H481.13" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
433
433
  <path d="M380.439 276.279V347.399" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
434
434
  </svg>
435
- `;var me=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
435
+ `;var ue=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
436
436
  <rect width="760" height="760" fill="white"/>
437
437
  <path d="M275.339 319.699C274.469 329.199 274.729 338.699 274.729 348.219C274.729 366.479 275.099 384.729 275.139 402.989C275.159 412.229 275.049 421.479 275.139 430.709C275.239 440.559 274.969 450.429 275.139 460.269C275.289 469.109 274.199 479.609 274.799 488.029C276.009 505.149 279.849 517.749 299.159 521.409C349.339 516.389 409.029 526.799 458.039 521.779C478.639 519.669 484.599 506.499 485.869 487.969C486.439 479.589 484.899 469.059 485.039 460.209C485.189 450.349 485.209 440.439 485.279 430.569C485.339 421.339 484.969 412.149 484.979 402.939C485.019 383.529 485.179 364.129 485.429 344.719C485.539 336.379 485.659 328.009 485.809 319.669" fill="white"/>
438
438
  <path d="M270.36 347.559C264.37 351.079 247.45 374.409 241.88 373.079C238.42 372.259 192.33 325.999 192 322.459C192.12 320.589 192.93 319.299 194.03 317.839C201.1 308.499 267.46 243.119 275.14 239.139C277.74 237.789 280.64 237.489 283.45 236.919C287.28 236.139 325.34 235.709 327.25 236.779C331.26 239.039 333.38 249.579 336.84 254.099C356.12 279.299 405.07 279.539 423.48 253.179C426.07 249.469 429.02 237.809 430.73 236.779C433.26 235.259 480.13 235.859 485.74 239.499C495.76 250.719 566.61 313.889 567.95 321.519C568.95 327.249 525.55 366.359 518.99 372.879C513.75 374.429 494.53 352.279 489.59 347.539" fill="white"/>
@@ -444,7 +444,7 @@
444
444
  <circle cx="378" cy="408" r="7" fill="#A3A3A3"/>
445
445
  <circle cx="378" cy="454" r="7" fill="#A3A3A3"/>
446
446
  </svg>
447
- `;var pe=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
447
+ `;var me=`<svg preserveAspectRatio="xMidYMid slice" viewBox="120 120 520 520" fill="none" xmlns="http://www.w3.org/2000/svg">
448
448
  <rect width="760" height="760" fill="white"/>
449
449
  <path d="M275.339 319.699C274.469 329.199 274.729 338.699 274.729 348.219C274.729 366.479 275.099 384.729 275.139 402.989C275.159 412.229 275.049 421.479 275.139 430.709C275.239 440.559 274.969 450.429 275.139 460.269C275.289 469.109 274.199 479.609 274.799 488.029C276.009 505.149 279.849 517.749 299.159 521.409C349.339 516.389 409.029 526.799 458.039 521.779C478.639 519.669 484.599 506.499 485.869 487.969C486.439 479.589 484.899 469.059 485.039 460.209C485.189 450.349 485.209 440.439 485.279 430.569C485.339 421.339 484.969 412.149 484.979 402.939C485.019 383.529 485.179 364.129 485.429 344.719C485.539 336.379 485.659 328.009 485.809 319.669" fill="white"/>
450
450
  <path d="M270.36 347.559C264.37 351.079 247.45 374.409 241.88 373.079C238.42 372.259 192.33 325.999 192 322.459C192.12 320.589 192.93 319.299 194.03 317.839C201.1 308.499 267.46 243.119 275.14 239.139C277.74 237.789 280.64 237.489 283.45 236.919C287.28 236.139 325.34 235.709 327.25 236.779C331.26 239.039 333.38 249.579 336.84 254.099C356.12 279.299 405.07 279.539 423.48 253.179C426.07 249.469 429.02 237.809 430.73 236.779C433.26 235.259 480.13 235.859 485.74 239.499C495.76 250.719 566.61 313.889 567.95 321.519C568.95 327.249 525.55 366.359 518.99 372.879C513.75 374.429 494.53 352.279 489.59 347.539" fill="white"/>
@@ -461,7 +461,7 @@
461
461
  <path d="M277 372H484" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
462
462
  <path d="M277 343H484" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
463
463
  </svg>
464
- `;var ge=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
464
+ `;var Ce=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
465
465
  <rect width="760" height="760" fill="white"/>
466
466
  <path d="M108.164 379.584C109.782 388.986 112.492 398.095 114.956 407.29C119.682 424.928 124.763 442.461 129.528 460.088C131.939 469.008 134.226 477.971 136.702 486.864C139.348 496.352 141.642 505.956 144.353 515.416C146.786 523.916 148.451 534.341 151.209 542.318C156.809 558.542 163.779 569.719 183.379 568.256C230.55 550.42 290.9 545.026 336.941 527.492C356.293 520.123 358.641 505.859 355.072 487.631C353.453 479.39 349.241 469.617 347.085 461.032C344.678 451.469 342.133 441.892 339.646 432.34C337.315 423.409 334.579 414.628 332.205 405.729C327.22 386.97 322.353 368.19 317.571 349.377C315.519 341.292 313.468 333.176 311.455 325.082" fill="white"/>
467
467
  <path d="M110.564 407.784C105.689 412.735 95.3835 439.649 89.6591 439.806C86.1048 439.909 29.6123 407.155 28.3773 403.821C28.0092 401.983 28.4577 400.528 29.1424 398.833C33.5541 387.981 80.7314 307.654 87.1196 301.821C89.2816 299.845 92.0051 298.804 94.5718 297.526C98.0695 295.782 134.721 285.516 136.843 286.055C141.301 287.2 146.077 296.832 150.589 300.303C175.734 319.654 223.079 307.217 234.039 276.99C235.58 272.736 235.412 260.71 236.797 259.272C238.848 257.149 284.276 245.598 290.637 247.662C303.219 255.906 388.005 298.586 391.274 305.61C393.723 310.886 361.924 359.896 357.275 367.891C352.615 370.745 328.317 354.324 322.318 351.024" fill="white"/>
@@ -491,7 +491,7 @@
491
491
  <path d="M279.6 329.819H481.89" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
492
492
  <path d="M381.199 203.279V274.399" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
493
493
  </svg>
494
- `;var fe=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
494
+ `;var pe=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
495
495
  <rect width="760" height="760" fill="white"/>
496
496
  <path d="M618.798 398.382C618.637 398.179 618.41 398.03 618.248 397.834L608.309 398.662C613.228 414.915 613.587 433.341 613.276 450.38C613.132 458.129 612.756 477.782 611.065 484.494C608.226 495.786 586.088 497.668 576.556 498.526C544.324 501.426 501.622 497.216 471.099 502.379C464.86 503.433 468.38 506.322 467.442 511.682C456.732 511.664 446.028 511.64 435.318 511.622C437.404 472.291 426.114 430.798 461.16 402.795C485.969 382.969 551.693 386.971 583.734 388.49C586.011 388.597 598.239 391.301 598.92 389.865V382.325C606.528 386.453 612.696 391.152 618.242 397.84C618.41 398.042 618.631 398.191 618.792 398.388L618.798 398.382Z" fill="#E5E5E5"/>
497
497
  <path d="M598.92 382.32V389.859C598.239 391.295 586.017 388.591 583.734 388.484C551.693 386.965 485.969 382.963 461.161 402.789C426.12 430.792 437.404 472.285 435.318 511.616L416.486 511.581H415.93L415.948 511.003C417.185 456.866 404.712 380.86 481.313 374.178C505.542 372.064 579.437 371.754 598.92 382.32Z" fill="white"/>
@@ -522,7 +522,7 @@
522
522
  <path d="M253.05 281.143C256.184 260.944 216.01 260.961 219.178 281.143" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
523
523
  <path d="M124.244 413.479H348.965" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round"/>
524
524
  </svg>
525
- `;var we=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
525
+ `;var ge=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
526
526
  <rect width="760" height="760" fill="white"/>
527
527
  <path d="M220.595 428.523C220.592 428.528 220.589 428.532 220.586 428.537L220.573 428.523C220.58 428.523 220.587 428.523 220.595 428.523C221.192 427.579 220.689 426.702 220.586 425.785C220.586 425.785 218.582 403.839 215.557 391.306C212.532 378.773 203.889 377.477 203.889 367.105C203.889 356.733 260.501 367.97 276.486 325.609C282.378 331.513 286.982 336.977 293.563 342.247L294.084 342.619C300.132 347.408 305.516 350.188 312.045 353.877L312.631 354.166C318.171 357.276 324.115 359.973 329.812 362.767L330.93 363.331C363.42 379.117 392.41 383.273 424.249 395.631C437.88 400.93 449.026 408.293 444.994 426.115C443.33 426.294 441.769 426.803 440.156 427.147C371.093 442.134 333.844 428.909 268.175 426.707C253.368 426.211 236.157 428.645 220.595 428.523Z" fill="#E5E5E5"/>
528
528
  <path d="M190.463 426.76C168.459 426.6 145.413 423.233 123.894 423.603C122.814 423.627 121.722 423.812 120.642 423.788C120.58 422.455 120.928 421 120.928 419.656C120.928 419.458 120.952 419.261 120.952 419.064C120.952 404.312 121.685 382.899 123.559 368.431C123.608 368.036 123.559 367.642 123.621 367.259C123.571 367.642 123.621 368.049 123.559 368.431L126.239 368.37C161.05 371.379 185.908 388.154 190.463 424.281C190.562 425.12 191.046 425.897 190.463 426.748V426.76Z" fill="#E5E5E5"/>
@@ -556,7 +556,7 @@
556
556
  <path d="M424.788 550.674C427.597 553.312 430.405 555.906 433.214 558.543L440.516 565.331" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
557
557
  <path d="M336.47 623.617L620.724 620.66C636.714 620.494 594.795 638.379 572.755 638.379C550.715 638.379 539.911 628.871 510.956 628.871C482.002 628.871 469.037 638.379 410.696 638.379C372.348 638.379 347.517 631.766 335.725 626.69C333.908 625.909 334.493 623.637 336.47 623.617Z" fill="#E5E5E5"/>
558
558
  </svg>
559
- `;var ye=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
559
+ `;var fe=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
560
560
  <rect width="760" height="760" fill="white"/>
561
561
  <path d="M479.595 564.449C479.592 564.454 479.589 564.459 479.586 564.463L479.573 564.449C479.58 564.449 479.587 564.449 479.595 564.449C480.192 563.505 479.689 562.628 479.586 561.711C479.586 561.711 477.582 539.765 474.557 527.232C471.532 514.699 462.889 513.403 462.889 503.031C462.889 492.659 519.501 503.896 535.486 461.535C541.378 467.439 545.982 472.903 552.563 478.173L553.084 478.545C559.132 483.334 564.516 486.114 571.045 489.803L571.631 490.092C577.171 493.202 583.115 495.899 588.812 498.693L589.93 499.257C622.42 515.043 651.41 519.199 683.249 531.557C696.88 536.856 708.026 544.219 703.994 562.041C702.33 562.22 700.769 562.729 699.156 563.073C630.093 578.06 592.844 564.835 527.175 562.633C512.368 562.137 495.157 564.571 479.595 564.449Z" fill="#E5E5E5"/>
562
562
  <path d="M449.463 562.686C427.459 562.526 404.413 559.159 382.894 559.529C381.814 559.553 380.722 559.738 379.642 559.714C379.58 558.382 379.928 556.926 379.928 555.582C379.928 555.384 379.952 555.187 379.952 554.99C379.952 540.238 380.685 518.825 382.559 504.357C382.608 503.963 382.559 503.568 382.621 503.185C382.571 503.568 382.621 503.975 382.559 504.357L385.239 504.296C420.05 507.305 444.908 524.08 449.463 560.207C449.562 561.046 450.046 561.823 449.463 562.674V562.686Z" fill="#E5E5E5"/>
@@ -590,7 +590,7 @@
590
590
  <path d="M300.395 564.875C314.202 573.266 339.47 580.978 353.422 570.021L353.994 569.65" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
591
591
  <path d="M160.434 422.714C153.408 416.7 145.362 415.637 139.676 424.286" stroke="#A3A3A3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
592
592
  </svg>
593
- `;var Se=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
593
+ `;var we=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
594
594
  <g clip-path="url(#clip0_65_2835)">
595
595
  <rect width="1300" height="730" fill="#F5F5F5"/>
596
596
  <path d="M1251.51 356.435L1300 341.166V730H4V341.166C5.68355 348.97 11.677 368.242 22.1824 382.9C35.3141 401.222 129.256 425.651 164.611 427.687C199.966 429.723 213.097 392.061 235.32 401.222C253.099 408.551 273.705 415.133 281.786 417.508L295.928 407.329H306.03C320.845 395.115 359.567 364.781 395.931 341.166C441.387 311.648 528.259 236.324 554.522 238.36C580.786 240.395 637.353 310.63 669.677 309.612C702.002 308.594 763.62 260.753 825.238 228.181C870.367 204.325 909.908 177.511 927.894 164.298C930.28 162.546 933.64 163.19 935.462 165.523C960.474 197.571 1035.18 219.508 1096.96 273.986C1148.68 319.587 1221.55 347.952 1251.51 356.435Z" fill="#A3A3A3"/>
@@ -616,7 +616,7 @@
616
616
  </clipPath>
617
617
  </defs>
618
618
  </svg>
619
- `;var ke=`<svg preserveAspectRatio="xMidYMin slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
619
+ `;var ye=`<svg preserveAspectRatio="xMidYMin slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
620
620
  <g clip-path="url(#clip0_65_2987)">
621
621
  <rect width="1300" height="730" fill="#F5F5F5"/>
622
622
  <path d="M1201.88 423C1262.75 419.8 1292.66 401.667 1300 393V730H4.4226C1.0852 572 -3.58715 256 4.4226 256C14.4348 256 25.4482 260 45.4726 273C65.4969 286 69.5018 301 98.5372 306C127.572 311 135.582 312 154.605 328C173.629 344 180.637 339 199.66 339C218.683 339 231.699 323 253.726 312C271.348 303.2 285.098 287.667 289.77 281C288.769 277 291.973 276.4 312.798 306C338.83 343 348.842 350 369.868 339C390.894 328 401.907 323 427.939 301C453.97 279 461.98 286 536.07 220C610.16 154 666.229 123 680.246 112C724.299 143 818.414 286 843.444 323C868.475 360 848.451 376 873.481 374C898.511 372 979.61 263 1014.65 286C1049.7 309 1070.72 393 1084.74 410C1098.76 427 1125.79 427 1201.88 423Z" fill="#A3A3A3"/>
@@ -655,7 +655,7 @@
655
655
  </clipPath>
656
656
  </defs>
657
657
  </svg>
658
- `;var Le=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
658
+ `;var Se=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 1300 730" fill="none" xmlns="http://www.w3.org/2000/svg">
659
659
  <g clip-path="url(#clip0_65_3281)">
660
660
  <rect width="1300" height="730" fill="white"/>
661
661
  <path d="M1300 0H0V730H1300V0Z" fill="#FCFCFD"/>
@@ -710,7 +710,7 @@
710
710
  </clipPath>
711
711
  </defs>
712
712
  </svg>
713
- `;var Ae=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
713
+ `;var ke=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
714
714
  <g clip-path="url(#clip0_65_3424)">
715
715
  <rect width="760" height="760" fill="white"/>
716
716
  <path d="M760 0H0V760H760V0Z" fill="#FCFCFD"/>
@@ -749,7 +749,7 @@
749
749
  </clipPath>
750
750
  </defs>
751
751
  </svg>
752
- `;var be=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
752
+ `;var Le=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
753
753
  <g clip-path="url(#clip0_65_3454)">
754
754
  <rect width="760" height="760" fill="white"/>
755
755
  <path d="M760 0H0V760H760V0Z" fill="#FCFCFD"/>
@@ -793,7 +793,7 @@
793
793
  </clipPath>
794
794
  </defs>
795
795
  </svg>
796
- `;var Te=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
796
+ `;var be=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 760 760" fill="none" xmlns="http://www.w3.org/2000/svg">
797
797
  <g clip-path="url(#clip0_65_3497)">
798
798
  <rect width="760" height="760" fill="white"/>
799
799
  <path d="M760 0H0V760H760V0Z" fill="#FCFCFD"/>
@@ -866,7 +866,7 @@
866
866
  </clipPath>
867
867
  </defs>
868
868
  </svg>
869
- `;var _e=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 980 700" fill="none" xmlns="http://www.w3.org/2000/svg">
869
+ `;var Ae=`<svg preserveAspectRatio="xMidYMid slice" viewBox="0 0 980 700" fill="none" xmlns="http://www.w3.org/2000/svg">
870
870
  <g clip-path="url(#clip0_65_3351)">
871
871
  <rect width="980" height="700" fill="white"/>
872
872
  <g clip-path="url(#clip1_65_3351)">
@@ -926,13 +926,13 @@
926
926
  </clipPath>
927
927
  </defs>
928
928
  </svg>
929
- `;var It={image:de,"product-1":Y2,"product-2":Q2,"product-3":X2,"product-4":ee,"product-5":te,"product-6":ie,"collection-1":ne,"collection-2":re,"collection-3":oe,"collection-4":ae,"collection-5":se,"collection-6":le,"lifestyle-1":he,"lifestyle-2":ce,"product-apparel-1":ue,"product-apparel-2":Ce,"product-apparel-3":me,"product-apparel-4":pe,"collection-apparel-1":ge,"collection-apparel-2":fe,"collection-apparel-3":we,"collection-apparel-4":ye,"hero-apparel-1":Se,"hero-apparel-2":ke,"hero-apparel-3":Le,"blog-apparel-1":Ae,"blog-apparel-2":be,"blog-apparel-3":Te,"detailed-apparel-1":_e},Me=It;function H5(n){return e=>{let t=Me[e];return t?.src?`<img src="${t.src}" alt="${e}" class="placeholder-svg placeholder-svg--${e}" />`:t}}function B5(n){return(e,t)=>(typeof e=="object"&&"value"in e&&(e=e.value),`<span data-swell-inline-editable="${t}">${e}</span>`)}var Ht={asset_url:n5,brightness_difference:r5,color_brightness:o5,color_contrast:a5,color_darken:s5,color_desaturate:l5,color_difference:h5,color_extract:c5,color_lighten:d5,color_mix:u5,color_modify:C5,color_saturate:m5,color_to_hex:p5,color_to_hsl:g5,color_to_rgb:f5,date:D3,default_errors:y5,divided_by:S5,font_face:k5,font_modify:L5,font_url:A5,format_address:$2,image_tag:b5,image_url:z2,inline_asset_content:T5,json:_5,json_pretty:M5,locale_flag:E5,money:P5,money_with_currency:v5,money_without_currency:D5,money_without_trailing_zeros:x5,stylesheet_tag:R5,time_tag:j5,translate:l4,t:l4,where:Z5,hex_to_rgba:N5,item_count_for_variant:J2,payment_button:F5,payment_terms:I5,placeholder_svg_tag:H5,inline_editable:B5};function Pe(n){(0,Ee.each)(Ht,(e,t)=>{if(typeof e=="function")n.engine.registerFilter(t,e(n));else if(typeof e.bind=="function"){let{bind:i,resolve:r}=e;n.engine.registerFilter(t,Bt(n,i,r))}})}function Bt(n,e,t=[]){let i=e(n);return Array.isArray(t)?async(...r)=>{let o=await Promise.all(r.map((a,s)=>Array.isArray(t[s])||t[s]===!0?ve(a,t[s]):a));return i(...o)}:i}async function ve(n,e){if(!n)return n;let t=n;v(t)&&(t=await t);try{if(Array.isArray(e))for(let i of e){if(typeof i!="string")continue;let[r,...o]=i.split("."),a=t[r];v(a)?t[r]=await a:typeof a?.resolve=="function"&&(t[r]=await a.resolve()),o.length>0&&(t[r]=await ve(t[r],[o.join(".")]))}}catch{}return t}var De=require("liquidjs");var xe={...De.defaultOperators,"==":h4,"!=":(n,e)=>!h4(n,e),contains:(n,e)=>(n=B(n),i3(n)?n.some(t=>h4(t,e)):Q3(n?.indexOf)?n.indexOf(B(e))>-1:!1)};function h4(n,e){return P3(n)?n.equals(e):P3(e)?e.equals(n):(n=B(n),e=B(e),i3(n)?i3(e)&&Gt(n,e):n==e)}function Gt(n,e){return n.length!==e.length?!1:!n.some((t,i)=>!h4(t,e[i]))}var x3=t3(require("color"),1),S=class n{color;colorValues;red;green;blue;constructor(e){try{this.color=Re(e)?typeof e.color.object=="function"?e.color:(0,x3.default)(e.colorValues):(0,x3.default)(e),this.colorValues=this.color.object(),this.red=Number(this.colorValues.r),this.green=Number(this.colorValues.g),this.blue=Number(this.colorValues.b)}catch{this.color=(0,x3.default)("#000000"),this.colorValues=this.color.object(),this.red=Number(this.colorValues.r),this.green=Number(this.colorValues.g),this.blue=Number(this.colorValues.b)}}static get(e){return e instanceof n?e:new n(e)}static clone(e){return Re(e)?new n(n.get(e).toString()):new n(e)}toString(){return this.color.string()}lighten(e){return this.color.lighten(e/100).hex().toLowerCase()}darken(e){return this.color.darken(e/100).hex().toLowerCase()}rgb(){return this.color.rgb().toString()}rgba(e){return this.color.alpha(e).rgb().toString()}hsl(){return this.color.hsl().round().toString()}hex(){return this.color.hex().toLowerCase()}saturate(e){return this.color.saturate(e/100).hex().toLowerCase()}desaturate(e){return this.color.desaturate(e/100).hex().toLowerCase()}modify(e,t){switch(e){case"red":case"green":case"blue":case"alpha":case"hue":case"lightness":break;case"saturation":return this.color.saturationl(t).hex();default:return this.toString()}let i=this.color[e](t);return e==="alpha"?i.string():i.hex()}extract(e){switch(e){case"red":case"green":case"blue":case"alpha":case"hue":case"lightness":break;case"saturation":return this.color.saturationl().toString();default:return this.toString()}return this.color[e]().toString()}mix(e,t){let i=this.color,r=e.color,[o,a,s]=i.rgb().array(),[l,d,u]=r.rgb().array(),h=x3.default.rgb([c4(o,l,t),c4(a,d,t),c4(s,u,t)]).alpha(c4(i.alpha(),r.alpha(),t));return i.alpha()!==1?h.string():h.hex()}contrast(e){return this.color.contrast(e.color).toFixed(1)}difference(e){let[t,i,r]=this.color.rgb().array(),[o,a,s]=e.color.rgb().array();return G5(t,o)+G5(i,a)+G5(r,s)}brightness(){return(this.red*299+this.green*587+this.blue*114)/1e3}brightnessDifference(e){return Math.max(this.brightness(),e.brightness())-Math.min(this.brightness(),e.brightness())}};function c4(n,e,t){return(n*t+e*(100-t))/100}function G5(n,e){return Math.max(n,e)-Math.min(n,e)}function Re(n){return typeof n=="object"&&n!==null&&Object.hasOwn(n,"color")&&Object.hasOwn(n,"colorValues")&&Object.hasOwn(n,"red")&&Object.hasOwn(n,"green")&&Object.hasOwn(n,"blue")}var R3=class extends q5.Liquid{theme;getThemeConfig;getThemeTemplateConfigByType;getAssetUrl;renderTemplate;renderTemplateString;renderPageSections;renderTranslation;renderCurrency;engine;isEditor;locale;currency;layoutName;extName;componentsDir;sectionsDir;lastSchema;constructor({theme:e,getThemeConfig:t,getThemeTemplateConfigByType:i,getAssetUrl:r,renderTemplate:o,renderTemplateString:a,renderPageSections:s,renderTranslation:l,renderCurrency:d,isEditor:u,locale:h,currency:p,layoutName:C,extName:m,componentsDir:g,sectionsDir:f}){super(),this.theme=e,this.getThemeConfig=t||e.getThemeConfig.bind(e),this.getThemeTemplateConfigByType=i||e.getThemeTemplateConfigByType.bind(e),this.getAssetUrl=r||e.getAssetUrl.bind(e),this.renderTemplate=o||e.renderTemplate.bind(e),this.renderTemplateString=a||e.renderTemplateString.bind(e),this.renderPageSections=s||e.renderPageSections.bind(e),this.renderTranslation=l||e.renderTranslation.bind(e),this.renderCurrency=d||e.renderCurrency.bind(e),this.isEditor=u,this.locale=h||"en-US",this.currency=p||"USD",this.layoutName=C||"theme",this.extName=m||"liquid",this.componentsDir=g||"components",this.sectionsDir=f||"sections",this.engine=this.initLiquidEngine()}initLiquidEngine(){return this.engine=new q5.Liquid({cache:!1,relativeReference:!1,fs:this.getLiquidFS(),ownPropertyOnly:!1,operators:xe}),U2(this),Pe(this),this.engine}getLiquidFS(){let{getThemeConfig:e,resolveFilePath:t}=this;return{async readFile(i){let r=t(i);return e(r).then(o=>o?.file_data||`<!-- theme template not found: ${r} -->`)},async exists(i){return!0},readFileSync(i){return""},existsSync(i){return!1},contains(i,r){return!0},resolve(i,r,o){return r},fallback(i){}}}async parseAndRender(e,t){return this.engine.parseAndRender(e,t)}resolveFilePath(e,t){return`theme/${e}.${t||this.extName}`}async resolveFilePathByType(e,t){if(this.getThemeTemplateConfigByType){let i=await this.getThemeTemplateConfigByType(e,t);if(i?.file_path)return i.file_path}}async getComponentPath(e){return await this.resolveFilePathByType("components",e)||this.resolveFilePath(`${this.componentsDir}/${e}`)}async getSectionPath(e){return await this.resolveFilePathByType("sections",e)||this.resolveFilePath(`${this.sectionsDir}/${e}`)}async getSectionGroupPath(e){return await this.resolveFilePathByType("sections",`${e}.json`)||this.resolveFilePath(`${this.sectionsDir}/${e}`,"json")}};var V5=require("lodash-es");async function O5(n,e,t){let r=(await Promise.all(e?.map(async o=>({...o,items:await U5(n,o.items,t)})))).map(o=>(n.shopifyCompatibility&&Object.assign(o,n.shopifyCompatibility.getMenuData(o)),o))||[];return K5([...r,...n.shopifyCompatibility?r.reduce((o,a)=>(a.handle&&o.push({...a,id:a.handle}),o),[]):[]])}async function U5(n,e,t){return e?.length>0?Promise.all(e.map(async r=>{let{url:o,resource:a}=await je(n,r,{trailingSlash:t?.currentUrl?.endsWith("/")&&t.currentUrl!=="/"}),s=r.items&&await U5(n,r.items,t);return{...r,url:o,resource:a,levels:Ze(s),current:t?.currentUrl===o,active:t?.currentUrl?.startsWith(o),...s?{items:s,child_current:qt(s),child_active:$5(s)}:void 0}})):[]}async function je(n,e,t){if(!e)return{url:"#invalid-link-item"};if(typeof e=="object"&&e!==null){let{url:i,resource:r}=await Fe(n,e),o=i.slice(-1)==="/";return t?.trailingSlash&&!o&&i.length>1&&(i=i+"/"),!t?.trailingSlash&&o&&i.length>1&&(i=i.slice(0,-1)),{url:i,resource:r}}else return{url:e}}function Ze(n){return n?.reduce((e,t)=>Math.max(e,t.items?1+Ze(t.items):0),0)||0}function qt(n){return n.some(e=>e.current||e.items&&$5(e.items))}function $5(n){return n.some(e=>e.active||e.items&&$5(e.items))}function Ne(n){return(0,V5.get)(n,"id",(0,V5.get)(n,"slug",typeof n=="string"?n:""))||""}async function Fe(n,e){let{type:t,value:i,url:r,model:o}=e;if(typeof t>"u"&&r)return{url:r};if(t==="url")return{url:typeof i=="string"?i:""};let a=Ne(i);switch(t){case"home":return{url:l3(n,"index")};case"category":return a?await s3(n,"categories/category",a):{url:l3(n,"categories/index")};case"product":return a?await s3(n,"products/product",a):{url:l3(n,"products/index")};case"page":return await s3(n,"pages/page",a);case"blog":return await s3(n,"blogs/blog",a,async s=>new _(n.swell,"content/blog-categories",s.category_id).slug);case"blog_category":return await s3(n,"blogs/category",a);case"content_list":if(o){let s=o?.replace("content/","");return{url:l3(n,"content/index",s),resource:new A(n.swell,o)}}break;case"content":if(o){let s=o?.replace("content/","");return await s3(n,"content/content",a,s)}break;case"search":return{url:l3(n,"search")};default:break}return{url:`/${a}`}}function l3(n,e,t,i){let{props:r}=n,o=r?.pages?.find(a=>a.id===e)?.url;return o?.includes(":collection")&&i&&(o=o.replace(":collection",i)),o?.includes(":slug")&&(o=o.replace(":slug",t||"")),o||`/${t||""}`}async function s3(n,e,t,i){let{props:r}=n,o=r?.pages?.find(d=>d.id===e)?.collection,a=o?new _(n.swell,o,t):void 0,s=await a?.slug||t,l=typeof i=="string"?i:void 0;return a?.id&&typeof i=="function"&&(l=await i(a)),{url:l3(n,e,s,typeof l=="string"?l:void 0),resource:a}}var Ie=t3(require("bluebird"),1);var{Promise:j3}=Ie.default,Vt=50,d4=class n{static cache;swell;manifest=null;configs={};configPaths=[];constructor(e){this.swell=e}async init(e){let{swellHeaders:t}=this.swell;if(e){this.setConfigs(e);return}t["theme-id"]&&(await this.fetchManifest(),this.manifest||(console.log("ThemeLoader.init - version manifest not found"),await this.loadTheme()))}async loadTheme(){let{swellHeaders:e}=this.swell;if(console.log("ThemeLoader.loadTheme",e["theme-version-hash"]),e["theme-version-hash"]){let t=await this.loadThemeFromManifest();if(t)return t}return this.loadThemeAllConfigs()}setConfigs(e){this.configs=Object.fromEntries(e),this.configPaths=Object.keys(this.configs),this.manifest=this.configPaths.reduce((t,i)=>(t[i]=this.configs[i]?.hash,t),{})}async preloadTheme(e,t){console.log(`ThemeLoader.preloadTheme${e?.hash?` - manifest: ${e.hash}`:""}${t?.length?` - configs: ${t.length}`:""}`),await j3.all([e&&this.cacheManifest(e),t&&j3.map(t,i=>this.cacheThemeConfig(i),{concurrency:10})])}async fetchThemeConfig(e){if(this.configs[e]!==void 0)return this.configs[e];let t=this.manifest?.[e];if(t){let i=await this.getCache().get(`config:${t}`);return i?(this.configs[e]=i,i):this.fetchThemeConfigsFromSourceByPath(e,t)}return null}async fetchThemeConfigsByPath(e,t){let i=this.configPaths.filter(o=>o.startsWith(e)&&(!t||o.endsWith(t)));return(await j3.map(i,o=>this.fetchThemeConfig(o),{concurrency:10})).filter(o=>o!==null)}async loadThemeAllConfigs(){let{swellHeaders:e}=this.swell,t=String(e["theme-config-version"]);if(!t)throw new Error("Theme version is required");return(await this.getCache().fetch(`configs-all:${this.swell.instanceId}:v@${t}2`,()=>this.fetchThemeConfigsFromSource()))?.results??[]}async loadThemeFromManifest(){let e=await this.fetchManifest();if(!e)return null;let t=[],i=new Map;if(await j3.map(Object.values(e),r=>this.getCache().get(`config:${r}`).then(o=>{o?(i.set(o.hash,o),this.configs[o.file_path]=o):t.push(r)}),{concurrency:10}),t.length>0){let o=(await this.fetchThemeConfigsFromSource(i.size===0?void 0:t))?.results??[];for(let a of o)i.set(a.hash,a),this.configs[a.file_path]=a;await j3.map(o,a=>this.cacheThemeConfig(a),{concurrency:10})}return Array.from(i.values())}async cacheManifest(e){e?.hash&&await this.getCache().set(`manifest:${e.hash}`,e.manifest)}async cacheThemeConfig(e){e?.hash&&await this.getCache().set(`config:${e.hash}`,e)}async fetchManifest(){let{swellHeaders:e}=this.swell,t=e["theme-version-hash"];console.log("ThemeLoader.fetchManifest",t);let i=await this.getCache().get(`manifest:${t}`);if(!i){let r=await this.swell.get("/:themes:versions/:last",{...this.themeVersionQueryFilter(),fields:"hash, manifest"});r&&(await this.cacheManifest(r),i=r.manifest)}return this.manifest=i,this.configPaths=Object.keys(i||{}),this.manifest}async fetchThemeConfigsFromSource(e=void 0){e=e||[];let{swellHeaders:t}=this.swell,i=String(t["theme-config-version"]),r=e.length===0||e.length>Vt;return console.log(`Retrieving ${r?"all":"some"} theme configurations - version: ${i}`),await this.swell.get("/:themes:configs",{...this.themeVersionQueryFilter(),...r?{}:{hash:{$in:e}},limit:1e3,type:"theme",fields:"name, file, file_path, hash",include:{file_data:n4}})}async fetchThemeConfigsFromSourceByPath(e,t){console.log(`Retrieving theme config - ${e}`);let i=await this.swell.get("/:themes:configs/:last",{...this.themeVersionQueryFilter(),file_path:e,fields:"name, file, file_path, hash",include:{file_data:n4}});return i&&(t&&(i.hash=t),await this.cacheThemeConfig(i)),this.configs[e]=i,i}themeVersionQueryFilter(){let{swellHeaders:e}=this.swell,t=e["theme-id"];if(!t)throw new Error("Theme ID is required");return{parent_id:t,branch_id:e["theme-branch-id"]||null,preview:e["deployment-mode"]==="editor"||e["deployment-mode"]==="preview"?!0:{$ne:!0}}}getCache(){return n.cache||(n.cache=new E3(this.swell.workerEnv?.THEME)),n.cache}};var W5=class{swell;props;globals;forms;resources;liquidSwell;themeLoader;themeConfigs=null;page;pageId;shopifyCompatibility=null;shopifyCompatibilityClass=f3;shopifyCompatibilityConfig=null;formData={};globalData={};constructor(e,t={}){let{forms:i,resources:r,globals:o,shopifyCompatibilityClass:a}=t;this.swell=e,this.props=this.getSwellAppThemeProps(e.config),this.shopifyCompatibilityConfig=e.shopifyCompatibilityConfig||null,this.globals=o||{},this.forms=i,this.resources=r,this.shopifyCompatibilityClass=a||f3,this.liquidSwell=new R3({theme:this,getThemeConfig:this.getThemeConfig.bind(this),getAssetUrl:this.getAssetUrl.bind(this),getThemeTemplateConfigByType:this.getThemeTemplateConfigByType.bind(this),renderTemplate:this.renderTemplate.bind(this),renderTemplateString:this.renderTemplateString.bind(this),renderPageSections:this.renderPageSections.bind(this),renderTranslation:this.lang.bind(this),renderCurrency:this.renderCurrency.bind(this),isEditor:e.isEditor}),this.themeLoader=new d4(e)}getSwellAppThemeProps(e){return e?.storefront?.theme||{}}async initGlobals(e){this.pageId=e,await this.themeLoader.init(this.themeConfigs||void 0);let{store:t,session:i,menus:r,geo:o,configs:a}=await this.getSettingsAndConfigs(),{settings:s,request:l,page:d,cart:u,account:h,customer:p}=await this.resolvePageData(t,a,e);this.page=d;let C={...this.globalData,store:t,settings:s,session:i,request:l,menus:r,page:d,cart:u,account:h,customer:p,geo:o,configs:a,translations:a?.translations,canonical_url:`${t.url}${this.swell.url?.pathname||""}`,shopify_compatibility:!!s.shopify_compatibility};this.shopifyCompatibility&&this.shopifyCompatibility.adaptGlobals(C),this.setGlobals(C),this.shopifyCompatibility&&this.shopifyCompatibility.adaptQueryParams()}setGlobals(e){this.globals={...this.globals,...e},this.liquidSwell.engine.options.globals={...this.globals}}async getSettingsAndConfigs(){let e=B4,[t,i]=await Promise.all([this.swell.getStorefrontSettings(),this.getThemeConfigsByPath("theme/config/",".json")]),r={theme:{},editor:{},translations:{},presets:[],...Array.from(i.values()).reduce((s,l)=>{let d=String(l?.name||"").split(".")[0];if(d){let u;try{u=JSON.parse(l.file_data)}catch{u=null}s[d]=u}return s},{})},o=await this.swell.storefront.settings.session();this.resolveTranslationLocale(r.translations),await this.setCompatibilityConfigs(r);let a=await this.resolveMenuSettings();return{store:t?.store,session:o,menus:a,geo:e,configs:r}}async resolvePageData(e,t,i){let r=String(this.swell.swellHeaders["theme-config-version"]),o=await this.swell.getCachedResource(`theme-settings-resolved:v@${r}`,[],()=>F3(this,t.theme,t.editor?.settings));if(!o)throw new Error("Failed to resolve theme settings");let{locale:a,currency:s}=this.swell.getStorefrontLocalization(),l={host:this.swell.url.host,origin:this.swell.url.origin,path:this.swell.url.pathname,query:this.swell.queryParams,locale:a||e.locale,currency:s||e.currency,is_editor:this.swell.isEditor,is_preview:this.swell.isPreview},d=this.props.pages?.find(g=>g.id===i),u=!d,h={...d,current:this.swell.queryParams.page||1,url:this.swell.url.pathname,custom:u,slug:null,description:null,$locale:null};if(i){let g=await this.getThemeTemplateConfigByType("templates",i),f;try{f=JSON.parse(g?.file_data||"")}catch{}if(f?.page){let{slug:X,label:d3,description:U3,$locale:$3}=f.page;h.slug=X,h.label=d3,h.description=U3,h.$locale=$3}}let[p,C]=await Promise.all([this.fetchSingletonResourceCached("cart",()=>this.fetchCart(),{}),this.fetchSingletonResourceCached("account",()=>this.fetchAccount(),null)]);if(!p)throw new Error("Failed to fetch cart");let m;return this.shopifyCompatibility&&(m=C),{settings:o,request:l,page:h,cart:p,account:C,customer:m}}async fetchSingletonResourceCached(e,t,i){let r=this.swell.storefront.session.getCookie();return r?this.swell.getCachedResource(`${e}-${r}`,[],()=>t()):i}async fetchCart(){let e=this.resources?.singletons?.cart,t=e?new e(this.swell):new Y(this.swell,"cart");if(await t.id,!t?.id)return{};if(this.shopifyCompatibility){let i=m3(this.shopifyCompatibility,t);t.setCompatibilityProps(i)}return t}async fetchAccount(){let e=this.resources?.singletons?.account,t=e?new e(this.swell):new Y(this.swell,"account");if(await t.id,!t?.id)return null;if(this.shopifyCompatibility){let i=K(this.shopifyCompatibility,t);t.setCompatibilityProps(i)}return t}getFormConfig(e){let t=e;if(this.shopifyCompatibility){let i=this.shopifyCompatibility.getAdaptedFormType(e);i&&(t=i)}return this.forms?.find(i=>i.id===t)}setFormData(e,t){let i=this.formData[e]||new O(e);i instanceof O&&(t?.params&&i.setParams(t.params),t?.errors?(i.setSuccess(!1),i.setErrors(t.errors)):t?.success&&(t.withoutErrors&&!i.errors?i.setSuccess(!0):t.withoutErrors||(i.setSuccess(!0),i.clearErrors())),this.shopifyCompatibility&&Object.assign(i,this.shopifyCompatibility.getFormData(i))),this.formData[e]=i,this.setGlobals({forms:this.formData})}setFormSuccessWithoutErrors(e){this.setFormData(e,{success:!0,withoutErrors:!0})}clearFormData(e){e?delete this.formData[e]:this.formData={},this.setGlobals({forms:this.formData})}serializeFormData(){let e={};for(let t in this.formData){let i=this.formData[t];e[t]={success:i.success,errors:i.errors&&Array.from(i.errors)}}return Object.keys(e).length>0?e:null}setGlobalData(e={}){this.globalData={...this.globalData,...e},this.setGlobals(this.globalData)}serializeGlobalData(){return Object.keys(this.globalData).length>0?this.globalData:null}updateSettings(e,t){return this.shopifyCompatibility?this.shopifyCompatibility.adaptSettings(e,t):y3(e,t)}resolveTranslationLocale(e){if(!e)return{};let{locale:t}=this.swell.getStorefrontLocalization();if(!t)return e;let i=t.split("-")[0];return(0,b.reduce)(e,(r,o,a)=>{if(w3(o))r[a]=this.resolveTranslationLocale(o);else if(typeof o=="string"&&o.startsWith("t:")){let s=o.slice(2),l=s.split("."),d=l.pop(),u=l.join("."),h=this.globals.translations;r[a]=(0,b.get)(h,`${u}.$locale.${t}.${d}`)||(0,b.get)(h,`${u}.$locale.${i}.${d}`)||(0,b.get)(h,s)||o}else r[a]=(0,b.get)(e,`$locale.${t}.${a}`)||(0,b.get)(e,`$locale.${i}.${a}`)||o;return r},{})}async setCompatibilityConfigs(e){let t=()=>(this.shopifyCompatibility||(this.shopifyCompatibility=new this.shopifyCompatibilityClass(this)),this.shopifyCompatibility);if(!Object.keys(e.editor).length&&e.settings_schema){let i=await this.swell.storefront.settings.get("store");e.editor=t().getEditorConfig(e.settings_schema),e.editor=await t().renderSchemaTranslations(this,e.editor,i.currency||"en-US")}if(!Object.keys(e.theme).length&&e.settings_data&&(e.theme=t().getThemeConfig(e.settings_data)),!Object.keys(e.presets).length&&e.settings_data&&(e.presets=t().getPresetsConfig(e.settings_data)),!Object.keys(e.translations).length){let{locale:i}=this.swell.getStorefrontLocalization();e.translations=await t().getLocaleConfig(this,i)}e.theme.shopify_compatibility?t():this.shopifyCompatibility&&(e.theme.shopify_compatibility=!0)}setCompatibilityData(e){!e||!this.shopifyCompatibility||this.shopifyCompatibility.adaptPageData(e)}resolveLookupSetting(e,t){if(t instanceof T)return t;let i=He(e);if(i){if(e.multiple){if(t instanceof Array)return t.map(r=>this.resolveLookupResource(i,r))}else if(t!==""&&t!==null&&t!==void 0)return this.resolveLookupResource(i,t)}return null}resolveLookupResource(e,t){let i=this.resources?.records?.[e],r=i?new i(this.swell,t):new _(this.swell,e,t);return this.shopifyCompatibility&&this.shopifyCompatibility.adaptPageData({resource:r}),r}resolveMenuSettings(){return O5(this,this.swell.getStorefrontMenus(),{currentUrl:this.swell.url.pathname})}resolveMenuSetting(e){if(!e)return null;let t=this.globals.menus||{};return t[e]||t[e.replace(/-/g,"_")]||null}async lang(e,t,i){return await this.renderTranslation(e,t,i)}resolveFontSetting(e){if(this.shopifyCompatibility){let t=this.shopifyCompatibility.getFontFromShopifySetting(e),i=D.get(t||e);return Object.assign(i,this.shopifyCompatibility.getFontData(i)),i}return D.get(e)}resolveUrlSetting(e){let t=e;if(this.shopifyCompatibility){e?.startsWith("shopify://")&&(t=e.replace("shopify://","/"));let i=this.shopifyCompatibility.getAdaptedPageUrl(t);if(i)return i}return t}resolveImageSetting(e){let t=e;return this.shopifyCompatibility&&e?.startsWith("shopify://")&&(t=""),t}async getAllThemeConfigs(){if(!this.themeConfigs){let e=await this.themeLoader.loadTheme(),t=new Map;for(let i of e)t.set(i.file_path,i);this.themeConfigs=t}return this.themeConfigs}async preloadThemeConfigs(e,t){await this.themeLoader.preloadTheme(e,t)}getPageConfigPath(e){return this.shopifyCompatibility?`theme/${this.shopifyCompatibility.getThemeFilePath("templates",e)}.json`:`theme/templates/${e}.json`}async getThemeConfig(e){return this.themeConfigs?this.themeConfigs.get(e)??null:this.themeLoader.fetchThemeConfig(e)}async getThemeConfigsByPath(e,t){let i=await this.themeLoader.fetchThemeConfigsByPath(e,t),r=new Map;for(let o of i)r.set(o.file_path,o);return r}async getThemeTemplateConfig(e){if(e.endsWith(".json")||e.endsWith(".liquid"))return this.getThemeConfig(e);let t=await this.getThemeConfig(`${e}.json`);return t||this.getThemeConfig(`${e}.liquid`)}async getThemeTemplateConfigByType(e,t){let i=[`${e}/${t}`];this.shopifyCompatibility&&i.push(this.shopifyCompatibility.getThemeFilePath(e,t));for(let r of i){let o=await this.getThemeTemplateConfig(`theme/${r}`);if(o)return o}return null}async getAssetUrl(e){return(await this.getThemeConfig(`theme/assets/${e}`)||await this.getThemeConfig(`assets/${e}`))?.file?.url||null}async renderTemplate(e,t){let i=e?.file_data||null;if(e===null||i===null)return"";try{return await this.liquidSwell.parseAndRender(i,t)}catch(r){return console.error(r),`<!-- template render error: ${r.message} -->`}}async renderTemplateString(e,t){try{return await this.liquidSwell.parseAndRender(e,t)}catch(i){return console.error(i),""}}async getSectionSchema(e){let t,i=await this.getThemeTemplateConfigByType("sections",e);if(i?.file_path?.endsWith(".json"))try{t=JSON.parse(i.file_data)||void 0}catch{return}else if(i?.file_path?.endsWith(".liquid")&&this.shopifyCompatibility){this.liquidSwell.lastSchema=void 0;let r=this.getSectionConfigWithSchemaTagOnly(i);if(!r)return;await this.renderTemplate(r);let o=this.liquidSwell.lastSchema;o&&(t=this.shopifyCompatibility.getSectionConfigSchema(o),t=await this.shopifyCompatibility.renderSchemaTranslations(this,t,this.globals.store?.locale))}return t&&(t.id=t.id||e,t.label=t.label||e,t.fields=t.fields||[]),t}getSectionConfigWithSchemaTagOnly(e){let t="{% schema %}",i="{% endschema %}",r=e.file_data.indexOf(t),o=e.file_data.indexOf(i),a=e.file_data.slice(r+t.length,o);return r===-1||o===-1?null:{...e,file_data:t+a+i}}async renderThemeTemplate(e,t){let i=await this.getThemeTemplateConfig(e),r=await this.renderTemplate(i,t);if(i?.file_path?.endsWith(".json"))try{return JSON.parse(r)}catch(o){throw console.log("Unable to render theme template",i.file_path,r),new Z3(o)}return r}async renderLayoutTemplate(e,t){let i=await this.getThemeTemplateConfigByType("layouts",e);if(i){let r=await this.renderThemeTemplate(i.file_path,t);return typeof r=="string"?r:`<!-- invalid layout: ${e}--> {{ content_for_layout }}`}throw new Error(`Layout template not found: ${e}`)}async renderPageTemplate(e,t,i){let r=null;if(i&&(r=await this.getThemeTemplateConfigByType("templates",`${e}.${i}`)),r||(r=await this.getThemeTemplateConfigByType("templates",e)),r){let o=e.split("/").splice(1).join("/")||null,a={name:e,alt_name:i||null,path:o||null};this.shopifyCompatibility&&(a=F4(this.shopifyCompatibility,a)),this.setGlobals({template:a});let s=await this.renderThemeTemplate(r.file_path,t);return s&&typeof s!="string"&&(s.id=r.name),s}throw console.error(new Error(`Page template not found: templates/${e}.liquid`)),new N3}async renderPage(e,t){e&&this.setGlobals(e);let i;if(this.page?.id?i=await this.renderPageTemplate(this.page.id,e,t):i=await this.renderPageTemplate("404",e),typeof i!="string"&&i?.page){if(i.page.published===!1)throw new N3;i.page=this.resolveTranslationLocale(i.page)}return i}async renderAllSections(e,t){let i=typeof e=="string"?e.split(/\s*,\s*/):e;return(await Promise.all(i.map?.(o=>this.renderSection(o,t)))).reduce((o,a,s)=>{let l=i[s];return this.shopifyCompatibility?o[l]=`
930
- <div id="shopify-section-${l}" class="shopify-section">${a}</div>
931
- `.trim():o[l]=`
932
- <div id="swell-section-${l}" class="swell-section">${a}</div>
933
- `.trim(),o},{})}async renderSection(e,t){t&&this.setGlobals(t);let[i,r]=e?.split(/\_\_/).reverse(),o=(r||"").replaceAll("_","/"),a=await this.getThemeTemplateConfigByType(o?"templates":"sections",o||i);if(a){let s=await this.renderThemeTemplate(a.file_path,t);if(o&&s?.sections){let l=s?.sections,d={id:r,sections:{[i]:l[i]}},[u]=await this.renderPageSections(d,t);return u.output||""}return s}return""}async renderLayout(e){return this.liquidSwell.layoutName?this.renderLayoutTemplate(this.liquidSwell.layoutName,e):e?.content_for_layout||""}getContentForHeader(){let e=`
929
+ `;var D1={image:he,"product-1":W2,"product-2":J2,"product-3":Y2,"product-4":Q2,"product-5":X2,"product-6":ee,"collection-1":te,"collection-2":ie,"collection-3":ne,"collection-4":re,"collection-5":ae,"collection-6":oe,"lifestyle-1":se,"lifestyle-2":le,"product-apparel-1":de,"product-apparel-2":ce,"product-apparel-3":ue,"product-apparel-4":me,"collection-apparel-1":Ce,"collection-apparel-2":pe,"collection-apparel-3":ge,"collection-apparel-4":fe,"hero-apparel-1":we,"hero-apparel-2":ye,"hero-apparel-3":Se,"blog-apparel-1":ke,"blog-apparel-2":Le,"blog-apparel-3":be,"detailed-apparel-1":Ae},Te=D1;function B5(n){return e=>{let t=Te[e];return t?.src?`<img src="${t.src}" alt="${e}" class="placeholder-svg placeholder-svg--${e}" />`:t}}function G5(n){return(e,t)=>(typeof e=="object"&&"value"in e&&(e=e.value),`<span data-swell-inline-editable="${t}">${e}</span>`)}var x1={asset_url:n5,brightness_difference:r5,color_brightness:a5,color_contrast:o5,color_darken:s5,color_desaturate:l5,color_difference:h5,color_extract:d5,color_lighten:c5,color_mix:u5,color_modify:m5,color_saturate:C5,color_to_hex:p5,color_to_hsl:g5,color_to_rgb:f5,date:R3,default_errors:y5,divided_by:S5,font_face:k5,font_modify:L5,font_url:b5,format_address:O2,image_tag:A5,image_url:$2,inline_asset_content:T5,json:_5,json_pretty:M5,locale_flag:E5,money:P5,money_with_currency:v5,money_without_currency:R5,money_without_trailing_zeros:D5,script_tag:x5,stylesheet_tag:j5,time_tag:Z5,translate:s4,t:s4,where:N5,hex_to_rgba:F5,item_count_for_variant:z2,payment_button:I5,payment_terms:H5,placeholder_svg_tag:B5,inline_editable:G5};function Me(n){(0,_e.each)(x1,(e,t)=>{if(typeof e=="function")n.registerFilter(t,e(n));else if(typeof e.bind=="function"){let{bind:i,resolve:r}=e;n.registerFilter(t,j1(n,i,r))}})}function j1(n,e,t=[]){let i=e(n);return Array.isArray(t)?async function(...r){let[a,...o]=await Promise.all(r.map((s,l)=>Array.isArray(t[l])||t[l]===!0?Ee(s,t[l]):s));return i.call(this,a,...o)}:i}async function Ee(n,e){if(!n)return n;let t=n;R(t)&&(t=await t);try{if(Array.isArray(e))for(let i of e){if(typeof i!="string")continue;let[r,...a]=i.split("."),o=t[r];v(o)&&(R(o)?t[r]=await o:p3(o.resolve)&&(t[r]=await o.resolve())),a.length>0&&(t[r]=await Ee(t[r],[a.join(".")]))}}catch{}return t}var Pe=require("liquidjs");var ve={...Pe.defaultOperators,"==":l4,"!=":(n,e)=>!l4(n,e),contains:(n,e)=>(n=q(n),n3(n)?n.some(t=>l4(t,e)):p3(n?.indexOf)?n.indexOf(q(e))>-1:!1)};function l4(n,e){return P3(n)?n.equals(e):P3(e)?e.equals(n):(n=q(n),e=q(e),n3(n)?n3(e)&&Z1(n,e):n==e)}function Z1(n,e){return n.length!==e.length?!1:!n.some((t,i)=>!l4(t,e[i]))}var D3=i3(require("color"),1),S=class n{color;colorValues;red;green;blue;constructor(e){try{this.color=Re(e)?typeof e.color.object=="function"?e.color:(0,D3.default)(e.colorValues):(0,D3.default)(e),this.colorValues=this.color.object(),this.red=Number(this.colorValues.r),this.green=Number(this.colorValues.g),this.blue=Number(this.colorValues.b)}catch{this.color=(0,D3.default)("#000000"),this.colorValues=this.color.object(),this.red=Number(this.colorValues.r),this.green=Number(this.colorValues.g),this.blue=Number(this.colorValues.b)}}static get(e){return e instanceof n?e:new n(e)}static clone(e){return Re(e)?new n(n.get(e).toString()):new n(e)}toString(){return this.color.string()}lighten(e){return this.color.lighten(e/100).hex().toLowerCase()}darken(e){return this.color.darken(e/100).hex().toLowerCase()}rgb(){return this.color.rgb().toString()}rgba(e){return this.color.alpha(e).rgb().toString()}hsl(){return this.color.hsl().round().toString()}hex(){return this.color.hex().toLowerCase()}saturate(e){return this.color.saturate(e/100).hex().toLowerCase()}desaturate(e){return this.color.desaturate(e/100).hex().toLowerCase()}modify(e,t){switch(e){case"red":case"green":case"blue":case"alpha":case"hue":case"lightness":break;case"saturation":return this.color.saturationl(t).hex();default:return this.toString()}let i=this.color[e](t);return e==="alpha"?i.string():i.hex()}extract(e){switch(e){case"red":case"green":case"blue":case"alpha":case"hue":case"lightness":break;case"saturation":return this.color.saturationl().toString();default:return this.toString()}return this.color[e]().toString()}mix(e,t){let i=this.color,r=e.color,[a,o,s]=i.rgb().array(),[l,c,u]=r.rgb().array(),h=D3.default.rgb([h4(a,l,t),h4(o,c,t),h4(s,u,t)]).alpha(h4(i.alpha(),r.alpha(),t));return i.alpha()!==1?h.string():h.hex()}contrast(e){return this.color.contrast(e.color).toFixed(1)}difference(e){let[t,i,r]=this.color.rgb().array(),[a,o,s]=e.color.rgb().array();return q5(t,a)+q5(i,o)+q5(r,s)}brightness(){return(this.red*299+this.green*587+this.blue*114)/1e3}brightnessDifference(e){return Math.max(this.brightness(),e.brightness())-Math.min(this.brightness(),e.brightness())}};function h4(n,e,t){return(n*t+e*(100-t))/100}function q5(n,e){return Math.max(n,e)-Math.min(n,e)}function Re(n){return typeof n=="object"&&n!==null&&Object.hasOwn(n,"color")&&Object.hasOwn(n,"colorValues")&&Object.hasOwn(n,"red")&&Object.hasOwn(n,"green")&&Object.hasOwn(n,"blue")}var x3=class extends De.Liquid{theme;getThemeConfig;getThemeTemplateConfigByType;getAssetUrl;renderTemplate;renderTemplateString;renderPageSections;renderTranslation;renderCurrency;isEditor;locale;currency;layoutName;extName;componentsDir;sectionsDir;lastSchema;constructor({theme:e,getThemeConfig:t,getThemeTemplateConfigByType:i,getAssetUrl:r,renderTemplate:a,renderTemplateString:o,renderPageSections:s,renderTranslation:l,renderCurrency:c,isEditor:u,locale:h,currency:m,layoutName:C,extName:g,componentsDir:p,sectionsDir:f}){t=t||e.getThemeConfig.bind(e),g=g||"liquid",super({cache:!1,relativeReference:!1,fs:N1(t,g),ownPropertyOnly:!1,operators:ve}),this.theme=e,this.getThemeConfig=t,this.getThemeTemplateConfigByType=i||e.getThemeTemplateConfigByType.bind(e),this.getAssetUrl=r||e.getAssetUrl.bind(e),this.renderTemplate=a||e.renderTemplate.bind(e),this.renderTemplateString=o||e.renderTemplateString.bind(e),this.renderPageSections=s||e.renderPageSections.bind(e),this.renderTranslation=l||e.renderTranslation.bind(e),this.renderCurrency=c||e.renderCurrency.bind(e),this.isEditor=!!u,this.locale=h||"en-US",this.currency=m||"USD",this.layoutName=C||"theme",this.extName=g,this.componentsDir=p||"components",this.sectionsDir=f||"sections",V2(this),Me(this)}async parseAndRender(e,t){return super.parseAndRender(e,t)}async resolveFilePathByType(e,t){let i=await this.getThemeTemplateConfigByType(e,t);if(i?.file_path)return i.file_path}async getComponentPath(e){return await this.resolveFilePathByType("components",e)||d4(`${this.componentsDir}/${e}`,this.extName)}async getSectionPath(e){return await this.resolveFilePathByType("sections",e)||d4(`${this.sectionsDir}/${e}`,this.extName)}async getSectionGroupPath(e){return await this.resolveFilePathByType("sections",`${e}.json`)||d4(`${this.sectionsDir}/${e}`,"json")}};function d4(n,e){return`theme/${n}.${e}`}function N1(n,e){return{async readFile(t){let i=d4(t,e);return n(i).then(r=>r?.file_data||`<!-- theme template not found: ${i} -->`)},async exists(t){return!0},readFileSync(t){return""},existsSync(t){return!1},contains(t,i){return!0},resolve(t,i,r){return i},fallback(t){}}}var V5=require("lodash-es");async function O5(n,e,t){let r=(await Promise.all(e?.map(async a=>({...a,items:await U5(n,a.items,t)})))).map(a=>(n.shopifyCompatibility&&Object.assign(a,n.shopifyCompatibility.getMenuData(a)),a))||[];return K5([...r,...n.shopifyCompatibility?r.reduce((a,o)=>(o.handle&&a.push({...o,id:o.handle}),a),[]):[]])}async function U5(n,e,t){return e?.length>0?Promise.all(e.map(async r=>{let{url:a,resource:o}=await xe(n,r,{trailingSlash:t?.currentUrl?.endsWith("/")&&t.currentUrl!=="/"}),s=r.items&&await U5(n,r.items,t);return{...r,url:a,resource:o,levels:je(s),current:t?.currentUrl===a,active:t?.currentUrl?.startsWith(a),...s?{items:s,child_current:F1(s),child_active:$5(s)}:void 0}})):[]}async function xe(n,e,t){if(!e)return{url:"#invalid-link-item"};if(typeof e=="object"&&e!==null){let{url:i,resource:r}=await Ne(n,e),a=i.slice(-1)==="/";return t?.trailingSlash&&!a&&i.length>1&&(i=i+"/"),!t?.trailingSlash&&a&&i.length>1&&(i=i.slice(0,-1)),{url:i,resource:r}}else return{url:e}}function je(n){return n?.reduce((e,t)=>Math.max(e,t.items?1+je(t.items):0),0)||0}function F1(n){return n.some(e=>e.current||e.items&&$5(e.items))}function $5(n){return n.some(e=>e.active||e.items&&$5(e.items))}function Ze(n){return(0,V5.get)(n,"id",(0,V5.get)(n,"slug",typeof n=="string"?n:""))||""}async function Ne(n,e){let{type:t,value:i,url:r,model:a}=e;if(typeof t>"u"&&r)return{url:r};if(t==="url")return{url:typeof i=="string"?i:""};let o=Ze(i);switch(t){case"home":return{url:d3(n,"index")};case"category":return o?await h3(n,"categories/category",o):{url:d3(n,"categories/index")};case"product":return o?await h3(n,"products/product",o):{url:d3(n,"products/index")};case"page":return await h3(n,"pages/page",o);case"blog":return await h3(n,"blogs/blog",o,async s=>new _(n.swell,"content/blog-categories",s.category_id).slug);case"blog_category":return await h3(n,"blogs/category",o);case"content_list":if(a){let s=a?.replace("content/","");return{url:d3(n,"content/index",s),resource:new b(n.swell,a)}}break;case"content":if(a){let s=a?.replace("content/","");return await h3(n,"content/content",o,s)}break;case"search":return{url:d3(n,"search")};default:break}return{url:`/${o}`}}function d3(n,e,t,i){let{props:r}=n,a=r?.pages?.find(o=>o.id===e)?.url;return a?.includes(":collection")&&i&&(a=a.replace(":collection",i)),a?.includes(":slug")&&(a=a.replace(":slug",t||"")),a||`/${t||""}`}async function h3(n,e,t,i){let{props:r}=n,a=r?.pages?.find(c=>c.id===e)?.collection,o=a?new _(n.swell,a,t):void 0,s=await o?.slug||t,l=typeof i=="string"?i:void 0;return o?.id&&typeof i=="function"&&(l=await i(o)),{url:d3(n,e,s,typeof l=="string"?l:void 0),resource:o}}var Fe=i3(require("bluebird"),1);var{Promise:j3}=Fe.default,I1=50,c4=class n{static cache;swell;manifest=null;configs={};configPaths=[];constructor(e){this.swell=e}async init(e){let{swellHeaders:t}=this.swell;if(e){this.setConfigs(e);return}t["theme-id"]&&(await this.fetchManifest(),this.manifest||(console.log("ThemeLoader.init - version manifest not found"),await this.loadTheme()))}async loadTheme(){let{swellHeaders:e}=this.swell;if(console.log("ThemeLoader.loadTheme",e["theme-version-hash"]),e["theme-version-hash"]){let t=await this.loadThemeFromManifest();if(t)return t}return this.loadThemeAllConfigs()}getCache(){return n.cache||(n.cache=new Z3({kvStore:this.swell.workerEnv?.THEME})),n.cache}setConfigs(e){this.configs=Object.fromEntries(e),this.configPaths=Object.keys(this.configs),this.manifest=this.configPaths.reduce((t,i)=>(t[i]=this.configs[i]?.hash,t),{})}async preloadTheme(e,t){console.log(`ThemeLoader.preloadTheme${e?.hash?` - manifest: ${e.hash}`:""}${t?.length?` - configs: ${t.length}`:""}`),await j3.all([e&&this.cacheManifest(e),t&&j3.map(t,i=>this.cacheThemeConfig(i),{concurrency:10})])}async fetchThemeConfig(e){if(this.configs[e]!==void 0)return this.configs[e];let t=this.manifest?.[e];if(t){let i=await this.getCache().get(`config:${t}`);return i?(this.configs[e]=i,i):this.fetchThemeConfigsFromSourceByPath(e,t)}return null}async fetchThemeConfigsByPath(e,t){let i=this.configPaths.filter(a=>a.startsWith(e)&&(!t||a.endsWith(t)));return(await j3.map(i,a=>this.fetchThemeConfig(a),{concurrency:10})).filter(a=>a!==null)}async loadThemeAllConfigs(){let{swellHeaders:e}=this.swell,t=String(e["theme-config-version"]);if(!t)throw new Error("Theme version is required");return(await this.getCache().fetch(`configs-all:${this.swell.instanceId}:v@${t}2`,()=>this.fetchThemeConfigsFromSource()))?.results??[]}async loadThemeFromManifest(){let e=await this.fetchManifest();if(!e)return null;let t=[],i=new Map;if(await j3.map(Object.values(e),r=>this.getCache().get(`config:${r}`).then(a=>{a?(i.set(a.hash,a),this.configs[a.file_path]=a):t.push(r)}),{concurrency:10}),t.length>0){let a=(await this.fetchThemeConfigsFromSource(i.size===0?void 0:t))?.results??[];for(let o of a)i.set(o.hash,o),this.configs[o.file_path]=o;await j3.map(a,o=>this.cacheThemeConfig(o),{concurrency:10})}return Array.from(i.values())}async cacheManifest(e){e?.hash&&await this.getCache().set(`manifest:${e.hash}`,e.manifest)}async cacheThemeConfig(e){e?.hash&&await this.getCache().set(`config:${e.hash}`,e)}async fetchManifest(){let{swellHeaders:e}=this.swell,t=e["theme-version-hash"];console.log("ThemeLoader.fetchManifest",t);let i=await this.getCache().get(`manifest:${t}`);if(!i){let r=await this.swell.get("/:themes:versions/:last",{...this.themeVersionQueryFilter(),fields:"hash, manifest"});r&&(await this.cacheManifest(r),i=r.manifest)}return this.manifest=i,this.configPaths=Object.keys(i||{}),this.manifest}async fetchThemeConfigsFromSource(e=void 0){e=e||[];let{swellHeaders:t}=this.swell,i=String(t["theme-config-version"]),r=e.length===0||e.length>I1;return console.log(`Retrieving ${r?"all":"some"} theme configurations - version: ${i}`),await this.swell.get("/:themes:configs",{...this.themeVersionQueryFilter(),...r?{}:{hash:{$in:e}},limit:1e3,type:"theme",fields:"name, file, file_path, hash",include:{file_data:i4}})}async fetchThemeConfigsFromSourceByPath(e,t){console.log(`Retrieving theme config - ${e}`);let i=await this.swell.get("/:themes:configs/:last",{...this.themeVersionQueryFilter(),file_path:e,fields:"name, file, file_path, hash",include:{file_data:i4}});return i&&(t&&(i.hash=t),await this.cacheThemeConfig(i)),this.configs[e]=i,i}themeVersionQueryFilter(){let{swellHeaders:e}=this.swell,t=e["theme-id"];if(!t)throw new Error("Theme ID is required");return{parent_id:t,branch_id:e["theme-branch-id"]||null,preview:e["deployment-mode"]==="editor"||e["deployment-mode"]==="preview"?!0:{$ne:!0}}}};var W5=class{swell;props;globals;forms;resources;liquidSwell;themeLoader;themeConfigs=null;page;pageId;shopifyCompatibility=null;shopifyCompatibilityClass=k3;shopifyCompatibilityConfig=null;formData={};globalData={};constructor(e,t={}){let{forms:i,resources:r,globals:a,shopifyCompatibilityClass:o}=t;this.swell=e,this.props=this.getSwellAppThemeProps(e.config),this.shopifyCompatibilityConfig=e.shopifyCompatibilityConfig||null,this.globals=a||{},this.forms=i,this.resources=r,this.shopifyCompatibilityClass=o||k3,this.liquidSwell=new x3({theme:this,getThemeConfig:this.getThemeConfig.bind(this),getAssetUrl:this.getAssetUrl.bind(this),getThemeTemplateConfigByType:this.getThemeTemplateConfigByType.bind(this),renderTemplate:this.renderTemplate.bind(this),renderTemplateString:this.renderTemplateString.bind(this),renderPageSections:this.renderPageSections.bind(this),renderTranslation:this.lang.bind(this),renderCurrency:this.renderCurrency.bind(this),isEditor:e.isEditor}),this.themeLoader=new c4(e)}getSwellAppThemeProps(e){return e?.storefront?.theme||{}}async initGlobals(e){this.pageId=e,await this.themeLoader.init(this.themeConfigs||void 0);let{store:t,session:i,menus:r,geo:a,configs:o}=await this.getSettingsAndConfigs(),{settings:s,request:l,page:c,cart:u,account:h,customer:m}=await this.resolvePageData(t,o,e);this.page=c;let C={...this.globalData,store:t,settings:s,session:i,request:l,menus:r,page:c,cart:u,account:h,customer:m,geo:a,configs:o,translations:o?.translations,canonical_url:`${t.url}${this.swell.url?.pathname||""}`,shopify_compatibility:!!s.shopify_compatibility};this.shopifyCompatibility&&this.shopifyCompatibility.initGlobals(C),this.setGlobals(C),this.shopifyCompatibility&&this.shopifyCompatibility.adaptQueryParams()}setGlobals(e){this.shopifyCompatibility&&this.shopifyCompatibility.adaptGlobals(e,this.globals),this.globals={...this.globals,...e},this.liquidSwell.options.globals={...this.globals}}async getSettingsAndConfigs(){let e=B4,[t,i]=await Promise.all([this.swell.getStorefrontSettings(),this.getThemeConfigsByPath("theme/config/",".json")]),r={theme:{},editor:{},translations:{},presets:[],...Array.from(i.values()).reduce((s,l)=>{let c=String(l?.name||"").split(".")[0];if(c){let u;try{u=JSON.parse(l.file_data)}catch{u=null}s[c]=u}return s},{})},a=await this.swell.storefront.settings.session();this.resolveTranslationLocale(r.translations),await this.setCompatibilityConfigs(r);let o=await this.resolveMenuSettings();return{store:t?.store,session:a,menus:o,geo:e,configs:r}}async resolvePageData(e,t,i){let r=String(this.swell.swellHeaders["theme-config-version"]),a=await this.swell.getCachedResource(`theme-settings-resolved:v@${r}`,[],()=>I3(this,t.theme,t.editor?.settings));if(!a)throw new Error("Failed to resolve theme settings");let{locale:o,currency:s}=this.swell.getStorefrontLocalization(),l={host:this.swell.url.host,origin:this.swell.url.origin,path:this.swell.url.pathname,query:this.swell.queryParams,locale:o||e.locale,currency:s||e.currency,is_editor:this.swell.isEditor,is_preview:this.swell.isPreview},c=this.props.pages?.find(g=>g.id===i),u={...c,current:Number(this.swell.queryParams.page)||1,url:this.swell.url.pathname,custom:!c,slug:void 0,description:void 0,$locale:void 0};if(i){let g=await this.getThemeTemplateConfigByType("templates",i),p;try{p=JSON.parse(g?.file_data||"")}catch{}if(p?.page){let{slug:f,label:Z,description:m3,$locale:z3}=p.page;u.slug=f,u.label=Z||u.label,u.description=m3,u.$locale=z3}}let[h,m]=await Promise.all([this.fetchSingletonResourceCached("cart",()=>this.fetchCart(),{}),this.fetchSingletonResourceCached("account",()=>this.fetchAccount(),null)]);if(!h)throw new Error("Failed to fetch cart");let C;return this.shopifyCompatibility&&(C=m),{settings:a,request:l,page:u,cart:h,account:m,customer:C}}async fetchSingletonResourceCached(e,t,i){let r=this.swell.storefront.session.getCookie();return r?this.swell.getCachedResource(`${e}-${r}`,[],()=>t()):i}async fetchCart(){let e=this.resources?.singletons?.cart,t=e?new e(this.swell):new X(this.swell,"cart");if(await t.id,!t?.id)return{};if(this.shopifyCompatibility){let i=w3(this.shopifyCompatibility,t);t.setCompatibilityProps(i)}return t}async fetchAccount(){let e=this.resources?.singletons?.account,t=e?new e(this.swell):new X(this.swell,"account");if(await t.id,!t?.id)return null;if(this.shopifyCompatibility){let i=J(this.shopifyCompatibility,t);t.setCompatibilityProps(i)}return t}getFormConfig(e){let t=e;if(this.shopifyCompatibility){let i=this.shopifyCompatibility.getAdaptedFormType(e);i&&(t=i)}return this.forms?.find(i=>i.id===t)}setFormData(e,t){let i=this.formData[e]||new K(e);i instanceof K&&(t?.params&&i.setParams(t.params),t?.errors?(i.setSuccess(!1),i.setErrors(t.errors)):t?.success&&(t.withoutErrors&&!i.errors?i.setSuccess(!0):t.withoutErrors||(i.setSuccess(!0),i.clearErrors())),this.shopifyCompatibility&&Object.assign(i,this.shopifyCompatibility.getFormData(i))),this.formData[e]=i,this.setGlobals({forms:this.formData})}setFormSuccessWithoutErrors(e){this.setFormData(e,{success:!0,withoutErrors:!0})}clearFormData(e){e?delete this.formData[e]:this.formData={},this.setGlobals({forms:this.formData})}serializeFormData(){let e={};for(let t in this.formData){let i=this.formData[t];e[t]={success:i.success,errors:i.errors&&Array.from(i.errors)}}return Object.keys(e).length>0?e:null}setGlobalData(e={}){this.globalData={...this.globalData,...e},this.setGlobals(this.globalData)}serializeGlobalData(){return Object.keys(this.globalData).length>0?this.globalData:null}updateSettings(e,t){return this.shopifyCompatibility?this.shopifyCompatibility.adaptSettings(e,t):L3(e,t)}resolveTranslationLocale(e){if(!e)return{};let{locale:t}=this.swell.getStorefrontLocalization();if(!t)return e;let i=t.split("-")[0];return(0,A.reduce)(e,(r,a,o)=>{if(e3(a))r[o]=this.resolveTranslationLocale(a);else if(typeof a=="string"&&a.startsWith("t:")){let s=a.slice(2),l=s.split("."),c=l.pop(),u=l.join("."),h=this.globals.translations;r[o]=(0,A.get)(h,`${u}.$locale.${t}.${c}`)||(0,A.get)(h,`${u}.$locale.${i}.${c}`)||(0,A.get)(h,s)||a}else r[o]=(0,A.get)(e,`$locale.${t}.${o}`)||(0,A.get)(e,`$locale.${i}.${o}`)||a;return r},{})}async setCompatibilityConfigs(e){let t=()=>(this.shopifyCompatibility||(this.shopifyCompatibility=new this.shopifyCompatibilityClass(this)),this.shopifyCompatibility);if(!Object.keys(e.editor).length&&e.settings_schema){let i=await this.swell.storefront.settings.get("store");e.editor=t().getEditorConfig(e.settings_schema),e.editor=await t().renderSchemaTranslations(this,e.editor,i.locale||"en-US")}if(!Object.keys(e.theme).length&&e.settings_data&&(e.theme=t().getThemeConfig(e.settings_data)),!Object.keys(e.presets).length&&e.settings_data&&(e.presets=t().getPresetsConfig(e.settings_data)),!Object.keys(e.translations).length){let{locale:i}=this.swell.getStorefrontLocalization();e.translations=await t().getLocaleConfig(this,i)}e.theme.shopify_compatibility?t():this.shopifyCompatibility&&(e.theme.shopify_compatibility=!0)}setCompatibilityData(e){!e||!this.shopifyCompatibility||this.shopifyCompatibility.adaptPageData(e)}resolveLookupSetting(e,t){if(t instanceof T)return t;let i=Ie(e);if(i){if(e.multiple){if(t instanceof Array)return t.map(r=>this.resolveLookupResource(i,r))}else if(t!==""&&t!==null&&t!==void 0)return this.resolveLookupResource(i,t)}return null}resolveLookupResource(e,t){let i=this.resources?.records?.[e],r=i?new i(this.swell,t):new _(this.swell,e,t);return this.shopifyCompatibility&&this.shopifyCompatibility.adaptPageData({resource:r}),r}resolveMenuSettings(){return O5(this,this.swell.getStorefrontMenus(),{currentUrl:this.swell.url.pathname})}resolveMenuSetting(e){if(!e)return null;let t=this.globals.menus||{};return t[e]||t[e.replace(/-/g,"_")]||null}async lang(e,t,i){return await this.renderTranslation(e,t,i)}resolveFontSetting(e){if(this.shopifyCompatibility){let t=this.shopifyCompatibility.getFontFromShopifySetting(e),i=D.get(t||e);return Object.assign(i,this.shopifyCompatibility.getFontData(i)),i}return D.get(e)}resolveUrlSetting(e){let t=e;if(this.shopifyCompatibility){e?.startsWith("shopify://")&&(t=e.replace("shopify://","/"));let i=this.shopifyCompatibility.getAdaptedPageUrl(t);if(i)return i}return t}resolveImageSetting(e){let t=e;return this.shopifyCompatibility&&e?.startsWith("shopify://")&&(t=""),t}async getAllThemeConfigs(){if(!this.themeConfigs){let e=await this.themeLoader.loadTheme(),t=new Map;for(let i of e)t.set(i.file_path,i);this.themeConfigs=t}return this.themeConfigs}async preloadThemeConfigs(e,t){await this.themeLoader.preloadTheme(e,t)}getPageConfigPath(e){return this.shopifyCompatibility?`theme/${this.shopifyCompatibility.getThemeFilePath("templates",e)}.json`:`theme/templates/${e}.json`}async getThemeConfig(e){return this.themeConfigs?this.themeConfigs.get(e)??null:this.themeLoader.fetchThemeConfig(e)}async getThemeConfigsByPath(e,t){let i=await this.themeLoader.fetchThemeConfigsByPath(e,t),r=new Map;for(let a of i)r.set(a.file_path,a);return r}async getThemeTemplateConfig(e){if(e.endsWith(".json")||e.endsWith(".liquid"))return this.getThemeConfig(e);let t=await this.getThemeConfig(`${e}.json`);return t||this.getThemeConfig(`${e}.liquid`)}async getThemeTemplateConfigByType(e,t){let i=[`${e}/${t}`];this.shopifyCompatibility&&i.push(this.shopifyCompatibility.getThemeFilePath(e,t));for(let r of i){let a=await this.getThemeTemplateConfig(`theme/${r}`);if(a)return a}return null}async getAssetUrl(e){return(await this.getThemeConfig(`theme/assets/${e}`)||await this.getThemeConfig(`assets/${e}`))?.file?.url||null}async renderTemplate(e,t){let i=e?.file_data||null;if(e===null||i===null)return"";try{return await this.liquidSwell.parseAndRender(i,t)}catch(r){return console.error(r),`<!-- template render error: ${r.message} -->`}}async renderTemplateString(e,t){try{return await this.liquidSwell.parseAndRender(e,t)}catch(i){return console.error(i),""}}async getSectionSchema(e){let t,i=await this.getThemeTemplateConfigByType("sections",e);if(i?.file_path?.endsWith(".json"))try{t=JSON.parse(i.file_data)||void 0}catch{return}else if(i?.file_path?.endsWith(".liquid")&&this.shopifyCompatibility){this.liquidSwell.lastSchema=void 0;let r=this.getSectionConfigWithSchemaTagOnly(i);if(!r)return;await this.renderTemplate(r);let a=this.liquidSwell.lastSchema;a&&(t=this.shopifyCompatibility.getSectionConfigSchema(a),t=await this.shopifyCompatibility.renderSchemaTranslations(this,t,this.globals.store?.locale))}return t&&(t.id=t.id||e,t.label=t.label||e,t.fields=t.fields||[]),t}getSectionConfigWithSchemaTagOnly(e){let t="{% schema %}",i="{% endschema %}",r=e.file_data.indexOf(t),a=e.file_data.indexOf(i),o=e.file_data.slice(r+t.length,a);return r===-1||a===-1?null:{...e,file_data:t+o+i}}async renderThemeTemplate(e,t){let i=await this.getThemeTemplateConfig(e),r=await this.renderTemplate(i,t);if(i?.file_path?.endsWith(".json"))try{return JSON.parse(r)}catch(a){throw console.log("Unable to render theme template",i.file_path,r),new N3(a)}return r}async renderLayoutTemplate(e,t){let i=await this.getThemeTemplateConfigByType("layouts",e);if(i){let r=await this.renderThemeTemplate(i.file_path,t);return typeof r=="string"?r:`<!-- invalid layout: ${e}--> {{ content_for_layout }}`}throw new Error(`Layout template not found: ${e}`)}async renderPageTemplate(e,t,i){let r=null;if(i&&(r=await this.getThemeTemplateConfigByType("templates",`${e}.${i}`)),r||(r=await this.getThemeTemplateConfigByType("templates",e)),r){let a=e.split("/").splice(1).join("/")||null,o={name:e,alt_name:i||null,path:a||null};this.shopifyCompatibility&&(o=F4(this.shopifyCompatibility,o)),this.setGlobals({template:o});let s=await this.renderThemeTemplate(r.file_path,t);return s&&typeof s!="string"&&(s.id=String(r.name)),s}throw new F3("Page template not found",404,`templates/${e}`)}async renderPage(e,t){e&&this.setGlobals(e);let i;if(this.page?.id?i=await this.renderPageTemplate(this.page.id,e,t):i=await this.renderPageTemplate("404",e),typeof i!="string"&&i?.page){if(i.page.published===!1)throw new F3;i.page=this.resolveTranslationLocale(i.page)}return i}async renderAllSections(e,t){let i=typeof e=="string"?e.split(/\s*,\s*/):e;return(await Promise.all(i.map?.(a=>this.renderSection(a,t)))).reduce((a,o,s)=>{let l=i[s];return this.shopifyCompatibility?a[l]=`
930
+ <div id="shopify-section-${l}" class="shopify-section">${String(o)}</div>
931
+ `.trim():a[l]=`
932
+ <div id="swell-section-${l}" class="swell-section">${String(o)}</div>
933
+ `.trim(),a},{})}async renderSection(e,t){t&&this.setGlobals(t);let[i,r]=e.split(/__/).reverse(),a=(r||"").replaceAll("_","/"),o=await this.getThemeTemplateConfigByType(a?"templates":"sections",a||i);if(o){let s=await this.renderThemeTemplate(o.file_path,t);if(a&&s?.sections){let l=s?.sections,c={id:r,sections:{[i]:l[i]}},[u]=await this.renderPageSections(c,t);return u.output||""}return s}return""}async renderLayout(e){return this.liquidSwell.layoutName?this.renderLayoutTemplate(this.liquidSwell.layoutName,e):e?.content_for_layout||""}getContentForHeader(){let e=`
934
934
  `;return e+=this.renderFontHeaderLinks(),this.shopifyCompatibility&&(e+=`
935
- ${this.shopifyCompatibility.getContentForHeader()}`),e}renderFontHeaderLinks(){let e=this.globals.settings,t=this.globals.configs?.editor?.settings||[];if(e&&t){let i=J5("font",e,t),r=[];for(let o=0;o<i.length;o++){let a=i[o].value?.id||i[o].value;if(this.shopifyCompatibility){let s=this.shopifyCompatibility.getFontFromShopifySetting(a);r.includes(s||a)||r.push(s||a)}else r.includes(a)||r.push(a)}if(i.length>0)return`<link href="${D.combinedGoogleFontUrl(r)}" rel="stylesheet">`}return""}async getTemplateSchema(e){let t,i=await this.getThemeConfig(e.file_path);if(i){if(i.file_path.endsWith(".liquid")){if(this.shopifyCompatibility){this.liquidSwell.lastSchema=void 0,await this.renderTemplate(i);let r=this.liquidSwell.lastSchema||{};if(r){let o=this.shopifyCompatibility.getSectionConfigSchema(r);t=await this.shopifyCompatibility.renderSchemaTranslations(this,o,this.globals.store?.locale)}}}else if(i.file_data)try{t=JSON.parse(i?.file_data)||void 0}catch{}return t}}async resolveSectionDefaultSettings(e,t){let i={},r=t||e?.default||{};return e?.fields&&e.fields.forEach(o=>{o.default!==void 0&&(i[o.id]=o.default)}),Object.assign(i,r.settings,{blocks:r.blocks}),i.blocks instanceof Array&&(i.blocks=i.blocks.map(o=>{let a={},s=e?.blocks?.find(l=>l.type===o.type);return s?.fields&&s.fields.forEach(l=>{l.default!==void 0&&(a[l.id]=l.default)}),{...o,settings:{...a,...o.settings||void 0}}})),i}async getAllSections(){let e=await this.getThemeConfigsByPath("theme/sections/");return Q5(e,this.getTemplateSchema.bind(this))}async getPageSections(e,t=!0){let i=await C4(e,r=>this.getSectionSchema(r));if(t)for(let r of i){let{schema:o}=r;o?.fields&&this.globals&&r.settings&&(r.settings=u4(this,r))}return i}async getPageSectionGroups(e){let t=await this.getThemeTemplateConfigByType("templates",e);if(t===null)return[];let r=z5(t).layout||"theme",o=await this.getThemeTemplateConfigByType("layouts",`${r}.liquid`);if(o===null)return[];let a=await this.getThemeConfig("theme/locales/en.default.schema.json"),s=z5(a),d=o.file_data.matchAll(/\bsections \'(\w.*?)\'|(\bcontent_for_layout\b)/gm),u=[];for(let h of d)if(h[1]){let p=h[1],C=await this.getThemeTemplateConfigByType("sections",`${p}.json`),g=z5(C).name;typeof g=="string"&&g.startsWith("t:")&&(g=(0,b.get)(s,g.slice(2))),u.push({prop:h3(p),label:g||p})}else h[2]&&u.push({prop:I3,label:"Template"});return u}async getLayoutSectionGroups(e=!0){let t=await this.getThemeConfigsByPath("theme/sections/"),i=await X5(t,this.getTemplateSchema.bind(this));if(e)for(let r of i)for(let o of r.sectionConfigs){let{schema:a}=o;a?.fields&&this.globals&&o.settings&&(o.settings=u4(this,o))}return i}async renderPageSections(e,t){let i=await this.getPageSections(e,!0);return i=i.filter(r=>r.section.disabled!==!0),this.renderSectionConfigs(i,t)}async renderSectionConfigs(e,t){return Promise.all(e.map(async(i,r)=>{let{section:o,schema:a}=i,s=a?.fields&&this.globals?u4(this,i):{...i.settings},l=await this.getThemeTemplateConfigByType("sections",`${o.type}.liquid`),d="";return l&&(d=await this.renderTemplate(l,{...t,...s,index:r}),s?.section?.custom_css&&(d+=`<style>${e2(s?.section.custom_css,i.id)}</style>`)),{...i,output:d}}))}async renderTranslation(e,t,i){let r=this.globals.translations,o=this.globals.request?.locale;return this.renderTranslationValue(o,r,e,t,i)}async renderTranslationValue(e,t,i,r,o){if(i===void 0)return o||"";let a=i?.split(".")||[],s=a.pop()||"",l=a.join("."),d=(0,b.get)(t,l),u=(0,b.get)(d?.[e],s)||(0,b.get)(d?.[e.split("-")[0]],s)||d?.[s];return r?.count!==void 0&&u?.one&&(u=r.count===1?u.one:u.other),typeof u!="string"||u===""?o||"":await this.renderTemplateString(u,r)||o||""}renderCurrency(e,t){return this.swell.storefront.currency.format(e,t)}},Z3=class{title;status=500;message;description;constructor(e="Something went wrong",t=500,i){this.title=String(e),this.status=t,this.message=this.title+(i?`: ${i}`:""),this.description=i}toString(){return this.message}},N3=class extends Z3{constructor(e="Page not found",t=404,i){super(e,t,i)}};function u4(n,e){let{settings:t,schema:i}=e;if(!i||!t?.section?.settings)return t;let r=[{label:i.label,fields:i.fields}],o=t.section.blocks?.filter(a=>a.disabled!==!0);return o=o?.map(a=>({...a,settings:F3(n,a.settings,i.blocks?.filter(s=>s.type===a.type))})),{...t,section:{...t.section,settings:F3(n,t.section.settings,r),blocks:o}}}function F3(n,e,t){let i=(0,b.cloneDeep)(e);if(i.$locale){let{locale:r}=n.swell.getStorefrontLocalization(),o=i.$locale[r]||{};for(let[a,s]of Object.entries(o))s&&(i[a]=s)}return(0,b.each)(i,(r,o)=>{let a=(t&&Y5(t,o))??null;if(w3(r)&&!(r instanceof T)){switch(a?.type){case"color_scheme_group":{(0,b.each)(r,(s,l)=>{if(w3(s)&&typeof s.settings=="object"&&s.settings){let d=s.settings;(0,b.each)(d,(u,h)=>{(0,b.find)(a.fields,{id:h})?.type==="color"&&u&&(s.id=l,d[h]=new S(u))})}});return}default:break}i[o]=F3(n,r,t)}else switch(a?.type){case"lookup":case"product_lookup":case"category_lookup":case"customer_lookup":i[o]=n.resolveLookupSetting(a,r);break;case"color":r&&(i[o]=new S(r));break;case"font":i[o]=n.resolveFontSetting(r);break;case"menu":i[o]=n.resolveMenuSetting(r);break;case"url":i[o]=n.resolveUrlSetting(r);break;case"image":i[o]=n.resolveImageSetting(r);break;default:break}}),i}function J5(n,e,t){let i=[];return(0,b.each)(e,(r,o)=>{if(w3(r)&&!(r instanceof D)&&!(r instanceof T))i.push(...J5(n,r,t));else{let a=Y5(t,o);a?.type===n&&i.push({setting:a,value:r})}}),i}function He(n){if(n.collection)return n.collection;switch(n.type){case"product_lookup":return"products";case"category_lookup":return"categories";case"customer_lookup":return"accounts";default:break}}function Y5(n,e){for(let t of n||[])for(let i of t.fields)if(i.id===e)return i;return null}function z5(n){try{return JSON.parse(n?.file_data||"{}")}catch{return{}}}function Be(n){let e={settings:[]};return Array.isArray(n)&&(n[0]?.name==="theme_info"&&n.shift(),n.forEach(t=>{e.settings.push($t(t))})),e}function Ge(n){return typeof n.current=="string"&&n.presets?.[n.current]?n.presets[n.current]:typeof n.current=="object"?n.current||{}:{}}function qe(n){return Object.entries(n.presets||{}).map(([e,t])=>({label:e,settings:t}))}function Ve(n){return{label:n.name,type:n.type,tag:n.tag,class:n.class,limit:n.limit,enabled_on:n.enabled_on,disabled_on:n.disabled_on,fields:(n.settings||[]).map(t=>m4(t)),blocks:(n.blocks||[]).map(t=>Ot(t)),presets:(n.presets||[]).map(t=>Ut(t)),default:n.default}}function Ot(n){return{type:n.type,label:n.name,limit:n.limit,fields:(n.settings||[]).map(t=>m4(t))}}function Ut(n){return{label:n.name,settings:n.settings,blocks:n.blocks}}function $t(n){return{label:n.name,fields:(n.settings||[]).map(t=>m4(t))}}function m4(n){let e={};switch(n.type){case"text":e={type:"text"};break;case"textarea":e={type:"textarea"};break;case"paragraph":e={type:"paragraph",label:n.content};break;case"select":e={type:"select",options:n.options};break;case"checkbox":e={type:"checkbox"};break;case"radio":e={type:"radio",options:n.options};break;case"number":e={type:"integer"};break;case"range":e={type:"number",min:n.min,max:n.max,increment:n.step,unit:n.unit};break;case"article":e={type:"lookup",collection:"content/blogs",titleField:"title"};break;case"blog":e={type:"lookup",collection:"content/blogs",titleField:"title"};break;case"collection":e={type:"category_lookup"};break;case"collection_list":e={type:"category_lookup",multiple:!0,limit:n.limit};break;case"color":e={type:"color"};break;case"color_background":e={type:"color_background"};break;case"color_scheme":e={type:"color_scheme"};break;case"color_scheme_group":e={type:"color_scheme_group",fields:(n.definition||[]).map(t=>m4(t)),role:n.role};break;case"font_picker":e={type:"font"};break;case"html":e={type:"html"};break;case"image_picker":e={type:"image"};break;case"inline_richtext":e={type:"rich_text"};break;case"link_list":e={type:"menu"};break;case"liquid":e={type:"liquid"};break;case"page":e={type:"lookup",collection:"content/pages",titleField:"title"};break;case"product":e={type:"product_lookup"};break;case"product_list":e={type:"product_lookup",multiple:!0,limit:n.limit};break;case"richtext":e={type:"rich_html"};break;case"text_alignment":e={type:"select",options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]};break;case"url":e={type:"url"};break;case"video":e={type:"video"};break;case"video_url":e={type:"url"};break;case"header":e={type:"header",label:n.content};break}return{id:n.id,label:n.label,default:n.default,description:n.info,...e}}function Oe(n){let e=n.lastIndexOf("_"),t=n.substring(0,e),i=n.substring(e+1),r=Kt[t];if(r){let o=r.variants[i];return`${r.family}:${o}`}return null}var Kt={abel:{family:"Abel",variants:{n4:"wght@400"}},abril_fatface:{family:"Abril Fatface",variants:{n4:"wght@400"}},alegreya:{family:"Alegreya",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},alegreya_sans:{family:"Alegreya Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},amiri:{family:"Amiri",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},anonymous_pro:{family:"Anonymous Pro",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},arapey:{family:"Arapey",variants:{n4:"wght@400",i4:"ital,wght@1,400"}},archivo:{family:"Archivo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},archivo_narrow:{family:"Archivo Narrow",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},arimo:{family:"Arimo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},armata:{family:"Armata",variants:{n4:"wght@400"}},arvo:{family:"Arvo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},asap:{family:"Asap",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},assistant:{family:"Assistant",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},asul:{family:"Asul",variants:{n4:"wght@400",n7:"wght@700"}},bio_rhyme:{family:"Bio Rhyme",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n7:"wght@700",n8:"wght@800"}},bitter:{family:"Bitter",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},cabin:{family:"Cabin",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},cardo:{family:"Cardo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},catamaran:{family:"Catamaran",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},chivo:{family:"Chivo",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},cormorant:{family:"Cormorant",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},crimson_text:{family:"Crimson Text",variants:{n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},dm_sans:{family:"DM Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},domine:{family:"Domine",variants:{n4:"wght@400",n7:"wght@700"}},dosis:{family:"Dosis",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},eczar:{family:"Eczar",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},fira_sans:{family:"Fira Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},fjalla_one:{family:"Fjalla One",variants:{n4:"wght@400"}},glegoo:{family:"Glegoo",variants:{n4:"wght@400",n7:"wght@700"}},ibm_plex_sans:{family:"IBM Plex Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},inconsolata:{family:"Inconsolata",variants:{n4:"wght@400",n7:"wght@700"}},inknut_antiqua:{family:"Inknut Antiqua",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},inter:{family:"Inter",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},josefin_sans:{family:"Josefin Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},josefin_slab:{family:"Josefin Slab",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},kalam:{family:"Kalam",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},karla:{family:"Karla",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},kreon:{family:"Kreon",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},lato:{family:"Lato",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},libre_baskerville:{family:"Libre Baskerville",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},libre_franklin:{family:"Libre Franklin",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},lobster:{family:"Lobster",variants:{n4:"wght@400"}},lobster_two:{family:"Lobster Two",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},lora:{family:"Lora",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},maven_pro:{family:"Maven Pro",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},megrim:{family:"Megrim",variants:{n4:"wght@400"}},merriweather_sans:{family:"Merriweather Sans",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},montserrat:{family:"Montserrat",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},mouse_memoirs:{family:"Mouse Memoirs",variants:{n4:"wght@400"}},muli:{family:"Muli",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},neuton:{family:"Neuton",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",n8:"wght@800"}},news_cycle:{family:"News Cycle",variants:{n4:"wght@400",n7:"wght@700"}},newsreader:{family:"Newsreader",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},nobile:{family:"Nobile",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},noticia_text:{family:"Noticia Text",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},noto_serif:{family:"Noto Serif",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},nunito:{family:"Nunito",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},nunito_sans:{family:"Nunito Sans",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},old_standard_tt:{family:"Old Standard TT",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},open_sans:{family:"Open Sans",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},open_sans_condensed:{family:"Open Sans Condensed",variants:{n3:"wght@300",i3:"ital,wght@1,300",n7:"wght@700"}},oswald:{family:"Oswald",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700"}},ovo:{family:"Ovo",variants:{n4:"wght@400"}},oxygen:{family:"Oxygen",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},pt_mono:{family:"PT Mono",variants:{n4:"wght@400"}},pt_sans:{family:"PT Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},pt_sans_narrow:{family:"PT Sans Narrow",variants:{n4:"wght@400",n7:"wght@700"}},pt_serif:{family:"PT Serif",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},pacifico:{family:"Pacifico",variants:{n4:"wght@400"}},playball:{family:"Playball",variants:{n4:"wght@400"}},playfair_display:{family:"Playfair Display",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},poppins:{family:"Poppins",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},prata:{family:"Prata",variants:{n4:"wght@400"}},prompt:{family:"Prompt",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},proza_libre:{family:"Proza Libre",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},quantico:{family:"Quantico",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},quattrocento:{family:"Quattrocento",variants:{n4:"wght@400",n7:"wght@700"}},quattrocento_sans:{family:"Quattrocento Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},questrial:{family:"Questrial",variants:{n4:"wght@400"}},quicksand:{family:"Quicksand",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700"}},rajdhani:{family:"Rajdhani",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700"}},raleway:{family:"Raleway",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},righteous:{family:"Righteous",variants:{n4:"wght@400"}},roboto:{family:"Roboto",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},roboto_condensed:{family:"Roboto Condensed",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},roboto_mono:{family:"Roboto Mono",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},roboto_slab:{family:"Roboto Slab",variants:{n1:"wght@100",n3:"wght@300",n4:"wght@400",n7:"wght@700"}},rubik:{family:"Rubik",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},shadows_into_light:{family:"Shadows Into Light",variants:{n4:"wght@400"}},slabo_13px:{family:"Slabo 13px",variants:{n4:"wght@400"}},smooch:{family:"Smooch",variants:{n4:"wght@400"}},source_code_pro:{family:"Source Code Pro",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}},source_sans_pro:{family:"Source Sans Pro",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},space_mono:{family:"Space Mono",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},syne:{family:"Syne",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},tenor_sans:{family:"Tenor Sans",variants:{n4:"wght@400"}},tinos:{family:"Tinos",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},titillium_web:{family:"Titillium Web",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900"}},ubuntu:{family:"Ubuntu",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},unica_one:{family:"Unica One",variants:{n4:"wght@400"}},unna:{family:"Unna",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},varela:{family:"Varela",variants:{n4:"wght@400"}},varela_round:{family:"Varela Round",variants:{n4:"wght@400"}},vidaloka:{family:"Vidaloka",variants:{n4:"wght@400"}},volkhov:{family:"Volkhov",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},vollkorn:{family:"Vollkorn",variants:{n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},work_sans:{family:"Work Sans",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},biz_udpmincho:{family:"BIZ UDPMincho",variants:{n4:"wght@400",n7:"wght@700"}},dela_gothic_one:{family:"Dela Gothic One",variants:{n4:"wght@400"}},hina_mincho:{family:"Hina Mincho",variants:{n4:"wght@400"}},kaisei_decol:{family:"Kaisei Decol",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700"}},kaisei_opti:{family:"Kaisei Opti",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700"}},kaisei_tokumin:{family:"Kaisei Tokumin",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700",n8:"wght@800"}},m_plus_1:{family:"M PLUS 1",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},m_plus_rounded_1c:{family:"M PLUS Rounded 1c",variants:{n1:"wght@100",n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},mochiy_pop_p_one:{family:"Mochiy Pop P One",variants:{n4:"wght@400"}},murecho:{family:"Murecho",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},noto_sans_japanese:{family:"Noto Sans Japanese",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},noto_serif_japanese:{family:"Noto Serif Japanese",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}},shippori_mincho:{family:"Shippori Mincho",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},zen_kaku_gothic_new:{family:"Zen Kaku Gothic New",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},zen_kurenaido:{family:"Zen Kurenaido",variants:{n4:"wght@400"}},zen_maru_gothic:{family:"Zen Maru Gothic",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},zen_old_mincho:{family:"Zen Old Mincho",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}}};var _4={};w2(_4,{DeferredShopifyResource:()=>U,ShopifyArticle:()=>S3,ShopifyBlog:()=>p4,ShopifyCart:()=>m3,ShopifyCollection:()=>k3,ShopifyCollections:()=>f4,ShopifyCustomer:()=>K,ShopifyFont:()=>L3,ShopifyForm:()=>B3,ShopifyLink:()=>A3,ShopifyLocalization:()=>b3,ShopifyOrder:()=>r3,ShopifyPage:()=>k4,ShopifyPaginate:()=>g3,ShopifyPredictiveSearch:()=>y4,ShopifyProduct:()=>P,ShopifyRecommendations:()=>S4,ShopifyResource:()=>y,ShopifySearch:()=>L4,ShopifyVariant:()=>G,adaptShopifyFontData:()=>b4,adaptShopifyFormData:()=>T4,adaptShopifyMenuData:()=>A4});function S3(n,e,t){return e instanceof y?e.clone():(t&&(e.category=t),new y({author:c(e,i=>i.author?.name||i.author?.email),content:c(e,i=>i.content),created_at:w(()=>e.date_created),excerpt:w(()=>e.summary),excerpt_or_content:w(()=>e.summary||e.content),handle:w(()=>e.slug),id:c(e,i=>i.id),image:c(e,i=>i.image&&Z(n,i.image)),metafields:null,published_at:c(e,i=>i.date_published||i.date_created),tags:c(e,i=>i.tags),template_suffix:null,title:c(e,i=>i.title),updated_at:c(e,i=>i.date_updated||i.date_created),url:c([e,e.category],(i,r)=>r&&`/blogs/${r?.slug}/${i.slug}`),user:w(()=>e.author),comment_post_url:null,comments:null,comments_count:null,"comments_enabled?":!1,moderated:!1}))}function p4(n,e){if(e instanceof y)return e.clone();let t=c(e.blogs,i=>i?.results?.reduce((r,o)=>{for(let a of o.tags||[])r.includes(a)||r.push(a);return r},[]));return new y({all_tags:t,articles:c(e,i=>i.blogs?._cloneWithCompatibilityResult(r=>({results:r?.results?.map(o=>S3(n,o,i))}))||[]),articles_count:c(e.blogs,i=>i?.count||0),handle:w(()=>e.slug),id:c(e,i=>i.id),metafields:null,next_article:null,previous_article:null,tags:t,template_suffix:null,title:c(e,i=>i.title),url:c(e,i=>`/blogs/${i.slug}`),featured_image:c(e,i=>i.image),content:c(e,i=>i.content),"comments_enabled?":!1,moderated:!1})}var Ue=require("lodash-es");function H3(n,e){let t=e.type==="range",i=e.type==="boolean";return new y({active_values:t?void 0:e.active_options?.map(r=>c3(n,r,e)),false_value:i?c3(n,{value:""},e):void 0,inactive_values:t?void 0:e.inactive_options?.map(r=>c3(n,r,e)),label:e.label,max_value:t?c3(n,{value:e.range_max},e,"lte"):void 0,min_value:t?c3(n,{value:e.range_min},e,"gte"):void 0,operator:t?"AND":"OR",param_name:e.param_name,presentation:"text",range_max:e.range_max,true_value:i?c3(n,{value:e.options?.[0].value},e):void 0,type:e.id==="price"?"price_range":i?"boolean":"list",url_to_remove:Wt(n,`filter_${e.id}`,!0),values:e.id!=="price"&&e.options?.map(r=>c3(n,r,e))})}function c3(n,e,t,i){let r=i?`${t.param_name}[${i}]`:t.param_name;return new y({active:e.active,count:e.count,image:null,label:e.label,param_name:r,swatch:null,url_to_add:Yt(n,r,e.value),url_to_remove:Jt(n,t.param_name,e.value),value:zt(n,e,t,i)})}function zt(n,e,t,i){let{queryParams:r}=n.swell,o=i?r[t.param_name]?.[i]:r[t.param_name];return t.type==="range"?o!==void 0&&o!==""?o:null:e.value}function g4(n){return Object.keys(n).reduce((e,t)=>{let i=n[t];return i!==""&&(e[t]=(0,Ue.isObject)(i)&&!Array.isArray(i)?g4(i):i),e},{})}function Wt(n,e,t=!1){let{queryParams:i}=n.swell,r=q({...g4(i),...t?{[`${e}[gte]`]:void 0,[`${e}[lte]`]:void 0}:void 0,[e]:void 0,page:void 0});return t2(n,r)}function Jt(n,e,t){let{queryParams:i}=n.swell,r=q({...g4(i),[e]:Array.isArray(i[e])?i[e].filter(o=>o!==t):void 0,page:void 0});return t2(n,r)}function Yt(n,e,t){let{queryParams:i}=n.swell,r=q({...g4(i),[e]:Array.isArray(i[e])?i[e].concat(t):typeof i[e]=="string"?[i[e],t]:t,page:void 0});return t2(n,r)}function t2(n,e){let{url:t}=n.swell;return`${t.pathname}${e?`?${e}`:""}`}function k3(n,e){if(e instanceof y)return e.clone();let t=c(e,r=>r.products?._cloneWithCompatibilityResult(o=>({results:o?.results?.map(a=>P(n,a))}))??null);async function i(){let r=await t.resolve();return r&&"_resolve"in r?r._resolve():r}return new y({all_products_count:w(async()=>(await i())?.count||0),all_tags:w(async()=>(await i())?.results?.reduce((r,o)=>(Array.isArray(o.tags)&&r.push(...o.tags),r),[])||[]),all_types:w(async()=>{let r=await i();if(!r?.results)return[];let o=r.results.reduce((a,s)=>(s.type&&a.add(s.type),a),new Set);return Array.from(o.values())}),all_vendors:[],current_type:null,current_vendor:null,default_sort_by:c(e,r=>r.sort_options?.[0].value),description:c(e,r=>r.description),featured_image:c(e,r=>r.images?.[0]&&Z(n,r.images[0])),filters:w(async()=>(await i())?.filter_options?.map(r=>H3(n,r))||[]),handle:w(()=>e.slug),id:c(e,r=>r.id),image:null,metafields:null,next_product:null,previous_product:null,products:w(async()=>(await i())?.results),products_count:w(async()=>(await i())?.results?.length||0),published_at:null,sort_by:w(()=>e.sort),sort_options:c(e,r=>r.sort_options),tags:[],template_suffix:null,title:w(()=>e.name),url:c(e,r=>`/collections/${r.slug}`)})}function f4(n,e){return new A(n.swell,e._collection,e._query,async()=>{let t=(await e.results)?.map(i=>k3(n,i));return{page:e.page??1,count:e.count??0,results:t,page_count:e.page_count??0,limit:e.limit,pages:e.pages??{}}})}function L3(n,e){return e instanceof y?e.clone():new y({baseline_ratio:null,fallback_families:e.fallback_families,family:e.family,style:e.style,"system?":e.system,variants:e.variants.map(t=>L3(n,t)),weight:e.weight})}var Qt={account_login:{params:()=>({password_needed:!0})}};function B3(n,e){if(e instanceof y)return e.clone();let t=Qt[e.id];return new y({...t?.params?.(e)||void 0,errors:e.errors&&new n2(e.errors),"posted_successfully?":e.success})}var i2=class{code;message;field_name;field_label;type;constructor(e){this.code=e.code,this.message=e.message,this.field_name=e.field_name,this.field_label=e.field_label,this.type=this.getShopifyErrorType(e)}getShopifyErrorType(e){return e.field_name==="email"?"email":e.field_name==="password"?"password":"form"}valueOf(){return this.type}toString(){return this.type}},n2=class n{errors;pointer=0;messages;translated_fields;constructor(e){return this.errors=Array.from(e).map(t=>new i2(t)),this.messages=new w4(this.errors,this.errors.map(t=>t.message)),this.translated_fields=new w4(this.errors,this.errors.map(t=>t.field_label)),new Proxy(this.errors,{get:(t,i)=>{let r=t;return i==="toJSON"?this.errors:i==="some"?this.some.bind(this):i==="messages"?this.messages:i==="translated_fields"?this.translated_fields:r[i]},getPrototypeOf(){return n.prototype}})}*[Symbol.iterator](){yield*this.errors}some(e,t){return this.errors.some(i=>e(i?.type),t)}},w4=class{values;constructor(e,t){return this.values=t,new Proxy(t,{get:(i,r)=>{let o=i;if(r==="toJSON")return t;let a=e?.findIndex?.(s=>s?.type===r);return a!==-1?t[a]:o[r]}})}};var $e=require("lodash-es");function A3(n,e,t){let i=e.handle||e.id;return new y({active:t.active,child_active:t.child_active,child_current:t.child_current,current:t.current,handle:`${i}-${(0,$e.snakeCase)(t.name)}`,levels:t.levels,links:t.items?.map(r=>A3(n,t,r)),object:t.resource,title:t.name,type:Xt(t.type),url:t.url})}function Xt(n){switch(n){case"home":return"frontpage_link";case"category":return"collection_link";case"product":return"product_link";case"search":return"search_link";default:return""}}function b3(n,e,t){let{currency:i,locale:r}=n.swell.getStorefrontLocalization(),o=e.currencies.find(s=>s.code===(i||t.currency))||e.currencies[0],a=e.locales.find(s=>s.code===(r||t.locale))||e.locales[0];return new y({available_countries:e6(e),available_languages:ze(e),country:o&&Je(o,e),language:a&&We(a,e),market:null})}function e6(n){return n.currencies.map(e=>Je(e,n))||[]}function ze(n){return n.locales.map(e=>We(e,n))||[]}function We(n,e){return{endonym_name:n.name,iso_code:n.code,name:n.name,primary:n.code===e.locale,root_url:e.url}}function Je(n,e){return{available_languages:ze(e),continent:null,currency:{iso_code:n.code,name:n.name,symbol:n.symbol},iso_code:n.code,market:null,name:t6(n.code),"popular?":!1,unit_system:"metric"}}function t6(n){return n in Ke?Ke[n]:null}var Ke=Object.freeze({USD:"United States",EUR:"Europe",GBP:"United Kingdom",JPY:"Japan",CAD:"Canada",AUD:"Australia",CHF:"Switzerland",CNY:"China",SEK:"Sweden",NZD:"New Zealand",NOK:"Norway",MXN:"Mexico",SGD:"Singapore",HKD:"Hong Kong",KRW:"South Korea",INR:"India",BRL:"Brazil",RUB:"Russia",ZAR:"South Africa",TRY:"Turkey",AED:"United Arab Emirates",THB:"Thailand",IDR:"Indonesia",SAR:"Saudi Arabia",PLN:"Poland",PHP:"Philippines",ILS:"Israel",MYR:"Malaysia",CZK:"Czech Republic",HUF:"Hungary",CLP:"Chile",DKK:"Denmark",RON:"Romania",ARS:"Argentina",COP:"Colombia",TWD:"Taiwan",BGN:"Bulgaria",EGP:"Egypt",PKR:"Pakistan",NGN:"Nigeria",VND:"Vietnam",IQD:"Iraq",MAD:"Morocco",KES:"Kenya",DZD:"Algeria",UAH:"Ukraine",XAF:"Cameroon",XOF:"C\xF4te d'Ivoire",GHS:"Ghana",BYN:"Belarus",LKR:"Sri Lanka",SDG:"Sudan",AFN:"Afghanistan",ALL:"Albania",AMD:"Armenia",AOA:"Angola",AWG:"Aruba",AZN:"Azerbaijan",BAM:"Bosnia and Herzegovina",BBD:"Barbados",BDT:"Bangladesh",BHD:"Bahrain",BIF:"Burundi",BMD:"Bermuda",BND:"Brunei",BOB:"Bolivia",BSD:"Bahamas",BTN:"Bhutan",BWP:"Botswana",BZD:"Belize",CDF:"Democratic Republic of the Congo",CLF:"Chile (Unidad de Fomento)",CRC:"Costa Rica",CVE:"Cape Verde",DJF:"Djibouti",DOP:"Dominican Republic",ERN:"Eritrea",ETB:"Ethiopia",FKP:"Falkland Islands",GEL:"Georgia",GIP:"Gibraltar",GMD:"Gambia",GNF:"Guinea",GTQ:"Guatemala",GYD:"Guyana",HNL:"Honduras",HRK:"Croatia",HTG:"Haiti",IRR:"Iran",ISK:"Iceland",JMD:"Jamaica",JOD:"Jordan",KGS:"Kyrgyzstan",KHR:"Cambodia",KMF:"Comoros",KPW:"North Korea",KWD:"Kuwait",KYD:"Cayman Islands",KZT:"Kazakhstan",LAK:"Laos",LBP:"Lebanon",LRD:"Liberia",LSL:"Lesotho",LYD:"Libya",MDL:"Moldova",MGA:"Madagascar",MKD:"North Macedonia",MMK:"Myanmar",MNT:"Mongolia",MOP:"Macau",MRO:"Mauritania",MUR:"Mauritius",MVR:"Maldives",MWK:"Malawi",NAD:"Namibia",NPR:"Nepal",OMR:"Oman",PAB:"Panama",PEN:"Peru",PGK:"Papua New Guinea",PYG:"Paraguay",QAR:"Qatar",RSD:"Serbia",RWF:"Rwanda",SBD:"Solomon Islands",SCR:"Seychelles",SHP:"Saint Helena",SLL:"Sierra Leone",SOS:"Somalia",SRD:"Suriname",STD:"S\xE3o Tom\xE9 and Pr\xEDncipe",SZL:"Eswatini",TJS:"Tajikistan",TMT:"Turkmenistan",TND:"Tunisia",TOP:"Tonga",TTD:"Trinidad and Tobago",TZS:"Tanzania",UGX:"Uganda",UYU:"Uruguay",UZS:"Uzbekistan",VEF:"Venezuela",VUV:"Vanuatu",WST:"Samoa",XCD:"Eastern Caribbean",YER:"Yemen",ZMW:"Zambia",ZWL:"Zimbabwe"});function y4(n,e){return e instanceof y?e.clone():new y({performed:c(e,t=>t.performed),resources:i6(n,e),terms:w(()=>e.query),types:["product"]})}function i6(n,e){return e instanceof y?e.clone():new y({products:c(e.products,t=>t?.results?.map(i=>{let r=P(n,i);return r.object_type="product",r}))})}function S4(n,e){return e instanceof y?e.clone():new y({products:c(e,t=>(t?.recommendations||[]).map(i=>P(n,i))),products_count:c(e,t=>t?.recommendations?.length||0),performed:!0})}function k4(n,e){return e instanceof y?e.clone():new y({content:c(e,t=>t.content),handle:w(()=>e.slug),metafields:null,published_at:w(async()=>await e.date_published||e.date_created),template_suffix:null,title:c(e,t=>t.title||t.name),url:c(e,t=>`/pages/${t.slug}`),author:null})}function L4(n,e){if(e instanceof y)return e.clone();let t=c(e,i=>i.products?._cloneWithCompatibilityResult(r=>({results:r?.results?.map(o=>{let a=P(n,o);return a.object_type="product",a})}))||[]);return new y({default_sort_by:c(e,i=>i.sort_options?.[0].value),filters:w(async()=>(await(await t.resolve())?.filter_options)?.map(r=>H3(n,r))||[]),performed:c(e,i=>i.performed),results:t,results_count:w(async()=>(await t.resolve())?.count||0),sort_by:w(()=>e.sort),sort_options:c(e,i=>i.sort_options),terms:w(()=>e.query),types:["product"]})}function A4(n,e){let t={...e,handle:e.id.replace(/_/g,"-"),title:e.name};return{...t,links:e.items?.map(i=>A3(n,t,i))}}function b4(n,e){return L3(n,e)}function T4(n,e){return B3(n,e)}function r2(n,e){let t=e.currencies.find(i=>i.code===e.currency);return new y({accepts_gift_cards:!0,address:{},brand:{},collections_count:0,currency:e.currency,customer_accounts_enabled:!0,customer_accounts_optional:!0,description:e.description,domain:e.url.replace(/^http[s]?:\/\//,""),email:e.support_email,enabled_currencies:e.currencies.map(i=>({iso_code:i.code,name:i.name,symbol:i.symbol})),enabled_payment_providers:[],id:e.id,metafields:null,metaobjects:null,money_format:e.currencies.find(i=>i.code===e.currency),money_with_currency_format:{...t,symbol:`${e.currency} ${t?.symbol||""}`},name:e.name,password_message:null,permanent_domain:`${e.id}.swell.store`,phone:e.support_phone,published_locales:e.locales.map(i=>({endonym_name:i.name,iso_code:i.code,name:i.name,primary:i.code===e.locale,root_url:e.url})),secure_url:e.url,types:[],url:e.url,vendors:[],policies:[],privacy_policy:null,refund_policy:null,shipping_policy:null,subscription_policy:null,terms_of_service:null,products_count:0})}var Ye=require("liquidjs"),G3=class extends Ye.Drop{#e;constructor(e){switch(super(),typeof e){case"object":{if(e===null){this.#e=new Map;break}this.#e=new Map(e instanceof Map?e:Object.entries(e));break}default:this.#e=new Map;break}}liquidMethodMissing(e){switch(typeof e){case"string":return this.#e.get(e);case"object":{if(e!==null&&"handle"in e){let{handle:t}=e;if(typeof t=="string")return this.#e.get(t)}break}default:break}}};var f3=class{theme;swell;pageId;pageResourceMap;objectResourceMap;formResourceMap;queryParamsMap;shopifyCompatibilityConfig;editorLocaleConfig;constructor(e){this.theme=e,this.swell=e.swell,this.shopifyCompatibilityConfig=this.swell.shopifyCompatibilityConfig??void 0,this.pageResourceMap=this.getPageResourceMap(),this.objectResourceMap=this.getObjectResourceMap(),this.formResourceMap=this.getFormResourceMap(),this.queryParamsMap=this.getQueryParamsMap()}adaptGlobals(e){let{store:t,request:i,page:r,menus:o}=e;this.pageId=this.getPageType(r?.id),e.shop=this.getShopData(e),e.page={...r||void 0},e.request={...i||void 0,design_mode:this.swell.isEditor,visual_section_preview:!1,page_type:r?.id},e.linklists=new G3(o),e.current_page=this.swell.queryParams.page||1,e.routes=this.getPageRoutes(),e.localization=this.getLocalizationObject(t,i),e.all_country_option_tags=this.getAllCountryOptionTags(e.geo)}adaptSettings(e,t){let{current:i,presets:r}=t;if(typeof i=="object"&&i)return{current:y3(e,i),presets:r};let o=r?.[i];if(!o)throw new Error(`Failed to build settings config: "${i}" preset is not defined`);return{current:i,presets:{...r,[i]:y3(e,o)}}}adaptPageData(e){let t=this.pageResourceMap.get(this.pageId||"");if(t)for(let[i,r]of Object.entries(e)){let o=`${i}.`,a=t.resources.find(({from:s})=>s===i||s.startsWith(o));a&&r instanceof T&&(e[a.to]=a.object(this,r))}this.adaptObjectData(e)}adaptObjectData(e){for(let t of Object.values(e)){let i=this.objectResourceMap.get(t?.constructor.name);if(i){let r=i.object(this,t);t instanceof T?t.setCompatibilityProps(r):Object.assign(t,r)}}}adaptQueryParams(){let e={};for(let[t,i]of Object.entries(this.swell.queryParams)){let r=this.queryParamsMap.find(({from:o})=>typeof o=="function"?o(t):o===t);if(r){let o=typeof r.to=="function"?r.to(t,i):{[r.to]:i};Object.assign(e,o)}else e[t]=i}this.swell.queryParams=e}getAdaptedFormType(e){return this.formResourceMap.find(i=>i.shopifyType===e)?.type}async getAdaptedFormClientParams(e,t,i){let r=this.formResourceMap.find(o=>o.type===e);if(r?.clientParams)return r.clientParams(t,i)}async getAdaptedFormClientHtml(e,t,i){let r=this.formResourceMap.find(a=>a.type===e),o=this.shopifyCompatibilityConfig?.forms?.find(a=>a.id===e);if(r&&o)return o.client_params?.reduce((a,s)=>`<input type="hidden" name="${s.name}" value="${s.value}" />`+a,"")}async getAdaptedFormServerParams(e,t){let i=this.formResourceMap.find(r=>r.type===e||r.shopifyType===e);if(typeof i?.serverParams=="function")return i.serverParams(t)}async getAdaptedFormServerResponse(e,t){let i=this.formResourceMap.find(r=>r.type===e||r.shopifyType===e);if(typeof i?.serverResponse=="function")return i.serverResponse(t)}getShopData({store:e}){return e?r2(this,e):{}}getContentForHeader(){return"<script>var Shopify = Shopify || {};</script>"}getMenuData(e){return A4(this,e)}getFontData(e){return b4(this,e)}getFormData(e){return T4(this,e)}getFontFromShopifySetting(e){return Oe(e)}getThemeConfig(e){return Ge(e)}getPresetsConfig(e){return qe(e)}getEditorConfig(e){return Be(e)}getSectionConfigSchema(e){return Ve(e)}async getLocaleConfig(e,t="en",i=".json"){let r=await e.getThemeConfigsByPath("theme/locales/",i),o=r.get(`theme/locales/${t}${i}`)??null;if(!o){let a=t.split("-")[0];if(o=r.get(`theme/locales/${a}${i}`)??null,!o){let s=`.default${i}`;for(let l of r.values())if(l?.file_path?.endsWith(s)){o=l;break}}}if(o){o=await e.getThemeConfig(o.file_path);try{return JSON.parse(o?.file_data||"")}catch{}}return{}}async getEditorLocaleConfig(e,t){if(this.editorLocaleConfig?.[t])return this.editorLocaleConfig[t];let i=await this.getLocaleConfig(e,t,".schema.json");return this.editorLocaleConfig={[t]:i},i}async renderSchemaTranslations(e,t,i="en"){if(!(0,M4.isObject)(t))return t;let r=await this.getEditorLocaleConfig(e,i);return this.renderSchemaTranslationValue(e,t,i,r)}async renderSchemaTranslationValue(e,t,i,r){switch(typeof t){case"string":{if(t.startsWith("t:")){let o=t.slice(2),a=o?.split("."),s=a.pop()||"",l=a.join(".");return(0,M4.get)(r,l)?.[s]??o}break}case"object":{if(Array.isArray(t)){let o=[];for(let a of t)o.push(await this.renderSchemaTranslationValue(e,a,i,r));return o}if(t!==null){let o={...t};for(let[a,s]of Object.entries(t))o[a]=await this.renderSchemaTranslationValue(e,s,i,r);return o}break}default:break}return t}getPageType(e){return this.shopifyCompatibilityConfig?.page_types?.[e]||e}getPageRouteUrl(e){return this.theme.props.pages?.find(t=>t.id===e)?.url||e}getPageRoutes(){let e={account_addresses_url:this.getPageRouteUrl("account/addresses"),account_login_url:this.getPageRouteUrl("account/login"),account_logout_url:this.getPageRouteUrl("account/logout"),account_recover_url:this.getPageRouteUrl("account/recover"),account_register_url:this.getPageRouteUrl("account/signup"),account_url:this.getPageRouteUrl("account/index"),all_products_collection_url:this.getPageRouteUrl("products/index"),cart_add_url:this.getPageRouteUrl("cart/add"),cart_change_url:this.getPageRouteUrl("cart/change"),cart_clear_url:this.getPageRouteUrl("cart/clear"),cart_update_url:this.getPageRouteUrl("cart/update"),cart_url:this.getPageRouteUrl("cart/index"),collections_url:this.getPageRouteUrl("categories/index"),predictive_search_url:this.getPageRouteUrl("search/suggest"),product_recommendations_url:this.getPageRouteUrl("products/index"),root_url:this.getPageRouteUrl("index"),search_url:this.getPageRouteUrl("search")};if(this.shopifyCompatibilityConfig?.page_routes)for(let[t,i]of Object.entries(this.shopifyCompatibilityConfig.page_routes))i&&typeof i=="object"&&i.page_id?e[t]=this.getPageRouteUrl(i.page_id):typeof i=="string"&&(e[t]=i);return e}getLocalizationObject(e,t){return b3(this,e,t)}getAdaptedPageUrl(e){if(!e)return;let t,i,r={},[o,a]=e.split("?"),s=o.split("."),l=s[1]?s.pop():null,[,d,u,h]=s.join(".").split("/");switch(l==="js"&&(i="json"),d){case"account":switch(u){case"order":t="account/order",r.id=h;break;case"register":t="account/login";break;default:break}break;case"blog":u&&(t="blogs/category",r.category=u),h&&(t="blogs/blog",r.slug=h);break;case"collections":u?u==="all"?t="products/index":(t="categories/category",r.slug=u):t="categories/index";break;case"gift_card":u&&(t="gift-card",r.code=u);break}if(t){let p=this.getPageRouteUrl(t);if(p)return p.replace(/:(\w+)/g,(m,g)=>r[g])+(l?`.${l}`:"")+(a?`?${a}`:"")}else if(i)return o.replace(new RegExp(`.${l}$`),`.${i}`)+(a?`?${a}`:"")}getThemeFilePath(e,t){switch(e){case"assets":return`assets/${t}`;case"components":return`snippets/${t}`;case"config":return`config/${t}`;case"layouts":return`layout/${t}`;case"templates":return`templates/${this.getPageType(t)}`;case"sections":return`sections/${t}`;default:throw new Error(`Theme file type not supported: ${e}`)}}getPageResourceMap(){return this.shopifyCompatibilityConfig?.page_resources?this.shopifyCompatibilityConfig.page_resources.reduce((e,t)=>e.set(t.page,{page:t.page,resources:t.resources.map(({from:i,to:r,object:o})=>{let a=_4[o];if(!a)throw new Error(`ShopifyObject for '${o}' not found.`);return{from:i,to:r,object:a}})}),new Map):new Map}getObjectResourceMap(){return this.shopifyCompatibilityConfig?.object_resources?this.shopifyCompatibilityConfig.object_resources.reduce((e,t)=>{let i=_4[t.object];if(!i)throw new Error(`ShopifyObject for '${t.object}' not found.`);return e.set(t.from,{from:t.from,object:i})},new Map):new Map}getFormResourceMap(){return this.shopifyCompatibilityConfig?.forms?this.shopifyCompatibilityConfig.forms.map(e=>({shopifyType:e.shopify_type,type:e.id})):[]}getQueryParamsMap(){return[{from:"sort_by",to:"sort"},{from(e){return e.startsWith("filter.v.")},to(e,t){let i=e.split("filter.v.")[1],r=t;return{[i]:r}}}]}getAllCountryOptionTags(e){return e?.countries?.map(t=>{if(!t)return;let i=[...(e?.states||[]).filter(o=>o.country===t.id).map(o=>[o.id,o.name])],r=JSON.stringify(i).replace(/"/g,"&quot;");return`<option value="${t.id}" data-provinces="${r}">${t.name}</option>`}).filter(Boolean).join(`
936
- `)}isScriptFormActionUrl(e){if(!e)return!1;let t=this.shopifyCompatibilityConfig?.editor_configs?.script_actions_routes||{};for(let i of Object.values(t))if(e===i)return!0;return!1}isScriptUrl(e){if(!e)return!1;let t=this.shopifyCompatibilityConfig?.editor_configs?.script_routes||{};for(let i of Object.values(t))if(e.startsWith(i))return!0;return!1}needRedirectToPageStart(e){return e?(this.shopifyCompatibilityConfig?.editor_configs?.redirect_to_page_start_forms||[]).includes(e):!1}isCheckoutForm(e){return e?this.shopifyCompatibilityConfig?.editor_configs?.checkout_form===e:!1}};var a2=100,s2=15,T=class{_getter;_getterHash;_result;_compatibilityProps={};constructor(e){return e&&this._setGetter(e),this._getProxy()}_getProxy(){return new Proxy(this,{get(e,t){let i=e;switch(t){case"toLiquid":case"next":return;case"then":return!1;case"toJSON":case"toObject":return()=>i.toObject();default:break}if(typeof i[t]=="function"||t.startsWith?.("_"))return i[t];if(typeof t=="symbol"&&t===Symbol.toStringTag)return v(i._result)?"[object Promise]":i._result!==void 0?"[object Object]":"undefined";if(i._result===void 0){if(i[t]!==void 0)return i[t];i._result=i._get().catch(r=>(console.log(r),i._getCollectionResultOrProp(i,t)))}return v(i._result)?i._result.then(()=>i._getCollectionResultOrProp(i,t)).catch(r=>(console.log(r),null)):i._getCollectionResultOrProp(i,t)},set(e,t,i){return e[t]=i,!0}})}_getCollectionResultOrProp(e,t){if(e._result&&Array.isArray(e._result.results)){let i=e._result.results.find(r=>r.slug===t||r.id===t)||(typeof t=="number"?e._result.results[t]:void 0);if(i)return i}return t in e._compatibilityProps?e._compatibilityProps[t]:e._result&&t in e._result?e._result[t]:e[t]}async _get(...e){if(this._getter){let t=this._getter.bind(this);return Promise.resolve().then(()=>t()).then(i=>(this._result=i,i&&Object.assign(this,i),i)).catch(i=>(console.log(i),null))}return this._result}_setGetter(e){this._getter=e,this._getterHash=J(e.toString())}async _resolve(){return this._result===void 0?this._get():this._result}_isResultResolved(){return this._result!==void 0&&!v(this._result)}async resolve(e=!0,t=!1){let i={},r=await this._resolve();return r===null?null:(Object.assign(i,r),Object.assign(i,this._compatibilityProps),Q(i,e,t))}toObject(){if(this._result===null)return null;let e={};return Object.assign(e,this._result),Object.assign(e,this._compatibilityProps),e}toJSON(){return this.toObject()}valueOf(){return this.resolve()}setCompatibilityProps(e){this._compatibilityProps=e}getCompatibilityProp(e){return this._compatibilityProps[e]}},T3=class extends T{_swell;_resource;_resourceName;_collection;_query={};_compatibilityInstance=null;constructor(e,t,i){return super(i),this._swell=e,this._collection=t,this._getProxy()}_getProxy(){return super._getProxy()}getResourceObject(){let{_swell:e,_collection:t}=this;if(this._resource=(e?.storefront)[t],e&&t.startsWith("content/")){let i=t.split("/")[1]?.replace(/\/$/,"").trim();this._resource={list:r=>e.storefront.content.list(i,r),get:(r,o)=>e.storefront.content.get(i,r,o)}}if(!this._resource?.get)throw new Error(`Swell storefront resource for collection '${t}' does not exist.`);return this._resource}},A=class n extends T3{length=0;results;count;page;pages;page_count;limit=s2;name;constructor(e,t,i={},r){return super(e,t,r),this._query=this._initQuery(i),r||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_initQuery(e){let t=e||{};return t.limit>a2||t.limit===null?t.limit=a2:t.limit||(t.limit=s2),this.limit=t.limit,t}_defaultGetter(){let e=this.getResourceObject();async function t(){return e.list(this._query)}return t}async _get(e={}){if(this._query={...this._query,...e},this._getter){let t=this._getter;this._result=this._swell.getCachedResource("storefront-list",[this._collection,this._query,this._getterHash],async()=>t.call(this)).then(i=>(this._result=i,i&&Object.assign(this,i,{length:i.results?.length||0}),i)).catch(i=>(console.log(i),null))}return this._result}[Symbol.iterator](){return this.iterator()}*iterator(){for(let e of this.results||[])yield e}_clone(e){let t=new n(this._swell,this._collection,this._query,this._getter);return this._isResultResolved()&&(t._result=(0,o2.cloneDeep)(this._result)),this._compatibilityProps&&t.setCompatibilityProps(this._compatibilityProps),e!==void 0&&(Object.assign(t,e),e._getter&&t._setGetter(e._getter)),t}_cloneWithCompatibilityResult(e){let t=this._getter,i=this._clone({_getter:async()=>{let r=await t?.call(i);if(r){let o=e(r);return{...r,...o||void 0}}return r}});if(this._isResultResolved()){let r=(0,o2.cloneDeep)(this._result);if(r){let o=e(r);Object.assign(i,r),o&&Object.assign(i,o)}}return i}},_=class extends T3{_id;constructor(e,t,i,r={},o){return super(e,t,o),this._id=i,this._query=r,o||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_defaultGetter(){let e=this.getResourceObject();async function t(){return e.get(this._id,this._query)}return t}async _get(e,t={}){this._id=e||this._id;let{currency:i,locale:r}=this._swell.getStorefrontLocalization();if(this._query={...this._query,...t,$currency:i,$locale:r},this._getter){let o=this._getter;this._result=this._swell.getCachedResource("storefront-record",[this._collection,this._id,this._query,this._getterHash],async()=>o.call(this)).then(a=>(this._result=a,a&&Object.assign(this,a),a)).catch(a=>(console.log(a),null))}return this._result}},Y=class extends T3{constructor(e,t,i){return super(e,t,i),i||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_defaultGetter(){let{_collection:e,_swell:{storefrontContext:t}}=this,i=this.getResourceObject();async function r(){return t[e]!==void 0?t[e]:i.get()}return r}async _get(){if(this._getter){let e=this._getter;this._result=Promise.resolve().then(()=>e.call(this)).then(t=>(this._result=t,t&&Object.assign(this,t),t)).catch(t=>(console.log(t),null))}return this._result}},v3=class{_resource;count=0;page=0;page_count=0;limit=0;pages={};next;previous;constructor(e){this._resource=e,this.setPaginationProps()}setPaginationProps(){let{_resource:e}=this;if(this.count=e.count||0,this.page=e.page||0,this.page_count=e.page_count||0,this.limit=e.limit||0,this.pages={},e.pages)for(let[r,o]of Object.entries(e.pages))this.pages[r]={start:o.start,end:o.end,url:this.getPageUrl(Number(r))};let t=this.pages[this.page+1];this.next=t?{start:t.start,end:t.end,url:this.getPageUrl(this.page+1)}:void 0;let i=this.pages[this.page-1];this.previous=i?{start:i.start,end:i.end,url:this.getPageUrl(this.page-1)}:void 0}getPageUrl(e){let{url:t,queryParams:i}=this._resource._swell;return`${t.pathname}?${q({...i,page:e})}`}setCompatibilityProps(e){Object.assign(this,e)}};function J(n){var e="0123456789abcdef";function t(L){var k,M="";for(k=0;k<=3;k++)M+=e.charAt(L>>k*8+4&15)+e.charAt(L>>k*8&15);return M}function i(L,k){var M=(L&65535)+(k&65535),E=(L>>16)+(k>>16)+(M>>16);return E<<16|M&65535}function r(L,k){return L<<k|L>>>32-k}function o(L,k,M,E,F,I){return i(r(i(i(k,L),i(E,I)),F),M)}function a(L,k,M,E,F,I,e3){return o(k&M|~k&E,L,k,F,I,e3)}function s(L,k,M,E,F,I,e3){return o(k&E|M&~E,L,k,F,I,e3)}function l(L,k,M,E,F,I,e3){return o(k^M^E,L,k,F,I,e3)}function d(L,k,M,E,F,I,e3){return o(M^(k|~E),L,k,F,I,e3)}function u(L){var k,M=(L.length+8>>6)+1,E=new Array(M*16);for(k=0;k<M*16;k++)E[k]=0;for(k=0;k<L.length;k++)E[k>>2]|=L.charCodeAt(k)<<k%4*8;return E[k>>2]|=128<<k%4*8,E[M*16-2]=L.length*8,E}var h,p=u(""+n),C=1732584193,m=-271733879,g=-1732584194,f=271733878,X,d3,U3,$3;for(h=0;h<p.length;h+=16)X=C,d3=m,U3=g,$3=f,C=a(C,m,g,f,p[h+0],7,-680876936),f=a(f,C,m,g,p[h+1],12,-389564586),g=a(g,f,C,m,p[h+2],17,606105819),m=a(m,g,f,C,p[h+3],22,-1044525330),C=a(C,m,g,f,p[h+4],7,-176418897),f=a(f,C,m,g,p[h+5],12,1200080426),g=a(g,f,C,m,p[h+6],17,-1473231341),m=a(m,g,f,C,p[h+7],22,-45705983),C=a(C,m,g,f,p[h+8],7,1770035416),f=a(f,C,m,g,p[h+9],12,-1958414417),g=a(g,f,C,m,p[h+10],17,-42063),m=a(m,g,f,C,p[h+11],22,-1990404162),C=a(C,m,g,f,p[h+12],7,1804603682),f=a(f,C,m,g,p[h+13],12,-40341101),g=a(g,f,C,m,p[h+14],17,-1502002290),m=a(m,g,f,C,p[h+15],22,1236535329),C=s(C,m,g,f,p[h+1],5,-165796510),f=s(f,C,m,g,p[h+6],9,-1069501632),g=s(g,f,C,m,p[h+11],14,643717713),m=s(m,g,f,C,p[h+0],20,-373897302),C=s(C,m,g,f,p[h+5],5,-701558691),f=s(f,C,m,g,p[h+10],9,38016083),g=s(g,f,C,m,p[h+15],14,-660478335),m=s(m,g,f,C,p[h+4],20,-405537848),C=s(C,m,g,f,p[h+9],5,568446438),f=s(f,C,m,g,p[h+14],9,-1019803690),g=s(g,f,C,m,p[h+3],14,-187363961),m=s(m,g,f,C,p[h+8],20,1163531501),C=s(C,m,g,f,p[h+13],5,-1444681467),f=s(f,C,m,g,p[h+2],9,-51403784),g=s(g,f,C,m,p[h+7],14,1735328473),m=s(m,g,f,C,p[h+12],20,-1926607734),C=l(C,m,g,f,p[h+5],4,-378558),f=l(f,C,m,g,p[h+8],11,-2022574463),g=l(g,f,C,m,p[h+11],16,1839030562),m=l(m,g,f,C,p[h+14],23,-35309556),C=l(C,m,g,f,p[h+1],4,-1530992060),f=l(f,C,m,g,p[h+4],11,1272893353),g=l(g,f,C,m,p[h+7],16,-155497632),m=l(m,g,f,C,p[h+10],23,-1094730640),C=l(C,m,g,f,p[h+13],4,681279174),f=l(f,C,m,g,p[h+0],11,-358537222),g=l(g,f,C,m,p[h+3],16,-722521979),m=l(m,g,f,C,p[h+6],23,76029189),C=l(C,m,g,f,p[h+9],4,-640364487),f=l(f,C,m,g,p[h+12],11,-421815835),g=l(g,f,C,m,p[h+15],16,530742520),m=l(m,g,f,C,p[h+2],23,-995338651),C=d(C,m,g,f,p[h+0],6,-198630844),f=d(f,C,m,g,p[h+7],10,1126891415),g=d(g,f,C,m,p[h+14],15,-1416354905),m=d(m,g,f,C,p[h+5],21,-57434055),C=d(C,m,g,f,p[h+12],6,1700485571),f=d(f,C,m,g,p[h+3],10,-1894986606),g=d(g,f,C,m,p[h+10],15,-1051523),m=d(m,g,f,C,p[h+1],21,-2054922799),C=d(C,m,g,f,p[h+8],6,1873313359),f=d(f,C,m,g,p[h+15],10,-30611744),g=d(g,f,C,m,p[h+6],15,-1560198380),m=d(m,g,f,C,p[h+13],21,1309151649),C=d(C,m,g,f,p[h+4],6,-145523070),f=d(f,C,m,g,p[h+11],10,-1120210379),g=d(g,f,C,m,p[h+2],15,718787259),m=d(m,g,f,C,p[h+9],21,-343485551),C=i(C,X),m=i(m,d3),g=i(g,U3),f=i(f,$3);return t(C)+t(m)+t(g)+t(f)}function n6(n,e){if(!n.file_path.startsWith("theme/sections/"))return!1;if(n.file_path.endsWith(".liquid")){if(!e.get(n.file_path.replace(/\.liquid$/,".json")))return!0}else if(n.file_path.endsWith(".json"))return!0;return!1}async function Q5(n,e){let t=[];for(let i of n.values())if(n6(i,n)){let r=await e(i);r&&t.push({...r,id:String(i.name||"").split(".").pop()??"",...r&&{presets:r6(r)}})}return t}function r6(n){return Array.isArray(n?.presets)?n.presets.map(e=>({label:e.label,settings:{...n.fields?.reduce((t,i)=>(i.id&&i.default!==void 0&&(t[i.id]=i.default),t),{}),...e.settings||void 0},blocks:e.blocks?.map(t=>{let i=n.blocks?.find(r=>r.type===t.type);return i?{...t,settings:{...i.fields.reduce((r,o)=>(o.id&&o.default!==void 0&&(r[o.id]=o.default),r),{}),...t.settings||void 0}}:t})})):[]}async function X5(n,e){let t=Array.from(n.values()),i=t.filter(a=>a.file_path.endsWith(".json")&&!n.has(a.file_path.replace(/\.json$/,".liquid"))),r=async a=>{let s=t.find(d=>{if(!d.file_path.endsWith(`/${a}.json`)&&!d.file_path.endsWith(`/${a}.liquid`))return!1;if(d.file_path.endsWith(".liquid")){if(!n.get(d.file_path.replace(/\.liquid$/,".json")))return!0}else if(d.file_path.endsWith(".json"))return!0;return!1});return s?{...await e(s),id:String(s.name||"").split(".").pop()}:void 0},o=[];for(let a of i){let s;try{s=JSON.parse(a.file_data),s?.name&&(s.label=s.name,delete s.name)}catch{}if(s?.type){let l=await C4(s,r);o.push({...s,id:String(a.name||"").split(".").pop(),sectionConfigs:l})}}return o}async function C4(n,e){let t=Array.isArray(n?.order)?n.order:Object.keys(n?.sections||{}),i=[];for(let r of t){let o=n.sections[r];if(!o)continue;let a=await e(o.type)||{id:o.type,label:o.type,tag:"div",class:"",fields:[],blocks:[]},s=n.id?`page__${n.id}__${r}`:a.id,d=(Array.isArray(o.block_order)?o.block_order:Object.keys(o.blocks||{})).map(h=>o.blocks?.[h]).filter(Boolean),u={section:{id:s,...o,blocks:d}};i.push({id:s,section:{id:s,...o},schema:a,settings:u,tag:a.tag||"div",class:a.class})}return i}function o6(n){return String(n)==="[object Array]"}function w3(n){let e=typeof n;return n!==null&&(e==="object"||e==="function")}function l2(n){let e=new TextEncoder().encode(n),t="";for(let i=0;i<e.length;i+=3){let r=Array.from(e.slice(i,i+3));t+=btoa(String.fromCharCode(...r))}return t}function K5(n,e="id"){return(0,E4.reduce)(n,(t,i)=>(t[String(i[e])]=i,t),{})}function a6(n){let e=n.toUpperCase().split(/-|_/),t=e.shift(),i=e.pop(),r="";return i&&(r=i),i||(r=G4[t.toLowerCase()]||""),r.toLowerCase()}function h2(n,e){if(!(typeof n!="object"||n===null))for(let[t,i]of Object.entries(n))e(t,n)!==!1&&typeof i=="object"&&i!==null&&h2(i,e)}function s6(n){let e=new Set;return h2(n,(t,i)=>{if(typeof i=="object"&&i!==null){if(e.has(i))return!1;e.add(i)}return!0}),Array.from(e)}function l6(n){if(!n)return n;let e=new WeakSet;return JSON.parse(JSON.stringify(n,(t,i)=>{if(typeof i=="object"&&i!==null){if(e.has(i))return JSON.parse(JSON.stringify(i));e.add(i)}return i}))}function e1(n){if(!(typeof n!="object"||n===null))for(let[e,t]of Object.entries(n))e==="_swell"&&"_swell"in n?n[e]=void 0:e1(t)}function Qe(n){if(n!==void 0)return n instanceof A?"SwellStorefrontCollection":n instanceof _?"SwellStorefrontRecord":n instanceof y?"ShopifyResource":n instanceof T?"StorefrontResource":"promise"}async function Q(n,e=!0,t=!1){let i=n,r=e;try{if(v(n)&&(r=!1,i=await n),n instanceof T&&(r=!1,i=await Q(n.resolve(),e,t)),Array.isArray(i)){let o=await Promise.all(i.map(a=>Q(a,e,t)));if(i=o,!o.some(a=>a!==void 0))return e?[]:void 0}else if(typeof i=="object"&&i!==null&&(!("_swell"in i)||!i._swell)){let o={};for(let[a,s]of Object.entries(i)){if(!e&&(v(s)||s instanceof T||s instanceof y)){o[a]={_type:Qe(s),...t?{value:await Q(s,r,t)}:void 0};continue}if(s instanceof T&&t){o[a]={_type:Qe(s),value:await Q(s,r,t)};continue}o[a]=await Q(s,r,t)}return!e&&Object.keys(o).length===0?void 0:o}}catch(o){return console.error(o),n}return i}function q(n){return Xe.default.stringify({...n,sections:void 0,section_id:void 0},{encodeValuesOnly:!0,arrayFormat:"repeat"})}function e2(n,e){return n=Array.isArray(n)?n.join(" "):n,n.split("}").map(r=>{let[o,a]=r.split("{");return!o||!a?"":`${o.split(",").map(l=>`#${e} ${l.trim()}`).join(", ")} {${a}}`}).join(" ")}function y3(n,e){return Object.entries(n).reduce((t,[i,r])=>(r?.value!==null&&r?.value!==void 0&&(t[i]=r?.value),t),(0,E4.cloneDeep)(e))}var I3="ContentSections";function h3(n){return`SectionGroup_${n}`}var t1="https://api.schema.io",i1=new Map,n1=new Map,c2=class n{url;headers;swellHeaders;queryParams;workerEnv;config;shopifyCompatibilityConfig;backend;storefront;storefrontContext;instanceId="";isPreview=!1;isEditor=!1;sentResponse=!1;storefront_url;constructor(e){let{url:t,config:i,shopifyCompatibilityConfig:r,headers:o,swellHeaders:a,serverHeaders:s,queryParams:l,workerEnv:d,...u}=e;if(this.url=t instanceof URL?t:new URL(t||""),this.config=i,this.shopifyCompatibilityConfig=r,this.queryParams=n.formatQueryParams(l||this.url.searchParams),this.workerEnv=d,s){let{headers:h,swellHeaders:p}=n.formatHeaders(s);this.headers=h,this.swellHeaders=p,this.backend=new P4({storeId:p["store-id"],accessToken:p["access-token"],apiHost:p["api-host"]}),this.storefront=this.getStorefrontInstance({...e,headers:h,swellHeaders:p}),this.instanceId=["store-id","environment-id","deployment-mode","theme-id","theme-branch-id"].map(C=>p[C]||"0").join(":"),this.isEditor=u.isEditor??p["deployment-mode"]==="editor",this.isPreview=this.isEditor||p["deployment-mode"]==="preview"}else if(o&&a)Object.assign(this,u),this.headers=o,this.swellHeaders=a,this.storefront=this.getStorefrontInstance(e);else throw new Error("Swell client requires `serverHeaders` when initialized on the server-side, or `headers` and `swellHeaders` when initialized on the client-side.");this.storefrontContext=this.initStorefrontContext()}static formatHeaders(e){let t={},i={};e instanceof Headers?e.forEach((r,o)=>{t[o]=r}):e&&(t=e);for(let[r,o]of Object.entries(t))r.startsWith("swell-")&&o&&(i[r.replace("swell-","")]=o);return{headers:t,swellHeaders:i}}static formatQueryParams(e){let t={};return e instanceof URLSearchParams?t=a1.default.parse(e.toString()):e&&(t=e),t}async getCachedResource(e,t,i){let r=this.swellHeaders["request-id"],o=r1(e,[r,t]);return this.getResourceCache().fetch(o,i)}async updateCacheModified(e){if(e){let t="_cache-modified";await this.getResourceCache().get(t)!==e&&(await this.getRequestCache().flushAll(),await this.getResourceCache().set(t,e,1e3*60*60*24*90))}}async getAppSettings(){return await this.get("/:storefronts/{id}/configs/settings/values",{id:this.swellHeaders["storefront-id"]})||{}}async getStorefrontSettings(e=!1){try{let{settings:t,menus:i,payments:r,subscriptions:o,session:a}=await this.storefront.request("get","/settings/all",void 0,void 0,{force:e}),s=this.storefront.settings;s.localizedState={},s.set({value:t}),s.set({model:"menus",value:i}),s.set({model:"payments",value:r}),s.set({model:"subscriptions",value:o}),s.set({model:"session",value:a})}catch(t){t instanceof Error&&(t.message=`Swell: unable to load settings (${t.message})`),console.error(t)}return this.storefront.settings.get()}getStorefrontMenus(){let e=this.storefront.settings.getState("/settings/menus","menuState");return!e||v(e)?[]:e}getStorefrontLocalization(){let{code:e}=this.storefront.currency.get(),{code:t}=this.storefront.locale.get();return{currency:e,locale:t}}async get(...e){return this.backend?.get(...e)}async put(...e){return this.backend?.put(...e)}async post(...e){return this.backend?.post(...e)}async delete(...e){return this.backend?.delete(...e)}getStorefrontInstance(e){let{swellHeaders:t,getCookie:i,setCookie:r,storefrontSettingStates:o}=e;if(!t)throw new Error("Swell headers are required");let a=t["store-id"],s=t["public-key"];if(!a||!s)throw new Error('Missing required headers: "swell-store-id" and "swell-public-key"');let l=o1.default.create(a,s,{url:t["admin-url"],vaultUrl:t["vault-url"],getCookie:i,setCookie:r&&((d,u,h)=>r(d,u,h,this)),headers:{"Swell-Store-id":a,"Swell-Storefront-Id":t["storefront-id"]}});return o&&Object.assign(l.settings,o),l.request=this.getCacheableStorefrontRequestHandler(l),l}initStorefrontContext(){let e={};if(this.swellHeaders?.["storefront-context"])try{e=JSON.parse(this.swellHeaders["storefront-context"])}catch{console.error("Failed to parse swell-storefront-context. Ignoring...")}return e}isStorefrontRequestCacheable(e,t,i){if(i?.force)return!1;if(e==="get")switch(t.split("/")[1]){case"products":case"categories":case"content":case"settings":return!0;default:return!1}return!1}getCacheableStorefrontRequestHandler(e){let t=e.request;return(i,r,o,a,s)=>{if(this.isStorefrontRequestCacheable(i,r,s))return this.getRequestCache().fetch(r1("request",[i,r,o,a,s]),()=>t(i,r,o,a,s));switch(i){case"delete":case"post":case"put":{let l=r.split("/")[1];delete this.storefrontContext[l];break}default:}return t(i,r,o,a,s)}}getResourceCache(){let e=i1.get(this.instanceId);return e||(e=new M3,i1.set(this.instanceId,e)),e}getRequestCache(){let e=n1.get(this.instanceId);return e||(e=new _3,n1.set(this.instanceId,e)),e}getCacheKey(e,t){let i=`${this.instanceId}:${e}`;return Array.isArray(t)&&t.length>0&&(i+=`_${JSON.stringify(t)}`),i.length>512&&(i=`${i.slice(0,480)}${J(i)}`),i}};function r1(n,e){let t=n;return Array.isArray(e)&&e.length>0&&(t+=`_${JSON.stringify(e)}`),t.length>512&&(t=`${t.slice(0,480)}${J(t)}`),t}var P4=class{apiHost=t1;apiAuth="";constructor({storeId:e,accessToken:t,apiHost:i}){this.apiHost=i||t1,this.apiAuth=l2(`${e}:${t}`)}async makeRequest(e,t,i){let r={method:e,headers:{Authorization:`Basic ${this.apiAuth}`,"User-Agent":"swell-functions/1.0","Content-Type":"application/json"}},o="";if(i)try{e==="GET"?o=`?${this.stringifyQuery(i)}`:(r.body=JSON.stringify(i),r.headers["Content-Length"]=String(r.body.length))}catch{throw new Error(`Error serializing data: ${i}`)}let a=String(t).startsWith("/")?t.substring(1):t,s=`${this.apiHost}/${a}${o}`,l=await fetch(s,r),d=await l.text(),u;try{u=JSON.parse(d)}catch{u=String(d||"").trim()}if(l.status>299)throw new q3(u,{status:l.status,method:e,endpointUrl:a});if(e!=="GET"&&u?.errors)throw new q3(u.errors,{status:400,method:e,endpointUrl:a});return u}stringifyQuery(e,t){let i=[];for(let[r,o]of Object.entries(e)){let a=t?`${t}[${r}]`:r,l=o!==null&&typeof o=="object"?this.stringifyQuery(o,a):`${encodeURIComponent(a)}=${o===null?"":encodeURIComponent(o)}`;i.push(l)}return i.join("&")}async get(e,t){return this.makeRequest("GET",e,t)}async put(e,t){return this.makeRequest("PUT",e,t)}async post(e,t){return this.makeRequest("POST",e,t)}async delete(e,t){return this.makeRequest("DELETE",e,t)}},q3=class extends Error{status=200;constructor(e,t={}){let i;typeof e=="string"?i=e:i=JSON.stringify(e,null,2),t.method&&t.endpointUrl&&(i=`${t.method} /${t.endpointUrl}
937
- ${i}`),super(i),this.name="SwellError",this.status=t.status||500}};function d2(n,e){return new A(n,"products",e)}function h6(n,e,t){return new _(n,"products",e,t)}function c6(n,{search:e,filter:t,sort:i}){return new A(n,"products",{search:e,filter:t,sort:i})}function d6(n,e){return new A(n,"categories",e)}function s1(n,e,t){return new _(n,"categories",e,t)}async function u6(n,e,t){let i=s1(n,e,t),r=await i.id;return i.products=d2(n,{category:r}),i}function C6(n,e){return n.getCachedResource(`content-model-${e}`,[],()=>n.get("/:content/{name}",{name:e,public:!0,"storefront.enabled":!0}))}async function l1(n,e,t){return new A(n,`content/${e}`,t)}async function u2(n,e,t,i){return new _(n,`content/${e}`,t,i)}async function m6(n,e,t){return u2(n,"pages",e,t)}async function p6(n,e){return l1(n,"blogs",e)}async function g6(n,e,t){return u2(n,"blogs",e,t)}var V=require("lodash-es");async function h1(n,e){let t=[];for(let i of e)if(w6(i,e)){let r=await m2(n,i);r&&t.push({...r,id:String(i.name||"").split(".").pop()})}return t}async function C2(n,e,t=f6){let i=Array.isArray(e.order)?e.order:Object.keys(e.sections||{}),r=[];for(let o of i){let a=e.sections[o],s=await t(n,a.type);if(!s)continue;let l={...s,id:o},d=e.id?`page__${e.id}__${o}`:l.id,h=(Array.isArray(a.block_order)?a.block_order:Object.keys(a.blocks||{})).map(C=>a.blocks?.[C]).filter(Boolean),p={section:{id:d,...a,blocks:h}};r.push({id:d,settings:p,section:{id:d,...a},tag:l.tag||"div",class:l.class,schema:l})}return r}async function c1(n,e){let t=e.filter(o=>y6(o,e)),i=async(o,a)=>{let s=e.find(d=>S6(d,e,a)),l=await m2(o,s);if(l)return{...l,id:String(s?.name||"").split(".").pop()}},r=[];for(let o of t){let a;try{a=JSON.parse(o.file_data),a?.name&&(a.label=a.name,delete a.name)}catch{}if(a?.type){let s=await C2(n,a,i);r.push({...a,id:String(o.name||"").split(".").pop(),sectionConfigs:s})}}return r}async function f6(n,e){let t=await n.getThemeTemplateConfigByType("sections",e);return m2(n,t)}async function m2(n,e){let t;if(e?.file_path?.endsWith(".liquid")){if(n.shopifyCompatibility){n.liquidSwell.lastSchema=void 0,await n.renderTemplate(e);let i=n.liquidSwell.lastSchema;i&&(t=n.shopifyCompatibility.getSectionConfigSchema(i))}}else if(e?.file_data)try{t=JSON.parse(e?.file_data)||void 0}catch{}return t}function w6(n,e){return n.file_path.startsWith("theme/sections/")?d1(n,e):!1}function y6(n,e){if(!n.file_path.startsWith("theme/sections/")||!n.file_path.endsWith(".json"))return!1;let t=n.file_path.replace(/\.json$/,".liquid");return!e.some(i=>i.file_path===t)}function S6(n,e,t){return!n.file_path.endsWith(`/${t}.json`)&&!n.file_path.endsWith(`/${t}.liquid`)?!1:d1(n,e)}function d1(n,e){if(n.file_path.endsWith(".liquid")){let t=n.file_path.replace(/\.liquid$/,".json");if(!e.find(r=>r.file_path===t))return!0}else if(n.file_path.endsWith(".json"))return!0;return!1}function V3(n){let e={description:n.description,defaultValue:n.default,isLabelHidden:!0,layout:"column",params:n},t;switch(n?.type){case"text":case"short_text":t={type:"swell_short_text"};break;case"paragraph":t={type:"swell_paragraph"};break;case"textarea":case"long_text":case"liquid":t={type:"swell_long_text"};break;case"basic_html":case"rich_text":case"rich_html":case"markdown":t={type:"swell_editor"};break;case"number":t={type:"swell_number"};break;case"select":t={type:"swell_select"};break;case"radio":t={type:"swell_radio"};break;case"checkbox":t={type:"swell_boolean"};break;case"color":t={type:"swell_color"};break;case"color_scheme":t={type:"swell_color_scheme"};break;case"color_scheme_group":t={type:"swell_color_scheme_group"};break;case"font":t={type:"swell_font"};break;case"header":t={type:"swell_header"};break;case"icon":t={type:"swell_menu"};break;case"menu":t={type:"swell_menu"};break;case"url":t={type:"swell_url"};break;case"lookup":case"generic_lookup":case"product_lookup":case"category_lookup":case"customer_lookup":t={type:"swell_lookup"};break;case"image":t={type:"swell_image",defaultValue:""};break;case"asset":case"document":case"video":t={type:"swell_file"};break;default:t={type:"swell_short_text"};break}return{...e,...t}}function N(n,e,t){if(t===void 0)return null;switch(n?.find(r=>r.id===e)?.type){default:return t}}function u1(n,e){return e?.reduce((t,i)=>{for(let r of i.fields||[])r?.id&&(t[r.id]=n[r.id]);return t},{})}function C1(n,e){if(e)return{settings:e.fields.reduce((t,i)=>(i?.id&&(t[i.id]=n[i.id]),t),{$locale:n.$locale}),id:e.id,blocks:n.Blocks?.filter(t=>!!t.props.compiled?._component).map(t=>{let i=t.props.compiled.props,r=t.props.compiled._component.split("__")[2],o=e.blocks?.find(a=>a.type===r);return{type:r,settings:o?.fields?.reduce((a,s)=>(s?.id&&(a[s.id]=i[s.id]),a),{$locale:i.$locale})||{}}})}}var v4=!0;async function k6(n,e,t){let i=await p1(n,t),r=await h1(n,e),o=await C2(n,i),a=await c1(n,e);return{pageTemplate:i,allSections:r,pageSections:o,layoutSectionGroups:a}}async function p1(n,e){let t=null;if(t=await n.getThemeTemplateConfigByType("templates",e),t)return JSON.parse(t.file_data)}function L6(n,e){return n.reduce((t,i)=>(i.enabled_on?D4(i.enabled_on,"groups",e)&&t.push(String(i.id)):i.disabled_on?D4(i.disabled_on,"groups",e)||t.push(String(i.id)):i.id===e&&t.push(String(i.id)),t),[])}function A6(n,e){return e.map(t=>({prop:h3(t.id),type:"component-collection",label:t.label,required:!0,noInline:v4,accepts:L6(n,t.type)}))}function D4(n,e,t){return!!(n.templates==="*"||n[e]?.includes(t))}function b6(n,e,t){return n.reduce((i,r)=>(r.enabled_on?D4(r.enabled_on,"templates",t)&&i.push(String(r.id)):r.disabled_on?D4(r.disabled_on,"templates",t)||i.push(String(r.id)):e.some(({type:o})=>o===r.id)||i.push(String(r.id)),i),[])}function T6(n){return(n?.configs?.editor?.settings??[]).reduce((e,t)=>{for(let i of t.fields||[])e.push({prop:i.id,label:i.label,optional:!0,group:t.label,...V3(i)});return e},[])}function _6(n){let e=[];for(let t of n){let i=Array.isArray(t.blocks)&&t.blocks.length>0;e.push({id:t.id,label:t.label,schema:[...(t.fields||[]).reduce((r,o)=>(o.id&&o.type&&r.push({prop:o.id,label:o.label,optional:!0,...V3(o)}),r),[]),...i?[{prop:"Blocks",type:"component-collection",required:!0,noInline:v4,accepts:(t.blocks||[]).map(r=>`Block__${t.id}__${r.type}`),defaultValue:t.presets?.reduce((r,o,a)=>o.blocks?o.blocks.reduce((s,l)=>{let d=t.blocks?.find(({type:u})=>u===l.type);return d&&s.push({_id:`Block__${t.id}__${l.type}__preset_${a}`,_component:`Block__${t.id}__${l.type}`,...(0,V.reduce)(d.fields,(u,h)=>(h.id&&(u[h.id]=N(d.fields,h.id,h.default)),u),{})}),s},r):r,[]),placeholderAppearance:{height:50,label:"Add block",aspectRatio:1}}]:[],{prop:"custom_css",type:"swell_css",label:"Custom CSS",description:"Add custom CSS for this section",layout:"column",isLabelHidden:!0,params:{rows:5,placeholder:"Enter custom CSS..."}},{prop:"$locale",type:"swell_locale",isLabelHidden:!0}],styles:()=>({styled:{Root:{}}})}),i&&e.push(...(t.blocks||[]).map(r=>({id:`Block__${t.id}__${r.type}`,label:r.label,schema:(r.fields||[]).reduce((o,a)=>(a.id&&a.type&&o.push({prop:a.id,label:a.label,optional:!0,...V3(a)}),o),[{prop:"$locale",type:"swell_locale",isLabelHidden:!0}]),styles:()=>({styled:{Root:{}}})})))}return e}function M6(n){return n?.configs?.editor?.settings?.reduce((e,t)=>{for(let i of t.fields||[])i?.id&&(e[i.id]=N(t.fields,i.id,n?.configs?.theme?.[i.id]));return e},{})}function E6(n){return n.reduce((e,t)=>(e[h3(t.id)]=t.sectionConfigs.map(({section:i,settings:r,schema:o})=>({_id:`SectionGroup__${i.type}_${m1()}`,_component:`${i.type}`,...(0,V.reduce)(r?.section.settings,(a,s,l)=>(a[l]=N(o?.fields,l,s),a),{}),custom_css:r?.section.custom_css||"",...r?.section.blocks?{Blocks:r.section.blocks.map(a=>({_id:`Block__${i.type}__${a.type}_${m1()}`,_component:`Block__${i.type}__${a.type}`,...(0,V.reduce)(a.settings,(s,l,d)=>(s[d]=N(o?.blocks?.find(({type:u})=>u===a.type)?.fields,d,l),s),{})}))}:void 0})),e),{})}function P6(n){return(n||"").replaceAll("/","_")}function v6(n){let e=[];for(let t of n)t.presets&&e.push(...t.presets.map((i,r)=>({id:`${t.id}__preset_${r}`,entry:{_id:`${t.id}__preset_${r}`,_component:t.id,custom_css:i.settings?.custom_css||"",...(0,V.reduce)(t.fields,(o,a)=>(a.id&&(o[a.id]=N(t.fields,a.id,i.settings?.[a.id])),o),{}),Blocks:i.blocks?.reduce((o,a)=>{let s=t.blocks?.find(({type:l})=>l===a.type);return s&&o.push({_id:`Block__${t.id}__${a.type}__preset_${r}`,_component:`Block__${t.id}__${a.type}`,...(0,V.reduce)(s.fields,(l,d)=>(d.id&&(l[d.id]=N(s.fields,d.id,a.settings?.[d.id])),l),{})}),o},[])}}))),t.blocks&&e.push(...t.blocks.map(i=>({id:`Block__${t.id}__${i.type}`,entry:{_id:`Block__${t.id}__${i.type}`,_component:`Block__${t.id}__${i.type}`,...(0,V.reduce)(i.fields,(r,o)=>(o.id&&o.default!==void 0&&(r[o.id]=N(i.fields,o.id,o.default)),r),{})}})));return e.filter(t=>Object.keys(t.entry).some(i=>i!=="_id"&&i!=="_component"))}function D6(n,e,t,i,r){let o={id:"swell_global",label:"Theme settings",schema:[{prop:"swell_page",type:"component",required:!0,accepts:["swell_page"],isNonChangable:!0,noInline:v4},{prop:"$locale",type:"swell_locale",isLabelHidden:!0},...T6(n)],groups:(n?.configs?.editor?.settings??[]).map(u=>({key:u.label,label:u.label,collapsable:!0,collapsed:!0})),styles:()=>({styled:{Root:{}}})},a={id:"swell_page",label:"Page settings",schema:[{prop:I3,type:"component-collection",required:!0,noInline:v4,accepts:b6(e,i,r),placeholderAppearance:{height:250,label:"Add section",aspectRatio:1}},...A6(e,i)],allowSave:!0,styles:()=>({styled:{Root:{}}})},s=[o,a,..._6(e)],l=o.schema.find(u=>u.prop==="color_schemes");if(l){let u=l.params,{fields:h=[]}=u;s.push({id:"swell_color_scheme_group",label:"Swell color scheme",schema:h.map(p=>({prop:p.id,label:p.label,optional:!0,...V3({...p,type:p.id==="background_gradient"?"text":p.type})})),styles(){return{styled:{Root:{}}}}})}let d=[{id:"swell_global",entry:{_id:"swell_global",_component:"swell_global",...M6(n),$locale:n?.configs?.theme?.$locale,swell_page:[{_id:"swell_page",_component:"swell_page",ContentSections:t.map(({section:u,settings:h,schema:p})=>({_id:P6(u.id),_component:`${u.type}`,custom_css:h?.section?.custom_css||"",disabled:h?.section?.disabled||!1,$locale:h?.section?.settings?.$locale,...(0,V.reduce)(p?.fields,(C,m)=>(m?.id&&(C[m.id]=N(p?.fields,m.id,h?.section?.settings?.[m.id])),C),{}),...u?.blocks?{Blocks:Object.entries(u.blocks).map(([C,m])=>({_id:`Block__${C}__${m.type}_${Math.random()}`,_component:`Block__${u.type}__${m.type}`,disabled:m.disabled||!1,...(0,V.reduce)(m.settings,(g,f,X)=>(g[X]=N(p?.blocks?.find(({type:d3})=>d3===m.type)?.fields,X,f),g),{})}))}:void 0})),...E6(i)}]}},{id:"swell_page",entry:{_id:"swell_page",_component:"swell_page"}},...v6(e)];return{easyblocksConfig:{components:s,templates:d,backend:g1(),hideCloseButton:!0,allowSave:!0,readOnly:!1,locales:[{code:"en-US",isDefault:!0}],types:{swell_css:{type:"inline",widget:{id:"SwellCSS"}},swell_locale:{type:"inline",widget:{id:"SwellLocale"}},swell_boolean:{type:"inline",widget:{id:"SwellBoolean"}},swell_color:{type:"inline",widget:{id:"SwellColor"}},swell_color_scheme:{type:"inline",widget:{id:"SwellColorScheme"}},swell_color_scheme_group:{type:"inline",widget:{id:"SwellColorSchemeGroup"}},swell_font:{type:"inline",widget:{id:"SwellFont"}},swell_header:{type:"inline",widget:{id:"SwellHeader"}},swell_icon:{type:"inline",widget:{id:"SwellIcon"}},swell_lookup:{type:"inline",widget:{id:"SwellLookup"}},swell_menu:{type:"inline",widget:{id:"SwellMenu"}},swell_url:{type:"inline",widget:{id:"SwellUrl"}},swell_number:{type:"inline",widget:{id:"SwellNumber"}},swell_select:{type:"inline",widget:{id:"SwellSelect"}},swell_short_text:{type:"inline",widget:{id:"SwellText"}},swell_long_text:{type:"inline",widget:{id:"SwellTextarea"}},swell_paragraph:{type:"inline",widget:{id:"SwellParagraph"}},swell_editor:{type:"inline",widget:{id:"SwellEditor"}},swell_file:{type:"inline",widget:{id:"SwellFile"}},swell_image:{type:"inline",widget:{id:"SwellImage"}}},tokens:{colors:[],fonts:[]}}}}function x6(n,e,t){let i=n.reduce((a,s)=>(a[`${s.id}`]=t("pageSection",s),a),{}),r=e.reduce((a,s)=>(a[h3(s.id)]=t("layoutSectionGroup",s),a),{}),o=n.reduce((a,s)=>{if(s.blocks)for(let l of s.blocks){let d=`Block__${s.id}__${l.type}`;a[d]=t("block",{section:s,block:l})}return a},{});return{...i,...r,...o,swell_page:t("root"),swell_global:t("global")}}function g1(){return{documents:{get({id:e}){console.log("Easyblocks backend documents.get()",e);let t={id:e,version:1,entry:{_id:"page",_component:"swell_page"}};return Promise.resolve(t)},create(e){return console.log("Easyblocks backend documents.create()",e),Promise.resolve({})},update(e){return console.log("Easyblocks backend documents.update()",e),Promise.resolve({})}},templates:{get(e){return console.log("Easyblocks backend templates.get()",e),Promise.resolve({})},getAll(){return console.log("Easyblocks backend get templates.getAll()"),Promise.resolve([])},create(e){return console.log("Easyblocks backend get templates.create()",e),Promise.resolve({})},update(e){return console.log("Easyblocks backend get templates.update()",e),Promise.resolve({})},delete(e){return console.log("Easyblocks backend get templates.delete()",e),Promise.resolve()}}}}function m1(){return(Math.random()+1).toString(36).substring(7)}function x4(n,e){let i=n?.storefront?.options?.getCookie;return typeof i=="function"&&i(e)||""}var p2=class extends _{constructor(e,t,i={}){super(e,"",t,i,async function(){let r=await f1(e,this._resourceName,t,i);return O3(this._resourceName,r,e,"",t,i)})}},g2=class extends Y{constructor(e,t,i={}){super(e,"",async function(){let r=await f1(e,this._resourceName,t,i);return O3(this._resourceName,r,e,"",t,i)})}};async function f1(n,e,t,i){let r=new URLSearchParams({...t&&{slug:t},...i&&{query:JSON.stringify(i)}}),o=r.size>0?`?${r}`:"",a=x4(n,"swell-session"),s=x4(n,"swell-data")||{};return(await fetch(`${n.storefront_url}/resources/${e}.json/${o}`,{headers:{"X-Session":a,"Swell-Data":JSON.stringify(s)}})).json()}function O3(n,e,t,i="",r,o){let a={};for(let[s,l]of Object.entries(e)){let d=i+`${i===""?"":"/"}${s}`,u;switch(l?._type){case"SwellStorefrontCollection":u=Z6;break;case"SwellStorefrontRecord":u=j6;break;case"createStorefrontResource":u=R6;break;default:break}a[s]=u?u(n,t,d,r,o):l}return a}function R6(n,e,t,i,r){return new T(async function(){let o=await f2(e,n,t,i,r);return O3(n,o,e,t,i,r)})}function j6(n,e,t,i,r){let o=w1(i,r);return new _(e,n,t,o,async function(){let a=await f2(e,n,t,i,r);return O3(n,a,e,t,i,r)})}function Z6(n,e,t,i,r){let o=w1(i,r);return new A(e,n,o,async function(){let a=await f2(e,n,t,i,r);return O3(n,a,e,t,i,r)})}async function f2(n,e,t,i,r){let o=new URLSearchParams({path:t,...i&&{slug:i},...r&&{query:JSON.stringify(r)}}),a=o.size>0?`?${o}`:"",s=x4(n,"swell-session"),l=x4(n,"swell-data")||{};return(await fetch(`${n.storefront_url}/resources/${e}.json${a}`,{headers:{"X-Session":s,"Swell-Data":JSON.stringify(l)}})).json()}function w1(n,e){return{...n&&{slug:n},...e}}0&&(module.exports={DEFAULT_QUERY_PAGE_LIMIT,DeferredShopifyResource,FILE_DATA_INCLUDE_QUERY,GEO_DATA,LANG_TO_COUNTRY_CODES,LiquidSwell,MAX_QUERY_PAGE_LIMIT,MockRecordResource,MockRecordSingleton,PageError,PageNotFound,SECTION_GROUP_CONTENT,ShopifyArticle,ShopifyBlog,ShopifyCart,ShopifyCollection,ShopifyCollections,ShopifyCompatibility,ShopifyCustomer,ShopifyFont,ShopifyForm,ShopifyLink,ShopifyLocalization,ShopifyOrder,ShopifyPage,ShopifyPaginate,ShopifyPredictiveSearch,ShopifyProduct,ShopifyRecommendations,ShopifyResource,ShopifySearch,ShopifyVariant,StorefrontResource,Swell,SwellBackendAPI,SwellError,SwellStorefrontCollection,SwellStorefrontPagination,SwellStorefrontRecord,SwellStorefrontResource,SwellStorefrontSingleton,SwellTheme,ThemeColor,ThemeFont,ThemeForm,ThemeFormErrors,adaptShopifyFontData,adaptShopifyFormData,adaptShopifyMenuData,arrayToObject,deferMenuItemUrlAndResource,dehydrateSwellRefsInStorefrontResources,extractSettingsFromForm,findCircularReferences,findEditorSetting,findThemeSettingsByType,fontMap,forEachKeyDeep,getAllSections,getBlog,getBlogs,getCategories,getCategory,getCategoryWithProducts,getContentEntry,getContentList,getContentModel,getCountryCodeFromLocale,getEasyblocksBackend,getEasyblocksComponentDefinitions,getEasyblocksPagePropsWithConfigs,getEasyblocksPageTemplate,getEasyblocksPropsFromThemeConfigs,getLayoutSectionGroups,getMenuItemStorefrontUrl,getMenuItemUrlAndResource,getMenuItemValueId,getPage,getPageSections,getProduct,getProducts,getProductsFiltered,getSectionGroupProp,getSectionSettingsFromProps,getThemeSettingsFromProps,isArray,isObject,md5,removeCircularReferences,resolveAsyncResources,resolveLookupCollection,resolveMenuItemUrlAndResource,resolveMenuItems,resolveMenuSettings,resolveSectionSettings,resolveThemeSettings,scopeCustomCSS,stringifyQueryParams,systemFonts,toBase64});
935
+ ${this.shopifyCompatibility.getContentForHeader()}`),e}renderFontHeaderLinks(){let e=this.globals.settings,t=this.globals.configs?.editor?.settings||[];if(e&&t){let i=J5("font",e,t),r=[];for(let a=0;a<i.length;a++){let o=i[a].value?.id||i[a].value;if(this.shopifyCompatibility){let s=this.shopifyCompatibility.getFontFromShopifySetting(o);r.includes(s||o)||r.push(s||o)}else r.includes(o)||r.push(o)}if(i.length>0)return`<link href="${D.combinedGoogleFontUrl(r)}" rel="stylesheet">`}return""}async getTemplateSchema(e){let t,i=await this.getThemeConfig(e.file_path);if(i){if(i.file_path.endsWith(".liquid")){if(this.shopifyCompatibility){this.liquidSwell.lastSchema=void 0,await this.renderTemplate(i);let r=this.liquidSwell.lastSchema||{};if(r){let a=this.shopifyCompatibility.getSectionConfigSchema(r);t=await this.shopifyCompatibility.renderSchemaTranslations(this,a,this.globals.store?.locale)}}}else if(i.file_data)try{t=JSON.parse(i?.file_data)||void 0}catch{}return t}}async resolveSectionDefaultSettings(e,t){let i={},r=t||e?.default||{};return e?.fields&&e.fields.forEach(a=>{a.default!==void 0&&(i[a.id]=a.default)}),Object.assign(i,r.settings,{blocks:r.blocks}),i.blocks instanceof Array&&(i.blocks=i.blocks.map(a=>{let o={},s=e?.blocks?.find(l=>l.type===a.type);return s?.fields&&s.fields.forEach(l=>{l.default!==void 0&&(o[l.id]=l.default)}),{...a,settings:{...o,...a.settings||void 0}}})),i}async getAllSections(){let e=await this.getThemeConfigsByPath("theme/sections/");return Q5(e,this.getTemplateSchema.bind(this))}async getPageSections(e,t=!0){let i=await m4(e,r=>this.getSectionSchema(r));if(t)for(let r of i){let{schema:a}=r;a?.fields&&this.globals&&r.settings&&(r.settings=u4(this,r))}return i}async getPageSectionGroups(e){let t=await this.getThemeTemplateConfigByType("templates",e);if(t===null)return[];let r=z5(t).layout||"theme",a=await this.getThemeTemplateConfigByType("layouts",`${r}.liquid`);if(a===null)return[];let o=await this.getThemeConfig("theme/locales/en.default.schema.json"),s=z5(o),c=a.file_data.matchAll(/\bsections '(\w.*?)'|(\bcontent_for_layout\b)/gm),u=[];for(let h of c)if(h[1]){let m=h[1],C=await this.getThemeTemplateConfigByType("sections",`${m}.json`),p=z5(C).name;typeof p=="string"&&p.startsWith("t:")&&(p=(0,A.get)(s,p.slice(2))),u.push({prop:c3(m),label:p||m,source:C?.file_path})}else h[2]&&u.push({prop:H3,label:"Template",source:t.file_path});return u}async getLayoutSectionGroups(e=!0){let t=await this.getThemeConfigsByPath("theme/sections/"),i=await X5(t,this.getTemplateSchema.bind(this));if(e)for(let r of i)for(let a of r.sectionConfigs){let{schema:o}=a;o?.fields&&this.globals&&a.settings&&(a.settings=u4(this,a))}return i}async renderPageSections(e,t){let i=await this.getPageSections(e,!0);return i=i.filter(r=>r.section.disabled!==!0),this.renderSectionConfigs(i,t)}async renderSectionConfigs(e,t){return Promise.all(e.map(async(i,r)=>{let{section:a,schema:o}=i,s=o?.fields&&this.globals?u4(this,i):{...i.settings},l=await this.getThemeTemplateConfigByType("sections",`${a.type}.liquid`),c="";return l&&(c=await this.renderTemplate(l,{...t,...s,index:r}),s?.section?.custom_css&&(c+=`<style>${e2(s?.section.custom_css,i.id)}</style>`)),{...i,output:c}}))}async renderTranslation(e,t,i){let r=this.globals.translations,a=this.globals.request?.locale;return this.renderTranslationValue(a,r,e,t,i)}async renderTranslationValue(e,t,i,r,a){if(i===void 0)return a||"";let o=i?.split(".")||[],s=o.pop()||"",l=o.join("."),c=(0,A.get)(t,l),u=(0,A.get)(c?.[e],s)||(0,A.get)(c?.[e.split("-")[0]],s)||c?.[s];return r?.count!==void 0&&u?.one&&(u=r.count===1?u.one:u.other),typeof u!="string"||u===""?a||"":await this.renderTemplateString(u,r)||a||""}renderCurrency(e,t){return this.swell.storefront.currency.format(e,t)}},N3=class extends Error{title;status=500;description;constructor(e="Something went wrong",t=500,i){e=String(e),super(e+(i?`: ${i}`:"")),this.title=e,this.status=t,this.description=i}toString(){return this.message}},F3=class extends N3{constructor(e="Page not found",t=404,i){super(e,t,i)}};function u4(n,e){let{settings:t,schema:i}=e;if(!i||!t?.section?.settings)return t;let r=[{label:i.label,fields:i.fields}],a=t.section.blocks?.filter(o=>o.disabled!==!0);return a=a?.map(o=>({...o,settings:I3(n,o.settings,i.blocks?.filter(s=>s.type===o.type))})),{...t,section:{...t.section,settings:I3(n,t.section.settings,r),blocks:a}}}function I3(n,e,t){let i=(0,A.cloneDeep)(e);if(i.$locale){let{locale:r}=n.swell.getStorefrontLocalization(),a=i.$locale[r]||{};for(let[o,s]of Object.entries(a))s&&(i[o]=s)}return(0,A.each)(i,(r,a)=>{let o=(t&&Y5(t,a))??null;if(e3(r)&&!(r instanceof T)){switch(o?.type){case"color_scheme_group":{(0,A.each)(r,(s,l)=>{if(e3(s)&&typeof s.settings=="object"&&s.settings){let c=s.settings;(0,A.each)(c,(u,h)=>{(0,A.find)(o.fields,{id:h})?.type==="color"&&u&&(s.id=l,c[h]=new S(u))})}});return}default:break}i[a]=I3(n,r,t)}else switch(o?.type){case"lookup":case"product_lookup":case"category_lookup":case"customer_lookup":i[a]=n.resolveLookupSetting(o,r);break;case"color":r&&(i[a]=new S(r));break;case"font":i[a]=n.resolveFontSetting(r);break;case"menu":i[a]=n.resolveMenuSetting(r);break;case"url":i[a]=n.resolveUrlSetting(r);break;case"image":i[a]=n.resolveImageSetting(r);break;default:break}}),i}function J5(n,e,t){let i=[];return(0,A.each)(e,(r,a)=>{if(e3(r)&&!(r instanceof D)&&!(r instanceof T))i.push(...J5(n,r,t));else{let o=Y5(t,a);o?.type===n&&i.push({setting:o,value:r})}}),i}function Ie(n){if(n.collection)return n.collection;switch(n.type){case"product_lookup":return"products";case"category_lookup":return"categories";case"customer_lookup":return"accounts";default:break}}function Y5(n,e){for(let t of n||[])for(let i of t.fields)if(i.id===e)return i;return null}function z5(n){try{return JSON.parse(n?.file_data||"{}")}catch{return{}}}function Be(n,e){let t={settings:[]};return Array.isArray(n)&&(n[0]?.name==="theme_info"&&n.shift(),n.forEach(i=>{t.settings?.push(B1(i,e))})),t}function Ge(n){return typeof n.current=="string"&&n.presets?.[n.current]?n.presets[n.current]:typeof n.current=="object"?n.current||{}:{}}function qe(n){return Object.entries(n.presets||{}).map(([e,t])=>({label:e,settings:t}))}function Ve(n,e="en"){return{label:j(n.name,e),type:n.type,tag:n.tag,class:n.class,limit:n.limit,enabled_on:n.enabled_on,disabled_on:n.disabled_on,fields:(n.settings||[]).map(i=>C4(i,e)),blocks:(n.blocks||[]).map(i=>H1(i,e)),presets:(n.presets||[]).map(i=>He(i,e)),default:n.default?He(n.default,e):void 0}}function H1(n,e){return{type:n.type,label:j(n.name,e),limit:n.limit,fields:(n.settings||[]).map(i=>C4(i,e))}}function He(n,e){return{label:j(n.name,e),settings:n.settings,blocks:n.blocks}}function B1(n,e){return{label:j(n.name,e),fields:(n.settings||[]).map(i=>C4(i,e))}}function C4(n,e){let t={};switch(n.type){case"text":t={type:"text"};break;case"textarea":t={type:"textarea"};break;case"paragraph":t={type:"paragraph",label:n.content?j(n.content,e):void 0};break;case"select":t={type:"select",options:n.options?.map(i=>({label:j(i.label,e),value:i.value}))};break;case"checkbox":t={type:"checkbox"};break;case"radio":t={type:"radio",options:n.options?.map(i=>({label:j(i.label,e),value:i.value}))};break;case"number":t={type:"integer"};break;case"range":t={type:"number",min:n.min,max:n.max,increment:n.step,unit:n.unit};break;case"article":t={type:"lookup",collection:"content/blogs",titleField:"title"};break;case"blog":t={type:"lookup",collection:"content/blogs",titleField:"title"};break;case"collection":t={type:"category_lookup"};break;case"collection_list":t={type:"category_lookup",multiple:!0,limit:n.limit};break;case"color":case"color_background":t={type:"color"};break;case"color_scheme":t={type:"color_scheme"};break;case"color_scheme_group":t={type:"color_scheme_group",fields:(n.definition||[]).map(i=>C4(i,e)),role:n.role};break;case"font_picker":t={type:"font"};break;case"html":t={type:"basic_html"};break;case"image_picker":t={type:"image"};break;case"inline_richtext":t={type:"rich_text"};break;case"link_list":t={type:"menu"};break;case"liquid":t={type:"liquid"};break;case"page":t={type:"lookup",collection:"content/pages",titleField:"title"};break;case"product":t={type:"product_lookup"};break;case"product_list":t={type:"product_lookup",multiple:!0,limit:n.limit};break;case"richtext":t={type:"rich_html"};break;case"text_alignment":t={type:"select",options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]};break;case"url":t={type:"url"};break;case"video":t={type:"video"};break;case"video_url":t={type:"url"};break;case"header":t={type:"header",label:n.content?j(n.content,e):void 0};break;default:break}return{...n,id:n.id,label:j(n.label,e),default:n.default?j(n.default,e):void 0,description:n.info?j(n.info,e):void 0,...t}}function j(n,e){if(e3(n)){let t=n[e];if(t)return t;let i=e.slice(0,2);return n[i]}return n}function Oe(n){let e=n.lastIndexOf("_"),t=n.substring(0,e),i=n.substring(e+1),r=G1[t];if(r){let a=r.variants[i];return`${r.family}:${a}`}return null}var G1={abel:{family:"Abel",variants:{n4:"wght@400"}},abril_fatface:{family:"Abril Fatface",variants:{n4:"wght@400"}},alegreya:{family:"Alegreya",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},alegreya_sans:{family:"Alegreya Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},amiri:{family:"Amiri",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},anonymous_pro:{family:"Anonymous Pro",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},arapey:{family:"Arapey",variants:{n4:"wght@400",i4:"ital,wght@1,400"}},archivo:{family:"Archivo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},archivo_narrow:{family:"Archivo Narrow",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},arimo:{family:"Arimo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},armata:{family:"Armata",variants:{n4:"wght@400"}},arvo:{family:"Arvo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},asap:{family:"Asap",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},assistant:{family:"Assistant",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},asul:{family:"Asul",variants:{n4:"wght@400",n7:"wght@700"}},bio_rhyme:{family:"Bio Rhyme",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n7:"wght@700",n8:"wght@800"}},bitter:{family:"Bitter",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},cabin:{family:"Cabin",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},cardo:{family:"Cardo",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},catamaran:{family:"Catamaran",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},chivo:{family:"Chivo",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},cormorant:{family:"Cormorant",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},crimson_text:{family:"Crimson Text",variants:{n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},dm_sans:{family:"DM Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},domine:{family:"Domine",variants:{n4:"wght@400",n7:"wght@700"}},dosis:{family:"Dosis",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},eczar:{family:"Eczar",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},fira_sans:{family:"Fira Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},fjalla_one:{family:"Fjalla One",variants:{n4:"wght@400"}},glegoo:{family:"Glegoo",variants:{n4:"wght@400",n7:"wght@700"}},ibm_plex_sans:{family:"IBM Plex Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},inconsolata:{family:"Inconsolata",variants:{n4:"wght@400",n7:"wght@700"}},inknut_antiqua:{family:"Inknut Antiqua",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},inter:{family:"Inter",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},josefin_sans:{family:"Josefin Sans",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},josefin_slab:{family:"Josefin Slab",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700"}},kalam:{family:"Kalam",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},karla:{family:"Karla",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},kreon:{family:"Kreon",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},lato:{family:"Lato",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},libre_baskerville:{family:"Libre Baskerville",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},libre_franklin:{family:"Libre Franklin",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},lobster:{family:"Lobster",variants:{n4:"wght@400"}},lobster_two:{family:"Lobster Two",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},lora:{family:"Lora",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},maven_pro:{family:"Maven Pro",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},megrim:{family:"Megrim",variants:{n4:"wght@400"}},merriweather_sans:{family:"Merriweather Sans",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},montserrat:{family:"Montserrat",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},mouse_memoirs:{family:"Mouse Memoirs",variants:{n4:"wght@400"}},muli:{family:"Muli",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},neuton:{family:"Neuton",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",n8:"wght@800"}},news_cycle:{family:"News Cycle",variants:{n4:"wght@400",n7:"wght@700"}},newsreader:{family:"Newsreader",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},nobile:{family:"Nobile",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},noticia_text:{family:"Noticia Text",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},noto_serif:{family:"Noto Serif",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},nunito:{family:"Nunito",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},nunito_sans:{family:"Nunito Sans",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},old_standard_tt:{family:"Old Standard TT",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700"}},open_sans:{family:"Open Sans",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},open_sans_condensed:{family:"Open Sans Condensed",variants:{n3:"wght@300",i3:"ital,wght@1,300",n7:"wght@700"}},oswald:{family:"Oswald",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700"}},ovo:{family:"Ovo",variants:{n4:"wght@400"}},oxygen:{family:"Oxygen",variants:{n3:"wght@300",n4:"wght@400",n7:"wght@700"}},pt_mono:{family:"PT Mono",variants:{n4:"wght@400"}},pt_sans:{family:"PT Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},pt_sans_narrow:{family:"PT Sans Narrow",variants:{n4:"wght@400",n7:"wght@700"}},pt_serif:{family:"PT Serif",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},pacifico:{family:"Pacifico",variants:{n4:"wght@400"}},playball:{family:"Playball",variants:{n4:"wght@400"}},playfair_display:{family:"Playfair Display",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},poppins:{family:"Poppins",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},prata:{family:"Prata",variants:{n4:"wght@400"}},prompt:{family:"Prompt",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},proza_libre:{family:"Proza Libre",variants:{n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800"}},quantico:{family:"Quantico",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},quattrocento:{family:"Quattrocento",variants:{n4:"wght@400",n7:"wght@700"}},quattrocento_sans:{family:"Quattrocento Sans",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},questrial:{family:"Questrial",variants:{n4:"wght@400"}},quicksand:{family:"Quicksand",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700"}},rajdhani:{family:"Rajdhani",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700"}},raleway:{family:"Raleway",variants:{n1:"wght@100",i1:"ital,wght@1,100",n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n8:"wght@800",i8:"ital,wght@1,800",n9:"wght@900",i9:"ital,wght@1,900"}},righteous:{family:"Righteous",variants:{n4:"wght@400"}},roboto:{family:"Roboto",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},roboto_condensed:{family:"Roboto Condensed",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},roboto_mono:{family:"Roboto Mono",variants:{n1:"wght@100",i1:"ital,wght@1,100",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},roboto_slab:{family:"Roboto Slab",variants:{n1:"wght@100",n3:"wght@300",n4:"wght@400",n7:"wght@700"}},rubik:{family:"Rubik",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},shadows_into_light:{family:"Shadows Into Light",variants:{n4:"wght@400"}},slabo_13px:{family:"Slabo 13px",variants:{n4:"wght@400"}},smooch:{family:"Smooch",variants:{n4:"wght@400"}},source_code_pro:{family:"Source Code Pro",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}},source_sans_pro:{family:"Source Sans Pro",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},space_mono:{family:"Space Mono",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},syne:{family:"Syne",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},tenor_sans:{family:"Tenor Sans",variants:{n4:"wght@400"}},tinos:{family:"Tinos",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},titillium_web:{family:"Titillium Web",variants:{n2:"wght@200",i2:"ital,wght@1,200",n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900"}},ubuntu:{family:"Ubuntu",variants:{n3:"wght@300",i3:"ital,wght@1,300",n4:"wght@400",i4:"ital,wght@1,400",n5:"wght@500",i5:"ital,wght@1,500",n7:"wght@700",i7:"ital,wght@1,700"}},unica_one:{family:"Unica One",variants:{n4:"wght@400"}},unna:{family:"Unna",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},varela:{family:"Varela",variants:{n4:"wght@400"}},varela_round:{family:"Varela Round",variants:{n4:"wght@400"}},vidaloka:{family:"Vidaloka",variants:{n4:"wght@400"}},volkhov:{family:"Volkhov",variants:{n4:"wght@400",i4:"ital,wght@1,400",n7:"wght@700",i7:"ital,wght@1,700"}},vollkorn:{family:"Vollkorn",variants:{n4:"wght@400",i4:"ital,wght@1,400",n6:"wght@600",i6:"ital,wght@1,600",n7:"wght@700",i7:"ital,wght@1,700",n9:"wght@900",i9:"ital,wght@1,900"}},work_sans:{family:"Work Sans",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},biz_udpmincho:{family:"BIZ UDPMincho",variants:{n4:"wght@400",n7:"wght@700"}},dela_gothic_one:{family:"Dela Gothic One",variants:{n4:"wght@400"}},hina_mincho:{family:"Hina Mincho",variants:{n4:"wght@400"}},kaisei_decol:{family:"Kaisei Decol",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700"}},kaisei_opti:{family:"Kaisei Opti",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700"}},kaisei_tokumin:{family:"Kaisei Tokumin",variants:{n4:"wght@400",n5:"wght@500",n7:"wght@700",n8:"wght@800"}},m_plus_1:{family:"M PLUS 1",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},m_plus_rounded_1c:{family:"M PLUS Rounded 1c",variants:{n1:"wght@100",n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},mochiy_pop_p_one:{family:"Mochiy Pop P One",variants:{n4:"wght@400"}},murecho:{family:"Murecho",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},noto_sans_japanese:{family:"Noto Sans Japanese",variants:{n1:"wght@100",n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800",n9:"wght@900"}},noto_serif_japanese:{family:"Noto Serif Japanese",variants:{n2:"wght@200",n3:"wght@300",n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}},shippori_mincho:{family:"Shippori Mincho",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n8:"wght@800"}},zen_kaku_gothic_new:{family:"Zen Kaku Gothic New",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},zen_kurenaido:{family:"Zen Kurenaido",variants:{n4:"wght@400"}},zen_maru_gothic:{family:"Zen Maru Gothic",variants:{n3:"wght@300",n4:"wght@400",n5:"wght@500",n7:"wght@700",n9:"wght@900"}},zen_old_mincho:{family:"Zen Old Mincho",variants:{n4:"wght@400",n5:"wght@500",n6:"wght@600",n7:"wght@700",n9:"wght@900"}}};var _4={};S2(_4,{DeferredShopifyResource:()=>z,ShopifyArticle:()=>b3,ShopifyBlog:()=>p4,ShopifyCart:()=>w3,ShopifyCollection:()=>A3,ShopifyCollections:()=>f4,ShopifyCustomer:()=>J,ShopifyFont:()=>T3,ShopifyForm:()=>G3,ShopifyLink:()=>_3,ShopifyLocalization:()=>M3,ShopifyOrder:()=>a3,ShopifyPage:()=>k4,ShopifyPaginate:()=>S3,ShopifyPredictiveSearch:()=>y4,ShopifyProduct:()=>P,ShopifyRecommendations:()=>S4,ShopifyResource:()=>y,ShopifySearch:()=>L4,ShopifyVariant:()=>V,adaptShopifyFontData:()=>A4,adaptShopifyFormData:()=>T4,adaptShopifyMenuData:()=>b4});function b3(n,e,t){return e instanceof y?e.clone():(t&&(e.category=t),new y({author:d(e,i=>i.author?.name||i.author?.email),content:d(e,i=>i.content),created_at:w(()=>e.date_created),excerpt:w(()=>e.summary),excerpt_or_content:w(()=>e.summary||e.content),handle:w(()=>e.slug),id:d(e,i=>i.id),image:d(e,i=>i.image&&F(n,i.image)),metafields:null,published_at:d(e,i=>i.date_published||i.date_created),tags:d(e,i=>i.tags),template_suffix:null,title:d(e,i=>i.title),updated_at:d(e,i=>i.date_updated||i.date_created),url:d([e,e.category],(i,r)=>r&&`/blogs/${r?.slug}/${i.slug}`),user:w(()=>e.author),comment_post_url:null,comments:null,comments_count:null,"comments_enabled?":!1,moderated:!1}))}function p4(n,e){if(e instanceof y)return e.clone();let t=d(e.blogs,i=>i?.results?.reduce((r,a)=>{for(let o of a.tags||[])r.includes(o)||r.push(o);return r},[]));return new y({all_tags:t,articles:d(e,i=>i.blogs?._cloneWithCompatibilityResult(r=>({results:r?.results?.map(a=>b3(n,a,i))}))||[]),articles_count:d(e.blogs,i=>i?.count||0),handle:w(()=>e.slug),id:d(e,i=>i.id),metafields:null,next_article:null,previous_article:null,tags:t,template_suffix:null,title:d(e,i=>i.title),url:d(e,i=>`/blogs/${i.slug}`),featured_image:d(e,i=>i.image),content:d(e,i=>i.content),"comments_enabled?":!1,moderated:!1})}var Ue=require("lodash-es");function B3(n,e){let t=e.type==="range",i=e.type==="boolean";return new y({active_values:t?void 0:e.active_options?.map(r=>u3(n,r,e)),false_value:i?u3(n,{value:""},e):void 0,inactive_values:t?void 0:e.inactive_options?.map(r=>u3(n,r,e)),label:e.label,max_value:t?u3(n,{value:e.range_max},e,"lte"):void 0,min_value:t?u3(n,{value:e.range_min},e,"gte"):void 0,operator:t?"AND":"OR",param_name:e.param_name,presentation:"text",range_max:e.range_max,true_value:i?u3(n,{value:e.options?.[0].value},e):void 0,type:e.id==="price"?"price_range":i?"boolean":"list",url_to_remove:V1(n,`filter_${e.id}`,!0),values:e.id!=="price"&&e.options?.map(r=>u3(n,r,e))})}function u3(n,e,t,i){let r=i?`${t.param_name}[${i}]`:t.param_name;return new y({active:e.active,count:e.count,image:null,label:e.label,param_name:r,swatch:null,url_to_add:U1(n,r,e.value),url_to_remove:O1(n,t.param_name,e.value),value:q1(n,e,t,i)})}function q1(n,e,t,i){let{queryParams:r}=n.swell,a=i?r[t.param_name]?.[i]:r[t.param_name];return t.type==="range"?a!==void 0&&a!==""?a:null:e.value}function g4(n){return Object.keys(n).reduce((e,t)=>{let i=n[t];return i!==""&&(e[t]=(0,Ue.isObject)(i)&&!Array.isArray(i)?g4(i):i),e},{})}function V1(n,e,t=!1){let{queryParams:i}=n.swell,r=O({...g4(i),...t?{[`${e}[gte]`]:void 0,[`${e}[lte]`]:void 0}:void 0,[e]:void 0,page:void 0});return t2(n,r)}function O1(n,e,t){let{queryParams:i}=n.swell,r=O({...g4(i),[e]:Array.isArray(i[e])?i[e].filter(a=>a!==t):void 0,page:void 0});return t2(n,r)}function U1(n,e,t){let{queryParams:i}=n.swell,r=O({...g4(i),[e]:Array.isArray(i[e])?i[e].concat(t):typeof i[e]=="string"?[i[e],t]:t,page:void 0});return t2(n,r)}function t2(n,e){let{url:t}=n.swell;return`${t.pathname}${e?`?${e}`:""}`}function A3(n,e){if(e instanceof y)return e.clone();let t=d(e,r=>r.products?._cloneWithCompatibilityResult(a=>({results:a?.results?.map(o=>P(n,o))}))??null);async function i(){let r=await t.resolve();return r&&"_resolve"in r?r._resolve():r}return new y({all_products_count:w(async()=>(await i())?.count||0),all_tags:w(async()=>(await i())?.results?.reduce((r,a)=>(Array.isArray(a.tags)&&r.push(...a.tags),r),[])||[]),all_types:w(async()=>{let r=await i();if(!r?.results)return[];let a=r.results.reduce((o,s)=>(s.type&&o.add(s.type),o),new Set);return Array.from(a.values())}),all_vendors:[],current_type:null,current_vendor:null,default_sort_by:d(e,r=>r.sort_options?.[0].value),description:d(e,r=>r.description),featured_image:d(e,r=>r.images?.[0]&&F(n,r.images[0])),filters:w(async()=>(await i())?.filter_options?.map(r=>B3(n,r))||[]),handle:w(()=>e.slug),id:d(e,r=>r.id),image:null,metafields:null,next_product:null,previous_product:null,products:w(async()=>(await i())?.results),products_count:w(async()=>(await i())?.results?.length||0),published_at:null,sort_by:w(()=>e.sort),sort_options:d(e,r=>r.sort_options),tags:[],template_suffix:null,title:w(()=>e.name),url:d(e,r=>`/collections/${r.slug}`)})}function f4(n,e){return new b(n.swell,e._collection,e._query,async()=>{let t=(await e.results)?.map(i=>A3(n,i));return{page:e.page??1,count:e.count??0,results:t,page_count:e.page_count??0,limit:e.limit,pages:e.pages??{}}})}function T3(n,e){return e instanceof y?e.clone():new y({baseline_ratio:null,fallback_families:e.fallback_families,family:e.family,style:e.style,"system?":e.system,variants:e.variants.map(t=>T3(n,t)),weight:e.weight})}var $1={account_login:{params:()=>({password_needed:!0})}};function G3(n,e){if(e instanceof y)return e.clone();let t=$1[e.id];return new y({...t?.params?.(e)||void 0,errors:e.errors&&new n2(e.errors),"posted_successfully?":e.success})}var i2=class{code;message;field_name;field_label;type;constructor(e){this.code=e.code,this.message=e.message,this.field_name=e.field_name,this.field_label=e.field_label,this.type=this.getShopifyErrorType(e)}getShopifyErrorType(e){return e.field_name==="email"?"email":e.field_name==="password"?"password":"form"}valueOf(){return this.type}toString(){return this.type}},n2=class n{errors;pointer=0;messages;translated_fields;constructor(e){return this.errors=Array.from(e).map(t=>new i2(t)),this.messages=new w4(this.errors,this.errors.map(t=>t.message)),this.translated_fields=new w4(this.errors,this.errors.map(t=>t.field_label)),new Proxy(this.errors,{get:(t,i)=>{let r=t;return i==="toJSON"?this.errors:i==="some"?this.some.bind(this):i==="messages"?this.messages:i==="translated_fields"?this.translated_fields:r[i]},getPrototypeOf(){return n.prototype}})}*[Symbol.iterator](){yield*this.errors}some(e,t){return this.errors.some(i=>e(i?.type),t)}},w4=class{values;constructor(e,t){return this.values=t,new Proxy(t,{get:(i,r)=>{let a=i;if(r==="toJSON")return t;let o=e?.findIndex?.(s=>s?.type===r);return o!==-1?t[o]:a[r]}})}};var $e=require("lodash-es");function _3(n,e,t){let i=e.handle||e.id;return new y({active:t.active,child_active:t.child_active,child_current:t.child_current,current:t.current,handle:`${i}-${(0,$e.snakeCase)(t.name)}`,levels:t.levels,links:t.items?.map(r=>_3(n,t,r)),object:t.resource,title:t.name,type:K1(t.type),url:t.url})}function K1(n){switch(n){case"home":return"frontpage_link";case"category":return"collection_link";case"product":return"product_link";case"search":return"search_link";default:return""}}function M3(n,e,t){let{currency:i,locale:r}=n.swell.getStorefrontLocalization(),a=e.currencies.find(s=>s.code===(i||t.currency))||e.currencies[0],o=e.locales.find(s=>s.code===(r||t.locale))||e.locales[0];return new y({available_countries:z1(e),available_languages:ze(e),country:a&&Je(a,e),language:o&&We(o,e),market:null})}function z1(n){return n.currencies.map(e=>Je(e,n))||[]}function ze(n){return n.locales.map(e=>We(e,n))||[]}function We(n,e){return{endonym_name:n.name,iso_code:n.code,name:n.name,primary:n.code===e.locale,root_url:e.url}}function Je(n,e){return{available_languages:ze(e),continent:null,currency:{iso_code:n.code,name:n.name,symbol:n.symbol},iso_code:n.code,market:null,name:W1(n.code),"popular?":!1,unit_system:"metric"}}function W1(n){return n in Ke?Ke[n]:null}var Ke=Object.freeze({USD:"United States",EUR:"Europe",GBP:"United Kingdom",JPY:"Japan",CAD:"Canada",AUD:"Australia",CHF:"Switzerland",CNY:"China",SEK:"Sweden",NZD:"New Zealand",NOK:"Norway",MXN:"Mexico",SGD:"Singapore",HKD:"Hong Kong",KRW:"South Korea",INR:"India",BRL:"Brazil",RUB:"Russia",ZAR:"South Africa",TRY:"Turkey",AED:"United Arab Emirates",THB:"Thailand",IDR:"Indonesia",SAR:"Saudi Arabia",PLN:"Poland",PHP:"Philippines",ILS:"Israel",MYR:"Malaysia",CZK:"Czech Republic",HUF:"Hungary",CLP:"Chile",DKK:"Denmark",RON:"Romania",ARS:"Argentina",COP:"Colombia",TWD:"Taiwan",BGN:"Bulgaria",EGP:"Egypt",PKR:"Pakistan",NGN:"Nigeria",VND:"Vietnam",IQD:"Iraq",MAD:"Morocco",KES:"Kenya",DZD:"Algeria",UAH:"Ukraine",XAF:"Cameroon",XOF:"C\xF4te d'Ivoire",GHS:"Ghana",BYN:"Belarus",LKR:"Sri Lanka",SDG:"Sudan",AFN:"Afghanistan",ALL:"Albania",AMD:"Armenia",AOA:"Angola",AWG:"Aruba",AZN:"Azerbaijan",BAM:"Bosnia and Herzegovina",BBD:"Barbados",BDT:"Bangladesh",BHD:"Bahrain",BIF:"Burundi",BMD:"Bermuda",BND:"Brunei",BOB:"Bolivia",BSD:"Bahamas",BTN:"Bhutan",BWP:"Botswana",BZD:"Belize",CDF:"Democratic Republic of the Congo",CLF:"Chile (Unidad de Fomento)",CRC:"Costa Rica",CVE:"Cape Verde",DJF:"Djibouti",DOP:"Dominican Republic",ERN:"Eritrea",ETB:"Ethiopia",FKP:"Falkland Islands",GEL:"Georgia",GIP:"Gibraltar",GMD:"Gambia",GNF:"Guinea",GTQ:"Guatemala",GYD:"Guyana",HNL:"Honduras",HRK:"Croatia",HTG:"Haiti",IRR:"Iran",ISK:"Iceland",JMD:"Jamaica",JOD:"Jordan",KGS:"Kyrgyzstan",KHR:"Cambodia",KMF:"Comoros",KPW:"North Korea",KWD:"Kuwait",KYD:"Cayman Islands",KZT:"Kazakhstan",LAK:"Laos",LBP:"Lebanon",LRD:"Liberia",LSL:"Lesotho",LYD:"Libya",MDL:"Moldova",MGA:"Madagascar",MKD:"North Macedonia",MMK:"Myanmar",MNT:"Mongolia",MOP:"Macau",MRO:"Mauritania",MUR:"Mauritius",MVR:"Maldives",MWK:"Malawi",NAD:"Namibia",NPR:"Nepal",OMR:"Oman",PAB:"Panama",PEN:"Peru",PGK:"Papua New Guinea",PYG:"Paraguay",QAR:"Qatar",RSD:"Serbia",RWF:"Rwanda",SBD:"Solomon Islands",SCR:"Seychelles",SHP:"Saint Helena",SLL:"Sierra Leone",SOS:"Somalia",SRD:"Suriname",STD:"S\xE3o Tom\xE9 and Pr\xEDncipe",SZL:"Eswatini",TJS:"Tajikistan",TMT:"Turkmenistan",TND:"Tunisia",TOP:"Tonga",TTD:"Trinidad and Tobago",TZS:"Tanzania",UGX:"Uganda",UYU:"Uruguay",UZS:"Uzbekistan",VEF:"Venezuela",VUV:"Vanuatu",WST:"Samoa",XCD:"Eastern Caribbean",YER:"Yemen",ZMW:"Zambia",ZWL:"Zimbabwe"});function y4(n,e){return e instanceof y?e.clone():new y({performed:d(e,t=>t.performed),resources:J1(n,e),terms:w(()=>e.query),types:["product"]})}function J1(n,e){return e instanceof y?e.clone():new y({products:d(e.products,t=>t?.results?.map(i=>{let r=P(n,i);return r.object_type="product",r}))})}function S4(n,e){return e instanceof y?e.clone():new y({products:d(e,t=>(t?.recommendations||[]).map(i=>P(n,i))),products_count:d(e,t=>t?.recommendations?.length||0),performed:!0})}function k4(n,e){return e instanceof y?e.clone():new y({content:d(e,t=>t.content),handle:w(()=>e.slug),metafields:null,published_at:w(async()=>await e.date_published||e.date_created),template_suffix:null,title:d(e,t=>t.title||t.name),url:d(e,t=>`/pages/${t.slug}`),author:null})}function L4(n,e){if(e instanceof y)return e.clone();let t=d(e,i=>i.products?._cloneWithCompatibilityResult(r=>({results:r?.results?.map(a=>{let o=P(n,a);return o.object_type="product",o})}))||[]);return new y({default_sort_by:d(e,i=>i.sort_options?.[0].value),filters:w(async()=>(await(await t.resolve())?.filter_options)?.map(r=>B3(n,r))||[]),performed:d(e,i=>i.performed),results:t,results_count:w(async()=>(await t.resolve())?.count||0),sort_by:w(()=>e.sort),sort_options:d(e,i=>i.sort_options),terms:w(()=>e.query),types:["product"]})}function b4(n,e){let t={...e,handle:e.id.replace(/_/g,"-"),title:e.name};return{...t,links:e.items?.map(i=>_3(n,t,i))}}function A4(n,e){return T3(n,e)}function T4(n,e){return G3(n,e)}function r2(n,e){let t=e.currencies.find(i=>i.code===e.currency);return new y({accepts_gift_cards:!0,address:{},brand:{},collections_count:0,currency:e.currency,customer_accounts_enabled:!0,customer_accounts_optional:!0,description:e.description,domain:e.url.replace(/^http[s]?:\/\//,""),email:e.support_email,enabled_currencies:e.currencies.map(i=>({iso_code:i.code,name:i.name,symbol:i.symbol})),enabled_payment_providers:[],id:e.id,metafields:null,metaobjects:null,money_format:t,money_with_currency_format:{...t,symbol:`${e.currency} ${t?.symbol||""}`},name:e.name,password_message:null,permanent_domain:`${e.id}.swell.store`,phone:e.support_phone,published_locales:e.locales.map(i=>({endonym_name:i.name,iso_code:i.code,name:i.name,primary:i.code===e.locale,root_url:e.url})),secure_url:e.url,types:[],url:e.url,vendors:[],policies:[],privacy_policy:null,refund_policy:null,shipping_policy:null,subscription_policy:null,terms_of_service:null,products_count:0})}var Ye=require("liquidjs"),q3=class extends Ye.Drop{#e;constructor(e){switch(super(),typeof e){case"object":{if(e===null){this.#e=new Map;break}this.#e=new Map(e instanceof Map?e:Object.entries(e));break}default:this.#e=new Map;break}}liquidMethodMissing(e){switch(typeof e){case"string":return this.#e.get(e);case"object":{if(e!==null&&"handle"in e){let{handle:t}=e;if(typeof t=="string")return this.#e.get(t)}break}default:break}}};var k3=class{theme;swell;pageId;pageResourceMap;objectResourceMap;formResourceMap;queryParamsMap;shopifyCompatibilityConfig;editorLocaleConfig;constructor(e){this.theme=e,this.swell=e.swell,this.shopifyCompatibilityConfig=this.swell.shopifyCompatibilityConfig??void 0,this.pageResourceMap=this.getPageResourceMap(),this.objectResourceMap=this.getObjectResourceMap(),this.formResourceMap=this.getFormResourceMap(),this.queryParamsMap=this.getQueryParamsMap()}initGlobals(e){let{request:t,page:i}=e;this.pageId=this.getPageType(e.page?.id),e.page={...i||void 0},e.request={...t||void 0,design_mode:this.swell.isEditor,visual_section_preview:!1,page_type:i?.id},e.current_page=this.swell.queryParams.page||1,e.routes=this.getPageRoutes()}adaptGlobals(e,t){if(e.page&&(this.pageId=this.getPageType(e.page.id)),e.request){let i=e.page||t.page;e.request={...e.request||void 0,design_mode:this.swell.isEditor,visual_section_preview:!1,page_type:i.id}}if(e.menus&&(e.linklists=new q3(e.menus)),e.geo&&(e.all_country_option_tags=this.getAllCountryOptionTags(e.geo)),e.store){e.shop=this.getShopData(e.store);let i=e.request||t.request;e.localization=this.getLocalizationObject(e.store,i)}}adaptSettings(e,t){let{current:i,presets:r}=t;if(typeof i=="object"&&i)return{current:L3(e,i),presets:r};let a=r?.[i];if(!a)throw new Error(`Failed to build settings config: "${i}" preset is not defined`);return{current:i,presets:{...r,[i]:L3(e,a)}}}adaptPageData(e){let t=this.pageResourceMap.get(this.pageId||"");if(t)for(let[i,r]of Object.entries(e)){let a=`${i}.`,o=t.resources.find(({from:s})=>s===i||s.startsWith(a));o&&r instanceof T&&(e[o.to]=o.object(this,r))}this.adaptObjectData(e)}adaptObjectData(e){for(let t of Object.values(e)){let i=this.objectResourceMap.get(t?.constructor.name);if(i){let r=i.object(this,t);t instanceof T?t.setCompatibilityProps(r):Object.assign(t,r)}}}adaptQueryParams(){let e={};for(let[t,i]of Object.entries(this.swell.queryParams)){let r=this.queryParamsMap.find(({from:a})=>typeof a=="function"?a(t):a===t);if(r){let a=typeof r.to=="function"?r.to(t,i):{[r.to]:i};Object.assign(e,a)}else e[t]=i}this.swell.queryParams=e}getAdaptedFormType(e){return this.formResourceMap.find(i=>i.shopifyType===e)?.type}async getAdaptedFormClientParams(e,t,i){let r=this.formResourceMap.find(a=>a.type===e);if(r?.clientParams)return r.clientParams(t,i)}async getAdaptedFormClientHtml(e,t,i){let r=this.formResourceMap.find(o=>o.type===e),a=this.shopifyCompatibilityConfig?.forms?.find(o=>o.id===e);if(r&&a)return a.client_params?.reduce((o,s)=>`<input type="hidden" name="${s.name}" value="${s.value}" />`+o,"")}async getAdaptedFormServerParams(e,t){let i=this.formResourceMap.find(r=>r.type===e||r.shopifyType===e);if(typeof i?.serverParams=="function")return i.serverParams(t)}async getAdaptedFormServerResponse(e,t){let i=this.formResourceMap.find(r=>r.type===e||r.shopifyType===e);if(typeof i?.serverResponse=="function")return i.serverResponse(t)}getShopData(e){return e?r2(this,e):{}}getContentForHeader(){return"<script>var Shopify = Shopify || {};</script>"}getMenuData(e){return b4(this,e)}getFontData(e){return A4(this,e)}getFormData(e){return T4(this,e)}getFontFromShopifySetting(e){return Oe(e)}getThemeConfig(e){return Ge(e)}getPresetsConfig(e){return qe(e)}getEditorConfig(e){let{locale:t}=this.swell.getStorefrontLocalization();return Be(e,t)}getSectionConfigSchema(e){let{locale:t}=this.swell.getStorefrontLocalization();return Ve(e,t)}async getLocaleConfig(e,t="en",i=".json"){let r=await e.getThemeConfigsByPath("theme/locales/",i),a=r.get(`theme/locales/${t}${i}`)??null;if(!a){let o=t.split("-")[0];if(a=r.get(`theme/locales/${o}${i}`)??null,!a){let s=`.default${i}`;for(let l of r.values())if(l?.file_path?.endsWith(s)){a=l;break}}}if(a){a=await e.getThemeConfig(a.file_path);try{return JSON.parse(a?.file_data||"")}catch{}}return{}}async getEditorLocaleConfig(e,t){if(this.editorLocaleConfig?.[t])return this.editorLocaleConfig[t];let i=await this.getLocaleConfig(e,t,".schema.json");return this.editorLocaleConfig={[t]:i},i}async renderSchemaTranslations(e,t,i="en"){if(!(0,M4.isObject)(t))return t;let r=await this.getEditorLocaleConfig(e,i);return this.renderSchemaTranslationValue(e,t,i,r)}async renderSchemaTranslationValue(e,t,i,r){switch(typeof t){case"string":{if(t.startsWith("t:")){let a=t.slice(2),o=a?.split("."),s=o.pop()||"",l=o.join(".");return(0,M4.get)(r,l)?.[s]??a}break}case"object":{if(Array.isArray(t)){let a=[];for(let o of t)a.push(await this.renderSchemaTranslationValue(e,o,i,r));return a}if(t!==null){let a={...t};for(let[o,s]of Object.entries(t))a[o]=await this.renderSchemaTranslationValue(e,s,i,r);return a}break}default:break}return t}getPageType(e){return this.shopifyCompatibilityConfig?.page_types?.[e]||e}getPageRouteUrl(e){return this.theme.props.pages?.find(t=>t.id===e)?.url||e}getPageRoutes(){let e={account_addresses_url:this.getPageRouteUrl("account/addresses"),account_login_url:this.getPageRouteUrl("account/login"),account_logout_url:this.getPageRouteUrl("account/logout"),account_recover_url:this.getPageRouteUrl("account/recover"),account_register_url:this.getPageRouteUrl("account/signup"),account_url:this.getPageRouteUrl("account/index"),all_products_collection_url:this.getPageRouteUrl("products/index"),cart_add_url:this.getPageRouteUrl("cart/add"),cart_change_url:this.getPageRouteUrl("cart/change"),cart_clear_url:this.getPageRouteUrl("cart/clear"),cart_update_url:this.getPageRouteUrl("cart/update"),cart_url:this.getPageRouteUrl("cart/index"),collections_url:this.getPageRouteUrl("categories/index"),predictive_search_url:this.getPageRouteUrl("search/suggest"),product_recommendations_url:this.getPageRouteUrl("products/index"),root_url:this.getPageRouteUrl("index"),search_url:this.getPageRouteUrl("search")};if(this.shopifyCompatibilityConfig?.page_routes)for(let[t,i]of Object.entries(this.shopifyCompatibilityConfig.page_routes))i&&typeof i=="object"&&i.page_id?e[t]=this.getPageRouteUrl(i.page_id):typeof i=="string"&&(e[t]=i);return e}getLocalizationObject(e,t){return M3(this,e,t)}getAdaptedPageUrl(e){if(!e)return;let t,i,r={},[a,o]=e.split("?"),s=a.split("."),l=s[1]?s.pop():null,[,c,u,h]=s.join(".").split("/");switch(l==="js"&&(i="json"),c){case"account":switch(u){case"order":t="account/order",r.id=h;break;case"register":t="account/login";break;default:break}break;case"blog":u&&(t="blogs/category",r.category=u),h&&(t="blogs/blog",r.slug=h);break;case"collections":u?u==="all"?t="products/index":(t="categories/category",r.slug=u):t="categories/index";break;case"gift_card":u&&(t="gift-card",r.code=u);break}if(t){let m=this.getPageRouteUrl(t);if(m)return m.replace(/:(\w+)/g,(g,p)=>r[p])+(l?`.${l}`:"")+(o?`?${o}`:"")}else if(i)return a.replace(new RegExp(`.${l}$`),`.${i}`)+(o?`?${o}`:"")}getThemeFilePath(e,t){switch(e){case"assets":return`assets/${t}`;case"components":return`snippets/${t}`;case"config":return`config/${t}`;case"layouts":return`layout/${t}`;case"templates":return`templates/${this.getPageType(t)}`;case"sections":return`sections/${t}`;default:throw new Error(`Theme file type not supported: ${e}`)}}getPageResourceMap(){return this.shopifyCompatibilityConfig?.page_resources?this.shopifyCompatibilityConfig.page_resources.reduce((e,t)=>e.set(t.page,{page:t.page,resources:t.resources.map(({from:i,to:r,object:a})=>{let o=_4[a];if(!o)throw new Error(`ShopifyObject for '${a}' not found.`);return{from:i,to:r,object:o}})}),new Map):new Map}getObjectResourceMap(){return this.shopifyCompatibilityConfig?.object_resources?this.shopifyCompatibilityConfig.object_resources.reduce((e,t)=>{let i=_4[t.object];if(!i)throw new Error(`ShopifyObject for '${t.object}' not found.`);return e.set(t.from,{from:t.from,object:i})},new Map):new Map}getFormResourceMap(){return this.shopifyCompatibilityConfig?.forms?this.shopifyCompatibilityConfig.forms.map(e=>({shopifyType:e.shopify_type,type:e.id})):[]}getQueryParamsMap(){return[{from:"sort_by",to:"sort"},{from(e){return e.startsWith("filter.v.")},to(e,t){let i=e.split("filter.v.")[1],r=t;return{[i]:r}}}]}getAllCountryOptionTags(e){return e?.countries?.map(t=>{if(!t)return;let i=[...(e?.states||[]).filter(a=>a.country===t.id).map(a=>[a.id,a.name])],r=JSON.stringify(i).replace(/"/g,"&quot;");return`<option value="${t.id}" data-provinces="${r}">${t.name}</option>`}).filter(Boolean).join(`
936
+ `)}isScriptFormActionUrl(e){if(!e)return!1;let t=this.shopifyCompatibilityConfig?.editor_configs?.script_actions_routes||{};for(let i of Object.values(t))if(e===i)return!0;return!1}isScriptUrl(e){if(!e)return!1;let t=this.shopifyCompatibilityConfig?.editor_configs?.script_routes||{};for(let i of Object.values(t))if(e.startsWith(i))return!0;return!1}needRedirectToPageStart(e){return e?(this.shopifyCompatibilityConfig?.editor_configs?.redirect_to_page_start_forms||[]).includes(e):!1}isCheckoutForm(e){return e?this.shopifyCompatibilityConfig?.editor_configs?.checkout_form===e:!1}};var o2=100,s2=15,T=class{_getter;_getterHash;_result;_compatibilityProps={};constructor(e){return e&&this._setGetter(e),this._getProxy()}_getProxy(){return new Proxy(this,{get(e,t){let i=e;switch(t){case"toLiquid":case"next":return;case"then":return!1;case"toJSON":case"toObject":return()=>i.toObject();default:break}if(typeof i[t]=="function"||t.startsWith?.("_"))return i[t];if(typeof t=="symbol"&&t===Symbol.toStringTag)return R(i._result)?"[object Promise]":i._result!==void 0?"[object Object]":"undefined";if(i._result===void 0){if(i[t]!==void 0)return i[t];i._result=i._get().catch(r=>(console.log(r),i._getCollectionResultOrProp(i,t)))}return R(i._result)?i._result.then(()=>i._getCollectionResultOrProp(i,t)).catch(r=>(console.log(r),null)):i._getCollectionResultOrProp(i,t)},set(e,t,i){return e[t]=i,!0}})}_getCollectionResultOrProp(e,t){if(e._result&&Array.isArray(e._result.results)){let i=e._result.results.find(r=>r.slug===t||r.id===t)||(typeof t=="number"?e._result.results[t]:void 0);if(i)return i}return t in e._compatibilityProps?e._compatibilityProps[t]:e._result&&t in e._result?e._result[t]:e[t]}async _get(...e){if(this._getter){let t=this._getter.bind(this);return Promise.resolve().then(()=>t()).then(i=>(this._result=i,i&&Object.assign(this,i),i)).catch(i=>(console.log(i),null))}return this._result}_setGetter(e){this._getter=e,this._getterHash=l3(e.toString())}async _resolve(){return this._result===void 0?this._get():this._result}_isResultResolved(){return this._result!==void 0&&!R(this._result)}async resolve(e=!0,t=!1){let i={},r=await this._resolve();return r===null?null:(Object.assign(i,r),Object.assign(i,this._compatibilityProps),I(i,e,t))}toObject(){if(this._result===null)return null;let e={};return Object.assign(e,this._result),Object.assign(e,this._compatibilityProps),e}toJSON(){return this.toObject()}valueOf(){return this.resolve()}setCompatibilityProps(e){this._compatibilityProps=e}getCompatibilityProp(e){return this._compatibilityProps[e]}},E3=class extends T{_swell;_resource;_resourceName;_collection;_query={};_compatibilityInstance=null;constructor(e,t,i){return super(i),this._swell=e,this._collection=t,this._getProxy()}_getProxy(){return super._getProxy()}getResourceObject(){let{_swell:e,_collection:t}=this;if(this._resource=(e?.storefront)[t],e&&t.startsWith("content/")){let i=t.split("/")[1]?.replace(/\/$/,"").trim();this._resource={list:r=>e.storefront.content.list(i,r),get:(r,a)=>e.storefront.content.get(i,r,a)}}if(!this._resource?.get)throw new Error(`Swell storefront resource for collection '${t}' does not exist.`);return this._resource}},b=class n extends E3{length=0;results;count;page;pages;page_count;limit=s2;name;constructor(e,t,i={},r){return super(e,t,r),this._query=this._initQuery(i),r||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_initQuery(e){let t=e||{};return t.limit>o2||t.limit===null?t.limit=o2:t.limit||(t.limit=s2),this.limit=t.limit,t}_defaultGetter(){let e=this.getResourceObject();async function t(){return e.list(this._query)}return t}async _get(e={}){if(this._query={...this._query,...e},this._getter){let t=this._getter;this._result=this._swell.getCachedResource("storefront-list",[this._collection,this._query,this._getterHash],async()=>t.call(this)).then(i=>(this._result=i,i&&Object.assign(this,i,{length:i.results?.length||0}),i)).catch(i=>(console.log(i),null))}return this._result}[Symbol.iterator](){return this.iterator()}*iterator(){for(let e of this.results||[])yield e}_clone(e){let t=new n(this._swell,this._collection,this._query,this._getter);return this._isResultResolved()&&(t._result=(0,a2.cloneDeep)(this._result)),this._compatibilityProps&&t.setCompatibilityProps(this._compatibilityProps),e!==void 0&&(Object.assign(t,e),e._getter&&t._setGetter(e._getter)),t}_cloneWithCompatibilityResult(e){let t=this._getter,i=this._clone({_getter:async()=>{let r=await t?.call(i);if(r){let a=e(r);return{...r,...a||void 0}}return r}});if(this._isResultResolved()){let r=(0,a2.cloneDeep)(this._result);if(r){let a=e(r);Object.assign(i,r),a&&Object.assign(i,a)}}return i}},_=class extends E3{_id;constructor(e,t,i,r={},a){return super(e,t,a),this._id=i,this._query=r,a||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_defaultGetter(){let e=this.getResourceObject();async function t(){return e.get(this._id,this._query)}return t}async _get(e,t={}){this._id=e||this._id;let{currency:i,locale:r}=this._swell.getStorefrontLocalization();if(this._query={...this._query,...t,$currency:i,$locale:r},this._getter){let a=this._getter;this._result=this._swell.getCachedResource("storefront-record",[this._collection,this._id,this._query,this._getterHash],async()=>a.call(this)).then(o=>(this._result=o,o&&Object.assign(this,o),o)).catch(o=>(console.log(o),null))}return this._result}},X=class extends E3{constructor(e,t,i){return super(e,t,i),i||this._setGetter(this._defaultGetter()),this._getProxy()}_getProxy(){return super._getProxy()}_defaultGetter(){let{_collection:e,_swell:{storefrontContext:t}}=this,i=this.getResourceObject();async function r(){return t[e]!==void 0?t[e]:i.get()}return r}async _get(){if(this._getter){let e=this._getter;this._result=Promise.resolve().then(()=>e.call(this)).then(t=>(this._result=t,t&&Object.assign(this,t),t)).catch(t=>(console.log(t),null))}return this._result}},v3=class{_resource;count=0;page=0;page_count=0;limit=0;pages={};next;previous;constructor(e){this._resource=e,this.setPaginationProps()}setPaginationProps(){let{_resource:e}=this;if(this.count=e.count||0,this.page=e.page||0,this.page_count=e.page_count||0,this.limit=e.limit||0,this.pages={},e.pages)for(let[r,a]of Object.entries(e.pages))this.pages[r]={start:a.start,end:a.end,url:this.getPageUrl(Number(r))};let t=this.pages[this.page+1];this.next=t?{start:t.start,end:t.end,url:this.getPageUrl(this.page+1)}:void 0;let i=this.pages[this.page-1];this.previous=i?{start:i.start,end:i.end,url:this.getPageUrl(this.page-1)}:void 0}getPageUrl(e){let{url:t,queryParams:i}=this._resource._swell;return`${t.pathname}?${O({...i,page:e})}`}setCompatibilityProps(e){Object.assign(this,e)}};function l3(n){var e="0123456789abcdef";function t(L){var k,M="";for(k=0;k<=3;k++)M+=e.charAt(L>>k*8+4&15)+e.charAt(L>>k*8&15);return M}function i(L,k){var M=(L&65535)+(k&65535),E=(L>>16)+(k>>16)+(M>>16);return E<<16|M&65535}function r(L,k){return L<<k|L>>>32-k}function a(L,k,M,E,B,G){return i(r(i(i(k,L),i(E,G)),B),M)}function o(L,k,M,E,B,G,t3){return a(k&M|~k&E,L,k,B,G,t3)}function s(L,k,M,E,B,G,t3){return a(k&E|M&~E,L,k,B,G,t3)}function l(L,k,M,E,B,G,t3){return a(k^M^E,L,k,B,G,t3)}function c(L,k,M,E,B,G,t3){return a(M^(k|~E),L,k,B,G,t3)}function u(L){var k,M=(L.length+8>>6)+1,E=new Array(M*16);for(k=0;k<M*16;k++)E[k]=0;for(k=0;k<L.length;k++)E[k>>2]|=L.charCodeAt(k)<<k%4*8;return E[k>>2]|=128<<k%4*8,E[M*16-2]=L.length*8,E}var h,m=u(""+n),C=1732584193,g=-271733879,p=-1732584194,f=271733878,Z,m3,z3,y2;for(h=0;h<m.length;h+=16)Z=C,m3=g,z3=p,y2=f,C=o(C,g,p,f,m[h+0],7,-680876936),f=o(f,C,g,p,m[h+1],12,-389564586),p=o(p,f,C,g,m[h+2],17,606105819),g=o(g,p,f,C,m[h+3],22,-1044525330),C=o(C,g,p,f,m[h+4],7,-176418897),f=o(f,C,g,p,m[h+5],12,1200080426),p=o(p,f,C,g,m[h+6],17,-1473231341),g=o(g,p,f,C,m[h+7],22,-45705983),C=o(C,g,p,f,m[h+8],7,1770035416),f=o(f,C,g,p,m[h+9],12,-1958414417),p=o(p,f,C,g,m[h+10],17,-42063),g=o(g,p,f,C,m[h+11],22,-1990404162),C=o(C,g,p,f,m[h+12],7,1804603682),f=o(f,C,g,p,m[h+13],12,-40341101),p=o(p,f,C,g,m[h+14],17,-1502002290),g=o(g,p,f,C,m[h+15],22,1236535329),C=s(C,g,p,f,m[h+1],5,-165796510),f=s(f,C,g,p,m[h+6],9,-1069501632),p=s(p,f,C,g,m[h+11],14,643717713),g=s(g,p,f,C,m[h+0],20,-373897302),C=s(C,g,p,f,m[h+5],5,-701558691),f=s(f,C,g,p,m[h+10],9,38016083),p=s(p,f,C,g,m[h+15],14,-660478335),g=s(g,p,f,C,m[h+4],20,-405537848),C=s(C,g,p,f,m[h+9],5,568446438),f=s(f,C,g,p,m[h+14],9,-1019803690),p=s(p,f,C,g,m[h+3],14,-187363961),g=s(g,p,f,C,m[h+8],20,1163531501),C=s(C,g,p,f,m[h+13],5,-1444681467),f=s(f,C,g,p,m[h+2],9,-51403784),p=s(p,f,C,g,m[h+7],14,1735328473),g=s(g,p,f,C,m[h+12],20,-1926607734),C=l(C,g,p,f,m[h+5],4,-378558),f=l(f,C,g,p,m[h+8],11,-2022574463),p=l(p,f,C,g,m[h+11],16,1839030562),g=l(g,p,f,C,m[h+14],23,-35309556),C=l(C,g,p,f,m[h+1],4,-1530992060),f=l(f,C,g,p,m[h+4],11,1272893353),p=l(p,f,C,g,m[h+7],16,-155497632),g=l(g,p,f,C,m[h+10],23,-1094730640),C=l(C,g,p,f,m[h+13],4,681279174),f=l(f,C,g,p,m[h+0],11,-358537222),p=l(p,f,C,g,m[h+3],16,-722521979),g=l(g,p,f,C,m[h+6],23,76029189),C=l(C,g,p,f,m[h+9],4,-640364487),f=l(f,C,g,p,m[h+12],11,-421815835),p=l(p,f,C,g,m[h+15],16,530742520),g=l(g,p,f,C,m[h+2],23,-995338651),C=c(C,g,p,f,m[h+0],6,-198630844),f=c(f,C,g,p,m[h+7],10,1126891415),p=c(p,f,C,g,m[h+14],15,-1416354905),g=c(g,p,f,C,m[h+5],21,-57434055),C=c(C,g,p,f,m[h+12],6,1700485571),f=c(f,C,g,p,m[h+3],10,-1894986606),p=c(p,f,C,g,m[h+10],15,-1051523),g=c(g,p,f,C,m[h+1],21,-2054922799),C=c(C,g,p,f,m[h+8],6,1873313359),f=c(f,C,g,p,m[h+15],10,-30611744),p=c(p,f,C,g,m[h+6],15,-1560198380),g=c(g,p,f,C,m[h+13],21,1309151649),C=c(C,g,p,f,m[h+4],6,-145523070),f=c(f,C,g,p,m[h+11],10,-1120210379),p=c(p,f,C,g,m[h+2],15,718787259),g=c(g,p,f,C,m[h+9],21,-343485551),C=i(C,Z),g=i(g,m3),p=i(p,z3),f=i(f,y2);return t(C)+t(g)+t(p)+t(f)}function Y1(n,e){if(!n.file_path.startsWith("theme/sections/"))return!1;if(n.file_path.endsWith(".liquid")){if(!e.get(n.file_path.replace(/\.liquid$/,".json")))return!0}else if(n.file_path.endsWith(".json"))return!0;return!1}async function Q5(n,e){let t=[];for(let i of n.values())if(Y1(i,n)){let r=await e(i);r&&t.push({...r,id:String(i.name||"").split(".").pop()??"",...r&&{presets:Q1(r)}})}return t}function Q1(n){return Array.isArray(n?.presets)?n.presets.map(e=>({label:e.label,settings:{...n.fields?.reduce((t,i)=>(i.id&&i.default!==void 0&&(t[i.id]=i.default),t),{}),...e.settings||void 0},blocks:e.blocks?.map(t=>{let i=n.blocks?.find(r=>r.type===t.type);return i?{...t,settings:{...i.fields.reduce((r,a)=>(a.id&&a.default!==void 0&&(r[a.id]=a.default),r),{}),...t.settings||void 0}}:t})})):[]}async function X5(n,e){let t=Array.from(n.values()),i=t.filter(o=>o.file_path.endsWith(".json")&&!n.has(o.file_path.replace(/\.json$/,".liquid"))),r=async o=>{let s=t.find(c=>{if(!c.file_path.endsWith(`/${o}.json`)&&!c.file_path.endsWith(`/${o}.liquid`))return!1;if(c.file_path.endsWith(".liquid")){if(!n.get(c.file_path.replace(/\.liquid$/,".json")))return!0}else if(c.file_path.endsWith(".json"))return!0;return!1});return s?{...await e(s),id:String(s.name||"").split(".").pop()}:void 0},a=[];for(let o of i){let s;try{s=JSON.parse(o.file_data),s?.name&&(s.label=s.name,delete s.name)}catch{}if(s?.type){let l=await m4(s,r);a.push({...s,id:String(o.name||"").split(".").pop(),sectionConfigs:l})}}return a}async function m4(n,e){let t=Array.isArray(n?.order)?n.order:Object.keys(n?.sections||{}),i=[];for(let r of t){let a=n.sections[r];if(!a)continue;let o=await e(a.type)||{id:a.type,label:a.type,tag:"div",class:"",fields:[],blocks:[]},s=n.id?`page__${n.id}__${r}`:o.id,c=(Array.isArray(a.block_order)?a.block_order:Object.keys(a.blocks||{})).map(h=>a.blocks?.[h]).filter(Boolean),u={section:{id:s,...a,blocks:c}};i.push({id:s,section:{id:s,...a},schema:o,settings:u,tag:o.tag||"div",class:o.class})}return i}function X1(n){return String(n)==="[object Array]"}function e3(n){let e=typeof n;return n!==null&&(e==="object"||e==="function")}function l2(n){let e=new TextEncoder().encode(n),t="";for(let i=0;i<e.length;i+=3){let r=Array.from(e.slice(i,i+3));t+=btoa(String.fromCharCode(...r))}return t}function K5(n,e="id"){return(0,E4.reduce)(n,(t,i)=>(t[String(i[e])]=i,t),{})}function e6(n){let e=n.toUpperCase().split(/-|_/),t=e.shift(),i=e.pop(),r="";return i&&(r=i),i||(r=G4[t.toLowerCase()]||""),r.toLowerCase()}function h2(n,e){if(!(typeof n!="object"||n===null))for(let[t,i]of Object.entries(n))e(t,n)!==!1&&typeof i=="object"&&i!==null&&h2(i,e)}function t6(n){let e=new Set;return h2(n,(t,i)=>{if(typeof i=="object"&&i!==null){if(e.has(i))return!1;e.add(i)}return!0}),Array.from(e)}function i6(n){if(!n)return n;let e=new WeakSet;return JSON.parse(JSON.stringify(n,(t,i)=>{if(typeof i=="object"&&i!==null){if(e.has(i))return JSON.parse(JSON.stringify(i));e.add(i)}return i}))}function et(n){if(!(typeof n!="object"||n===null))for(let[e,t]of Object.entries(n))e==="_swell"&&"_swell"in n?n[e]=void 0:et(t)}function Qe(n){if(n!==void 0)return n instanceof b?"SwellStorefrontCollection":n instanceof _?"SwellStorefrontRecord":n instanceof y?"ShopifyResource":n instanceof T?"StorefrontResource":"promise"}async function I(n,e=!0,t=!1){let i=n,r=e;try{if(R(n)&&(r=!1,i=await n),n instanceof T&&(r=!1,i=await I(n.resolve(),e,t)),Array.isArray(i)){let a=await Promise.all(i.map(o=>I(o,e,t)));if(i=a,!a.some(o=>o!==void 0))return e?[]:void 0}else if(typeof i=="object"&&i!==null&&(!("_swell"in i)||!i._swell)){let a={};for(let[o,s]of Object.entries(i)){if(!e&&(R(s)||s instanceof T||s instanceof y)){a[o]={_type:Qe(s),...t?{value:await I(s,r,t)}:void 0};continue}if(s instanceof T&&t){a[o]={_type:Qe(s),value:await I(s,r,t)};continue}a[o]=await I(s,r,t)}return!e&&Object.keys(a).length===0?void 0:a}}catch(a){return console.error(a),n}return i}function O(n){return Xe.default.stringify({...n,sections:void 0,section_id:void 0},{encodeValuesOnly:!0,arrayFormat:"repeat"})}function e2(n,e){return n=Array.isArray(n)?n.join(" "):n,n.split("}").map(r=>{let[a,o]=r.split("{");return!a||!o?"":`${a.split(",").map(l=>`#${e} ${l.trim()}`).join(", ")} {${o}}`}).join(" ")}function L3(n,e){return Object.entries(n).reduce((t,[i,r])=>(r?.value!==null&&r?.value!==void 0&&(t[i]=r?.value),t),(0,E4.cloneDeep)(e))}var H3="ContentSections";function c3(n){return`SectionGroup_${n}`}var n6="THEME",r6=Object.freeze({ttl:1e3*60*60*24}),tt="__NULL__",U=class{client;constructor(e){e=e||{},e.stores=e.stores||a6(e.kvStore),this.client=(0,it.createCache)({...r6,...e})}async fetch(e,t){return this.client.wrap(e,t)}async fetchSWR(e,t){let i=await this.client.get(e),r=Promise.resolve().then(()=>t()).then(async o=>{let s=o==null,l=await I(o);return await this.client.set(e,s?tt:l),o});return i!==null?i===tt?null:i:await r}async get(e){return this.client.get(e)}async set(e,t,i){return this.client.set(e,t,i)}async flush(e){await this.client.del(e)}async flushAll(){await this.client.clear()}};function a6(n){let e=[];return n?e.push(new d2.Keyv({namespace:n6,store:new J3(n)})):e.push(new d2.Keyv),e}var o6=24*60*60*1e3,s6=30*1e3,V3=class extends U{constructor(e){super({ttl:e?.kvStore?o6:s6,...e})}};var nt=require("keyv");var l6=5*1e3,O3=class extends U{constructor(e){super({stores:h6(),ttl:l6,...e})}};function h6(){return[new nt.Keyv({serialize:void 0,deserialize:void 0})]}var d6=90*24*60*60*1e3,Z3=class extends U{constructor(e){super({ttl:d6,...e})}};var rt="https://api.schema.io",at=new Map,ot=new Map,c2=class n{url;headers;swellHeaders;queryParams;workerEnv;config;shopifyCompatibilityConfig;backend;storefront;storefrontContext;instanceId="";isPreview=!1;isEditor=!1;sentResponse=!1;storefront_url;constructor(e){let{url:t,config:i,shopifyCompatibilityConfig:r,headers:a,swellHeaders:o,serverHeaders:s,queryParams:l,workerEnv:c,...u}=e;if(this.url=t instanceof URL?t:new URL(t||""),this.config=i,this.shopifyCompatibilityConfig=r,this.queryParams=n.formatQueryParams(l||this.url.searchParams),this.workerEnv=c,console.log(`KV cache: ${this.workerEnv?.THEME?"enabled":"disabled"}`),s){let{headers:h,swellHeaders:m}=n.formatHeaders(s);this.headers=h,this.swellHeaders=m,this.backend=new P4({storeId:m["store-id"],accessToken:m["access-token"],apiHost:m["api-host"]}),this.storefront=this.getStorefrontInstance({...e,headers:h,swellHeaders:m}),this.instanceId=["store-id","environment-id","deployment-mode","theme-id","theme-branch-id"].map(C=>m[C]||"0").join(":"),this.isEditor=u.isEditor??m["deployment-mode"]==="editor",this.isPreview=this.isEditor||m["deployment-mode"]==="preview"}else if(a&&o)Object.assign(this,u),this.headers=a,this.swellHeaders=o,this.storefront=this.getStorefrontInstance(e);else throw new Error("Swell client requires `serverHeaders` when initialized on the server-side, or `headers` and `swellHeaders` when initialized on the client-side.");this.storefrontContext=this.initStorefrontContext()}static formatHeaders(e){let t={},i={};e instanceof Headers?e.forEach((r,a)=>{t[a]=r}):e&&(t=e);for(let[r,a]of Object.entries(t))r.startsWith("swell-")&&a&&(i[r.replace("swell-","")]=a);return{headers:t,swellHeaders:i}}static formatQueryParams(e){let t={};return e instanceof URLSearchParams?t=ht.default.parse(e.toString()):e&&(t=e),t}async getCachedResource(e,t,i){let r=this.swellHeaders["request-id"],a=st(e,[r,t]);return this.getResourceCache().fetch(a,i)}async getAppSettings(){return await this.get("/:storefronts/{id}/configs/settings/values",{id:this.swellHeaders["storefront-id"]})||{}}async getStorefrontSettings(e=!1){try{let{settings:t,menus:i,payments:r,subscriptions:a,session:o}=await this.storefront.request("get","/settings/all",void 0,void 0,{force:e}),s=this.storefront.settings;s.localizedState={},s.set({value:t}),s.set({model:"menus",value:i}),s.set({model:"payments",value:r}),s.set({model:"subscriptions",value:a}),s.set({model:"session",value:o})}catch(t){t instanceof Error&&(t.message=`Swell: unable to load settings (${t.message})`),console.error(t)}return this.storefront.settings.get()}getStorefrontMenus(){let e=this.storefront.settings.getState("/settings/menus","menuState");return!e||R(e)?[]:e}getStorefrontLocalization(){let e=this.storefront.locale.selected(),t=this.storefront.currency.selected();return!e||R(e)?{locale:"en-US",currency:"USD"}:{locale:e,currency:t}}async get(...e){return this.backend?.get(...e)}async put(...e){return this.backend?.put(...e)}async post(...e){return this.backend?.post(...e)}async delete(...e){return this.backend?.delete(...e)}getStorefrontInstance(e){let{swellHeaders:t,getCookie:i,setCookie:r,storefrontSettingStates:a}=e;if(!t)throw new Error("Swell headers are required");let o=t["store-id"],s=t["public-key"];if(!o||!s)throw new Error('Missing required headers: "swell-store-id" and "swell-public-key"');let l=lt.default.create(o,s,{url:t["admin-url"],vaultUrl:t["vault-url"],getCookie:i,setCookie:r&&((c,u,h)=>r(c,u,h,this)),headers:{"Swell-Store-id":o,"Swell-Storefront-Id":t["storefront-id"]}});return a&&Object.assign(l.settings,a),l.request=this.getCacheableStorefrontRequestHandler(l),l}initStorefrontContext(){let e={};if(this.swellHeaders?.["storefront-context"])try{e=JSON.parse(this.swellHeaders["storefront-context"])}catch{console.error("Failed to parse swell-storefront-context. Ignoring...")}return e}isStorefrontRequestCacheable(e,t,i){if(i?.force)return!1;if(e==="get")switch(t.split("/")[1]){case"products":case"categories":case"content":case"settings":return!0;default:return!1}return!1}getCacheableStorefrontRequestHandler(e){let t=e.request;return(i,r,a,o,s)=>{if(this.isStorefrontRequestCacheable(i,r,s))return this.getRequestCache().fetchSWR(st("request",[i,r,a,o,s]),()=>t(i,r,a,o,s));switch(i){case"delete":case"post":case"put":{let l=r.split("/")[1];delete this.storefrontContext[l];break}default:}return t(i,r,a,o,s)}}getResourceCache(){let e=at.get(this.instanceId);return e||(e=new O3({kvStore:this.workerEnv?.THEME}),at.set(this.instanceId,e)),e}getRequestCache(){let e=ot.get(this.instanceId);return e||(e=new V3({kvStore:this.workerEnv?.THEME}),ot.set(this.instanceId,e)),e}};function st(n,e){let t=n;return Array.isArray(e)&&e.length>0&&(t+=`_${JSON.stringify(e)}`),t.length>512&&(t=`${t.slice(0,480)}${l3(t)}`),t}var P4=class{apiHost=rt;apiAuth="";constructor({storeId:e,accessToken:t,apiHost:i}){this.apiHost=i||rt,this.apiAuth=l2(`${e}:${t}`)}async makeRequest(e,t,i){let r={method:e,headers:{Authorization:`Basic ${this.apiAuth}`,"User-Agent":"swell-functions/1.0","Content-Type":"application/json"}},a="";if(i)try{e==="GET"?a=`?${this.stringifyQuery(i)}`:(r.body=JSON.stringify(i),r.headers["Content-Length"]=String(r.body.length))}catch{throw new Error(`Error serializing data: ${i}`)}let o=String(t).startsWith("/")?t.substring(1):t,s=`${this.apiHost}/${o}${a}`,l=await fetch(s,r),c=await l.text(),u;try{u=JSON.parse(c)}catch{u=String(c||"").trim()}if(l.status>299)throw new U3(u,{status:l.status,method:e,endpointUrl:o});if(e!=="GET"&&u?.errors)throw new U3(u.errors,{status:400,method:e,endpointUrl:o});return u}stringifyQuery(e,t){let i=[];for(let[r,a]of Object.entries(e)){let o=t?`${t}[${r}]`:r,l=a!==null&&typeof a=="object"?this.stringifyQuery(a,o):`${encodeURIComponent(o)}=${a===null?"":encodeURIComponent(a)}`;i.push(l)}return i.join("&")}async get(e,t){return this.makeRequest("GET",e,t)}async put(e,t){return this.makeRequest("PUT",e,t)}async post(e,t){return this.makeRequest("POST",e,t)}async delete(e,t){return this.makeRequest("DELETE",e,t)}},U3=class extends Error{status=200;constructor(e,t={}){let i;typeof e=="string"?i=e:i=JSON.stringify(e,null,2),t.method&&t.endpointUrl&&(i=`${t.method} /${t.endpointUrl}
937
+ ${i}`),super(i),this.name="SwellError",this.status=t.status||500}};function u2(n,e){return new b(n,"products",e)}function c6(n,e,t){return new _(n,"products",e,t)}function u6(n,{search:e,filter:t,sort:i}){return new b(n,"products",{search:e,filter:t,sort:i})}function m6(n,e){return new b(n,"categories",e)}function dt(n,e,t){return new _(n,"categories",e,t)}async function C6(n,e,t){let i=dt(n,e,t),r=await i.id;return i.products=u2(n,{category:r}),i}function p6(n,e){return n.getCachedResource(`content-model-${e}`,[],()=>n.get("/:content/{name}",{name:e,public:!0,"storefront.enabled":!0}))}async function ct(n,e,t){return new b(n,`content/${e}`,t)}async function m2(n,e,t,i){return new _(n,`content/${e}`,t,i)}async function g6(n,e,t){return m2(n,"pages",e,t)}async function f6(n,e){return ct(n,"blogs",e)}async function w6(n,e,t){return m2(n,"blogs",e,t)}var $=require("lodash-es");async function ut(n,e){let t=[];for(let i of e)if(S6(i,e)){let r=await p2(n,i);r&&t.push({...r,id:String(i.name||"").split(".").pop()})}return t}async function C2(n,e,t=y6){let i=Array.isArray(e.order)?e.order:Object.keys(e.sections||{}),r=[];for(let a of i){let o=e.sections[a],s=await t(n,o.type);if(!s)continue;let l={...s,id:a},c=e.id?`page__${e.id}__${a}`:l.id,h=(Array.isArray(o.block_order)?o.block_order:Object.keys(o.blocks||{})).map(C=>o.blocks?.[C]).filter(Boolean),m={section:{id:c,...o,blocks:h}};r.push({id:c,settings:m,section:{id:c,...o},tag:l.tag||"div",class:l.class,schema:l})}return r}async function mt(n,e){let t=e.filter(a=>k6(a,e)),i=async(a,o)=>{let s=e.find(c=>L6(c,e,o)),l=await p2(a,s);if(l)return{...l,id:String(s?.name||"").split(".").pop()}},r=[];for(let a of t){let o;try{o=JSON.parse(a.file_data),o?.name&&(o.label=o.name,delete o.name)}catch{}if(o?.type){let s=await C2(n,o,i);r.push({...o,id:String(a.name||"").split(".").pop(),sectionConfigs:s})}}return r}async function y6(n,e){let t=await n.getThemeTemplateConfigByType("sections",e);return p2(n,t)}async function p2(n,e){let t;if(e?.file_path?.endsWith(".liquid")){if(n.shopifyCompatibility){n.liquidSwell.lastSchema=void 0,await n.renderTemplate(e);let i=n.liquidSwell.lastSchema;i&&(t=n.shopifyCompatibility.getSectionConfigSchema(i))}}else if(e?.file_data)try{t=JSON.parse(e?.file_data)||void 0}catch{}return t}function S6(n,e){return n.file_path.startsWith("theme/sections/")?Ct(n,e):!1}function k6(n,e){if(!n.file_path.startsWith("theme/sections/")||!n.file_path.endsWith(".json"))return!1;let t=n.file_path.replace(/\.json$/,".liquid");return!e.some(i=>i.file_path===t)}function L6(n,e,t){return!n.file_path.endsWith(`/${t}.json`)&&!n.file_path.endsWith(`/${t}.liquid`)?!1:Ct(n,e)}function Ct(n,e){if(n.file_path.endsWith(".liquid")){let t=n.file_path.replace(/\.liquid$/,".json");if(!e.find(r=>r.file_path===t))return!0}else if(n.file_path.endsWith(".json"))return!0;return!1}function $3(n){let e={description:n.description,defaultValue:n.default,isLabelHidden:!0,layout:"column",params:n},t;switch(n?.type){case"text":case"short_text":t={type:"swell_short_text"};break;case"paragraph":t={type:"swell_paragraph"};break;case"textarea":case"long_text":case"liquid":t={type:"swell_long_text"};break;case"basic_html":case"rich_text":case"rich_html":case"markdown":t={type:"swell_editor"};break;case"number":t={type:"swell_number"};break;case"select":t={type:"swell_select"};break;case"radio":t={type:"swell_radio"};break;case"checkbox":t={type:"swell_boolean"};break;case"color":t={type:"swell_color"};break;case"color_scheme":t={type:"swell_color_scheme"};break;case"color_scheme_group":t={type:"swell_color_scheme_group"};break;case"font":t={type:"swell_font"};break;case"header":t={type:"swell_header"};break;case"icon":t={type:"swell_menu"};break;case"menu":t={type:"swell_menu"};break;case"url":t={type:"swell_url"};break;case"lookup":case"generic_lookup":case"product_lookup":case"category_lookup":case"customer_lookup":t={type:"swell_lookup"};break;case"image":t={type:"swell_image",defaultValue:""};break;case"asset":case"document":case"video":t={type:"swell_file"};break;default:t={type:"swell_short_text"};break}return{...e,...t}}function H(n,e,t){if(t===void 0)return null;switch(n?.find(r=>r.id===e)?.type){default:return t}}function pt(n,e){return e?.reduce((t,i)=>{for(let r of i.fields||[])r?.id&&(t[r.id]=n[r.id]);return t},{})}function gt(n,e){if(e)return{settings:e.fields.reduce((t,i)=>(i?.id&&(t[i.id]=n[i.id]),t),{$locale:n.$locale}),id:e.id,blocks:n.Blocks?.filter(t=>!!t.props.compiled?._component).map(t=>{let i=t.props.compiled.props,r=t.props.compiled._component.split("__")[2],a=e.blocks?.find(o=>o.type===r);return{type:r,settings:a?.fields?.reduce((o,s)=>(s?.id&&(o[s.id]=i[s.id]),o),{$locale:i.$locale})||{}}})}}var v4=!0;async function b6(n,e,t){let i=await wt(n,t),r=await ut(n,e),a=await C2(n,i),o=await mt(n,e);return{pageTemplate:i,allSections:r,pageSections:a,layoutSectionGroups:o}}async function wt(n,e){let t=null;if(t=await n.getThemeTemplateConfigByType("templates",e),t)return t.file_path.endsWith(".liquid")?t.file_data:JSON.parse(t.file_data)}function A6(n,e){return n.reduce((t,i)=>(i.enabled_on?R4(i.enabled_on,"groups",e)&&t.push(String(i.id)):i.disabled_on?R4(i.disabled_on,"groups",e)||t.push(String(i.id)):i.id===e&&t.push(String(i.id)),t),[])}function T6(n,e){return e.map(t=>({prop:c3(t.id),type:"component-collection",label:t.label,required:!0,noInline:v4,accepts:A6(n,t.type)}))}function R4(n,e,t){return!!(n.templates==="*"||n[e]?.includes(t))}function _6(n,e,t){return n.reduce((i,r)=>(r.enabled_on?R4(r.enabled_on,"templates",t)&&i.push(String(r.id)):r.disabled_on?R4(r.disabled_on,"templates",t)||i.push(String(r.id)):e.some(({type:a})=>a===r.id)||i.push(String(r.id)),i),[])}function M6(n){return(n?.configs?.editor?.settings??[]).reduce((e,t)=>{for(let i of t.fields||[])e.push({prop:i.id,label:i.label,optional:!0,group:t.label,...$3(i)});return e},[])}function E6(n){let e=[];for(let t of n){let i=Array.isArray(t.blocks)&&t.blocks.length>0;e.push({id:t.id,label:t.label,schema:[...(t.fields||[]).reduce((r,a)=>(a.id&&a.type&&r.push({prop:a.id,label:a.label,optional:!0,...$3(a)}),r),[]),...i?[{prop:"Blocks",type:"component-collection",required:!0,noInline:v4,accepts:(t.blocks||[]).map(r=>`Block__${t.id}__${r.type}`),defaultValue:t.presets?.reduce((r,a,o)=>a.blocks?a.blocks.reduce((s,l)=>{let c=t.blocks?.find(({type:u})=>u===l.type);return c&&s.push({_id:`Block__${t.id}__${l.type}__preset_${o}`,_component:`Block__${t.id}__${l.type}`,...(0,$.reduce)(c.fields,(u,h)=>(h.id&&(u[h.id]=H(c.fields,h.id,h.default)),u),{})}),s},r):r,[]),placeholderAppearance:{height:50,label:"Add block",aspectRatio:1}}]:[],{prop:"custom_css",type:"swell_css",label:"Custom CSS",description:"Add custom CSS for this section",layout:"column",isLabelHidden:!0,params:{rows:5,placeholder:"Enter custom CSS..."}},{prop:"$locale",type:"swell_locale",isLabelHidden:!0}],styles:()=>({styled:{Root:{}}})}),i&&e.push(...(t.blocks||[]).map(r=>({id:`Block__${t.id}__${r.type}`,label:r.label,schema:(r.fields||[]).reduce((a,o)=>(o.id&&o.type&&a.push({prop:o.id,label:o.label,optional:!0,...$3(o)}),a),[{prop:"$locale",type:"swell_locale",isLabelHidden:!0}]),styles:()=>({styled:{Root:{}}})})))}return e}function P6(n){return n?.configs?.editor?.settings?.reduce((e,t)=>{for(let i of t.fields||[])i?.id&&(e[i.id]=H(t.fields,i.id,n?.configs?.theme?.[i.id]));return e},{})}function v6(n){return n.reduce((e,t)=>(e[c3(t.id)]=t.sectionConfigs.map(({section:i,settings:r,schema:a})=>({_id:`SectionGroup__${i.type}_${ft()}`,_component:`${i.type}`,...(0,$.reduce)(r?.section.settings,(o,s,l)=>(o[l]=H(a?.fields,l,s),o),{}),custom_css:r?.section.custom_css||"",...r?.section.blocks?{Blocks:r.section.blocks.map(o=>({_id:`Block__${i.type}__${o.type}_${ft()}`,_component:`Block__${i.type}__${o.type}`,...(0,$.reduce)(o.settings,(s,l,c)=>(s[c]=H(a?.blocks?.find(({type:u})=>u===o.type)?.fields,c,l),s),{})}))}:void 0})),e),{})}function R6(n){return(n||"").replaceAll("/","_")}function D6(n){let e=[];for(let t of n)t.presets&&e.push(...t.presets.map((i,r)=>({id:`${t.id}__preset_${r}`,entry:{_id:`${t.id}__preset_${r}`,_component:t.id,custom_css:i.settings?.custom_css||"",...(0,$.reduce)(t.fields,(a,o)=>(o.id&&(a[o.id]=H(t.fields,o.id,i.settings?.[o.id])),a),{}),Blocks:i.blocks?.reduce((a,o)=>{let s=t.blocks?.find(({type:l})=>l===o.type);return s&&a.push({_id:`Block__${t.id}__${o.type}__preset_${r}`,_component:`Block__${t.id}__${o.type}`,...(0,$.reduce)(s.fields,(l,c)=>(c.id&&(l[c.id]=H(s.fields,c.id,o.settings?.[c.id])),l),{})}),a},[])}}))),t.blocks&&e.push(...t.blocks.map(i=>({id:`Block__${t.id}__${i.type}`,entry:{_id:`Block__${t.id}__${i.type}`,_component:`Block__${t.id}__${i.type}`,...(0,$.reduce)(i.fields,(r,a)=>(a.id&&a.default!==void 0&&(r[a.id]=H(i.fields,a.id,a.default)),r),{})}})));return e.filter(t=>Object.keys(t.entry).some(i=>i!=="_id"&&i!=="_component"))}function x6(n,e,t,i,r){let a={id:"swell_global",label:"Theme settings",schema:[{prop:"swell_page",type:"component",required:!0,accepts:["swell_page"],isNonChangable:!0,noInline:v4},{prop:"$locale",type:"swell_locale",isLabelHidden:!0},...M6(n)],groups:(n?.configs?.editor?.settings??[]).map(u=>({key:u.label,label:u.label,collapsable:!0,collapsed:!0})),styles:()=>({styled:{Root:{}}})},o={id:"swell_page",label:"Page settings",schema:[{prop:H3,type:"component-collection",required:!0,noInline:v4,accepts:_6(e,i,r),placeholderAppearance:{height:250,label:"Add section",aspectRatio:1}},...T6(e,i)],allowSave:!0,styles:()=>({styled:{Root:{}}})},s=[a,o,...E6(e)],l=a.schema.find(u=>u.prop==="color_schemes");if(l){let u=l.params,{fields:h=[]}=u;s.push({id:"swell_color_scheme_group",label:"Swell color scheme",schema:h.map(m=>({prop:m.id,label:m.label,optional:!0,...$3({...m,type:m.id==="background_gradient"?"text":m.type})})),styles(){return{styled:{Root:{}}}}})}let c=[{id:"swell_global",entry:{_id:"swell_global",_component:"swell_global",...P6(n),$locale:n?.configs?.theme?.$locale,swell_page:[{_id:"swell_page",_component:"swell_page",ContentSections:t.map(({section:u,settings:h,schema:m})=>({_id:R6(u.id),_component:`${u.type}`,custom_css:h?.section?.custom_css||"",disabled:h?.section?.disabled||!1,$locale:h?.section?.settings?.$locale,...(0,$.reduce)(m?.fields,(C,g)=>(g?.id&&(C[g.id]=H(m?.fields,g.id,h?.section?.settings?.[g.id])),C),{}),...u?.blocks?{Blocks:Object.entries(u.blocks).map(([C,g])=>({_id:`Block__${C}__${g.type}_${Math.random()}`,_component:`Block__${u.type}__${g.type}`,disabled:g.disabled||!1,...(0,$.reduce)(g.settings,(p,f,Z)=>(p[Z]=H(m?.blocks?.find(({type:m3})=>m3===g.type)?.fields,Z,f),p),{})}))}:void 0})),...v6(i)}]}},{id:"swell_page",entry:{_id:"swell_page",_component:"swell_page"}},...D6(e)];return{easyblocksConfig:{components:s,templates:c,backend:yt(),hideCloseButton:!0,allowSave:!0,readOnly:!1,locales:[{code:"en-US",isDefault:!0}],types:{swell_css:{type:"inline",widget:{id:"SwellCSS"}},swell_locale:{type:"inline",widget:{id:"SwellLocale"}},swell_boolean:{type:"inline",widget:{id:"SwellBoolean"}},swell_color:{type:"inline",widget:{id:"SwellColor"}},swell_color_scheme:{type:"inline",widget:{id:"SwellColorScheme"}},swell_color_scheme_group:{type:"inline",widget:{id:"SwellColorSchemeGroup"}},swell_font:{type:"inline",widget:{id:"SwellFont"}},swell_header:{type:"inline",widget:{id:"SwellHeader"}},swell_icon:{type:"inline",widget:{id:"SwellIcon"}},swell_lookup:{type:"inline",widget:{id:"SwellLookup"}},swell_menu:{type:"inline",widget:{id:"SwellMenu"}},swell_url:{type:"inline",widget:{id:"SwellUrl"}},swell_number:{type:"inline",widget:{id:"SwellNumber"}},swell_select:{type:"inline",widget:{id:"SwellSelect"}},swell_radio:{type:"inline",widget:{id:"SwellRadio"}},swell_short_text:{type:"inline",widget:{id:"SwellText"}},swell_long_text:{type:"inline",widget:{id:"SwellTextarea"}},swell_paragraph:{type:"inline",widget:{id:"SwellParagraph"}},swell_editor:{type:"inline",widget:{id:"SwellEditor"}},swell_file:{type:"inline",widget:{id:"SwellFile"}},swell_image:{type:"inline",widget:{id:"SwellImage"}}},tokens:{colors:[],fonts:[]}}}}function j6(n,e,t){let i=n.reduce((o,s)=>(o[`${s.id}`]=t("pageSection",s),o),{}),r=e.reduce((o,s)=>(o[c3(s.id)]=t("layoutSectionGroup",s),o),{}),a=n.reduce((o,s)=>{if(s.blocks)for(let l of s.blocks){let c=`Block__${s.id}__${l.type}`;o[c]=t("block",{section:s,block:l})}return o},{});return{...i,...r,...a,swell_page:t("root"),swell_global:t("global")}}function yt(){return{documents:{get({id:e}){console.log("Easyblocks backend documents.get()",e);let t={id:e,version:1,entry:{_id:"page",_component:"swell_page"}};return Promise.resolve(t)},create(e){return console.log("Easyblocks backend documents.create()",e),Promise.resolve({})},update(e){return console.log("Easyblocks backend documents.update()",e),Promise.resolve({})}},templates:{get(e){return console.log("Easyblocks backend templates.get()",e),Promise.resolve({})},getAll(){return console.log("Easyblocks backend get templates.getAll()"),Promise.resolve([])},create(e){return console.log("Easyblocks backend get templates.create()",e),Promise.resolve({})},update(e){return console.log("Easyblocks backend get templates.update()",e),Promise.resolve({})},delete(e){return console.log("Easyblocks backend get templates.delete()",e),Promise.resolve()}}}}function ft(){return(Math.random()+1).toString(36).substring(7)}function D4(n,e){let i=n?.storefront?.options?.getCookie;return typeof i=="function"&&i(e)||""}var g2=class extends _{constructor(e,t,i={}){super(e,"",t,i,async function(){let r=await St(e,this._resourceName,t,i);return K3(this._resourceName,r,e,"",t,i)})}},f2=class extends X{constructor(e,t,i={}){super(e,"",async function(){let r=await St(e,this._resourceName,t,i);return K3(this._resourceName,r,e,"",t,i)})}};async function St(n,e,t,i){let r=new URLSearchParams({...t&&{slug:t},...i&&{query:JSON.stringify(i)}}),a=r.size>0?`?${r}`:"",o=D4(n,"swell-session"),s=D4(n,"swell-data")||{};return(await fetch(`${n.storefront_url}/resources/${e}.json/${a}`,{headers:{"X-Session":o,"Swell-Data":JSON.stringify(s)}})).json()}function K3(n,e,t,i="",r,a){let o={};for(let[s,l]of Object.entries(e)){let c=i+`${i===""?"":"/"}${s}`,u;switch(l?._type){case"SwellStorefrontCollection":u=F6;break;case"SwellStorefrontRecord":u=N6;break;case"createStorefrontResource":u=Z6;break;default:break}o[s]=u?u(n,t,c,r,a):l}return o}function Z6(n,e,t,i,r){return new T(async function(){let a=await w2(e,n,t,i,r);return K3(n,a,e,t,i,r)})}function N6(n,e,t,i,r){let a=kt(i,r);return new _(e,n,t,a,async function(){let o=await w2(e,n,t,i,r);return K3(n,o,e,t,i,r)})}function F6(n,e,t,i,r){let a=kt(i,r);return new b(e,n,a,async function(){let o=await w2(e,n,t,i,r);return K3(n,o,e,t,i,r)})}async function w2(n,e,t,i,r){let a=new URLSearchParams({path:t,...i&&{slug:i},...r&&{query:JSON.stringify(r)}}),o=a.size>0?`?${a}`:"",s=D4(n,"swell-session"),l=D4(n,"swell-data")||{};return(await fetch(`${n.storefront_url}/resources/${e}.json${o}`,{headers:{"X-Session":s,"Swell-Data":JSON.stringify(l)}})).json()}function kt(n,e){return{...n&&{slug:n},...e}}0&&(module.exports={DEFAULT_QUERY_PAGE_LIMIT,DeferredShopifyResource,FILE_DATA_INCLUDE_QUERY,GEO_DATA,LANG_TO_COUNTRY_CODES,LiquidSwell,MAX_QUERY_PAGE_LIMIT,MockRecordResource,MockRecordSingleton,PageError,PageNotFound,SECTION_GROUP_CONTENT,ShopifyArticle,ShopifyBlog,ShopifyCart,ShopifyCollection,ShopifyCollections,ShopifyCompatibility,ShopifyCustomer,ShopifyFont,ShopifyForm,ShopifyLink,ShopifyLocalization,ShopifyOrder,ShopifyPage,ShopifyPaginate,ShopifyPredictiveSearch,ShopifyProduct,ShopifyRecommendations,ShopifyResource,ShopifySearch,ShopifyVariant,StorefrontResource,Swell,SwellBackendAPI,SwellError,SwellStorefrontCollection,SwellStorefrontPagination,SwellStorefrontRecord,SwellStorefrontResource,SwellStorefrontSingleton,SwellTheme,ThemeColor,ThemeFont,ThemeForm,ThemeFormErrors,adaptShopifyFontData,adaptShopifyFormData,adaptShopifyMenuData,arrayToObject,deferMenuItemUrlAndResource,dehydrateSwellRefsInStorefrontResources,extractSettingsFromForm,findCircularReferences,findEditorSetting,findThemeSettingsByType,fontMap,forEachKeyDeep,getAllSections,getBlog,getBlogs,getCategories,getCategory,getCategoryWithProducts,getContentEntry,getContentList,getContentModel,getCountryCodeFromLocale,getEasyblocksBackend,getEasyblocksComponentDefinitions,getEasyblocksPagePropsWithConfigs,getEasyblocksPageTemplate,getEasyblocksPropsFromThemeConfigs,getLayoutSectionGroups,getMenuItemStorefrontUrl,getMenuItemUrlAndResource,getMenuItemValueId,getPage,getPageSections,getProduct,getProducts,getProductsFiltered,getSectionGroupProp,getSectionSettingsFromProps,getThemeSettingsFromProps,isArray,isObject,md5,removeCircularReferences,resolveAsyncResources,resolveLookupCollection,resolveMenuItemUrlAndResource,resolveMenuItems,resolveMenuSettings,resolveSectionSettings,resolveThemeSettings,scopeCustomCSS,stringifyQueryParams,systemFonts,toBase64});
938
938
  //# sourceMappingURL=index.cjs.map