(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18170598"],{3241:function(e,t,d){"use strict";d("14d9"),d("e9f5"),d("ab43"),d("ddb0");var i=d("bd6e");const r={methods:{async sendPurchaseEvent(){try{var e,t,d,r,n,a,o,s,l,c,u,$,h,p,m,g,f,v,y,b,C,w;let I,P;const x=this.$store.getters["authentication/attributes"],{email:_,phone_number:A}=x;_&&(P=this.$CryptoJS.SHA256(_).toString()),A&&(I=this.$CryptoJS.SHA256(A).toString());let T=[];var S;if(null!==(e=this.order)&&void 0!==e&&e.productList)T=await Promise.all(null===(S=this.order)||void 0===S||null===(S=S.productList)||void 0===S?void 0:S.map(async(e,t)=>{var d;const r=await this.$store.dispatch("catalogs/GetSingle",{branch:null===(d=this.order)||void 0===d?void 0:d.branchId,cprcode:e.cprcode});return Object(i["b"])({...e,...r,quantity:e.quantity},t)}));dataLayer.push({event:"purchase",hash_user_email:null!==P&&void 0!==P?P:"None",hash_user_phone_number:null!==I&&void 0!==I?I:"None",delivery_to:null!==(t=null===(d=this.order)||void 0===d||null===(d=d.shipping)||void 0===d?void 0:d.shippingAddress)&&void 0!==t?t:"None",delivery_type:null!==(r=null===(n=this.order)||void 0===n||null===(n=n.shipping)||void 0===n?void 0:n.shippingType)&&void 0!==r?r:"None",delivery_subdistrict:null!==(a=null===(o=this.order)||void 0===o||null===(o=o.shipping)||void 0===o?void 0:o.shippingSubDistrict)&&void 0!==a?a:"None",delivery_district:null!==(s=null===(l=this.order)||void 0===l||null===(l=l.shipping)||void 0===l?void 0:l.shippingDistrict)&&void 0!==s?s:"None",delivery_province:null!==(c=null===(u=this.order)||void 0===u||null===(u=u.shipping)||void 0===u?void 0:u.shippingProvince)&&void 0!==c?c:"None",ecommerce:{transaction_id:null===($=this.order)||void 0===$?void 0:$.orderId,value:null!==(h=null===(p=this.pricing)||void 0===p?void 0:p.total)&&void 0!==h?h:"None",tax:0,shipping:null!==(m=null===(g=this.pricing)||void 0===g?void 0:g.deliveryFee)&&void 0!==m?m:0,currency:"thb",payment_method:this.paymentMethod,coupon:(null===(f=this.order)||void 0===f?void 0:f.couponCodeList.length)>0?null===(v=this.order)||void 0===v?void 0:v.couponCodeList:"None",gift_voucher:null!==(y=null===(b=this.order)||void 0===b?void 0:b.voucherId)&&void 0!==y?y:"None",discount:null!==(C=null===(w=this.pricing)||void 0===w?void 0:w.discount)&&void 0!==C?C:"None",items:T}})}catch(I){}},async sendAddPaymentInfoEvent(e,t){if(dataLayer){var d,r,n;let o=[];const{purchase_map_code:s}=null===e||void 0===e?void 0:e.analytics;var a;if(e.productList)o=await Promise.all(null===(a=e.productList)||void 0===a?void 0:a.map(async(t,d)=>{const r=await this.$store.dispatch("catalogs/GetSingle",{branch:e.branchId,cprcode:t.cprcode});return Object(i["b"])({...t,...r,quantity:t.quantity},d)}));dataLayer.push({event:"add_payment_info",purchase_map_code:s,ecommerce:{currency:"thb",value:null!==(d=null===(r=this.pricing)||void 0===r?void 0:r.total)&&void 0!==d?d:"None",gift_voucher:null!==(n=e.voucherId)&&void 0!==n?n:"None",coupon:e.couponCodeList.length>0?e.couponCodeList:"None",payment_type:t,items:o}})}}}};t["a"]=r},"75b9":function(e,t,d){},8896:function(e,t,d){"use strict";d.r(t);d("e01a"),d("498a");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"row justify-center",staticStyle:{"padding-bottom":"200px"}},[e.$q.screen.lt.sm?t("TitleBar",{attrs:{"center-slot":"Checkout"}}):e._e(),e.$q.screen.gt.xs?t("TileBar",{attrs:{optionButton:"Back"},on:{"on-button":function(t){return e.$router.go(-1)}}}):e._e(),t("TileBar",{ref:"shippingAddress",attrs:{title:e.$t(e.shippingTitle),prefix:"1",optionButton:e.$t(e.shippingSwitchText)},on:{"on-button":e.onSwitchShippingType}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[t("div",{staticClass:"q-px-sm warn"},[e._v(" "+e._s("DELIVERY"===e.shippingType?e.$t("Choose your delivery address."):e.$t("Choose your pick-up branch."))+" ")]),e.local.shippingAddress?t("div",{staticClass:"col-12 row"},[t("q-icon",{staticClass:"q-px-sm",attrs:{color:"red",size:"md",name:"fas fa-map-marker-alt"}}),t("div",{staticClass:"col-grow"},[t("div",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.formatedName)+" ")]),t("div",[e._v(" "+e._s(e.formatedAddress)+" ")]),t("div",{staticStyle:{color:"gray"}},[e._v(" "+e._s(e.formatedLocation)+" ")])])],1):e._e(),e.local.shippingAddress?t("div",{staticClass:"col-12"},[t("div",{staticClass:"q-px-sm q-pt-sm",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Contact Information"))+" ")]),t("div",{staticClass:"q-px-sm q-py-sm",staticStyle:{display:"grid","grid-template-columns":"repeat(2, 1fr)",gap:"0.5rem"}},[t("q-input",{ref:"contactFirstNameInput",attrs:{label:e.$t("First name")+" *",outlined:"",dense:"","hide-bottom-space":"","lazy-rules":"",rules:[t=>t&&t.trim().length>0||e.$t("Please enter first name")]},model:{value:e.contactInfo.firstName,callback:function(t){e.$set(e.contactInfo,"firstName",t)},expression:"contactInfo.firstName"}}),t("q-input",{ref:"contactLastNameInput",attrs:{label:e.$t("Last name")+" *",outlined:"",dense:"","lazy-rules":"",rules:[t=>t&&t.trim().length>0||e.$t("Please enter last name")],"hide-bottom-space":""},model:{value:e.contactInfo.lastName,callback:function(t){e.$set(e.contactInfo,"lastName",t)},expression:"contactInfo.lastName"}}),t("VuePhoneNumberInput",{ref:"contactPhoneInput",staticStyle:{"grid-column":"span 2"},attrs:{"default-country-code":e.contactInfo.countryCode,"preferred-countries":["TH","US","GB"],error:e.contactInfo.phoneError,"error-color":"#C10015"},on:{update:e.onUpdateContactPhone},model:{value:e.contactInfo.phoneDummy,callback:function(t){e.$set(e.contactInfo,"phoneDummy",t)},expression:"contactInfo.phoneDummy"}}),t("q-input",{ref:"contactEmailInput",staticStyle:{"grid-column":"span 2"},attrs:{label:e.$t("Email")+" *",outlined:"",dense:"",type:"email","lazy-rules":"",rules:[t=>t&&t.trim().length>0||e.$t("Please enter email"),t=>/.+@.+\..+/.test(t)||e.$t("Please enter valid email")],"hide-bottom-space":""},model:{value:e.contactInfo.email,callback:function(t){e.$set(e.contactInfo,"email",t)},expression:"contactInfo.email"}})],1)]):e._e(),e.showChangeAddress?t("div",{staticClass:"col-12 text-right"},[t("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:e.$t("checkout_change_address_btn"),"no-caps":"","no-wrap":"",flat:""},on:{click:e.onChangeAddress}})],1):e._e(),e.showChangeBranch?t("div",{staticClass:"col-12 text-right"},[t("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:e.$t("Change branch"),"no-caps":"","no-wrap":"",flat:""},on:{click:e.onChangeBranch}})],1):e._e(),e.showBranchList?t("q-list",{staticClass:"col-12",attrs:{dense:""}},e._l(e.formatedBranchAddressList,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:i,color:"primary"},model:{value:e.local.branchIndex,callback:function(t){e.$set(e.local,"branchIndex",t)},expression:"local.branchIndex"}})],1),t("q-item-section",[t("q-item-label",[e._v(e._s(d.name))]),t("q-item-label",{attrs:{caption:"",lines:"2"}},[e._v(e._s(d.formatedAddress))])],1)],1)})),1):e._e(),e.showAddressList?t("div",{ref:"ChooseAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Choose your prefer address"))+" ")]):e._e(),e.showAddressList?t("q-list",{staticClass:"col-12",attrs:{dense:""}},e._l(e.formatedShippingAddressList,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:d.id,color:"primary"},model:{value:e.local.addressIndex,callback:function(t){e.$set(e.local,"addressIndex",t)},expression:"local.addressIndex"}})],1),t("q-item-section",[t("q-item-label",[e._v(e._s(d.name))]),t("q-item-label",{attrs:{caption:"",lines:"2"}},[e._v(e._s(d.formatedAddress))])],1)],1)})),1):e._e(),e.showAddAddress?t("div",{staticClass:"col-12 text-right"},[t("q-btn",{ref:"AddNewAddress",staticStyle:{"font-weight":"bold"},attrs:{color:"primary",label:e.$t("Add new address"),"no-caps":"","no-wrap":"",flat:""},on:{click:e.onAddNewAddress}})],1):e._e(),t("q-inner-loading",{attrs:{showing:e.shippingAddressLoading}},[t("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),e.delivery.show&&"DELIVERY"===e.local.shippingType?t("TileBar",{attrs:{title:e.$t("Delivery type"),prefix:"2"}}):e._e(),e.delivery.show&&"DELIVERY"===e.local.shippingType?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row delivery-type",staticStyle:{padding:"6px 16px",position:"relative"},attrs:{title:"Delivery type"}},[t("q-list",{staticClass:"col-12"},e._l(e.deliveryTypes,(function(d,i){return t("div",{key:i,ref:"deliveryType",refInFor:!0},[t("q-item",{attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:d.name,color:"primary",disable:d.disable},model:{value:e.local.deliveryType,callback:function(t){e.$set(e.local,"deliveryType",t)},expression:"local.deliveryType"}})],1),t("div",{class:"Regular"==d.displayName?"center-pls":null},[t("q-item-section",{attrs:{top:!1}},[t("q-item-label",[e._v(e._s(e.$t(d.displayName)))]),t("q-item-label",{attrs:{caption:"",lines:"2"}},[e._v(e._s(e.$t(d.description)))])],1),"Regular"==d.displayName&&e.$q.screen.width<600&&e.regularInfo?t("q-item-section",[t("div",{staticClass:"row items-center justify-between q-gutter-y-sm"},[t("div",{staticClass:"col-2 q-px-sm title text-right"},[e._v(" "+e._s(e.$t("Date"))+" ")]),t("q-select",{staticClass:"col-md-4 col-xs-9",attrs:{options:e.regularInfo.dateOptions,disable:"REGULAR"!==e.local.deliveryType,outlined:"",dense:"","options-dense":""},model:{value:e.regularInfo.selectedDate,callback:function(t){e.$set(e.regularInfo,"selectedDate",t)},expression:"regularInfo.selectedDate"}}),t("div",{staticClass:"col-2 q-pa-sm title text-right"},[e._v(" "+e._s(e.$t("Time"))+" ")]),t("q-select",{staticClass:"col-md-4 col-xs-9",attrs:{options:e.regularInfo.timeOptions,disable:"REGULAR"!==e.local.deliveryType,outlined:"",dense:"","options-dense":""},model:{value:e.regularInfo.selectedTime,callback:function(t){e.$set(e.regularInfo,"selectedTime",t)},expression:"regularInfo.selectedTime"}})],1)]):e._e()],1),"Regular"==d.displayName&&e.$q.screen.width>=600&&e.regularInfo?t("q-item-section",[t("div",{staticClass:"row items-center justify-between q-gutter-y-sm"},[t("div",{staticClass:"col-2 q-px-sm title text-right"},[e._v(" "+e._s(e.$t("Date"))+" ")]),t("q-select",{staticClass:"col-4",attrs:{options:e.regularInfo.dateOptions,disable:"REGULAR"!==e.local.deliveryType,outlined:"",dense:"","options-dense":""},model:{value:e.regularInfo.selectedDate,callback:function(t){e.$set(e.regularInfo,"selectedDate",t)},expression:"regularInfo.selectedDate"}}),t("div",{staticClass:"col-2 q-pa-sm title text-right"},[e._v(" "+e._s(e.$t("Time"))+" ")]),t("q-select",{staticClass:"col-4",attrs:{options:e.regularInfo.timeOptions,disable:"REGULAR"!==e.local.deliveryType,outlined:"",dense:"","options-dense":""},model:{value:e.regularInfo.selectedTime,callback:function(t){e.$set(e.regularInfo,"selectedTime",t)},expression:"regularInfo.selectedTime"}})],1)]):e._e()],1),t("transition",["EXPRESS"===d.name&&"EXPRESS"===e.local.deliveryType&&e.expressNearestSlot?t("div",{staticClass:"q-px-md q-pb-sm full-width",staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"40px !important",height:"40px","margin-right":"1rem"}}),t("div",{staticClass:"express-slot-info-card"},[e._v(" "+e._s(e.$t("Your items will be delivered between"))+" "+e._s(e.expressNearestSlot.label)+" ")])]):e._e()])],1)})),0),t("q-inner-loading",{attrs:{showing:e.delivery.loading}},[t("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1):e._e(),t("TileBar",{attrs:{title:e.$t("Promotion code"),prefix:"DELIVERY"===e.local.shippingType?3:2}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row items-center justify-start",staticStyle:{padding:"6px 16px"}},[t("q-input",{staticClass:"col-grow q-mr-sm",staticStyle:{"max-width":"200px"},attrs:{outlined:"",clearable:"",dense:"",mask:"XXXXXXXXXXXXXXXX",maxlength:"16",placeholder:e.$t("Add promotion code"),autogrow:""},model:{value:e.local.couponCode,callback:function(t){e.$set(e.local,"couponCode",t)},expression:"local.couponCode"}}),t("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",dense:"","no-caps":"","no-wrap":"",flat:"",label:e.$t("Apply")},on:{click:e.onApplyCouponCode}})],1),t("TileBar",{attrs:{title:e.$t("Villa's Gift Voucher")}}),e.voucherList.length>0?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row items-center justify-start",staticStyle:{padding:"6px 16px"}},e._l(e.voucherList,(function(d,i){return t("q-chip",{key:i,attrs:{removable:"",color:"primary","text-color":"white",icon:"fas fa-tag",size:"md"},on:{remove:function(t){return e.onRemoveVoucher(i)}},model:{value:e.voucherList[i].active,callback:function(t){e.$set(e.voucherList[i],"active",t)},expression:"voucherList[index].active"}},[e._v(" "+e._s(d.voucherId)+" ")])})),1):e._e(),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row items-center justify-start",staticStyle:{padding:"6px 16px"}},[t("q-input",{staticClass:"col-grow q-mr-sm",staticStyle:{"max-width":"200px"},attrs:{outlined:"",clearable:"",dense:"",mask:"XXXXXXXX",maxlength:"8",placeholder:e.$t("Add voucher code"),autogrow:""},model:{value:e.local.voucherCode,callback:function(t){e.$set(e.local,"voucherCode",t)},expression:"local.voucherCode"}}),t("q-btn",{staticStyle:{"font-weight":"bold"},attrs:{color:"primary",dense:"","no-caps":"","no-wrap":"",flat:"",label:e.$t("Apply")},on:{click:e.onApplyVoucherCode}})],1),t("TileBar",{attrs:{title:e.$t("Refund voucher"),optionButton:e.$t("Select voucher")},on:{"on-button":e.onSelectVoucher}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row items-center justify-start",staticStyle:{padding:"6px 16px"}},[e.voucherRefund.voucherRefundSelectedList<=0?t("span",[e._v(" "+e._s(e.$t("No vouchers were selected."))+" ")]):e._e(),t("div",{staticClass:"col-12"},e._l(e.voucherRefund.voucherRefundSelectedList,(function(e,d){return t("q-item",{key:d},[t("VoucherCard",{attrs:{voucher:e,isWhite:!0}})],1)})),1)]),t("TileBar",{ref:"OrderSummary",attrs:{title:e.$t("Order summary"),prefix:"DELIVERY"===e.local.shippingType?4:3,optionButton:e.$t("Add items")},on:{"on-button":e.onAddItems}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px"}},[e._l(e.ScheduleGroupsWithDeliveryFeeWithPricing,(function(d,i){return t("schedule-group",{key:i,ref:"ScheduleGroup",refInFor:!0,attrs:{group:d,index:i,isExpress:e.isExpress,isNationwide:e.isNationwide,shippingType:e.local.shippingType}})})),e.ScheduleGroupsWithDeliveryFeeWithPricing.length<=0?t("span",[e._v(" "+e._s(e.$t("You have no items."))+" ")]):e._e()],2),t("TileBar",{ref:"paymentDetails",attrs:{title:e.$t("Payment details"),prefix:"DELIVERY"===e.local.shippingType?5:4}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[t("div",{staticClass:"q-px-sm warn"},[e._v(" "+e._s(e.$t("Choose your payment method."))+" ")]),t("q-list",{staticClass:"col-12"},e._l(e.paymentMethods,(function(i,r){return t("div",{key:r,staticClass:"row"},[t("q-item",{staticClass:"col-12",attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:i.id,color:"primary"},model:{value:e.local.paymentMethod,callback:function(t){e.$set(e.local,"paymentMethod",t)},expression:"local.paymentMethod"}})],1),t("q-item-section",{staticClass:"full-width",attrs:{avatar:""}},[t("div",{staticClass:"payment-image-list"},e._l(i.img,(function(r,n){return t("div",{key:n,staticClass:"payment-image-list"},[t("img",{staticStyle:{height:"50px"},attrs:{src:d("e974")("./"+r)}}),"Vplus Wallet"===i.id?t("div",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Vplus Wallet"))+" ")]):e._e(),"Vplus Wallet V2"===i.id?t("div",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Vplus Wallet"))+" ")]):e._e()])})),0)])],1),i.id==e.local.paymentMethod?t(e.paymentComponents[e.local.paymentMethod],{ref:"payment",refInFor:!0,tag:"component",on:{"input-card-name":e.onInputCardName,"input-card-number":e.onInputCardNumber,"input-card-month":e.onInputCardMonth,"input-card-year":e.onInputCardYear,"input-card-cvv":e.onInputCardCVV,token:e.onInputCardToken}}):e._e()],1)})),0),"Credit/Debit Card"===e.local.paymentMethod&&e.payment.creditcardTokens.length>0?t("div",{ref:"CreditCardToken",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Recent Credit/Debit card"))+" ")]):e._e(),"Credit/Debit Card"===e.local.paymentMethod&&e.payment.creditcardTokens.length>0?t("q-list",{staticClass:"col-12"},e._l(e.payment.creditcardTokens,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:i,color:"primary"},nativeOn:{click:function(t){e.payment.newCreditCard=!1}},model:{value:e.payment.creditcardTokenIndex,callback:function(t){e.$set(e.payment,"creditcardTokenIndex",t)},expression:"payment.creditcardTokenIndex"}})],1),t("q-item-section",{attrs:{avatar:""}},[e._v(" "+e._s(d.maskedCardNo)+" ")])],1)})),1):e._e(),"Credit/Debit Card"===e.local.paymentMethod?t("div",{ref:"CreditCardToken",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("New Credit/Debit card"))+" ")]):e._e(),"Credit/Debit Card"===e.local.paymentMethod?t("q-list",{staticClass:"col-12"},[t("q-item",{attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:!0,color:"primary"},nativeOn:{click:function(t){e.payment.creditcardTokenIndex=-1}},model:{value:e.payment.newCreditCard,callback:function(t){e.$set(e.payment,"newCreditCard",t)},expression:"payment.newCreditCard"}})],1),t("q-item-section",{attrs:{avatar:""}},[e._v(" "+e._s(e.$t("New Credit/Debit card"))+" ")])],1)],1):e._e(),"Vplus Wallet"===e.local.paymentMethod||"Vplus Wallet V2"===e.local.paymentMethod?t("div",{staticClass:"full-width"},["Vplus Wallet"===e.local.paymentMethod?t("div",{staticClass:"q-pt-md row col-12 justify-between items-center"},[t("div",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.$t("Vplus Wallet")))])]):e._e(),"Vplus Wallet"===e.local.paymentMethod?t("div",{staticClass:"full-width"},[t("div",{ref:"vplus",staticClass:"full-width row q-my-sm"},[t("div",{staticClass:"col-5 col-md-3 col-lg-2 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center"}},[e._v(" "+e._s(e.$t("Vplus Mobile No."))+" ")]),t("q-input",{staticClass:"col-grow",staticStyle:{"max-width":"200px"},attrs:{outlined:"",dense:"",mask:"##########",placeholder:e.$t("Enter mobile number"),autogrow:""},model:{value:e.payment.vplusMobileNumber,callback:function(t){e.$set(e.payment,"vplusMobileNumber",t)},expression:"payment.vplusMobileNumber"}})],1),t("div",{staticClass:"full-width row q-my-sm"},[t("div",{staticClass:"col-5 col-md-3 col-lg-2 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","padding-bottom":"20px"}},[e._v(" "+e._s(e.$t("Vplus Member ID"))+" ")]),t("q-input",{staticClass:"col-grow",staticStyle:{"max-width":"200px"},attrs:{outlined:"",dense:"",readonly:e.vplusVerified,debounce:500,error:e.isVplusMemberIDError,"error-message":e.payment.vplusMemberIDError,mask:"XXXXXX",placeholder:e.$t("Enter member ID"),autogrow:""},model:{value:e.payment.vplusMemberID,callback:function(t){e.$set(e.payment,"vplusMemberID",t)},expression:"payment.vplusMemberID"}})],1)]):e._e()]):e._e(),t("q-inner-loading",{attrs:{showing:e.paymentMethodLoading}},[t("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1),t("TileBar",{ref:"comment-to-shopper",attrs:{title:e.$t("Comments to shoppers"),prefix:"DELIVERY"===e.local.shippingType?6:5}}),t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px 16px 16px",position:"relative"}},[t("q-input",{staticClass:"full-width q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter comment to shopper/rider"),autogrow:""},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1),t("TileBar",{ref:"noPlasticBag",attrs:{title:e.$t("No plastic bag"),prefix:"DELIVERY"===e.local.shippingType?7:6,subtitle:"Thanks for reducing plastic bag",optionToggle:!0},model:{value:e.local.noPlasticBag,callback:function(t){e.$set(e.local,"noPlasticBag",t)},expression:"local.noPlasticBag"}}),t("TileBar",{ref:"billingAddress",attrs:{title:e.$t("Request tax invoice"),prefix:"DELIVERY"===e.local.shippingType?8:7,optionToggle:!0},model:{value:e.local.requestTaxInvoice,callback:function(t){e.$set(e.local,"requestTaxInvoice",t)},expression:"local.requestTaxInvoice"}}),e.local.requestTaxInvoice?t("div",{staticClass:"col-12 col-sm-10 col-md-9 bg-white row",staticStyle:{padding:"6px 16px",position:"relative"}},[t("div",{staticClass:"q-px-sm warn"},[e._v(" "+e._s(e.$t("Choose billing address."))+" ")]),t("q-list",{staticClass:"col-12",attrs:{dense:""}},e._l(e.filteredBillingAddressTypeList,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:d.type,color:"primary"},model:{value:e.local.billingAddressType,callback:function(t){e.$set(e.local,"billingAddressType",t)},expression:"local.billingAddressType"}})],1),t("q-item-section",[t("q-item-label",[e._v(e._s(e.$t(d.name)))])],1)],1)})),1),"USE_SAVED_ADDRESS"===e.local.billingAddressType&&e.formatedShippingAddressList.length>0?t("div",{ref:"SavedAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Saved address"))+" ")]):e._e(),"USE_SAVED_ADDRESS"===e.local.billingAddressType?t("q-list",{staticClass:"col-12",attrs:{dense:""}},e._l(e.formatedShippingAddressList,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("q-item-section",{attrs:{avatar:""}},[t("q-radio",{attrs:{val:i,color:"primary"},model:{value:e.local.billingAddressIndexFromSavedAddress,callback:function(t){e.$set(e.local,"billingAddressIndexFromSavedAddress",t)},expression:"local.billingAddressIndexFromSavedAddress"}})],1),t("q-item-section",[t("q-item-label",[e._v(e._s(d.name))]),t("q-item-label",{attrs:{caption:"",lines:"2"}},[e._v(e._s(d.formatedAddress))])],1)],1)})),1):e._e(),"USE_SAVED_ADDRESS"===e.local.billingAddressType||"USE_DELIVERY_ADDRESS"===e.local.billingAddressType?t("div",{ref:"SavedAdditionalAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Fill billing details"))+" ")]):e._e(),"USE_SAVED_ADDRESS"===e.local.billingAddressType||"USE_DELIVERY_ADDRESS"===e.local.billingAddressType?t("q-form",{ref:"additionalForm",staticClass:"col-12"},[t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Tax ID*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter tax ID"),autogrow:"","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter tax ID"]},model:{value:e.additionalBillingInfo.customerTaxId,callback:function(t){e.$set(e.additionalBillingInfo,"customerTaxId",t)},expression:"additionalBillingInfo.customerTaxId"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Company name"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter company name"),autogrow:"","lazy-rules":"",rules:[e=>!0]},model:{value:e.additionalBillingInfo.customerCompanyName,callback:function(t){e.$set(e.additionalBillingInfo,"customerCompanyName",t)},expression:"additionalBillingInfo.customerCompanyName"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Branch"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter company branch"),"lazy-rules":"",rules:[e=>!0],autogrow:""},model:{value:e.additionalBillingInfo.customerCompanyBranch,callback:function(t){e.$set(e.additionalBillingInfo,"customerCompanyBranch",t)},expression:"additionalBillingInfo.customerCompanyBranch"}})],1)]):e._e(),"USE_OTHER_ADDRESS"===e.local.billingAddressType?t("div",{ref:"OtherAddress",staticClass:"q-pt-md",staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(e.$t("Fill billing address details"))+" ")]):e._e(),"USE_OTHER_ADDRESS"===e.local.billingAddressType?t("q-form",{ref:"form",staticClass:"col-12"},[t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("First name*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter first name"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter first name")],autogrow:""},model:{value:e.otherBillingAddress.customerFirstName,callback:function(t){e.$set(e.otherBillingAddress,"customerFirstName",t)},expression:"otherBillingAddress.customerFirstName"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Last name*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter last name"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter last name")],autogrow:""},model:{value:e.otherBillingAddress.customerLastName,callback:function(t){e.$set(e.otherBillingAddress,"customerLastName",t)},expression:"otherBillingAddress.customerLastName"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Tax ID*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter tax ID"),autogrow:"","lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter tax ID")]},model:{value:e.otherBillingAddress.customerTaxId,callback:function(t){e.$set(e.otherBillingAddress,"customerTaxId",t)},expression:"otherBillingAddress.customerTaxId"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Company name"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter company name"),autogrow:"","lazy-rules":"",rules:[e=>!0]},model:{value:e.otherBillingAddress.customerCompanyName,callback:function(t){e.$set(e.otherBillingAddress,"customerCompanyName",t)},expression:"otherBillingAddress.customerCompanyName"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Branch"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter company branch"),"lazy-rules":"",rules:[e=>!0],autogrow:""},model:{value:e.otherBillingAddress.customerCompanyBranch,callback:function(t){e.$set(e.otherBillingAddress,"customerCompanyBranch",t)},expression:"otherBillingAddress.customerCompanyBranch"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Address*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter address"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter your address")],autogrow:""},model:{value:e.otherBillingAddress.billingAddress,callback:function(t){e.$set(e.otherBillingAddress,"billingAddress",t)},expression:"otherBillingAddress.billingAddress"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Sub district*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter sub district"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter sub district")],autogrow:""},model:{value:e.otherBillingAddress.billingSubDistrict,callback:function(t){e.$set(e.otherBillingAddress,"billingSubDistrict",t)},expression:"otherBillingAddress.billingSubDistrict"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("District*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter district"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter district")],autogrow:""},model:{value:e.otherBillingAddress.billingDistrict,callback:function(t){e.$set(e.otherBillingAddress,"billingDistrict",t)},expression:"otherBillingAddress.billingDistrict"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Province*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter province"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter province")],autogrow:""},model:{value:e.otherBillingAddress.billingProvince,callback:function(t){e.$set(e.otherBillingAddress,"billingProvince",t)},expression:"otherBillingAddress.billingProvince"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Post code*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter postcode"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter postcode")],autogrow:""},model:{value:e.otherBillingAddress.billingPostcode,callback:function(t){e.$set(e.otherBillingAddress,"billingPostcode",t)},expression:"otherBillingAddress.billingPostcode"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Phone number*"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter phone number"),"lazy-rules":"",rules:[t=>t&&t.length>0||e.$t("Please enter your phone number")],autogrow:""},model:{value:e.otherBillingAddress.billingPhone,callback:function(t){e.$set(e.otherBillingAddress,"billingPhone",t)},expression:"otherBillingAddress.billingPhone"}})],1),t("div",{staticClass:"full-width row"},[t("div",{staticClass:"col-4 text-right q-mt-sm",staticStyle:{display:"flex","align-items":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.$t("Email"))+" ")]),t("q-input",{staticClass:"col-xs-8 col-sm-4 q-mt-sm",attrs:{outlined:"",dense:"",placeholder:e.$t("Enter email"),autogrow:"","lazy-rules":"",rules:[e=>!0]},model:{value:e.otherBillingAddress.customerEmail,callback:function(t){e.$set(e.otherBillingAddress,"customerEmail",t)},expression:"otherBillingAddress.customerEmail"}})],1)]):e._e(),t("q-inner-loading",{attrs:{showing:e.addressLoading}},[t("q-spinner",{attrs:{size:"50px",color:"primary"}})],1)],1):e._e(),t("TileBar",{attrs:{title:e.$t("Request subtitutes"),prefix:"DELIVERY"===e.local.shippingType?9:8,optionToggle:!0},model:{value:e.local.requestSubstitute,callback:function(t){e.$set(e.local,"requestSubstitute",t)},expression:"local.requestSubstitute"}}),t("TileBar",{attrs:{title:e.$t("Chat with us"),optionButton:e.$t("Chat now")},on:{"on-button":e.onLiveChat}}),t("div",{staticClass:"sticky-bottom col-12 col-sm-10 col-md-9 bg-white"},[t("div",{staticClass:"col-12"},[t("FreeGiftCampaign",{attrs:{subTotal:e.pricing.subTotal}}),t("q-btn",{staticClass:"full-width q-mt-sm",attrs:{"no-caps":"","no-wrap":"",loading:e.grandTotalLoading||e.loadingPlaceOrder,color:"primary",label:e.$t("Place Order")},on:{click:e.onPlaceOrder},scopedSlots:e._u([e.vplusLoading?{key:"loading",fn:function(){return[t("q-spinner",{staticClass:"on-left"}),e._v(" "+e._s(e.$t("Loading..."))+" "+e._s(e.vplusLoadingCountdown)+" ")]},proxy:!0}:e.vplusLoading?null:{key:"loading",fn:function(){return[t("q-spinner",{staticClass:"on-left"}),e._v(" "+e._s(e.$t("We are processing your order..."))+" ")]},proxy:!0}],null,!0)})],1),t("div",{staticClass:"row justify-end"},[t("div",{staticClass:"col-12 col-md-6"},[t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Sub total")))]),t("div",{staticClass:"text-primary"},[e._v(" "+e._s(e.$priceFormat(e.pricing.subTotal))+" ")])]),t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Total delivery fee")))]),null!=e.pricing.deliveryFee||void 0!=e.pricing.deliveryFee?t("div",{staticClass:"text-primary"},[e._v(" "+e._s(e.pricing.deliveryFee>0?"+"+e.$priceFormat(e.pricing.deliveryFee):"0")+" ")]):e._e()]),null!=e.pricing.expressShippingCost&&void 0!=e.pricing.expressShippingCost&&0!=e.pricing.expressShippingCost?t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Express fee")))]),null!=e.pricing.expressShippingCost&&void 0!=e.pricing.expressShippingCost?t("div",{staticClass:"text-primary"},[e._v(" "+e._s(e.pricing.expressShippingCost>0?"+"+e.$priceFormat(e.pricing.expressShippingCost):"0")+" ")]):e._e()]):e._e(),t("q-expansion-item",{attrs:{dense:"","dense-toggle":"","hide-expand-icon":"",label:"Discount","content-inset-level":0,"header-style":{padding:0},"default-opened":""},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"flex justify-between full-width"},[t("div",[e._v(e._s(e.$t("Discount")))]),t("div",{staticClass:"text-red"},[e._v(" "+e._s(0===e.pricing.discount?"":"-")+e._s(e.$priceFormat(e.pricing.discount))+" ")])])]},proxy:!0}])},[t("div",{staticClass:"discount-detail"},[e.discountDetail.promotionDiscount>0?t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Promotional discount")))]),t("div",{staticClass:"text-red"},[e._v(" "+e._s(0===e.discountDetail.promotionDiscount?"":"-")+e._s(e.$priceFormat(e.discountDetail.promotionDiscount))+" ")])]):e._e(),e.discountDetail.shippingDiscount>0?t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Shipping discount")))]),t("div",{staticClass:"text-red"},[e._v(" "+e._s(0===e.discountDetail.shippingDiscount?"":"-")+e._s(e.$priceFormat(e.discountDetail.shippingDiscount))+" ")])]):e._e(),e.discountDetail.voucherDiscount>0?t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("Voucher discount")))]),t("div",{staticClass:"text-red"},[e._v(" "+e._s(0===e.discountDetail.voucherDiscount?"":"-")+e._s(e.$priceFormat(e.discountDetail.voucherDiscount))+" ")])]):e._e()])]),t("div",{staticClass:"row justify-between"},[t("div",[e._v(e._s(e.$t("place_order_total_text")))]),t("div",{staticClass:"text-primary text-bold"},[e._v(" "+e._s(e.$priceFormat(e.pricing.total))+" ")])])],1)])]),t("div",{ref:"k-payment-form-container",staticStyle:{display:"none"}}),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogDelivery.show,callback:function(t){e.$set(e.dialogDelivery,"show",t)},expression:"dialogDelivery.show"}},[t("DialogAlert",{attrs:{message:e.dialogDelivery.message,"left-btn":e.dialogDelivery.leftButtonText,"right-btn":e.dialogDelivery.rightButtonText},on:{leftClick:e.dialogDelivery.leftButtonCallback,rightClick:e.dialogDelivery.rightButtonCallback}},[t("q-list",{staticClass:"full-width",attrs:{separator:""}},e._l(e.dialogDelivery.availableBranch,(function(d){return t("q-item",{key:d.br_code,staticStyle:{overflow:"hidden"},attrs:{tag:"label",clickable:""},on:{click:function(t){return e.onSwitchBranch(d)}}},[t("q-item-section",[t("div",{staticClass:"flex justify-between items-center"},[t("div",[t("div",{staticClass:"store-name text-bold"},[e._v(" "+e._s(d.store_name)+" ")]),d.dist?t("div",{staticClass:"shipping-distance text-grey-7 text-caption"},[e._v(" "+e._s(d.dist.toFixed(2))+" km away ")]):e._e()]),t("div",{},[d.cost?t("div",{staticClass:"shipping-price q-pr-sm"},[e._v(" "+e._s(d.cost)+"฿ ")]):t("div",{staticClass:"shipping-price"})])])])],1)})),1)],1)],1),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogNationwide.show,callback:function(t){e.$set(e.dialogNationwide,"show",t)},expression:"dialogNationwide.show"}},[t("DialogAlert",{attrs:{message:e.dialogNationwide.message,"left-btn":e.$t("Contact us"),"mid-btn":e.$t("Live chat"),"right-btn":e.$t("Close")},on:{leftClick:e.onContactUs,midClick:e.onLiveChat,rightClick:e.onDeliveryNationwide}})],1),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogShippingError.show,callback:function(t){e.$set(e.dialogShippingError,"show",t)},expression:"dialogShippingError.show"}},[t("DialogAlert",{attrs:{message:e.$t(e.dialogShippingError.message),"right-btn":e.$t("Close")},on:{rightClick:e.onCloseShippingError}})],1),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogVplusWallet.show,callback:function(t){e.$set(e.dialogVplusWallet,"show",t)},expression:"dialogVplusWallet.show"}},[t("DialogAlert",{attrs:{message:e.$t(e.dialogVplusWallet.message),submessage:e.$t(e.dialogVplusWallet.submessage),"right-btn":e.$t("Close")},on:{rightClick:e.onCloseDialogVplusWallet}})],1),t("q-dialog",{attrs:{persistent:""},model:{value:e.promptShippingPhone.show,callback:function(t){e.$set(e.promptShippingPhone,"show",t)},expression:"promptShippingPhone.show"}},[t("q-card",{staticStyle:{"min-width":"350px"}},[t("q-card-section",[t("div",{staticClass:"text-h6"},[e._v(e._s(e.$t("Please add phone number")))])]),t("q-card-section",{staticClass:"q-pt-none"},[t("VuePhoneNumberInput",{ref:"PromptShippingPhone",staticStyle:{"margin-bottom":"20px"},attrs:{"default-country-code":e.promptShippingPhone.countryCode,"preferred-countries":["TH","US","GB"],error:e.promptShippingPhone.shippingPhoneDummyError},on:{update:e.onUpdatePromptShippingPhone},model:{value:e.promptShippingPhone.shippingPhoneDummy,callback:function(t){e.$set(e.promptShippingPhone,"shippingPhoneDummy",t)},expression:"promptShippingPhone.shippingPhoneDummy"}})],1),t("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[t("q-btn",{attrs:{flat:"",label:"Cancel"},on:{click:e.onCancelPrompShippingAddress}}),t("q-btn",{attrs:{loading:e.promptShippingPhone.loading,flat:"",label:e.$t("Confirm")},on:{click:e.onConfirmPrompShippingAddress}})],1)],1)],1),t("q-dialog",{attrs:{persistent:""},model:{value:e.dialogCoupon.show,callback:function(t){e.$set(e.dialogCoupon,"show",t)},expression:"dialogCoupon.show"}},[t("DialogAlert",{attrs:{message:e.$t(e.dialogCoupon.message),"right-btn":e.$t("Close")},on:{rightClick:e.onCloseDialogCoupon}})],1),t("OutOfStockDialog",{attrs:{show:e.dialogMissingInventory.show,missingProductList:e.dialogMissingInventory.productList,onRefresh:e.dialogMissingInventory.onRefresh}}),t("q-dialog",{staticClass:"voucher-select-dialog",attrs:{"full-width":"","no-backdrop-dismiss":""},model:{value:e.voucherRefund.isShowDialog,callback:function(t){e.$set(e.voucherRefund,"isShowDialog",t)},expression:"voucherRefund.isShowDialog"}},[t("div",[t("q-card",[t("q-card-section",[t("div",{staticClass:"text-h6"},[e._v(e._s(e.$t("Select voucher")))])]),e.voucherRefund.voucherRefundEdittingList.length>0?t("div",[t("q-card-section",{staticClass:"scroll card-dialog"},e._l(e.voucherRefund.voucherRefundEdittingList,(function(d,i){return t("q-item",{key:i,attrs:{tag:"label"}},[t("VoucherCard",{attrs:{voucher:d}}),t("q-item-section",{staticClass:"voucher-checkbox",attrs:{side:"",top:""}},[t("q-checkbox",{model:{value:d.selected,callback:function(t){e.$set(d,"selected",t)},expression:"voucher.selected"}})],1)],1)})),1)],1):e._e(),t("q-card-actions",{attrs:{align:"right"}},[t("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:e.$t("Cancel"),color:"primary"},on:{click:e.onVoucherDialogCancel}}),t("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:e.$t("Confirm"),color:"primary"},on:{click:e.onVoucherDialogConfirm}})],1)],1)],1)]),t("q-dialog",{attrs:{persistent:"",maximized:e.isMobile},model:{value:e.addAddressDialog,callback:function(t){e.addAddressDialog=t},expression:"addAddressDialog"}},[t("AddAddressDialog",{on:{close:e.onCloseAddAddressDialog}})],1),t("QRWalletPaymentDialog",{attrs:{show:e.qrWalletDialog.show,"order-id":e.qrWalletDialog.orderId,amount:e.qrWalletDialog.amount,currency:e.qrWalletDialog.currency},on:{"payment-success":e.onQRWalletPaymentSuccess,"payment-failed":e.onQRWalletPaymentFailed,"payment-timeout":e.onQRWalletPaymentTimeout,"payment-cancelled":e.onQRWalletPaymentCancelled}})],1)},r=[],n=(d("d9e2"),d("14d9"),d("13d5"),d("4069"),d("e9f5"),d("910d"),d("f665"),d("ab43"),d("9485"),d("a732"),d("e9c4"),d("1e70"),d("79a4"),d("c1a1"),d("8b00"),d("a4e7"),d("1e5a"),d("72c3"),d("5319"),d("5087"),d("ddb0"),d("837e")),a=d("6634"),o=d("2f62"),s=d("429b"),l=d("7460"),c=d("27f9"),u=d("1c1c"),$=d("66e5"),h=d("4074"),p=d("0170"),m=d("3786"),g=d("cb32"),f=d("74f7"),v=d("0d59"),y=d("24e8"),b=d("eb85"),C=d("2c91"),w=d("0378"),S=d("f09f"),I=d("a370"),P=d("4b7e"),x=d("8f8e"),_=d("b047"),A=d("58a8"),T=d("3b73"),k=d("7bec"),D=d.n(k),E=(d("4413"),{version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","(?:[267]\\d\\d|500)\\d{5}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}});function N(e,t){var d=Array.prototype.slice.call(t);return d.push(E),e.apply(this,d)}var L={}.constructor;function O(e){return void 0!==e&&null!==e&&e.constructor===L}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function q(e,t){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),d.push.apply(d,i)}return d}function B(e){for(var t=1;t<arguments.length;t++){var d=null!=arguments[t]?arguments[t]:{};t%2?q(Object(d),!0).forEach((function(t){M(e,t,d[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):q(Object(d)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(d,t))}))}return e}function M(e,t,d){return(t=F(t))in e?Object.defineProperty(e,t,{value:d,enumerable:!0,configurable:!0,writable:!0}):e[t]=d,e}function F(e){var t=V(e,"string");return"symbol"==R(t)?t:t+""}function V(e,t){if("object"!=R(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function W(e,t){return Y(e)||K(e,t)||j(e,t)||G()}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return U(e,t);var d={}.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var d=0,i=Array(t);d<t;d++)i[d]=e[d];return i}function K(e,t){var d=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=d){var i,r,n,a,o=[],s=!0,l=!1;try{if(n=(d=d.call(e)).next,0===t){if(Object(d)!==d)return;s=!1}else for(;!(s=(i=n.call(d)).done)&&(o.push(i.value),o.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=d["return"]&&(a=d["return"](),Object(a)!==a))return}finally{if(l)throw r}}return o}}function Y(e){if(Array.isArray(e))return e}function H(e){var t,d,i,r=Array.prototype.slice.call(e),n=W(r,4),a=n[0],o=n[1],s=n[2],l=n[3];if("string"!==typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,o&&"string"!==typeof o){if(!O(o))throw new Error("Invalid second argument: ".concat(o));s?(d=o,i=s):i=o}else l?(d=s,i=l):(d=void 0,i=s),o&&(d=B({defaultCountry:o},d));return{text:t,options:d,metadata:i}}var X=2,Q=17,z=3,J="0-90-9٠-٩۰-۹",Z="-‐-―−ー-",ee="//",te="..",de="  ­​⁠ ",ie="()()[]\\[\\]",re="~⁓∼~",ne="".concat(Z).concat(ee).concat(te).concat(de).concat(ie).concat(re),ae="++";function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function se(e,t){for(var d=0;d<t.length;d++){var i=t[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ce(i.key),i)}}function le(e,t,d){return t&&se(e.prototype,t),d&&se(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e){var t=ue(e,"string");return"symbol"==oe(t)?t:t+""}function ue(e,t){if("object"!=oe(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=oe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t,d){return t=we(t),pe(e,ye()?Reflect.construct(t,d||[],we(e).constructor):t.apply(e,d))}function pe(e,t){if(t&&("object"==oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return me(e)}function me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}function fe(e){var t="function"==typeof Map?new Map:void 0;return fe=function(e){if(null===e||!be(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,d)}function d(){return ve(e,arguments,we(this).constructor)}return d.prototype=Object.create(e.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),Ce(d,e)},fe(e)}function ve(e,t,d){if(ye())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return d&&Ce(r,d.prototype),r}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function be(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}var Se=function(e){function t(e){var d;return $e(this,t),d=he(this,t,[e]),Object.setPrototypeOf(d,t.prototype),d.name=d.constructor.name,d}return ge(t,e),le(t)}(fe(Error)),Ie=function(e,t){e=e.split("-"),t=t.split("-");for(var d=e[0].split("."),i=t[0].split("."),r=0;r<3;r++){var n=Number(d[r]),a=Number(i[r]);if(n>a)return 1;if(a>n)return-1;if(!isNaN(n)&&isNaN(a))return 1;if(isNaN(n)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0};function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var d=0;d<t.length;d++){var i=t[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Te(i.key),i)}}function Ae(e,t,d){return t&&_e(e.prototype,t),d&&_e(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(e){var t=ke(e,"string");return"symbol"==Pe(t)?t:t+""}function ke(e,t){if("object"!=Pe(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=Pe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var De="1.2.0",Ee="1.7.35",Ne=" ext. ",Le=/^\d+$/,Oe=function(){function e(t){xe(this,e),Ve(t),this.metadata=t,Ue.call(this,t)}return Ae(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Le.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Re(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Re(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var d=this.nonGeographic()[e];if(d)return d}else{var i=this.countryCallingCodes()[e];if(i&&1===i.length&&"001"===i[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),Re=function(){function e(t,d){xe(this,e),this.globalMetadataObject=d,this.metadata=t,Ue.call(this,d.metadata)}return Ae(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new qe(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Fe(this.types(),e))return new Me(Fe(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ne:this.metadata[13]||Ne}}])}(),qe=function(){function e(t,d){xe(this,e),this._format=t,this.metadata=d}return Ae(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Be.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),Be=/^\(?\$1\)?$/,Me=function(){function e(t,d){xe(this,e),this.type=t,this.metadata=d}return Ae(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Fe(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Ve(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!O(e)||!O(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(O(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+We(e)+": "+e,"."))}var We=function(e){return Pe(e)};function Ge(e,t){if(t=new Oe(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function je(e,t){return t.countries.hasOwnProperty(e)}function Ue(e){var t=e.version;"number"===typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Ie(t,De)?this.v2=!0:-1===Ie(t,Ee)?this.v3=!0:this.v4=!0:this.v1=!0}var Ke=";ext=",Ye=function(e){return"([".concat(J,"]{1,").concat(e,"})")};function He(e){var t="20",d="15",i="9",r="6",n="[  \\t,]*",a="[:\\..]?[  \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",l="(?:[xx##~~]|int|int)",c="[- ]+",u="[  \\t]*",$="(?:,{2}|;)",h=Ke+Ye(t),p=n+s+a+Ye(t)+o,m=n+l+a+Ye(i)+o,g=c+Ye(r)+"#",f=u+$+a+Ye(d)+o,v=u+"(?:,)+"+a+Ye(i)+o;return h+"|"+p+"|"+m+"|"+g+"|"+f+"|"+v}var Xe="["+J+"]{"+X+"}",Qe="["+ae+"]{0,1}(?:["+ne+"]*["+J+"]){3,}["+ne+J+"]*",ze=new RegExp("^["+ae+"]{0,1}(?:["+ne+"]*["+J+"]){1,2}$","i"),Je=Qe+"(?:"+He()+")?",Ze=new RegExp("^"+Xe+"$|^"+Je+"$","i");function et(e){return e.length>=X&&Ze.test(e)}function tt(e){return ze.test(e)}var dt=new RegExp("(?:"+He()+")$","i");function it(e){var t=e.search(dt);if(t<0)return{};var d=e.slice(0,t),i=e.match(dt),r=1;while(r<i.length){if(i[r])return{number:d,ext:i[r]};r++}}var rt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function nt(e){return rt[e]}function at(e,t){var d="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(d)return(d=d.call(e)).next.bind(d);if(Array.isArray(e)||(d=ot(e))||t&&e&&"number"==typeof e.length){d&&(e=d);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ot(e,t){if(e){if("string"==typeof e)return st(e,t);var d={}.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?st(e,t):void 0}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var d=0,i=Array(t);d<t;d++)i[d]=e[d];return i}function lt(e){for(var t,d="",i=at(e.split(""));!(t=i()).done;){var r=t.value;d+=ct(r,d)||""}return d}function ct(e,t,d){return"+"===e?t?void("function"===typeof d&&d("end")):"+":nt(e)}function ut(e,t){var d="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(d)return(d=d.call(e)).next.bind(d);if(Array.isArray(e)||(d=$t(e))||t&&e&&"number"==typeof e.length){d&&(e=d);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $t(e,t){if(e){if("string"==typeof e)return ht(e,t);var d={}.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?ht(e,t):void 0}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var d=0,i=Array(t);d<t;d++)i[d]=e[d];return i}function pt(e,t){for(var d,i=e.slice(),r=ut(t);!(d=r()).done;){var n=d.value;e.indexOf(n)<0&&i.push(n)}return i.sort((function(e,t){return e-t}))}function mt(e,t,d){return gt(e,t,void 0,d)}function gt(e,t,d,i){t&&(i=new Oe(i.metadata),i.selectNumberingPlan(t));var r=i.type(d),n=r&&r.possibleLengths()||i.possibleLengths();if(!n)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===d){if(!i.type("FIXED_LINE"))return gt(e,t,"MOBILE",i);var a=i.type("MOBILE");a&&(n=pt(n,a.possibleLengths()))}else if(d&&!r)return"INVALID_LENGTH";var o=e.length,s=n[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":n[n.length-1]<o?"TOO_LONG":n.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ft(e,t,d){if(void 0===t&&(t={}),d=new Oe(d),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");d.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!d.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));d.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");d.selectNumberingPlan(e.countryCallingCode)}}if(d.possibleLengths())return vt(e.phone||e.nationalNumber,e.country,d);if(e.countryCallingCode&&d.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function vt(e,t,d){switch(mt(e,t,d)){case"IS_POSSIBLE":return!0;default:return!1}}function yt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function bt(e,t){var d="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(d)return(d=d.call(e)).next.bind(d);if(Array.isArray(e)||(d=Ct(e))||t&&e&&"number"==typeof e.length){d&&(e=d);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ct(e,t){if(e){if("string"==typeof e)return wt(e,t);var d={}.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?wt(e,t):void 0}}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var d=0,i=Array(t);d<t;d++)i[d]=e[d];return i}var St=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function It(e,t,d){if(t=t||{},e.country||e.countryCallingCode){d=new Oe(d),d.selectNumberingPlan(e.country,e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(yt(i,d.nationalNumberPattern())){if(Pt(i,"FIXED_LINE",d))return d.type("MOBILE")&&""===d.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":d.type("MOBILE")?Pt(i,"MOBILE",d)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var r,n=bt(St);!(r=n()).done;){var a=r.value;if(Pt(i,a,d))return a}}}}function Pt(e,t,d){return t=d.type(t),!(!t||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&yt(e,t.pattern()))}function xt(e,t,d){if(t=t||{},d=new Oe(d),d.selectNumberingPlan(e.country,e.countryCallingCode),d.hasTypes())return void 0!==It(e,t,d.metadata);var i=t.v2?e.nationalNumber:e.phone;return yt(i,d.nationalNumberPattern())}function _t(e,t,d){var i=new Oe(d),r=i.getCountryCodesForCallingCode(e);return r?r.filter((function(e){return At(t,e,d)})):[]}function At(e,t,d){var i=new Oe(d);return i.selectNumberingPlan(t),i.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Tt=new RegExp("(["+J+"])");function kt(e,t,d,i){if(t){var r=new Oe(i);r.selectNumberingPlan(t,d);var n=new RegExp(r.IDDPrefix());if(0===e.search(n)){e=e.slice(e.match(n)[0].length);var a=e.match(Tt);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}function Dt(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var d=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),i=d.exec(e);if(i){var r,n,a,o=i.length-1,s=o>0&&i[o];if(t.nationalPrefixTransformRule()&&s)r=e.replace(d,t.nationalPrefixTransformRule()),o>1&&(n=i[1]);else{var l=i[0];r=e.slice(l.length),s&&(n=i[1])}if(s){var c=e.indexOf(i[1]),u=e.slice(0,c);u===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=i[0];return{nationalNumber:r,nationalPrefix:a,carrierCode:n}}}return{nationalNumber:e}}function Et(e,t){var d="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(d)return(d=d.call(e)).next.bind(d);if(Array.isArray(e)||(d=Nt(e))||t&&e&&"number"==typeof e.length){d&&(e=d);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Nt(e,t){if(e){if("string"==typeof e)return Lt(e,t);var d={}.toString.call(e).slice(8,-1);return"Object"===d&&e.constructor&&(d=e.constructor.name),"Map"===d||"Set"===d?Array.from(e):"Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Lt(e,t):void 0}}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var d=0,i=Array(t);d<t;d++)i[d]=e[d];return i}function Ot(e,t){var d=t.countries,i=t.metadata;i=new Oe(i);for(var r,n=Et(d);!(r=n()).done;){var a=r.value;if(i.selectNumberingPlan(a),i.leadingDigits()){if(e&&0===e.search(i.leadingDigits()))return a}else if(It({phone:e,country:a},void 0,i.metadata))return a}}var Rt=!1;function qt(e,t){var d=t.nationalNumber,i=t.metadata;if(Rt&&i.isNonGeographicCallingCode(e))return"001";var r=i.getCountryCodesForCallingCode(e);return r?1===r.length?r[0]:Ot(d,{countries:r,metadata:i.metadata}):void 0}function Bt(e,t,d){var i=Dt(e,d),r=i.carrierCode,n=i.nationalNumber;if(n!==e){if(!Mt(e,n,d))return{nationalNumber:e};if(d.numberingPlan.possibleLengths()&&(t||(t=qt(d.numberingPlan.callingCode(),{nationalNumber:n,metadata:d})),!Ft(n,t,d)))return{nationalNumber:e}}return{nationalNumber:n,carrierCode:r}}function Mt(e,t,d){return!(yt(e,d.nationalNumberPattern())&&!yt(t,d.nationalNumberPattern()))}function Ft(e,t,d){switch(mt(e,t,d)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Vt(e,t,d,i,r){var n=t||d?Ge(t||d,r):i;if(0===e.indexOf(n)){r=new Oe(r),r.selectNumberingPlan(t||d,n);var a=e.slice(n.length),o=Bt(a,t,r),s=o.nationalNumber,l=Bt(e,t,r),c=l.nationalNumber;if(!yt(c,r.nationalNumberPattern())&&yt(s,r.nationalNumberPattern())||"TOO_LONG"===mt(c,t,r))return{countryCallingCode:n,number:a}}return{number:e}}function Wt(e,t,d,i,r){if(!e)return{};var n;if("+"!==e[0]){var a=kt(e,t||d,i,r);if(!a||a===e){if(t||d||i){var o=Vt(e,t,d,i,r),s=o.countryCallingCode,l=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}n=!0,e="+"+a}if("0"===e[1])return{};r=new Oe(r);var c=2;while(c-1<=z&&c<=e.length){var u=e.slice(1,c);if(r.hasCallingCode(u))return r.selectNumberingPlan(u),{countryCallingCodeSource:n?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}function Gt(e){return e.replace(new RegExp("[".concat(ne,"]+"),"g")," ").trim()}var jt=/(\$\d)/;function Ut(e,t,d){var i=d.useInternationalFormat,r=d.withNationalPrefix,n=(d.carrierCode,d.metadata,e.replace(new RegExp(t.pattern()),i?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(jt,t.nationalPrefixFormattingRule()):t.format()));return i?Gt(n):n}var Kt=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Yt(e,t,d){var i=new Oe(d);return i.selectNumberingPlan(e,t),i.defaultIDDPrefix()?i.defaultIDDPrefix():Kt.test(i.IDDPrefix())?i.IDDPrefix():void 0}function Ht(e){var t=e.number,d=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(d?";ext="+d:"")}var Xt={formatExtension:function(e,t,d){return"".concat(e).concat(d.ext()).concat(t)}};function Qt(e,t,d,i){if(d=d?td({},Xt,d):Xt,i=new Oe(i),e.country&&"001"!==e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";i.selectNumberingPlan(e.countryCallingCode)}var r,n=i.countryCallingCode(),a=d.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?(r=zt(a,e.carrierCode,"NATIONAL",i,d),Zt(r,e.ext,i,d.formatExtension)):"";case"INTERNATIONAL":return a?(r=zt(a,null,"INTERNATIONAL",i,d),r="+".concat(n," ").concat(r),Zt(r,e.ext,i,d.formatExtension)):"+".concat(n);case"E.164":return"+".concat(n).concat(a);case"RFC3966":return Ht({number:"+".concat(n).concat(a),ext:e.ext});case"IDD":if(!d.fromCountry)return;var o=ed(a,e.carrierCode,n,d.fromCountry,i);return Zt(o,e.ext,i,d.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function zt(e,t,d,i,r){var n=Jt(i.formats(),e);return n?Ut(e,n,{useInternationalFormat:"INTERNATIONAL"===d,withNationalPrefix:!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:t,metadata:i}):e}function Jt(e,t){return dd(e,(function(e){if(e.leadingDigitsPatterns().length>0){var d=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(d))return!1}return yt(t,e.pattern())}))}function Zt(e,t,d,i){return t?i(e,t,d):e}function ed(e,t,d,i,r){var n=Ge(i,r.metadata);if(n===d){var a=zt(e,t,"NATIONAL",r);return"1"===d?d+" "+a:a}var o=Yt(i,void 0,r.metadata);if(o)return"".concat(o," ").concat(d," ").concat(zt(e,null,"INTERNATIONAL",r))}function td(){for(var e=1,t=arguments.length,d=new Array(t),i=0;i<t;i++)d[i]=arguments[i];while(e<d.length){if(d[e])for(var r in d[e])d[0][r]=d[e][r];e++}return d[0]}function dd(e,t){var d=0;while(d<e.length){if(t(e[d]))return e[d];d++}}function id(e){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(e)}function rd(e,t){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),d.push.apply(d,i)}return d}function nd(e){for(var t=1;t<arguments.length;t++){var d=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(d),!0).forEach((function(t){ad(e,t,d[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):rd(Object(d)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(d,t))}))}return e}function ad(e,t,d){return(t=cd(t))in e?Object.defineProperty(e,t,{value:d,enumerable:!0,configurable:!0,writable:!0}):e[t]=d,e}function od(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sd(e,t){for(var d=0;d<t.length;d++){var i=t[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,cd(i.key),i)}}function ld(e,t,d){return t&&sd(e.prototype,t),d&&sd(e,d),Object.defineProperty(e,"prototype",{writable:!1}),e}function cd(e){var t=ud(e,"string");return"symbol"==id(t)?t:t+""}function ud(e,t){if("object"!=id(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=id(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $d=!1,hd=function(){function e(t,d,i){if(od(this,e),!t)throw new TypeError("First argument is required");if("string"!==typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!d)throw new TypeError("`metadata` argument not passed");if(O(d)&&O(d.countries)){i=d;var r=t;if(!gd.test(r))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var n=Wt(r,void 0,void 0,void 0,i),a=n.countryCallingCode,o=n.number;if(d=o,t=a,!d)throw new Error("Invalid `number` argument passed: too short")}if(!d)throw new TypeError("`nationalNumber` argument is required");if("string"!==typeof d)throw new TypeError("`nationalNumber` argument must be a string");Ve(i);var s=md(t,i),l=s.country,c=s.countryCallingCode;this.country=l,this.countryCallingCode=c,this.nationalNumber=d,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}}return ld(e,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:_t(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ft(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return xt(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var e=new Oe(this.getMetadata());return e.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return It(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Qt(this,e,t?nd(nd({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),pd=function(e){return/^[A-Z]{2}$/.test(e)};function md(e,t){var d,i,r=new Oe(t);return pd(e)?(d=e,r.selectNumberingPlan(d),i=r.countryCallingCode()):(i=e,$d&&r.isNonGeographicCallingCode(i)&&(d="001")),{country:d,countryCallingCode:i}}var gd=/^\+\d+$/,fd="+",vd="[\\-\\.\\(\\)]?",yd="(["+J+"]|"+vd+")",bd="^\\"+fd+yd+"*["+J+"]"+yd+"*$",Cd=new RegExp(bd,"g"),wd=J,Sd="["+wd+"]+((\\-)*["+wd+"])*",Id="a-zA-Z",Pd="["+Id+"]+((\\-)*["+wd+"])*",xd="^("+Sd+"\\.)*"+Pd+"\\.?$",_d=new RegExp(xd,"g"),Ad="tel:",Td=";phone-context=",kd=";isub=";function Dd(e){var t=e.indexOf(Td);if(t<0)return null;var d=t+Td.length;if(d>=e.length)return"";var i=e.indexOf(";",d);return i>=0?e.substring(d,i):e.substring(d)}function Ed(e){return null===e||0!==e.length&&(Cd.test(e)||_d.test(e))}function Nd(e,t){var d,i=t.extractFormattedPhoneNumber,r=Dd(e);if(!Ed(r))throw new Se("NOT_A_NUMBER");if(null===r)d=i(e)||"";else{d="",r.charAt(0)===fd&&(d+=r);var n,a=e.indexOf(Ad);n=a>=0?a+Ad.length:0;var o=e.indexOf(Td);d+=e.substring(n,o)}var s=d.indexOf(kd);if(s>0&&(d=d.substring(0,s)),""!==d)return d}var Ld=250,Od=new RegExp("["+ae+J+"]"),Rd=new RegExp("[^"+J+"#]+$"),qd=!1;function Bd(e,t,d){if(t=t||{},d=new Oe(d),t.defaultCountry&&!d.hasCountry(t.defaultCountry)){if(t.v2)throw new Se("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var i=Fd(e,t.v2,t.extract),r=i.number,n=i.ext,a=i.error;if(!r){if(t.v2){if("TOO_SHORT"===a)throw new Se("TOO_SHORT");throw new Se("NOT_A_NUMBER")}return{}}var o=Wd(r,t.defaultCountry,t.defaultCallingCode,d),s=o.country,l=o.nationalNumber,c=o.countryCallingCode,u=o.countryCallingCodeSource,$=o.carrierCode;if(!d.hasSelectedNumberingPlan()){if(t.v2)throw new Se("INVALID_COUNTRY");return{}}if(!l||l.length<X){if(t.v2)throw new Se("TOO_SHORT");return{}}if(l.length>Q){if(t.v2)throw new Se("TOO_LONG");return{}}if(t.v2){var h=new hd(c,l,d.metadata);return s&&(h.country=s),$&&(h.carrierCode=$),n&&(h.ext=n),h.__countryCallingCodeSource=u,h}var p=!!(t.extended?d.hasSelectedNumberingPlan():s)&&yt(l,d.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:$,valid:p,possible:!!p||!(!0!==t.extended||!d.possibleLengths()||!vt(l,s,d)),phone:l,ext:n}:p?Vd(s,l,n):{}}function Md(e,t,d){if(e)if(e.length>Ld){if(d)throw new Se("TOO_LONG")}else{if(!1===t)return e;var i=e.search(Od);if(!(i<0))return e.slice(i).replace(Rd,"")}}function Fd(e,t,d){var i=Nd(e,{extractFormattedPhoneNumber:function(e){return Md(e,d,t)}});if(!i)return{};if(!et(i))return tt(i)?{error:"TOO_SHORT"}:{};var r=it(i);return r.ext?r:{number:i}}function Vd(e,t,d){var i={country:e,phone:t};return d&&(i.ext=d),i}function Wd(e,t,d,i){var r,n=Wt(lt(e),void 0,t,d,i.metadata),a=n.countryCallingCodeSource,o=n.countryCallingCode,s=n.number;if(o)i.selectNumberingPlan(o);else{if(!s||!t&&!d)return{};i.selectNumberingPlan(t,d),t?r=t:qd&&i.isNonGeographicCallingCode(d)&&(r="001"),o=d||Ge(t,i.metadata)}if(!s)return{countryCallingCodeSource:a,countryCallingCode:o};var l=Bt(lt(s),r,i),c=l.nationalNumber,u=l.carrierCode,$=qt(o,{nationalNumber:c,metadata:i});return $&&(r=$,"001"===$||i.selectNumberingPlan(r)),{country:r,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:c,carrierCode:u}}function Gd(e){return Gd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gd(e)}function jd(e,t){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),d.push.apply(d,i)}return d}function Ud(e){for(var t=1;t<arguments.length;t++){var d=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(d),!0).forEach((function(t){Kd(e,t,d[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):jd(Object(d)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(d,t))}))}return e}function Kd(e,t,d){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:d,enumerable:!0,configurable:!0,writable:!0}):e[t]=d,e}function Yd(e){var t=Hd(e,"string");return"symbol"==Gd(t)?t:t+""}function Hd(e,t){if("object"!=Gd(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=Gd(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Xd(e,t,d){return Bd(e,Ud(Ud({},t),{},{v2:!0}),d)}function Qd(e){return Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qd(e)}function zd(e,t){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),d.push.apply(d,i)}return d}function Jd(e){for(var t=1;t<arguments.length;t++){var d=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(d),!0).forEach((function(t){Zd(e,t,d[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):zd(Object(d)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(d,t))}))}return e}function Zd(e,t,d){return(t=ei(t))in e?Object.defineProperty(e,t,{value:d,enumerable:!0,configurable:!0,writable:!0}):e[t]=d,e}function ei(e){var t=ti(e,"string");return"symbol"==Qd(t)?t:t+""}function ti(e,t){if("object"!=Qd(e)||!e)return e;var d=e[Symbol.toPrimitive];if(void 0!==d){var i=d.call(e,t||"default");if("object"!=Qd(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function di(e,t,d){t&&t.defaultCountry&&!je(t.defaultCountry,d)&&(t=Jd(Jd({},t),{},{defaultCountry:void 0}));try{return Xd(e,t,d)}catch(i){if(!(i instanceof Se))throw i}}function ii(){var e=H(arguments),t=e.text,d=e.options,i=e.metadata;return di(t,d,i)}function ri(){return N(ii,arguments)}var ni=d("2ba5"),ai=d("72d4"),oi=d("3241"),si=d("013f"),li=d("0be3"),ci=d("d8af"),ui=d("c88b"),$i=d("bd6e");const hi="pkey_prod_11430Z6omRl0xpuBVZJWd5qAdwpJDRdK8ZjxN",pi="401012234152001";var mi=d("b012"),gi=d.n(mi),fi=d("9a92");const vi={QTabs:s["a"],QTab:l["a"],QInput:c["a"],QList:u["a"],QItem:$["a"],QItemSection:h["a"],QItemLabel:p["a"],QRadio:m["a"],QAvatar:g["a"],QInnerLoading:f["a"],QSpinner:v["a"],QDialog:y["a"],QSeparator:b["a"],QSpace:C["a"],QForm:w["a"],QCard:S["a"],QCardSection:I["a"],QCardActions:P["a"],QCheckbox:x["a"],QChip:_["a"],QBadge:A["a"],QExpansionItem:T["a"]},yi={"Credit/Debit Card":"CreditCardFormV2","Credit/Debit Card V2":"CreditCardFormV3","Credit/Debit Card KBANK":null,"Thai QR KBANK":null,"WeChat KBANK":null,Amex:"CreditCardFormV2","Thai QR":"QRPaymentForm",Other:"CreditCardFormV2",Alipay:"AliPayForm2",Wechat:"WechatPaymentForm","Vplus Wallet V2":"RequestToPayForm"};var bi={name:"CheckoutV2",components:{...vi,VuePhoneNumberInput:D.a,TitleBar:()=>d.e("signin~31ecd969").then(d.bind(null,"1e1d")),TileBar:()=>d.e("chunk-vendors~cfbf0a2e").then(d.bind(null,"7112")),ScheduleGroup:()=>d.e("chunk-vendors~fdc6512a").then(d.bind(null,"c7ee")),DialogAlert:()=>d.e("chunk-vendors~4b835b6b").then(d.bind(null,"bb5b")),CreditCardFormV2:()=>d.e("chunk-vendors~90da32df").then(d.bind(null,"b60a")),CreditCardFormV3:()=>d.e("app~748942c6").then(d.bind(null,"9d3d")),QRPaymentForm:()=>d.e("app~748942c6").then(d.bind(null,"20ab")),OutOfStockDialog:()=>d.e("chunk-vendors~90da32df").then(d.bind(null,"fa24")),VoucherCard:()=>d.e("chunk-vendors~cfbf0a2e").then(d.bind(null,"222c")),AliPayForm2:()=>d.e("app~40ad7eb2").then(d.bind(null,"3ca5")),WechatPaymentForm:()=>d.e("app~748942c6").then(d.bind(null,"370b")),RequestToPayForm:()=>d.e("chunk-vendors~fdc6512a").then(d.bind(null,"3662")),QRWalletPaymentDialog:()=>d.e("chunk-vendors~d939e436").then(d.bind(null,"727b")),AddAddressDialog:()=>d.e("chunk-vendors~253ae210").then(d.bind(null,"7e93"))},mixins:[ni["a"],ai["a"],oi["a"]],data(){return{paymentComponents:yi,tab:"delivery",comment:"",selectedPaymentMethod:"",selectedAddressIndex:-1,selectedShippingAddress:void 0,selectedBranchIndex:-1,selectedBillingAddressType:-1,billingAddressTypeList:[{type:"USE_DELIVERY_ADDRESS",name:"Use delivery address",DELIVERY:!0,PICKUP:!1,zeroShippingAddress:!1},{type:"USE_SAVED_ADDRESS",name:"Saved address",DELIVERY:!0,PICKUP:!0,zeroShippingAddress:!1},{type:"USE_OTHER_ADDRESS",name:"Other",DELIVERY:!0,PICKUP:!0,zeroShippingAddress:!0}],selectedBillingAddressIndexFromSavedAddress:-1,creditcardTokens:[],selectedCreditcardTokenIndex:-1,selectedNewCreditCard:!1,addressLoading:!1,grandTotalLoading:!1,pricing:{total:null,discount:null,subTotal:null,productList:[],couponCodeList:[],voucherId:[],totalWeight:null},otherBillingAddress:{billingAddress:void 0,billingSubDistrict:void 0,billingDistrict:void 0,billingProvince:void 0,billingPostcode:void 0,billingPhone:void 0,customerFirstName:void 0,customerLastName:void 0,customerEmail:void 0,customerCompanyName:void 0,customerCompanyBranch:void 0,customerTaxId:void 0,requestTaxInvoice:!0},additionalBillingInfo:{customerCompanyName:void 0,customerCompanyBranch:void 0,customerTaxId:void 0},loadingPlaceOrder:!1,dialogNationwide:{show:!1,message:void 0},dialogShippingError:{show:!1,message:void 0},error:null,errorMessage:null,liveAgentLoaded:!1,promptShippingPhone:{show:!1,shippingPhone:void 0,shippingPhoneDummy:void 0,shippingPhoneDummyError:!1,confirm:!1,loading:!1,countryCode:"TH"},contactInfo:{firstName:null,lastName:null,phone:null,phoneDummy:null,phoneError:!1,email:null,countryCode:"TH"},dialogVplusWallet:{show:!1,message:void 0,submessage:void 0},qrWalletDialog:{show:!1,orderId:"",amount:0,currency:"THB"},vplusLoading:!1,vplusLoadingCountdown:"",vplusPointLoading:!1,local:{shippingType:"DELIVERY",addressIndex:-1,branchIndex:-1,shippingAddress:null,shippingAddressList:[],paymentMethod:"",requestTaxInvoice:!1,billingAddressType:-1,billingAddressIndexFromSavedAddress:-1,requestSubstitute:!1,deliveryType:"",couponCode:"",noPlasticBag:!1,voucherCode:"",formValues:{cardCvv:"",cardMonth:"",cardName:"",cardNumber:"",cardYear:"",token:null}},shipping:{showAddressList:!1,showBranchList:!1},payment:{creditcardTokens:[],creditcardTokenIndex:-1,newCreditCard:!0,vplusMobileNumber:"",vplusMemberID:"",vplusMemberIDError:void 0,requestToVplusMobileNumber:"",requestToVplusMobileNumberDummy:null,requestToVplusMobileNumberError:null},delivery:{show:!0,loading:!1,forceNationwide:!1,canNationwide:!0},dialogDelivery:{show:!1,message:void 0,leftButtonText:null,leftButtonCallback:()=>{},rightButtonText:null,rightButtonCallback:()=>{},availableBranch:[],selected:null},dialogMissingInventory:{show:!1,productList:[],onRefresh:()=>{},onRequestSubtitutes:()=>{}},dialogCoupon:{show:!1,message:null},getCostWithShippingResponse:null,canExpress:!1,forceDisableExpress:!1,check1:!1,voucherList:[],voucherRefund:{voucherRefundList:[],voucherRefundEdittingList:[],voucherRefundSelectedList:[],isShowDialog:!1},regularInfo:null,timer:null,tracking:[],isSendBeginCheckoutEvent:!0,addAddressDialog:!1,discountDetail:{promotionDiscount:0,shippingDiscount:0,voucherDiscount:0},expressNearestSlot:null,callCounting:0,isScriptLoading:!1,isPaymentReady:!1,isProcessing:!1,paymentError:null,kPaymentInstance:null}},computed:{...Object(o["b"])("configFile",{paymentMethodsFromConfig:"paymentMethods"}),paymentMethods(){const e=this.paymentMethodsFromConfig.filter(e=>"Vplus Wallet"!==e.id&&"Vplus Wallet V2"!==e.id);return[...e]},...Object(o["b"])("branch",{branchName:"name"}),...Object(o["b"])("cartData",["SelectedInStockList","ScheduleGroups"]),...Object(o["b"])("user",["shippingType","paymentMethod","shippingAddressList","requestTaxInvoice","requestTaxInvoiceType","requestTaxInvoiceSavedAddressIndex","requestSubstitute"]),...Object(o["b"])("member",["vplusMobileNumber","vplusMemberID","vplusPoints","vplusVerified"]),...Object(o["b"])("delivery",["deliveryFee","deliveryMode"]),...Object(o["b"])(["IsBranchCartProductPriceInventoryLoaded"]),loading(){return!this.IsBranchCartProductPriceInventoryLoaded.loaded||!this.$store.getters["cartData/IsLoaded"]||this.$store.getters["cart/loading"]||this.$store.getters["user/loading"]||this.$store.getters["voucher/loading"]},branchList(){return Object(ci["e"])()},currentTime(){return this.$store.getters["cartData/currentTime"]},isNextDayExpress(){const e=n["a"].unix(this.currentTime);return e.hour()>18},deliveryTypes(){return[{name:"REGULAR",displayName:"Regular",description:"Please choose time slot.",disable:!!this.delivery.forceNationwide},{name:"EXPRESS",displayName:"Express",description:this.canExpress?"Deliver as fast as possible (max 15 items or 15 kgs).":"*Express delivery is not available.",disable:!!this.delivery.forceNationwide||!this.canExpress},{name:"NATIONWIDE",displayName:"Nationwide",description:"Delivery will be between 2 to 5 days.",disable:!this.delivery.canNationwide}]},isExpress(){return"EXPRESS"===this.local.deliveryType},isNationwide(){return"NATIONWIDE"===this.local.deliveryType},ScheduleGroupsWithDeliveryFee(){return this.ScheduleGroups?this.getCostWithShippingResponse&&this.getCostWithShippingResponse.shipping&&this.getCostWithShippingResponse.shipping.scheduleList?this.ScheduleGroups.map((e,t)=>this.getCostWithShippingResponse.shipping.scheduleList[t]?{...e,deliveryFee:this.getCostWithShippingResponse.shipping.scheduleList[t].deliveryFee}:{...e,deliveryFee:0}):this.ScheduleGroups.map(e=>({...e,deliveryFee:0})):[]},ScheduleGroupsWithDeliveryFeeWithPricing(){return this.ScheduleGroupsWithDeliveryFee.map(e=>{const t=e.items.map(e=>{const t=this.pricing.productList.find(t=>t.cprcode===e.cprcode);return t?{...e,originalPrice:t.originalPrice,price:t.price,discount:t.discount,rowTotal:t.rowTotal,discountedRowTotal:t.discountedRowTotal!==t.rowTotal?t.discountedRowTotal:void 0}:e});return{...e,items:t}})},shippingTitle(){switch(this.local.shippingType){case"PICKUP":return"Pick-up at";case"DELIVERY":default:return"Deliver to"}},shippingSwitchText(){switch(this.local.shippingType){case"PICKUP":return"Switch to delivery";case"DELIVERY":default:return"Switch to self pick-up"}},formatedName(){return this.local.shippingAddress?this.local.shippingAddress.name:""},formatedAddress(){if(this.local.shippingAddress){const e=this.local.shippingAddress;return`${e.address} ${e.subDistrict} ${e.district} ${e.province} ${e.postcode}`}return""},formatedLocation(){if(this.local.shippingAddress){const e=this.local.shippingAddress.location;return`location: ${e.lat.toFixed(3)},${e.lng.toFixed(3)}`}return""},formatedContact(){if(this.local.shippingAddress){const e=this.local.shippingAddress;let t="";return e.firstname&&(t+=e.firstname),e.lastname&&(t+=" "+e.lastname),this.promptShippingPhone.shippingPhone?t+=" "+this.promptShippingPhone.shippingPhone:e.phone&&(t+=" "+e.phone),e.email?t+=" "+e.email:this.shippingEmail&&(t+=" "+this.shippingEmail),t}return""},formatedShippingAddressList(){return this.local.shippingAddressList?this.local.shippingAddressList.map(e=>({...e,formatedAddress:`${e.address} ${e.subDistrict} ${e.district} ${e.province} ${e.postcode}`})):[]},formatedBranchAddressList(){return this.branchList.map(e=>({...e,formatedAddress:`${e.address} ${e.subDistrict} ${e.district} ${e.province} ${e.postcode}`}))},showChangeAddress(){return"DELIVERY"===this.local.shippingType&&this.local.shippingAddressList.length>0},showChangeBranch(){return"PICKUP"===this.local.shippingType},showAddressList(){return"DELIVERY"===this.local.shippingType&&this.shipping.showAddressList},showAddAddress(){return"PICKUP"!==this.local.shippingType&&(!!this.showAddressList||this.local.shippingAddressList.length<=0)},showBranchList(){return"PICKUP"===this.local.shippingType&&this.shipping.showBranchList},shippingAddressLoading(){return this.loading},paymentMethodLoading(){return this.loading},filteredBillingAddressTypeList(){const e=this.billingAddressTypeList.filter(e=>e[this.local.shippingType]);return this.formatedShippingAddressList.length<=0?e.filter(e=>e.zeroShippingAddress):e},ScheduleGroupsShippingAddressPaymentMethodLoaded(){return this.ScheduleGroups&&!this.loading},isVplusMemberIDError(){return!!this.payment.vplusMemberIDError},refundVoucherCodeList(){return this.voucherRefund.voucherRefundSelectedList.map(e=>e.voucherId)},invalidCreditCard(){if("Credit/Debit Card V2"===this.local.paymentMethod){if(this.local.formValues.token)return!1;const{cardNumber:e,cardName:t,cardMonth:d,cardYear:i,cardCvv:r}=this.local.formValues;if(!e||e.replace(/\D/g,"").length<12)return!0;if(!t)return!0;if(!d)return!0;if(!i)return!0;if(!r||r.length<3)return!0}return!1},isMobile(){return this.$q.screen.width<600},defaultShippingAddressIndex(){return this.$store.getters["user/defaultShippingAddressId"]}},watch:{defaultShippingAddressIndex:{immediate:!0,handler:function(e){this.local.addressIndex=e}},shippingType:{immediate:!0,handler:function(e){switch(e){case"PICKUP":this.local.shippingType=e,this.loadPickUpInfomation();break;case"DELIVERY":this.local.shippingType=e,this.loadDeliveryInfomation();break;default:this.local.shippingType="DELIVERY",this.loadDeliveryInfomation();break}}},"local.shippingType":{immediate:!1,handler:function(e){this.$store.dispatch("user/UpdateShippingType",e),this.getCost()}},shippingAddressList:{immediate:!0,handler:function(e){this.local.shippingAddressList=e}},"local.shippingAddressList":{immediate:!1,handler:function(e){}},"local.shippingAddress":{immediate:!0,handler:function(e){if(e&&(this.getDeliveryFee(e.location),this.contactInfo.firstName=e.firstname||null,this.contactInfo.lastName=e.lastname||null,this.contactInfo.phone=e.phone||null,this.contactInfo.phoneDummy=e.phone||null,this.contactInfo.email=e.email||null,e.phone))try{const t=ri(e.phone);t&&t.country&&(this.contactInfo.countryCode=t.country)}catch(t){}}},"local.deliveryType":{immediate:!1,handler:function(e,t){if(e&&"DELIVERY"===this.local.shippingType)switch(e){case"REGULAR":this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:1}),window.fbq&&window.fbq("trackCustom","set_checkout_option",{checkout_option:"Delivery type",value:1}),this.getCost();break;case"EXPRESS":this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:2}),window.fbq&&window.fbq("trackCustom","set_checkout_option",{checkout_option:"Delivery type",value:2}),this.getNearestExpressSlot(),this.getCost();break;case"NATIONWIDE":{this.$gtag&&this.$gtag.event("set_checkout_option",{checkout_option:"Delivery type",value:3}),window.fbq&&window.fbq("trackCustom","set_checkout_option",{checkout_option:"Delivery type",value:3});const e=this.$store.getters["branch/name"],t=this.$store.getters["branch/code"];return"1000"===t?void this.getCost():(this.delivery.loading=!0,this.dialogDelivery.show=!0,this.dialogDelivery.message=`${this.$t("You are currently shopping at")} ${e}, ${this.$t("However, your address are to be delivered from")} Sukhumvit 33.`,this.dialogDelivery.rightButtonText=this.$t("Apply Nation Wide delivery"),void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:1e3}),this.dialogDelivery.show=!1,this.delivery.loading=!1}))}default:break}}},"local.addressIndex":{immediate:!1,handler:function(e){this.shipping.showAddressList=!1,this.local.shippingAddress=this.$store.getters["user/shippingAddressById"](e),this.$store.dispatch("user/UpdateDefaultShippingAddress",e)}},"local.branchIndex":{immediate:!1,handler:function(e){this.shipping.showBranchList=!this.shipping.showBranchList,e>=0&&this.changeBranch()}},paymentMethod:{immediate:!0,handler:function(e){const t=this.$store.getters["configFile/paymentMethods"];t.find(t=>t.id===e)&&(this.local.paymentMethod=e),"Amex"===e&&this.$store.dispatch("order/ConfigureAmex"),"AmexV2"===e&&this.$store.dispatch("order/ConfigureAmexV2"),"Credit/Debit Card"===e&&this.loadCreditCardToken()}},"local.paymentMethod":{immediate:!1,handler:function(e){"Amex"===e&&this.$store.dispatch("order/ConfigureAmex"),"Credit/Debit Card"===e&&this.loadCreditCardToken(),this.$store.dispatch("user/UpdatePaymentMethod",e)}},requestTaxInvoice:{immediate:!0,handler:function(e){this.local.requestTaxInvoice=e}},"local.requestTaxInvoice":{immediate:!1,handler:function(e){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:e,type:this.local.requestTaxInvoiceType,savedAddressIndex:this.local.requestTaxInvoiceSavedAddressIndex})}},requestTaxInvoiceType:{immediate:!0,handler:function(e){this.local.billingAddressType=e}},"local.billingAddressType":{immediate:!1,handler:function(e){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:this.local.requestTaxInvoice,type:e,savedAddressIndex:this.local.billingAddressIndexFromSavedAddress})}},requestTaxInvoiceSavedAddressIndex:{immediate:!0,handler:function(e){void 0===e&&(this.local.billingAddressIndexFromSavedAddress=-1),e&&(this.local.billingAddressIndexFromSavedAddress=e)}},"local.billingAddressIndexFromSavedAddress":{immediate:!1,handler:function(e){this.$store.dispatch("user/UpdateRequestTaxInvoice",{requestTaxInvoice:this.local.requestTaxInvoice,type:this.local.billingAddressType,savedAddressIndex:e})}},requestSubstitute:{immediate:!0,handler:function(e){void 0===e&&(this.local.requestSubstitute=!1),e&&(this.local.requestSubstitute=e)}},"local.requestSubstitute":{immediate:!1,handler:function(e){this.$store.dispatch("user/UpdateRequestSubstitute",e)}},vplusMobileNumber:{immediate:!0,handler:function(e){e&&(this.payment.vplusMobileNumber=e)}},vplusMemberID:{immediate:!0,handler:function(e){e&&(this.payment.vplusMemberID=e)}},"payment.vplusMobileNumber":{immediate:!1,handler:function(e){e&&this.vplusVerified&&(this.payment.vplusMemberIDError=void 0,this.loadMemberWithPhonenumber(e).catch(e=>{e&&e.response&&e.response.data&&(this.payment.vplusMemberIDError=e.response.data.error)}))}},ScheduleGroups:{immediate:!1,handler:function(){this.computeCanExpress().then(e=>{this.canExpress=e})}},loading:{immediate:!1,handler:function(e){if(!e){this.$store.dispatch("cartData/CreateSchedule").then(()=>this.getCost());let e=this.$store.getters["voucher/voucherList"];if(this.voucherRefund.voucherRefundList=e.map(e=>({...e,selected:!1})),this.isSendBeginCheckoutEvent){if(dataLayer){const e=this.SelectedInStockList.map((e,t)=>Object($i["b"])(e,t,"checkout"));dataLayer.push({event:"begin_checkout",ecommerce:{items:e}})}this.isSendBeginCheckoutEvent=!1}}}},grandTotalLoading:{immediate:!1,handler:function(e,t){e||(this.regularInfo=this.getRegularInfo())}},regularInfo:{immediate:!1,handler:function(e){if(e){const t=n["a"].unix(this.currentTime).tz(),d=t.hour();if(d>=19)return void(this.regularInfo.selectedDate=e.dateOptions[1]);this.regularInfo.selectedDate=e.dateOptions[0]}}},"regularInfo.timeOptions":{immediate:!1,handler:function(e){e&&(this.regularInfo.selectedTime=e[0])}}},created(){window.fbq&&window.fbq("trackCustom","begin_checkout",{currency:"THB"}),this.loadUser(),this.loadMember(),this.$store.dispatch("cartData/GetCurrentTime");const e=this.$store.getters["authentication/userId"];this.$store.dispatch("voucher/getRefundVoucher",e),window.LiveAgent&&(this.liveAgentLoaded=!0)},mounted(){this.$store.dispatch("cartData/GetCurrentTime").then(e=>{this.tracking.push({event:"enterCheckoutPage",timestamp:n["a"].unix(e).tz()}),this.$store.dispatch("cartData/CreateSchedule")}),this.timer=setTimeout(()=>{this.$router.go()},9e5)},methods:{async onSwitchShippingType(){switch(this.local.shippingType){case"DELIVERY":this.loadPickUpInfomation(),this.clearPickupState();break;case"PICKUP":this.loadDeliveryInfomation(),this.clearDeliveryState();break}},loadDeliveryInfomation(){this.local.shippingType="DELIVERY",this.local.shippingAddress=this.$store.getters["user/defaultShippingAddressDetail"]},loadPickUpInfomation(){this.local.shippingType="PICKUP";const e=this.$store.getters["user/user"],t=this.$store.getters["branch/name"],d=Object(ci["b"])(t);e.firstName&&e.lastName?(d.firstname=e.firstName,d.lastname=e.lastName):e.name&&(d.firstname=e.name.split(" ")[0],d.lastname=e.name.split(" ")[1]),e.phone_number&&(d.phone=e.phone_number),e.email&&(d.email=e.email),this.local.shippingAddress={...d,location:{lat:d.latlng[0],lng:d.latlng[1]}}},onUpdateContactPhone(e){this.contactInfo.phone=e.formattedNumber,e.isValid?this.contactInfo.phoneError=!1:this.contactInfo.phoneError=!0},async computeCanExpress(){if(!this.ScheduleGroups)return!1;if(this.ScheduleGroups.length<=0)return!1;const e=this.ScheduleGroups[0].items.reduce((e,t)=>e+t.quantity,0);if(e>15)return!1;const t=n["a"].unix(this.currentTime).tz(),d=this.$store.getters["branch/code"],i=await this.$store.dispatch("deliverySlot/checkSlotIsExpressAvailable",{branch_code:parseInt(d),date_slot:t.format("YYYYMMDD")});return!!i&&!this.forceDisableExpress},clearPickupState(){this.shipping.showBranchList=!1},clearDeliveryState(){this.shipping.showAddressList=!1},onChangeAddress(){this.shipping.showAddressList=!this.shipping.showAddressList},onCloseAddAddressDialog(){this.addAddressDialog=!1,this.shipping.showAddressList=!0},onAddNewAddress(){this.addAddressDialog=!0},onChangeBranch(){this.shipping.showBranchList=!this.shipping.showBranchList},changeBranch(){const e=this.branchList[this.local.branchIndex].code;e&&(this.$store.dispatch("branch/update",{code:e}),this.loadPickUpInfomation())},async loadCreditCardToken(){try{const e=this.$store.getters["user/user"],t=await this.$store.dispatch("order/GetCreditCardToken",{ownerId:e.id});t.length>0?(this.payment.creditcardTokens=t,this.payment.creditcardTokenIndex=0,this.payment.newCreditCard=!1):0===t.length&&(this.payment.newCreditCard=!0)}catch(e){this.payment.newCreditCard=!0}},onCloseShippingError(){this.dialogShippingError={show:!1,message:null}},buildScheduleList(){if(this.ScheduleGroupsWithDeliveryFee)return this.ScheduleGroupsWithDeliveryFee.map(e=>({scheduleId:e.id,preOrder:e.preOrder,mode:e.type,dateTime:e.dateTime,deliveryFee:e.deliveryFee,pickingStatus:"pending"})).map(e=>{let t,d;if("DELIVERY"===this.local.shippingType)switch(d=0,this.local.deliveryType){case"REGULAR":t="REGULAR";break;case"EXPRESS":t="EXPRESS";break;case"NATIONWIDE":t="NATIONWIDE";break}return"PICKUP"===this.local.shippingType&&(t="REGULAR",d=0),{...e,mode:t,deliveryFee:d}})},buildScheduleListForCostCalculation(){if(this.ScheduleGroupsWithDeliveryFee)return this.ScheduleGroupsWithDeliveryFee.map(e=>({scheduleId:e.id,preOrder:e.preOrder,mode:e.type,dateTime:e.dateTime,deliveryFee:e.deliveryFee,pickingStatus:"pending"})).map(e=>{let t,d;if("DELIVERY"===this.local.shippingType)switch(d=0,this.local.deliveryType){case"REGULAR":t="REGULAR";break;case"EXPRESS":t="EXPRESS";break;case"NATIONWIDE":t="NATIONWIDE";break}return"PICKUP"===this.local.shippingType&&(t="REGULAR",d=0),{...e,mode:t,deliveryFee:d}})},buildShipping(e){return e?{scheduleList:this.buildScheduleList(),shippingFirstName:this.contactInfo.firstName||e.firstname,shippingLastName:this.contactInfo.lastName||e.lastname,shippingAddress:e.address,shippingSubDistrict:e.subDistrict,shippingDistrict:e.district,shippingProvince:e.province,shippingPostcode:e.postcode,shippingLat:e.location.lat,shippingLon:e.location.lng,shippingPhone:this.contactInfo.phone||e.phone,shippingEmail:this.contactInfo.email||e.email,shippingType:this.local.shippingType}:{scheduleList:this.buildScheduleList()}},buildShippingForCostCalculation(e){return e?{scheduleList:this.buildScheduleListForCostCalculation(),shippingFirstName:this.contactInfo.firstName||e.firstname,shippingLastName:this.contactInfo.lastName||e.lastname,shippingAddress:e.address,shippingSubDistrict:e.subDistrict,shippingDistrict:e.district,shippingProvince:e.province,shippingPostcode:e.postcode,shippingLat:e.location.lat,shippingLon:e.location.lng,shippingPhone:this.contactInfo.phone||e.phone||"",shippingEmail:this.contactInfo.email||e.email,shippingType:this.local.shippingType}:{scheduleList:this.buildScheduleListForCostCalculation()}},onRemoveVoucher(e){this.voucherList=this.voucherList.filter((t,d,i)=>d!=e),this.getCost()},getCost:gi()((async function(){try{let t,d;this.grandTotalLoading=!0;const i=this.$store.getters["branch/code"],r=this.SelectedInStockList.map(e=>({productName:e.hema_name_en,quantity:e.quantity,cprcode:e.cprcode,remark:e.remark}));if(r.length<=0)throw"Zeros product";if(t={ownerId:this.$store.getters["authentication/userId"],branchId:i.toString(),couponCodeList:[],voucherId:[],productList:r,shipping:this.buildShippingForCostCalculation(this.local.shippingAddress)},d=await this.$store.dispatch("order/GetCost",t),this.getCostWithShippingResponse=null,this.pricing.total=d.grandTotal,this.pricing.subTotal=d.subTotal,this.pricing.deliveryFee=d.deliveryFee,this.pricing.expressShippingCost=d.expressShippingCost,this.pricing.discount=d.cartDiscount,this.pricing.productList=d.productList,this.pricing.totalWeight=d.totalWeight,this.error=null,this.errorMessage=null,d=await this.$store.dispatch("order/GetSuggestion",t),d.calculateCostInput){if(t.couponCodeList=d.calculateCostInput.couponCodeList,[null,void 0,""].indexOf(this.local.couponCode)<0&&t.couponCodeList.push(this.local.couponCode),[null,void 0,""].indexOf(this.local.voucherCode)<0){const i=this.voucherList.find(e=>e.voucherId===this.local.voucherCode);if(i)this.dialogCoupon={show:!0,message:"You have added this voucher."},this.local.voucherCode=null;else{t.voucherId.push(this.local.voucherCode);try{d=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",t),d&&(this.voucherList.push({voucherId:this.local.voucherCode,active:!0}),d=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",t)),this.local.voucherCode=null}catch(e){this.dialogCoupon={show:!0,message:"Voucher code invalid or expired."},this.local.voucherCode=null}}}t.voucherId=this.voucherList.map(e=>e.voucherId),t.voucherId=[...this.refundVoucherCodeList,...t.voucherId],t.voucherId=[...new Set(t.voucherId)];try{d=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",t)}catch(e){throw new Error(e)}}this.getCostWithShippingResponse=d,this.pricing.total=d.grandTotal,this.pricing.subTotal=d.subTotal,this.pricing.deliveryFee=d.deliveryFee,this.pricing.expressShippingCost=d.expressShippingCost,this.pricing.discount=d.cartDiscount,this.pricing.couponCodeList=d.couponCodeList,this.pricing.voucherId=d.voucherId,this.pricing.totalWeight=d.totalWeight,d.bogoDiscount&&(this.pricing.discount+=d.bogoDiscount,this.discountDetail.promotionDiscount=d.bogoDiscount+d.cartDiscount),d.voucherDiscount&&(this.pricing.discount+=d.voucherDiscount,this.discountDetail.voucherDiscount=d.voucherDiscount),d.shippingDiscount&&(this.discountDetail.shippingDiscount=d.shippingDiscount,this.discount+=d.shippingDiscount),this.pricing.productList=d.productList,this.error=null,this.errorMessage=null}catch(e){this.pricing.total="-",this.pricing.subTotal="-",this.pricing.deliveryFee="-",this.pricing.expressShippingCost="-",this.pricing.discount="-",this.pricing.productList=[],this.error=!0,this.errorMessage=e}finally{this.grandTotalLoading=!1}}),300),async getCostWithShipping(){},async getCostWithCoupon(){},async onApplyCouponCode(){this.getCost()},async onApplyVoucherCode(){this.getCost()},onCloseDialogCoupon(){this.dialogCoupon={show:!1,message:null}},async getDeliveryFee(e){try{if("PICKUP"===this.local.shippingType)return this.$store.commit("delivery/setDeliveryFee",0),void this.getCost();this.delivery.loading=!0;const t=await this.$store.dispatch("delivery/GetDeliveryFee",e);if(this.delivery.canNationwide=!0,this.delivery.forceNationwide=!1,this.dialogDelivery.leftButtonText=null,this.dialogDelivery.leftButtonCallback=()=>{},this.dialogDelivery.rightButtonText=null,this.dialogDelivery.rightButtonCallback=()=>{},this.dialogDelivery.selected=null,this.dialogDelivery.availableBranch=[],t){const e=this.$store.getters["branch/name"],d=this.$store.getters["branch/code"];let i=!1,r=null,n=!1,a=null;if(t.success){const o=t.top5.filter(e=>e.cost>=0),s=o.findIndex(e=>1e3===e.br_code)>=0;if(!s){const e=o.findIndex(e=>e.eligible_to_shop_at_33)>=0;e&&o.push({store_name:"Sukhumvit 33",br_code:1e3})}for(let e=0;e<o.length;e++)if(o[e].cost>=0){const t=this.branchList.find(t=>t.code==o[e].br_code.toString());if(t){a=o[e];break}}o.sort((e,t)=>1e3===e.br_code?-1:0);const l=o.reduce((e,t)=>{const d=e.find(e=>e.br_code===t.br_code);return(!d||t.cost<d.cost)&&(d&&e.splice(e.indexOf(d),1),e.push(t)),e},[]);if(this.dialogDelivery.availableBranch=l,a){if(Number(d)!=a.br_code&&(i=!0,r=a),a.eligible_to_shop_at_33&&(n=!0),i&&n&&1e3!==r.br_code)return this.dialogDelivery.show=!0,void(this.dialogDelivery.message=`${this.$t("You are currently shopping at")} ${e}, ${this.$t("However, your delivery address is different")}. ${this.$t("You can choose to switch the delivery branch")}`);if(i)return this.dialogDelivery.show=!0,void(this.dialogDelivery.message=`${this.$t("You are currently shopping at")} ${e}, ${this.$t("However, your delivery address is different")}. ${this.$t("You can choose to switch the delivery branch")}`);if(t.success)return this.local.deliveryType="REGULAR",this.delivery.loading=!1,this.getCost(),void(this.delivery.canNationwide=!1)}}}{const e=this.$store.getters["branch/name"],t=this.$store.getters["branch/code"];return this.delivery.forceNationwide=!0,"1000"===t?(this.local.deliveryType="NATIONWIDE",void(this.delivery.loading=!1)):(this.dialogDelivery.show=!0,this.dialogDelivery.message=`${this.$t("You are currently shopping at")} ${e}, ${this.$t("However, your address are to be delivered from")} Sukhumvit 33.`,this.dialogDelivery.rightButtonText=this.$t("Apply Nationwide delivery"),void(this.dialogDelivery.rightButtonCallback=async()=>{await this.$store.dispatch("branch/update",{code:1e3}),this.local.deliveryType="NATIONWIDE",this.dialogDelivery.show=!1,this.delivery.loading=!1}))}}catch(t){this.delivery.loading=!1}},onAddItems(){this.$router.push("/catalog/New Arrival")},async onPlaceOrder(){let e=await this.$store.dispatch("cartData/GetCurrentTime");if(this.tracking.push({event:"clickPlaceOrder",timestamp:n["a"].unix(e).tz()}),this.loadingPlaceOrder=!0,this.error)return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:"Please add shipping address."};let e=this.$refs["ChooseAddress"];if(e){const t=e.offsetTop;window.scrollTo(0,t)}else if(e=this.$refs["AddNewAddress"],e){const t=e.offsetTop;window.scrollTo(0,t)}else;}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(null===this.local.shippingAddress)return this.$nextTick(()=>{const e=this.$refs["shippingAddress"],t=e.offsetTop;window.scrollTo(0,t),this.dialogShippingError={show:!0,message:"Please add shipping address."}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if([null,void 0,""].indexOf(this.local.paymentMethod)>=0)return this.$nextTick(()=>{const e=this.$refs["paymentDetails"],t=e.offsetTop;window.scrollTo(0,t),this.dialogShippingError={show:!0,message:"Please choose payment method."}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if("Credit/Debit Card"===this.local.paymentMethod&&!1===this.local.newCreditCard&&this.local.creditcardTokenIndex<0)return this.$nextTick(()=>{const e=this.$refs["CreditCardToken"],t=e.offsetTop;window.scrollTo(0,t),this.dialogShippingError={show:!0,message:"Please choose credit card or new card."}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if("Vplus Wallet"===this.local.paymentMethod){if(["",null,void 0].indexOf(this.payment.vplusMobileNumber)>=0)return this.$nextTick(()=>{const e=this.$refs["vplus"],t=e.offsetTop;window.scrollTo(0,t),this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="Please enter Vplus mobile number",this.loadingPlaceOrder=!1}),void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(this.isVplusMemberIDError)return this.$nextTick(()=>{const e=this.$refs["vplus"],t=e.offsetTop;window.scrollTo(0,t),this.loadingPlaceOrder=!1}),void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}))}if(!0===this.local.requestTaxInvoice&&!this.filteredBillingAddressTypeList.some(e=>e.type===this.local.billingAddressType))return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:"Please choose billing address."}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(!0===this.local.requestTaxInvoice&&"USE_SAVED_ADDRESS"===this.local.billingAddressType&&this.local.billingAddressIndexFromSavedAddress<0)return this.$nextTick(()=>{this.$refs["SavedAddress"].focus(),this.dialogShippingError={show:!0,message:"Please choose your saved address."}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(!0===this.local.requestTaxInvoice&&"USE_OTHER_ADDRESS"===this.local.billingAddressType){const e=await this.$refs["form"].validate();if(!1===e)return this.$nextTick(()=>{this.$refs["form"].focus()}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}))}if("PICKUP"===this.local.shippingType&&"USE_DELIVERY_ADDRESS"===this.local.billingAddressType)return this.$q.notify({message:"Please choose billing address in Request tax invoice section.",type:"warning",position:"top",actions:[{label:"Dismiss",handler:()=>{}}]}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));const t=this.$store.getters["authentication/userId"],d=this.$store.getters["branch/code"],i=this.buildShipping(this.local.shippingAddress),r=this.$refs["ScheduleGroup"].reduce((e,t)=>e.concat(t.getProductWithRemarkList()),[]);if(r&&r.length<=0)return void this.$nextTick(()=>{const e=this.$refs["OrderSummary"],t=e.$el.offsetTop;window.scrollTo(0,t),this.dialogShippingError={show:!0,message:"Your order have no items."},this.loadingPlaceOrder=!1,dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"})});if(i){if(void 0===i.shippingPhone||null===i.shippingPhone)return this.promptShippingPhone.show=!this.promptShippingPhone.show,this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(this.local.shippingAddress){const e=[{ref:"contactFirstNameInput",name:"first name"},{ref:"contactLastNameInput",name:"last name"},{ref:"contactEmailInput",name:"email"}];for(const t of e){const e=this.$refs[t.ref];if(e&&!e.validate())return this.$nextTick(()=>{e.$el.scrollIntoView({behavior:"smooth",block:"center"}),e.focus()}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail-invalid-"+t.ref}))}if(this.contactInfo.phoneError||!this.contactInfo.phone){const e=this.$refs.contactPhoneInput;return e&&this.$nextTick(()=>{e.$el.scrollIntoView({behavior:"smooth",block:"center"})}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail-invalid-contactPhoneInput"}))}}if(this.isNationwide&&i.shippingPostcode){const e=await a["a"].isPostalCodeValidAsync(i.shippingPostcode);if(!e)return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:this.$t("Sorry, we cannot deliver to the postal code you entered. This area is currently outside our nationwide delivery service coverage.")+` (${this.$t("Postal code")}: ${i.shippingPostcode})`}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail-postcode-out-of-service"}))}}let o=this.$refs["ScheduleGroup"].map(e=>e.validate());if(o.some(e=>!1===e))switch(this.local.shippingType){case"DELIVERY":return this.$nextTick(()=>{const e=this.$refs["OrderSummary"],t=e.$el.offsetTop;window.scrollTo(0,t-350),this.dialogShippingError={show:!0,message:"Please choose your delivery date."},this.loadingPlaceOrder=!1}),void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));case"PICKUP":return void this.$nextTick(()=>{const e=this.$refs["OrderSummary"],t=e.$el.offsetTop;window.scrollTo(0,t),this.dialogShippingError={show:!0,message:"Please choose your pickup date."},this.loadingPlaceOrder=!1,dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"})})}i.scheduleList=await Promise.all(this.$refs["ScheduleGroup"].map(e=>e.getSchedule()));let s=await Promise.all(this.$refs["ScheduleGroup"].map(e=>e.getEventTracking()));this.tracking=this.tracking.concat(s.flat());let l={};if(this.local.requestTaxInvoice)switch(this.local.billingAddressType){case"USE_DELIVERY_ADDRESS":{const e=await this.$refs["additionalForm"].validate();if(!1===e)return this.$nextTick(()=>{this.$refs["additionalForm"].focus()}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));l={billingAddress:this.local.shippingAddress.address,billingSubDistrict:this.local.shippingAddress.subDistrict,billingDistrict:this.local.shippingAddress.district,billingProvince:this.local.shippingAddress.province,billingPostcode:this.local.shippingAddress.postcode,billingPhone:this.local.shippingAddress.phone,customerFirstName:this.local.shippingAddress.firstname,customerLastName:this.local.shippingAddress.lastname,customerEmail:this.local.shippingAddress.email,customerCompanyName:this.additionalBillingInfo.customerCompanyName,customerCompanyBranch:this.additionalBillingInfo.customerCompanyBranch,customerTaxId:this.additionalBillingInfo.customerTaxId,requestTaxInvoice:!0}}break;case"USE_SAVED_ADDRESS":{var c;const e=await this.$refs["additionalForm"].validate();if(!1===e)return this.$nextTick(()=>{this.$refs["additionalForm"].focus()}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));const t=this.local.shippingAddressList[this.local.billingAddressIndexFromSavedAddress];l={billingAddress:t.address,billingSubDistrict:t.subDistrict,billingDistrict:t.district,billingProvince:t.province,billingPostcode:t.postcode,billingPhone:t.phone,customerFirstName:t.firstname,customerLastName:t.lastname,customerEmail:null!==(c=t.email)&&void 0!==c?c:"",customerCompanyName:this.additionalBillingInfo.customerCompanyName,customerCompanyBranch:this.additionalBillingInfo.customerCompanyBranch,customerTaxId:this.additionalBillingInfo.customerTaxId,requestTaxInvoice:!0}}break;case"USE_OTHER_ADDRESS":l=this.otherBillingAddress,l.requestTaxInvoice=!0;break;default:break}const u={grandTotal:this.pricing.total};let $=this.pricing.couponCodeList;try{const e=await this.$store.dispatch("order/CreateOrder",{userId:t,branch:d,shipping:i,productList:r,couponCodeList:$,voucherId:this.pricing.voucherId,specialComment:this.comment,billingInfo:l,requestSubstitute:this.local.requestSubstitute,noPlasticBag:this.local.noPlasticBag,payment:u,tracking:this.tracking}),n=this.$store.getters["user/user"];switch(this.contactInfo.email&&!n.email&&await this.$store.dispatch("user/UpdateUserInfo",{email:this.contactInfo.email}),this.local.paymentMethod){case"Other":{const t=await this.$store.dispatch("order/PayByOther",e),d=this.$refs.payment[0];d.setInfo(t),d.submit(),this.sendAddPaymentInfoEvent(e,"Other")}break;case"Credit/Debit Card":{let t;t=this.payment.creditcardTokenIndex>=0?await this.$store.dispatch("order/PayByCreditCard",{order:e,encryptedToken:this.payment.creditcardTokens[this.payment.creditcardTokenIndex].encryptedToken}):await this.$store.dispatch("order/PayByCreditCard",{order:e});const d=this.$refs.payment[0];d.setInfo(t),d.submit()}break;case"Credit/Debit Card V2":{const t=this.$refs.payment[0];if(!this.local.formValues.token)try{t.validateFormInput()}catch(h){return void this.$nextTick(()=>{this.dialogShippingError={show:!0,message:h},this.loadingPlaceOrder=!1})}let d,i={cardNumber:this.local.formValues.cardNumber,expirationMonth:this.local.formValues.cardMonth,expirationYear:this.local.formValues.cardYear,securityCode:this.local.formValues.cardCvv,name:this.local.formValues.cardName};if(d=await this.$store.dispatch("order/PayByCreditCardV2",{order:e,token:this.local.formValues.token,cardData:i}),(null==d.cardToken||void 0==d.cardToken)&&d.resultMessage)return this.$nextTick(()=>{this.dialogShippingError={show:!0,message:d.resultMessage}}),this.loadingPlaceOrder=!1,void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));t.setInfo(d),t.submit(),this.sendAddPaymentInfoEvent(e,"Credit/Debit Card")}break;case"Thai QR":{let t;t=await this.$store.dispatch("order/PayByThaiQR",{order:e});const d=this.$refs.payment[0];d.setInfo({...t,amount:this.pricing.total,referenceNo:e.orderId}),d.setOrder(e),d.setPricing(this.pricing),d.submit(),this.sendAddPaymentInfoEvent(e,"ThaiQR")}break;case"Amex":{const t=await this.$store.dispatch("order/PayByAmex",e);if(!window.Checkout)throw new Error("Cannot connect AMEX");window.Checkout.configure({session:{id:t.session.id},interaction:{merchant:{name:t.merchant}}}),window.Checkout.showPaymentPage()}break;case"AmexV2":{const t=await this.$store.dispatch("order/GetOrder",{orderId:e.orderId}),d=await this.$store.dispatch("order/GetCostWithShippingWithCoupon",t),i=await this.$store.dispatch("order/PayByAmexV2",{...e,grandTotal:d.grandTotal});if(!window.Checkout)throw new Error("Cannot connect AMEX");window.Checkout.configure({session:{id:i.session.id}}),window.Checkout.showPaymentPage()}break;case"Vplus Wallet":if(this.payment.vplusMemberID&&this.payment.vplusMobileNumber){e.memberId=this.payment.vplusMemberID,e.mobile=this.payment.vplusMobileNumber;const t=await this.$store.dispatch("order/PayByWallet",e);let d=!1;switch(t.statusCode){case 500:this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message=t.message,d=!0;break;case 200:this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="Please check you Vplus wallet application\nfor approval of the wallet transaction.",this.dialogVplusWallet.submessage="If the notification doesn't show up\nyou may need to restart the app.";break;default:break}let i=3e5,r=1e3,n=0;this.vplusLoading=!0;while(this.vplusLoading&&!d){if(n%(3*r)===0)try{const t=await this.$store.dispatch("order/GetOrderStatus",{orderId:e.orderId});if(t.payment&&t.payment.isPaid){await this.$router.replace({name:"OrderStatus",params:{id:t.orderId,status:"success"},query:{amount:t.payment.grandTotal}});break}}catch(h){break}if(await Object(li["a"])(r),n+=r,this.vplusLoadingCountdown=Math.floor((i-n)/1e3/60)+":"+String((i-n)/1e3%60).padStart(2,"0"),n>i){this.vplusLoadingCountdown="";break}}this.vplusLoading=!1}else this.dialogVplusWallet.show=!0,this.dialogVplusWallet.message="You do not have Vplus member";case"Alipay":{const t=await this.$store.dispatch("order/PayByAliPay",e),d=this.$refs.payment[0];d.setInfo(t),d.submit(),this.sendAddPaymentInfoEvent(e,"AliPay")}break;case"Wechat":{const t=await this.$store.dispatch("order/PayByWeChat",e),d=this.$refs.payment[0];d.setInfo(t),d.setOrder(e),d.setPricing(this.pricing),d.submit(),this.sendAddPaymentInfoEvent(e,"Wechat")}break;case"Vplus Wallet V2":{const t=this.$refs.payment[0],d=t.local.selectedOption;let i,r;switch(d){case"My wallet":i=t.local.payment.vplusMobileNumber;break;case"Other's wallet":i=t.local.payment.requestToVplusMobileNumber,r=t.local.payment.requestToVplusMobileNumberError;break;default:break}if(r)return this.loadingPlaceOrder=!1,this.dialogShippingError={show:!0,message:"Invalid VPlus phone number."},void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));if(!i)return this.$nextTick(()=>{this.loadingPlaceOrder=!1,this.dialogShippingError={show:!0,message:"Please type VPlus mobile number."}}),void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}));"0"===i[0]&&(i="+66"+i.substring(1));try{const d=await this.$store.dispatch("order/PayByWalletRequestToPay",{order:e,phoneNumber:i});t.setInfo(d),t.setOrder(e),t.setPricing(this.pricing),t.submit(),this.sendAddPaymentInfoEvent(e,"Wallet")}catch(h){return this.loadingPlaceOrder=!1,this.dialogShippingError={show:!0,message:h},void(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}))}}break;case"Credit/Debit Card KBANK(PROD)":await this.processKBankCreditCardPaymentProd(e);break;case"Thai QR KBANK":await this.processKBankQRPayment(e);break;case"QR Wallet":this.qrWalletDialog={show:!0,orderId:e.orderId,amount:this.pricing.total,currency:"THB"},this.sendAddPaymentInfoEvent(e,"QR Wallet");break;default:break}dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-success"})}catch(h){if(dataLayer&&dataLayer.push({event:"checkout",event_action:"click_place_order",event_label:"status-fail"}),h.response&&h.response.data&&h.response.data.error){let e=JSON.parse(h.response.data.error);if(e&&e.missingInventory){this.dialogMissingInventory.show=!0;let t=[];for(let d=0;d<r.length;d++)for(let i=0;i<e.missingInventory.length;i++)r[d].iprcode===e.missingInventory[i]&&t.push(r[d]);this.dialogMissingInventory.productList=t,this.dialogMissingInventory.onRefresh=()=>{window.location.replace("/cart")}}}}finally{if(this.vplusLoadingCountdown="","Credit/Debit Card KBANK(DEV)"===this.local.paymentMethod||"Credit/Debit Card KBANK(PROD)"===this.local.paymentMethod)return;this.loadingPlaceOrder=!1}},removeOldPaymentContent(){const e=this.$refs["k-payment-form-container"];while(e.firstChild)e.removeChild(e.firstChild);const t=document.querySelector("div.payment-container[_kpayment]");t&&t.remove()},async loadPaymentScript(){const e=document.createElement("script");return e.src="https://dev-kpaymentgateway.kasikornbank.com/ui/v2/kpayment.min.js",e.async=!0,new Promise((t,d)=>(e.onload=()=>t(),e.onerror=()=>d(new Error("Failed to load KPayment script")),document.head.appendChild(e),window.KPayment.onClose(this.kpaymentCloseHandler),t()))},kpaymentCloseHandler(){this.loadingPlaceOrder=!1},async loadKBankScript(e,t){const d=document.createElement("form");d.id="k-payment-form",d.method="POST",d.action="";const i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://kpaymentgateway.kasikornbank.com/ui/v2/kpayment.min.js",i.setAttribute("data-apikey",hi),i.setAttribute("data-amount",this.pricing.total),i.setAttribute("data-currency","THB"),i.setAttribute("data-payment-methods",e),i.setAttribute("data-name","Villa Market JP"),"card"===e&&i.setAttribute("data-mid",pi),i.setAttribute("data-customer-id",t.ownerId),i.setAttribute("data-order-id",""),i.setAttribute("data-show-button",!1),d.appendChild(i),document.body.appendChild(d);const r=this.$refs["k-payment-form-container"];return r.appendChild(d),new Promise(e=>{i.onload=()=>{e()}})},async processKBankCreditCardPaymentProd(e){window.KPayment||(await this.loadKBankScript("card",e),window.KPayment.onClose(this.kpaymentCloseHandler));var t=null;try{const d=Object(fi["a"])("/api/payment3api/kbank/user"),i=await fetch(`${d}?user_id=${e.ownerId}`),r=await i.json();t=null===r||void 0===r?void 0:r.kbank_id}catch{}window.KPayment.configure({publicKey:hi,amount:this.pricing.total,currency:"THB",name:"Villa Market JP",description:"Payment for order "+e.orderId,paymentMethods:"card",orderId:"",customerId:t,showButton:!1,mid:pi});const d=document.getElementById("k-payment-form");d.action="https://shop.villamarket.com/api/payment3api/cardpayment";const i=document.createElement("input");i.type="hidden",i.name="orderId",i.value=e.orderId,d.appendChild(i);const r=document.createElement("input");r.type="hidden",r.name="userId",r.value=e.ownerId,d.appendChild(r);const n=document.createElement("input");n.type="hidden",n.name="grandTotal",n.value=this.pricing.total,d.appendChild(n);const a=document.createElement("input");a.type="hidden",a.name="basketId",a.value=e.basketId,d.appendChild(a);const o=document.createElement("input");o.type="hidden",o.name="customerId",o.value=e.ownerId,d.appendChild(o),window.KPayment.create(),window.KPayment.show()},async getQROrderId(e){const t={orderid:e.orderId,source:"qr"},d=await this.$store.dispatch("order/CreateKBankOrder",t);return{qrOrderId:d.id,amount:d.amount}},async processKBankQRPayment(e){window.KPayment||(await this.loadKBankScript("qr",e),window.KPayment.onClose(this.kpaymentCloseHandler));const{qrOrderId:t,amount:d}=await this.getQROrderId(e);window.KPayment.configure({publicKey:hi,amount:d,currency:"THB",name:"Villa Market JP",description:"Payment for order "+e.orderId,paymentMethods:"qr",orderId:t,customerId:e.ownerId,showButton:!1});const i=document.getElementById("k-payment-form");i.action="https://shop.villamarket.com/api/payment3/qrcallback";const r=document.createElement("input");r.type="hidden",r.name="orderId",r.value=e.orderId,i.appendChild(r);const n=document.createElement("input");n.type="hidden",n.name="status",n.value="success",i.appendChild(n);const a=document.createElement("input");a.type="hidden",a.name="amount",a.value=d,i.appendChild(a),window.KPayment.create(),window.KPayment.show()},onDeliveryNationwide(){this.dialogNationwide.show=!1},onContactUs(){this.$router.push("/contact")},async openChat(){window.LiveAgent.clearAllUserDetails();const e=this.$store.getters["user/user"];e&&(e.name&&window.LiveAgent.addUserDetail("firstName",e.name),e.email&&window.LiveAgent.addUserDetail("email",e.email),e.phone_number&&window.LiveAgent.addUserDetail("phone",e.phone_number));const t=await this.$store.dispatch("authentication/GetUserInfo");t&&(t.attributes?(t.attributes.name&&window.LiveAgent.addUserDetail("firstName",t.attributes.name),t.attributes.phone_number&&window.LiveAgent.addUserDetail("phone",t.attributes.phone_number),t.attributes.email&&window.LiveAgent.addUserDetail("email",t.attributes.email)):(t.name&&window.LiveAgent.addUserDetail("firstName",t.name),t.email&&window.LiveAgent.addUserDetail("email",t.email))),window.chatButton.onClick()},onCancelPrompShippingAddress(){this.promptShippingPhone.show=!this.promptShippingPhone.show,this.promptShippingPhone.confirm=!1,this.promptShippingPhone.shippingPhoneDummyError=!1,this.promptShippingPhone.shippingPhoneDummy=void 0},async onConfirmPrompShippingAddress(){const e=this.$refs["PromptShippingPhone"].isValid;if(e)try{this.promptShippingPhone.loading=!0,this.local.shippingAddress.phone=this.promptShippingPhone.shippingPhone,await this.$store.dispatch("user/UpdateUserInfo",{phone_number:this.promptShippingPhone.shippingPhone}),this.promptShippingPhone.confirm=!0}catch(t){}finally{this.promptShippingPhone.show=!this.promptShippingPhone.show,this.promptShippingPhone.loading=!1}else this.promptShippingPhone.shippingPhoneDummyError=!0},async onLiveChat(){if(this.dialogNationwide=!1,this.liveAgentLoaded)return void await this.openChat();let e=!1;e?(await this.loadLiveAgent(),await this.openChat()):(this.$store.commit("customerChat/setModal",!0),this.$store.commit("customerChat/setMinimize",!1))},async loadLiveAgent(){const e="https://villamarket.ladesk.com/scripts/track.js",t="j24z1lfr";return Object(ui["a"])(e,"la_x2s6df8d",(function(e){window.LiveAgentID=t,window.chatButton=window.LiveAgent.createButton(t,e,"NOTE")}))},onUpdatePromptShippingPhone(e){this.promptShippingPhone.shippingPhone=e.formattedNumber,e.isValid&&(this.promptShippingPhone.shippingPhoneDummyError=!1)},onUpdateRequestToVplusMobileNumber(e){this.payment.requestToVplusMobileNumber=e.formattedNumber,e.isValid&&(this.payment.requestToVplusMobileNumberError=!1)},onCloseDialogVplusWallet(){this.dialogVplusWallet.show=!this.dialogVplusWallet.show,this.dialogVplusWallet.message=void 0,this.dialogVplusWallet.submessage=void 0},onQRWalletPaymentSuccess(e){this.qrWalletDialog.show=!1,this.$router.replace({name:"OrderStatus",params:{id:this.qrWalletDialog.orderId,status:"success"},query:{amount:this.qrWalletDialog.amount}})},onQRWalletPaymentFailed(e){this.qrWalletDialog.show=!1,this.loadingPlaceOrder=!1,this.$q.notify({type:"negative",message:this.$t("Payment failed"),caption:this.$t("Please try again or choose a different payment method")})},onQRWalletPaymentTimeout(){this.qrWalletDialog.show=!1,this.loadingPlaceOrder=!1,this.$q.notify({type:"warning",message:this.$t("Payment timeout"),caption:this.$t("The payment session has expired. Please try again.")})},onQRWalletPaymentCancelled(){this.qrWalletDialog.show=!1,this.loadingPlaceOrder=!1},$priceFormat(e){return Object(si["a"])(e)},onSelectVoucher(){this.voucherRefund.voucherRefundEdittingList=JSON.parse(JSON.stringify(this.voucherRefund.voucherRefundList)),this.voucherRefund.isShowDialog=!0},onVoucherDialogConfirm(){this.voucherRefund.voucherRefundSelectedList=this.voucherRefund.voucherRefundEdittingList.filter(e=>1==e.selected),this.voucherRefund.voucherRefundList=JSON.parse(JSON.stringify(this.voucherRefund.voucherRefundEdittingList)),this.getCost()},onVoucherDialogCancel(){},getRegularInfo(){let e=this.$refs["ScheduleGroup"];if(e)return e.find(e=>"Regular"===e.group.title2)},onInputCardName(e){this.local.formValues.cardName=e},onInputCardNumber(e){this.local.formValues.cardNumber=e},onInputCardMonth(e){this.local.formValues.cardMonth=e},onInputCardYear(e){this.local.formValues.cardYear=e},onInputCardCVV(e){this.local.formValues.cardCvv=e},onInputCardToken(e){this.local.formValues.token=e},async getNearestExpressSlot(){const e=Object(n["a"])().tz().format("YYYYMMDD"),t=this.$store.getters["branch/code"];try{const d=await this.$store.dispatch("deliverySlot/checkSlot",{branch_code:parseInt(t),date_slot:e}),{hourSlots:i}=d,r=i.find(e=>e.available>0&&e.express);if(r){const e=Object(n["a"])().tz(),t=e.set("second",0).set("minute",0).set("hour",0),d=`${t.add(r.hour,"hour").format("h:mm A")} - ${t.add(r.hour+1,"hour").format("h:mm A")}`;this.expressNearestSlot={...r,label:d}}else this.expressNearestSlot=null}catch(d){this.expressNearestSlot=null}},async onSwitchBranch(e){try{await this.$store.dispatch("branch/update",{code:e.br_code}),1e3===e.br_code?(this.local.deliveryType="REGULAR","dist"in e||(this.canExpress=!1,this.forceDisableExpress=!0),this.delivery.canNationwide=!1):"EXPRESS"===this.local.deliveryType?this.local.deliveryType="EXPRESS":this.local.deliveryType="REGULAR",this.getCost(),this.delivery.canNationwide=!1,this.dialogDelivery.show=!1,this.delivery.loading=!1,this.dialogDelivery.leftButtonText=null,this.dialogDelivery.leftButtonCallback=()=>{},this.dialogDelivery.rightButtonText=null,this.dialogDelivery.rightButtonCallback=()=>{},this.dialogDelivery.selected=null,this.dialogDelivery.availableBranch=[]}catch(t){}}},beforeDestroy(){this.vplusLoading=!1,clearTimeout(this.timer)}},Ci=bi,wi=(d("e560"),d("2877")),Si=Object(wi["a"])(Ci,i,r,!1,null,"91abcd60",null);t["default"]=Si.exports},e560:function(e,t,d){"use strict";d("75b9")},e974:function(e,t,d){var i={"./alipay_logo.jpg":"c7ef","./amex.svg":"8561","./jcb.svg":"7fd1","./master-card.svg":"17f9","./scb-logo.svg":"f3be","./thai_qr.png":"4c5e","./union.svg":"61c7","./visa-2014.svg":"8a6f","./visa-old.svg":"32c9","./visa.svg":"2af7","./wallet-logo.png":"fedc","./wallet-logo.svg":"5fc5","./wechat-pay.svg":"fdfa","./wechat-payment-white.png":"81fa"};function r(e){var t=n(e);return d(t)}function n(e){if(!d.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=n,e.exports=r,r.id="e974"}}]);