Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.145.32.238
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/woocommerce-payments/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/woocommerce-payments/dist/index.js
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={7138:(e,t)=>{"use strict";const n={setOnLoadError:e=>{},setOnLoaderStart:e=>{}},o={"account-onboarding":{setFullTermsOfServiceUrl:e=>{},setRecipientTermsOfServiceUrl:e=>{},setPrivacyPolicyUrl:e=>{},setSkipTermsOfServiceCollection:e=>{},setCollectionOptions:e=>{},setOnExit:e=>{},setOnStepChange:e=>{}},"account-management":{setCollectionOptions:e=>{}},"notification-banner":{setCollectionOptions:e=>{},setOnNotificationsChange:e=>{}},payments:{setDefaultFilters:e=>{}},"payment-details":{setPayment:e=>{},setOnClose:e=>{}},"tax-settings":{setHideProductTaxCodeSelector:e=>{},setDisplayHeadOfficeCountries:e=>{},setOnTaxSettingsUpdated:e=>{}},"tax-registrations":{setOnAfterTaxRegistrationAdded:e=>{},setDisplayCountries:e=>{}}},r={"account-onboarding":"stripe-connect-account-onboarding",payments:"stripe-connect-payments","payment-details":"stripe-connect-payment-details",payouts:"stripe-connect-payouts","payouts-list":"stripe-connect-payouts-list",balances:"stripe-connect-balances","account-management":"stripe-connect-account-management","notification-banner":"stripe-connect-notification-banner",documents:"stripe-connect-documents","tax-registrations":"stripe-connect-tax-registrations","tax-settings":"stripe-connect-tax-settings"},a="loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used",i="https://connect-js.stripe.com/v1.0/connect.js";let s=null;const c=(e,t)=>{var a;const i=(()=>{try{return t.fetchClientSecret()}catch(e){return Promise.reject(e)}})(),s=null!==(a=t.metaOptions)&&void 0!==a?a:{},c=e.then((e=>e.initialize(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},s),{eagerClientSecretPromise:i})}))));return{create:e=>{let t=r[e];t||(t=e);const a=document.createElement(t),i=(e=>e in o)(e)?o[e]:{},s=Object.assign(Object.assign({},i),n);for(const e in s)a[e]=function(t){c.then((()=>{this[`${e}InternalOnly`](t)}))};return c.then((t=>{if(!a.isConnected&&!a.setConnector){const e=a.style.display;a.style.display="none",document.body.appendChild(a),document.body.removeChild(a),a.style.display=e}if(!a||!a.setConnector)throw new Error(`Element ${e} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);a.setConnector(t.connect)})),a},update:e=>{c.then((t=>{t.update(e)}))},debugInstance:()=>c,logout:()=>c.then((e=>e.logout()))}},d=e=>(window.StripeConnect=window.StripeConnect||{},window.StripeConnect.optimizedLoading=!0,{initialize:t=>{var n;const o=null!==(n=t.metaOptions)&&void 0!==n?n:{};return e.init(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},o),{sdk:!0,sdkOptions:{sdkVersion:"3.3.15"}})}))}});t.loadConnectAndInitialize=e=>{const t=(null!==s||(s=new Promise(((e,t)=>{if("undefined"!=typeof window)if(window.StripeConnect&&console.warn(a),window.StripeConnect){const t=d(window.StripeConnect);e(t)}else try{let n=document.querySelectorAll(`script[src="${i}"]`)[0]||document.querySelectorAll('script[src="https://connect-js.stripe.com/v0.1/connect.js"]')[0]||null;n?console.warn(a):n||(n=(()=>{const e=document.createElement("script");if(e.src=i,!document.head)throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");return document.head.appendChild(e),e})()),n.addEventListener("load",(()=>{if(window.StripeConnect){const t=d(window.StripeConnect);e(t)}else t(new Error("Connect.js did not load the necessary objects"))})),n.addEventListener("error",(()=>{t(new Error("Failed to load Connect.js"))}))}catch(e){t(e)}else t("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.")}))),s);if(null==e)throw new Error("You must provide required parameters to initialize Connect");return c(t,e)}},4759:(e,t,n)=>{e.exports=n(7138)},2485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2838:function(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,o,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,o){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return o&&t(a,o.prototype),a},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var a=Object.hasOwnProperty,i=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,l=Object.freeze,u=Object.seal,m=Object.create,p="undefined"!=typeof Reflect&&Reflect,y=p.apply,h=p.construct;y||(y=function(e,t,n){return e.apply(t,n)}),l||(l=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t){return n(e,o(t))});var f,_=N(Array.prototype.forEach),g=N(Array.prototype.pop),v=N(Array.prototype.push),w=N(String.prototype.toLowerCase),b=N(String.prototype.toString),E=N(String.prototype.match),$=N(String.prototype.replace),S=N(String.prototype.indexOf),x=N(String.prototype.trim),k=N(RegExp.prototype.test),C=(f=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(f,t)});function N(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return y(e,t,o)}}function I(e,t,n){var o;n=null!==(o=n)&&void 0!==o?o:w,i&&i(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var c=n(a);c!==a&&(s(t)||(t[r]=c),a=c)}e[a]=!0}return e}function T(e){var t,n=m(null);for(t in e)!0===y(a,e,[t])&&(n[t]=e[t]);return n}function A(e,t){for(;null!==e;){var n=d(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var O=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=l(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=u(/<%[\w\W]*|[\w\W]*%>/gm),H=u(/\${[\w\W]*}/gm),W=u(/^data-[\-\w.\u00B7-\uFFFF]/),G=u(/^aria-[\-\w]+$/),q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=u(/^(?:\w+script|data):/i),K=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.5.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,i=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,d=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,y=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,f=n.DOMParser,N=n.trustedTypes,ee=u.prototype,te=A(ee,"cloneNode"),ne=A(ee,"nextSibling"),oe=A(ee,"childNodes"),re=A(ee,"parentNode");if("function"==typeof c){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(N,a),se=ie?ie.createHTML(""):"",ce=i,de=ce.implementation,le=ce.createNodeIterator,ue=ce.createDocumentFragment,me=ce.getElementsByTagName,pe=a.importNode,ye={};try{ye=T(i).documentMode?i.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof re&&de&&void 0!==de.createHTMLDocument&&9!==ye;var fe,_e,ge=V,ve=Y,we=H,be=W,Ee=G,$e=Q,Se=K,xe=J,ke=q,Ce=null,Ne=I({},[].concat(o(O),o(M),o(L),o(D),o(P))),Ie=null,Te=I({},[].concat(o(F),o(z),o(B),o(U))),Ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,Me=null,Le=!0,je=!0,De=!1,Re=!0,Pe=!1,Fe=!0,ze=!1,Be=!1,Ue=!1,Ve=!1,Ye=!1,He=!1,We=!0,Ge=!1,qe=!0,Qe=!1,Ke={},Ze=null,Je=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,et=I({},["audio","video","img","source","image","track"]),tt=null,nt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",it=at,st=!1,ct=null,dt=I({},[ot,rt,at],b),lt=["application/xhtml+xml","text/html"],ut=null,mt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=T(t),fe=fe=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===fe?b:w,Ce="ALLOWED_TAGS"in t?I({},t.ALLOWED_TAGS,_e):Ne,Ie="ALLOWED_ATTR"in t?I({},t.ALLOWED_ATTR,_e):Te,ct="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,b):dt,tt="ADD_URI_SAFE_ATTR"in t?I(T(nt),t.ADD_URI_SAFE_ATTR,_e):nt,Xe="ADD_DATA_URI_TAGS"in t?I(T(et),t.ADD_DATA_URI_TAGS,_e):et,Ze="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,_e):Je,Oe="FORBID_TAGS"in t?I({},t.FORBID_TAGS,_e):{},Me="FORBID_ATTR"in t?I({},t.FORBID_ATTR,_e):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,je=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Pe=t.SAFE_FOR_TEMPLATES||!1,Fe=!1!==t.SAFE_FOR_XML,ze=t.WHOLE_DOCUMENT||!1,Ve=t.RETURN_DOM||!1,Ye=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,Ue=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,qe=!1!==t.KEEP_CONTENT,Qe=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,it=t.NAMESPACE||at,Ae=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(je=!1),Ye&&(Ve=!0),Ke&&(Ce=I({},o(P)),Ie=[],!0===Ke.html&&(I(Ce,O),I(Ie,F)),!0===Ke.svg&&(I(Ce,M),I(Ie,z),I(Ie,U)),!0===Ke.svgFilters&&(I(Ce,L),I(Ie,z),I(Ie,U)),!0===Ke.mathMl&&(I(Ce,D),I(Ie,B),I(Ie,U))),t.ADD_TAGS&&(Ce===Ne&&(Ce=T(Ce)),I(Ce,t.ADD_TAGS,_e)),t.ADD_ATTR&&(Ie===Te&&(Ie=T(Ie)),I(Ie,t.ADD_ATTR,_e)),t.ADD_URI_SAFE_ATTR&&I(tt,t.ADD_URI_SAFE_ATTR,_e),t.FORBID_CONTENTS&&(Ze===Je&&(Ze=T(Ze)),I(Ze,t.FORBID_CONTENTS,_e)),qe&&(Ce["#text"]=!0),ze&&I(Ce,["html","head","body"]),Ce.table&&(I(Ce,["tbody"]),delete Oe.tbody),l&&l(t),ut=t)},ht=I({},["mi","mo","mn","ms","mtext"]),ft=I({},["foreignobject","annotation-xml"]),_t=I({},["title","style","font","a","script"]),gt=I({},M);I(gt,L),I(gt,j);var vt=I({},D);I(vt,R);var wt=function(e){v(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},bt=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ie[e])if(Ve||Ye)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,n;if(Ue)e="<remove></remove>"+e;else{var o=E(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===fe&&it===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ie?ie.createHTML(e):e;if(it===at)try{t=(new f).parseFromString(r,fe)}catch(e){}if(!t||!t.documentElement){t=de.createDocument(it,"template",null);try{t.documentElement.innerHTML=st?se:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),it===at?me.call(t,ze?"html":"body")[0]:ze?t.documentElement:a},$t=function(e){return le.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},St=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof y)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(t){return"object"===e(d)?t instanceof d:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,n){he[e]&&_(he[e],(function(e){e.call(r,t,n,ut)}))},Ct=function(e){var t;if(kt("beforeSanitizeElements",e,null),St(e))return wt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=_e(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!xt(e.firstElementChild)&&(!xt(e.content)||!xt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&k(/<template/i,e.innerHTML))return wt(e),!0;if(7===e.nodeType)return wt(e),!0;if(Fe&&8===e.nodeType&&k(/<[/\w]/g,e.data))return wt(e),!0;if(!Ce[n]||Oe[n]){if(!Oe[n]&&It(n)){if(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(qe&&!Ze[n]){var o=re(e)||e.parentNode,a=oe(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i){var s=te(a[i],!0);s.__removalCount=(e.__removalCount||0)+1,o.insertBefore(s,ne(e))}}return wt(e),!0}return e instanceof u&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=w(e.tagName),o=w(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===at?"svg"===n:t.namespaceURI===ot?"svg"===n&&("annotation-xml"===o||ht[o]):Boolean(gt[n]):e.namespaceURI===ot?t.namespaceURI===at?"math"===n:t.namespaceURI===rt?"math"===n&&ft[o]:Boolean(vt[n]):e.namespaceURI===at?!(t.namespaceURI===rt&&!ft[o])&&!(t.namespaceURI===ot&&!ht[o])&&!vt[n]&&(_t[n]||!gt[n]):!("application/xhtml+xml"!==fe||!ct[e.namespaceURI]))}(e)?(wt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=$(t,ge," "),t=$(t,ve," "),t=$(t,we," "),e.textContent!==t&&(v(r.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(wt(e),!0)},Nt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in i||n in mt))return!1;if(je&&!Me[t]&&k(be,t));else if(Le&&k(Ee,t));else if(!Ie[t]||Me[t]){if(!(It(e)&&(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&k(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&k(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(tt[t]);else if(k(ke,$(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Xe[e])if(De&&!k($e,$(n,Se,"")));else if(n)return!1;return!0},It=function(e){return"annotation-xml"!==e&&E(e,xe)},Tt=function(t){var n,o,a,i;kt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie};for(i=s.length;i--;){var d=n=s[i],l=d.name,u=d.namespaceURI;if(o="value"===l?n.value:x(n.value),a=_e(l),c.attrName=a,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,c),o=c.attrValue,Fe&&k(/((--!?|])>)|<\/(style|title)/i,o))bt(l,t);else if(!c.forceKeepAttr&&(bt(l,t),c.keepAttr))if(Re||!k(/\/>/i,o)){Pe&&(o=$(o,ge," "),o=$(o,ve," "),o=$(o,we," "));var m=_e(t.nodeName);if(Nt(m,a,o)){if(!Ge||"id"!==a&&"name"!==a||(bt(l,t),o="user-content-"+o),ie&&"object"===e(N)&&"function"==typeof N.getAttributeType)if(u);else switch(N.getAttributeType(m,a)){case"TrustedHTML":o=ie.createHTML(o);break;case"TrustedScriptURL":o=ie.createScriptURL(o)}try{u?t.setAttributeNS(u,l,o):t.setAttribute(l,o),St(t)?wt(t):g(r.removed)}catch(e){}}}else bt(l,t)}kt("afterSanitizeAttributes",t,null)}},At=function e(t){var n,o=$t(t);for(kt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)kt("uponSanitizeShadowNode",n,null),Ct(n)||(n.content instanceof s&&e(n.content),Tt(n));kt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,i,c,l,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((st=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xt(t)){if("function"!=typeof t.toString)throw C("toString is not a function");if("string"!=typeof(t=t.toString()))throw C("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(xt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Be||yt(m),r.removed=[],"string"==typeof t&&(Qe=!1),Qe){if(t.nodeName){var p=_e(t.nodeName);if(!Ce[p]||Oe[p])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof d)1===(i=(o=Et("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Ve&&!Pe&&!ze&&-1===t.indexOf("<"))return ie&&He?ie.createHTML(t):t;if(!(o=Et(t)))return Ve?null:He?se:""}o&&Ue&&wt(o.firstChild);for(var y=$t(Qe?t:o);c=y.nextNode();)3===c.nodeType&&c===l||Ct(c)||(c.content instanceof s&&At(c.content),Tt(c),l=c);if(l=null,Qe)return t;if(Ve){if(Ye)for(u=ue.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(Ie.shadowroot||Ie.shadowrootmod)&&(u=pe.call(a,u,!0)),u}var h=ze?o.outerHTML:o.innerHTML;return ze&&Ce["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&k(Z,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Pe&&(h=$(h,ge," "),h=$(h,ve," "),h=$(h,we," ")),ie&&He?ie.createHTML(h):h},r.setConfig=function(e){yt(e),Be=!0},r.clearConfig=function(){ut=null,Be=!1},r.isValidAttribute=function(e,t,n){ut||yt({});var o=_e(e),r=_e(t);return Nt(o,r,n)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],v(he[e],t))},r.removeHook=function(e){if(he[e])return g(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()},9230:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-add-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},2467:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-checkmark-circle",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658A9.98 9.98 0 0012 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10a9.94 9.94 0 00-.966-4.266L11 17.768z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},5955:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-checkmark",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},8687:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-chevron-left",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},5988:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-cloud-download",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18 9c-.009 0-.017.002-.025.003A6.496 6.496 0 005 9.5a6.5 6.5 0 00.186 1.519C5.123 11.016 5.064 11 5 11a4 4 0 00-4 4c0 1.202.541 2.267 1.38 3h18.593C22.196 17.089 23 15.643 23 14a5 5 0 00-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},4788:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-cross-small",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},9774:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-cross",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},4503:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-domains",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215a49.088 49.088 0 00-.565-3.357A8.048 8.048 0 0118.918 8zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.318c.258-1.89.577-3.576.645-3.928C11.319 4.029 11.656 4 12 4s.681.029 1.014.072zM14 12c0 .598-.043 1.286-.109 2h-3.782c-.066-.714-.109-1.402-.109-2s.043-1.286.109-2h3.782c.066.714.109 1.402.109 2zM8.862 4.643A49.088 49.088 0 008.297 8H5.082a8.048 8.048 0 013.78-3.357zM4.263 10h3.821C8.033 10.668 8 11.344 8 12s.033 1.332.085 2H4.263C4.097 13.359 4 12.692 4 12s.098-1.359.263-2zm.819 6h3.215c.188 1.424.42 2.65.565 3.357A8.048 8.048 0 015.082 16zm5.904 3.928A77.282 77.282 0 0110.341 16h3.318a78.303 78.303 0 01-.645 3.928c-.333.043-.67.072-1.014.072s-.681-.029-1.014-.072zm4.152-.571c.145-.707.377-1.933.565-3.357h3.215a8.048 8.048 0 01-3.78 3.357zM19.737 14h-3.821c.051-.668.084-1.344.084-2s-.033-1.332-.085-2h3.821c.166.641.264 1.308.264 2s-.097 1.359-.263 2z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},4236:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-help-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2v-1.141A3.991 3.991 0 0016 10zm-3 6h-2v2h2v-2z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},5491:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-help",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.141V15h-2v-2a1 1 0 011-1c1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8a4 4 0 018 0 3.991 3.991 0 01-3 3.859z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},5339:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-image",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 6v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h12a2 2 0 012 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1a1.59 1.59 0 012.11.11L18 16V6zm-5 3.5a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},4275:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},2294:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-minus",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 11h18v2H3z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},9031:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},5588:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-notice",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},1064:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-plus",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},4015:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-sync",s,!1,!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4a8 8 0 018 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12a8 8 0 008 8v-2c-3.308 0-6-2.692-6-6z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},7568:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a),d=["gridicon","gridicons-trash",s,!1,!1,!!function(e){return 0==e%18}(n)&&"needs-offset-y"].filter(Boolean).join(" ");return r.default.createElement("svg",i({className:d,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125A2 2 0 0115.121 21H8.879a2 2 0 01-1.996-1.875L6.187 8zM19 5v2H5V5h3V4a2 2 0 012-2h4a2 2 0 012 2v1h3zm-9 0h4V4h-4v1z"})))};var o,r=(o=n(1609))&&o.__esModule?o:{default:o},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}},542:e=>{e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,c=void 0===s?o:s,d=e.sanitize,l=e.searchWords,u=e.textToHighlight;return r({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:i,sanitize:d,searchWords:l,textToHighlight:u})}),totalLength:u?u.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var o=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:o})}else e.push(n,t);return e}),[])},o=function(e){var t=e.autoEscape,n=e.caseSensitive,o=e.sanitize,r=void 0===o?a:o,i=e.searchWords,s=e.textToHighlight;return s=r(s),i.filter((function(e){return e})).reduce((function(e,o){o=r(o),t&&(o=o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(o,n?"g":"gi"),i=void 0;i=a.exec(s);){var c=i.index,d=a.lastIndex;d>c&&e.push({highlight:!1,start:c,end:d}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=o;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,o=[],r=function(e,t,n){t-e>0&&o.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var a=0;t.forEach((function(e){r(a,e.start,!1),r(e.start,e.end,!0),a=e.end})),r(a,n,!1)}return o};function a(e){return e}}])},4146:(e,t,n)=>{"use strict";var o=n(3404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return o.isMemo(e)?i:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=i;var d=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(y){var r=p(n);r&&r!==y&&e(t,r,o)}var i=l(n);u&&(i=i.concat(u(n)));for(var s=c(t),h=c(n),f=0;f<i.length;++f){var _=i[f];if(!(a[_]||o&&o[_]||h&&h[_]||s&&s[_])){var g=m(n,_);try{d(t,_,g)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,m=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case u:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case d:case m:case f:case h:case c:return e;default:return t}}case r:return t}}}function E(e){return b(e)===u}t.AsyncMode=l,t.ConcurrentMode=u,t.ContextConsumer=d,t.ContextProvider=c,t.Element=o,t.ForwardRef=m,t.Fragment=a,t.Lazy=f,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||b(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return b(e)===d},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===m},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===f},t.isMemo=function(e){return b(e)===h},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===s},t.isStrictMode=function(e){return b(e)===i},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===c||e.$$typeof===d||e.$$typeof===m||e.$$typeof===g||e.$$typeof===v||e.$$typeof===w||e.$$typeof===_)},t.typeOf=b},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},436:e=>{var t;t=function(e){"use strict";return function(){for(var t=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["North Macedonia (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],n=0;n<t.length;n++){var o=t[n];t[n]={name:o[0],iso2:o[1],dialCode:o[2],priority:o[3]||0,areaCodes:o[4]||null}}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a={getInstance:function(e){var t=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=a);var i=0,s={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],d=function(e,t){for(var n=Object.keys(e),o=0;o<n.length;o++)t(n[o],e[n[o]])},l=function(e){d(window.intlTelInputGlobals.instances,(function(t){window.intlTelInputGlobals.instances[t][e]()}))},u=function(){function n(e,t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.id=i++,this.telInput=e,this.activeItem=null,this.highlightedItem=null;var r=t||{};this.options={},d(s,(function(e,t){o.options[e]=r.hasOwnProperty(e)?r[e]:t})),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}var o,a;return o=n,a=[{key:"_init",value:function(){var e=this;if(this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise){var t=new Promise((function(t,n){e.resolveAutoCountryPromise=t,e.rejectAutoCountryPromise=n})),n=new Promise((function(t,n){e.resolveUtilsScriptPromise=t,e.rejectUtilsScriptPromise=n}));this.promise=Promise.all([t,n])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,n,o){n.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var r=0;r<this.countryCodes[n].length;r++)if(this.countryCodes[n][r]===t)return;var a=o!==e?o:this.countryCodes[n].length;this.countryCodes[n][a]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var e=this.options.onlyCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(t){return e.indexOf(t.iso2)>-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(e){return-1===n.indexOf(e.iso2)}))}else this.countries=t}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(t)&&(this.countries[e].name=this.options.localizedCountries[t])}}},{key:"_countryNameSort",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var n=0;n<this.countries.length;n++){var o=this.countries[n];if(o.areaCodes)for(var r=this.countryCodes[o.dialCode][0],a=0;a<o.areaCodes.length;a++){for(var i=o.areaCodes[a],s=1;s<i.length;s++){var c=o.dialCode+i.substr(0,s);this._addCountryCode(r,c),this._addCountryCode(o.iso2,c)}this._addCountryCode(o.iso2,o.dialCode+i)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),n=this._getCountryData(t,!1,!0);n&&this.preferredCountries.push(n)}}},{key:"_createEl",value:function(e,t,n){var o=document.createElement(e);return t&&d(t,(function(e,t){return o.setAttribute(e,t)})),n&&n.appendChild(o),o}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var e="iti";this.options.allowDropdown&&(e+=" iti--allow-dropdown"),this.options.separateDialCode&&(e+=" iti--separate-dial-code"),this.options.customContainer&&(e+=" ",e+=this.options.customContainer);var t=this._createEl("div",{class:e});if(this.telInput.parentNode.insertBefore(t,this.telInput),this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},t),t.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),this.options.hiddenInput){var n=this.options.hiddenInput,o=this.telInput.getAttribute("name");if(o){var r=o.lastIndexOf("[");-1!==r&&(n="".concat(o.substr(0,r),"[").concat(n,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:n}),t.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(e,t,n){for(var o="",r=0;r<e.length;r++){var a=e[r],i=n?"-preferred":"";o+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(a.iso2).concat(i,"' role='option' data-dial-code='").concat(a.dialCode,"' data-country-code='").concat(a.iso2,"' aria-selected='false'>"),o+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>"),o+="<span class='iti__country-name'>".concat(a.name,"</span>"),o+="<span class='iti__dial-code'>+".concat(a.dialCode,"</span>"),o+="</li>"}this.countryList.insertAdjacentHTML("beforeend",o)}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,n=!e||"+"!==e.charAt(0)||t&&"+"===t.charAt(0)?t:e,o=this._getDialCode(n),r=this._isRegionlessNanp(n),a=this.options,i=a.initialCountry,s=a.nationalMode,c=a.autoHideDialCode,d=a.separateDialCode;o&&!r?this._updateFlagFromNumber(n):"auto"!==i&&(i?this._setFlag(i.toLowerCase()):o&&r?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||s||c||d||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(t){e.countryList.classList.contains("iti__hide")?e.telInput.focus():t.preventDefault()};var t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!e.countryList.classList.contains("iti__hide")||e.telInput.disabled||e.telInput.readOnly||e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(t){e.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(t.key)&&(t.preventDefault(),t.stopPropagation(),e._showDropdown()),"Tab"===t.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout((function(){return l("handleAutoCountry")}))}),(function(){return l("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);e&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,n){n&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var t=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,o=t.top+n,r=this.countryList.offsetHeight,a=o+this.telInput.offsetHeight+r<n+window.innerHeight,i=o-r>n;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!a&&i),this.options.dropdownContainer){var s=!a&&i?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(o+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||e._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",o=null;this._handleKeydownOnDropdown=function(t){t.preventDefault(),"ArrowUp"===t.key||"Up"===t.key||"ArrowDown"===t.key||"Down"===t.key?e._handleUpDownKey(t.key):"Enter"===t.key?e._handleEnterKey():"Escape"===t.key?e._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(t.key)&&(o&&clearTimeout(o),n+=t.key.toLowerCase(),e._searchForCountry(n),o=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var n=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[t].iso2));this._highlightListItem(n,!1),this._scrollTo(n,!0);break}}},{key:"_startsWith",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(e){var t=e;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var n=!this.options.separateDialCode&&(this.options.nationalMode||"+"!==t.charAt(0)),o=intlTelInputUtils.numberFormat,r=o.NATIONAL,a=o.INTERNATIONAL,i=n?r:a;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,i)}t=this._beforeSetNumber(t),this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function(e){var t=e,n=this.selectedCountryData.dialCode,o="1"===n;t&&this.options.nationalMode&&o&&"+"!==t.charAt(0)&&("1"!==t.charAt(0)&&(t="1".concat(t)),t="+".concat(t)),this.options.separateDialCode&&n&&"+"!==t.charAt(0)&&(t="+".concat(n).concat(t));var r=this._getDialCode(t,!0),a=this._getNumeric(t),i=null;if(r){var s=this.countryCodes[this._getNumeric(r)],c=-1!==s.indexOf(this.selectedCountryData.iso2)&&a.length<=r.length-1;if(!("1"===n&&this._isRegionlessNanp(a)||c))for(var d=0;d<s.length;d++)if(s[d]){i=s[d];break}}else"+"===t.charAt(0)&&a.length?i="":t&&"+"!==t||(i=this.defaultCountry);return null!==i&&this._setFlag(i)}},{key:"_isRegionlessNanp",value:function(e){var t=this._getNumeric(e);if("1"===t.charAt(0)){var n=t.substr(1,3);return-1!==c.indexOf(n)}return!1}},{key:"_highlightListItem",value:function(e,t){var n=this.highlightedItem;n&&n.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,n,o){for(var r=n?t:this.countries,a=0;a<r.length;a++)if(r[a].iso2===e)return r[a];if(o)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var t=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e));var n=e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",n),this.options.separateDialCode){var o=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=o;var r=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(r+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var a=this.activeItem;if(a&&(a.classList.remove("iti__active"),a.setAttribute("aria-selected","false")),e){var i=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e));i.setAttribute("aria-selected","true"),i.classList.add("iti__active"),this.activeItem=i,this.selectedFlag.setAttribute("aria-activedescendant",i.getAttribute("id"))}}return t.iso2!==e}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.flagsContainer.cloneNode();e.appendChild(t);var n=this.selectedFlag.cloneNode(!0);t.appendChild(n);var o=n.offsetWidth;return e.parentNode.removeChild(e),o}},{key:"_updatePlaceholder",value:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";n=this._beforeSetNumber(n),"function"==typeof this.options.customPlaceholder&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.setAttribute("placeholder",n)}}},{key:"_selectListItem",value:function(e){var t=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code"),!0),this.telInput.focus();var n=this.telInput.value.length;this.telInput.setSelectionRange(n,n),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,t){var n=this.countryList,o=window.pageYOffset||document.documentElement.scrollTop,r=n.offsetHeight,a=n.getBoundingClientRect().top+o,i=a+r,s=e.offsetHeight,c=e.getBoundingClientRect().top+o,d=c+s,l=c-a+n.scrollTop,u=r/2-s/2;if(c<a)t&&(l-=u),n.scrollTop=l;else if(d>i){t&&(l+=u);var m=r-s;n.scrollTop=l-m}}},{key:"_updateDialCode",value:function(e,t){var n,o=this.telInput.value,r="+".concat(e);if("+"===o.charAt(0)){var a=this._getDialCode(o);n=a?o.replace(a,r):r}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(o)n=r+o;else{if(!t&&this.options.autoHideDialCode)return;n=r}}this.telInput.value=n}},{key:"_getDialCode",value:function(e,t){var n="";if("+"===e.charAt(0))for(var o="",r=0;r<e.length;r++){var a=e.charAt(r);if(!isNaN(parseInt(a,10))){if(o+=a,t)this.countryCodes[o]&&(n=e.substr(0,r+1));else if(this.dialCodes[o]){n=e.substr(0,r+1);break}if(o.length===this.countryCodeMaxLen)break}}return n}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,n=this._getNumeric(e);return(this.options.separateDialCode&&"+"!==e.charAt(0)&&t&&n?"+".concat(t):"")+e}},{key:"_beforeSetNumber",value:function(e){var t=e;if(this.options.separateDialCode){var n=this._getDialCode(t);if(n){var o=" "===t[(n="+".concat(this.selectedCountryData.dialCode)).length]||"-"===t[n.length]?n.length+1:n.length;t=t.substr(o)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var t=this._getClosestLabel();t&&t.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&e&&e.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(e&&e.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n),n.parentNode.removeChild(n),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber().trim(),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){var t=e.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(t))||(this._setFlag(t),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}],a&&r(o.prototype,a),n}();a.getCountryData=function(){return t};var m=function(e,t,n){var o=document.createElement("script");o.onload=function(){l("handleUtils"),t&&t()},o.onerror=function(){l("rejectUtilsScriptPromise"),n&&n()},o.className="iti-load-utils",o.async=!0,o.src=e,document.body.appendChild(o)};return a.loadUtils=function(e){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise((function(t,n){return m(e,t,n)}));m(e)}return null},a.defaults=s,a.version="17.0.15",function(e,t){var n=new u(e,t);return n._init(),e.setAttribute("data-intl-tel-input-id",n.id),window.intlTelInputGlobals.instances[n.id]=n,n}}()},e.exports?e.exports=t():window.intlTelInput=t()},4183:()=>{!function(){var e=this||self;function t(t,n){t=t.split(".");var o,r=e;t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===n?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=n}function n(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.fa=function(e,n,o){for(var r=Array(arguments.length-2),a=2;a<arguments.length;a++)r[a-2]=arguments[a];return t.prototype[n].apply(e,r)}}function o(e,t){return e>t?1:e<t?-1:0}function r(e,t){switch(this.g=e,this.m=!!t.o,this.i=t.h,this.v=t.type,this.u=!1,this.i){case s:case c:case d:case l:case u:case i:case a:this.u=!0}this.l=t.defaultValue}var a=1,i=2,s=3,c=4,d=6,l=16,u=18;function m(e,t){for(this.i=e,this.g={},e=0;e<t.length;e++){var n=t[e];this.g[n.g]=n}}function p(){this.g={},this.l=this.j().g,this.i=this.m=null}function y(e,t){for(var n=function(e){return function(e){e.sort(function(e,t){return e.g-t.g}||o)}(e=function(e){var t,n=[],o=0;for(t in e)n[o++]=e[t];return n}(e.g)),e}(e.j()),r=0;r<n.length;r++){var a=n[r],i=a.g;if(null!=t.g[i]){e.i&&delete e.i[a.g];var s=11==a.i||10==a.i;if(a.m){a=g(t,i);for(var c=0;c<a.length;c++)b(e,i,s?a[c].clone():a[c])}else a=h(t,i),s?(s=h(e,i))?y(s,a):w(e,i,a.clone()):w(e,i,a)}}}function h(e,t){var n=e.g[t];if(null==n)return null;if(e.m){if(!(t in e.i)){var o=e.m,r=e.l[t];if(null!=n)if(r.m){for(var a=[],i=0;i<n.length;i++)a[i]=o.i(r,n[i]);n=a}else n=o.i(r,n);return e.i[t]=n}return e.i[t]}return n}function f(e,t,n){var o=h(e,t);return e.l[t].m?o[n||0]:o}function _(e,t){if(null!=e.g[t])e=f(e,t,void 0);else e:{if(void 0===(e=e.l[t]).l)if((t=e.v)===Boolean)e.l=!1;else if(t===Number)e.l=0;else{if(t!==String){e=new t;break e}e.l=e.u?"0":""}e=e.l}return e}function g(e,t){return h(e,t)||[]}function v(e,t){return e.l[t].m?null!=e.g[t]?e.g[t].length:0:null!=e.g[t]?1:0}function w(e,t,n){e.g[t]=n,e.i&&(e.i[t]=n)}function b(e,t,n){e.g[t]||(e.g[t]=[]),e.g[t].push(n),e.i&&delete e.i[t]}function E(e,t){var n,o=[];for(n in t)0!=n&&o.push(new r(n,t[n]));return new m(e,o)}function $(){}p.prototype.has=function(e){return null!=this.g[e.g]},p.prototype.get=function(e,t){return f(this,e.g,t)},p.prototype.set=function(e,t){w(this,e.g,t)},p.prototype.add=function(e,t){b(this,e.g,t)},p.prototype.clone=function(){var e=new this.constructor;return e!=this&&(e.g={},e.i&&(e.i={}),y(e,this)),e},$.prototype.g=function(e){throw new e.i,Error("Unimplemented")},$.prototype.i=function(e,t){if(11==e.i||10==e.i)return t instanceof p?t:this.g(e.v.prototype.j(),t);if(14==e.i)return"string"==typeof t&&S.test(t)&&0<(e=Number(t))?e:t;if(!e.u)return t;if((e=e.v)===String){if("number"==typeof t)return String(t)}else if(e===Number&&"string"==typeof t&&("Infinity"===t||"-Infinity"===t||"NaN"===t||S.test(t)))return Number(t);return t};var S=/^-?[0-9]+$/;function x(){}function k(){}function C(e,t){null!=e&&this.g.apply(this,arguments)}function N(){p.call(this)}n(x,$),x.prototype.g=function(e,t){return(e=new e.i).m=this,e.g=t,e.i={},e},n(k,x),k.prototype.i=function(e,t){return 8==e.i?!!t:$.prototype.i.apply(this,arguments)},k.prototype.g=function(e,t){return k.$.g.call(this,e,t)},C.prototype.i="",C.prototype.set=function(e){this.i=""+e},C.prototype.g=function(e,t,n){if(this.i+=String(e),null!=t)for(var o=1;o<arguments.length;o++)this.i+=arguments[o];return this},C.prototype.toString=function(){return this.i},n(N,p);var I=null;function T(){p.call(this)}n(T,p);var A=null;function O(){p.call(this)}n(O,p);var M=null;function L(){p.call(this)}N.prototype.j=function(){var e=I;return e||(I=e=E(N,{0:{name:"NumberFormat",s:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,h:9,type:String},2:{name:"format",required:!0,h:9,type:String},3:{name:"leading_digits_pattern",o:!0,h:9,type:String},4:{name:"national_prefix_formatting_rule",h:9,type:String},6:{name:"national_prefix_optional_when_formatting",h:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",h:9,type:String}})),e},N.j=N.prototype.j,T.prototype.j=function(){var e=A;return e||(A=e=E(T,{0:{name:"PhoneNumberDesc",s:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",h:9,type:String},9:{name:"possible_length",o:!0,h:5,type:Number},10:{name:"possible_length_local_only",o:!0,h:5,type:Number},6:{name:"example_number",h:9,type:String}})),e},T.j=T.prototype.j,O.prototype.j=function(){var e=M;return e||(M=e=E(O,{0:{name:"PhoneMetadata",s:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",h:11,type:T},2:{name:"fixed_line",h:11,type:T},3:{name:"mobile",h:11,type:T},4:{name:"toll_free",h:11,type:T},5:{name:"premium_rate",h:11,type:T},6:{name:"shared_cost",h:11,type:T},7:{name:"personal_number",h:11,type:T},8:{name:"voip",h:11,type:T},21:{name:"pager",h:11,type:T},25:{name:"uan",h:11,type:T},27:{name:"emergency",h:11,type:T},28:{name:"voicemail",h:11,type:T},29:{name:"short_code",h:11,type:T},30:{name:"standard_rate",h:11,type:T},31:{name:"carrier_specific",h:11,type:T},33:{name:"sms_services",h:11,type:T},24:{name:"no_international_dialling",h:11,type:T},9:{name:"id",required:!0,h:9,type:String},10:{name:"country_code",h:5,type:Number},11:{name:"international_prefix",h:9,type:String},17:{name:"preferred_international_prefix",h:9,type:String},12:{name:"national_prefix",h:9,type:String},13:{name:"preferred_extn_prefix",h:9,type:String},15:{name:"national_prefix_for_parsing",h:9,type:String},16:{name:"national_prefix_transform_rule",h:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",h:8,defaultValue:!1,type:Boolean},19:{name:"number_format",o:!0,h:11,type:N},20:{name:"intl_number_format",o:!0,h:11,type:N},22:{name:"main_country_for_code",h:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",h:9,type:String},26:{name:"leading_zero_possible",h:8,defaultValue:!1,type:Boolean}})),e},O.j=O.prototype.j,n(L,p);var j=null,D={ea:0,da:1,ca:5,ba:10,aa:20};L.prototype.j=function(){var e=j;return e||(j=e=E(L,{0:{name:"PhoneNumber",s:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,h:5,type:Number},2:{name:"national_number",required:!0,h:4,type:Number},3:{name:"extension",h:9,type:String},4:{name:"italian_leading_zero",h:8,type:Boolean},8:{name:"number_of_leading_zeros",h:5,defaultValue:1,type:Number},5:{name:"raw_input",h:9,type:String},6:{name:"country_code_source",h:14,defaultValue:0,type:D},7:{name:"preferred_domestic_carrier_code",h:9,type:String}})),e},L.ctor=L,L.ctor.j=L.prototype.j;var R={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".split(" "),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"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],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"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},P={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"1|([457]\\d{6})$","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"1|([2457]\\d{6})$","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-49]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93888[013-9]\\d{5}|9(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7,8}",,,,"8001234567"],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","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",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\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"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\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"]],[[,"(\\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})","$1 $2 $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]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"1|([267]\\d{6})$","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"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],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\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{6})","$1",["1"]],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?: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"]],[[,"(\\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(?: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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"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]],[,,"(?:(?: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]))\\d{3}|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]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}",,,,"212345678",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|(183[12])",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["130"]]],[[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}",,,,,,,[6,7,8,10,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"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]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}",,,,"123123456",,,,[7]],[,,"36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:2(?:[3568]\\d|4[0-57-9])|45\\d|69[5-7]|8(?:[2-5]\\d|83))\\d{4}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"1|([2-9]\\d{6})$","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|44|67)|7(?:36|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"[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]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\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(?:28|4[14]|5)|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]|22"],"0$1"],[,"(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[04-7]|44|69|7[0579])|90(?:0[0-8]|1[36]|2[0-3568]|3[013-689]|[47][2-68]|5[1-68]|6[0-378]|9[34679]))\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[0458]|2[25]|3[15-8]|48|[56]0|7[078]|9\\d)\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[56]|9[016-9])|4(?:4[569]|5[4-6]|6[56]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[1267]|5[1-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"43[07-9]\\d{5}|(?:48|8[7-9]\\d|9(?:8\\d|9[69]))\\d{6}",,,,"48123456",,,[8,9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}",,,,"17001234"],[,,"(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"80\\d{6}",,,,"80123456"],[,,"(?:87|9[014578])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"22\\d{6}",,,,"22201234"],[,,"(?:29|31|6[1257-9]|7[125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"[25689]\\d{7}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68])\\d{5}",,,,"20211234"],[,,"(?:5[1-35-8]|6\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:2[7-9]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39])\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"1|([2-8]\\d{6})$","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"300\\d{7}|[34]00\\d{5}|4(?:02|37)0\\d{4}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"4020\\d{4}|[34]00\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-4]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"1|([3-8]\\d{6})$","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"(?:321|7(?:[1-7]\\d|8[01]))\\d{5}",,,,"71123456",,,[8]],[,,"(?:0800|800\\d)\\d{6}",,,,"0800012345",,,[10]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|20)|2[0-25-7]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[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],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678"],[,,"600[2-9]\\d{6}",,,,"6002012345"],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CC:[,[,,"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]],[,,"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}",,,,"891621234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\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{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[0257]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80(?:0\\d\\d|120)\\d{4}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02]\\d{9}",,,,,,,[10]],[,,"2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}",,,,"2123456789"],[,,"0704[0-7]\\d{5}|0(?:[15]\\d\\d|7(?:0[0-37-9]|[4-9][7-9]))\\d{6}",,,,"0123456789"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[034]\\d|1[0-35-9]|2[1-9]|5[0-2])|600))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[034]\\d|1[0-35-9]|2[1-9]|5[0-2])|600))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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"]]],[[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"[26]\\d{8}|88\\d{6,7}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[5-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6,7}",,,,"88012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",,,,,,,[7,8,9,10,11,12],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[0135-9])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"400\\d{7}|950\\d{7,8}|(?:10|2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"0|(1(?:[12]\\d|79)\\d\\d)",,"00",,[[,"(\\d{5,6})","$1",["96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\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","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","26|3(?:[0268]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|50|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9])|(?:34|85[23])[0-8]|(?:1|58)[1-9]|(?:63|95)[06-9]|(?:33|85[23]9)[0-46-9]|(?:10|2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","26|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:1|58|85[23]10)[1-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $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","$CC $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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",,,,,,,[8,10,11],[7]],[,,"60[124-8][2-9]\\d{6}|[124-8][2-9]\\d{6}",,,,"12345678",,,[8,10],[7]],[,,"3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[2-6]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:[14]4|56))?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],[,"(\\d{3})(\\d{7})","$1 $2",["[39]"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],[,"(\\d{3})(\\d{7})","$1 $2",["[39]"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"5\\d{7}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\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",["5"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:[34][36]|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"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]],[,,"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}",,,,"891641234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9[4-79]\\d{6}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",,,,,,,[4,5,6,7,8,9,10,11,12,13,14,15],[2,3]],[,,"32\\d{9,11}|49[2-6]\\d{10}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\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{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"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"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"1|([2-7]\\d{6})$","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8001|8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[0135689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[24-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\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",["[189]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[01]\\d|6[1267]|7[0-57]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]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]"]]],[[,"(\\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]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-59]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[78]|2[69]|39|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"9\\d{8}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[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]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"[2-9]\\d{5}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d|91)\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"(?:[1-35]\\d|4[1-9])\\d{7}",,,,"123456789"],[,,"(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7(?:00|[3-9]\\d))\\d{6}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:(?:0[2-7]\\d|6(?:0[0-4]|10|[256]\\d))\\d|7(?:[47]\\d\\d|658))\\d{4}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[47]\\d{6}|76\\d{6})","$1",,,[[,"(\\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",["11|[67]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?: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}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"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}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\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"]],,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"1|([2-9]\\d{6})$","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|(?:11|33)33|[25]222)[0-4]\\d{3}|5(?:00(?:0\\d|50)|11(?:00|1\\d|2[0-4])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"(?:[56]94|80\\d|976)\\d{6}",,,,,,,[9]],[,,"594(?:[023]\\d|1[01]|4[03-9]|5[6-9]|6[0-3]|80|9[0-4])\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-48])\\d{4}",,,,"694201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976\\d{6}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"0|([25-9]\\d{5})$","1481$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2(?:[0346-8]\\d|5[67])|5(?:[0457]\\d|6[01]|9[1-9]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"(?:[25]\\d\\d|606)\\d{5}",,,,,,,[8]],[,,"21(?:6[24-7]\\d|90[0-2])\\d{3}|2(?:00|2[25])\\d{5}",,,,"20012345"],[,,"(?:5[146-8]\\d|606)\\d{5}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d|70)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-389])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[0-356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55\\d)\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",,,,,,,[10,11,12]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789",,,[10]],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678",,,[10]],[,,"800\\d{7,9}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567",,,[10]],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567",,,[10]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123",,,[10]],,,[,,,,,,,,,[-1]]],GT:[,[,,"(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"[3-5]\\d{7}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"1|([3-9]\\d{6})$","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}",,,,"2201234"],[,,"6\\d{6}",,,,"6091234"],[,,"(?:289|862)\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|5[0-5]|9\\d))|58(?:0[1-8]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:46(?:[07][0-7]|1[0-6]|4[0-57-9]|5[0-8]|6[0-4])|573[0-6]|6(?:26[013-7]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|929[03-9])\\d{4}|(?:46[238]|5(?:[1-59][0-46-9]|6[0-4689]|7[0-2469])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\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"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0-39]|1[1-367]|[23]\\d|4[03-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[78]|2[3-59]|3[13-9]|4[0-68]|5[1-35])|5(?:0[7-9]|16|4[03-5]|5\\d|6[014-6]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[04]|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"9(?:751\\d{5}|8\\d{6,7})|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",,,,"921234567",,,[8,9]],[,,"80[01]\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2,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",["[67]"],"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-5]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"[2-489]\\d{7}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"[34]\\d{7}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|680[29])\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|680[29])\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",,,,,,,[7,8,9,10,11,12,13],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\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"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[01]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"7(?:380|8(?:33|55|77|81))\\d{5}|7(?:18|2[23]|3[237]|47|6[58]|7\\d|82|9[235-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624(?:230|[5-8]\\d\\d)\\d{3}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"0|([25-8]\\d{5})$","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|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]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:(?:[0-3]\\d|4[0145])\\d|5[15]0|8(?:1\\d|88)|9(?:0[013]|[19]\\d|21|77|8[7-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IR",98,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-245]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[027-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[28]))\\d{4}",,,,"6111234"],[,,"80[08]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",,,,,,,[6,7,8,9,10,11,12]],[,,"0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\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])|[38]"]],[,"(\\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",["3"]]],[[,"(\\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])|[38]"]],[,"(\\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",["3"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"0|([0-24-8]\\d{5})$","1534$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?: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}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0237-9]|[23]\\d|40|5[06]|6[2-589]|7[05]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:0[2-9]|[14-9]\\d|2[013-9]|3[3-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\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",["7"],"0$1"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",,,,,,,[8,9,10,11,12,13,14,15,16,17]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"0",,,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\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|63)|9(?:49|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]|636)|9(?:496|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]|636[457-9])|9(?:496|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",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007","0077"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\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|63)|9(?:49|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]|636)|9(?:496|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]|636[457-9])|9(?:496|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",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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",["[257-9]"],"0$1"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-6]|1[0-5]|2[014])|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[24-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|(?:[235-8]\\d|99)\\d{7}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|7(?:[07]\\d|55)|880|99[05-9])\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"1|([2-7]\\d{6})$","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"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],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"18\\d{5}|(?:[2569]\\d|41)\\d{6}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|222|333|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|22|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|3(?:00|33)|5(?:00|5\\d)))\\d{4}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[245]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|25|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"1|([2-9]\\d{6})$","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",,,,,,,[10,14],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9])|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,[10],[5,6,7]],[,,"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",,,,"7710009998",,,[10]],[,,"8(?:00|108\\d{3})\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,"751\\d{7}",,,,"7511234567",,,[10]],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}",,,,,,,[10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[239]\\d|5[24-9]|7[6-8])|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\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",["30[013-9]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[27-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}",,,,"1123456"],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"1|([2-8]\\d{6})$","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:4(?:5[4-9]|[6-9]\\d)|5[0-4]\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"8002[28]\\d\\d|80(?:05\\d|9)\\d{4}",,,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"0|(1001)",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[0-4])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",,,,,,,[7,8,9]],[,,"(?:2\\d{3}|33333)\\d{4}",,,,"21234567",,,[8,9]],[,,"(?:(?:330|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",,1],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",,1],[,"(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",,1],[,"(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"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]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\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])"],,"$CC $1"],[,"(\\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])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\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]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"2\\d{7}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[01]\\d|6[1267]|7[0-57]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],[,"(\\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-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],[,"(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],[,"(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"(?:[3489]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"(?:800|90\\d)\\d{5}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["87"]],[,"(\\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",["6"],"0$1"]],[[,"(\\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",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"8[07]0\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-489]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"0|([24-9]\\d{6})$","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[56])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:2(?:[23]\\d|5[0-24578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:3555|4(?:60\\d|747)|94(?:[01]\\d|2[0-4]))\\d{3}|7(?:[0-25-8]\\d|3[2-4]|42|9[23])\\d{5}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5[02-9]\\d{6}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[239])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"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],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:[01][1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[57-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|920)\\d{5}|(?:5[05]|8[05689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[5-8]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[57-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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"0800\\d{3}|(?:28|[68]\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345",,,[8]],[,,"6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",,,,"66123456",,,[8]],[,,"0800\\d{3}",,,,"0800501",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"1|([2-9]\\d{6})$","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"(?:69|80)\\d{7}|(?:59|97)6\\d{6}",,,,,,,[9]],[,,"596(?:[04-7]\\d|10|2[7-9]|3[04-9]|8[09]|9[4-9])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",,,,"696201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976(?:6\\d|7[0-367])\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"1|([34]\\d{6})$","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800[3467]\\d{4}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",,,,,,,[7,8,10]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123",,,[7,8]],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-589]|[57]\\d|8[0-689]|9[0-8])\\d{5}",,,,"52512345",,,[8]],[,,"802\\d{7}|80[0-2]\\d{4}",,,,"8001234",,,[7,10]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["5"]],[,"(\\d{5})(\\d{5})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[57][02468]|6[024-68]|8[024689]))\\d{4}",,,,"6701234",,,[7]],[,,"46[46]\\d{4}|(?:7\\d|9[13-9])\\d{5}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4[05]0\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",,,,,,,[7,9]],[,,"(?:1[2-9]|21\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|88|9[89])\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"6571\\d{6}|(?:2(?:0[01]|2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"6571\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:1888[69]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:(?:[269]|59)\\d|[37][1-9]|4[235-9])\\d|8(?:1[23]|[236]\\d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\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])|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[36-8]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"[2-57-9]\\d{5}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,,,,,,,,[-1]],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[04]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\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[04]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|8(?:01|19)[01])\\d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",,,,,,,[5,6,7,8,9,10]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"6[1-58]\\d{7}",,,,"612345678",,,[9]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\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-57-9]"],"0$1"]],[[,"(\\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-57-9]"],"0$1"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],NP:[,[,,"(?:1\\d|9)\\d{9}|[1-9]\\d{7}",,,,,,,[8,10,11],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[245]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,"1(?:66001|800\\d\\d)\\d{5}",,,,"16600101234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]],[,"(\\d{4})(\\d{2})(\\d{5})","$1-$2-$3",["1"]]],[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[47]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"888[4-9]\\d{3}",,,,"8884012",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2[0-27-9]\\d{7,8}|21\\d{6}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"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)|[59]|80"],"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|86"],"0$1"]],,[,,"[28]6\\d{6,7}",,,,"26123456",,,[8,9]],,,[,,,,,,,,,[-1]],[,,"8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",,,,,,,[7,8,9]],[,,"2[2-6]\\d{6}",,,,"23123456",,,[8]],[,,"1505\\d{4}|(?:7(?:[1289]\\d|70)|9(?:0[1-9]|[1-9]\\d))\\d{5}",,,,"92123456",,,[8]],[,,"8007\\d{4,5}|(?:500|800[05])\\d{4}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10,11]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[05]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[6-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6(?:[02-9]\\d|1[0-8])\\d|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4,5}|(?:00800|800\\d)\\d{6}",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"19(?:1[124]|77|90)00","0"," Anexo ",,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"4\\d{5}(?:\\d{2})?|8\\d{7,8}",,,,,,,[6,8,9]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",,,,"3123456",,,[7]],[,,"(?:7\\d|8[18])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-47]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",,,,"232345678",,,[6,8,9,10],[4,5,7]],[,,"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"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],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?: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]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[014]\\d|2[0-5]|3[0-7]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}(?:\\d{3})?",,,,"80012345",,,[8,11]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?: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])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"211(?:1\\d|3[1-5])\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\d{5})","$1",["19"]],[,"(\\d{3})(\\d{3})","$1 $2",["11|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"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"(?:[45]|80\\d\\d)\\d{5}",,,,,,,[6,9]],[,,"(?:4[1-3]|50)\\d{4}",,,,"430123",,,[6]],[,,"(?:4[02-4]|5[05])\\d{4}",,,,"551234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|[35][1-689]|4[1-59]|6[1-35689]|7[1-9]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6[0356]92(?:30|9\\d)\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70(?:7\\d|8[17])\\d{5}",,,,"707123456"],,,[,,"600\\d{6}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:46[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\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-6])"],"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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",,,,,,,[7,8,9]],[,,"4141\\d{4}|(?:23|4[04])\\d{6}",,,,"44123456",,,[8]],[,,"(?:28|[35-7]\\d)\\d{6}",,,,"33123456",,,[8]],[,,"800\\d{4}(?:\\d{2})?",,,,"8001234",,,[7,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]],,[,,"2(?:[12]\\d|61)\\d{4}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"9769\\d{5}|(?:26|[68]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|30[0-5])\\d{4}",,,,"262161234"],[,,"(?:69(?:2\\d\\d|3(?:[06][0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,"26[23]|69|[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[019])\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\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",["[237-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"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],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"8\\d{13}|[347-9]\\d{9}",,,,,,,[10,14],[7]],[,,"(?: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]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,[10],[7]],[,,"9\\d{9}",,,,"9123456789",,,[10]],[,,"8(?:0[04]|108\\d{3})\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|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)"]],[[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|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)"]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[2389]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"579[01]\\d{5}|5(?:[013-689]\\d|7[0-36-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\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{3,4})","$1 $2 $3",["81"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"8000\\d{3}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[5-8]\\d{5}",,,,"2510123"],[,,"8000\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[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]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\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"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\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]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[1-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"895[0-2]\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[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"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:1\\d|55|[67]0)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-489])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\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{4})(\\d{3})","$1 $2",["909","9090"],"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"]],[[,"(\\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"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[237-9]\\d|66)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[0-5]|66|7[3-9]|8[08]|9[09])\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d|93)\\d{7}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}",,,,"301012345"],[,,"75(?:01|[38]3)\\d{5}|7(?:[06-8]\\d|21|5[4-7]|90)\\d{6}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"(?:(?:15|(?:3[59]|4[89]|79|8[08])\\d|6(?:0[5-7]|[1-9]\\d)|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:6\\d|7[1-9])\\d{6}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\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",["24|[67]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\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-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[1257-9])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",,,,"21234567",,,[8]],[,,"66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"1|(5\\d{6})$","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9(?:22|[3-689]\\d)\\d{6}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"1|([2-479]\\d{6})$","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[023568]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[09]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",,,,,,,[8,9,10,13]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"(?:001800\\d|1800)\\d{6}",,,,"1800123456",,,[10,13]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"(?:00|[1-57-9]\\d)\\d{7}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"41[18]\\d{6}|(?:[034]0|1[01]|2[02]|5[05]|7[017]|8[08]|9\\d)\\d{7}",,,,"917123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810",,,,,,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\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",["6"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"55[0-37-9]\\d{4}",,,,"5510123",,,[7]],"TO",676,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"(?:444|811\\d{3})\\d{4}",,,,,,,[7,10]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:0[13]|1[89]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"1|([2-46-8]\\d{6})$","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[26-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[1-9]|7[1-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\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{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\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{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:(?:24|81)0|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[0147]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"726[01]\\d{5}|7(?:[0157-9]\\d|20|36|[46][0-4])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}",,,,,,,[10],[7]],[,,"5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",,,,,,,[7,8,10]],[,,"(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"(?:4\\d{5}|80[05])\\d{4}|405\\d{4}",,,,"8001234",,,[7,10]],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"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{4})","$1 $2 $3",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"(?:33|55|[679]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:33|88|9[0-57-9])\\d{3}|55(?:50[013]|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"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]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VC",1,"011","1",,,"1|([2-7]\\d{6})$","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"1|([2-578]\\d{6})$","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"1|([2-9]\\d{6})$","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[689]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:0[13]|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:[58]\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:0[1-9]|1[01])\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",,,,,,,[6,9]],[,,"72\\d{4}",,,,"721234",,,[6]],[,,"(?:72|8[23])\\d{4}",,,,"821234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234",,,[6]]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\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",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[0137]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"80\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[67]|5[0-3]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"269|63",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[679]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"630\\d{6}",,,,"630012345"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"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],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[178]\\d|3[1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"(?:005|[1-9]\\d\\d)\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:005|[1-9]\\d\\d)\\d{5}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["\\d"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"7\\d{11}|[35-7]\\d{8}",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,"(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"[0-36-9]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",,,,"3421234",,,[7,8,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"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})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["16|342"]],[,"(\\d{2})(\\d{6})","$1 $2",["4"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",,,,,,,[9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]};function F(){this.g={}}F.i=void 0,F.g=function(){return F.i?F.i:F.i=new F};var z={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"},B={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",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},U=/^[+\uff0b]+/,V=/([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])/,Y=/[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]/,H=/[\\\/] *x/,W=/[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9A-Za-z#]+$/,G=/(?:.*?[A-Za-z]){3}.*/;function q(e){return"([0-90-9٠-٩۰-۹]{1,"+e+"})"}function Q(){return";ext="+q("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+q("20")+"#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*"+q("9")+"#?|[- ]+"+q("6")+"#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*"+q("15")+"#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*"+q("9")+"#?"}var K=new RegExp("(?:"+Q()+")$","i"),Z=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:"+Q()+")?$","i"),J=/(\$\d)/;function X(e){return!(2>e.length)&&be(Z,e)}function ee(e){return be(G,e)?oe(e,B):oe(e,z)}function te(e){var t=ee(e.toString());e.i="",e.g(t)}function ne(e){return null!=e&&(1!=v(e,9)||-1!=g(e,9)[0])}function oe(e,t){for(var n,o=new C,r=e.length,a=0;a<r;++a)null!=(n=t[(n=e.charAt(a)).toUpperCase()])&&o.g(n);return o.toString()}function re(e){return null!=e&&isNaN(e)&&e.toUpperCase()in P}function ae(e,t,n){if(0==f(t,2)&&null!=t.g[5]){var o=_(t,5);if(0<o.length)return o}o=_(t,1);var r=se(t);if(0==n)return ce(o,0,r,"");if(!(o in R))return r;e=ie(e,o,ye(o)),t=null!=t.g[3]&&0!=f(t,3).length?3==n?";ext="+f(t,3):null!=e.g[13]?f(e,13)+_(t,3):" ext. "+_(t,3):"";e:{for(var a,i=(e=0==g(e,20).length||2==n?g(e,19):g(e,20)).length,s=0;s<i;++s){var c=v(a=e[s],3);if((0==c||0==r.search(f(a,3,c-1)))&&be(c=new RegExp(f(a,1)),r)){e=a;break e}}e=null}return null!=e&&(e=_(i=e,2),a=new RegExp(f(i,1)),_(i,5),i=_(i,4),r=2==n&&null!=i&&0<i.length?r.replace(a,e.replace(J,i)):r.replace(a,e),3==n&&(r=(r=r.replace(/^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/,"")).replace(/[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/g,"-"))),ce(o,n,r,t)}function ie(e,t,n){return ue(e,"001"==n?""+t:n)}function se(e){if(null==e.g[2])return"";var t=""+f(e,2);return null!=e.g[4]&&f(e,4)&&0<_(e,8)?Array(_(e,8)+1).join("0")+t:t}function ce(e,t,n,o){switch(t){case 0:return"+"+e+n+o;case 1:return"+"+e+" "+n+o;case 3:return"tel:+"+e+"-"+n+o;default:return n+o}}function de(e,t){switch(t){case 4:return f(e,5);case 3:return f(e,4);case 1:return f(e,3);case 0:case 2:return f(e,2);case 5:return f(e,6);case 6:return f(e,8);case 7:return f(e,7);case 8:return f(e,21);case 9:return f(e,25);case 10:return f(e,28);default:return f(e,1)}}function le(e,t){return me(e,f(t,1))?me(e,f(t,5))?4:me(e,f(t,4))?3:me(e,f(t,6))?5:me(e,f(t,8))?6:me(e,f(t,7))?7:me(e,f(t,21))?8:me(e,f(t,25))?9:me(e,f(t,28))?10:me(e,f(t,2))?f(t,18)||me(e,f(t,3))?2:0:!f(t,18)&&me(e,f(t,3))?1:-1:-1}function ue(e,t){if(null==t)return null;t=t.toUpperCase();var n=e.g[t];if(null==n){if(null==(n=P[t]))return null;n=(new k).g(O.j(),n),e.g[t]=n}return n}function me(e,t){var n=e.length;return!(0<v(t,9)&&-1==g(t,9).indexOf(n))&&be(_(t,2),e)}function pe(e,t){if(null==t)return null;var n=_(t,1);if(null==(n=R[n]))e=null;else if(1==n.length)e=n[0];else e:{t=se(t);for(var o,r=n.length,a=0;a<r;a++){var i=ue(e,o=n[a]);if(null!=i.g[23]){if(0==t.search(f(i,23))){e=o;break e}}else if(-1!=le(t,i)){e=o;break e}}e=null}return e}function ye(e){return null==(e=R[e])?"ZZ":e[0]}function he(e,t,n,o){var r=de(n,o),a=0==v(r,9)?g(f(n,1),9):g(r,9);if(r=g(r,10),2==o){if(!ne(de(n,0)))return he(e,t,n,1);ne(e=de(n,1))&&((a=a.concat(0==v(e,9)?g(f(n,1),9):g(e,9))).sort(),0==r.length?r=g(e,10):(r=r.concat(g(e,10))).sort())}return-1==a[0]?5:(t=t.length,-1<r.indexOf(t)?4:(n=a[0])==t?0:n>t?2:a[a.length-1]<t?3:-1<a.indexOf(t,1)?0:5)}function fe(e,t){var n=se(t);return(t=_(t,1))in R?he(e,n,t=ie(e,t,ye(t)),-1):1}function _e(e,t,n,o,r,a){if(0==t.length)return 0;var i;t=new C(t),null!=n&&(i=f(n,11)),null==i&&(i="NonMatch");var s=t.toString();if(0==s.length)i=20;else if(U.test(s))s=s.replace(U,""),t.i="",t.g(ee(s)),i=1;else{if(s=new RegExp(i),te(t),0==(i=t.toString()).search(s)){s=i.match(s)[0].length;var c=i.substring(s).match(V);c&&null!=c[1]&&0<c[1].length&&"0"==oe(c[1],z)?i=!1:(t.i="",t.g(i.substring(s)),i=!0)}else i=!1;i=i?5:20}if(r&&w(a,6,i),20!=i){if(2>=t.i.length)throw Error("Phone number too short after IDD");e:{if(0!=(e=t.toString()).length&&"0"!=e.charAt(0))for(r=e.length,t=1;3>=t&&t<=r;++t)if((n=parseInt(e.substring(0,t),10))in R){o.g(e.substring(t)),o=n;break e}o=0}if(0!=o)return w(a,1,o),o;throw Error("Invalid country calling code")}return null!=n&&(s=""+(i=_(n,10)),0==(c=t.toString()).lastIndexOf(s,0)&&(s=new C(c.substring(s.length)),c=f(n,1),c=new RegExp(_(c,2)),ge(s,n,null),s=s.toString(),!be(c,t.toString())&&be(c,s)||3==he(e,t.toString(),n,-1)))?(o.g(s),r&&w(a,6,10),w(a,1,i),i):(w(a,1,0),0)}function ge(e,t,n){var o=e.toString(),r=o.length,a=f(t,15);if(0!=r&&null!=a&&0!=a.length){var i=new RegExp("^(?:"+a+")");if(r=i.exec(o)){var s=be(a=new RegExp(_(f(t,1),2)),o),c=r.length-1;null==(t=f(t,16))||0==t.length||null==r[c]||0==r[c].length?s&&!be(a,o.substring(r[0].length))||(null!=n&&0<c&&null!=r[c]&&n.g(r[1]),e.set(o.substring(r[0].length))):(o=o.replace(i,t),(!s||be(a,o))&&(null!=n&&0<c&&n.g(r[1]),e.set(o)))}}}function ve(e,t,n){if(!re(n)&&0<t.length&&"+"!=t.charAt(0))throw Error("Invalid country calling code");return we(e,t,n,!0)}function we(e,t,n,o){if(null==t)throw Error("The string supplied did not seem to be a phone number");if(250<t.length)throw Error("The string supplied is too long to be a phone number");var r=new C,a=t.indexOf(";phone-context=");if(0<=a){var i=a+15;if("+"==t.charAt(i)){var s=t.indexOf(";",i);0<s?r.g(t.substring(i,s)):r.g(t.substring(i))}i=t.indexOf("tel:"),r.g(t.substring(0<=i?i+4:0,a))}else a=r.g,0<=(i=t.search(Y))?0<=(s=(i=(i=t.substring(i)).replace(W,"")).search(H))&&(i=i.substring(0,s)):i="",a.call(r,i);if(0<(i=(a=r.toString()).indexOf(";isub="))&&(r.i="",r.g(a.substring(0,i))),!X(r.toString()))throw Error("The string supplied did not seem to be a phone number");if(a=r.toString(),!(re(n)||null!=a&&0<a.length&&U.test(a)))throw Error("Invalid country calling code");a=new L,o&&w(a,5,t);e:{if(0<=(i=(t=r.toString()).search(K))&&X(t.substring(0,i)))for(var c=(s=t.match(K)).length,d=1;d<c;++d)if(null!=s[d]&&0<s[d].length){r.i="",r.g(t.substring(0,i)),t=s[d];break e}t=""}0<t.length&&w(a,3,t),i=ue(e,n),t=new C,s=0,c=r.toString();try{s=_e(e,c,i,t,o,a)}catch(n){if("Invalid country calling code"!=n.message||!U.test(c))throw n;if(0==(s=_e(e,c=c.replace(U,""),i,t,o,a)))throw n}if(0!=s?(r=ye(s))!=n&&(i=ie(e,s,r)):(te(r),t.g(r.toString()),null!=n?w(a,1,s=_(i,10)):o&&(delete a.g[6],a.i&&delete a.i[6])),2>t.i.length)throw Error("The string supplied is too short to be a phone number");if(null!=i&&(n=new C,ge(r=new C(t.toString()),i,n),2!=(e=he(e,r.toString(),i,-1))&&4!=e&&5!=e&&(t=r,o&&0<n.toString().length&&w(a,7,n.toString()))),2>(e=(o=t.toString()).length))throw Error("The string supplied is too short to be a phone number");if(17<e)throw Error("The string supplied is too long to be a phone number");if(1<o.length&&"0"==o.charAt(0)){for(w(a,4,!0),e=1;e<o.length-1&&"0"==o.charAt(e);)e++;1!=e&&w(a,8,e)}return w(a,2,parseInt(o,10)),a}function be(e,t){return!(!(e="string"==typeof e?t.match("^(?:"+e+")$"):t.match(e))||e[0].length!=t.length)}t("intlTelInputUtils",{}),t("intlTelInputUtils.formatNumber",(function(e,t,n){try{var o=F.g(),r=ve(o,e,t),a=fe(o,r);return 0==a||4==a?ae(o,r,void 0===n?0:n):e}catch(t){return e}})),t("intlTelInputUtils.getExampleNumber",(function(e,t,n){try{var o=F.g();e:{if(re(e)){var r=de(ue(o,e),n);try{if(null!=r.g[6]){var a=we(o,f(r,6),e,!1);break e}}catch(e){}}a=null}return ae(o,a,t?2:1)}catch(e){return""}})),t("intlTelInputUtils.getExtension",(function(e,t){try{return f(ve(F.g(),e,t),3)}catch(e){return""}})),t("intlTelInputUtils.getNumberType",(function(e,t){try{var n=F.g(),o=ve(n,e,t),r=pe(n,o),a=ie(n,_(o,1),r);if(null==a)var i=-1;else i=le(se(o),a);return i}catch(e){return-99}})),t("intlTelInputUtils.getValidationError",(function(e,t){try{var n=F.g();return fe(n,ve(n,e,t))}catch(e){return"Invalid country calling code"==e.message?1:"Phone number too short after IDD"==e.message||"The string supplied is too short to be a phone number"==e.message?2:"The string supplied is too long to be a phone number"==e.message?3:-99}})),t("intlTelInputUtils.isValidNumber",(function(e,t){try{var n,o=F.g(),r=ve(o,e,t),a=pe(o,r),i=_(r,1),s=ie(o,i,a);if(!(n=null==s)){var c;if(c="001"!=a){var d=ue(o,a);if(null==d)throw Error("Invalid region code: "+a);c=i!=_(d,10)}n=c}if(n)var l=!1;else l=-1!=le(se(r),s);return l}catch(e){return!1}})),t("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3}),t("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1}),t("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})}()},603:(e,t,n)=>{e.exports=n(436)},8616:e=>{e.exports=function(e,t){var n,o,r=0;function a(){var a,i,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===o&&(o=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},n?(n.prev=s,s.next=n):o=s,r===t.maxSize?(o=o.prev).next=null:r++,n=s,s.val}return t=t||{},a.clear=function(){n=null,o=null,r=0},a}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var d in a=Object(arguments[c]))n.call(a,d)&&(s[d]=a[d]);if(t){i=t(a);for(var l=0;l<i.length;l++)o.call(a,i[l])&&(s[i[l]]=a[i[l]])}}return s}},5606:e=>{var t,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,c=[],d=!1,l=-1;function u(){d&&s&&(d=!1,s.length?c=s.concat(c):l=-1,c.length&&m())}function m(){if(!d){var e=i(u);d=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,d=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||d||i(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799:(e,t)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},4363:(e,t,n)=>{"use strict";n(2799)},1020:(e,t,n)=>{"use strict";n(5228);var o=n(1609),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;r=a("react.element"),t.Fragment=a("react.fragment")}var i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,n){var o,a={},d=null,l=null;for(o in void 0!==n&&(d=""+n),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,o)&&!c.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:r,type:e,key:d,ref:l,props:a,_owner:i.current}}t.jsx=d,t.jsxs=d},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},5721:e=>{function t(e,t){if((e=e.replace(/\s+/g,""))===(t=t.replace(/\s+/g,"")))return 1;if(e.length<2||t.length<2)return 0;let n=new Map;for(let t=0;t<e.length-1;t++){const o=e.substring(t,t+2),r=n.has(o)?n.get(o)+1:1;n.set(o,r)}let o=0;for(let e=0;e<t.length-1;e++){const r=t.substring(e,e+2),a=n.has(r)?n.get(r):0;a>0&&(n.set(r,a-1),o++)}return 2*o/(e.length+t.length-2)}e.exports={compareTwoStrings:t,findBestMatch:function(e,n){if(!function(e,t){return"string"==typeof e&&!!Array.isArray(t)&&!!t.length&&!t.find((function(e){return"string"!=typeof e}))}(e,n))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const o=[];let r=0;for(let a=0;a<n.length;a++){const i=n[a],s=t(e,i);o.push({target:i,rating:s}),s>o[r].rating&&(r=a)}return{ratings:o,bestMatch:o[r],bestMatchIndex:r}}}},1609:e=>{"use strict";e.exports=window.React},5518:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";var e={};n.r(e),n.d(e,{getAllDepositsOverviews:()=>fc,getAllDepositsOverviewsError:()=>_c,getDeposit:()=>hc,getDepositQueryError:()=>Ec,getDeposits:()=>vc,getDepositsCount:()=>bc,getDepositsSummary:()=>Sc,getDepositsSummaryError:()=>xc,getInstantDeposit:()=>kc});var t={};n.r(t),n.d(t,{submitInstantDeposit:()=>Jc,updateAllDepositsOverviews:()=>Yc,updateDeposit:()=>Vc,updateDeposits:()=>Wc,updateDepositsCount:()=>Gc,updateDepositsSummary:()=>Qc,updateErrorForAllDepositsOverviews:()=>Hc,updateErrorForDepositQuery:()=>qc,updateErrorForDepositsSummary:()=>Kc,updateInstantDeposit:()=>Zc});var o={};n.r(o),n.d(o,{getAllDepositsOverviews:()=>ed,getDeposit:()=>Xc,getDeposits:()=>od,getDepositsCSV:()=>nd,getDepositsSummary:()=>rd});var r={};n.r(r),n.d(r,{getFraudOutcomeTransactions:()=>_d,getFraudOutcomeTransactionsError:()=>gd,getFraudOutcomeTransactionsSummary:()=>wd,getFraudOutcomeTransactionsSummaryError:()=>bd,getTransactions:()=>ud,getTransactionsError:()=>md,getTransactionsSummary:()=>yd,getTransactionsSummaryError:()=>hd});var a={};n.r(a),n.d(a,{updateErrorForFraudOutcomeTransactions:()=>Cd,updateErrorForFraudOutcomeTransactionsSummary:()=>Id,updateErrorForTransactions:()=>$d,updateErrorForTransactionsSummary:()=>xd,updateFraudOutcomeTransactions:()=>kd,updateFraudOutcomeTransactionsSummary:()=>Nd,updateTransactions:()=>Ed,updateTransactionsSummary:()=>Sd});var i={};n.r(i),n.d(i,{formatQueryFilters:()=>Td,getFraudOutcomeTransactions:()=>Ld,getFraudOutcomeTransactionsExport:()=>Dd,getFraudOutcomeTransactionsSummary:()=>jd,getTransactions:()=>Ad,getTransactionsCSV:()=>Od,getTransactionsSummary:()=>Md});var s={};n.r(s),n.d(s,{getCharge:()=>Pd,getChargeError:()=>Fd,getChargeFromOrder:()=>zd,getChargeFromOrderError:()=>Bd});var c={};n.r(c),n.d(c,{updateCharge:()=>Ud,updateErrorForCharge:()=>Vd});var d={};n.r(d),n.d(d,{getCharge:()=>Yd,getChargeFromOrder:()=>Hd});var l={};n.r(l),n.d(l,{getTimeline:()=>Gd,getTimelineError:()=>qd});var u={};n.r(u),n.d(u,{updateErrorForTimeline:()=>Kd,updateTimeline:()=>Qd});var m={};n.r(m),n.d(m,{getTimeline:()=>Zd});var p={};n.r(p),n.d(p,{getCachedDispute:()=>ol,getDispute:()=>tl,getDisputeError:()=>nl,getDisputes:()=>rl,getDisputesSummary:()=>al});var y={};n.r(y),n.d(y,{refundCharge:()=>ll,updateErrorForPaymentIntent:()=>dl,updatePaymentIntent:()=>cl});var h={};n.r(h),n.d(h,{getPaymentIntent:()=>ul});var f={};n.r(f),n.d(f,{acceptDispute:()=>fl,updateDispute:()=>ml,updateDisputes:()=>yl,updateDisputesSummary:()=>hl,updateErrorForDispute:()=>pl});var _={};n.r(_),n.d(_,{getDispute:()=>vl,getDisputes:()=>wl,getDisputesCSV:()=>gl,getDisputesSummary:()=>bl});var g={};n.r(g),n.d(g,{getAccountBrandingLogo:()=>bu,getAccountBusinessName:()=>lu,getAccountBusinessSupportAddress:()=>mu,getAccountBusinessSupportAddressCity:()=>fu,getAccountBusinessSupportAddressCountry:()=>pu,getAccountBusinessSupportAddressLine1:()=>yu,getAccountBusinessSupportAddressLine2:()=>hu,getAccountBusinessSupportAddressPostalCode:()=>gu,getAccountBusinessSupportAddressState:()=>_u,getAccountBusinessSupportEmail:()=>vu,getAccountBusinessSupportPhone:()=>wu,getAccountBusinessURL:()=>uu,getAccountDomesticCurrency:()=>Eu,getAccountStatementDescriptor:()=>su,getAccountStatementDescriptorKana:()=>du,getAccountStatementDescriptorKanji:()=>cu,getAdvancedFraudProtectionSettings:()=>tm,getAvailablePaymentMethodIds:()=>ou,getCompletedWaitingPeriod:()=>Nu,getCurrentProtectionLevel:()=>em,getDepositDelayDays:()=>Cu,getDepositRestrictions:()=>Tu,getDepositScheduleInterval:()=>$u,getDepositScheduleMonthlyAnchor:()=>ku,getDepositScheduleWeeklyAnchor:()=>xu,getDepositStatus:()=>Iu,getDuplicatedPaymentMethodIds:()=>eu,getEnabledPaymentMethodIds:()=>nu,getExportLanguage:()=>Su,getIsCardPresentEligible:()=>Hu,getIsDebugLogEnabled:()=>Du,getIsDevModeEnabled:()=>Lu,getIsManualCaptureEnabled:()=>Au,getIsMultiCurrencyEnabled:()=>Ru,getIsPaymentRequestEnabled:()=>ju,getIsSavedCardsEnabled:()=>Vu,getIsStripeBillingEnabled:()=>om,getIsStripeBillingMigrationInProgress:()=>rm,getIsSubscriptionsPluginActive:()=>qu,getIsTestModeEnabled:()=>Ou,getIsTestModeOnboarding:()=>Mu,getIsWCPayEnabled:()=>tu,getIsWCPaySubscriptionsEligible:()=>Gu,getIsWCPaySubscriptionsEnabled:()=>Wu,getIsWooPayEnabled:()=>Qu,getIsWooPayGlobalThemeSupportEnabled:()=>Ku,getPaymentMethodStatuses:()=>ru,getPaymentRequestButtonBorderRadius:()=>Uu,getPaymentRequestButtonSize:()=>zu,getPaymentRequestButtonTheme:()=>Bu,getPaymentRequestButtonType:()=>Fu,getPaymentRequestLocations:()=>Pu,getSavingError:()=>Yu,getSettings:()=>Jl,getShowWooPayIncompatibilityNotice:()=>nm,getStripeBillingMigratedCount:()=>im,getStripeBillingSubscriptionCount:()=>am,getWooPayCustomMessage:()=>Zu,getWooPayLocations:()=>Xu,getWooPayStoreLogo:()=>Ju,isDirty:()=>iu,isSavingSettings:()=>au});var v={};n.r(v),n.d(v,{saveSettings:()=>zm,submitStripeBillingSubscriptionMigration:()=>Km,updateAccountBrandingLogo:()=>jm,updateAccountBusinessName:()=>Tm,updateAccountBusinessSupportAddress:()=>Om,updateAccountBusinessSupportEmail:()=>Mm,updateAccountBusinessSupportPhone:()=>Lm,updateAccountBusinessURL:()=>Am,updateAccountStatementDescriptor:()=>Cm,updateAccountStatementDescriptorKana:()=>Im,updateAccountStatementDescriptorKanji:()=>Nm,updateAdvancedFraudProtectionSettings:()=>qm,updateAvailablePaymentMethodIds:()=>gm,updateDepositScheduleInterval:()=>Dm,updateDepositScheduleMonthlyAnchor:()=>Pm,updateDepositScheduleWeeklyAnchor:()=>Rm,updateEnabledPaymentMethodIds:()=>_m,updateExportLanguage:()=>Fm,updateIsCardPresentEligible:()=>dm,updateIsDebugLogEnabled:()=>Sm,updateIsManualCaptureEnabled:()=>Em,updateIsMultiCurrencyEnabled:()=>xm,updateIsPaymentRequestEnabled:()=>fm,updateIsSavedCardsEnabled:()=>cm,updateIsSavingSettings:()=>vm,updateIsStripeBillingEnabled:()=>Qm,updateIsTestModeEnabled:()=>$m,updateIsWCPayEnabled:()=>hm,updateIsWCPaySubscriptionsEnabled:()=>km,updateIsWooPayEnabled:()=>Um,updateIsWooPayGlobalThemeSupportEnabled:()=>Vm,updatePaymentRequestButtonBorderRadius:()=>pm,updatePaymentRequestButtonSize:()=>um,updatePaymentRequestButtonTheme:()=>mm,updatePaymentRequestButtonType:()=>lm,updatePaymentRequestLocations:()=>Bm,updateProtectionLevel:()=>Gm,updateSelectedPaymentMethod:()=>wm,updateSettings:()=>ym,updateUnselectedPaymentMethod:()=>bm,updateWooPayCustomMessage:()=>Ym,updateWooPayLocations:()=>Wm,updateWooPayStoreLogo:()=>Hm});var w={};n.r(w),n.d(w,{getSettings:()=>Zm});var b={};n.r(b),n.d(b,{getCardReaderStats:()=>ap,getCardReaderStatsError:()=>ip,getCardReaders:()=>sp});var E={};n.r(E),n.d(E,{updateCardReaderStats:()=>cp,updateCardReaders:()=>dp,updateErrorForCardReaderStats:()=>lp,updateErrorForCardReaders:()=>up});var $={};n.r($),n.d($,{getCardReaderStats:()=>mp,getCardReaders:()=>pp});var S={};n.r(S),n.d(S,{getActiveLoanSummary:()=>gp,getActiveLoanSummaryError:()=>vp,getLoans:()=>wp,getLoansError:()=>bp});var x={};n.r(x),n.d(x,{updateActiveLoanSummary:()=>Ep,updateErrorForActiveLoanSummary:()=>$p,updateErrorForLoans:()=>xp,updateLoans:()=>Sp});var k={};n.r(k),n.d(k,{getActiveLoanSummary:()=>kp,getLoans:()=>Cp});var C={};n.r(C),n.d(C,{getDocuments:()=>Op,getDocumentsError:()=>Mp,getDocumentsSummary:()=>jp,getDocumentsSummaryError:()=>Dp});var N={};n.r(N),n.d(N,{updateDocuments:()=>Rp,updateDocumentsSummary:()=>Fp,updateErrorForDocuments:()=>Pp,updateErrorForDocumentsSummary:()=>zp});var I={};n.r(I),n.d(I,{formatQueryFilters:()=>Bp,getDocuments:()=>Up,getDocumentsSummary:()=>Vp});var T={};n.r(T),n.d(T,{getPaymentIntent:()=>Hp,getPaymentIntentError:()=>Wp});var A={};n.r(A),n.d(A,{getAuthorization:()=>ey,getAuthorizations:()=>Xp,getAuthorizationsError:()=>ty,getAuthorizationsSummary:()=>oy,getAuthorizationsSummaryError:()=>ry,getIsRequesting:()=>ay});var O={};n.r(O),n.d(O,{setIsRequestingAuthorization:()=>ly,submitCancelAuthorization:()=>my,submitCaptureAuthorization:()=>uy,updateAuthorization:()=>cy,updateAuthorizations:()=>iy,updateAuthorizationsSummary:()=>dy,updateErrorForAuthorizations:()=>sy,updateErrorForAuthorizationsSummary:()=>py});var M={};n.r(M),n.d(M,{getAuthorization:()=>hy,getAuthorizations:()=>yy,getAuthorizationsSummary:()=>fy});var L={};n.r(L),n.d(L,{getFile:()=>Ey,getFileError:()=>$y});var j={};n.r(j),n.d(j,{updateErrorForFiles:()=>xy,updateFiles:()=>Sy});var D={};n.r(D),n.d(D,{getFile:()=>ky});var R={};n.r(R),n.d(R,{getPaymentActivityData:()=>Ny});var P={};n.r(P),n.d(P,{updatePaymentActivity:()=>Iy});var F={};n.r(F),n.d(F,{getPaymentActivityData:()=>Ty});var z={};n.r(z),n.d(z,{Text:()=>mh,block:()=>ph,destructive:()=>hh,highlighterText:()=>_h,muted:()=>fh,positive:()=>yh,upperCase:()=>gh});var B={};n.r(B),n.d(B,{getAvailableCurrencies:()=>pI,getCurrencies:()=>mI,getCurrencySettings:()=>fI,getDefaultCurrency:()=>hI,getEnabledCurrencies:()=>yI,getStoreSettings:()=>_I});var U={};n.r(U),n.d(U,{submitCurrencySettings:()=>xI,submitEnabledCurrenciesUpdate:()=>SI,submitStoreSettingsUpdate:()=>kI,updateAvailableCurrencies:()=>vI,updateCurrencies:()=>gI,updateCurrencySettings:()=>EI,updateDefaultCurrency:()=>bI,updateEnabledCurrencies:()=>wI,updateStoreSettings:()=>$I});var V={};n.r(V),n.d(V,{getCurrencies:()=>CI,getCurrencySettings:()=>NI,getStoreSettings:()=>II});const Y=window.wp.i18n,H=window.wp.hooks;window.wp.mediaelement;var W=n(1609),G=n.n(W);const q=window.wp.element;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Q.apply(null,arguments)}var K=!!W.useInsertionEffect&&W.useInsertionEffect,Z=K||function(e){return e()};K||W.useLayoutEffect;var J={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function X(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ee=/[A-Z]|^ms/g,te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ne=function(e){return 45===e.charCodeAt(1)},oe=function(e){return null!=e&&"boolean"!=typeof e},re=X((function(e){return ne(e)?e:e.replace(ee,"-$&").toLowerCase()})),ae=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(te,(function(e,t,n){return se={name:t,styles:n,next:se},t}))}return 1===J[e]||ne(e)||"number"!=typeof t||0===t?t:t+"px"};function ie(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return se={name:n.name,styles:n.styles,next:se},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)se={name:o.name,styles:o.styles,next:se},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=ie(e,t,n[r])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?o+=a+"{"+t[i]+"}":oe(i)&&(o+=re(a)+":"+ae(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ie(e,t,i);switch(a){case"animation":case"animationName":o+=re(a)+":"+s+";";break;default:o+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)oe(i[c])&&(o+=re(a)+":"+ae(a,i[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=se,a=n(e);return se=r,ie(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var se,ce=/label:\s*([^\s;\n{]+)\s*(;|$)/g,de=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";se=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,r+=ie(n,t,a)):r+=a[0];for(var i=1;i<e.length;i++)r+=ie(n,t,e[i]),o&&(r+=a[i]);ce.lastIndex=0;for(var s,c="";null!==(s=ce.exec(r));)c+="-"+s[1];var d=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+c;return{name:d,styles:r,next:se}},le=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ue=Math.abs,me=String.fromCharCode,pe=Object.assign;function ye(e){return e.trim()}function he(e,t,n){return e.replace(t,n)}function fe(e,t){return e.indexOf(t)}function _e(e,t){return 0|e.charCodeAt(t)}function ge(e,t,n){return e.slice(t,n)}function ve(e){return e.length}function we(e){return e.length}function be(e,t){return t.push(e),e}var Ee=1,$e=1,Se=0,xe=0,ke=0,Ce="";function Ne(e,t,n,o,r,a,i){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:Ee,column:$e,length:i,return:""}}function Ie(e,t){return pe(Ne("",null,null,"",null,null,0),e,{length:-e.length},t)}function Te(){return ke=xe>0?_e(Ce,--xe):0,$e--,10===ke&&($e=1,Ee--),ke}function Ae(){return ke=xe<Se?_e(Ce,xe++):0,$e++,10===ke&&($e=1,Ee++),ke}function Oe(){return _e(Ce,xe)}function Me(){return xe}function Le(e,t){return ge(Ce,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function De(e){return Ee=$e=1,Se=ve(Ce=e),xe=0,[]}function Re(e){return Ce="",e}function Pe(e){return ye(Le(xe-1,Be(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(ke=Oe())&&ke<33;)Ae();return je(e)>2||je(ke)>3?"":" "}function ze(e,t){for(;--t&&Ae()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Le(e,Me()+(t<6&&32==Oe()&&32==Ae()))}function Be(e){for(;Ae();)switch(ke){case e:return xe;case 34:case 39:34!==e&&39!==e&&Be(ke);break;case 40:41===e&&Be(e);break;case 92:Ae()}return xe}function Ue(e,t){for(;Ae()&&e+ke!==57&&(e+ke!==84||47!==Oe()););return"/*"+Le(t,xe-1)+"*"+me(47===e?e:Ae())}function Ve(e){for(;!je(Oe());)Ae();return Le(e,xe)}var Ye="-ms-",He="-moz-",We="-webkit-",Ge="comm",qe="rule",Qe="decl",Ke="@keyframes";function Ze(e,t){for(var n="",o=we(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Je(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qe:return e.return=e.return||e.value;case Ge:return"";case Ke:return e.return=e.value+"{"+Ze(e.children,o)+"}";case qe:e.value=e.props.join(",")}return ve(n=Ze(e.children,o))?e.return=e.value+"{"+n+"}":""}function Xe(e){return Re(et("",null,null,null,[""],e=De(e),0,[0],e))}function et(e,t,n,o,r,a,i,s,c){for(var d=0,l=0,u=i,m=0,p=0,y=0,h=1,f=1,_=1,g=0,v="",w=r,b=a,E=o,$=v;f;)switch(y=g,g=Ae()){case 40:if(108!=y&&58==_e($,u-1)){-1!=fe($+=he(Pe(g),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:$+=Pe(g);break;case 9:case 10:case 13:case 32:$+=Fe(y);break;case 92:$+=ze(Me()-1,7);continue;case 47:switch(Oe()){case 42:case 47:be(nt(Ue(Ae(),Me()),t,n),c);break;default:$+="/"}break;case 123*h:s[d++]=ve($)*_;case 125*h:case 59:case 0:switch(g){case 0:case 125:f=0;case 59+l:-1==_&&($=he($,/\f/g,"")),p>0&&ve($)-u&&be(p>32?ot($+";",o,n,u-1):ot(he($," ","")+";",o,n,u-2),c);break;case 59:$+=";";default:if(be(E=tt($,t,n,d,l,r,s,v,w=[],b=[],u),a),123===g)if(0===l)et($,t,E,E,w,a,u,s,b);else switch(99===m&&110===_e($,3)?100:m){case 100:case 108:case 109:case 115:et(e,E,E,o&&be(tt(e,E,E,0,0,r,s,v,r,w=[],u),b),r,b,u,s,o?w:b);break;default:et($,E,E,E,[""],b,0,s,b)}}d=l=p=0,h=_=1,v=$="",u=i;break;case 58:u=1+ve($),p=y;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Te())continue;switch($+=me(g),g*h){case 38:_=l>0?1:($+="\f",-1);break;case 44:s[d++]=(ve($)-1)*_,_=1;break;case 64:45===Oe()&&($+=Pe(Ae())),m=Oe(),l=u=ve(v=$+=Ve(Me())),g++;break;case 45:45===y&&2==ve($)&&(h=0)}}return a}function tt(e,t,n,o,r,a,i,s,c,d,l){for(var u=r-1,m=0===r?a:[""],p=we(m),y=0,h=0,f=0;y<o;++y)for(var _=0,g=ge(e,u+1,u=ue(h=i[y])),v=e;_<p;++_)(v=ye(h>0?m[_]+" "+g:he(g,/&\f/g,m[_])))&&(c[f++]=v);return Ne(e,t,n,0===r?qe:s,c,d,l)}function nt(e,t,n){return Ne(e,t,n,Ge,me(ke),ge(e,2,-2),0)}function ot(e,t,n,o){return Ne(e,t,n,Qe,ge(e,0,o),ge(e,o+1,-1),o)}var rt=function(e,t,n){for(var o=0,r=0;o=r,r=Oe(),38===o&&12===r&&(t[n]=1),!je(r);)Ae();return Le(e,xe)},at=new WeakMap,it=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||at.get(n))&&!o){at.set(e,!0);for(var r=[],a=function(e,t){return Re(function(e,t){var n=-1,o=44;do{switch(je(o)){case 0:38===o&&12===Oe()&&(t[n]=1),e[n]+=rt(xe-1,t,n);break;case 2:e[n]+=Pe(o);break;case 4:if(44===o){e[++n]=58===Oe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=me(o)}}while(o=Ae());return e}(De(e),t))}(t,r),i=n.props,s=0,c=0;s<a.length;s++)for(var d=0;d<i.length;d++,c++)e.props[c]=r[s]?a[s].replace(/&\f/g,i[d]):i[d]+" "+a[s]}}},st=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ct(e,t){switch(function(e,t){return 45^_e(e,0)?(((t<<2^_e(e,0))<<2^_e(e,1))<<2^_e(e,2))<<2^_e(e,3):0}(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+He+e+Ye+e+e;case 6828:case 4268:return We+e+Ye+e+e;case 6165:return We+e+Ye+"flex-"+e+e;case 5187:return We+e+he(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Ye+"flex-$1$2")+e;case 5443:return We+e+Ye+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return We+e+Ye+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Ye+he(e,"shrink","negative")+e;case 5292:return We+e+Ye+he(e,"basis","preferred-size")+e;case 6060:return We+"box-"+he(e,"-grow","")+We+e+Ye+he(e,"grow","positive")+e;case 4554:return We+he(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-t>6)switch(_e(e,t+1)){case 109:if(45!==_e(e,t+4))break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+He+(108==_e(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fe(e,"stretch")?ct(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_e(e,t+1))break;case 6444:switch(_e(e,ve(e)-3-(~fe(e,"!important")&&10))){case 107:return he(e,":",":"+We)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(45===_e(e,14)?"inline-":"")+"box$3$1"+We+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return We+e+Ye+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Ye+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Ye+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Ye+e+e}return e}var dt=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Qe:e.return=ct(e.value,e.length);break;case Ke:return Ze([Ie(e,{value:he(e.value,"@","@"+We)})],o);case qe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ze([Ie(e,{props:[he(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Ze([Ie(e,{props:[he(t,/:(plac\w+)/,":"+We+"input-$1")]}),Ie(e,{props:[he(t,/:(plac\w+)/,":-moz-$1")]}),Ie(e,{props:[he(t,/:(plac\w+)/,Ye+"input-$1")]})],o)}return""}))}}],lt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,a=e.stylisPlugins||dt,i={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,d,l,u,m=[Je,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=(d=[it,st].concat(a,m),l=we(d),function(e,t,n,o){for(var r="",a=0;a<l;a++)r+=d[a](e,t,n,o)||"";return r});r=function(e,t,n,o){c=n,Ze(Xe(e?e+"{"+t.styles+"}":t.styles),p),o&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new le({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:r};return y.sheet.hydrate(s),y};function ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return de(t)}n(4146);const mt=window.lodash;var pt=n.n(mt);window.wp.warning;var yt=n(5606);const ht=(0,q.createContext)({}),ft=()=>(0,q.useContext)(ht);function _t(e){let{value:t}=e;const n=ft(),o=(0,q.useRef)(t);return function(e,n){const r=(0,q.useRef)(!1);(0,q.useEffect)((()=>{r.current?(0,mt.isEqual)(o.current,t)&&o.current!==t&&void 0!==yt&&yt.env:r.current=!0}),n)}(0,[t]),(0,q.useMemo)((()=>(0,mt.merge)((0,mt.cloneDeep)(n),t)),[n,t])}const gt=(0,q.memo)((e=>{let{children:t,value:n}=e;const o=_t({value:n});return(0,q.createElement)(ht.Provider,{value:o},t)})),vt="data-wp-component",wt="data-wp-c16t",bt="__contextSystemKey__";var Et=n(8616),$t=n.n(Et);const St=$t()((function(e){return`components-${(0,mt.kebabCase)(e)}`}));var xt=n(5606);function kt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:o=!1}=n;let r=(0,q.forwardRef)(e);o&&(r=(0,q.memo)(r)),void 0===t&&void 0!==xt&&xt.env;let a=r[bt]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),r.displayName=t,r[bt]=(0,mt.uniq)(a),r.selector=`.${St(t)}`,r}function Ct(e){if(!e)return[];let t=[];return e[bt]&&(t=e[bt]),e.type&&e.type[bt]&&(t=e.type[bt]),t}var Nt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,It=X((function(e){return Nt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Tt=W.createContext("undefined"!=typeof HTMLElement?lt({key:"css"}):null),At=Tt.Provider,Ot=W.createContext({}),Mt=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Lt=It,jt=function(e){return"theme"!==e},Dt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Lt:jt},Rt=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},Pt=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Mt(t,n,o),Z((function(){return function(e,t,n){Mt(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},Ft=function e(t,n){var o,r,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var s=Rt(t,n,a),c=s||Dt(i),d=!c("as");return function(){var l=arguments,u=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&u.push("label:"+o+";"),null==l[0]||void 0===l[0].raw)u.push.apply(u,l);else{u.push(l[0][0]);for(var m=l.length,p=1;p<m;p++)u.push(l[p],l[0][p])}var y,h=(y=function(e,t,n){var o,a,l,m,p=d&&e.as||i,y="",h=[],f=e;if(null==e.theme){for(var _ in f={},e)f[_]=e[_];f.theme=W.useContext(Ot)}"string"==typeof e.className?(o=t.registered,a=h,l=e.className,m="",l.split(" ").forEach((function(e){void 0!==o[e]?a.push(o[e]+";"):m+=e+" "})),y=m):null!=e.className&&(y=e.className+" ");var g=de(u.concat(h),t.registered,f);y+=t.key+"-"+g.name,void 0!==r&&(y+=" "+r);var v=d&&void 0===s?Dt(p):c,w={};for(var b in e)d&&"as"===b||v(b)&&(w[b]=e[b]);return w.className=y,w.ref=n,W.createElement(W.Fragment,null,W.createElement(Pt,{cache:t,serialized:g,isStringTag:"string"==typeof p}),W.createElement(p,w))},(0,W.forwardRef)((function(e,t){var n=(0,W.useContext)(Tt);return y(e,n,t)})));return h.displayName=void 0!==o?o:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=u,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+r}}),h.withComponent=function(t,o){return e(t,Q({},n,o,{shouldForwardProp:Rt(h,o,!0)})).apply(void 0,u)},h}};const zt=Ft("div",{target:"em57xhy0"})("");zt.selector=".components-view",zt.displayName="View";const Bt=zt;function Ut(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}function Vt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Yt(e,t,n){var o=[],r=Ut(e,o,n);return o.length<2?n:r+t(o)}var Ht=function e(t){for(var n="",o=0;o<t.length;o++){var r=t[o];if(null!=r){var a=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))a=e(r);else for(var i in a="",r)r[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=r}a&&(n&&(n+=" "),n+=a)}}return n},Wt=function(){var e=lt({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=de(n,e.registered,void 0);return function(e,t){!function(e,t){var n=e.key+"-"+t.name;void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(e,r),e.key+"-"+r.name};return{css:t,cx:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return Yt(e.registered,t,Ht(o))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=de(n,e.registered);Vt(e,r)},keyframes:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=de(n,e.registered),a="animation-"+r.name;return Vt(e,{name:r.name,styles:"@keyframes "+a+"{"+r.styles+"}"}),a},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Ut.bind(null,e.registered),merge:Yt.bind(null,e.registered,t)}}(),Gt=(Wt.flush,Wt.hydrate,Wt.cx);Wt.merge,Wt.getRegisteredStyles,Wt.injectGlobal,Wt.keyframes,Wt.css,Wt.sheet,Wt.cache;const qt=()=>{const e=(0,W.useContext)(Tt),t=(0,q.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Gt(...n.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t){var n=e.key+"-"+t.name;if(void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var Qt=n(5606);function Kt(e,t){const n=ft();void 0===t&&void 0!==Qt&&Qt.env;const o=(null==n?void 0:n[t])||{},r={[wt]:!0,...(a=t,{[vt]:a})};var a;const{_overrides:i,...s}=o,c=Object.entries(s).length?Object.assign({},s,e):e,d=qt()(St(t),e.className),l="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)r[e]=c[e];for(const e in i)r[e]=i[e];return r.children=l,r.className=d,r}const Zt={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"},Jt="4px";function Xt(e){var t,n;if(void 0===e)return;if(!e)return"0";const o="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(o)?e.toString():`calc(${Jt} * ${e})`}var en={grad:.9,turn:360,rad:360/(2*Math.PI)},tn=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},nn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},on=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rn=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},an=function(e){return{r:on(e.r,0,255),g:on(e.g,0,255),b:on(e.b,0,255),a:on(e.a)}},sn=function(e){return{r:nn(e.r),g:nn(e.g),b:nn(e.b),a:nn(e.a,3)}},cn=/^#([0-9a-f]{3,8})$/i,dn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ln=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,a=Math.max(t,n,o),i=a-Math.min(t,n,o),s=i?a===t?(n-o)/i:a===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:r}},un=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var a=Math.floor(t),i=o*(1-n),s=o*(1-(t-a)*n),c=o*(1-(1-t+a)*n),d=a%6;return{r:255*[o,s,i,i,c,o][d],g:255*[c,o,o,s,i,i][d],b:255*[i,i,c,o,o,s][d],a:r}},mn=function(e){return{h:rn(e.h),s:on(e.s,0,100),l:on(e.l,0,100),a:on(e.a)}},pn=function(e){return{h:nn(e.h),s:nn(e.s),l:nn(e.l),a:nn(e.a,3)}},yn=function(e){return un((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},hn=function(e){return{h:(t=ln(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},fn=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_n=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gn=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vn=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wn={string:[[function(e){var t=cn.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?nn(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?nn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=gn.exec(e)||vn.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:an({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=fn.exec(e)||_n.exec(e);if(!t)return null;var n,o,r=mn({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(en[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return yn(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,a=void 0===r?1:r;return tn(t)&&tn(n)&&tn(o)?an({r:Number(t),g:Number(n),b:Number(o),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,a=void 0===r?1:r;if(!tn(t)||!tn(n)||!tn(o))return null;var i=mn({h:Number(t),s:Number(n),l:Number(o),a:Number(a)});return yn(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,a=void 0===r?1:r;if(!tn(t)||!tn(n)||!tn(o))return null;var i=function(e){return{h:rn(e.h),s:on(e.s,0,100),v:on(e.v,0,100),a:on(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return un(i)},"hsv"]]},bn=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},En=function(e,t){var n=hn(e);return{h:n.h,s:on(n.s+100*t,0,100),l:n.l,a:n.a}},$n=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Sn=function(e,t){var n=hn(e);return{h:n.h,s:n.s,l:on(n.l+100*t,0,100),a:n.a}},xn=function(){function e(e){this.parsed=function(e){return"string"==typeof e?bn(e.trim(),wn.string):"object"==typeof e&&null!==e?bn(e,wn.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return nn($n(this.rgba),2)},e.prototype.isDark=function(){return $n(this.rgba)<.5},e.prototype.isLight=function(){return $n(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=sn(this.rgba)).r,n=e.g,o=e.b,a=(r=e.a)<1?dn(nn(255*r)):"","#"+dn(t)+dn(n)+dn(o)+a;var e,t,n,o,r,a},e.prototype.toRgb=function(){return sn(this.rgba)},e.prototype.toRgbString=function(){return t=(e=sn(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return pn(hn(this.rgba))},e.prototype.toHslString=function(){return t=(e=pn(hn(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=ln(this.rgba),{h:nn(e.h),s:nn(e.s),v:nn(e.v),a:nn(e.a,3)};var e},e.prototype.invert=function(){return kn({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),kn(En(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),kn(En(this.rgba,-e))},e.prototype.grayscale=function(){return kn(En(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),kn(Sn(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),kn(Sn(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?kn({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):nn(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hn(this.rgba);return"number"==typeof e?kn({h:e,s:t.s,l:t.l,a:t.a}):nn(t.h)},e.prototype.isEqual=function(e){return this.toHex()===kn(e).toHex()},e}(),kn=function(e){return e instanceof xn?e:new xn(e)},Cn=[],Nn=function(e){e.forEach((function(e){Cn.indexOf(e)<0&&(e(xn,wn),Cn.push(e))}))};function In(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=o[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),d=1/0,l="black";if(!a.length)for(var u in n)a[u]=new e(n[u]).toRgb();for(var m in n){var p=(r=c,i=a[m],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));p<d&&(d=p,l=m)}return l}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}function Tn(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return kn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}Nn([In]);const An={black:"#000",white:"#fff"},On={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},Mn={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Tn(On.gray[900],.62)},Ln={900:Tn("#000510",.9),800:Tn("#00000a",.85),700:Tn("#06060b",.8),600:Tn("#000913",.75),500:Tn("#0a1829",.7),400:Tn("#0a1829",.65),300:Tn("#0e1c2e",.62),200:Tn("#162435",.55),100:Tn("#223443",.5),backgroundFill:Tn(Mn[700],.7)},jn={900:Tn("#304455",.45),800:Tn("#425863",.4),700:Tn("#667886",.35),600:Tn("#7b86a2",.3),500:Tn("#9197a2",.25),400:Tn("#95959c",.2),300:Tn("#829493",.15),200:Tn("#8b8b96",.1),100:Tn("#747474",.05)},Dn={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Tn(An.white,.65)},Rn={900:Tn(An.white,.5),800:Tn(An.white,.45),700:Tn(An.white,.4),600:Tn(An.white,.35),500:Tn(An.white,.3),400:Tn(An.white,.25),300:Tn(An.white,.2),200:Tn(An.white,.15),100:Tn(An.white,.1),backgroundFill:Tn(Dn[300],.8)},Pn={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},Fn={theme:`var( --wp-admin-theme-color, ${Pn.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${Pn.medium.focus})`},zn={theme:Fn.theme,background:An.white,backgroundDisabled:Dn[200],border:On.gray[700],borderHover:On.gray[700],borderFocus:Fn.themeDark10,borderDisabled:On.gray[400],borderLight:On.gray[300],label:Mn[500],textDisabled:Mn[150],textDark:An.white,textLight:An.black},Bn=Object.assign({},An,{darkGray:(0,mt.merge)({},Mn,On.darkGray),darkOpacity:Ln,darkOpacityLight:jn,mediumGray:On.mediumGray,gray:On.gray,lightGray:(0,mt.merge)({},Dn,On.lightGray),lightGrayLight:Rn,blue:(0,mt.merge)({},Pn,On.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Fn,ui:zn}),Un="36px",Vn="12px",Yn={controlSurfaceColor:Bn.white,controlTextActiveColor:Bn.ui.theme,controlPaddingX:Vn,controlPaddingXLarge:`calc(${Vn} * 1.3334)`,controlPaddingXSmall:`calc(${Vn} / 1.3334)`,controlBackgroundColor:Bn.white,controlBorderRadius:"2px",controlBorderColor:Bn.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:Bn.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${Bn.admin.theme}`,controlDestructiveBorderColor:Bn.alert.red,controlHeight:Un,controlHeightXSmall:`calc( ${Un} * 0.6 )`,controlHeightSmall:`calc( ${Un} * 0.8 )`,controlHeightLarge:`calc( ${Un} * 1.2 )`,controlHeightXLarge:`calc( ${Un} * 1.4 )`},Hn={toggleGroupControlBackgroundColor:Yn.controlBackgroundColor,toggleGroupControlBorderColor:Bn.ui.border,toggleGroupControlBackdropBackgroundColor:Yn.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Bn.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Yn.controlBackgroundColor},Wn=Object.assign({},Yn,Hn,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Xt(2)}`,cardPaddingSmall:`${Xt(4)}`,cardPaddingMedium:`${Xt(4)} ${Xt(6)}`,cardPaddingLarge:`${Xt(6)} ${Xt(8)}`,surfaceBackgroundColor:Bn.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Bn.white,surfaceColor:Bn.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});function Gn(e){return`0 ${e}px ${2*e}px 0\n\trgba(0 ,0, 0, ${e/20})`}const qn=kt((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:o,focus:r,hover:a,isInteractive:i=!1,offset:s=0,value:c=0,...d}=Kt(e,"Elevation"),l=qt(),u=(0,q.useMemo)((()=>{let e=(0,mt.isNil)(a)?2*c:a,d=(0,mt.isNil)(t)?c/2:t;i||(e=(0,mt.isNil)(a)?void 0:a,d=(0,mt.isNil)(t)?void 0:t);const u=`box-shadow ${Wn.transitionDuration} ${Wn.transitionTimingFunction}`,m={};return m.Base=ut({borderRadius:n,bottom:s,boxShadow:Gn(c),opacity:Wn.elevationIntensity,left:s,right:s,top:s,transition:u},function(){let e;switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition"){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}("transition"),"",""),(0,mt.isNil)(e)||(m.hover=ut("*:hover>&{box-shadow:",Gn(e),";}","")),(0,mt.isNil)(d)||(m.active=ut("*:active>&{box-shadow:",Gn(d),";}","")),(0,mt.isNil)(r)||(m.focus=ut("*:focus>&{box-shadow:",Gn(r),";}","")),l(Zt,m.Base,m.hover&&m.hover,m.focus&&m.focus,m.active&&m.active,o)}),[t,n,o,l,r,a,i,s,c]);return{...d,className:u,"aria-hidden":!0}}(e);return(0,q.createElement)(Bt,Q({},n,{ref:t}))}),"Elevation"),Qn=qn,Kn=`calc(${Wn.cardBorderRadius} - 1px)`,Zn=ut("box-shadow:0 0 0 1px ",Wn.surfaceBorderColor,";outline:none;",""),Jn={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},Xn={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},eo={name:"13udsys",styles:"height:100%"},to={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},no={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},oo=ut("&:first-of-type{border-top-left-radius:",Kn,";border-top-right-radius:",Kn,";}&:last-of-type{border-bottom-left-radius:",Kn,";border-bottom-right-radius:",Kn,";}",""),ro=ut("border-color:",Wn.colorDivider,";",""),ao={name:"1t90u8d",styles:"box-shadow:none"},io={name:"1e1ncky",styles:"border:none"},so=ut("border-radius:",Kn,";",""),co=ut("padding:",Wn.cardPaddingXSmall,";",""),lo={large:ut("padding:",Wn.cardPaddingLarge,";",""),medium:ut("padding:",Wn.cardPaddingMedium,";",""),small:ut("padding:",Wn.cardPaddingSmall,";",""),xSmall:co,extraSmall:co},uo=ut("background-color:",Bn.lightGray[200],";",""),mo=window.wp.deprecated;var po=n.n(mo);const yo=ut("background-color:",Wn.surfaceColor,";color:",Bn.darkGray.primary,";position:relative;","");Wn.surfaceBackgroundColor;const ho=ut("",""),fo=ut("background:",Wn.surfaceBackgroundTintColor,";",""),_o=ut("background:",Wn.surfaceBackgroundTertiaryColor,";",""),go=e=>[e,e].join(" "),vo=e=>["90deg",[Wn.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),wo=e=>[[Wn.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),bo=[`linear-gradient( ${[`${Wn.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Wn.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),Eo=(e,t,n)=>{switch(e){case"dotted":return((e,t)=>ut("background:",(e=>[`linear-gradient( ${vo(e)} ) center`,`linear-gradient( ${wo(e)} ) center`,Wn.surfaceBorderBoldColor].join(","))(t),";background-size:",go(e),";",""))(t,n);case"grid":return(e=>ut("background:",Wn.surfaceBackgroundColor,";background-image:",bo,";background-size:",go(e),";",""))(t);case"primary":return ho;case"secondary":return fo;case"tertiary":return _o}};function $o(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:o=!1,borderRight:r=!1,borderTop:a=!1,className:i,variant:s="primary",...c}=Kt(e,"Surface"),d=qt(),l=(0,q.useMemo)((()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:n,borderRight:o,borderTop:r}=e;const a=`1px solid ${Wn.surfaceBorderColor}`;return ut({borderBottom:t?a:void 0,borderLeft:n?a:void 0,borderRight:o?a:void 0,borderTop:r?a:void 0},"","")}({borderBottom:n,borderLeft:o,borderRight:r,borderTop:a}),d(yo,e.borders,Eo(s,`${t}px`,t-1+"px"),i)}),[t,n,o,r,a,i,d,s]);return{...c,className:l}}const So=kt((function(e,t){const{children:n,elevation:o,isBorderless:r,isRounded:a,size:i,...s}=function(e){const{className:t,elevation:n=0,isBorderless:o=!1,isRounded:r=!0,size:a="medium",...i}=Kt(function(e){let{elevation:t,isElevated:n,...o}=e;const r={...o};let a=t;var i;return n&&(po()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=a)&&void 0!==i||(a=2)),void 0!==a&&(r.elevation=a),r}(e),"Card"),s=qt();return{...$o({...i,className:(0,q.useMemo)((()=>s(Zn,o&&ao,r&&so,t)),[t,s,o,r])}),elevation:n,isBorderless:o,isRounded:r,size:a}}(e),c=a?Wn.cardBorderRadius:0,d=qt(),l=(0,q.useMemo)((()=>d(ut({borderRadius:c},"",""))),[d,c]),u=(0,q.useMemo)((()=>{const e={size:i,isBorderless:r};return{CardBody:e,CardHeader:e,CardFooter:e}}),[r,i]);return(0,q.createElement)(gt,{value:u},(0,q.createElement)(Bt,Q({},s,{ref:t}),(0,q.createElement)(Bt,{className:d(eo)},n),(0,q.createElement)(Qn,{className:l,isInteractive:!1,value:o?1:0}),(0,q.createElement)(Qn,{className:l,isInteractive:!1,value:o})))}),"Card"),xo=ut("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Wn.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Wn.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Wn.colorScrollbarThumbHover,";}}",""),ko={name:"13udsys",styles:"height:100%"},Co={name:"7zq9w",styles:"scroll-behavior:smooth"},No={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},Io={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},To={name:"umwchj",styles:"overflow-y:auto"},Ao=kt((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:o=!1,...r}=Kt(e,"Scrollable"),a=qt();return{...r,className:(0,q.useMemo)((()=>a(ko,xo,o&&Co,"x"===n&&No,"y"===n&&Io,"auto"===n&&To,t)),[t,a,n,o])}}(e);return(0,q.createElement)(Bt,Q({},n,{ref:t}))}),"Scrollable"),Oo=kt((function(e,t){const{isScrollable:n,...o}=function(e){const{className:t,isScrollable:n=!1,isShady:o=!1,size:r="medium",...a}=Kt(e,"CardBody"),i=qt();return{...a,className:(0,q.useMemo)((()=>i(to,oo,lo[r],o&&uo,"components-card__body",t)),[t,i,o,r]),isScrollable:n}}(e);return n?(0,q.createElement)(Ao,Q({},o,{ref:t})):(0,q.createElement)(Bt,Q({},o,{ref:t}))}),"CardBody");var Mo=n(2485),Lo=n.n(Mo);const jo=window.wp.compose,Do=window.wp.dom,Ro=window.wp.primitives,Po=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Fo(e,t,n){const{defaultView:o}=t,{frameElement:r}=o;if(!r||t===n.ownerDocument)return e;const a=r.getBoundingClientRect();return new o.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let zo=0;function Bo(e){const t=document.scrollingElement||document.body;e&&(zo=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=zo)}let Uo=0;function Vo(){return(0,q.useEffect)((()=>(0===Uo&&Bo(!0),++Uo,()=>{1===Uo&&Bo(!1),--Uo})),[]),null}var Yo=n(5606);const Ho=(0,q.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==Yo&&Yo.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Wo(e){const t=(0,q.useContext)(Ho),n=t.slots[e]||{},o=t.fills[e],r=(0,q.useMemo)((()=>o||[]),[o]);return{...n,updateSlot:(0,q.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,q.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:r,registerFill:(0,q.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,q.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}const Go=(0,q.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function qo(e){let{name:t,children:n,registerFill:o,unregisterFill:r}=e;const a=(e=>{const{getSlot:t,subscribe:n}=(0,q.useContext)(Go),[o,r]=(0,q.useState)(t(e));return(0,q.useEffect)((()=>(r(t(e)),n((()=>{r(t(e))})))),[e]),o})(t),i=(0,q.useRef)({name:t,children:n});return(0,q.useLayoutEffect)((()=>(o(t,i.current),()=>r(t,i.current))),[]),(0,q.useLayoutEffect)((()=>{i.current.children=n,a&&a.forceUpdate()}),[n]),(0,q.useLayoutEffect)((()=>{t!==i.current.name&&(r(i.current.name,i.current),i.current.name=t,o(t,i.current))}),[t]),a&&a.node?((0,mt.isFunction)(n)&&(n=n(a.props.fillProps)),(0,q.createPortal)(n,a.node)):null}const Qo=e=>(0,q.createElement)(Go.Consumer,null,(t=>{let{registerFill:n,unregisterFill:o}=t;return(0,q.createElement)(qo,Q({},e,{registerFill:n,unregisterFill:o}))}));class Ko extends q.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:o}=this.props;e.name!==t&&(n(e.name),o(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:o}=this.props,r=(0,mt.map)(o(t,this),(e=>{const t=(0,mt.isFunction)(e.children)?e.children(n):e.children;return q.Children.map(t,((e,t)=>{if(!e||(0,mt.isString)(e))return e;const n=e.key||t;return(0,q.cloneElement)(e,{key:n})}))})).filter((0,mt.negate)(q.isEmptyElement));return(0,q.createElement)(q.Fragment,null,(0,mt.isFunction)(e)?e(r):r)}}const Zo=e=>(0,q.createElement)(Go.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:o,getFills:r}=t;return(0,q.createElement)(Ko,Q({},e,{registerSlot:n,unregisterSlot:o,getFills:r}))}));var Jo,Xo=new Uint8Array(16);function er(){if(!Jo&&!(Jo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jo(Xo)}const tr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var nr=[],or=0;or<256;++or)nr.push((or+256).toString(16).substr(1));const rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(nr[e[t+0]]+nr[e[t+1]]+nr[e[t+2]]+nr[e[t+3]]+"-"+nr[e[t+4]]+nr[e[t+5]]+"-"+nr[e[t+6]]+nr[e[t+7]]+"-"+nr[e[t+8]]+nr[e[t+9]]+"-"+nr[e[t+10]]+nr[e[t+11]]+nr[e[t+12]]+nr[e[t+13]]+nr[e[t+14]]+nr[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&tr.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},ar=function(e,t,n){var o=(e=e||{}).random||(e.rng||er)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return rr(o)},ir=new Set,sr=$t()((e=>{let t=ar().replace(/[0-9]/g,"");for(;ir.has(t);)t=ar().replace(/[0-9]/g,"");return ir.add(t),lt({container:e,key:t})}));function cr(e){let{children:t,document:n}=e;if(!n)return null;const o=sr(n.head);return(0,q.createElement)(At,{value:o},t)}function dr(){const[,e]=(0,q.useState)({}),t=(0,q.useRef)(!0);return(0,q.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function lr(e){let{name:t,children:n}=e;const o=Wo(t),r=(0,q.useRef)({rerender:dr()});if((0,q.useEffect)((()=>(o.registerFill(r),()=>{o.unregisterFill(r)})),[o.registerFill,o.unregisterFill]),!o.ref||!o.ref.current)return null;"function"==typeof n&&(n=n(o.fillProps));const a=(0,q.createElement)(cr,{document:o.ref.current.ownerDocument},n);return(0,q.createPortal)(a,o.ref.current)}const ur=(0,q.forwardRef)((function(e,t){let{name:n,fillProps:o={},as:r="div",...a}=e;const i=(0,q.useContext)(Ho),s=(0,q.useRef)();return(0,q.useLayoutEffect)((()=>(i.registerSlot(n,s,o),()=>{i.unregisterSlot(n,s)})),[i.registerSlot,i.unregisterSlot,n]),(0,q.useLayoutEffect)((()=>{i.updateSlot(n,o)})),(0,q.createElement)(r,Q({ref:(0,jo.useMergeRefs)([t,s])},a))}));function mr(e){return(0,q.createElement)(q.Fragment,null,(0,q.createElement)(Qo,e),(0,q.createElement)(lr,e))}const pr=(0,q.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...o}=e;return n?(0,q.createElement)(ur,Q({},o,{ref:t})):(0,q.createElement)(Zo,o)}));function yr(e){return"appear"===e?"top":"left"}const hr="Popover",fr=(0,q.createContext)();function _r(e,t){const{paddingTop:n,paddingBottom:o,paddingLeft:r,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),i=n?parseInt(n,10):0,s=o?parseInt(o,10):0,c=r?parseInt(r,10):0,d=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+i,width:e.width-c-d,height:e.height-i-s,left:e.left+c,right:e.right-d,top:e.top+i,bottom:e.bottom-s}}function gr(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function vr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function wr(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const br=(0,q.forwardRef)(((e,t)=>{let{headerTitle:n,onClose:o,children:r,className:a,noArrow:i=!0,isAlternate:s,position:c="bottom right",range:d,focusOnMount:l="firstElement",anchorRef:u,shouldAnchorIncludePadding:m,anchorRect:p,getAnchorRect:y,expandOnMobile:h,animate:f=!0,onFocusOutside:_,__unstableStickyBoundaryElement:g,__unstableSlotName:v=hr,__unstableObserveElement:w,__unstableBoundaryParent:b,__unstableForcePosition:E,__unstableForceXAlignment:$,__unstableEditorCanvasWrapper:S,...x}=e;const k=(0,q.useRef)(null),C=(0,q.useRef)(null),N=(0,q.useRef)(),I=(0,jo.useViewportMatch)("medium","<"),[T,A]=(0,q.useState)(),O=(0,q.useContext)(fr)||v,M=Wo(O),L=h&&I,[j,D]=(0,jo.useResizeObserver)();i=L||i,(0,q.useLayoutEffect)((()=>{if(L)return wr(N.current,"is-without-arrow",i),wr(N.current,"is-alternate",s),gr(N.current,"data-x-axis"),gr(N.current,"data-y-axis"),vr(N.current,"top"),vr(N.current,"left"),vr(C.current,"maxHeight"),void vr(C.current,"maxWidth");const e=()=>{if(!N.current||!C.current)return;let e=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return Fo(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==o){if(!(o&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==o?void 0:o.cloneRange))return Fo((0,Do.getRectangleFromRange)(o),o.endContainer.ownerDocument,a);if("function"==typeof(null==o?void 0:o.getBoundingClientRect)){const e=Fo(o.getBoundingClientRect(),o.ownerDocument,a);return r?e:_r(e,o)}const{top:e,bottom:t}=o,n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=Fo(new window.DOMRect(n.left,n.top,n.width,i.bottom-n.top),e.ownerDocument,a);return r?s:_r(s,o)}if(!e.current)return;const{parentNode:i}=e.current,s=Fo(i.getBoundingClientRect(),i.ownerDocument,a);return r?s:_r(s,i)}(k,p,y,u,m,N.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=N.current;let o,r=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();r=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}b&&(o=N.current.parentElement);const a=D.height?D:C.current.getBoundingClientRect(),{popoverTop:d,popoverLeft:l,xAxis:h,yAxis:f,contentHeight:_,contentWidth:v}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",o=arguments.length>3?arguments[3]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[d,l="center",u]=n.split(" "),m=function(e,t,n,o,r,a,i,s,c){const{height:d}=t;if(r){const t=r.getBoundingClientRect(),o=t.top+d-i,a=t.bottom-d-i;if(e.top<=o)return!c||d+10<c.scrollTop+e.top?{yAxis:n,popoverTop:Math.min(e.bottom,o)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let l=e.top+e.height/2;"bottom"===o?l=e.bottom:"top"===o&&(l=e.top);const u={popoverTop:l,contentHeight:(l-d/2>0?d/2:l)+(l+d/2>window.innerHeight?window.innerHeight-l:d/2)},m={popoverTop:e.top,contentHeight:e.top-10-d>0?d:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+d>window.innerHeight?window.innerHeight-10-e.bottom:d};let y,h=n,f=null;if(!r&&!s)if("middle"===n&&u.contentHeight===d)h="middle";else if("top"===n&&m.contentHeight===d)h="top";else if("bottom"===n&&p.contentHeight===d)h="bottom";else{h=m.contentHeight>p.contentHeight?"top":"bottom";const e="top"===h?m.contentHeight:p.contentHeight;f=e!==d?e:null}return y="middle"===h?u.popoverTop:"top"===h?m.popoverTop:p.popoverTop,{yAxis:h,popoverTop:y,contentHeight:f}}(e,t,d,u,o,0,r,i,c),p=function(e,t,n,o,r,a,i,s,c){const{width:d}=t;"left"===n&&(0,Y.isRTL)()?n="right":"right"===n&&(0,Y.isRTL)()&&(n="left"),"left"===o&&(0,Y.isRTL)()?o="right":"right"===o&&(0,Y.isRTL)()&&(o="left");const l=Math.round(e.left+e.width/2),u={popoverLeft:l,contentWidth:(l-d/2>0?d/2:l)+(l+d/2>window.innerWidth?window.innerWidth-l:d/2)};let m=e.left;"right"===o?m=e.right:"middle"===a||c||(m=l);let p=e.right;"left"===o?p=e.left:"middle"===a||c||(p=l);const y={popoverLeft:m,contentWidth:m-d>0?d:m},h={popoverLeft:p,contentWidth:p+d>window.innerWidth?window.innerWidth-p:d};let f,_=n,g=null;if(!r&&!s)if("center"===n&&u.contentWidth===d)_="center";else if("left"===n&&y.contentWidth===d)_="left";else if("right"===n&&h.contentWidth===d)_="right";else{_=y.contentWidth>h.contentWidth?"left":"right";const e="left"===_?y.contentWidth:h.contentWidth;d>window.innerWidth&&(g=window.innerWidth),e!==d&&(_="center",u.popoverLeft=window.innerWidth/2)}return f="center"===_?u.popoverLeft:"left"===_?y.popoverLeft:h.popoverLeft,i&&(f=Math.min(f,i.offsetLeft+i.offsetWidth-d),(0,Y.isRTL)()||(f=Math.max(f,0))),{xAxis:_,popoverLeft:f,contentWidth:g}}(e,t,l,u,o,m.yAxis,a,i,s);return{...p,...m}}(e,a,c,g,N.current,r,o,E,$,S);"number"==typeof d&&"number"==typeof l&&(vr(N.current,"top",d+"px"),vr(N.current,"left",l+"px")),wr(N.current,"is-without-arrow",i||"center"===h&&"middle"===f),wr(N.current,"is-alternate",s),gr(N.current,"data-x-axis",h),gr(N.current,"data-y-axis",f),vr(C.current,"maxHeight","number"==typeof _?_+"px":""),vr(C.current,"maxWidth","number"==typeof v?v+"px":""),A(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))};e();const{ownerDocument:t}=N.current,{defaultView:n}=t,o=n.setInterval(e,500);let r;const a=()=>{n.cancelAnimationFrame(r),r=n.requestAnimationFrame(e)};n.addEventListener("click",a),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const d=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(u);let l;return d&&d!==t&&(d.defaultView.addEventListener("resize",e),d.defaultView.addEventListener("scroll",e,!0)),w&&(l=new n.MutationObserver(e),l.observe(w,{attributes:!0})),()=>{var i,s;n.clearInterval(o),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",a),n.cancelAnimationFrame(r),d&&d!==t&&(null===(i=d.defaultView)||void 0===i||i.removeEventListener("resize",e),null===(s=d.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[L,p,y,u,m,c,D,g,w,b]);const R=(e,t)=>{"focus-outside"===e&&_?_(t):o&&o()},[P,F]=(0,jo.__experimentalUseDialog)({focusOnMount:l,__unstableOnClose:R,onClose:R}),z=(0,jo.useMergeRefs)([N,P,t]),B=Boolean(f&&T)&&function(e){if("loading"===e.type)return Lo()("components-animate__loading");const{type:t,origin:n=yr(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return Lo()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?Lo()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:T});let U=(0,q.createElement)("div",Q({className:Lo()("components-popover",a,B,{"is-expanded":L,"is-without-arrow":i,"is-alternate":s})},x,{ref:z},F,{tabIndex:"-1"}),L&&(0,q.createElement)(Vo,null),L&&(0,q.createElement)("div",{className:"components-popover__header"},(0,q.createElement)("span",{className:"components-popover__header-title"},n),(0,q.createElement)(jr,{className:"components-popover__close",icon:Po,onClick:o})),(0,q.createElement)("div",{ref:C,className:"components-popover__content"},(0,q.createElement)("div",{style:{position:"relative"}},j,r)));return M.ref&&(U=(0,q.createElement)(mr,{name:O},U)),u||p?U:(0,q.createElement)("span",{ref:k},U)}));br.Slot=(0,q.forwardRef)((function(e,t){let{name:n=hr}=e;return(0,q.createElement)(pr,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),br.__unstableSlotNameProvider=fr.Provider;const Er=br,$r=function(e){let t,n,{shortcut:o,className:r}=e;return o?((0,mt.isString)(o)&&(t=o),(0,mt.isObject)(o)&&(t=o.display,n=o.ariaLabel),(0,q.createElement)("span",{className:r,"aria-label":n},t)):null},Sr=700,xr=(0,q.createElement)("div",{className:"event-catcher"}),kr=e=>{let{eventHandlers:t,child:n,childrenWithPopover:o}=e;return(0,q.cloneElement)((0,q.createElement)("span",{className:"disabled-element-wrapper"},(0,q.cloneElement)(xr,t),(0,q.cloneElement)(n,{children:o})),t)},Cr=e=>{let{child:t,eventHandlers:n,childrenWithPopover:o}=e;return(0,q.cloneElement)(t,{...n,children:o})},Nr=(e,t,n)=>{if(1!==q.Children.count(e))return;const o=q.Children.only(e);o.props.disabled||"function"==typeof o.props[t]&&o.props[t](n)},Ir=function(e){const{children:t,position:n,text:o,shortcut:r,delay:a=Sr}=e,[i,s]=(0,q.useState)(!1),[c,d]=(0,q.useState)(!1),l=(0,jo.useDebounce)(d,a),u=e=>{Nr(t,"onMouseDown",e),document.addEventListener("mouseup",y),s(!0)},m=e=>{Nr(t,"onMouseUp",e),document.removeEventListener("mouseup",y),s(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?u:void 0,y=p("mouseUp"),h=(e,n)=>o=>{if(Nr(t,e,o),o.currentTarget.disabled)return;if("focus"===o.type&&i)return;l.cancel();const r=(0,mt.includes)(["focus","mouseenter"],o.type);r!==c&&(n?l(r):d(r))},f=()=>{l.cancel(),document.removeEventListener("mouseup",y)};if((0,q.useEffect)((()=>f),[]),1!==q.Children.count(t))return t;const _={onMouseEnter:h("onMouseEnter",!0),onMouseLeave:h("onMouseLeave"),onClick:h("onClick"),onFocus:h("onFocus"),onBlur:h("onBlur"),onMouseDown:p("mouseDown")},g=q.Children.only(t),{children:v,disabled:w}=g.props,b=w?kr:Cr,E=(e=>{let{grandchildren:t,isOver:n,position:o,text:r,shortcut:a}=e;return(0,q.concatChildren)(t,n&&(0,q.createElement)(Er,{focusOnMount:!1,position:o,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,(0,q.createElement)($r,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:v,isOver:c,position:n,text:o,shortcut:r});return b({child:g,eventHandlers:_,childrenWithPopover:E})},Tr=function(e){let{icon:t,className:n,...o}=e;const r=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,q.createElement)("span",Q({className:r},o))},Ar=function(e){let{icon:t=null,size:n=24,...o}=e;if("string"==typeof t)return(0,q.createElement)(Tr,Q({icon:t},o));if((0,q.isValidElement)(t)&&Tr===t.type)return(0,q.cloneElement)(t,{...o});if("function"==typeof t)return t.prototype instanceof q.Component?(0,q.createElement)(t,{size:n,...o}):t({size:n,...o});if(t&&("svg"===t.type||t.type===Ro.SVG)){const e={width:n,height:n,...t.props,...o};return(0,q.createElement)(Ro.SVG,e)}return(0,q.isValidElement)(t)?(0,q.cloneElement)(t,{size:n,...o}):t},Or={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"},Mr=kt((function(e,t){const{style:n,...o}=Kt(e,"VisuallyHidden");return(0,q.createElement)(Bt,Q({ref:t},o,{style:{...Or,...n||{}}}))}),"VisuallyHidden"),Lr=["onMouseDown","onClick"],jr=(0,q.forwardRef)((function e(t,n){const{href:o,target:r,isSmall:a,isPressed:i,isBusy:s,isDestructive:c,className:d,disabled:l,icon:u,iconPosition:m="left",iconSize:p,showTooltip:y,tooltipPosition:h,shortcut:f,label:_,children:g,text:v,variant:w,__experimentalIsFocusable:b,describedBy:E,...$}=function(e){let{isDefault:t,isPrimary:n,isSecondary:o,isTertiary:r,isLink:a,variant:i,...s}=e,c=i;var d,l,u,m,p;return n&&(null!==(d=c)&&void 0!==d||(c="primary")),r&&(null!==(l=c)&&void 0!==l||(c="tertiary")),o&&(null!==(u=c)&&void 0!==u||(c="secondary")),t&&(po()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(m=c)&&void 0!==m||(c="secondary")),a&&(null!==(p=c)&&void 0!==p||(c="link")),{...s,variant:c}}(t),S=(0,jo.useInstanceId)(e,"components-button__description"),x=Lo()("components-button",d,{"is-secondary":"secondary"===w,"is-primary":"primary"===w,"is-small":a,"is-tertiary":"tertiary"===w,"is-pressed":i,"is-busy":s,"is-link":"link"===w,"is-destructive":c,"has-text":!!u&&!!g,"has-icon":!!u}),k=l&&!b,C=void 0===o||k?"button":"a",N="a"===C?{href:o,target:r}:{type:"button",disabled:k,"aria-pressed":i};if(l&&b){N["aria-disabled"]=!0;for(const e of Lr)$[e]=e=>{e.stopPropagation(),e.preventDefault()}}const I=!k&&(y&&_||f||!!_&&(!g||(0,mt.isArray)(g)&&!g.length)&&!1!==y),T=E?S:null,A=$["aria-describedby"]||T,O=(0,q.createElement)(C,Q({},N,$,{className:x,"aria-label":$["aria-label"]||_,"aria-describedby":A,ref:n}),u&&"left"===m&&(0,q.createElement)(Ar,{icon:u,size:p}),v&&(0,q.createElement)(q.Fragment,null,v),u&&"right"===m&&(0,q.createElement)(Ar,{icon:u,size:p}),g);return I?(0,q.createElement)(q.Fragment,null,(0,q.createElement)(Ir,{text:E||_,shortcut:f,position:h},O),E&&(0,q.createElement)(Mr,null,(0,q.createElement)("span",{id:T},E))):(0,q.createElement)(q.Fragment,null,O,E&&(0,q.createElement)(Mr,null,(0,q.createElement)("span",{id:T},E)))})),Dr=function(e){let{label:t,children:n}=e;return(0,q.createElement)("div",{className:"components-panel__header"},t&&(0,q.createElement)("h2",null,t),n)},Rr=(0,q.forwardRef)((function(e,t){let{header:n,className:o,children:r}=e;const a=Lo()(o,"components-panel");return(0,q.createElement)("div",{className:a,ref:t},n&&(0,q.createElement)(Dr,{label:n}),r)})),Pr=(0,q.createElement)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,q.createElement)(Ro.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Fr=(0,q.createElement)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,q.createElement)(Ro.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function zr(e){return null!=e}const Br={initial:void 0,fallback:""},Ur=(0,q.forwardRef)(((e,t)=>{let{isOpened:n,icon:o,title:r,...a}=e;return r?(0,q.createElement)("h2",{className:"components-panel__body-title"},(0,q.createElement)(jr,Q({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),(0,q.createElement)("span",{"aria-hidden":"true"},(0,q.createElement)(Ar,{className:"components-panel__arrow",icon:n?Pr:Fr})),r,o&&(0,q.createElement)(Ar,{icon:o,className:"components-panel__icon",size:20}))):null})),Vr=(0,q.forwardRef)((function(e,t){let{buttonProps:n={},children:o,className:r,icon:a,initialOpen:i,onToggle:s=mt.noop,opened:c,title:d,scrollAfterOpen:l=!0}=e;const[u,m]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Br;const{initial:n,fallback:o}={...Br,...t},[r,a]=(0,q.useState)(e),i=zr(e);return(0,q.useEffect)((()=>{i&&r&&a(void 0)}),[i,r]),[function(){var e;let t=arguments.length>1?arguments[1]:void 0;return null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find(zr))&&void 0!==e?e:t}([e,r,n],o),e=>{i||a(e)}]}(c,{initial:void 0===i||i}),p=(0,q.useRef)(),y=(0,jo.useReducedMotion)()?"auto":"smooth",h=(0,q.useRef)();h.current=l,function(e,t){const n=(0,q.useRef)(!1);(0,q.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{var e;u&&h.current&&null!==(e=p.current)&&void 0!==e&&e.scrollIntoView&&p.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:y})}),[u,y]);const f=Lo()("components-panel__body",r,{"is-opened":u});return(0,q.createElement)("div",{className:f,ref:(0,jo.useMergeRefs)([p,t])},(0,q.createElement)(Ur,Q({icon:a,isOpened:u,onClick:e=>{e.preventDefault();const t=!u;m(t),s(t)},title:d},n)),"function"==typeof o?o({opened:u}):u&&o)}));Vr.displayName="PanelBody";const Yr=Vr,Hr=window.wp.apiFetch;var Wr=n.n(Hr);const Gr=window.wp.url,qr=window.wc.experimental,Qr=window.wc.components;var Kr=n(9031);window.wc.tracks,n(5721),(0,Y.__)("Metro Manila","woocommerce"),(0,Y.__)("Roma","woocommerce");var Zr=n(5518),Jr=n.n(Zr);const Xr=({className:e="",percent:t=0,color:n="#674399",bgcolor:o="var(--wp-admin-theme-color)"})=>{const r={backgroundColor:o},a={backgroundColor:n,width:`${t}%`,display:0===t?"none":"inherit"};return(0,W.createElement)("div",{className:`woocommerce-onboarding-progress-bar ${e}`},(0,W.createElement)("div",{className:"woocommerce-onboarding-progress-bar__container",style:r},(0,W.createElement)("div",{className:"woocommerce-onboarding-progress-bar__filler",style:a})))},ea=({children:e,className:t})=>(0,q.createElement)("div",{className:Jr()("woocommerce-onboarding-loader",t)},e);ea.Layout=({children:e,className:t})=>(0,q.createElement)("div",{className:Jr()("woocommerce-onboarding-loader-wrapper",t)},(0,q.createElement)("div",{className:Jr()("woocommerce-onboarding-loader-container",t)},e)),ea.Illustration=({children:e})=>(0,q.createElement)(q.Fragment,null,e),ea.Title=({children:e,className:t})=>(0,q.createElement)("h1",{className:Jr()("woocommerce-onboarding-loader__title",t)},e),ea.ProgressBar=({progress:e,className:t})=>(0,q.createElement)(Xr,{className:Jr()("progress-bar",t),percent:null!=e?e:0,color:"var(--wp-admin-theme-color)",bgcolor:"#E0E0E0"}),ea.Subtext=({children:e,className:t})=>(0,q.createElement)("p",{className:Jr()("woocommerce-onboarding-loader__paragraph",t)},e),ea.Sequence=({interval:e,shouldLoop:t=!0,children:n,onChange:o=()=>{}})=>{const[r,a]=(0,q.useState)(0),i=q.Children.count(n);(0,q.useEffect)((()=>{const n=setInterval((()=>{a((e=>{const r=e+1;if(t){const e=r%i;return o(e),e}return r<i?(o(r),r):(clearInterval(n),e)}))}),e);return()=>clearInterval(n)}),[e,n,t,i]);const s=q.Children.toArray(n)[r];return(0,q.createElement)(q.Fragment,null,s)};const ta=window.wp.domReady;var na=n.n(ta);const oa=(e,t={})=>{var n;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(n=wcpaySettings.trackingInfo)||void 0===n?void 0:n.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}na()((()=>{var n,o;(null!==(o=null===(n=null===wc||void 0===wc?void 0:wc.tracks)||void 0===n?void 0:n.recordEvent)&&void 0!==o?o:wcTracks.recordEvent)(e,t)}))},ra="https://cdn.sift.com/s.js",aa="https://js.stripe.com/v3",ia={sift:({beacon_key:e,session_id:t,user_id:n})=>{const o=window._sift=window._sift||[];if(o.push(["_setAccount",e]),o.push(["_setUserId",n]),o.push(["_setSessionId",t]),o.push(["_trackPageview"]),!document.querySelector(`[src="${ra}"]`)){const e=document.createElement("script");e.src=ra,e.async=!0,document.body.appendChild(e)}},stripe:()=>{if(!document.querySelector(`[src^="${aa}"]`)){const e=document.createElement("script");e.src=aa,e.async=!0,document.body.appendChild(e)}}},sa=window.wp.a11y;function ca(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const da=function(e){let{className:t,status:n="info",children:o,spokenMessage:r=o,onRemove:a=mt.noop,isDismissible:i=!0,actions:s=[],politeness:c=ca(n),__unstableHTML:d,onDismiss:l=mt.noop}=e;!function(e,t){const n="string"==typeof e?e:(0,q.renderToString)(e);(0,q.useEffect)((()=>{n&&(0,sa.speak)(n,t)}),[n,t])}(r,c);const u=Lo()(t,"components-notice","is-"+n,{"is-dismissible":i});return d&&(o=(0,q.createElement)(q.RawHTML,null,o)),(0,q.createElement)("div",{className:u},(0,q.createElement)("div",{className:"components-notice__content"},o,(0,q.createElement)("div",{className:"components-notice__actions"},s.map(((e,t)=>{let{className:n,label:o,isPrimary:r,variant:a,noDefaultClasses:i=!1,onClick:s,url:c}=e,d=a;return"primary"===a||i||(d=c?"link":"secondary"),void 0===d&&r&&(d="primary"),(0,q.createElement)(jr,{key:t,href:c,variant:d,onClick:c?void 0:s,className:Lo()("components-notice__action",n)},o)})))),i&&(0,q.createElement)(jr,{className:"components-notice__dismiss",icon:Po,label:(0,Y.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),l(),a()},showTooltip:!1}))},la=["40em","52em","64em"],ua={name:"zjik7",styles:"display:flex"},ma={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},pa={name:"82a6rk",styles:"flex:1"},ya={name:"13nosa1",styles:">*{min-height:0;}"},ha={name:"1pwxzk4",styles:">*{min-width:0;}"},fa=new RegExp(/-left/g),_a=new RegExp(/-right/g),ga=new RegExp(/Left/g),va=new RegExp(/Right/g),wa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,mt.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":fa.test(e)?e.replace(fa,"-right"):_a.test(e)?e.replace(_a,"-left"):ga.test(e)?e.replace(ga,"Right"):va.test(e)?e.replace(va,"Left"):e}(t)))};function ba(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,Y.isRTL)()?ut(t,""):ut(e,""):(0,Y.isRTL)()?ut(wa(e),""):ut(e,"")}function Ea(e){const{align:t="center",className:n,direction:o="row",expanded:r=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=Kt(function(e){let{isReversed:t,...n}=e;return void 0!==t?(po()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),d=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>la.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${la.length} breakpoints, got index ${t}`);const[n,o]=(0,q.useState)(t);return(0,q.useEffect)((()=>{const e=()=>{const e=la.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&o(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const n=e||[];return n[t>=n.length?n.length-1:t]}(Array.isArray(o)?o:[o]),l="string"==typeof d&&!!d.includes("column"),u="string"==typeof d&&d.includes("reverse"),m=qt();return{...c,className:(0,q.useMemo)((()=>{const e={};return e.Base=ut({alignItems:l?"normal":t,flexDirection:d,flexWrap:s?"wrap":void 0,justifyContent:i,height:l&&r?"100%":void 0,width:!l&&r?"100%":void 0,marginBottom:s?`calc(${Xt(a)} * -1)`:void 0},"",""),e.Items=ut(">*+*:not( marquee ){margin-top:",l?Xt(a):void 0,";",ba({marginLeft:l||u?void 0:Xt(a),marginRight:!l&&u?Xt(a):void 0})(),";}",""),e.WrapItems=ut(">*:not( marquee ){margin-bottom:",Xt(a),";",ba({marginLeft:!l&&u?Xt(a):void 0,marginRight:l||u?void 0:Xt(a)})(),";}>*:last-child:not( marquee ){",ba({marginLeft:!l&&u?0:void 0,marginRight:l||u?void 0:0})(),";}",""),m(ua,e.Base,s?e.WrapItems:e.Items,l?ya:ha,n)}),[t,n,m,d,r,a,l,u,i,s,ba.watch()]),isColumn:l}}ba.watch=()=>(0,Y.isRTL)();const $a=(0,q.createContext)({flexItemDisplay:void 0}),Sa=kt((function(e,t){const{children:n,isColumn:o,...r}=Ea(e);return(0,q.createElement)($a.Provider,{value:{flexItemDisplay:o?"block":void 0}},(0,q.createElement)(Bt,Q({},r,{ref:t}),n))}),"Flex");function xa(e){const{className:t,display:n,isBlock:o=!1,...r}=Kt(e,"FlexItem"),a={},i=(0,q.useContext)($a).flexItemDisplay;return a.Base=ut({display:n||i},"",""),{...r,className:qt()(ma,a.Base,o&&pa,t)}}const ka=kt((function(e,t){const n=xa(e);return(0,q.createElement)(Bt,Q({},n,{ref:t}))}),"FlexItem");var Ca=n(5955),Na=n(4275);const Ia=function(e){const{icon:t,actions:n,children:o,buttonVariant:r}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["icon","actions","children","buttonVariant"]);a.className=Lo()("wcpay-inline-notice",`wcpay-inline-${a.status}-notice`,a.className);let i=t;if(!0===i)switch(a.status){case"success":i=W.createElement(Ca.A,null);break;case"error":case"warning":i=W.createElement(Kr.A,null);break;default:i=W.createElement(Na.A,null)}const s="wcpay-inline-notice__action",c=null==n?void 0:n.map(((e,t)=>{var n,o;return"url"in e?W.createElement("a",{key:t,className:s,href:e.url},e.label):W.createElement(jr,{key:t,className:s,onClick:e.onClick,isBusy:null!==(n=e.isBusy)&&void 0!==n&&n,disabled:null!==(o=e.disabled)&&void 0!==o&&o,variant:r},e.label)}));return W.createElement(da,Object.assign({},a),W.createElement(Sa,{align:"center",justify:"flex-start"},i&&W.createElement(ka,{className:`wcpay-inline-notice__icon wcpay-inline-${a.status}-notice__icon`},W.createElement(Ar,{icon:i,size:24})),W.createElement(ka,{className:`wcpay-inline-notice__content wcpay-inline-${a.status}-notice__content`},o,c&&W.createElement(Sa,{className:"wcpay-inline-notice__content__actions",align:"baseline",justify:"flex-start",gap:4},c))))};var Ta=n(4848);class Aa extends q.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){return this.state.error?(0,Ta.jsxs)(Ia,{icon:!0,status:"error",isDismissible:!1,children:[(0,Y.__)("There was an error rendering this view. Please contact support for assistance if the problem persists.","woocommerce-payments"),(0,Ta.jsx)("br",{}),this.state.error.toString()]}):this.props.children}}const Oa=Aa,Ma=({children:e,maxWidth:t,isNarrow:n,className:o=""})=>{const r=t?{maxWidth:t}:void 0,a=[o,"woocommerce-payments-page"];return n&&a.push("is-narrow"),(0,q.useEffect)((()=>{(e=>{for(const t in e){const n=ia[t];n&&e[t]&&n(e[t])}})("undefined"!=typeof wcpaySettings?wcpaySettings.fraudServices:[])}),[]),W.createElement("div",{className:a.join(" "),style:r},W.createElement(Oa,null,e))},La=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),ja=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));var Da=n(5588),Ra=n(4788);const Pa={success:La,error:Da.A,warning:Kr.A,info:ja},Fa=({icon:e,children:t,actions:n=[],className:o,status:r="info",isDismissible:a=!0,onRemove:i})=>{((e,t)=>{const n="string"==typeof t?t:(0,q.renderToString)(t),o="error"===e?"assertive":"polite";(0,q.useEffect)((()=>{n&&(0,sa.speak)(n,o)}),[n,o])})(r,t);const s=!0===e?Pa[r]:e,c=Lo()(o,"wcpay-banner-notice","is-"+r);return G().createElement("div",{className:c},s&&G().createElement(Ar,{icon:s,className:"wcpay-banner-notice__icon"}),G().createElement("div",{className:"wcpay-banner-notice__content"},t,n.length>0&&G().createElement("div",{className:"wcpay-banner-notice__actions"},n.map((({className:e,label:t,variant:n,onClick:o,url:r,urlTarget:a},i)=>{let s=n;return"primary"!==n&&(s=r?"link":"secondary"),G().createElement(jr,{key:i,href:r,variant:s,onClick:r?void 0:o,className:e,target:a},t)})))),a&&G().createElement(jr,{className:"wcpay-banner-notice__dismiss",icon:Ra.A,label:(0,Y.__)("Dismiss this notice","woocommerce-payments"),onClick:()=>null==i?void 0:i(),showTooltip:!1}))};function za(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function Ba(e,t){let n,o,r=[];for(let a=0;a<e.length;a++){const i=e[a];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],o=a;break}r.push(t[i.value])}else r.push(i.value)}if(n){const a=function(e,t){const n=t[e];let o=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===n.value){if("componentOpen"===e.type){o++;continue}if("componentClose"===e.type){if(0===o)return r;o--}}}throw new Error("Missing closing component token `"+n.value+"`")}(o,e),i=Ba(e.slice(o+1,a),t),s=(0,W.cloneElement)(n,{},i);if(r.push(s),a<e.length-1){const n=Ba(e.slice(a+1),t);r=r.concat(n)}}return r=r.filter(Boolean),0===r.length?null:1===r.length?r[0]:(0,W.createElement)(W.Fragment,null,...r)}function Ua(e){const{mixedString:t,components:n,throwErrors:o}=e;if(!n)return t;if("object"!=typeof n){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const r=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(za)}(t);try{return Ba(r,n)}catch(e){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const Va={button:{jetpack_not_connected:(0,Y.__)("Connect your store","woocommerce-payments"),account_not_connected:(0,Y.__)("Verify business details","woocommerce-payments"),account_invalid:(0,Y.__)("Finish business details verifications","woocommerce-payments"),sandbox:(0,Y.__)("Enable sandbox mode","woocommerce-payments"),reset:(0,Y.__)("Reset account","woocommerce-payments")},heading:e=>(0,Y.sprintf)((0,Y.__)("Hi%s, Welcome to %s!","woocommerce"),e?` ${e}`:"","WooPayments"),paymentMethods:{deposits:{title:(0,Y.__)("Payouts","woocommerce-payments"),value:(0,Y.__)("Automatic - Daily","woocommerce-payments")},capture:{title:(0,Y.__)("Payments capture","woocommerce-payments"),value:(0,Y.__)("Capture on order","woocommerce-payments")},recurring:{title:(0,Y.__)("Recurring payments","woocommerce-payments"),value:(0,Y.__)("Supported","woocommerce-payments")}},usp1:(0,Y.__)("Offer card payments, Apple Pay, iDeal, Affirm, Afterpay, and accept in-person payments with the Woo mobile app.","woocommerce-payments"),usp2:(0,Y.__)("Sell to international markets and accept over 135 currencies with local payment methods.","woocommerce-payments"),usp3:(0,Y.__)("Earn recurring revenue and get payouts into your bank account.","woocommerce-payments"),sandboxMode:{title:(0,Y.__)("I'm setting up a store for someone else.","woocommerce-payments"),description:(0,Y.sprintf)((0,Y.__)("This option will set up %s in sandbox mode. You can use our test data to set up. When you’re ready to launch your store, switching to live payments is easy.","woocommerce-payments"),"WooPayments")},sandboxModeNotice:Ua({mixedString:(0,Y.__)("Sandbox mode is enabled, only test accounts will be created. If you want to process live transactions, please {{learnMoreLink}}disable it{{/learnMoreLink}}.","woocommerce-payments"),components:{learnMoreLink:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer"})}}),setupErrorNotice:(0,Y.sprintf)((0,Y.__)("Please <b>complete your %1$s setup</b> to process payments.","woocommerce-payments"),"WooPayments"),infoNotice:{description:{jetpack_connected:(0,Y.__)("You'll need to verify your business and payment details to ","woocommerce-payments"),jetpack_not_connected:(0,Y.__)("To ensure safe and secure transactions, a WordPress.com account is required before you can verify your business details.","woocommerce-payments")},button:(0,Y.__)("enable payouts.","woocommerce-payments")},infoModal:{title:(0,Y.sprintf)((0,Y.__)("Verifying your information with %s","woocommerce-payments"),"WooPayments"),whyWeAsk:{heading:(0,Y.__)("Why we ask for personal financial information","woocommerce-payments"),description:(0,Y.sprintf)((0,Y.__)("As you continue the process of signing up for %s, we'll ask for information about your business, including the business owner's date of birth and tax ID number. We know you may wonder why we ask for this information, and how it will be used. The “Know Your Customer” process, explained below, helps us provide a safe, ethical environment for all financial transactions.","woocommerce-payments"),"WooPayments")},whatIsKyc:{heading:(0,Y.__)("What is “Know Your Customer”?","woocommerce-payments"),description:(0,Y.__)("“Know Your Customer” standards are used by banks and other financial institutions to confirm that customers are who they say they are. By confirming their customers' identities, banks and financial institutions can help keep transactions safe from fraud and other suspicious activities.","woocommerce-payments")},whyShareInfo:{heading:(0,Y.__)("Why do I have to share this information?","woocommerce-payments"),description:(0,Y.__)("Before we build a payment relationship with a customer, we ask for the information listed above to validate the business owner's identity and tax ID number, and to ensure that we can connect the listed bank account with the business itself.","woocommerce-payments"),description2:(0,Y.__)("The ultimate goal of the “Know Your Customer” process is to help your business get up and running with payments as soon as possible while protecting your business and your customers. We follow the same regulations as other financial institutions so that we can ensure we operate in an ethical and trustworthy manner. We want to protect your business and the payments that we manage for you. The “Know Your Customer” process helps us protect you.","woocommerce-payments")},whatElse:{heading:(0,Y.__)("What else should I keep in mind while completing this process?","woocommerce-payments"),description:(0,Y.sprintf)((0,Y.__)("If you're setting up %s for someone else, it's best to have that person complete the account creation process. As you can see above, we ask for very specific information about the business owner - and you might not have all the details at hand. It's not always possible to change account information once it's been saved, especially if the site accepts live transactions before the correct account information is entered.","woocommerce-payments"),"WooPayments")},isMyDataSafe:{heading:(0,Y.sprintf)((0,Y.__)("Is my data safe with %s?","woocommerce-payments"),"WooPayments"),description:(0,Y.sprintf)((0,Y.__)("We take every step required to safeguard your personal data. %s is built in partnership with Stripe to store your data in a safe and secure manner.","woocommerce-payments"),"WooPayments")},howQuickly:{heading:(0,Y.__)("How quickly will you confirm my identity and allow me to process payments?","woocommerce-payments"),description:(0,Y.__)("We'll do our best to work with Stripe to confirm your identity as quickly as we can. Typically, we'll confirm your application within a couple of days.","woocommerce-payments")},whatInformation:{heading:(0,Y.__)("What information should I have at hand before I start the “Know Your Customer” process?","woocommerce-payments"),description:(0,Y.__)("Here's a brief list of the information you'll need to finish payment signup:")},businessOwnerInfo:{heading:(0,Y.__)("Business owner info:","woocommerce-payments"),fields:[(0,Y.__)("Legal name","woocommerce-payments"),(0,Y.__)("Date of birth","woocommerce-payments"),(0,Y.__)("Home address","woocommerce-payments"),(0,Y.__)("Email address","woocommerce-payments"),(0,Y.__)("Mobile phone number","woocommerce-payments"),(0,Y.__)("Bank account information","woocommerce-payments"),(0,Y.__)("Social Security number (SSN) or Taxpayer Identification Number","woocommerce-payments")]},businessInfo:{heading:(0,Y.__)("Business info:","woocommerce-payments"),fields:[(0,Y.__)("Country where your business is based","woocommerce-payments "),(0,Y.__)("Type of business","woocommerce-payments "),(0,Y.__)("Industry","woocommerce-payments "),(0,Y.__)("Company address","woocommerce-payments "),(0,Y.__)("Company phone number","woocommerce-payments "),(0,Y.__)("Company URL","woocommerce-payments ")]}},stepsHeading:(0,Y.__)("You’re only steps away from getting paid","woocommerce-payments"),step1:{heading:(0,Y.__)("Create and connect your account","woocommerce-payments"),description:(0,Y.__)("To ensure safe and secure transactions, a WordPress.com account is required.","woocommerce-payments")},step2:{heading:(0,Y.__)("Provide a few business details","woocommerce-payments"),description:(0,Y.__)("Next we’ll ask you to verify your business and payment details to enable payouts.","woocommerce-payments")},step3:{heading:(0,Y.__)("Setup complete!","woocommerce-payments"),description:(0,Y.sprintf)((0,Y.__)("You’re ready to start using the features and benefits of %s.","woocommerce-payments"),"WooPayments")},onboardingDisabled:(0,Y.__)("We've temporarily paused new account creation. We'll notify you when we resume!","woocommerce-payments"),incentive:{limitedTimeOffer:(0,Y.__)("Limited time offer","woocommerce-payments"),details:(0,Y.__)("Discount will be applied to payments processed via WooPayments upon completion of installation, setup, and connection.","woocommerce-payments"),termsAndConditions:e=>(0,q.createInterpolateElement)((0,Y.__)("*See <a>Terms and Conditions</a> for details.","woocommerce-payments"),{a:G().createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"})}),error:(0,Y.__)("There was an error applying the promotion. Please contact support for assistance if the problem persists","woocommerce-payments")},nonSupportedCountry:(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("<b>%1$s is not currently available in your location</b>. To be eligible for %1$s, your business address must be in one of the following <a>supported countries</a>.","woocommerce-payments"),"WooPayments"),{b:G().createElement("b",null),a:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/compatibility/countries/",target:"_blank",rel:"noopener noreferrer"})})};var Ya=n(2838);const Ha=e=>({__html:(0,Ya.sanitize)(e,{ALLOWED_TAGS:["a","b","em","i","strong","p","br"],ALLOWED_ATTR:["target","href","rel","name","download"]})}),Wa=e=>G().createElement("div",{className:"connect-account-page__incentive"},G().createElement("div",{className:"connect-account-page__incentive-pill"},Va.incentive.limitedTimeOffer),G().createElement("h2",{dangerouslySetInnerHTML:Ha(e.description+"*")}),G().createElement("p",null,Va.incentive.details),G().createElement("p",null,Va.incentive.termsAndConditions(e.tc_url))),Ga=window.wp.keycodes,qa=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Qa=new Set(["alert","status","log","marquee","timer"]);let Ka=[],Za=!1;let Ja=0;const Xa=(0,q.forwardRef)((function e(t,n){const{bodyOpenClassName:o="modal-open",role:r="dialog",title:a=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:c=!0,isDismissible:d=!0,aria:l={labelledby:null,describedby:null},onRequestClose:u,icon:m,closeButtonLabel:p,children:y,style:h,overlayClassName:f,className:_,contentLabel:g,onKeyDown:v,isFullScreen:w=!1,__experimentalHideHeader:b=!1}=t,E=(0,q.useRef)(),$=(0,jo.useInstanceId)(e),S=a?`components-modal-header-${$}`:l.labelledby,x=(0,jo.useFocusOnMount)(i),k=(0,jo.useConstrainedTabbing)(),C=(0,jo.useFocusReturn)(),N=(0,jo.__experimentalUseFocusOutside)(u);return(0,q.useEffect)((()=>(Ja++,1===Ja&&(function(e){if(Za)return;const t=document.body.children;(0,mt.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Qa.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Ka.push(t))})),Za=!0}(E.current),document.body.classList.add(o)),()=>{Ja--,0===Ja&&(document.body.classList.remove(o),Za&&((0,mt.forEach)(Ka,(e=>{e.removeAttribute("aria-hidden")})),Ka=[],Za=!1))})),[]),(0,q.createPortal)((0,q.createElement)("div",{ref:(0,jo.useMergeRefs)([E,n]),className:Lo()("components-modal__screen-overlay",f),onKeyDown:function(e){s&&e.keyCode===Ga.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),u&&u(e))}},(0,q.createElement)(cr,{document},(0,q.createElement)("div",Q({className:Lo()("components-modal__frame",_,{"is-full-screen":w}),style:h,ref:(0,jo.useMergeRefs)([k,C,x]),role:r,"aria-label":g,"aria-labelledby":g?null:S,"aria-describedby":l.describedby,tabIndex:"-1"},c?N:{},{onKeyDown:v}),(0,q.createElement)("div",{className:Lo()("components-modal__content",{"hide-header":b}),role:"document"},!b&&(0,q.createElement)("div",{className:"components-modal__header"},(0,q.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,q.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,q.createElement)("h1",{id:S,className:"components-modal__header-heading"},a)),d&&(0,q.createElement)(jr,{onClick:u,icon:qa,label:p||(0,Y.__)("Close dialog")})),y)))),document.body)})),ei=()=>G().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"-4 -4 24 24"},G().createElement("path",{fillRule:"evenodd",d:"M8 1.33a4.67 4.67 0 0 0-2.67 8.5v1.5c0 .37.3.67.67.67h4c.37 0 .67-.3.67-.67v-1.5A4.66 4.66 0 0 0 8 1.33ZM6 14c0 .37.3.67.67.67h2.66c.37 0 .67-.3.67-.67v-.67H6V14Zm3.33-4.87.57-.4a3.33 3.33 0 1 0-3.8 0l.57.4v1.54h2.66V9.13Z",clipRule:"evenodd"})),ti=({color:e,className:t,children:n})=>G().createElement("div",{className:Lo()("wcpay-component-tip-box",e,t)},G().createElement(ei,null),G().createElement("div",{className:"wcpay-component-tip-box__content"},n)),ni=e=>e.map((e=>G().createElement("li",{key:e},e))),oi=()=>{const[e,t]=(0,W.useState)(!1),n=()=>t(!1);return G().createElement(G().Fragment,null,G().createElement(ti,{color:"yellow"},wcpaySettings.isJetpackConnected?Va.infoNotice.description.jetpack_connected:Va.infoNotice.description.jetpack_not_connected,wcpaySettings.isJetpackConnected&&G().createElement(jr,{variant:"link",onClick:()=>{oa("wcpay_connect_account_kyc_modal_opened"),t(!0)}},Va.infoNotice.button)),e&&G().createElement(Xa,{title:Va.infoModal.title,isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:n,className:"connect-account-page__info-modal"},G().createElement("div",null,G().createElement("h4",null,Va.infoModal.whyWeAsk.heading," "),G().createElement("p",null,Va.infoModal.whyWeAsk.description),G().createElement("h4",null,Va.infoModal.whatIsKyc.heading," "),G().createElement("p",null,Va.infoModal.whatIsKyc.description),G().createElement("h4",null,Va.infoModal.whyShareInfo.heading," "),G().createElement("p",null,Va.infoModal.whyShareInfo.description),G().createElement("p",null,Va.infoModal.whyShareInfo.description2),G().createElement("h4",null,Va.infoModal.whatElse.heading," "),G().createElement("p",null,Va.infoModal.whatElse.description),G().createElement("h4",null,Va.infoModal.isMyDataSafe.heading," "),G().createElement("p",null,Va.infoModal.isMyDataSafe.description),G().createElement("h4",null,Va.infoModal.howQuickly.heading," "),G().createElement("p",null,Va.infoModal.howQuickly.description),G().createElement("h4",null,Va.infoModal.whatInformation.heading," "),G().createElement("p",null,Va.infoModal.whatInformation.description),G().createElement(da,{status:"warning",isDismissible:!1},G().createElement("b",null,Va.infoModal.businessOwnerInfo.heading),G().createElement("ul",null,ni(Va.infoModal.businessOwnerInfo.fields))),G().createElement(da,{status:"warning",isDismissible:!1},G().createElement("b",null,Va.infoModal.businessInfo.heading),G().createElement("ul",null,ni(Va.infoModal.businessInfo.fields)))),G().createElement("hr",null),G().createElement("div",{className:"connect-account-page__info-modal__footer"},G().createElement(jr,{variant:"primary",onClick:n},(0,Y.__)("Got it","woocommerce-payments")))))},ri=e=>(0,Ta.jsx)(Qr.Link,{...e,href:"https://woocommerce.com/document/woopayments/compatibility/countries/",target:"_blank",rel:"noopener noreferrer",type:"external"}),ai=({countries:e,onDeclined:t,onConfirmed:n})=>{const[o,r]=(0,q.useState)(!0),[a,i]=(0,q.useState)(!1);if(!o)return null;const s=()=>{r(!1),t()},c=Ua({mixedString:(0,Y.sprintf)((0,Y.__)("It appears you're attempting to set up %1$s from an unsupported country. In order to complete the set up of %1$s, your store is required to have a business entity in one of the following countries: {{list /}} {{link}}Learn more{{/link}} about setting up business entities in foreign countries.","woocommerce-payments"),"WooPayments"),components:{link:(0,Ta.jsx)(ri,{}),list:(0,Ta.jsx)(Qr.List,{items:e})}});return(0,Ta.jsx)(Xa,{title:"WooPayments",isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:s,className:"woocommerce-payments__onboarding_location_check-modal",children:(0,Ta.jsxs)("div",{className:"woocommerce-payments__onboarding_location_check-wrapper",children:[(0,Ta.jsx)("div",{className:"woocommerce-payments__onboarding_location_check-modal-message",children:c}),(0,Ta.jsxs)("div",{className:"woocommerce-payments__onboarding_location_check-footer",children:[(0,Ta.jsx)(jr,{isSecondary:!0,onClick:()=>{i(!0),n()},isBusy:a,children:(0,Y.__)("Continue","woocommerce-payments")}),(0,Ta.jsx)(jr,{isPrimary:!0,onClick:s,disabled:a,children:(0,Y.__)("Cancel","woocommerce-payments")})]})]})})},ii=n.p+"../assets/images/woopayments.svg?ver=f85a85f7bfa59aaf86c4",si=n.p+"../assets/images/illustrations/setup.svg?ver=6ed0e6ba74a3eb80bf38",ci=n.p+"../assets/images/payment-method-icons/visa.svg?ver=7dd928d017c63f7f17dc",di=n.p+"../assets/images/payment-method-icons/mastercard.svg?ver=34819b6d6f0a911dad5e",li=n.p+"../assets/images/payment-method-icons/amex.svg?ver=f1a92a1008909f28fabd",ui=n.p+"../assets/images/payment-method-icons/discover.svg?ver=1e6139d98799d99efd5a",mi=n.p+"../assets/images/payment-method-icons/woopay.svg?ver=2925915cedf8c19e656b",pi=n.p+"../assets/images/payment-method-icons/applepay.svg?ver=4786bb5a8a5d66e34c2f",yi=n.p+"../assets/images/payment-method-icons/afterpay.svg?ver=574bb877e72ec16243d7",hi=n.p+"../assets/images/payment-method-icons/affirm.svg?ver=e063670f061c01fd0bcf",fi=n.p+"../assets/images/payment-method-icons/klarna.svg?ver=1ac67f1ad236bdc585b0",_i=n.p+"../assets/images/payment-method-icons/jcb.svg?ver=3fc73f04b9db34caa6d9",gi=[{name:"visa",component:ci},{name:"mastercard",component:di},{name:"amex",component:li},{name:"discover",component:ui},{name:"woopay",component:mi},{name:"applepay",component:pi},{name:"googlepay",component:n.p+"../assets/images/payment-method-icons/gpay.svg?ver=c5c293a707d21c5ca27b"},{name:"afterpay",component:yi},{name:"affirm",component:hi},{name:"klarna",component:fi},{name:"jcb",component:_i}],vi=({maxElements:e=10})=>{const[t,n]=(0,W.useState)(e);return(0,W.useEffect)((()=>{const t=()=>{window.innerWidth<=480?n(5):window.innerWidth<=768?n(7):n(e)};t(),window.addEventListener("resize",t)}),[e]),G().createElement(G().Fragment,null,G().createElement("div",{className:"connect-account-page__payment-methods--logos"},gi.slice(0,t).map((e=>G().createElement("img",{key:e.name,alt:e.name,src:e.component,width:38,height:24}))),t<20&&G().createElement("div",{className:"connect-account-page__payment-methods--logos-count"},"+ ",20-t)))},wi=n.p+"../assets/images/woo-logo.svg?ver=04a5d69c0c373a386507",bi=window.moment;var Ei=n.n(bi);const $i=window.wp.date,Si="/wc/v3/payments",xi="wc/payments",ki=window.wc.number,Ci=e=>null!==e&&("function"==typeof e||"object"==typeof e),Ni=(e=!1)=>Ci(wcpaySettings)&&wcpaySettings.hasOwnProperty("testModeOnboarding")&&!!wcpaySettings.testModeOnboarding||e,Ii=e=>(0,Gr.addQueryArgs)("admin.php",e),Ti=e=>{const t=`${wpApiSettings.root.replace(/\/$/,"")}`;return(0,Gr.addQueryArgs)(`${t}${Si}/documents/${e}`,{_wpnonce:wpApiSettings.nonce})},Ai=(e,t)=>{const n="object"==typeof e?e:{},o={page:"wc-admin",path:"/payments/connect",source:n.source?.replace(/[^\w-]+/g,"")||"unknown",from:t},r={...n,...o};return Ii(r)},Oi=()=>Ii({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"}),Mi=e=>(0,mt.capitalize)(e).replace(/_/g," "),Li=(e,t=!1)=>{const n=t?Ei()(e).endOf("day").utc().toISOString():Ei()(e).startOf("day").utc().toISOString();return e&&(0,$i.dateI18n)("Y-m-d H:i:s",n,!0)},ji=e=>{const t=document.documentElement.lang,n={thousandSeparator:","};return["fr","pl"].some((e=>t.startsWith(e)))?n.thousandSeparator=" ":"de-CH"===t?n.thousandSeparator="'":["de","nl","it","es","pt"].some((e=>t.startsWith(e)))&&(n.thousandSeparator="."),(0,mt.partial)(ki.numberFormat,n)(e)},Di=()=>{var e;return"undefined"==typeof wcpaySettings||null!==(e=wcpaySettings?.reporting?.exportModalDismissed)&&void 0!==e&&e},Ri=()=>"undefined"==typeof wcpaySettings||"en_US"===wcpaySettings.locale?.code,Pi=(e,t)=>{let n="en_US";return Ri()?n:("undefined"!=typeof wcpaySettings&&(n=null!==(o=wcpaySettings?.locale?.code)&&void 0!==o?o:n),""!==e?e:null!=t?t:n);var o};function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ui(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){Vi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wi(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function qi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Qi=(0,W.createContext)({}),Ki=function(e,t,n){void 0===n&&(n=t.children);var o=(0,W.useContext)(Qi);return o.useCreateElement?o.useCreateElement(e,t,n):"string"==typeof e&&function(e){return"function"==typeof e}(n)?(t.children,n(Wi(t,["children"]))):(0,W.createElement)(e,t,n)};function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(n),!0).forEach((function(t){Zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function es(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function ts(e,t){for(var n={},o={},r=0,a=Object.keys(e);r<a.length;r++){var i=a[r];t.indexOf(i)>=0?n[i]=e[i]:o[i]=e[i]}return[n,o]}function ns(e,t){if(void 0===t&&(t=[]),!es(e.state))return ts(e,t);var n=ts(e,[].concat(t,["state"])),o=n[0],r=n[1],a=o.state,i=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(o,["state"]);return[Xi(Xi({},a),i),r]}function os(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),o=Object.keys(t),r=n.length;if(o.length!==r)return!1;for(var a=0,i=n;a<i.length;a++){var s=i[a];if(e[s]!==t[s])return!1}return!0}function rs(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return es(t.state)&&es(n.state)?e(Xi(Xi({},t.state),t),Xi(Xi({},n.state),n)):e(t,n)}}function as(e){var t=e.as,n=e.useHook,o=e.memo,r=e.propsAreEqual,a=void 0===r?null==n?void 0:n.unstable_propsAreEqual:r,i=e.keys,s=void 0===i?(null==n?void 0:n.__keys)||[]:i,c=e.useCreateElement,d=void 0===c?Ki:c,l=function(e,o){var r=e.as,a=void 0===r?t:r,i=Wi(e,["as"]);if(n){var c,l=ns(i,s),u=l[0],m=l[1],p=n(u,Hi({ref:o},m)),y=p.wrapElement,h=Wi(p,["wrapElement"]),f=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,_=f&&ns(i,f)[0],g=_?Hi(Hi({},h),_):h,v=d(a,g);return y?y(v):v}return d(a,Hi({ref:o},i))};return l=function(e){return(0,W.forwardRef)(e)}(l),o&&(l=function(e,t){return(0,W.memo)(e,t)}(l,a&&rs(a))),l.__keys=s,l.unstable_propsAreEqual=rs(a||os),l}function is(e,t){(0,W.useDebugValue)(e);var n=(0,W.useContext)(Qi);return null!=n[e]?n[e]:t}function ss(e){var t,n,o,r=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),a=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";(0,W.useDebugValue)(o);var r=is(o);return r?Hi(Hi({},t),r(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=qi(r);!(o=a()).done;)t=o.value.__useOptions(t,n);return t},i=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=a(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";(0,W.useDebugValue)(o);var r=is(o);return r?r(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var i,s=qi(r);!(i=s()).done;)n=(0,i.value)(t,n,!0);var c={},d=n||{};for(var l in d)void 0!==d[l]&&(c[l]=d[l]);return c};i.__useOptions=a;var s=r.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return i.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),i.unstable_propsAreEqual=e.propsAreEqual||(null===(n=r[0])||void 0===n?void 0:n.unstable_propsAreEqual)||os,i}var cs=ss({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Ui(e,["unstable_system"]),r=t.unstable_system,a=Ui(t,["unstable_system"]);return!(n!==r&&!os(n,r))&&os(o,a)}}),ds=(as({as:"div",useHook:cs}),ss({name:"Separator",compose:cs,keys:["orientation"],useOptions:function(e){var t=e.orientation;return Bi({orientation:void 0===t?"horizontal":t},Ui(e,["orientation"]))},useProps:function(e,t){return Bi({role:"separator","aria-orientation":e.orientation},t)}})),ls=as({as:"hr",memo:!0,useHook:ds});const us={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var ms={name:"1u4hpl4",styles:"display:inline"};const ps=Ft("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?ms:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return ut({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return ut({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:n,marginStart:o,marginEnd:r}=e;return ut(ba({[us[t].start]:Xt(null!=o?o:n),[us[t].end]:Xt(null!=r?r:n)})(),"","")}),";"),ys=kt((function(e,t){const n=Kt(e,"Divider");return(0,q.createElement)(ls,Q({as:ps},n,{ref:t}))}),"Divider"),hs=kt((function(e,t){const n=function(e){const{className:t,...n}=Kt(e,"CardDivider"),o=qt();return{...n,className:(0,q.useMemo)((()=>o(no,ro,"components-card__divider",t)),[t,o])}}(e);return(0,q.createElement)(ys,Q({},n,{ref:t}))}),"CardDivider"),fs={title:(0,Y.__)("Reset account","woocommerce-payments"),description:Ni()?(0,Y.__)("In sandbox mode, you can reset your account and onboard again at any time. Please note that all current WooPayments account details, test transactions, and payouts history will be lost.","woocommerce-payments"):(0,Y.__)("If you are experiencing problems completing account setup, or need to change the email/country associated with your account, you can reset your account and start from the beginning.","woocommerce-payments"),beforeContinue:(0,Y.__)("Before you continue","woocommerce-payments"),step1:(0,Y.sprintf)((0,Y.__)("Your %s account will be reset, and all data will be lost.","woocommerce-payments"),"WooPayments"),step2:(0,Y.__)("You will have to re-confirm your business and banking details.","woocommerce-payments"),step3:(0,Y.__)("Once confirmed, this cannot be undone.","woocommerce-payments"),confirmation:(0,Y.__)("Are you sure you want to continue?","woocommerce-payments"),cancel:(0,Y.__)("Cancel","woocommerce-payments"),reset:(0,Y.__)("Yes, reset account","woocommerce-payments")},_s=e=>{const{isVisible:t,onDismiss:n,onSubmit:o}=e,[r,a]=(0,W.useState)(!1);return t?G().createElement(Xa,{title:fs.title,className:"wcpay-reset-account-modal",onRequestClose:()=>{a(!1),n()}},G().createElement("p",{className:"wcpay-reset-account-modal__headline"},fs.description),G().createElement("div",{className:"wcpay-reset-account-modal__content"},G().createElement("b",null,fs.beforeContinue),G().createElement("ol",null,G().createElement("li",null,fs.step1),G().createElement("li",null,fs.step2),G().createElement("li",null,fs.step3)),G().createElement(hs,null),G().createElement("b",null,fs.confirmation)),G().createElement("div",{className:"wcpay-reset-account-modal__footer"},G().createElement(jr,{variant:"tertiary",onClick:()=>{a(!1),n()}},fs.cancel),G().createElement(jr,{variant:"primary",isDestructive:!0,isBusy:r,disabled:r,onClick:()=>{a(!0),o()}},fs.reset))):null};const gs=(0,W.createContext)(null),vs=e=>{var{children:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);const o=(e=>e.reduce(((e,t,n)=>{var o;return G().isValidElement(t)&&(e[null!==(o=t.props.name)&&void 0!==o?o:n]=t),e}),{}))(t),r=(({steps:e,initialStep:t,onStepChange:n,onComplete:o,onExit:r})=>{const a=Object.keys(e),[i,s]=(0,W.useState)(null!=t?t:a[0]),c=(a.indexOf(i)+1)/a.length;return{currentStep:i,progress:c,nextStep:()=>{const e=a.indexOf(i),t=a[e+1];t?(s(t),null==n||n(t)):null==o||o()},prevStep:()=>{const e=a.indexOf(i),t=a[e-1];t?(s(t),null==n||n(t)):null==r||r()},exit:()=>null==r?void 0:r()}})(Object.assign({steps:o},n)),a=o[r.currentStep];return G().createElement(gs.Provider,{value:r},a)},ws=()=>{const e=(0,W.useContext)(gs);if(!e)throw new Error("useStepperContext() must be used within <Stepper>");return e},bs=(e={})=>{const[t,n]=(0,W.useState)(e),[o,r]=(0,W.useState)({}),[a,i]=(0,W.useState)({});return{data:t,setData:e=>n((t=>Object.assign(Object.assign({},t),e))),errors:o,setErrors:e=>r((t=>(0,mt.omitBy)(Object.assign(Object.assign({},t),e),mt.isNil))),touched:a,setTouched:e=>i((t=>Object.assign(Object.assign({},t),e)))}},Es=(0,W.createContext)(null),$s=({children:e,initialData:t})=>G().createElement(Es.Provider,{value:bs(t)},e),Ss=()=>{const e=(0,W.useContext)(Es);if(!e)throw new Error("useOnboardingContext() must be used within <OnboardingContextProvider>");return e},xs=new Set;let ks,Cs;const Ns=e=>Math.round((Date.now()-e)/1e3),Is=()=>{const e=Ns(Cs);return Cs=Date.now(),e},Ts=()=>oa("wcpay_onboarding_flow_reset"),As=(e,t)=>oa("wcpay_onboarding_flow_eligibility_modal_closed",{action:e,source:t});var Os=n(4236);const Ms=window.ReactDOM;var Ls=n.n(Ms);const js=document.getElementById("wpbody-content")||document.body,Ds=(e,t)=>!(!t||t!==e.target&&!(e.target instanceof Node&&t.contains(e.target))),Rs=(0,W.memo)((({children:e,parentElement:t})=>{const n=(0,W.useRef)(null);return n.current||(n.current=document.createElement("div"),t.appendChild(n.current)),(0,W.useEffect)((()=>()=>{n.current&&(t.removeChild(n.current),n.current=null)}),[t]),(0,Ms.createPortal)(e,n.current)})),Ps=({className:e,children:t,content:n,parentElement:o=js,hideDelayMs:r=600,isVisible:a,onHide:i,maxWidth:s="250px"})=>{const c=(0,W.useRef)(null),d=(0,W.useRef)(null),l=((e,{hideDelayMs:t=600,triggerRef:n,tooltipRef:o,parentElement:r,onHide:a=mt.noop})=>{const[i,s]=(0,W.useState)(e),c=(0,W.useRef)(!1),d=(0,W.useRef)(a);return(0,W.useEffect)((()=>{d.current=a}),[a]),(0,W.useEffect)((()=>{let n=null;if(c.current){if(e)return r.dispatchEvent(new Event("wcpay-tooltip-open")),void s(!0);if(i)return n=setTimeout((()=>{s(!1),d.current()}),t),()=>{n&&clearTimeout(n)}}else c.current=!0}),[s,t,e,i,r]),(0,W.useEffect)((()=>{if(!i)return;const e=()=>{s(!1),d.current()},t=e=>{var t;Ds(e,null===(t=n.current)||void 0===t?void 0:t.firstChild)||Ds(e,o.current)||(s(!1),d.current())};return document.addEventListener("click",t),r.addEventListener("wcpay-tooltip-open",e),()=>{document.removeEventListener("click",t),r.removeEventListener("wcpay-tooltip-open",e)}}),[e,i,n,o,r]),i})(!!a,{hideDelayMs:r,triggerRef:c,tooltipRef:d,parentElement:o,onHide:i});return(0,W.useEffect)((()=>{const e=()=>{var e;if(!l)return;const t=d.current,n=null===(e=c.current)||void 0===e?void 0:e.firstChild;if(!t||!n)return;if(!(n instanceof HTMLElement))return;t.style.maxWidth=s;const o=n.getBoundingClientRect(),r=t.getBoundingClientRect().height;t.style.top=o.top-r-8+"px";let a=n.offsetWidth/2+o.left-t.offsetWidth/2;const i=window.innerWidth-(o.left+t.offsetWidth);a<0?a=45:i<0&&(a-=85),t.style.left=`${a}px`,t.style.visibility="visible",t.style.opacity="1"};e();const t=(0,mt.debounce)(e,150);return window.addEventListener("resize",t),document.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),document.removeEventListener("scroll",t)}}),[l,s]),G().createElement(G().Fragment,null,G().createElement("div",{className:"wcpay-tooltip__content-wrapper",ref:c},t),l&&G().createElement(Rs,{parentElement:o},G().createElement("div",{ref:d,className:Lo()("wcpay-tooltip__tooltip-wrapper",{"is-hiding":!a}),role:"tooltip"},G().createElement("div",{className:Lo()("wcpay-tooltip__tooltip",e)},n))))};var Fs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zs=e=>{var{isVisible:t,onHide:n=mt.noop,children:o,buttonIcon:r,buttonLabel:a,buttonSize:i=16}=e,s=Fs(e,["isVisible","onHide","children","buttonIcon","buttonLabel","buttonSize"]);const[c,d]=(0,W.useState)(!1),[l,u]=(0,W.useState)(!1),m=()=>{d(!0)},p=()=>{d(!1),n()};return G().createElement("button",{className:"wcpay-tooltip__content-wrapper",onMouseEnter:m,onMouseLeave:p,onFocus:m,onBlur:p,onClick:()=>{u((e=>!e)),l&&n()},type:"button"},G().createElement(Ps,Object.assign({},s,{onHide:()=>{d(!1),u(!1),n()},isVisible:t||c||l}),r?G().createElement(Ar,{icon:r,size:i,"aria-label":a}):o))},Bs=e=>{var{isVisible:t,onHide:n=mt.noop,buttonIcon:o,buttonLabel:r,buttonSize:a=16,children:i,className:s,maxWidth:c}=e,d=Fs(e,["isVisible","onHide","buttonIcon","buttonLabel","buttonSize","children","className","maxWidth"]);const[l,u]=(0,W.useState)(!1),m=(0,W.useRef)(null);return G().createElement("button",{className:"wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper",onClick:()=>{u((e=>!e)),l&&n()},type:"button",ref:m},G().createElement(Ps,Object.assign({},d,{parentElement:m.current||void 0,onHide:()=>{u(!1),n()},maxWidth:c,isVisible:t||l,className:Lo()("wcpay-tooltip--click__tooltip",s)}),o?G().createElement("div",{tabIndex:0,role:"button","aria-label":r},G().createElement(Ar,{icon:o,size:a})):i))},Us=function(e){let{icon:t,size:n=24,...o}=e;return(0,q.cloneElement)(t,{width:n,height:n,...o})},Vs=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})),Ys=G().createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},G().createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Hs=G().createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},G().createElement("path",{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),Ws=({from:e,source:t,onClose:n})=>{const[o,r]=(0,W.useState)(!1),a=()=>{r(!1),oa("wcpay_setup_live_payments_modal_exit",{from:e,source:t}),n()};return G().createElement(Xa,{title:(0,Y.__)("Set up live payments on your store","woocommerce-payments"),className:"wcpay-setup-real-payments-modal",isDismissible:!0,onRequestClose:a},G().createElement("p",{className:"wcpay-setup-real-payments-modal__headline"},(0,Y.__)("Before proceeding, please take note of the following information:","woocommerce-payments")),G().createElement("div",{className:"wcpay-setup-real-payments-modal__content"},G().createElement(Us,{icon:Ys}),(0,Y.__)("Your test account will be deactivated and your transaction records will be preserved for future reference.","woocommerce-payments"),G().createElement(Us,{icon:Hs}),(0,Y.__)("The owner, business and contact information will be required.","woocommerce-payments"),G().createElement(Us,{icon:Vs}),(0,Y.__)("We will need your banking details in order to process any payouts to you.","woocommerce-payments")),G().createElement("div",{className:"wcpay-setup-real-payments-modal__footer"},G().createElement(jr,{variant:"tertiary",onClick:a},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{variant:"primary",isBusy:o,disabled:o,onClick:()=>{r(!0),oa("wcpay_onboarding_flow_setup_live_payments",{from:e,source:t}),window.location.href=(0,Gr.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-disable-onboarding-test-mode":"true",from:e,source:"wcpay-setup-live-payments"})}},(0,Y.__)("Continue setup","woocommerce-payments"))))},Gs=({from:e,source:t})=>{const[n,o]=(0,W.useState)(!1);return G().createElement(G().Fragment,null,G().createElement(Fa,{status:"warning",isDismissible:!1},Ua({mixedString:(0,Y.sprintf)((0,Y.__)("{{strong}}%1$s is in sandbox mode.{{/strong}} To accept real transactions, {{switchToLiveLink}}set up a live %1$s account.{{/switchToLiveLink}} {{learnMoreIcon/}}","woocommerce-payments"),"WooPayments"),components:{strong:G().createElement("strong",null),learnMoreIcon:G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Learn more about sandbox mode","woocommerce-payments"),maxWidth:"250px",content:G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Sandbox mode gives you access to all %1$s features while checkout transactions are simulated. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{learnMoreLink:G().createElement(Qr.Link,{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>oa("wcpay_overview_sandbox_mode_learn_more_clicked")})}}))}),switchToLiveLink:G().createElement(jr,{variant:"link",onClick:()=>{oa("wcpay_setup_live_payments_modal_open",{from:e,source:t}),o(!0)}})}})),n&&G().createElement(Oa,null,G().createElement(Ws,{from:e,source:t,onClose:()=>o(!1)})))};var qs=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const Qs=()=>G().createElement(Fa,{icon:!0,status:"warning",isDismissible:!1},Va.sandboxModeNotice),Ks=({progress:e})=>G().createElement(ea,{className:"connect-account-page__preloader"},G().createElement("img",{className:"logo",src:wi,alt:""}),G().createElement(ea.Layout,null,G().createElement(ea.Illustration,null,G().createElement("img",{src:si,alt:"setup"})),G().createElement(ea.Title,null,(0,Y.__)("Finishing payments setup","woocommerce-payments")),G().createElement(ea.ProgressBar,{progress:null!=e?e:0}),G().createElement(ea.Sequence,{interval:0},(0,Y.__)("In just a few moments, you'll be ready to test payments on your store.")))),Zs=()=>{var e,t;const n=null===(t=null===(e=wcSettings.admin)||void 0===e?void 0:e.currentUserData)||void 0===t?void 0:t.first_name,o=wcpaySettings.connectIncentive,[r,a]=(0,W.useState)(!1),[i,s]=(0,W.useState)(wcpaySettings.errorMessage),[c,d]=(0,W.useState)(!1),[l,u]=(0,W.useState)(!1),[m,p]=(0,W.useState)(!1),[y,h]=(0,W.useState)(5),f=(0,W.useRef)(y);f.current=y;const{connectUrl:_,connect:{availableCountries:g,country:v},testModeOnboarding:w,isJetpackConnected:b,isAccountConnected:E,isAccountValid:$}=wcpaySettings,S=!!g[v],x=new URLSearchParams(window.location.search),k=()=>{var e;const t=null===(e=x.get("source"))||void 0===e?void 0:e.replace(/[^\w-]+/g,"");if(t&&"unknown"!==t)return t;if(_.includes("source=")){const e=new URL(_).searchParams.get("source");if(e&&"unknown"!==e)return e}let n="wcpay-connect-page";switch(x.get("from")||""){case"WCADMIN_PAYMENT_TASK":n="wcadmin-payment-task";break;case"WCADMIN_PAYMENT_SETTINGS":n="wcadmin-settings-page";break;case"WCADMIN_PAYMENT_INCENTIVE":n="wcadmin-incentive-page"}return n},C=()=>{var e;return(null===(e=x.get("from"))||void 0===e?void 0:e.replace(/[^\w-]+/g,""))||""},N=e=>{oa("wcpay_connect_account_clicked",Object.assign(Object.assign({wpcom_connection:b?"Yes":"No"},o&&{incentive_id:o.id}),{sandbox_mode:e,path:"payments_connect_v2",from:C(),source:k()}))},I=(e,t)=>{if(f.current<e){const e=f.current+t;h(e)}},T=()=>{Wr()({path:"/wc/v3/payments/accounts",method:"GET"}).then((e=>{I(100,4),e&&e.status&&!e.status.includes("pending")||f.current>95?(h(100),window.location.href=(0,Gr.addQueryArgs)(_,{test_drive:"true","wcpay-sandbox-success":"true",source:k(),from:"WCPAY_CONNECT",redirect_to_settings_page:x.get("redirect_to_settings_page")||""})):setTimeout(T,2e3)}))},A=()=>qs(void 0,void 0,void 0,(function*(){h(5),u(!0),N(!0);const e=(0,Gr.addQueryArgs)(_,{test_drive:"true"}),t=setInterval(I,2500,40,5);wcpaySettings.isJetpackConnected?(p(!0),fetch(e,{method:"GET",redirect:"follow",credentials:"same-origin",headers:{"content-type":"application/json",pragma:"no-cache","cache-control":"no-cache"}}).then((e=>e.json())).then((e=>{var n;(null==e?void 0:e.success)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.redirect_to)?(clearInterval(t),h(40),new URLSearchParams(e.data.redirect_to).get("wcpay-connection-success")?T():window.location.href=(0,Gr.addQueryArgs)(e.data.redirect_to,{test_drive:"true",test_drive_error:"true"})):window.location.href=(0,Gr.addQueryArgs)(window.location.href,{test_drive_error:"true"})})).catch((()=>{window.location.href=(0,Gr.addQueryArgs)(window.location.href,{test_drive_error:"true"})}))):window.location.href=(0,Gr.addQueryArgs)(e,{auto_start_test_drive_onboarding:"true"})}));(0,W.useEffect)((()=>{oa("page_view",Object.assign(Object.assign({path:"payments_connect_v2"},o&&{incentive_id:o.id}),{from:C(),source:k()})),wcpaySettings.isJetpackConnected&&x.get("auto_start_test_drive_onboarding")&&A()}),[]);let O=!1;i&&i.includes("account setup session")&&(O=!0);const M="true"===x.get("test_drive_error");!i&&M&&s((0,Y.__)("An error occurred while setting up your sandbox account. Please try again!","woocommerce-payments"));let L=Va.button.jetpack_not_connected;return b&&(L=Va.button.account_not_connected,O||!E||$||(L=Va.button.account_invalid)),!i&&(!b&&E||b&&E&&!$)&&s(Va.setupErrorNotice),G().createElement(Ma,{isNarrow:!0,className:"connect-account-page"},i&&G().createElement(Fa,{status:"error",icon:!0,isDismissible:!1},G().createElement("div",{dangerouslySetInnerHTML:Ha(i)})),wcpaySettings.onBoardingDisabled?G().createElement(So,null,G().createElement(Oo,null,Va.onboardingDisabled)):G().createElement(G().Fragment,null,!S&&G().createElement(Fa,{status:"error",isDismissible:!1},Va.nonSupportedCountry),!E&&w?G().createElement(Qs,null):E&&!$&&w&&b&&G().createElement(Gs,{from:"WCPAY_CONNECT",source:"wcpay-connect-page"}),G().createElement(So,null,G().createElement("div",{className:"connect-account-page__heading"},G().createElement("img",{src:ii,alt:"logo"}),G().createElement("h2",null,Va.heading(n))),G().createElement("div",{className:"connect-account-page__content"},G().createElement(oi,null)),G().createElement("div",{className:"connect-account-page__payment-methods"},G().createElement(vi,{maxElements:10}),G().createElement("div",{className:"connect-account-page__payment-methods__description"},G().createElement("div",null,G().createElement("p",null,Va.paymentMethods.deposits.title),G().createElement("span",null,Va.paymentMethods.deposits.value)),G().createElement("div",{className:"connect-account-page__payment-methods__description__divider"}),G().createElement("div",null,G().createElement("p",null,Va.paymentMethods.capture.title),G().createElement("span",null,Va.paymentMethods.capture.value)),G().createElement("div",{className:"connect-account-page__payment-methods__description__divider"}),G().createElement("div",null,G().createElement("p",null,Va.paymentMethods.recurring.title),G().createElement("span",null,Va.paymentMethods.recurring.value)))),G().createElement("div",{className:"connect-account-page__buttons"},G().createElement(jr,{variant:"primary",isBusy:c,disabled:c||O,onClick:()=>qs(void 0,void 0,void 0,(function*(){if(d(!0),N(!1),o)try{const e=yield Wr()({path:`/wc-analytics/admin/notes/experimental-activate-promo/${o.id}`,method:"POST"});if(!(null==e?void 0:e.success))throw new Error}catch(e){s(Va.incentive.error)}if(!S)return(()=>{const e=Object.values(g).sort().map((e=>({title:e}))),t=document.createElement("div");t.id="wcpay-onboarding-location-check-container",(0,q.render)(G().createElement(ai,{countries:e,onDeclined:()=>{d(!1)},onConfirmed:()=>{window.location.href=(0,Gr.addQueryArgs)(_,{source:k(),from:"WCPAY_CONNECT"})}}),t),document.body.appendChild(t)})();window.location.href=(0,Gr.addQueryArgs)(_,{source:k(),from:"WCPAY_CONNECT"})}))},L),E&&(!wcpaySettings.accountStatus.detailsSubmitted||Ni())&&G().createElement(jr,{variant:"tertiary",onClick:()=>a(!0)},Va.button.reset))),!E&&o&&G().createElement(Wa,Object.assign({},o)),!E&&G().createElement(Rr,{className:"connect-account-page__sandbox-mode-panel"},G().createElement(Yr,{title:Va.sandboxMode.title,initialOpen:!1},G().createElement(Ia,{icon:!0,status:"info",isDismissible:!1},Va.sandboxMode.description),G().createElement(jr,{variant:"secondary",isBusy:l,disabled:l,onClick:A},Va.button.sandbox))),G().createElement(_s,{isVisible:r,onDismiss:()=>a(!1),onSubmit:()=>{Ts(),window.location.href=(0,Gr.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-reset-account":"true",from:"WCPAY_CONNECT",source:k()})}})),m&&G().createElement(Ks,{progress:y}))},Js=window.wp.data,Xs=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),ec=Ft(Us,{target:"etxm6pv0"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"}),tc=(0,q.forwardRef)((function(e,t){let{href:n,children:o,className:r,rel:a="",...i}=e;a=(0,mt.uniq)((0,mt.compact)([...a.split(" "),"external","noreferrer","noopener"])).join(" ");const s=Lo()("components-external-link",r);return(0,q.createElement)("a",Q({},i,{className:s,href:n,target:"_blank",rel:a,ref:t}),o,(0,q.createElement)(Mr,{as:"span"},(0,Y.__)("(opens in a new tab)")),(0,q.createElement)(ec,{icon:Xs,className:"components-external-link__icon"}))})),nc={documents:(0,Y.__)("document","woocommerce-payments"),deposits:(0,Y.__)("payout","woocommerce-payments"),disputes:(0,Y.__)("dispute","woocommerce-payments"),loans:(0,Y.__)("loan","woocommerce-payments"),payments:(0,Y.__)("order","woocommerce-payments"),transactions:(0,Y.__)("order","woocommerce-payments")},oc={documents:(0,Y.__)("created","woocommerce-payments"),deposits:(0,Y.__)("created","woocommerce-payments"),disputes:(0,Y.__)("created","woocommerce-payments"),loans:(0,Y.__)("created","woocommerce-payments"),payments:(0,Y.__)("placed","woocommerce-payments"),transactions:(0,Y.__)("placed","woocommerce-payments")},rc=({currentPage:e,actions:t,isDetailsView:n=!1,isTestModeOnboarding:o=!1})=>((e=!1)=>Ci(wcpaySettings)&&wcpaySettings.hasOwnProperty("testMode")&&!!wcpaySettings.testMode||e)()?G().createElement(Fa,{status:"warning",isDismissible:!1,actions:t},((e,t,n)=>{switch(e){case"overview":return n?G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.sprintf)((0,Y.__)("{{strong}}%1$s is in sandbox mode.{{/strong}} You need to set up a live %1$s account before you can accept real transactions.","woocommerce-payments"),"WooPayments"),components:{strong:G().createElement("strong",null)}})):G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.sprintf)((0,Y.__)("{{strong}}%1$s is in test mode.{{/strong}} All transactions will be simulated. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{strong:G().createElement("strong",null),learnMoreLink:G().createElement(Qr.Link,{href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer",type:"external",onClick:()=>oa("wcpay_overview_test_mode_learn_more_clicked")})}}));case"documents":case"deposits":case"disputes":case"payments":case"loans":case"transactions":return t?G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.sprintf)((0,Y._n)("%1$s was in test mode when this %2$s was %3$s. To view live %2$ss, disable test mode in {{settingsLink}}%1$s settings{{/settingsLink}}.","%1$s was in test mode when these %2$ss were %3$s. To view live %2$ss, disable test mode in {{settingsLink}}%1$s settings{{/settingsLink}}.","deposits"===e?2:1,"woocommerce-payments"),"WooPayments",nc[e],oc[e]),components:{settingsLink:G().createElement("a",{href:Oi()})}})):G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Viewing test %1$s. To view live %1s, disable test mode in {{settingsLink}}%2s settings{{/settingsLink}}.","woocommerce-payments"),"deposits"===e?"payouts":e,"WooPayments"),components:{settingsLink:G().createElement("a",{href:Oi()})}}))}})(e,n,o)):null,ac=({monthlyAnchor:e,capitalize:t=!0})=>{const n=Ei().locale().startsWith("en")?"en":Ei().locale();let o=Ei()().locale(n).date(e).format("Do");return 31===e&&(o=(0,Y.__)("Last day of the month","woocommerce-payments")),t||(o=o.toLowerCase()),o},ic=e=>!!e&&["daily","weekly","monthly"].includes(e),sc=({depositsSchedule:e})=>{switch(e.interval){case"daily":return Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Available funds are automatically dispatched {{strong}}every day{{/strong}}.","woocommerce-payments")),components:{strong:G().createElement("strong",null)}});case"weekly":const t=Ei()().locale("en").day(e.weekly_anchor).locale(Ei().locale()).format("dddd");return Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Available funds are automatically dispatched {{strong}}every %1$s{{/strong}}.","woocommerce-payments"),t),components:{strong:G().createElement("strong",null)}});case"monthly":const n=e.monthly_anchor;return Ua(31===n?{mixedString:(0,Y.sprintf)((0,Y.__)("Available funds are automatically dispatched {{strong}}on the last day of every month{{/strong}}.","woocommerce-payments")),components:{strong:G().createElement("strong",null)}}:{mixedString:(0,Y.sprintf)((0,Y.__)("Available funds are automatically dispatched {{strong}}on the %1$s of every month{{/strong}}.","woocommerce-payments"),ac({monthlyAnchor:n,capitalize:!1})),components:{strong:G().createElement("strong",null)}});default:return G().createElement(G().Fragment,null)}},cc=({depositsSchedule:e})=>{if(!ic(e.interval))return null;const t=G().createElement(G().Fragment,null,(0,Y.__)("Payouts are initiated based on the following criteria:","woocommerce-payments"),G().createElement("ul",null,G().createElement("li",null,Ua({mixedString:(0,Y.__)("The {{link}}pending period{{/link}} in your country","woocommerce-payments"),components:{link:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#pending-period-chart"})}})),G().createElement("li",null,Ua({mixedString:(0,Y.__)("Your account's {{link}}available funds{{/link}}","woocommerce-payments"),components:{link:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#available-funds"})}})),G().createElement("li",null,Ua({mixedString:(0,Y.__)("Your {{link}}payout schedule{{/link}} settings","woocommerce-payments"),components:{link:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://woocommerce.com/document/woopayments/payouts/change-payout-schedule/"})}}))));return G().createElement(G().Fragment,null,G().createElement(sc,{depositsSchedule:e}),G().createElement(Bs,{content:t,buttonIcon:G().createElement(Os.A,null),buttonLabel:"Payout schedule tooltip"}))},dc=()=>{const e=wcpaySettings.isPayoutsRenameNoticeDismissed,{updateOptions:t}=(0,Js.useDispatch)("wc/admin/options"),[n,o]=(0,W.useState)(!1);return(0,W.useEffect)((()=>{e||o(!0)}),[e]),n?G().createElement(Qr.TourKit,{config:{placement:"bottom",options:{effects:{overlay:!1,autoScroll:{behavior:"smooth"}},classNames:"wc-admin-payments-overview-payouts-rename-tour"},steps:[{referenceElements:{desktop:'#toplevel_page_wc-admin-path--payments-overview ul.wp-submenu li a[href*="payouts"]'},meta:{name:"deposits-now-payouts",heading:(0,Y.__)("Deposits are now known as Payouts!","woocommerce-payments"),descriptions:{desktop:(0,q.createInterpolateElement)((0,Y.__)("Same reliable system for quick access to your earnings — now with a clearer name. To enhance your experience, 'Deposits' will now be called 'Payouts'. <link>Learn More.</link>","woocommerce-payments"),{link:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/payouts/deposits-and-payouts/",target:"_blank",rel:"noreferrer"})})}}}],closeHandler:()=>{t({wcpay_payouts_rename_notice_dismissed:!0}),o(!1),wcpaySettings.isPayoutsRenameNoticeDismissed=!0}}}):null},lc=window.wp.dataControls,uc={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},mc=e=>JSON.stringify(e,Object.keys(e).sort()),pc={byId:{},queries:{},count:0,instant:{}},yc=e=>e&&e.deposits||{},hc=(e,t)=>(yc(e).byId||{})[t],fc=e=>{const t=yc(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:n,balance:o,account:r}=t.data,a={lastPaid:n.last_paid,pending:o.pending,available:o.available,instant:o.instant},i={};for(const[e,t]of Object.entries(a))t?.forEach((t=>{const{currency:n}=t;i[n]||(i[n]={currency:n,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),i[n][e]=t}));const s=Object.values(i);return{account:r,currencies:[...s.filter((e=>r.default_currency===e.currency)),...s.filter((e=>r.default_currency!==e.currency))]}},_c=e=>(yc(e).overviews||{}).error,gc=(e,t)=>{const n=mc(t);return(yc(e).queries||{})[n]||{}},vc=(e,t)=>(gc(e,t).data||[]).map(hc.bind(void 0,e)),bc=e=>yc(e).count,Ec=(e,t)=>gc(e,t).error||{},$c=(e,t)=>{const n=mc(t);return(yc(e).summary||{})[n]||{}},Sc=(e,t)=>$c(e,t).data||{},xc=(e,t)=>$c(e,t).error||{},kc=e=>(yc(e).instant||{}).data,Cc=(0,W.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1,isDisputeIssuerEvidenceEnabled:!1,woopay:!1}}),Nc=(0,W.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""}),Ic=e=>{if(1===e.length)return e[0];if(2===e.length)return(0,Y.sprintf)((0,Y.__)("%s and %s","woocommerce-payments"),e[0],e[1]);const t=e.pop();return(0,Y.sprintf)((0,Y.__)("%s, and %s","woocommerce-payments"),e.join(", "),t)},Tc=window.wc.currency;var Ac=n.n(Tc);const Oc={aud:(0,Y.__)("Australian dollar","woocommerce-payments"),cad:(0,Y.__)("Canadian dollar","woocommerce-payments"),chf:(0,Y.__)("Swiss franc","woocommerce-payments"),dkk:(0,Y.__)("Danish krone","woocommerce-payments"),eur:(0,Y.__)("Euro","woocommerce-payments"),gbp:(0,Y.__)("Pound sterling","woocommerce-payments"),nok:(0,Y.__)("Norwegian krone","woocommerce-payments"),nzd:(0,Y.__)("New Zealand dollar","woocommerce-payments"),sek:(0,Y.__)("Swedish krona","woocommerce-payments"),usd:(0,Y.__)("United States (US) dollar","woocommerce-payments")},Mc=e=>Oc[e.toLowerCase()]||e.toUpperCase(),Lc=(e,t=null)=>{const{currencyData:n,connect:{country:o="US"}}=wcpaySettings,r=(0,mt.find)(n,{code:e.toUpperCase()});if(r){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||n[o]){const e=t?(0,mt.find)(n,{code:t.toUpperCase()}):n[o];e&&(r.decimalSeparator=e.decimalSeparator,r.thousandSeparator=e.thousandSeparator,r.symbolPosition=e.symbolPosition)}return Ac()(r)}return null},jc=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),Dc=(e,t)=>(jc(t)||(e/=100),e),Rc=(e,t="USD",n=null,o=!1)=>{const r=jc(t);r||(e/=100);const a=e<0,i=a?-1*e:e,s=a?"-":"",c=o?(e=>{const t=e.toUpperCase(),{currencyData:n,connect:{country:o="US"}}=wcpaySettings;if(n[o]?.code===t)return Ac()(n[o]);const r=(0,mt.find)(n,{code:t});if(r){const{defaultLocale:e={}}=r;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(r.decimalSeparator=e.decimalSeparator,r.thousandSeparator=e.thousandSeparator,r.symbolPosition=e.symbolPosition),Ac()(r)}return null})(t):Lc(t,n);if(null===c)return s+Bc(i,t,r);try{return s+("function"==typeof c.formatAmount?Uc(c.formatAmount(i)):Uc(c.formatCurrency(i)))}catch(e){return s+Uc(Bc(i,t,r))}},Pc=(e,t)=>(-1===e.toString().indexOf(t)&&(e=e+" "+t),e),Fc=(e,t="USD",n=!1,o=null)=>{let r=Rc(e,t,o);return wcpaySettings.shouldUseExplicitPrice?(n&&(r=zc(r)),Pc(r,t.toUpperCase())):r};function zc(e){return e.replace(/[^0-9,.' ]/g,"").trim()}function Bc(e,t,n){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:n})}catch(o){return(0,Y.sprintf)(n?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function Uc(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function Vc(e){return{type:uc.SET_DEPOSIT,data:e}}function Yc(e){return{type:uc.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Hc(e,t){return{type:uc.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Wc(e,t){return{type:uc.SET_DEPOSITS,query:e,data:t}}function Gc(e){return{type:uc.SET_DEPOSITS_COUNT,data:e}}function qc(e,t,n){return{type:uc.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:n}}function Qc(e,t){return{type:uc.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Kc(e,t,n){return{type:uc.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:n}}function Zc(e){return{type:uc.SET_INSTANT_DEPOSIT,data:e}}function*Jc(e){try{yield(0,Js.dispatch)(xi).startResolution("getInstantDeposit",[e]);const t=yield(0,lc.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield Zc(t),yield(0,Js.dispatch)(xi).invalidateResolutionForStoreSelector("getDeposits"),yield(0,Js.dispatch)(xi).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.sprintf)((0,Y.__)("Instant payout for %s in transit.","woocommerce-payments"),Rc(t.amount)),{actions:[{label:(0,Y.__)("View details","woocommerce-payments"),url:Ii({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,Js.dispatch)(xi).finishResolution("getInstantDeposit",[e])}}function*Xc(e){if(/\W/.test(e))return;const t=(0,Gr.addQueryArgs)(`${Si}/deposits/${e}`);try{const e=yield(0,lc.apiFetch)({path:t});yield Vc(e)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving payout.","woocommerce-payments"))}}function*ed(){const e=(0,Gr.addQueryArgs)(`${Si}/deposits/overview-all`);try{const t=yield(0,lc.apiFetch)({path:e});yield Yc(t)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield Hc()}}const td=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Li(e.dateBefore,!0),date_after:Li(e.dateAfter),date_between:e.dateBetween&&[Li(e.dateBetween[0]),Li(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function nd(e){return(0,Gr.addQueryArgs)(`${Si}/deposits/download`,td(e))}function*od(e){const t=(0,Gr.addQueryArgs)(`${Si}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...td(e)});try{const n=yield(0,lc.apiFetch)({path:t})||{};yield Wc(e,n.data),yield Gc(n.total_count);for(const e in n.data)yield Js.controls.dispatch(xi,"finishResolution","getDeposit",[n.data[e].id])}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving payouts.","woocommerce-payments")),yield qc(e,null,t)}}function*rd(e){const t=(0,Gr.addQueryArgs)(`${Si}/deposits/summary`,td(e));try{const n=yield(0,lc.apiFetch)({path:t});yield Qc(e,n)}catch(t){yield Kc(e,null,t)}}const ad=()=>(0,Js.useSelect)((e=>{const{getAllDepositsOverviews:t,getAllDepositsOverviewsError:n,isResolving:o,hasFinishedResolution:r}=e(xi);return{overviews:t(),overviewError:n(),isLoading:!r("getAllDepositsOverviews")||o("getAllDepositsOverviews")}})),id=({paged:e,per_page:t,orderby:n="date",order:o="desc",store_currency_is:r,match:a,date_before:i,date_after:s,date_between:c,status_is:d,status_is_not:l})=>(0,Js.useSelect)((u=>{const{getDeposits:m,getDepositsCount:p,getDepositQueryError:y,isResolving:h}=u(xi),f={paged:Number.isNaN(parseInt(null!=e?e:"",10))?"1":e,perPage:Number.isNaN(parseInt(null!=t?t:"",10))?"25":t,orderby:n,order:o,storeCurrencyIs:r,match:a,dateBefore:i,dateAfter:s,dateBetween:c&&c.sort(((e,t)=>Ei()(e).diff(Ei()(t)))),statusIs:d,statusIsNot:l};return{deposits:m(f),depositsCount:p(),depositsError:y(f),isLoading:h("getDeposits",[f])}}),[e,t,n,o,r,a,i,s,JSON.stringify(c),d,l]),sd={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY",SET_FRAUD_OUTCOME_TRANSACTIONS:"SET_FRAUD_OUTCOME_TRANSACTIONS",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS",SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY"},cd={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},dd=e=>e&&e.transactions||{},ld=(e,t)=>{const n=mc(t);return dd(e)[n]||{}},ud=(e,t)=>ld(e,t).data||[],md=(e,t)=>ld(e,t).error||{},pd=(e,t)=>{const n=mc(t);return dd(e).summary[n]||{}},yd=(e,t)=>pd(e,t).data||{},hd=(e,t)=>pd(e,t).error||{},fd=(e,t,n)=>{const o=mc(n);return dd(e).fraudProtection?.[t]?.[o]||{}},_d=(e,t,n)=>fd(e,t,n).data||[],gd=(e,t,n)=>fd(e,t,n).error||{},vd=(e,t,n)=>{const o=mc(n);return dd(e).fraudProtection?.[t]?.summary[o]||{}},wd=(e,t,n)=>vd(e,t,n).data||{},bd=(e,t,n)=>vd(e,t,n).error||{};function Ed(e,t){return{type:sd.SET_TRANSACTIONS,query:e,data:t}}function $d(e,t,n){return{type:sd.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:n}}function Sd(e,t){return{type:sd.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function xd(e,t,n){return{type:sd.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:n}}function kd(e,t,n){return{type:sd.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:n}}function Cd(e,t,n){return{type:sd.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:n}}function Nd(e,t,n){return{type:sd.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:n}}function Id(e,t,n){return{type:sd.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:n}}const Td=e=>({user_email:e.userEmail,match:e.match,date_before:Li(e.dateBefore,!0),date_after:Li(e.dateAfter),date_between:e.dateBetween&&[Li(e.dateBetween[0]),Li(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:Ei()(new Date).format("Z"),locale:e.locale});function*Ad(e){const t=(0,Gr.addQueryArgs)(`${Si}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Td(e)});try{const n=yield(0,lc.apiFetch)({path:t});yield Ed(e,n.data||[])}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving transactions.","woocommerce-payments")),yield $d(e,null,t)}}function Od(e){return(0,Gr.addQueryArgs)(`${Si}/transactions/download`,Td(e))}function*Md(e){const t=(0,Gr.addQueryArgs)(`${Si}/transactions/summary`,Td(e));try{const n=yield(0,lc.apiFetch)({path:t});yield Sd(e,n)}catch(t){yield xd(e,null,t)}}function*Ld(e,t){const n=(0,Gr.addQueryArgs)(`${Si}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...Td(t)});try{const o=yield(0,lc.apiFetch)({path:n});yield kd(e,t,o.data||[])}catch(n){if("wcpay_fraud_outcome_not_found"===n.code)return void(yield kd(e,t,[]));yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving transactions.","woocommerce-payments")),yield Cd(e,t,n)}}function*jd(e,t){const n=(0,Gr.addQueryArgs)(`${Si}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),o={count:0,total:0};try{const r=yield(0,lc.apiFetch)({path:n});yield Nd(e,t,r||o)}catch(n){if("wcpay_fraud_outcome_not_found"===n.code)return void(yield Nd(e,t,o));yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving on review transactions.","woocommerce-payments")),yield Id(e,t,n)}}function Dd(e,t){return(0,Gr.addQueryArgs)(`${Si}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...Td(t)})}const Rd={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},Pd=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},Fd=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},zd=(e,t)=>Pd(e,t),Bd=(e,t)=>Fd(e,t);function Ud(e,t){return{type:Rd.SET_CHARGE,id:e,data:t}}function Vd(e,t,n){return{type:Rd.SET_ERROR_FOR_CHARGE,id:e,data:t,error:n}}function*Yd(e){try{const t=yield(0,lc.apiFetch)({path:`${Si}/charges/${e}`});yield Ud(e,t)}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving transaction.","woocommerce-payments")),yield Vd(e,null,t)}}function*Hd(e){try{const t=yield(0,lc.apiFetch)({path:`${Si}/charges/order/${e}`});yield Ud(e,t)}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving transaction.","woocommerce-payments")),yield Vd(e,null,t)}}const Wd={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Gd=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},qd=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Qd(e,t){return{id:e,type:Wd.SET_TIMELINE,data:t}}function Kd(e,t){return{id:e,type:Wd.SET_ERROR_FOR_TIMELINE,error:t}}function*Zd(e){try{const t=yield(0,lc.apiFetch)({path:`${Si}/timeline/${e}`});yield Qd(e,t.data)}catch(t){yield Kd(e,t)}}const Jd={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Xd={byId:{},queries:{},summary:{},cached:{}},el=e=>e&&e.disputes||{},tl=(e,t)=>(el(e).byId||{})[t],nl=(e,t)=>{const n=el(e).byId||{};return n[t]?.error},ol=(e,t)=>(el(e).cached||{})[t],rl=(e,t)=>{const n=((e,t)=>{const n=mc(t);return(el(e).queries||{})[n]||{}})(e,t).data||[];return n.map(ol.bind(void 0,e))},al=(e,t)=>((e,t)=>{const n=mc(t);return(el(e).summary||{})[n]||{}})(e,t).data||{};var il;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(il||(il={}));const sl=il;function cl(e,t){return{type:sl.SET_PAYMENT_INTENT,id:e,data:t}}function dl(e,t){return{type:sl.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*ll(e,t){var n;const o=e.payment_intent;try{yield(0,lc.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(n=null==e?void 0:e.order)||void 0===n?void 0:n.number}}),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getTimeline"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Js.controls.dispatch("core/notices","createSuccessNotice",(0,Y.sprintf)((0,Y.__)("Refunded payment #%s.","woocommerce-payments"),o))}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.sprintf)((0,Y.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),o))}}function*ul(e){try{const t=yield(0,lc.apiFetch)({path:`${Si}/payment_intents/${e}`});yield cl(e,t)}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving transaction.","woocommerce-payments")),yield dl(e,t)}}function ml(e){return{type:Jd.SET_DISPUTE,data:e}}function pl(e,t,n){return{type:Jd.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:n}}function yl(e,t){return{type:Jd.SET_DISPUTES,query:e,data:t}}function hl(e,t){return{type:Jd.SET_DISPUTES_SUMMARY,query:e,data:t}}function*fl(e){const{id:t,payment_intent:n}=e;try{yield Js.controls.dispatch(xi,"startResolution","getDispute",[t]);const e=yield(0,lc.apiFetch)({path:`${Si}/disputes/${t}/close`,method:"post"});yield ml(e),yield ul(n),yield Js.controls.dispatch(xi,"finishResolution","getDispute",[t]);const o=e.order?(0,Y.sprintf)((0,Y.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,Y.__)("You have accepted the dispute.","woocommerce-payments");yield Js.controls.dispatch("core/notices","createSuccessNotice",o)}catch(e){const n=(0,Y.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield Js.controls.dispatch("core/notices","createErrorNotice",n),yield Js.controls.dispatch(xi,"finishResolution","getDispute",[t])}}const _l=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Li(e.dateBefore,!0),date_after:Li(e.dateAfter),date_between:e.dateBetween&&[Li(e.dateBetween[0]),Li(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function gl(e){return(0,Gr.addQueryArgs)(`${Si}/disputes/download`,_l(e))}function*vl(e){const t=(0,Gr.addQueryArgs)(`${Si}/disputes/${e}`);try{const e=yield(0,lc.apiFetch)({path:t});yield ml(e)}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving dispute.","woocommerce-payments")),yield pl(e,void 0,t)}}function*wl(e){const t=(0,Gr.addQueryArgs)(`${Si}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,mt.snakeCase)(e.orderBy),direction:e.order,..._l(e)});try{const n=yield(0,lc.apiFetch)({path:t})||{};yield yl(e,n.data)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving disputes.","woocommerce-payments"))}}function*bl(e){const t=(0,Gr.addQueryArgs)(`${Si}/disputes/summary`,{page:e.paged,pagesize:e.perPage,..._l(e)});try{const n=yield(0,lc.apiFetch)({path:t});yield hl(e,n)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const El=window.wc.wcSettings,$l={bank_cannot_process:{display:(0,Y.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:(0,Y.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:(0,Y.__)("Credit not processed","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments")],required:[(0,Y.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments")],respond:[(0,Y.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,Y.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims a credit was not processed.","woocommerce-payments")},customer_initiated:{display:(0,Y.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:(0,Y.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:(0,Y.__)("Duplicate","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[(0,Y.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[(0,Y.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,Y.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,Y.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,Y.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments")},fraudulent:{display:(0,Y.__)("Transaction unauthorized","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make an unauthorized transaction. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments")],required:[(0,Y.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments")],respond:[(0,Y.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,Y.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,Y.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments")},general:{display:(0,Y.__)("General","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments")],summary:[(0,Y.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:(0,Y.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:(0,Y.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:(0,Y.__)("Product not received","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[(0,Y.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments")],respond:[(0,Y.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,Y.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims the product was not received.","woocommerce-payments")},product_unacceptable:{display:(0,Y.__)("Product unacceptable","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[(0,Y.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[(0,Y.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,Y.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,Y.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,Y.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,Y.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims the product was unacceptable.","woocommerce-payments")},subscription_canceled:{display:(0,Y.__)("Subscription canceled","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[(0,Y.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[(0,Y.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,Y.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,Y.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],claim:(0,Y.__)("The cardholder claims a subscription was canceled.","woocommerce-payments")},unrecognized:{display:(0,Y.__)("Unrecognized","woocommerce-payments"),overview:[(0,Y.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,Y.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,Y.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[(0,Y.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments")],respond:[(0,Y.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,Y.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]}},Sl={warning_needs_response:(0,Y.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,Y.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,Y.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,Y.__)("Needs response","woocommerce-payments"),under_review:(0,Y.__)("Under review","woocommerce-payments"),charge_refunded:(0,Y.__)("Charge refunded","woocommerce-payments"),won:(0,Y.__)("Won","woocommerce-payments"),lost:(0,Y.__)("Lost","woocommerce-payments")},xl=Object.entries(Sl).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),kl=["needs_response","warning_needs_response"],Cl=[{label:(0,Y.__)("Dispute currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","search","filter","status_is","status_is","date_before","date_after","date_between"],showFilters:()=>!1,filters:[{label:(0,Y.__)("All currencies","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,Y.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","search","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,Y.__)("Needs response","woocommerce-payments"),value:"awaiting_response"},{label:(0,Y.__)("All disputes","woocommerce-payments"),value:"all"},{label:(0,Y.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],Nl=(0,El.getSetting)("wcVersion"),Il=parseFloat(Nl),Tl={title:Il<7.8?(0,Y.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,Y.__)("Disputes match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,Y.__)("Disputed on date","woocommerce-payments"),remove:(0,Y.__)("Remove dispute date filter","woocommerce-payments"),rule:(0,Y.__)("Select a dispute date filter match","woocommerce-payments"),title:Il<7.8?(0,Y.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a dispute date","woocommerce-payments")},rules:[{value:"before",label:(0,Y.__)("Before","woocommerce-payments")},{value:"after",label:(0,Y.__)("After","woocommerce-payments")},{value:"between",label:(0,Y.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,Y.__)("Status","woocommerce-payments"),remove:(0,Y.__)("Remove dispute status filter","woocommerce-payments"),rule:(0,Y.__)("Select a dispute status filter match","woocommerce-payments"),title:Il<7.8?(0,Y.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a dispute status","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","dispute status","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","dispute status","woocommerce-payments")}],input:{component:"SelectControl",options:xl}}}},Al=({paged:e,per_page:t,store_currency_is:n,match:o,date_before:r,date_after:a,date_between:i,filter:s,status_is:c,status_is_not:d,orderby:l,order:u})=>(0,Js.useSelect)((m=>{const{getDisputes:p,isResolving:y}=m(xi),h="awaiting_response"===s?kl:void 0,f={paged:Number.isNaN(parseInt(null!=e?e:"",10))?"1":e,perPage:Number.isNaN(parseInt(null!=t?t:"",10))?"25":t,storeCurrencyIs:n,match:o,dateBefore:r,dateAfter:a,dateBetween:i&&i.sort(((e,t)=>Ei()(e).diff(Ei()(t)))),search:h,statusIs:c,statusIsNot:d,orderBy:l||"created",order:u||"desc"};return{disputes:p(f),isLoading:y("getDisputes",[f])}}),[e,t,n,o,r,a,JSON.stringify(i),s,c,d,l,u]),Ol={SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_VALUES:"SET_SETTINGS_VALUES",SET_IS_SAVING_SETTINGS:"SET_IS_SAVING_SETTINGS",SET_SELECTED_PAYMENT_METHOD:"SET_SELECTED_PAYMENT_METHOD",SET_UNSELECTED_PAYMENT_METHOD:"SET_UNSELECTED_PAYMENT_METHOD"},Ml={isDirty:!1,isSaving:!1,savingError:null,data:{}},Ll="basic",jl="advanced",Dl="block",Rl="review",Pl="avs_verification",Fl="address_mismatch",zl="international_ip_address",Bl="ip_address_mismatch",Ul="order_items_threshold",Vl="purchase_price_threshold",Yl="item_count",Hl="order_total",Wl="equals",Gl="greater_than",ql="less_than",Ql={},Kl=[],Zl=e=>e&&e.settings||Ql,Jl=e=>Zl(e).data||Ql,Xl=e=>Jl(e).account_business_support_address||Ql,eu=e=>Jl(e).duplicated_payment_method_ids||Ql,tu=e=>Jl(e).is_wcpay_enabled||!1,nu=e=>Jl(e).enabled_payment_method_ids||Kl,ou=e=>Jl(e).available_payment_method_ids||Kl,ru=e=>Jl(e).payment_method_statuses||Kl,au=e=>Zl(e).isSaving||!1,iu=e=>Zl(e).isDirty||!1,su=e=>Jl(e).account_statement_descriptor||"",cu=e=>Jl(e).account_statement_descriptor_kanji||"",du=e=>Jl(e).account_statement_descriptor_kana||"",lu=e=>Jl(e).account_business_name||"",uu=e=>Jl(e).account_business_url||"",mu=e=>Jl(e).account_business_support_address||"",pu=e=>Xl(e).country||"",yu=e=>Xl(e).line1||"",hu=e=>Xl(e).line2||"",fu=e=>Xl(e).city||"",_u=e=>Xl(e).state||"",gu=e=>Xl(e).postal_code||"",vu=e=>Jl(e).account_business_support_email||"",wu=e=>Jl(e).account_business_support_phone||"",bu=e=>Jl(e).account_branding_logo||"",Eu=e=>Jl(e).account_domestic_currency||"",$u=e=>Jl(e).deposit_schedule_interval||"",Su=e=>Jl(e).reporting_export_language||"",xu=e=>Jl(e).deposit_schedule_weekly_anchor||"",ku=e=>Jl(e).deposit_schedule_monthly_anchor||"",Cu=e=>Jl(e).deposit_delay_days||"7",Nu=e=>Jl(e).deposit_completed_waiting_period||!1,Iu=e=>Jl(e).deposit_status||"",Tu=e=>Jl(e).deposit_restrictions||"",Au=e=>Jl(e).is_manual_capture_enabled||!1,Ou=e=>Jl(e).is_test_mode_enabled||!1,Mu=e=>Jl(e).is_test_mode_onboarding||!1,Lu=e=>Jl(e).is_dev_mode_enabled||!1,ju=e=>Jl(e).is_payment_request_enabled||!1,Du=e=>Jl(e).is_debug_log_enabled||!1,Ru=e=>Jl(e).is_multi_currency_enabled||!1,Pu=e=>Jl(e).payment_request_enabled_locations||Kl,Fu=e=>Jl(e).payment_request_button_type||"",zu=e=>Jl(e).payment_request_button_size||"",Bu=e=>Jl(e).payment_request_button_theme||"",Uu=e=>{const t=Jl(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:"undefined"==typeof wcpaySettings?4:parseInt(window?.wcpaySettings?.defaultExpressCheckoutBorderRadius||4,10)},Vu=e=>Jl(e).is_saved_cards_enabled||!1,Yu=e=>Zl(e).savingError,Hu=e=>Jl(e).is_card_present_eligible||!1,Wu=e=>Jl(e).is_wcpay_subscriptions_enabled||!1,Gu=e=>Jl(e).is_wcpay_subscriptions_eligible||!1,qu=e=>Jl(e).is_subscriptions_plugin_active||!1,Qu=e=>Jl(e).is_woopay_enabled||!1,Ku=e=>Jl(e).is_woopay_global_theme_support_enabled||!1,Zu=e=>Jl(e).woopay_custom_message||"",Ju=e=>Jl(e).woopay_store_logo||"",Xu=e=>Jl(e).woopay_enabled_locations||Kl,em=e=>Jl(e).current_protection_level||Ll,tm=e=>Jl(e).advanced_fraud_protection_settings||Kl,nm=e=>Jl(e).show_woopay_incompatibility_notice||!1,om=e=>Jl(e).is_stripe_billing_enabled||!1,rm=e=>Jl(e).is_migrating_stripe_billing||!1,am=e=>Jl(e).stripe_billing_subscription_count||0,im=e=>Jl(e).stripe_billing_migrated_count||0;function sm(e){return{type:Ol.SET_SETTINGS_VALUES,payload:e}}function cm(e){return sm({is_saved_cards_enabled:e})}function dm(e){return sm({is_card_present_eligible:e})}function lm(e){return sm({payment_request_button_type:e})}function um(e){return sm({payment_request_button_size:e})}function mm(e){return sm({payment_request_button_theme:e})}function pm(e){return sm({payment_request_button_border_radius:e})}function ym(e){return{type:Ol.SET_SETTINGS,data:e}}function hm(e){return sm({is_wcpay_enabled:e})}function fm(e){return sm({is_payment_request_enabled:e})}function _m(e){return sm({enabled_payment_method_ids:[...e]})}function gm(e){return sm({available_payment_method_ids:[...e]})}function vm(e,t){return{type:Ol.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function wm(e){return{type:Ol.SET_SELECTED_PAYMENT_METHOD,id:e}}function bm(e){return{type:Ol.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Em(e){return sm({is_manual_capture_enabled:e})}function $m(e){return sm({is_test_mode_enabled:e})}function Sm(e){return sm({is_debug_log_enabled:e})}function xm(e){return sm({is_multi_currency_enabled:e})}function km(e){return sm({is_wcpay_subscriptions_enabled:e})}function Cm(e){return sm({account_statement_descriptor:e})}function Nm(e){return sm({account_statement_descriptor_kanji:e})}function Im(e){return sm({account_statement_descriptor_kana:e})}function Tm(e){return sm({account_business_name:e})}function Am(e){return sm({account_business_url:e})}function Om(e){return sm({account_business_support_address:e})}function Mm(e){return sm({account_business_support_email:e})}function Lm(e){return sm({account_business_support_phone:e})}function jm(e){return sm({account_branding_logo:e})}function Dm(e){return sm({deposit_schedule_interval:e})}function Rm(e){return sm({deposit_schedule_weekly_anchor:e})}function Pm(e){return sm({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function Fm(e){return sm({reporting_export_language:e})}function*zm(){let e=null;try{const e=(0,Js.select)(xi).getSettings();yield vm(!0,null);const t=yield(0,lc.apiFetch)({path:`${Si}/settings`,method:"post",data:e});yield sm({payment_method_statuses:t.data.payment_method_statuses}),yield(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,Js.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield vm(!1,e)}return null===e}function Bm(e){return sm({payment_request_enabled_locations:[...e]})}function Um(e){return sm({is_woopay_enabled:e})}function Vm(e){return sm({is_woopay_global_theme_support_enabled:e})}function Ym(e){return sm({woopay_custom_message:e})}function Hm(e){return sm({woopay_store_logo:e})}function Wm(e){return sm({woopay_enabled_locations:[...e]})}function Gm(e){return sm({current_protection_level:e})}function qm(e){return sm({advanced_fraud_protection_settings:e})}function Qm(e){return sm({is_stripe_billing_enabled:e})}function*Km(){try{yield(0,Js.dispatch)(xi).startResolution("scheduleStripeBillingMigration"),yield(0,lc.apiFetch)({path:`${Si}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,Js.dispatch)(xi).finishResolution("scheduleStripeBillingMigration")}function*Zm(){const e=`${Si}/settings`;try{const t=yield(0,lc.apiFetch)({path:e});yield ym(t)}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error retrieving settings.","woocommerce-payments"))}}const Jm=()=>{const{updateEnabledPaymentMethodIds:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getEnabledPaymentMethodIds())),e]},Xm=()=>{const{updateExportLanguage:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getExportLanguage())),e]},ep=()=>{const{updateIsManualCaptureEnabled:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getIsManualCaptureEnabled())),e]},tp=()=>(0,Js.useSelect)((e=>e(xi).getSettings())),np=()=>{const{saveSettings:e}=(0,Js.useDispatch)(xi),t=(0,Js.useSelect)((e=>e(xi).isSavingSettings())),n=(0,Js.useSelect)((e=>e(xi).isDirty()));return{isLoading:(0,Js.useSelect)((e=>{e(xi).getSettings();const t=e(xi).isResolving("getSettings"),n=e(xi).hasFinishedResolution("getSettings");return t||!n})),saveSettings:e,isSaving:t,isDirty:n}},op=()=>(0,Js.useSelect)((e=>e(xi).getSavingError()),[]),rp={SET_CARD_READER_STATS:"SET_CARD_READER_STATS",SET_ERROR_FOR_CARD_READER_STATS:"SET_ERROR_FOR_CARD_READER_STATS",SET_READERS:"SET_READERS",SET_ERROR_FOR_CARD_READERS:"SET_ERROR_FOR_CARD_READERS"},ap=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},ip=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},sp=e=>e.readers&&e.readers.list?e.readers.list:{};function cp(e,t){return{type:rp.SET_CARD_READER_STATS,id:e,data:t}}function dp(e,t){return{type:rp.SET_READERS,query:e,data:t}}function lp(e,t,n){return{type:rp.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:n}}function up(e,t){return{type:rp.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*mp(e,t){try{const n=yield(0,lc.apiFetch)({path:`${Si}/readers/charges/${t}`});yield cp(e,n)}catch(t){yield lp(e,null,t)}}function*pp(e){const t=(0,Gr.addQueryArgs)(`${Si}/readers`,{limit:e.limit});try{const n=yield(0,lc.apiFetch)({path:t})||{};yield dp(e,n)}catch(e){yield up(null,e)}}var yp;!function(e){e.SET_ACTIVE_LOAN_SUMMARY="SET_ACTIVE_LOAN_SUMMARY",e.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY="SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY",e.SET_LOANS="SET_LOANS",e.SET_ERROR_FOR_LOANS="SET_ERROR_FOR_LOANS"}(yp||(yp={}));const hp=yp,fp={},_p=e=>e&&e.capital||{},gp=e=>_p(e).summary,vp=e=>_p(e).summaryError,wp=e=>_p(e).loans||[],bp=e=>_p(e).loansError;function Ep(e){return{type:hp.SET_ACTIVE_LOAN_SUMMARY,data:e}}function $p(e){return{type:hp.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function Sp(e){return{type:hp.SET_LOANS,data:e.data}}function xp(e){return{type:hp.SET_ERROR_FOR_LOANS,error:e}}function*kp(){const e=`${Si}/capital/active_loan_summary`;try{const t=yield(0,lc.apiFetch)({path:e});yield Ep(t)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield $p(e)}}function*Cp(){const e=`${Si}/capital/loans`;try{const t=yield(0,lc.apiFetch)({path:e});yield Sp(t)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield xp(e)}}const Np={SET_DOCUMENTS:"SET_DOCUMENTS",SET_ERROR_FOR_DOCUMENTS:"SET_ERROR_FOR_DOCUMENTS",SET_DOCUMENTS_SUMMARY:"SET_DOCUMENTS_SUMMARY",SET_ERROR_FOR_DOCUMENTS_SUMMARY:"SET_ERROR_FOR_DOCUMENTS_SUMMARY"},Ip={summary:{}},Tp=e=>e&&e.documents||{},Ap=(e,t)=>{const n=mc(t);return Tp(e)[n]||{}},Op=(e,t)=>Ap(e,t).data||[],Mp=(e,t)=>Ap(e,t).error||{},Lp=(e,t)=>{const n=mc(t);return Tp(e).summary[n]||{}},jp=(e,t)=>Lp(e,t).data||{},Dp=(e,t)=>Lp(e,t).error||{};function Rp(e,t){return{type:Np.SET_DOCUMENTS,query:e,data:t}}function Pp(e,t,n){return{type:Np.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:n}}function Fp(e,t){return{type:Np.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function zp(e,t,n){return{type:Np.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:n}}const Bp=e=>({user_email:e.userEmail,match:e.match,date_before:Li(e.dateBefore,!0),date_after:Li(e.dateAfter),date_between:e.dateBetween&&[Li(e.dateBetween[0]),Li(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*Up(e){const t=(0,Gr.addQueryArgs)(`${Si}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Bp(e)});try{const n=yield(0,lc.apiFetch)({path:t});yield Rp(e,n.data||[])}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving documents.","woocommerce-payments")),yield Pp(e,null,t)}}function*Vp(e){const t=(0,Gr.addQueryArgs)(`${Si}/documents/summary`,Bp(e));try{const n=yield(0,lc.apiFetch)({path:t});yield Fp(e,n)}catch(t){yield zp(e,null,t)}}const Yp={},Hp=({paymentIntents:e},t)=>{const n=null==e?void 0:e[t];return(null==n?void 0:n.data)||{}},Wp=({paymentIntents:e},t)=>{const n=null==e?void 0:e[t];return(null==n?void 0:n.error)||{}},Gp=e=>-1!==e.indexOf("ch_")||-1!==e.indexOf("py_"),qp=e=>{const{data:t,error:n,isLoading:o}=(0,Js.useSelect)((t=>{const n=t(xi);if(Gp(e))return((e,t)=>{const{getCharge:n,isResolving:o,getChargeError:r,hasFinishedResolution:a}=t;return{data:n(e),error:r(e),isLoading:o("getCharge",[e])||!a("getCharge",[e])}})(e,n);const{getPaymentIntent:o,getPaymentIntentError:r,isResolving:a,hasFinishedResolution:i}=n;return{data:o(e)||{},error:r(e),isLoading:a("getPaymentIntent",[e])||!i("getPaymentIntent",[e])}}),[e]),{refundCharge:r}=(0,Js.useDispatch)(xi);return{data:t,error:n,isLoading:o,doRefund:(e,t)=>r(e,t)}},Qp={SET_AUTHORIZATIONS:"SET_AUTHORIZATIONS",SET_AUTHORIZATION:"SET_AUTHORIZATION",SET_ERROR_FOR_AUTHORIZATIONS:"SET_ERROR_FOR_AUTHORIZATIONS",SET_AUTHORIZATIONS_SUMMARY:"SET_AUTHORIZATIONS_SUMMARY",SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:"SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",SET_IS_REQUESTING_AUTHORIZATION:"SET_IS_REQUESTING_AUTHORIZATION"},Kp={summary:{},byId:{},isRequesting:!1},Zp=e=>e&&e.authorizations||{},Jp=(e,t)=>{const n=mc(t);return Zp(e)[n]||{}},Xp=(e,t)=>Jp(e,t).data||[],ey=(e,t)=>(Zp(e).byId||{})[t],ty=(e,t)=>Jp(e,t).error||{},ny=(e,t)=>{const n=mc(t);return Zp(e).summary[n]||{}},oy=(e,t)=>ny(e,t).data||{},ry=(e,t)=>ny(e,t).error||{},ay=e=>Zp(e).isRequesting;function iy(e,t){return{type:Qp.SET_AUTHORIZATIONS,data:t,query:e}}function sy(e,t){return{type:Qp.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function cy(e){return{type:Qp.SET_AUTHORIZATION,data:e}}function dy(e,t){return{type:Qp.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function ly(e){return{type:Qp.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*uy(e,t){try{yield Js.controls.dispatch(xi,"startResolution","getAuthorization",[e]),yield Js.controls.dispatch(xi,"setIsRequestingAuthorization",!0);const n=yield(0,lc.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),o={payment_intent_id:n.id,captured:"succeeded"===n.status};yield cy(o),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getTimeline"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Js.controls.dispatch("core/notices","createSuccessNotice",(0,Y.sprintf)((0,Y.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.sprintf)((0,Y.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield Js.controls.dispatch(xi,"finishResolution","getAuthorization",[e]),yield Js.controls.dispatch(xi,"setIsRequestingAuthorization",!1)}}function*my(e,t){try{yield Js.controls.dispatch(xi,"startResolution","getAuthorization",[e]),yield Js.controls.dispatch(xi,"setIsRequestingAuthorization",!0);const n=yield(0,lc.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),o={payment_intent_id:n.id,captured:"succeeded"===n.status};yield cy(o),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getTimeline"),yield Js.controls.dispatch(xi,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Js.controls.dispatch("core/notices","createSuccessNotice",(0,Y.sprintf)((0,Y.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.sprintf)((0,Y.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield Js.controls.dispatch(xi,"finishResolution","getAuthorization",[e]),yield Js.controls.dispatch(xi,"setIsRequestingAuthorization",!1)}}function py(e,t){return{type:Qp.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*yy(e){var t;let{paged:n=1,per_page:o=25,orderby:r="created",order:a="asc"}=e;"capture_by"===r&&(r="created");const i=(0,Gr.addQueryArgs)(`${Si}/authorizations`,{page:n,pagesize:o,sort:r,direction:a});try{const n=yield(0,lc.apiFetch)({path:i});yield iy(e,null!==(t=n.data)&&void 0!==t?t:[])}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield sy(e,t)}}function*hy(e){try{if(e){const t=yield(0,lc.apiFetch)({path:`${Si}/authorizations/${e}`}),{is_captured:n,payment_intent_id:o,created:r}=t;yield cy({payment_intent_id:o,captured:n,created:r})}}catch(e){"authorization_missing"!==e.code&&(yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving authorization.","woocommerce-payments")))}}function*fy(e){const t=(0,Gr.addQueryArgs)(`${Si}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const n=yield(0,lc.apiFetch)({path:t});yield dy(e,null!=n?n:[])}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield py(e,t)}}const _y=e=>(0,Js.useSelect)((t=>{const{getAuthorizationsSummary:n,getAuthorizationsSummaryError:o,isResolving:r}=t(xi);return{authorizationsSummary:n(e),authorizationsSummaryError:o(e),isLoading:r("getAuthorizationsSummary",[e])}})),gy=(e,t,n=!0)=>{const{authorization:o,isRequesting:r,isLoading:a}=(0,Js.useSelect)((t=>{const{getAuthorization:o,getIsRequesting:r,isResolving:a}=t(xi);return{authorization:n?o(e):null,isLoading:a("getAuthorization",[e]),isRequesting:r()}})),{submitCaptureAuthorization:i,submitCancelAuthorization:s}=(0,Js.useDispatch)(xi);return{authorization:o,isLoading:a,isRequesting:r,doCaptureAuthorization:()=>i(e,t),doCancelAuthorization:()=>s(e,t)}};var vy;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(vy||(vy={}));const wy=vy,by={},Ey=({files:e},t)=>{const n=null==e?void 0:e[t];return(null==n?void 0:n.data)||{}},$y=({files:e},t)=>{const n=null==e?void 0:e[t];return(null==n?void 0:n.error)||{}};function Sy(e,t){return{type:wy.SET_FILE,id:e,data:t}}function xy(e,t){return{type:wy.SET_ERROR_FOR_FILES,id:e,error:t}}function*ky(e){try{const t=yield(0,lc.apiFetch)({path:`${Si}/file/${e}/details`});yield Sy(e,t)}catch(t){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving file.","woocommerce-payments")),yield xy(e,t)}}const Cy={SET_PAYMENT_ACTIVITY_DATA:"SET_PAYMENT_ACTIVITY_DATA"},Ny=(e,t)=>{var n;const o=mc(t);return null===(n=null==e?void 0:e.paymentActivity)||void 0===n?void 0:n[o]};function Iy(e,t){return{type:Cy.SET_PAYMENT_ACTIVITY_DATA,query:t,data:e}}function*Ty(e){const t=(0,Gr.addQueryArgs)(`${Si}/reporting/payment_activity`,e);try{const n=yield(0,lc.apiFetch)({path:t});yield Iy(n,e)}catch(e){yield Js.controls.dispatch("core/notices","createErrorNotice",(0,Y.__)("Error retrieving payment activity data.","woocommerce-payments"))}}(0,Js.registerStore)(xi,{reducer:(0,Js.combineReducers)({deposits:(e=pc,{type:t,query:n={},data:o=[],error:r})=>{const a=mc(n);switch(t){case uc.SET_DEPOSIT:return{...e,byId:{...e.byId,[o.id]:o}};case uc.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:o}};case uc.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:r}};case uc.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,mt.keyBy)(o,"id")},queries:{...e.queries,[a]:{data:(0,mt.map)(o,"id")}}};case uc.SET_DEPOSITS_COUNT:return{...e,count:o};case uc.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:r}}};case uc.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:o}}};case uc.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:r}}};case uc.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:o}}}return e},transactions:(e=cd,{type:t,query:n={},data:o=[],error:r,status:a})=>{const i=mc(n);switch(t){case sd.SET_TRANSACTIONS:return{...e,[i]:{data:o}};case sd.SET_ERROR_FOR_TRANSACTIONS:return{...e,[i]:{error:r}};case sd.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:o}}};case sd.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:r}}};case sd.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{data:o}}}};case sd.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{error:r}}}};case sd.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{data:o}}}}};case sd.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{error:r}}}}}}return e},charges:(e={},{type:t,id:n,data:o,error:r})=>{switch(t){case Rd.SET_CHARGE:e={...e,[n]:{...e[n],data:o}};break;case Rd.SET_ERROR_FOR_CHARGE:e={...e,[n]:{...e[n],error:r}}}return e},timeline:(e={},{type:t,id:n,data:o,error:r})=>{switch(t){case Wd.SET_TIMELINE:e={...e,[n]:{data:o}};break;case Wd.SET_ERROR_FOR_TIMELINE:e={...e,[n]:{...e[n],error:r}}}return e},disputes:(e=Xd,{type:t,query:n={},data:o=[],id:r,error:a})=>{const i=mc(n);switch(t){case Jd.SET_DISPUTE:return{...e,byId:{...e.byId,[o.id]:o}};case Jd.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[r]:{error:a}}};break;case Jd.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,mt.keyBy)(o,"dispute_id")},queries:{...e.queries,[i]:{data:(0,mt.map)(o,"dispute_id")}}};case Jd.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:o}}}}return e},settings:(e=Ml,{type:t,...n})=>{switch(t){case Ol.SET_SETTINGS:return{...e,data:n.data,isDirty:!1};case Ol.SET_SETTINGS_VALUES:return{...e,savingError:null,isDirty:!0,data:{...e.data,...n.payload}};case Ol.SET_IS_SAVING_SETTINGS:return{...e,isDirty:!(!n.isSaving&&!n.error)&&e.isDirty,isSaving:n.isSaving,savingError:n.error};case Ol.SET_SELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(n.id)}};case Ol.SET_UNSELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==n.id))}}}return e},readers:(e={},{type:t,id:n,data:o,error:r})=>{switch(t){case rp.SET_CARD_READER_STATS:e={...e,[n]:{...e[n],data:o}};break;case rp.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[n]:{...e[n],error:r}};break;case rp.SET_READERS:e={...e,list:o}}return e},capital:(e=fp,t)=>{switch(t.type){case hp.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case hp.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case hp.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case hp.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:(e=Ip,{type:t,query:n={},data:o=[],error:r})=>{const a=mc(n);switch(t){case Np.SET_DOCUMENTS:return{...e,[a]:{data:o}};case Np.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:r}};case Np.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:o}}};case Np.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:r}}}}return e},paymentIntents:(e=Yp,t)=>{const{type:n,id:o}=t;switch(n){case sl.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[o]:Object.assign(Object.assign({},e[o]),{data:t.data})});case sl.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[o]:Object.assign(Object.assign({},e[o]),{error:t.error})});default:return e}},authorizations:(e=Kp,t)=>{switch(t.type){case Qp.SET_AUTHORIZATION:{const{data:n}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[n.payment_intent_id]:Object.assign(Object.assign({},e.byId[n.payment_intent_id]),n)})})}case Qp.SET_AUTHORIZATIONS:{const{data:n,query:o}=t;return Object.assign(Object.assign({},e),{[mc(o)]:{data:n}})}case Qp.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:n,query:o}=t;return Object.assign(Object.assign({},e),{[mc(o)]:{error:n}})}case Qp.SET_AUTHORIZATIONS_SUMMARY:{const{data:n,query:o}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[mc(o)]:{data:n||{}}})})}case Qp.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:n,error:o}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[mc(n)]:{error:o||""}})})}case Qp.SET_IS_REQUESTING_AUTHORIZATION:{const{data:n}=t;return Object.assign(Object.assign({},e),{isRequesting:n})}}return e},files:(e=by,t)=>{const{type:n,id:o}=t;switch(n){case wy.SET_FILE:return Object.assign(Object.assign({},e),{[o]:Object.assign(Object.assign({},e[o]),{data:t.data})});case wy.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[o]:Object.assign(Object.assign({},e[o]),{error:t.error})});default:return e}},paymentActivity:(e={},{type:t,query:n,data:o})=>{if(!n)return e;const r=mc(n);return t===Cy.SET_PAYMENT_ACTIVITY_DATA&&(e=Object.assign(Object.assign({},e),{[r]:o})),e}}),actions:{...t,...a,...c,...u,...f,...v,...E,...x,...N,...y,...O,...j,...P},controls:lc.controls,selectors:{...e,...r,...s,...l,...p,...g,...b,...S,...C,...T,...A,...L,...R},resolvers:{...o,...i,...d,...m,..._,...w,...$,...k,...I,...h,...M,...D,...F}});const Ay=window.wc.navigation,Oy=window.wc.csvExport,My={deposit:(0,Y.__)("Payout","woocommerce-payments"),withdrawal:(0,Y.__)("Withdrawal","woocommerce-payments")},Ly={paid:(0,Y.__)("Completed (paid)","woocommerce-payments"),deducted:(0,Y.__)("Completed (deducted)","woocommerce-payments"),pending:(0,Y.__)("Pending","woocommerce-payments"),in_transit:(0,Y.__)("In transit","woocommerce-payments"),canceled:(0,Y.__)("Canceled","woocommerce-payments"),failed:(0,Y.__)("Failed","woocommerce-payments")},jy=(e,t)=>Ii({page:"wc-admin",path:`/payments/${t}/details`,id:e}),Dy=({id:e,parentSegment:t})=>e?G().createElement(Qr.Link,{href:jy(e,t)},G().createElement(Na.A,{size:18})):null,Ry=({href:e,children:t,...n})=>e?(0,Ta.jsx)(Qr.Link,{href:e,className:"woocommerce-table__clickable-cell",tabIndex:"-1",...n,children:t}):t,Py=Object.entries(Ly).filter((([e])=>"deducted"!==e)).map((([e,t])=>"paid"===e?{label:(0,Y.__)("Completed","woocommerce-payments"),value:"paid"}:{label:t,value:e})),Fy=[{label:(0,Y.__)("Payout currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","filter","date_before","date_after","date_between","status_is","status_is_not","match"],showFilters:()=>!1,filters:[{label:(0,Y.__)("All","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,Y.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,Y.__)("All payouts","woocommerce-payments"),value:"all"},{label:(0,Y.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],zy=(0,El.getSetting)("wcVersion"),By=parseFloat(zy),Uy={title:By<7.8?(0,Y.__)("Payouts match {{select /}} filters","woocommerce-payments"):(0,Y.__)("Payouts match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,Y.__)("Date","woocommerce-payments"),remove:(0,Y.__)("Remove payout date filter","woocommerce-payments"),rule:(0,Y.__)("Select a payout date filter match","woocommerce-payments"),title:By<7.8?(0,Y.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a payout date","woocommerce-payments")},rules:[{value:"before",label:(0,Y.__)("Before","woocommerce-payments")},{value:"after",label:(0,Y.__)("After","woocommerce-payments")},{value:"between",label:(0,Y.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,Y.__)("Status","woocommerce-payments"),remove:(0,Y.__)("Remove payout status filter","woocommerce-payments"),rule:(0,Y.__)("Select a payout status filter match","woocommerce-payments"),title:By<7.8?(0,Y.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a payout status","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","payout status","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","payout status","woocommerce-payments")}],input:{component:"SelectControl",options:Py}}}},Vy=e=>{return(0,Ta.jsx)("div",{className:"woocommerce-filters-deposits",children:(0,Ta.jsx)(Qr.ReportFilters,{filters:(t=Fy,t.forEach((t=>{if("store_currency_is"===t.param){const n=e.storeCurrencies||[];t.filters=[t.filters[0],...n.map((e=>({label:Mc(e),value:e})))],t.filters.length>2&&(t.showFilters=()=>!0)}})),t),advancedFilters:Uy,showDatePicker:!1,path:"/payments/payouts",query:(0,Ay.getQuery)()})});var t};var Yy=n(5988);const Hy=({isDisabled:e,onClick:t})=>G().createElement(jr,{className:"woocommerce-table__download-button",disabled:e,onClick:t},G().createElement(Yy.A,null),G().createElement("span",{className:"woocommerce-table__download-button__label"},(0,Y.__)("Download","woocommerce-payments"))),Wy=({message:e,type:t="primary",className:n,tooltip:o})=>{const r=["chip",`chip-${t}`,null!=n?n:""];return o?G().createElement(zs,{content:o},G().createElement("span",{className:r.join(" ").trim()},e)):G().createElement("span",{className:r.join(" ").trim()},e)},Gy={pending:"warning",in_transit:"primary",paid:"success",failed:"alert",canceled:"light"},qy=({deposit:e})=>{let t=Ly[e.status];return"withdrawal"===e.type&&"paid"===e.status&&(t=Ly.deducted),W.createElement(Wy,{type:Gy[e.status],message:t})},Qy={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Ky(e){return(0,mt.get)(Qy,e,"")}const Zy=Ft("div",{target:"ej5x27r4"})("font-family:",Ky("default.fontFamily"),";font-size:",Ky("default.fontSize"),";"),Jy=Ft("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&ut("margin-bottom:",Xt(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),Xy=ut("display:inline-block;margin-bottom:",Xt(2),";",""),eh=Ft("label",{target:"ej5x27r2"})(Xy,";");var th={name:"11yad0w",styles:"margin-bottom:revert"};const nh=Ft("p",{target:"ej5x27r1"})("margin-top:",Xt(2),";margin-bottom:0;font-size:",Ky("helpText.fontSize"),";font-style:normal;color:",Bn.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&th}),";"),oh=Ft("span",{target:"ej5x27r0"})(Xy,";"),rh=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:o,hideLabelFromVision:r=!1,help:a,className:i,children:s}=e;return(0,q.createElement)(Zy,{className:Lo()("components-base-control",i)},(0,q.createElement)(Jy,{className:"components-base-control__field",__nextHasNoMarginBottom:t},o&&n&&(r?(0,q.createElement)(Mr,{as:"label",htmlFor:n},o):(0,q.createElement)(eh,{className:"components-base-control__label",htmlFor:n},o)),o&&!n&&(r?(0,q.createElement)(Mr,{as:"label"},o):(0,q.createElement)(rh.VisualLabel,null,o)),s),!!a&&(0,q.createElement)(nh,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))};rh.VisualLabel=e=>{let{className:t,children:n}=e;return(0,q.createElement)(oh,{className:Lo()("components-base-control__label",t)},n)};const ah=rh,ih={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},sh="…",ch={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},dh={ellipsis:sh,ellipsizeMode:ch.auto,limit:0,numberOfLines:0};let lh;Nn([In]);const uh=$t()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&kn(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const o=function(){if("undefined"!=typeof document){if(!lh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),lh=e}return lh}}();if(!o)return"";o.style.background=e;const r=null===(t=window)||void 0===t?void 0:t.getComputedStyle(o).background;return o.style.background="",r||""}));const mh=ut("color:",Bn.darkGray.primary,";line-height:",Wn.fontLineHeightBase,";margin:0;",""),ph={name:"4zleql",styles:"display:block"},yh=ut("color:",Bn.alert.green,";",""),hh=ut("color:",Bn.alert.red,";",""),fh=ut("color:",Bn.mediumGray.text,";",""),_h=ut("mark{background:",Bn.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),gh={name:"50zrmy",styles:"text-transform:uppercase"};var vh=n(542);const wh=$t()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t})),bh=13,Eh={body:bh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function $h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bh;if(e in Eh)return $h(Eh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / ${bh}) * ${Wn.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var Sh={name:"50zrmy",styles:"text-transform:uppercase"};function xh(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:r,color:a,ellipsizeMode:i,isDestructive:s=!1,display:c,highlightEscape:d=!1,highlightCaseSensitive:l=!1,highlightWords:u,highlightSanitize:m,isBlock:p=!1,letterSpacing:y,lineHeight:h,optimizeReadabilityFor:f,size:_,truncate:g=!1,upperCase:v=!1,variant:w,weight:b=Wn.fontWeight,...E}=Kt(e,"Text");let $=o;const S=Array.isArray(u),x="caption"===_;if(S){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");$=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:o,autoEscape:r,caseSensitive:a=!1,children:i,findChunks:s,highlightClassName:c="",highlightStyle:d={},highlightTag:l="mark",sanitize:u,searchWords:m=[],unhighlightClassName:p="",unhighlightStyle:y}=e;if(!i)return null;if("string"!=typeof i)return i;const h=i,f=(0,vh.findAll)({autoEscape:r,caseSensitive:a,findChunks:s,sanitize:u,searchWords:m,textToHighlight:h}),_=l;let g,v=-1,w="";return f.map(((e,r)=>{const i=h.substr(e.start,e.end-e.start);if(e.highlight){let e;v++,"object"==typeof c?a?e=c[i]:(c=wh(c),e=c[i.toLowerCase()]):e=c;const s=v===+n;w=`${e} ${s?t:""}`,g=!0===s&&null!==o?Object.assign({},d,o):d;const l={children:i,className:w,key:r,style:g};return"string"!=typeof _&&(l.highlightIndex=v),(0,q.createElement)(_,l)}return(0,q.createElement)("span",{children:i,className:p,key:r,style:y})}))}({autoEscape:d,children:o,caseSensitive:l,searchWords:u,sanitize:m})}const k=qt();let C;!0===g&&(C="auto"),!1===g&&(C="none");const N=function(e){const{className:t,children:n,ellipsis:o=sh,ellipsizeMode:r=ch.auto,limit:a=0,numberOfLines:i=0,...s}=Kt(e,"Truncate"),c=qt(),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={...dh,...arguments.length>1?arguments[1]:void 0},{ellipsis:n,ellipsizeMode:o,limit:r}=t;if(o===ch.none)return e;let a,i;switch(o){case ch.head:a=0,i=r;break;case ch.middle:a=Math.floor(r/2),i=Math.floor(r/2);break;default:a=r,i=0}const s=o!==ch.auto?function(e,t,n,o){if("string"!=typeof e)return"";const r=e.length,a=~~t,i=~~n,s=(0,mt.isNil)(o)?sh:o;return 0===a&&0===i||a>=r||i>=r||a+i>=r?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(r-i)}(e,a,i,n):e;return s}("string"==typeof n?n:"",{ellipsis:o,ellipsizeMode:r,limit:a,numberOfLines:i}),l=r===ch.auto;return{...s,className:(0,q.useMemo)((()=>{const e={};return e.numberOfLines=ut("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),c(l&&!i&&ih,l&&!!i&&e.numberOfLines,t)}),[t,c,i,l]),children:d}}({...E,className:(0,q.useMemo)((()=>{const e={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Wn.controlHeight} + ${Xt(2)})`;switch(e){case"large":n=`calc(${Wn.controlHeightLarge} + ${Xt(2)})`;break;case"small":n=`calc(${Wn.controlHeightSmall} + ${Xt(2)})`;break;case"xSmall":n=`calc(${Wn.controlHeightXSmall} + ${Xt(2)})`}return n}(t,h);if(e.Base=ut({color:a,display:c,fontSize:$h(_),fontWeight:b,lineHeight:o,letterSpacing:y,textAlign:n},"",""),e.upperCase=Sh,e.optimalTextColor=null,f){const t="dark"==("#000000"===function(e){const t=uh(e);return kn(t).isLight()?"#000000":"#ffffff"}(f)?"dark":"light");e.optimalTextColor=ut(t?{color:Bn.black}:{color:Bn.white},"","")}return k(mh,e.Base,e.optimalTextColor,s&&hh,!!S&&_h,p&&ph,x&&fh,w&&z[w],v&&e.upperCase,r)}),[t,n,r,a,k,c,p,x,s,S,y,h,f,_,v,w,b]),children:o,ellipsizeMode:i||C});return!g&&Array.isArray(o)&&($=q.Children.map(o,(e=>{return(0,mt.isPlainObject)(e)&&"props"in e?(n=["Link"],(t=e)&&("string"==typeof n?Ct(t).includes(n):Array.isArray(n)&&n.some((e=>Ct(t).includes(e))))?(0,q.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,n}))),{...N,children:g?N.children:$}}const kh=kt((function(e,t){const n=xh(e);return(0,q.createElement)(Bt,Q({as:"span"},n,{ref:t}))}),"Text");var Ch={name:"1739oy8",styles:"z-index:1"};const Nh=e=>{let{isFocused:t}=e;return t?Ch:""};var Ih={name:"2o6p8u",styles:"justify-content:space-between"},Th={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},Ah={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const Oh=e=>{let{labelPosition:t}=e;switch(t){case"top":return Ah;case"bottom":return Th;case"edge":return Ih;default:return""}},Mh=Ft(Sa,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",Nh," ",Oh,";");var Lh={name:"wyxldh",styles:"margin:0 !important"},jh={name:"1d3w5wq",styles:"width:100%"};const Dh=Ft("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return ut({backgroundColor:t?Bn.ui.backgroundDisabled:Bn.ui.background},"","")})," ",(e=>{let{hideLabel:t}=e;return t?Lh:null})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":ut("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):jh}),";"),Rh=(Ft("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Bn.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,n,{isDragging:o,dragCursor:r}=e;return o&&(t=ut("cursor:",r,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),o&&r&&(n=ut("&:active{cursor:",r,";}","")),ut(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?ut({color:Bn.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},o=n[t]||n.default;return o?ut("font-size:","16px",";@media ( min-width: 600px ){font-size:",o,";}",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30,paddingLeft:8,paddingRight:8},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:8,paddingRight:8},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:16,paddingRight:16}};return ut(n[t]||n.default,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),e=>{let{labelPosition:t}=e,n=8;return"edge"!==t&&"side"!==t||(n=0),ut({marginTop:0,marginRight:0,marginBottom:n,marginLeft:0},"","")}),Ph=Ft(kh,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",Rh," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Fh=e=>(0,q.createElement)(Ph,Q({},e,{as:"label"})),zh=Ft(ka,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Bh=Ft("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:n,isFocused:o}=e,r=o?Bn.ui.borderFocus:Bn.ui.border;return o&&(t=`0 0 0 1px ${Bn.ui.borderFocus} inset`),n&&(r=Bn.ui.borderDisabled),ut({boxShadow:t,borderColor:r,borderStyle:"solid",borderWidth:1},"","")})," ",ba({paddingLeft:2}),";}"),Uh=Ft("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Vh=Ft("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Yh=(0,q.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,q.createElement)(Bh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})})),Hh=Yh;function Wh(e){let{children:t,hideLabelFromVision:n,htmlFor:o,...r}=e;return t?n?(0,q.createElement)(Mr,{as:"label",htmlFor:o},t):(0,q.createElement)(Fh,Q({htmlFor:o},r),t):null}const Gh=(0,q.forwardRef)((function e(t,n){let{__unstableInputWidth:o,children:r,className:a,disabled:i=!1,hideLabelFromVision:s=!1,labelPosition:c,id:d,isFocused:l=!1,label:u,prefix:m,size:p="default",suffix:y,...h}=t;const f=function(t){const n=(0,jo.useInstanceId)(e);return t||`input-base-control-${n}`}(d),_=s||!u;return(0,q.createElement)(Mh,Q({},h,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(c),{className:a,isFocused:l,labelPosition:c,ref:n}),(0,q.createElement)(zh,null,(0,q.createElement)(Wh,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:c,htmlFor:f,size:p},u)),(0,q.createElement)(Dh,{__unstableInputWidth:o,className:"components-input-control__container",disabled:i,hideLabel:_,labelPosition:c},m&&(0,q.createElement)(Uh,{className:"components-input-control__prefix"},m),r,y&&(0,q.createElement)(Vh,{className:"components-input-control__suffix"},y),(0,q.createElement)(Hh,{disabled:i,isFocused:l})))})),qh=Ft("select",{target:"e1mv6sxx1"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Bn.black,";display:block;font-family:inherit;margin:0;width:100%;",(e=>{let{disabled:t}=e;return t?ut({color:Bn.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?ut("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{selectSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24},"__unstable-large":{height:40,lineHeight:1,minHeight:40}};return ut(n[t]||n.default,"","")}),";",(e=>{let{selectSize:t="default"}=e;return ba({default:{paddingLeft:8,paddingRight:24},small:{paddingLeft:8,paddingRight:24},"__unstable-large":{paddingLeft:16,paddingRight:32}}[t])}),";}"),Qh=Ft("div",{target:"e1mv6sxx0"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",ba({right:0})," svg{display:block;}");const Kh=(0,q.forwardRef)((function e(t,n){let{className:o,disabled:r=!1,help:a,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:l=mt.noop,onChange:u=mt.noop,onFocus:m=mt.noop,options:p=[],size:y="default",value:h,labelPosition:f="top",children:_,prefix:g,suffix:v,...w}=t;const[b,E]=(0,q.useState)(!1),$=function(t){const n=(0,jo.useInstanceId)(e);return t||`inspector-select-control-${n}`}(s),S=a?`${$}__help`:void 0;if((0,mt.isEmpty)(p)&&!_)return null;const x=Lo()("components-select-control",o);return(0,q.createElement)(ah,{help:a,id:$},(0,q.createElement)(Gh,{className:x,disabled:r,hideLabelFromVision:i,id:$,isFocused:b,label:c,size:y,suffix:v||(0,q.createElement)(Qh,null,(0,q.createElement)(Us,{icon:Fr,size:18})),prefix:g,labelPosition:f},(0,q.createElement)(qh,Q({},w,{"aria-describedby":S,className:"components-select-control__input",disabled:r,id:$,multiple:d,onBlur:e=>{l(e),E(!1)},onChange:e=>{if(d){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),n=t.map((e=>{let{value:t}=e;return t}));u(n)}else u(e.target.value,{event:e})},onFocus:e=>{m(e),E(!0)},ref:n,selectSize:y,value:h}),_||p.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,q.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))})),Zh=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M7 11.5h10V13H7z"}));function Jh(e){let{label:t,className:n,heading:o,checked:r,indeterminate:a,help:i,onChange:s,...c}=e;o&&po()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[d,l]=(0,q.useState)(!1),[u,m]=(0,q.useState)(!1),p=(0,jo.useRefEffect)((e=>{e&&(e.indeterminate=!!a,l(e.matches(":checked")),m(e.matches(":indeterminate")))}),[r,a]),y=`inspector-checkbox-control-${(0,jo.useInstanceId)(Jh)}`;return(0,q.createElement)(ah,{label:o,id:y,help:i,className:Lo()("components-checkbox-control",n)},(0,q.createElement)("span",{className:"components-checkbox-control__input-container"},(0,q.createElement)("input",Q({ref:p,id:y,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>s(e.target.checked),checked:r,"aria-describedby":i?y+"__help":void 0},c)),u?(0,q.createElement)(Us,{icon:Zh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,d?(0,q.createElement)(Us,{icon:La,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,q.createElement)("label",{className:"components-checkbox-control__label",htmlFor:y},t))}var Xh=n(4503);const ef=e=>{var{children:t,actions:n,className:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","actions","className"]);return G().createElement(Xa,Object.assign({className:Lo()("wcpay-confirmation-modal",o)},r),t,G().createElement(Ro.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),G().createElement("div",{className:"wcpay-confirmation-modal__footer"},n))};const tf=({totalItems:e,exportType:t,onClose:n,onSubmit:o})=>{const{updateOptions:r}=(0,Js.useDispatch)("wc/admin/options"),{saveSettings:a}=np(),[i,s]=Xm(),[c,d]=(0,W.useState)(i),[l,u]=(0,W.useState)(!0),m=G().createElement(G().Fragment,null,G().createElement(jr,{isSecondary:!0,onClick:n},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{isPrimary:!0,onClick:()=>{return e=void 0,t=void 0,i=function*(){o(c),l&&(yield r({wcpay_reporting_export_modal_dismissed:l}),s(c),a(),wcpaySettings.reporting.exportModalDismissed=!0)},new((n=void 0)||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}));var e,t,n,i}},(0,Y.__)("Download","woocommerce-payments")));return G().createElement(ef,{title:(e=>{switch(e){case"transactions":return(0,Y.__)("Export transactions report","woocommerce-payments");case"deposits":return(0,Y.__)("Export deposits report","woocommerce-payments");case"disputes":return(0,Y.__)("Export disputes report","woocommerce-payments");default:return(0,Y.__)("Export report","woocommerce-payments")}})(t),isDismissible:!1,className:"reporting-export-modal",actions:m,onRequestClose:()=>!1},G().createElement("div",{className:"reporting-export-modal__items-number"},Ua({mixedString:(e=>{switch(e){case"transactions":return(0,Y.__)("Exporting {{total/}} transactions…","woocommerce-payments");case"deposits":return(0,Y.__)("Exporting {{total/}} deposits…","woocommerce-payments");case"disputes":return(0,Y.__)("Exporting {{total/}} disputes…","woocommerce-payments");default:return(0,Y.__)("Exporting {{total/}} rows…","woocommerce-payments")}})(t),components:{total:G().createElement("strong",null,e)}})),G().createElement("div",{className:"reporting-export-modal__settings"},G().createElement("h4",null,"Settings"),G().createElement("div",{className:"reporting-export-modal__settings--language"},G().createElement("div",{className:"reporting-export-modal__settings--language-label"},G().createElement(Xh.A,{className:"domains-icon"}),G().createElement("span",{className:"export-label"},(e=>{switch(e){case"transactions":return(0,Y.__)("Export transactions report in","woocommerce-payments");case"deposits":return(0,Y.__)("Export deposits report in","woocommerce-payments");case"disputes":return(0,Y.__)("Export disputes report in","woocommerce-payments");default:return(0,Y.__)("Export report in","woocommerce-payments")}})(t))),G().createElement("div",{className:"reporting-export-modal__settings--language-select"},G().createElement(Kh,{label:"",value:c,onChange:e=>{d(e)},options:[{label:(0,Y.__)("English (United States)","woocommerce-payments"),value:"en_US"},{label:(0,Y.__)("Site Language - ","woocommerce-payments")+wcpaySettings.locale.native_name,value:wcpaySettings.locale.code}]}))),G().createElement("div",{className:"reporting-export-modal__settings--remember"},G().createElement(Jh,{label:(0,Y.__)("Remember the language settings.","woocommerce-payments"),help:Ua({mixedString:(0,Y.__)("Don't worry, you can always change this later in the {{learnMoreLink}}Payment Settings{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:G().createElement(tc,{href:Ii({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})})}}),checked:l,onChange:e=>{u(e)},"data-testid":"export-modal-remember"}))))};var nf=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const of=()=>{var e;const[t]=Xm(),[n,o]=(0,W.useState)(!1),{createNotice:r}=(0,Js.useDispatch)("core/notices"),{deposits:a,isLoading:i}=id((0,Ay.getQuery)()),{depositsSummary:s,isLoading:c}=(({match:e,store_currency_is:t,date_before:n,date_after:o,date_between:r,status_is:a,status_is_not:i})=>(0,Js.useSelect)((s=>{const{getDepositsSummary:c,isResolving:d}=s(xi),l={match:e,storeCurrencyIs:t,dateBefore:n,dateAfter:o,dateBetween:r,statusIs:a,statusIsNot:i};return{depositsSummary:c(l),isLoading:d("getDepositsSummary",[l])}}),[t,e,n,o,JSON.stringify(r),a,i]))((0,Ay.getQuery)()),[d,l]=(0,W.useState)(!1),u=!(0,Ay.getQuery)().orderby||"date"===(0,Ay.getQuery)().orderby,m=(0,q.useMemo)((()=>(e=>[{key:"details",label:"",required:!0,cellClassName:"info-button "+(e?"is-sorted":""),isLeftAligned:!0},{key:"date",label:(0,Y.__)("Date","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Date","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:(0,Y.__)("Type","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"status",label:(0,Y.__)("Status","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Status","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"bankAccount",label:(0,Y.__)("Bank account","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Bank account","woocommerce-payments"),isLeftAligned:!0},{key:"bankReferenceKey",label:(0,Y.__)("Bank reference key","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Bank reference key","woocommerce-payments")}])(u)),[u]),p=s.count||0,y=a.map((e=>{var t;const n=t=>G().createElement(Ry,{href:jy(e.id,"payouts"),onClick:()=>oa("wcpay_deposits_row_click")},t),o=G().createElement(Dy,{id:e.id,parentSegment:"payouts"}),r=G().createElement(Qr.Link,{href:jy(e.id,"payouts"),onClick:()=>oa("wcpay_deposits_row_click")},(0,$i.dateI18n)("M j, Y",Ei().utc(e.date).toISOString(),!0)),a={details:{value:e.id,display:o},date:{value:e.date,display:r},type:{value:My[e.type],display:n(My[e.type])},amount:{value:Dc(e.amount,e.currency),display:n(Fc(e.amount,e.currency))},status:{value:Ly[e.status],display:n(G().createElement(qy,{deposit:e}))},bankAccount:{value:e.bankAccount,display:n(e.bankAccount)},bankReferenceKey:{value:e.bank_reference_key,display:n(null!==(t=e.bank_reference_key)&&void 0!==t?t:"N/A")}};return m.map((({key:e})=>a[e]||{display:null}))})),h="string"==typeof(0,Ay.getQuery)().store_currency_is,f=2>(s.store_currencies||[]).length;let _;void 0!==s.count&&void 0!==s.total&&!1===c&&(_=[{label:(0,Y._n)("payout","payouts",s.count,"woocommerce-payments"),value:`${ji(s.count)}`}],(f||h)&&_.push({label:(0,Y.__)("total","woocommerce-payments"),value:`${Fc(s.total,s.currency)}`}));const g=s.store_currencies||(h?[(0,Ay.getQuery)().store_currency_is]:[]),v=(0,Y.__)("Payouts","woocommerce-payments"),w=!!y.length,b=e=>nf(void 0,void 0,void 0,(function*(){const n=(0,Ay.getQuery)(),{page:o,path:a}=n,i=(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}}(n,["page","path"]),wcpaySettings.currentUserEmail),s=Pi(e,t),{date_before:c,date_after:d,date_between:l,match:u,status_is:m,status_is_not:y,store_currency_is:h}=(0,Ay.getQuery)(),f=!!(c||d||l||m||y||h),_=(0,Y.sprintf)((0,Y.__)("You are about to export %d deposits. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),p);if(f||p<1e3||window.confirm(_))try{const{exported_deposits:e}=yield Wr()({path:nd({userEmail:i,locale:s,dateAfter:d,dateBefore:c,dateBetween:l,match:u,statusIs:m,statusIsNot:y,storeCurrencyIs:h}),method:"POST"});r("success",(0,Y.sprintf)((0,Y.__)("Your export will be emailed to %s","woocommerce-payments"),i)),oa("wcpay_deposits_download",{exported_deposits:e,total_deposits:e,download_type:"endpoint"})}catch(e){r("error",(0,Y.__)("There was a problem generating your export.","woocommerce-payments"))}})),E=()=>{l(!1)};return G().createElement(Ma,null,G().createElement(Vy,{storeCurrencies:g}),G().createElement(Qr.TableCard,{className:"wcpay-deposits-list woocommerce-report-table",title:(0,Y.__)("Payout history","woocommerce-payments"),isLoading:i,rowsPerPage:(0,mt.parseInt)(null!==(e=(0,Ay.getQuery)().per_page)&&void 0!==e?e:"")||25,totalRows:p,headers:m,rows:y,summary:_,query:(0,Ay.getQuery)(),onQueryChange:Ay.onQueryChange,actions:[w&&G().createElement(Hy,{key:"download",isDisabled:i||n,onClick:()=>nf(void 0,void 0,void 0,(function*(){if(o(!0),"endpoint"==(p>y.length?"endpoint":"browser"))Ri()||Di()?b(""):l(!0);else{const e=(0,Ay.getQuery)(),t=[Object.assign(Object.assign({},m[0]),{label:(0,Y.__)("Payout Id","woocommerce-payments")}),...m.slice(1)],n=y.map((e=>[e[0],Object.assign(Object.assign({},e[1]),{value:(0,$i.dateI18n)("Y-m-d",Ei().utc(e[1].value).toISOString(),!0)}),...e.slice(2)]));(0,Oy.downloadCSVFile)((0,Oy.generateCSVFileName)(v,e),(0,Oy.generateCSVDataFromTable)(t,n)),oa("wcpay_deposits_download",{exported_deposits:y.length,total_deposits:s.count,download_type:"browser"})}o(!1)}))})]}),!Ri()&&!Di()&&d&&G().createElement(tf,{onClose:E,onSubmit:e=>{b(e),E()},totalItems:p,exportType:"deposits"}))},rf=()=>{var e,t;const{overviews:{account:n}}=ad();return{account:n,hasErroredExternalAccount:null!==(t=null===(e=null==n?void 0:n.default_external_accounts)||void 0===e?void 0:e.some((e=>"errored"===e.status)))&&void 0!==t&&t}},af=()=>{var e,t;const{account:n,hasErroredExternalAccount:o}=rf(),{isNextDepositNoticeDismissed:r,handleDismissNextDepositNotice:a}=(()=>{const{updateOptions:e}=(0,Js.useDispatch)("wc/admin/options"),[t,n]=(0,W.useState)(wcpaySettings.isNextDepositNoticeDismissed);return{isNextDepositNoticeDismissed:t,handleDismissNextDepositNotice:()=>{n(!0),wcpaySettings.isNextDepositNoticeDismissed=!0,e({wcpay_next_deposit_notice_dismissed:!0})}}})(),i="deposits_unrestricted"===(null===(e=wcpaySettings.accountStatus.deposits)||void 0===e?void 0:e.restrictions),s=null===(t=wcpaySettings.accountStatus.deposits)||void 0===t?void 0:t.completed_waiting_period,c=ic(null==n?void 0:n.deposits_schedule.interval);return i&&s&&n&&!r&&c&&!o?G().createElement(Fa,{status:"info",isDismissible:!0,onRemove:a},G().createElement(cc,{depositsSchedule:n.deposits_schedule})):null},sf=()=>{const{hasErroredExternalAccount:e}=rf(),t=wcpaySettings.accountStatus.accountLink?(0,Gr.addQueryArgs)(wcpaySettings.accountStatus.accountLink,{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}):"";return e&&""!==t?G().createElement(Fa,{status:"warning",icon:!0,className:"deposit-failure-notice",isDismissible:!1},Ua({mixedString:(0,Y.__)("Payouts are currently paused because a recent payout failed. Please {{updateLink}}update your bank account details{{/updateLink}}.","woocommerce-payments"),components:{updateLink:G().createElement(tc,{onClick:()=>oa("wcpay_account_details_link_clicked",{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}),href:t})}})):null},cf=()=>(np(),G().createElement(Ma,null,G().createElement(rc,{currentPage:"deposits"}),G().createElement(dc,null),G().createElement(af,null),G().createElement(sf,null),G().createElement(of,null))),df=kt((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:o=!1,size:r="medium",...a}=Kt(e,"CardHeader"),i=qt();return{...a,className:(0,q.useMemo)((()=>i(Jn,oo,ro,lo[r],n&&io,o&&uo,"components-card__header",t)),[t,i,n,o,r])}}(e);return(0,q.createElement)(Sa,Q({},n,{ref:t}))}),"CardHeader"),lf=e=>{const t=e.order;return t&&t.number?G().createElement(Qr.Link,{href:t.url,type:"external"},t.number):G().createElement("span",null,"–")},uf={normal:(0,Y.__)("Normal","woocommerce-payments"),elevated:(0,Y.__)("Elevated","woocommerce-payments"),highest:(0,Y.__)("Highest","woocommerce-payments"),not_assessed:(0,Y.__)("N/A","woocommerce-payments"),unknown:(0,Y.__)("N/A","woocommerce-payments")},mf=({type:e="",className:t="",children:n})=>{const o=Lo()("wcpay-pill"+(["primary","success","alert","danger","light"].includes(e)?"__"+e:""),t);return G().createElement(Qr.Pill,{className:o},n)},pf=["normal","elevated","highest"],yf={normal:"success",elevated:"alert",highest:"danger",not_assessed:"light"};function hf(e){return uf[pf[e]]||uf.not_assessed}const ff=({risk:e})=>{const t=pf[e];return G().createElement(mf,{type:yf[t]},hf(e))},_f={charge:(0,Y.__)("Charge","woocommerce-payments"),payment:(0,Y.__)("Payment","woocommerce-payments"),payment_failure_refund:(0,Y.__)("Payment failure refund","woocommerce-payments"),payment_refund:(0,Y.__)("Payment refund","woocommerce-payments"),refund:(0,Y.__)("Refund","woocommerce-payments"),refund_failure:(0,Y.__)("Refund failure","woocommerce-payments"),dispute:(0,Y.__)("Dispute","woocommerce-payments"),dispute_reversal:(0,Y.__)("Dispute reversal","woocommerce-payments"),card_reader_fee:(0,Y.__)("Reader fee","woocommerce-payments"),financing_payout:(0,Y.__)("Loan disbursement","woocommerce-payments"),financing_paydown:(0,Y.__)("Loan repayment","woocommerce-payments")},gf={android:(0,Y.__)("Android","woocommerce-payments"),ios:(0,Y.__)("iPhone","woocommerce-payments")},vf={online:(0,Y.__)("Online","woocommerce-payments"),in_person:(0,Y.__)("In-Person","woocommerce-payments")},wf={0:(0,Y.__)("Normal","woocommerce-payments"),1:(0,Y.__)("Elevated","woocommerce-payments"),2:(0,Y.__)("Highest","woocommerce-payments")},bf=["issuer_declined","invalid"],Ef=["blocked"],$f=(e={})=>e.outcome?e.outcome.type:"",Sf=(e={})=>!0===e.disputed,xf=(e={})=>0<e.amount_refunded,kf=(e={})=>!0===e.refunded,Cf=(e,t)=>{var n,o;return(null===(n=null==e?void 0:e.order)||void 0===n?void 0:n.fraud_meta_box_type)||(null===(o=null==t?void 0:t.order)||void 0===o?void 0:o.fraud_meta_box_type)||""},Nf=(e,t)=>{const n=Cf(e,t);return!!n&&"requires_capture"===(null==t?void 0:t.status)&&"review"===n},If=(e={},t)=>Nf(e,t)?"fraud_outcome_review":((e,t)=>{const n=Cf(e,t);return!!n&&["block","review_blocked"].includes(n)})(e,t)?"fraud_outcome_block":((e={})=>"failed"===e.status&&bf.includes($f(e)))(e)?"failed":((e={})=>"failed"===e.status&&Ef.includes($f(e)))(e)?"blocked":Sf(e)?"disputed_"+((e={})=>(null==e?void 0:e.status)||"")(e.dispute):((e={})=>xf(e)&&!kf(e))(e)?"refunded_partial":kf(e)?"refunded_full":((e={})=>!1===e.refunded&&(0,mt.get)(e,"refunds.data",[]).length>0)(e)?"refund_failed":((e={})=>"succeeded"===e.status&&!0===e.paid)(e)?((e={})=>!0===e.captured)(e)?"paid":"authorized":e.status,Tf=e=>"card_present"===e||"interac_present"===e||"in_person"===e?(0,Y.__)("In-Person","woocommerce-payments"):(0,Y.__)("Online","woocommerce-payments"),Af=({depositId:e,dateAvailable:t})=>{if(e&&t){const n=Ii({page:"wc-admin",path:"/payments/payouts/details",id:e}),o=(0,$i.dateI18n)("M j, Y",Ei().utc(t).toISOString(),!0);return G().createElement(Qr.Link,{href:n},o)}return G().createElement(G().Fragment,null,(0,Y.__)("Future payout","woocommerce-payments"),G().createElement(Bs,{content:Ua({mixedString:(0,Y.__)("This transaction will be included in an upcoming automated payout. The date of the payout will be displayed here once it is scheduled. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:G().createElement(tc,{href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#pending-funds"})}}),buttonIcon:G().createElement(Na.A,null)}))};var Of=n(4015);const Mf=({amount:e,currency:t,fallback:n,baseCurrency:o})=>{var r,a;const i=n?Ir:null===(a=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.components)||void 0===a?void 0:a.Tooltip;return G().createElement(i,{text:(0,Y.sprintf)((0,Y.__)("Converted from %s","woocommerce-payments"),Fc(e,t,!1,o)),position:"bottom center"},G().createElement("span",{className:"conversion-indicator","data-testid":"conversion-indicator",style:{height:"18px",width:"18px"}},G().createElement(Of.A,{size:18})))},Lf=({amount:e,currency:t,fromAmount:n,fromCurrency:o})=>{var r,a;const i=Fc(e,t);if(t===o)return G().createElement(G().Fragment,null,i);const s=!!(null===(a=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.components)||void 0===a?void 0:a.Tooltip);return G().createElement("div",{className:Lo()("converted-amount",!s&&"converted-amount--fallback")},G().createElement(Mf,{amount:n,currency:o,fallback:!s,baseCurrency:t}),i)},jf=window.wp.htmlEntities;function Df(e,t){if(!t)return null;const n=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());return-1===n?null:{suggestionBeforeMatch:(0,jf.decodeEntities)(e.substring(0,n)),suggestionMatch:(0,jf.decodeEntities)(e.substring(n,n+t.length)),suggestionAfterMatch:(0,jf.decodeEntities)(e.substring(n+t.length))}}const Rf={name:"transactions",className:"woocommerce-search__transactions-result",options(e){const t=e?{search_term:e}:{};return Wr()({path:(0,Gr.addQueryArgs)("/wc/v3/payments/transactions/search",t)})},isDebounced:!0,getOptionIdentifier:e=>e.label,getOptionKeywords:e=>[e.label],getFreeTextOptions:e=>[{key:"all",label:W.createElement("span",{key:"name",className:"woocommerce-search__result-name"},Ua({mixedString:(0,Y.__)("All transactions with customer names or billing emails that include {{query /}}","woocommerce-payments"),components:{query:W.createElement("strong",{className:"components-form-token-field__suggestion-match"},e)}})),value:{label:e}}],getOptionLabel(e,t){const n=Df(e.label,t);return W.createElement("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},null==n?void 0:n.suggestionBeforeMatch,W.createElement("strong",{className:"components-form-token-field__suggestion-match"},null==n?void 0:n.suggestionMatch),null==n?void 0:n.suggestionAfterMatch)},getOptionCompletion:e=>({key:e.label,label:e.label})},Pf=Object.entries(_f).map((([e,t])=>"card_reader_fee"===e?null:{label:t,value:e})).filter((function(e){return null!=e})),Ff=("undefined"!=typeof wcpaySettings?wcpaySettings.accountLoans.loans:[]).map((e=>{const t=e.split("|");return{label:(0,Y.sprintf)("ID: %s | %s",t[0],"active"===t[1]?(0,Y.__)("In Progress","woocommerce-payments"):(0,Y.__)("Paid in Full","woocommerce-payments")),value:t[0]}}),[]),zf=Object.entries(gf).map((([e,t])=>({label:t,value:e}))),Bf=Object.entries(vf).map((([e,t])=>({label:t,value:e}))),Uf=Object.entries(wf).map((([e,t])=>({label:t,value:e}))),Vf=Object.entries(wcSettings.countries).map((([e,t])=>({label:t,value:e}))),Yf=({storeCurrencies:e,customerCurrencies:t})=>{const n=(0,W.useMemo)((()=>(e=>{const t=(0,El.getSetting)("wcVersion"),n=parseFloat(t);return{title:n<7.8?(0,Y.__)("Transactions match {{select /}} filters","woocommerce-payments"):(0,Y.__)("Transactions match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,Y.__)("Date","woocommerce-payments"),remove:(0,Y.__)("Remove transaction date filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction date filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction date","woocommerce-payments")},rules:[{value:"before",label:(0,Y.__)("Before","woocommerce-payments")},{value:"after",label:(0,Y.__)("After","woocommerce-payments")},{value:"between",label:(0,Y.__)("Between","woocommerce-payments")}],input:{component:"Date"}},customer_currency:{labels:{add:(0,Y.__)("Customer currency","woocommerce-payments"),remove:(0,Y.__)("Remove transaction customer currency filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction customer currency filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Customer currency{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Customer currency</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a customer currency","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","transaction customer currency","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","transaction customer currency","woocommerce-payments")}],input:{component:"SelectControl",options:e}},type:{labels:{add:(0,Y.__)("Type","woocommerce-payments"),remove:(0,Y.__)("Remove transaction type filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction type filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction type","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","transaction type","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","transaction type","woocommerce-payments")}],input:{component:"SelectControl",options:Pf}},loan_id_is:{labels:{add:(0,Y.__)("Loan","woocommerce-payments"),remove:(0,Y.__)("Remove loan filter","woocommerce-payments"),rule:(0,Y.__)("Select a loan","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Loan{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Loan</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a loan","woocommerce-payments")},input:{component:"SelectControl",type:"loans",options:Ff}},source_device:{labels:{add:(0,Y.__)("Device Type","woocommerce-payments"),remove:(0,Y.__)("Remove transaction device type filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction device type filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Device type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Device type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction device type","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","Source device","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","Source device","woocommerce-payments")}],input:{component:"SelectControl",options:zf}},channel:{labels:{add:(0,Y.__)("Channel","woocommerce-payments"),remove:(0,Y.__)("Remove transaction channel filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction channel filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Channel{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Channel</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction channel","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","Channel","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","Channel","woocommerce-payments")}],input:{component:"SelectControl",options:Bf}},customer_country:{labels:{add:(0,Y.__)("Customer Country","woocommerce-payments"),remove:(0,Y.__)("Remove transaction customer country filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction customer country filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Customer country{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Customer country</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction customer country","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","Customer Country","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","Customer Country","woocommerce-payments")}],input:{component:"SelectControl",options:Vf}},risk_level:{labels:{add:(0,Y.__)("Risk Level","woocommerce-payments"),remove:(0,Y.__)("Remove transaction Risk Level filter","woocommerce-payments"),rule:(0,Y.__)("Select a transaction Risk Level filter match","woocommerce-payments"),title:n<7.8?(0,Y.__)("{{title}}Risk Level{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Risk Level</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a transaction Risk Level","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","Risk Level","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","Risk Level","woocommerce-payments")}],input:{component:"SelectControl",options:Uf}}}}})(t.map((e=>({label:Mc(e),value:e}))))),[t]),o=(0,W.useMemo)((()=>{return t=e.map((e=>({label:Mc(e),value:e}))),n=e.length>1,[{label:(0,Y.__)("Deposit currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","search","filter","type_is","type_is_not","date_before","date_after","date_between","source_device_is","source_device_is_not","channel_is","channel_is_not","customer_country_is","customer_country_is_not","risk_level_is","risk_level_is_not"],showFilters:()=>n,filters:[{label:(0,Y.__)("All currencies","woocommerce-payments"),value:"---"},...t],defaultValue:"---"},{label:(0,Y.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","search","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,Y.__)("All transactions","woocommerce-payments"),value:"all"},{label:(0,Y.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}];var t,n}),[e]);return G().createElement("div",{className:"woocommerce-filters-transactions"},G().createElement(Qr.ReportFilters,{key:null==t?void 0:t.length,filters:o,advancedFilters:n,showDatePicker:!1,path:"/payments/transactions",query:(0,Ay.getQuery)(),onAdvancedFilterAction:e=>{"filter"===e&&oa("page_view",{path:"payments_transactions",filter:"advanced"})}}))},Hf={alior_bank:"Alior Bank",bank_millennium:"Bank Millenium",bank_nowy_bfg_sa:"Bank Nowy BFG S.A.",bank_pekao_sa:"Bank PEKAO S.A",banki_spbdzielcze:"Banki SpBdzielcze",blik:"Blik via redirect",bnp_paribas:"BNP Paribas",boz:"BOZ",citi_handlowy:"CitiHandlowy",credit_agricole:"Credit Agricole",envelobank:"EnveloBank",etransfer_pocztowy24:"e-Transfer Poctowy24",getin_bank:"Getin Bank",ideabank:"IdeaBank",ing:"ING",inteligo:"inteligo",mbank_mtransfer:"mBank-mtransfer",nest_przelew:"Nest Przelew",noble_pay:"Noble Pay",pbac_z_ipko:"PBac z iPKO (PKO+BP)",plus_bank:"Plus Bank",santander_przelew24:"Santander-przelew24",tmobile_usbugi_bankowe:"T-Mobile Usbugi Bankowe",toyota_bank:"Toyota Bank",volkswagen_bank:"Volkswagen Bank"};var Wf,Gf,qf;!function(e){e.AFFIRM="affirm",e.AFTERPAY_CLEARPAY="afterpay_clearpay",e.AU_BECS_DEBIT="au_becs_debit",e.BANCONTACT="bancontact",e.CARD="card",e.CARD_PRESENT="card_present",e.EPS="eps",e.KLARNA="klarna",e.GIROPAY="giropay",e.IDEAL="ideal",e.LINK="link",e.P24="p24",e.SEPA_DEBIT="sepa_debit",e.SOFORT="sofort"}(qf||(qf={}));const Qf=(null===(Gf=null===(Wf=window.wcpaySettings)||void 0===Wf?void 0:Wf.accountStatus)||void 0===Gf?void 0:Gf.country)||"US",Kf={ach_credit_transfer:(0,Y.__)("ACH Credit Transfer","woocommerce-payments"),ach_debit:(0,Y.__)("ACH Debit","woocommerce-payments"),acss_debit:(0,Y.__)("ACSS Debit","woocommerce-payments"),affirm:(0,Y.__)("Affirm","woocommerce-payments"),afterpay_clearpay:"GB"===Qf?(0,Y.__)("Clearpay","woocommerce-payments"):(0,Y.__)("Afterpay","woocommerce-payments"),alipay:(0,Y.__)("Alipay","woocommerce-payments"),amex:(0,Y.__)("American Express","woocommerce-payments"),au_becs_debit:(0,Y.__)("AU BECS Debit","woocommerce-payments"),bancontact:(0,Y.__)("Bancontact","woocommerce-payments"),card:(0,Y.__)("Card Payment","woocommerce-payments"),card_present:(0,Y.__)("In-Person Card Payment","woocommerce-payments"),cartes_bancaires:(0,Y.__)("Cartes Bancaires","woocommerce-payments"),diners:(0,Y.__)("Diners Club","woocommerce-payments"),discover:(0,Y.__)("Discover","woocommerce-payments"),eps:(0,Y.__)("EPS","woocommerce-payments"),giropay:(0,Y.__)("giropay","woocommerce-payments"),ideal:(0,Y.__)("iDEAL","woocommerce-payments"),jcb:(0,Y.__)("JCB","woocommerce-payments"),klarna:(0,Y.__)("Klarna","woocommerce-payments"),link:(0,Y.__)("Link","woocommerce-payments"),mastercard:(0,Y.__)("Mastercard","woocommerce-payments"),multibanco:(0,Y.__)("Multibanco","woocommerce-payments"),p24:(0,Y.__)("P24","woocommerce-payments"),sepa_debit:(0,Y.__)("SEPA Debit","woocommerce-payments"),sofort:(0,Y.__)("SOFORT","woocommerce-payments"),stripe_account:(0,Y.__)("Stripe Account","woocommerce-payments"),unionpay:(0,Y.__)("Union Pay","woocommerce-payments"),visa:(0,Y.__)("Visa","woocommerce-payments"),wechat:(0,Y.__)("WeChat","woocommerce-payments")},Zf=qf;var Jf=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},Xf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const e_=e=>{var t;if(!e.source_identifier)return G().createElement(W.Fragment,null);switch(e.source){case"giropay":return G().createElement(W.Fragment,null,"  ",e.source_identifier);case"p24":return G().createElement(W.Fragment,null,"  ",null!==(t=Hf[e.source_identifier])&&void 0!==t?t:"");default:return G().createElement(W.Fragment,null," •••• "," ",e.source_identifier)}},t_=e=>{let t="";return"ios"===e.source_device?t=(0,Y.__)("Tap to Pay on iPhone","woocommerce-payments"):"android"===e.source_device&&(t=(0,Y.__)("Tap to Pay on Android","woocommerce-payments")),G().createElement(zs,{isVisible:!1,content:t},G().createElement("span",{className:"woocommerce-taptopay__icon"}))},n_=e=>{var t,n,o,r,a,i,s;const[c,d]=(0,W.useState)(!1),{createNotice:l}=(0,Js.useDispatch)("core/notices"),{transactions:u,isLoading:m}=(({paged:e,per_page:t,orderby:n,order:o,match:r,date_before:a,date_after:i,date_between:s,type_is:c,type_is_not:d,source_device_is:l,source_device_is_not:u,channel_is:m,channel_is_not:p,customer_country_is:y,customer_country_is_not:h,risk_level_is:f,risk_level_is_not:_,store_currency_is:g,customer_currency_is:v,customer_currency_is_not:w,loan_id_is:b,search:E},$)=>(0,Js.useSelect)((S=>{const{getTransactions:x,getTransactionsError:k,isResolving:C}=S(xi),N={paged:Number.isNaN(parseInt(null!=e?e:"",10))?"1":e,perPage:Number.isNaN(parseInt(null!=t?t:"",10))?"25":t,orderby:n||"date",order:o||"desc",match:r,dateBefore:a,dateAfter:i,dateBetween:s&&s.sort(((e,t)=>Ei()(e).diff(Ei()(t)))),typeIs:c,typeIsNot:d,sourceDeviceIs:l,sourceDeviceIsNot:u,storeCurrencyIs:g,customerCurrencyIs:v,customerCurrencyIsNot:w,channelIs:m,channelIsNot:p,customerCountryIs:y,customerCountryIsNot:h,riskLevelIs:f,riskLevelIsNot:_,loanIdIs:b,depositId:$,search:E};return{transactions:x(N),transactionsError:k(N),isLoading:C("getTransactions",[N])}}),[e,t,n,o,r,a,i,JSON.stringify(s),c,d,l,u,g,v,w,m,p,y,h,f,_,b,$,JSON.stringify(E)]))((0,Ay.getQuery)(),null!==(t=e.depositId)&&void 0!==t?t:""),{transactionsSummary:p,isLoading:y}=(({match:e,date_before:t,date_after:n,date_between:o,type_is:r,type_is_not:a,source_device_is:i,source_device_is_not:s,store_currency_is:c,customer_currency_is:d,customer_currency_is_not:l,channel_is:u,channel_is_not:m,customer_country_is:p,customer_country_is_not:y,risk_level_is:h,risk_level_is_not:f,loan_id_is:_,search:g},v)=>(0,Js.useSelect)((w=>{const{getTransactionsSummary:b,isResolving:E}=w(xi),$={match:e,dateBefore:t,dateAfter:n,dateBetween:o,typeIs:r,typeIsNot:a,sourceDeviceIs:i,sourceDeviceIsNot:s,storeCurrencyIs:c,customerCurrencyIs:d,customerCurrencyIsNot:l,channelIs:u,channelIsNot:m,customerCountryIs:p,customerCountryIsNot:y,riskLevelIs:h,riskLevelIsNot:f,loanIdIs:_,depositId:v,search:g};return{transactionsSummary:b($),isLoading:E("getTransactionsSummary",[$])}}),[e,t,n,JSON.stringify(o),r,a,i,s,c,d,l,u,m,p,y,h,f,_,v,JSON.stringify(g)]))((0,Ay.getQuery)(),null!==(n=e.depositId)&&void 0!==n?n:""),[h,f]=(0,W.useState)(!1),[_]=Xm(),g=(0,q.useMemo)((()=>{return t=!e.depositId,n=wcpaySettings.isSubscriptionsActive,[{key:"transaction_id",label:(0,Y.__)("Transaction Id","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"date",label:(0,Y.__)("Date / Time","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Date and time","woocommerce-payments"),labelInCsv:(0,Y.__)("Date / Time (UTC)","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:(0,Y.__)("Type","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"channel",label:(0,Y.__)("Channel","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Channel","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"customer_currency",label:(0,Y.__)("Paid Currency","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Customer Currency","woocommerce-payments"),isSortable:!0,visible:!1},{key:"customer_amount",label:(0,Y.__)("Amount Paid","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount in Customer Currency","woocommerce-payments"),isNumeric:!0,isSortable:!0,visible:!1},{key:"deposit_currency",label:(0,Y.__)("Payout Currency","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Payout Currency","woocommerce-payments"),isSortable:!0,visible:!1},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount in Payout Currency","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"fees",label:(0,Y.__)("Fees","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Fees","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"net",label:(0,Y.__)("Net","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Net","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"order",label:(0,Y.__)("Order #","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Order number","woocommerce-payments"),required:!0},n&&{key:"subscriptions",label:(0,Y.__)("Subscription #","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Subscription number","woocommerce-payments")},{key:"source",label:(0,Y.__)("Payment Method","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Payment Method","woocommerce-payments"),cellClassName:"is-center-aligned"},{key:"customer_name",label:(0,Y.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Customer","woocommerce-payments"),isLeftAligned:!0},{key:"customer_email",label:(0,Y.__)("Email","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customer_country",label:(0,Y.__)("Country","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"risk_level",label:(0,Y.__)("Risk level","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Risk level","woocommerce-payments"),visible:!1,isLeftAligned:!0},t&&{key:"deposit_id",label:(0,Y.__)("Payout ID","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Payout ID","woocommerce-payments"),cellClassName:"deposit",isLeftAligned:!0,visible:!1},t&&{key:"deposit",label:(0,Y.__)("Payout date","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Payout date","woocommerce-payments"),cellClassName:"deposit",isLeftAligned:!0},t&&{key:"deposit_status",label:(0,Y.__)("Payout status","woocommerce-payments"),visible:!1}].filter(Boolean);var t,n}),[e.depositId]),v=p.count||0,w=u.map((e=>{var t,n;const o=jy(e.payment_intent_id||e.charge_id,"transactions")+"&transaction_id="+e.transaction_id+"&transaction_type="+(e.metadata&&"card_reader_fee"===e.metadata.charge_type?e.metadata.charge_type:e.type),r="financing_payout"===e.type||"financing_paydown"===e.type&&""===e.charge_id?e=>e:e=>G().createElement(Ry,{href:o},e),a=e.order?G().createElement(lf,{order:e.order}):(0,Y.__)("N/A","woocommerce-payments"),i=e.order&&e.order.subscriptions,s=wcpaySettings.isSubscriptionsActive&&i?i.map((e=>e.number)).join(", "):"",c=wcpaySettings.isSubscriptionsActive&&i?i.map(((e,t,n)=>[G().createElement(lf,{key:t,order:e}),t!==n.length-1&&", "])):[],d=G().createElement(ff,{risk:e.risk_level}),l=e.order&&e.order.customer_url?G().createElement(Qr.Link,{href:null!==(t=e.order.customer_url)&&void 0!==t?t:""},e.customer_name):e.customer_name,u=e.order?G().createElement(Qr.Link,{href:null!==(n=e.order.customer_url)&&void 0!==n?n:""},e.customer_email):e.customer_email,m=e.currency.toUpperCase(),p=e.metadata?e.metadata.charge_type:e.type,y=-1!==["financing_payout","financing_paydown"].indexOf(e.type),h=!y&&G().createElement(Af,{depositId:e.deposit_id,dateAvailable:e.available_on}),f=e.deposit_status?Ly[e.deposit_status]:"",_={transaction_id:{value:e.transaction_id,display:r(e.transaction_id)},date:{value:e.date,display:r((0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.date).local().toISOString()))},channel:{value:Tf(e.channel),display:r(G().createElement(W.Fragment,null,Tf(e.channel),e.source_device&&t_(e)))},type:{value:_f[p],display:r(_f[p]||Mi(p))},source:{value:e.source,display:y?G().createElement("span",{className:"payment-method__brand"},"—"):r(G().createElement("span",{className:"payment-method-details-list-item"},G().createElement(zs,{isVisible:!1,content:Kf[e.source]},G().createElement("span",{className:`payment-method__brand payment-method__brand--${e.source}`,"aria-label":Kf[e.source]})),e_(e)))},order:{value:e.order&&e.order.number,display:a},subscriptions:{value:s,display:c},customer_name:{value:e.customer_name,display:y?(0,Y.__)("N/A","woocommerce-payments"):l},customer_email:{value:e.customer_email,display:y?(0,Y.__)("N/A","woocommerce-payments"):u},customer_country:{value:e.customer_country,display:r(e.customer_country)},customer_currency:{value:e.customer_currency.toUpperCase(),display:r(e.customer_currency.toUpperCase())},customer_amount:{value:Dc(e.customer_amount,e.customer_currency),display:r(Rc(e.customer_amount,e.customer_currency))},deposit_currency:{value:e.currency.toUpperCase(),display:r(e.currency.toUpperCase())},amount:(()=>{const t=e.metadata?0:e.amount,n=e.customer_amount?e.customer_amount:0;return{value:Dc(t,m),display:r(G().createElement(Lf,{amount:t,currency:m,fromAmount:n,fromCurrency:e.customer_currency.toUpperCase()}))}})(),fees:(()=>{const t=e.metadata&&"card_reader_fee"===e.metadata.charge_type,n=Dc(t?e.amount:-1*e.fees,m);return{value:n,display:r(0!==n?Rc(t?e.amount:-1*e.fees,m):(0,Y.__)("N/A","woocommerce-payments"))}})(),net:{value:Dc(e.net,m),display:r(Fc(e.net,m))},risk_level:{value:hf(e.risk_level),display:r(d)},deposit_id:{value:e.deposit_id,display:e.deposit_id},deposit:{value:e.available_on,display:h},deposit_status:{value:f,display:f}};return g.map((({key:e})=>_[e]||{display:null}))})),b=(0,Ay.getQuery)().search&&(null===(o=(0,Ay.getQuery)().search)||void 0===o?void 0:o.map((e=>({key:e,label:e}))));let E=wcpaySettings.isSubscriptionsActive?(0,Y.__)("Search by order number, subscription number, customer name, or billing email","woocommerce-payments"):(0,Y.__)("Search by order number, customer name, or billing email","woocommerce-payments");const $=(0,Y.__)("Transactions","woocommerce-payments"),S=!!w.length,x=t=>Jf(void 0,void 0,void 0,(function*(){const n=(0,Ay.getQuery)(),{page:o,path:r}=n,a=Xf(n,["page","path"]),i=wcpaySettings.currentUserEmail,s=Pi(t,_),{date_after:c,date_before:d,date_between:u,match:m,search:p,type_is:y,type_is_not:h,source_device_is:f,source_device_is_not:g,channel_is:w,channel_is_not:b,customer_country_is:E,customer_country_is_not:$,risk_level_is:S,risk_level_is_not:x,customer_currency_is:k,customer_currency_is_not:C}=a,N=e.depositId,I=!!(c||d||u||p||y||h||w||b||E||$||S||x||f||g),T=(0,Y.sprintf)((0,Y.__)("You are about to export %d transactions. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),v);if(I||v<1e4||window.confirm(T))try{yield Wr()({path:Od({userEmail:i,locale:s,dateAfter:c,dateBefore:d,dateBetween:u,match:m,search:p,typeIs:y,typeIsNot:h,sourceDeviceIs:f,sourceDeviceIsNot:g,customerCurrencyIs:k,customerCurrencyIsNot:C,channelIs:w,channelIsNot:b,customerCountryIs:E,customerCountryIsNot:$,riskLevelIs:S,riskLevelIsNot:x,depositId:N}),method:"POST"}),l("success",(0,Y.sprintf)((0,Y.__)("Your export will be emailed to %s","woocommerce-payments"),i))}catch(e){l("error",(0,Y.__)("There was a problem generating your export.","woocommerce-payments"))}}));wcpaySettings.featureFlags.customSearch||(E=(0,Y.__)("Search by customer name","woocommerce-payments"));const k="string"==typeof(0,Ay.getQuery)().store_currency_is,C=2>(p.store_currencies||[]).length;let N;void 0!==p.count&&void 0!==p.total&&!1===y&&(N=[{label:(0,Y._n)("transaction","transactions",p.count,"woocommerce-payments"),value:`${ji(p.count)}`}],p.count>0&&(C||k)&&N.push({label:(0,Y.__)("total","woocommerce-payments"),value:`${Fc(p.total,p.currency)}`},{label:(0,Y.__)("fees","woocommerce-payments"),value:`${Rc(null!==(r=p.fees)&&void 0!==r?r:0,p.currency)}`},{label:(0,Y.__)("net","woocommerce-payments"),value:`${Fc(null!==(a=p.net)&&void 0!==a?a:0,p.currency)}`}));const I=()=>{f(!1)},T=!e.depositId,A=p.store_currencies||(k?[null!==(i=(0,Ay.getQuery)().store_currency_is)&&void 0!==i?i:""]:[]),O=p.customer_currencies||[];return G().createElement(Ma,null,T&&G().createElement(Yf,{storeCurrencies:A,customerCurrencies:O}),G().createElement(Qr.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:$,isLoading:m,rowsPerPage:parseInt(null!==(s=(0,Ay.getQuery)().per_page)&&void 0!==s?s:"",10)||25,totalRows:v,headers:g,rows:w,summary:N,query:(0,Ay.getQuery)(),onQueryChange:Ay.onQueryChange,actions:[G().createElement(Qr.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:e=>{(0,Ay.updateQueryString)({search:e.length?(0,mt.uniq)(e.map((e=>e.label))):void 0})},placeholder:E,selected:b,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:Rf}),S&&G().createElement(Hy,{key:"download",isDisabled:m||c,onClick:()=>Jf(void 0,void 0,void 0,(function*(){d(!0);const t=(0,Ay.getQuery)(),{page:n,path:o}=t,r=Xf(t,["page","path"]),a=v>w.length?"endpoint":"browser";if(oa("wcpay_transactions_download_csv_click",{location:e.depositId?"deposit_details":"transactions",download_type:a,exported_transactions:w.length,total_transactions:p.count}),"endpoint"===a)Ri()||Di()?x(""):f(!0);else{const e=g.map((e=>e.labelInCsv?Object.assign(Object.assign({},e),{label:e.labelInCsv}):e));(0,Oy.downloadCSVFile)((0,Oy.generateCSVFileName)($,r),(0,Oy.generateCSVDataFromTable)(e,w))}d(!1)}))})]}),!Ri()&&!Di()&&h&&G().createElement(tf,{onClose:I,onSubmit:e=>{x(e),I()},totalItems:v,exportType:"transactions"}))},o_=({deposit:e})=>{let t=Ly;return"withdrawal"===e.type&&(t=Object.assign(Object.assign({},t),{paid:t.deducted})),G().createElement(Qr.OrderStatus,{order:{status:e.status},orderStatusMap:t})},r_=({label:e,value:t,valueClass:n,detail:o})=>G().createElement("li",{className:"woocommerce-summary__item-container"},G().createElement("div",{className:"woocommerce-summary__item"},G().createElement("div",{className:"woocommerce-summary__item-label"},e),G().createElement("div",{className:"woocommerce-summary__item-data"},G().createElement("div",{className:Lo()("woocommerce-summary__item-value",n)},t)),o&&G().createElement("div",{className:"wcpay-summary__item-detail"},o))),a_=({deposit:e})=>{if(!e)return G().createElement(Ia,{icon:!0,status:"error",isDismissible:!1},(0,Y.__)("The deposit you are looking for cannot be found.","woocommerce-payments"));const t="withdrawal"===e.type;let n=(0,Y.__)("Payout date","woocommerce-payments");e.automatic||(n=(0,Y.__)("Instant payout date","woocommerce-payments")),t&&(n=(0,Y.__)("Withdrawal date","woocommerce-payments"));const o=G().createElement(r_,{key:"depositDate",label:`${n}: `+(0,$i.dateI18n)("M j, Y",Ei().utc(e.date).toISOString(),!0),value:G().createElement(o_,{deposit:e}),detail:e.bankAccount});return G().createElement("div",{className:"wcpay-deposit-overview"},e.automatic?G().createElement(So,{className:"wcpay-deposit-automatic"},G().createElement("ul",null,o,G().createElement("li",{className:"wcpay-deposit-amount"},Fc(e.amount,e.currency)))):G().createElement(Qr.SummaryList,{label:t?(0,Y.__)("Withdrawal overview","woocommerce-payments"):(0,Y.__)("Payout overview","woocommerce-payments")},(()=>[o,G().createElement(r_,{key:"depositAmount",label:t?(0,Y.__)("Withdrawal amount","woocommerce-payments"):(0,Y.__)("Payout amount","woocommerce-payments"),value:Fc(e.amount+e.fee,e.currency)}),G().createElement(r_,{key:"depositFees",label:(0,Y.sprintf)((0,Y.__)("%s service fee","woocommerce-payments"),`${e.fee_percentage}%`),value:Rc(e.fee,e.currency),valueClass:0<e.fee&&"wcpay-deposit-fee"}),G().createElement(r_,{key:"netDepositAmount",label:t?(0,Y.__)("Net withdrawal amount","woocommerce-payments"):(0,Y.__)("Net payout amount","woocommerce-payments"),value:Fc(e.amount,e.currency),valueClass:"wcpay-deposit-net"})])))},i_=({query:{id:e}})=>{const{deposit:t,isLoading:n}=(e=>(0,Js.useSelect)((t=>{const{getDeposit:n,isResolving:o,hasFinishedResolution:r}=t(xi);return{deposit:n(e),isLoading:!r("getDeposit",[e])||o("getDeposit",[e])}}),[e]))(e),o=!n&&t&&!t.automatic;return G().createElement(Ma,null,G().createElement(dc,null),G().createElement(rc,{currentPage:"deposits",isDetailsView:!0}),G().createElement(Oa,null,n?G().createElement(Qr.SummaryListPlaceholder,{numberOfItems:2}):G().createElement(a_,{deposit:t})),t&&G().createElement(Oa,null,o?G().createElement(So,null,G().createElement(df,null,G().createElement(kh,{size:16,weight:600,as:"h2"},(0,Y.__)("Payout transactions","woocommerce-payments"))),G().createElement(Oo,{className:"wcpay-deposit-overview--instant__transactions-list-message"},Ua({mixedString:(0,Y.__)("We're unable to show transaction history on instant payouts. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:G().createElement(tc,{href:"https://woocommerce.com/document/woopayments/payouts/instant-payouts/#transactions"})}}))):G().createElement(n_,{depositId:e})))},s_=["menuitem","menuitemradio","menuitemcheckbox"];class c_ extends q.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,(0,mt.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?Do.focus.tabbable:Do.focus.focusable).find(this.container),o=this.getFocusableIndex(n,e);return o>-1&&e?{index:o,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:o,onNavigate:r=mt.noop,stopNavigationEvents:a}=this.props,i=o(e);if(void 0!==i&&a){e.stopImmediatePropagation();const t=e.target.getAttribute("role");s_.includes(t)&&e.preventDefault()}if(!i)return;const s=t(e.target.ownerDocument.activeElement);if(!s)return;const{index:c,focusables:d}=s,l=n?function(e,t,n){const o=e+n;return o<0?t+o:o>=t?o-t:o}(c,d.length,i):c+i;l>=0&&l<d.length&&(d[l].focus(),r(l,d[l]))}render(){const{children:e,...t}=this.props;return(0,q.createElement)("div",Q({ref:this.bindContainer},(0,mt.omit)(t,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),e)}}const d_=(e,t)=>(0,q.createElement)(c_,Q({},e,{forwardedRef:t}));d_.displayName="NavigableContainer";const l_=(0,q.forwardRef)(d_),u_=(0,q.forwardRef)((function(e,t){let{role:n="menu",orientation:o="vertical",...r}=e;return(0,q.createElement)(l_,Q({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:o,eventToOffset:e=>{const{keyCode:t}=e;let n=[Ga.DOWN],r=[Ga.UP];return"horizontal"===o&&(n=[Ga.RIGHT],r=[Ga.LEFT]),"both"===o&&(n=[Ga.RIGHT,Ga.DOWN],r=[Ga.LEFT,Ga.UP]),(0,mt.includes)(n,t)?1:(0,mt.includes)(r,t)?-1:(0,mt.includes)([Ga.DOWN,Ga.UP,Ga.LEFT,Ga.RIGHT],t)?0:void 0}},r))})),m_=e=>{let{tabId:t,onClick:n,children:o,selected:r,...a}=e;return(0,q.createElement)(jr,Q({role:"tab",tabIndex:r?null:-1,"aria-selected":r,id:t,onClick:n},a),o)};function p_(e){var t;let{className:n,children:o,tabs:r,initialTabName:a,orientation:i="horizontal",activeClass:s="is-active",onSelect:c=mt.noop}=e;const d=(0,jo.useInstanceId)(p_,"tab-panel"),[l,u]=(0,q.useState)(null),m=e=>{u(e),c(e)},p=(0,mt.find)(r,{name:l}),y=`${d}-${null!==(t=null==p?void 0:p.name)&&void 0!==t?t:"none"}`;return(0,q.useEffect)((()=>{(0,mt.find)(r,{name:l})||u(a||(r.length>0?r[0].name:null))}),[r]),(0,q.createElement)("div",{className:n},(0,q.createElement)(u_,{role:"tablist",orientation:i,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},r.map((e=>(0,q.createElement)(m_,{className:Lo()("components-tab-panel__tabs-item",e.className,{[s]:e.name===l}),tabId:`${d}-${e.name}`,"aria-controls":`${d}-${e.name}-view`,selected:e.name===l,key:e.name,onClick:(0,mt.partial)(m,e.name)},e.title)))),p&&(0,q.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},o(p)))}const y_=({orderId:e,children:t,paymentIntentId:n,buttonIsPrimary:o=!1,buttonIsSmall:r=!0,onClick:a=()=>{}})=>{const{isLoading:i,isRequesting:s,doCaptureAuthorization:c}=gy(n,e),[d,l]=(0,W.useState)(!1);return G().createElement(jr,{isPrimary:o,isSecondary:!o,isSmall:r,onClick:()=>{a(),l(!0),c()},isBusy:i&&d,disabled:i&&d||s},t||(0,Y.__)("Capture","woocommerce-payments"))},h_=()=>{var e;const t=[{key:"created",label:(0,Y.__)("Authorized on","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Authorized on","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"asc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"capture_by",label:(0,Y.__)("Capture by","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Capture by","woocommerce-payments"),required:!0,isLeftAligned:!0,cellClassName:"date-time",isSortable:!0},{key:"order",label:(0,Y.__)("Order","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Order number","woocommerce-payments"),required:!0},{key:"risk_level",label:(0,Y.__)("Risk level","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Risk level of transaction","woocommerce-payments"),isLeftAligned:!0},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"customer_email",label:(0,Y.__)("Email","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customer_country",label:(0,Y.__)("Country","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"action",label:(0,Y.__)("Action","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Action","woocommerce-payments"),visible:!0,required:!0}].filter(Boolean),{authorizationsSummary:n,isLoading:o}=_y((0,Ay.getQuery)()),{authorizations:r,isLoading:a}=(({paged:e,per_page:t,orderby:n,order:o})=>(0,Js.useSelect)((r=>{const{getAuthorizations:a,getAuthorizationsError:i,isResolving:s}=r(xi),c=Number.isNaN(parseInt(null!=e?e:"",10)),d=Number.isNaN(parseInt(null!=t?t:"",10)),l={paged:c?"1":e,per_page:d?"25":t,orderby:n||"created",order:o||"asc"};return{authorizations:a(l),authorizationsError:i(l),isLoading:s("getAuthorizations",[l])}}),[e,t,n,o]))((0,Ay.getQuery)()),i=r.map((e=>{const n=G().createElement(ff,{risk:e.risk_level}),o=jy(e.payment_intent_id,"transactions"),r=e=>G().createElement(Ry,{href:o},e),a={authorization_id:{value:e.payment_intent_id,display:e.payment_intent_id},created:{value:(0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.created).local().toISOString()),display:r((0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.created).local().toISOString()))},capture_by:{value:(0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.created).add(7,"d").local().toISOString()),display:r((0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.created).add(7,"d").local().toISOString()))},order:{value:e.order_id,display:r(`#${e.order_id} ${e.customer_name}`)},risk_level:{value:hf(e.risk_level),display:r(n)},amount:{value:e.amount,display:r(Fc(e.amount,e.currency))},customer_email:{value:e.customer_email,display:r(e.customer_email)},customer_country:{value:e.customer_country,display:r(e.customer_country)},action:{display:G().createElement(y_,{orderId:e.order_id,paymentIntentId:e.payment_intent_id,buttonIsSmall:!1,onClick:()=>{oa("payments_transactions_uncaptured_list_capture_charge_button_click",{payment_intent_id:e.payment_intent_id})}})}};return t.map((({key:e})=>a[e]||{display:null}))}));let s;const c=void 0!==n.count&&void 0!==n.total&&!1===o,d=n.count||0;return c&&(s=[{label:(0,Y.__)("authorization(s)","woocommerce-payments"),value:String(n.count)}],n.count&&n.count>0&&n.all_currencies&&1===n.all_currencies.length&&s.push({label:(0,Y.__)("total","woocommerce-payments"),value:`${Fc(n.total,n.currency)}`})),(0,W.useEffect)((()=>{oa("page_view",{path:"payments_transactions_uncaptured"})}),[]),G().createElement(Ma,null,G().createElement(Qr.TableCard,{className:"authorizations-list woocommerce-report-table has-search",title:(0,Y.__)("Uncaptured transactions","woocommerce-payments"),isLoading:a||o,rowsPerPage:parseInt(null!==(e=(0,Ay.getQuery)().per_page)&&void 0!==e?e:"",10)||25,totalRows:d,headers:t,rows:i,summary:s,query:(0,Ay.getQuery)(),onQueryChange:Ay.onQueryChange}))},f_={allow:{type:"success",message:(0,Y.__)("Succeeded","woocommerce-payments")},review:{type:"alert",message:(0,Y.__)("Needs review","woocommerce-payments")},block:{type:"danger",message:(0,Y.__)("Payment blocked","woocommerce-payments")}},__=({status:e})=>{const t=f_[e]||{},n=t.message||Mi(e),o=t.type||"light";return G().createElement(mf,{type:o},n)},g_={display:null},v_=(e,t)=>{const n=(e=>{const t=jy(e.payment_intent.id||e.order_id.toString(),"transactions"),n=(0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.created).local().toISOString()),o=e=>G().createElement(Ry,{href:t},e);return{status:{value:e.status,display:G().createElement(__,{status:"block"})},created:{value:n,display:o(n)},amount:{value:e.amount,display:o(Fc(e.amount,e.currency))},customer:{value:e.customer_name,display:o(e.customer_name)}}})(e);return t.map((({key:e})=>n[e]||g_))};const w_=e=>({name:"transactions",className:"woocommerce-search__transactions-result",options(t){return n=this,o=void 0,a=function*(){const n=t?{search_term:t}:{},o=yield Wr()({path:(0,Gr.addQueryArgs)("/wc/v3/payments/transactions/fraud-outcomes/search",Object.assign({status:e},n))});return t?o.filter((({label:e})=>-1!==e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()))):o},new((r=void 0)||(r=Promise))((function(e,t){function i(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}c((a=a.apply(n,o||[])).next())}));var n,o,r,a},isDebounced:!0,getOptionIdentifier:e=>e.label,getOptionKeywords:e=>[e.label],getOptionLabel(e,t){const n=Df(e.label,t);return W.createElement("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},null==n?void 0:n.suggestionBeforeMatch,W.createElement("strong",{className:"components-form-token-field__suggestion-match"},null==n?void 0:n.suggestionMatch),null==n?void 0:n.suggestionAfterMatch)},getOptionCompletion:e=>({key:e.label,label:e.label})});const b_=()=>{var e,t,n;const[o,r]=(0,W.useState)(!1),{createNotice:a}=(0,Js.useDispatch)("core/notices"),i=(0,Ay.getQuery)(),s=[{key:"created",label:(0,Y.__)("Date / Time","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Date / Time","woocommerce-payments"),labelInCsv:(0,Y.__)("Date / Time (UTC)","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"customer",label:(0,Y.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Customer","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"status",label:(0,Y.__)("Status","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Status","woocommerce-payments"),visible:!0,isLeftAligned:!0}].filter(Boolean),{isLoading:c,transactions:d}=((e,{paged:t,per_page:n,orderby:o,order:r,search:a},i)=>(0,Js.useSelect)((s=>{const{getFraudOutcomeTransactions:c,getFraudOutcomeTransactionsError:d,isResolving:l}=s(xi),u={paged:Number.isNaN(parseInt(null!=t?t:"",10))?"1":t,perPage:Number.isNaN(parseInt(null!=n?n:"",10))?"25":n,orderby:o||"date",order:r||"desc",search:a,additionalStatus:i};return{transactions:c(e,u),transactionsError:d(e,u),isLoading:l("getFraudOutcomeTransactions",[e,u])}}),[t,n,o,r,JSON.stringify(a)]))("block",i),{transactionsSummary:l,isLoading:u}=((e,{search:t},n)=>(0,Js.useSelect)((o=>{const{getFraudOutcomeTransactionsSummary:r,getFraudOutcomeTransactionsSummaryError:a,isResolving:i}=o(xi),s={search:t,additionalStatus:n};return{transactionsSummary:r(e,s),transactionsSummaryError:a(e,s),isLoading:i("getFraudOutcomeTransactionsSummary",[e,s])}}),[e,JSON.stringify(t)]))("block",i),m=d.map((e=>v_(e,s)));let p;const y=(0,Y.__)("Blocked transactions","woocommerce-payments"),h=void 0!==l.count&&void 0!==l.total&&!1===u,f=l.count||0;h&&(p=[{label:(0,Y.__)("transactions(s)","woocommerce-payments"),value:String(f)}],f>0&&1===(null===(e=l.currencies)||void 0===e?void 0:e.length)&&p.push({label:(0,Y.__)("blocked","woocommerce-payments"),value:`${Fc(l.total,l.currencies[0])}`})),(0,W.useEffect)((()=>{oa("page_view",{path:"payments_transactions_blocked"})}),[]);const _=(0,Ay.getQuery)().search&&(null===(t=(0,Ay.getQuery)().search)||void 0===t?void 0:t.map((e=>({key:e,label:e})))),g=(0,Y.__)("Search by order number or customer name","woocommerce-payments"),v=!!m.length;return G().createElement(Ma,null,G().createElement(Qr.TableCard,{className:"blocked-transactions-list woocommerce-report-table has-search",title:y,isLoading:c,rowsPerPage:parseInt(null!==(n=i.per_page)&&void 0!==n?n:"",10)||25,totalRows:f,headers:s,rows:m,summary:p,query:i,onQueryChange:Ay.onQueryChange,actions:[G().createElement(Qr.Search,{inlineTags:!0,key:"search",onChange:e=>{(0,Ay.updateQueryString)({search:e.length?(0,mt.uniq)(e.map((e=>e.key||e.label))):void 0})},placeholder:g,selected:_,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:w_("block")}),v&&G().createElement(Hy,{key:"download",isDisabled:c||o,onClick:()=>{return e=void 0,t=void 0,o=function*(){r(!0);const e=(0,Ay.getQuery)(),{page:t,path:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["page","path"]);try{const{data:e}=yield Wr()({path:Dd("block",Object.assign(Object.assign({},o),{additionalStatus:"review"})),method:"GET"}),t=e.map((e=>v_(e,s)));(0,Oy.downloadCSVFile)((0,Oy.generateCSVFileName)(y,o),(0,Oy.generateCSVDataFromTable)(s,t)),oa("wcpay_fraud_outcome_transactions_download",{exported_transactions:m.length,total_transactions:l.count})}catch(e){a("error",(0,Y.__)("There was a problem generating your export.","woocommerce-payments"))}r(!1)},new((n=void 0)||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}));var e,t,n,o}})]}))},E_=()=>{var e,t;const n=null!==(e=(0,Ay.getQuery)().tab)&&void 0!==e?e:null,o={"transactions-page":G().createElement(G().Fragment,null,G().createElement(n_,null)),"uncaptured-page":G().createElement(G().Fragment,null,G().createElement(h_,null)),"blocked-page":G().createElement(G().Fragment,null,G().createElement(b_,null))},{featureFlags:{isAuthAndCaptureEnabled:r}}=(0,W.useContext)(Cc),[a]=ep(),{isLoading:i}=np(),{authorizationsSummary:s}=_y({}),c=!i&&a||s.total&&s.total>0,d=[{name:"transactions-page",title:(0,Y.__)("Transactions","woocommerce-payments"),className:"transactions-list"},{name:"uncaptured-page",title:(0,Y.sprintf)((0,Y.__)("Uncaptured (%1$s)","woocommerce-payments"),null!==(t=s.count)&&void 0!==t?t:"..."),className:"authorizations-list"},{name:"blocked-page",title:(0,Y.__)("Blocked","woocommerce-payments"),className:"blocked-list"}].filter((e=>"uncaptured-page"!==e.name||r&&c));return G().createElement(Ma,{className:"wcpay-transactions-page"},G().createElement(rc,{currentPage:"transactions"}),G().createElement(p_,{activeClass:"active-tab",onSelect:e=>{(0,Ay.updateQueryString)({paged:"1",per_page:"25",order:"",orderby:"",tab:e},"/payments/transactions")},initialTabName:n||"transactions-page",tabs:d},(e=>o[e.name]||o["transactions-page"])))},$_=()=>G().createElement(Cc.Provider,{value:window.wcpaySettings},G().createElement(E_,null)),S_=e=>{var t;const n=e.readers,o=e.isLoading,r=[{key:"reader_id",label:(0,Y.__)("Reader id","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"status",label:(0,Y.__)("Status","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"count",label:(0,Y.__)("Transactions","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"fee",label:(0,Y.__)("Fee","woocommerce-payments"),visible:!0,isLeftAligned:!0}],a=n.length>0?n.map((e=>[{value:e.reader_id,display:e.reader_id},{value:e.status,display:e.status},{value:e.count,display:e.count},{value:e.fee?Dc(e.fee.amount,e.fee.currency):0,display:e.fee?Fc(e.fee.amount,e.fee.currency):0}])):[],i=!!a.length;return(0,Ta.jsxs)(Ma,{maxWidth:1032,className:"wcpay-payment-details",children:[(0,Ta.jsx)(rc,{currentPage:"payments",isDetailsView:!0}),(0,Ta.jsx)(Qr.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:(0,Y.__)("Card readers","woocommerce-payments"),isLoading:o,rowsPerPage:parseInt(null!==(t=(0,Ay.getQuery)().per_page)&&void 0!==t?t:"",10)||25,totalRows:a.length,headers:r,rows:a,actions:[i&&(0,Ta.jsx)(Hy,{isDisabled:o,onClick:()=>{const{page:e,path:t,...n}=(0,Ay.getQuery)();(0,Oy.downloadCSVFile)((0,Oy.generateCSVFileName)("Card Readers",n),(0,Oy.generateCSVDataFromTable)(r,a))}},"download")]})]})},x_=e=>{const{readers:t,chargeError:n,isLoading:o}=(r=e.chargeId,a=e.transactionId,(0,Js.useSelect)((e=>{const{getCardReaderStats:t,getCardReaderStatsError:n,isResolving:o}=e(xi);return{readers:t(r,a),chargeError:n(r),isLoading:o("getCardReaderStats",[r,a])}}),[r,a]));var r,a;return!o&&n instanceof Error?(0,Ta.jsxs)(Ma,{maxWidth:1032,className:"wcpay-payment-details",children:[(0,Ta.jsx)(rc,{currentPage:"payments",isDetailsView:!0}),(0,Ta.jsx)(So,{children:(0,Ta.jsx)(Oo,{children:(0,Y.__)("Readers details not loaded","woocommerce-payments")})})]}):(0,Ta.jsx)(S_,{readers:t,isLoading:o})},k_=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function C_(e){var t;const{renderContent:n,renderToggle:o,position:r="bottom right",className:a,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:l,onClose:u,onToggle:m}=e,p=(0,q.useRef)(),[y,h]=function(e,t){const[n,o]=(0,q.useState)(!1);return[n,e=>{o(e),t&&t(e)}]}(0,m);function f(){u&&u(),h(!1)}(0,q.useEffect)((()=>()=>{m&&m(!1)}),[]);const _={isOpen:y,onToggle:function(){h(!y)},onClose:f};return(0,q.createElement)("div",{className:Lo()("components-dropdown",a),ref:p,tabIndex:"-1"},o(_),y&&(0,q.createElement)(Er,Q({position:r,onClose:f,onFocusOutside:function(){const{ownerDocument:e}=p.current,t=e.activeElement.closest('[role="dialog"]');p.current.contains(e.activeElement)||t&&!t.contains(p.current)||f()},expandOnMobile:s,headerTitle:c,focusOnMount:d},l,{anchorRef:null!==(t=null==l?void 0:l.anchorRef)&&void 0!==t?t:p.current,className:Lo()("components-dropdown__content",l?l.className:void 0,i)}),n(_)))}function N_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=Lo()(t.className,e.className)),n}const I_=function(e){const{children:t,className:n,controls:o,icon:r=k_,label:a,popoverProps:i,toggleProps:s,menuProps:c,disableOpenOnArrowDown:d=!1,text:l,noIcons:u}=e;if((0,mt.isEmpty)(o)&&!(0,mt.isFunction)(t))return null;let m;(0,mt.isEmpty)(o)||(m=o,Array.isArray(m[0])||(m=[m]));const p=N_({className:"components-dropdown-menu__popover"},i);return(0,q.createElement)(C_,{className:Lo()("components-dropdown-menu",n),popoverProps:p,renderToggle:e=>{var t;let{isOpen:n,onToggle:o}=e;const i=N_({className:Lo()("components-dropdown-menu__toggle",{"is-opened":n})},s);return(0,q.createElement)(jr,Q({},i,{icon:r,onClick:e=>{o(e),i.onClick&&i.onClick(e)},onKeyDown:e=>{(e=>{d||n||e.keyCode!==Ga.DOWN||(e.preventDefault(),o())})(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:a,text:l,showTooltip:null===(t=null==s?void 0:s.showTooltip)||void 0===t||t}),i.children)},renderContent:e=>{const n=N_({"aria-label":a,className:Lo()("components-dropdown-menu__menu",{"no-icons":u})},c);return(0,q.createElement)(u_,Q({},n,{role:"menu"}),(0,mt.isFunction)(t)?t(e):null,(0,mt.flatMap)(m,((t,n)=>t.map(((t,o)=>(0,q.createElement)(jr,{key:[n,o].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:Lo()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===o,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))}})},T_=function e(t){const{children:n,className:o="",label:r,hideSeparator:a}=t,i=(0,jo.useInstanceId)(e);if(!q.Children.count(n))return null;const s=`components-menu-group-label-${i}`,c=Lo()(o,"components-menu-group",{"has-hidden-separator":a});return(0,q.createElement)("div",{className:c},r&&(0,q.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},r),(0,q.createElement)("div",{role:"group","aria-labelledby":r?s:null},n))},A_=(0,q.forwardRef)((function(e,t){let{children:n,info:o,className:r,icon:a,iconPosition:i="right",shortcut:s,isSelected:c,role:d="menuitem",...l}=e;return r=Lo()("components-menu-item__button",r),o&&(n=(0,q.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,q.createElement)("span",{className:"components-menu-item__item"},n),(0,q.createElement)("span",{className:"components-menu-item__info"},o))),a&&!(0,mt.isString)(a)&&(a=(0,q.cloneElement)(a,{className:Lo()("components-menu-items__item-icon",{"has-icon-right":"right"===i})})),(0,q.createElement)(jr,Q({ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?c:void 0,role:d,icon:"left"===i?a:void 0,className:r},l),(0,q.createElement)("span",{className:"components-menu-item__item"},n),(0,q.createElement)($r,{className:"components-menu-item__shortcut",shortcut:s}),a&&"right"===i&&(0,q.createElement)(Ar,{icon:a}))})),O_=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function M_(e){return!!e}const L_={warning_needs_response:{type:"warning",message:(0,Y.__)("Inquiry: Needs response","woocommerce-payments")},warning_under_review:{type:"primary",message:(0,Y.__)("Inquiry: Under review","woocommerce-payments")},warning_closed:{type:"light",message:(0,Y.__)("Inquiry: Closed","woocommerce-payments")},needs_response:{type:"warning",message:(0,Y.__)("Needs response","woocommerce-payments")},under_review:{type:"primary",message:(0,Y.__)("Under review","woocommerce-payments")},charge_refunded:{type:"light",message:(0,Y.__)("Charge refunded","woocommerce-payments")},won:{type:"success",message:(0,Y.__)("Won","woocommerce-payments")},lost:{type:"light",message:(0,Y.__)("Lost","woocommerce-payments")}},j_=Object.entries(L_).reduce(((e,[t,n])=>(e["disputed_"+t]={type:n.type,message:t.startsWith("warning_")?n.message:(0,Y.sprintf)((0,Y.__)("Disputed: %s","woocommerce-payments"),n.message)},e)),{}),D_={refunded_partial:{type:"light",message:(0,Y.__)("Partial refund","woocommerce-payments")},refunded_full:{type:"light",message:(0,Y.__)("Refunded","woocommerce-payments")},paid:{type:"success",message:(0,Y.__)("Paid","woocommerce-payments")},authorized:{type:"primary",message:(0,Y.__)("Payment authorized","woocommerce-payments")},refund_failed:{type:"alert",message:(0,Y.__)("Refund failure","woocommerce-payments")},failed:{type:"alert",message:(0,Y.__)("Payment failed","woocommerce-payments")},blocked:{type:"alert",message:(0,Y.__)("Payment blocked","woocommerce-payments")},fraud_outcome_review:{type:"warning",message:(0,Y.__)("Needs review","woocommerce-payments")},fraud_outcome_block:{type:"alert",message:(0,Y.__)("Payment blocked","woocommerce-payments")},...j_},R_=({status:e})=>{const t=D_[e]||{},n=t.message||Mi(e),o=t.type||"light";return(0,Ta.jsx)(Wy,{message:n,type:o})},P_=e=>{const{payment:t}=e,n=t?t[t.type]:null;if(!(n||t&&"link"===t.type))return(0,Ta.jsx)("span",{children:"–"});let o=t.type;n&&n.brand&&(o=n.brand),n&&n.network&&(o=n.network);const r=(e=>{var t;const n=e[e.type];switch(e.type){case"card":case"au_becs_debit":case"sepa_debit":case"card_present":case"interac_present":return(0,Ta.jsxs)(W.Fragment,{children:[" •••• ",n.last4]});case"p24":return(0,Ta.jsx)(W.Fragment,{children:null!==(t=Hf[n.bank])&&void 0!==t?t:""});case"giropay":return(0,Ta.jsx)(W.Fragment,{children:n.bank_code});case"bancontact":case"ideal":case"eps":case"sofort":return(0,Ta.jsxs)(W.Fragment,{children:[" •••• ",n.iban_last4]});default:return(0,Ta.jsx)(W.Fragment,{})}})(t);return(0,Ta.jsxs)("span",{className:"payment-method-details",children:[(0,Ta.jsx)(zs,{isVisible:!1,content:Kf[o],className:"payment-method-details__brand-tooltip",children:(0,Ta.jsx)("span",{className:`payment-method__brand payment-method__brand--${o}`,"aria-label":Kf[o]})}),r]})},F_=e=>{const{items:t}=e;return G().createElement(Qr.List,{className:"woocommerce-list--horizontal",items:t})},z_=({isLoading:e,display:t,placeholder:n,value:o,children:r})=>e?W.createElement("span",{className:t?`is-loadable-placeholder is-${t}`:"is-loadable-placeholder","aria-busy":"true"},void 0===n?r||o:n):W.createElement(W.Fragment,null,r||o),B_=e=>{const t=W.createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return W.createElement(z_,Object.assign({},e,{placeholder:t,display:"block"}))},U_=z_,V_=e=>{var t,n,o,r;const a=(null===(t=e.billing_details)||void 0===t?void 0:t.name)||(null===(n=e.order_details)||void 0===n?void 0:n.customer_name)||null;if(a){const t=(null===(o=e.billing_details)||void 0===o?void 0:o.email)||(null===(r=e.order_details)||void 0===r?void 0:r.customer_email)||null,n=Ii({page:"wc-admin",path:"/payments/transactions",search:[t?`${a} (${t})`:a]});return G().createElement(Qr.Link,{href:n},a)}return G().createElement(G().Fragment,null,"–")},Y_=({dueBy:e,days:t})=>{if(!e)return!1;const n="number"==typeof e?Ei().unix(e):Ei().utc(e,!0);if(!n.isValid())return!1;const o=Ei()().utc(),r=n.diff(o,"days",!0)<=t,a=o.isAfter(n);return r&&!a},H_=e=>kl.includes(e),W_=e=>e.startsWith("warning"),G_=(e,t)=>{const n=(e=>{const t=e.balance_transactions.find((e=>"dispute"===e.reporting_category));if(!e.balance_transactions.find((e=>"dispute_reversal"===e.reporting_category)))return t})(e);if(n)return t?Fc(n.fee,n.currency):Rc(n.fee,n.currency)},q_=({status:e,dueBy:t,prefixDisputeType:n})=>{const o=L_[e]||{};let r=o.message||Mi(e);n&&!e.startsWith("warning")&&(r=(0,Y.sprintf)((0,Y.__)("Disputed: %s","woocommerce-payments"),r));const a=H_(e)&&t&&Y_({dueBy:t,days:3});let i=o.type||"light";return a&&(i="alert"),G().createElement(Wy,{message:r,type:i})},Q_=({orderId:e,children:t,paymentIntentId:n,isDestructive:o=!0,isSmall:r=!1,onClick:a=()=>{}})=>{const{doCancelAuthorization:i,isLoading:s,isRequesting:c}=gy(n,e),[d,l]=(0,W.useState)(!1);return G().createElement(jr,{isDestructive:o,isSmall:r,onClick:()=>{a(),l(!0),i()},isBusy:s&&d,disabled:s&&d||c},t||(0,Y.__)("Cancel","woocommerce-payments"))},K_=kt((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:o=!1,isShady:r=!1,size:a="medium",...i}=Kt(e,"CardFooter"),s=qt();return{...i,className:(0,q.useMemo)((()=>s(Xn,oo,ro,lo[a],o&&io,r&&uo,"components-card__footer",t)),[t,s,o,r,a]),justify:n}}(e);return(0,q.createElement)(Sa,Q({},n,{ref:t}))}),"CardFooter"),Z_=({children:e,actions:t})=>G().createElement(K_,{className:"card-notice"},G().createElement("div",{className:"card-notice__section"},G().createElement("div",{className:"card-notice__text"},e),G().createElement("div",{className:"card-notice__button"},t))),J_=({charge:e,isLoading:t,onButtonClick:n})=>G().createElement(G().Fragment,null,G().createElement(U_,{isLoading:t,placeholder:""},G().createElement(Z_,{actions:e.refunded?G().createElement(G().Fragment,null):G().createElement(jr,{variant:"primary",isSmall:!1,onClick:n},(0,Y.__)("Refund","woocommerce-payments"))},(0,Y.__)("This transaction is not connected to order. ","woocommerce-payments"),e.refunded?(0,Y.__)("It has been refunded and is not a subject for disputes.","woocommerce-payments"):(0,Y.__)("Investigate this purchase and refund the transaction as needed.","woocommerce-payments")))),X_=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),eg=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),tg=(0,q.createElement)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,q.createElement)(Ro.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})),ng=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),og=({dispute:e,isUrgent:t})=>{var n,o;const r=null!==(o=null===(n=$l[e.reason])||void 0===n?void 0:n.claim)&&void 0!==o?o:(0,Y.__)("The cardholder claims this is an unrecognized charge.","woocommerce-payments");let a=(0,Y.__)("<strong>%s</strong> Challenge the dispute if you believe the claim is invalid, or accept to forfeit the funds and pay the dispute fee. Non-response will result in an automatic loss. <a>Learn more about responding to disputes</a>","woocommerce-payments"),i="https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#responding";return W_(e.status)&&(a=(0,Y.__)("<strong>%s</strong> You can challenge their claim if you believe it’s invalid. Not responding will result in an automatic loss. <a>Learn more about payment inquiries</a>","woocommerce-payments"),i="https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"),G().createElement(Ia,{icon:!0,status:t?"error":"warning",className:"dispute-notice",isDismissible:!1},(0,q.createInterpolateElement)((0,Y.sprintf)(a,r),{a:G().createElement(tc,{href:i}),strong:G().createElement("strong",null)}))},rg=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));const ag=({evidence:e})=>G().createElement(jr,{variant:"secondary",onClick:()=>{const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([e],{type:"text/plain"})),t.download="evidence.txt",t.click()},isSmall:!0,icon:G().createElement(Us,{icon:rg})},(0,Y.__)("Evidence.txt","woocommerce-payments")),ig=({fileId:e})=>{const{file:t,isLoading:n}=(e=>(0,Js.useSelect)((t=>{const n=t(xi),{getFile:o,getFileError:r,isResolving:a,hasFinishedResolution:i}=n;return{file:o(e)||{},error:r(e),isLoading:a("getFile",[e])||!i("getFile",[e])}}),[e]))(e),{createNotice:o}=(0,Js.useDispatch)("core/notices"),[r,a]=G().useState(!1);return G().createElement(U_,{isLoading:n,placeholder:(0,Y.__)("Loading","woocommerce-payments")},t&&t.id?G().createElement(jr,{variant:"secondary",isBusy:r,disabled:r,isSmall:!0,icon:G().createElement(Us,{icon:rg}),onClick:()=>{return e=void 0,n=void 0,s=function*(){if(t&&t.id&&!r){try{a(!0);const e=yield Wr()({path:`${Si}/file/${encodeURI(t.id)}/content`,method:"GET"}),n=document.createElement("a");n.href="data:application/octect-stream;base64,"+e.file_content,n.download=t.filename,n.click()}catch(e){o("error",(0,Y.__)("Error downloading file","woocommerce-payments"))}a(!1)}},new((i=void 0)||(i=Promise))((function(t,o){function r(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,a)}c((s=s.apply(e,n||[])).next())}));var e,n,i,s}},(null==t?void 0:t.title)||t.filename):G().createElement(G().Fragment,null))},sg=({issuerEvidence:e})=>(null==e?void 0:e.some((e=>e.file_evidence.length||e.text_evidence)))?G().createElement(Yr,{className:"dispute-evidence",title:(0,Y.__)("Issuer evidence","woocommerce"),initialOpen:!1},G().createElement("ul",{className:"dispute-evidence__list"},e.map(((e,t)=>G().createElement("li",{className:"dispute-evidence__list-item",key:`evidence_${t}`},e.text_evidence&&G().createElement(ag,{evidence:e.text_evidence}),e.file_evidence.map((e=>G().createElement(ig,{fileId:e,key:e})))))))):G().createElement(G().Fragment,null),cg=({children:e=[]})=>W.createElement(W.Fragment,null,e.map(((e,t)=>W.createElement("p",{key:t},e)))),dg=({dueBy:e,showRemainingDays:t=!0})=>{const n=Math.floor(Ei().unix(e).diff(Ei()(),"days",!0)),o=(0,$i.dateI18n)("M j, Y, g:ia",Ei()(1e3*e).toISOString());return G().createElement("span",{className:"dispute-steps__steps__response-date"},o,t&&G().createElement("span",{className:Lo()({"dispute-steps__steps__response-date--urgent":n<3,"dispute-steps__steps__response-date--warning":n<7&&n>2})},n>0&&(0,Y.sprintf)((0,Y._n)("(%d day left to respond)","(%d days left to respond)",n,"woocommerce-payments"),n),0===n&&(0,Y.__)("(Last day today)","woocommerce-payments"),n<0&&(0,Y.__)("(Past due)","woocommerce-payments")))},lg=({dispute:e})=>{var t,n;const o=Mi((null===(t=$l[e.reason])||void 0===t?void 0:t.display)||e.reason),r=(null===(n=$l[e.reason])||void 0===n?void 0:n.summary)||[],a=[{title:(0,Y.__)("Dispute Amount","woocommerce-payments"),content:Fc(e.amount,e.currency)},{title:(0,Y.__)("Disputed On","woocommerce-payments"),content:e.created?(0,$i.dateI18n)("M j, Y, g:ia",Ei()(1e3*e.created).toISOString()):"–"},{title:(0,Y.__)("Reason","woocommerce-payments"),content:G().createElement(G().Fragment,null,o,r.length>0&&G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Learn more","woocommerce-payments"),content:G().createElement("div",{className:"dispute-reason-tooltip"},G().createElement("p",null,o),G().createElement(cg,null,r),G().createElement("p",null,G().createElement("a",{href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/",target:"_blank",rel:"noopener noreferrer"},(0,Y.__)("Learn more","woocommerce-payments"))))}))},{title:(0,Y.__)("Respond By","woocommerce-payments"),content:G().createElement(dg,{dueBy:e.evidence_details.due_by})}];return G().createElement("div",{className:"dispute-summary-row"},G().createElement(F_,{items:a}))},ug=({dispute:e,customer:t,chargeCreated:n})=>{let o;if(null==t?void 0:t.email){const r=(0,$i.dateI18n)("Y-m-d",Ei()(1e3*n).toISOString()),a=(0,$i.dateI18n)("Y-m-d",Ei()(1e3*e.created).toISOString()),i=(0,Y.sprintf)((0,Y.__)("Problem with your purchase from %1$s on %2$s?","woocommerce-payments"),wcpaySettings.storeName,r),s=(null==t?void 0:t.name)||"",c=(0,Y.sprintf)((0,Y.__)("Hello %1$s,\n\nWe noticed that on %2$s, you disputed a %3$s charge on %4$s. We wanted to contact you to make sure everything was all right with your purchase and see if there's anything else we can do to resolve any problems you might have had.\n\nAlternatively, if the dispute was a mistake, you can easily withdraw it by calling the number on the back of your card. Thank you so much - we appreciate your business and look forward to working with you.","woocommerce-payments"),s,a,Fc(e.amount,e.currency),r);o=`mailto:${t.email}?subject=${encodeURIComponent(i)}&body=${encodeURIComponent(c)}`}return G().createElement("div",{className:"dispute-steps"},G().createElement("div",{className:"dispute-steps__header"},(0,Y.__)("Steps to resolve:","woocommerce-payments")),G().createElement("ol",{className:"dispute-steps__steps"},G().createElement("li",null,(null==t?void 0:t.email)?(0,q.createInterpolateElement)((0,Y.__)("<a>Email the customer</a> to identify the issue and work towards a resolution where possible.","woocommerce-payments"),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:o})}):(0,Y.__)("Email the customer to identify the issue and work towards a resolution where possible.","woocommerce-payments")),G().createElement("li",null,(0,q.createInterpolateElement)((0,Y.__)("Assist the customer <a>in withdrawing their dispute</a> if they agree to do so.","woocommerce-payments"),{a:G().createElement(tc,{href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#withdrawals"})})),G().createElement("li",null,(0,q.createInterpolateElement)((0,Y.__)("Challenge <challengeIcon/> or accept <acceptIcon/> the dispute by <dueByDate/>","woocommerce-payments"),{challengeIcon:G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Challenge the dispute tooltip","woocommerce-payments"),content:(0,Y.__)("Challenge the dispute if you consider the claim invalid. You'll need to provide evidence to back your claim. Keep in mind that challenging doesn't ensure a resolution in your favor.","woocommerce-payments")}),acceptIcon:G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Accept the dispute tooltip","woocommerce-payments"),content:(0,Y.sprintf)((0,Y.__)("Accepting this dispute will automatically close it. The disputed amount and the %s dispute fee will not be returned to you.","woocommerce-payments"),G_(e,!0)||"-")}),dueByDate:G().createElement(dg,{dueBy:e.evidence_details.due_by,showRemainingDays:!1})}))))},mg=({dispute:e,customer:t,chargeCreated:n,isDefendable:o})=>{let r;if(null==t?void 0:t.email){const o=(0,$i.dateI18n)("Y-m-d",Ei()(1e3*n).toISOString()),a=(0,$i.dateI18n)("Y-m-d",Ei()(1e3*e.created).toISOString()),i=(0,Y.sprintf)((0,Y.__)("Problem with your purchase from %1$s on %2$s?","woocommerce-payments"),wcpaySettings.storeName,o),s=(null==t?void 0:t.name)||"",c=(0,Y.sprintf)((0,Y.__)("Hello %1$s,\n\nWe noticed that on %2$s, you raised a question with your payment provider about a %3$s charge made on %4$s. We wanted to reach out to ensure everything is all right with your purchase and to see if there’s anything we can do to resolve any problems you might have had.\n\nAlternatively, if this was a mistake, please contact your payment provider to resolve it. Thank you so much - we appreciate your business and look forward to working with you.","woocommerce-payments"),s,a,Fc(e.amount,e.currency),o);r=`mailto:${t.email}?subject=${encodeURIComponent(i)}&body=${encodeURIComponent(c)}`}const a=[];return a.push(G().createElement("li",{key:0},(null==t?void 0:t.email)?(0,q.createInterpolateElement)((0,Y.__)("<a>Email the customer</a> to identify the issue and work towards a resolution where possible.","woocommerce-payments"),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:r})}):(0,Y.__)("Email the customer to identify the issue and work towards a resolution where possible.","woocommerce-payments"))),o?a.push(G().createElement("li",{key:1},(0,q.createInterpolateElement)((0,Y.__)("Submit evidence <submitEvidenceIcon/> or issue a refund by <dueByDate/>.","woocommerce-payments"),{submitEvidenceIcon:G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Submit evidence tooltip","woocommerce-payments"),content:(0,q.createInterpolateElement)((0,Y.__)("To submit evidence, provide documentation that supports your case. Keep in mind that submitting evidence doesn't ensure a favorable outcome. If the cardholder agrees to withdraw the inquiry, you'll still need to officially submit your evidence to prevent bank escalation. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:G().createElement(tc,{href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"})})}),dueByDate:G().createElement(dg,{dueBy:e.evidence_details.due_by})}))):a.push(G().createElement("li",{key:1},(0,q.createInterpolateElement)((0,Y.__)("Issue a refund by <dueByDate/>.","woocommerce-payments"),{dueByDate:G().createElement(dg,{dueBy:e.evidence_details.due_by})}))),G().createElement("div",{className:"dispute-steps"},G().createElement("div",{className:"dispute-steps__header"},(0,Y.__)("Steps to resolve:","woocommerce-payments")),G().createElement("ol",{className:"dispute-steps__steps"},a))},pg=({dispute:e,customer:t,chargeCreated:n,orderUrl:o,paymentMethod:r})=>{var a,i,s;const{doAccept:c,isLoading:d}=(e=>{const{isLoading:t}=(0,Js.useSelect)((t=>{const{isResolving:n}=t(xi);return{isLoading:n("getDispute",[e.id])}}),[e.id]),{acceptDispute:n}=(0,Js.useDispatch)(xi);return{doAccept:()=>n(e),isLoading:t}})(e),[l,u]=(0,W.useState)(!1),m=Ei()(),p=Ei().unix(null!==(i=null===(a=e.evidence_details)||void 0===a?void 0:a.due_by)&&void 0!==i?i:0),y=Math.floor(p.diff(m,"days",!0)),h=null===(s=e.evidence_details)||void 0===s?void 0:s.has_evidence,{createErrorNotice:f}=(0,Js.useDispatch)("core/notices"),{featureFlags:{isDisputeIssuerEvidenceEnabled:_}}=(0,W.useContext)(Cc),g=()=>{d||u(!1)},v=function({dispute:e,isDisputeAcceptRequestPending:t}){var n;return W_(e.status)?{acceptButtonLabel:(0,Y.__)("Issue refund","woocommerce-payments"),acceptButtonTracksEvent:"wcpay_dispute_inquiry_refund_modal_view",modalTitle:(0,Y.__)("Issue a refund?","woocommerce-payments"),modalLines:[{icon:G().createElement(Ar,{icon:X_,size:24}),description:(0,Y.__)("Issuing a refund will close the inquiry, returning the amount in question back to the cardholder. No additional fees apply.","woocommerce-payments")},{icon:G().createElement(Ar,{icon:eg,size:24}),description:(0,Y.__)("You will be taken to the order, where you must complete the refund process manually.","woocommerce-payments")}],modalButtonLabel:(0,Y.__)("View order to issue refund","woocommerce-payments"),modalButtonTracksEvent:"wcpay_dispute_inquiry_refund_click"}:{acceptButtonLabel:(0,Y.__)("Accept dispute","woocommerce-payments"),acceptButtonTracksEvent:"wcpay_dispute_accept_modal_view",modalTitle:(0,Y.__)("Accept the dispute?","woocommerce-payments"),modalLines:[{icon:G().createElement(Ar,{icon:X_,size:24}),description:(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Accepting the dispute marks it as <em>Lost</em>. The disputed amount and the %s dispute fee will not be returned to you.","woocommerce-payments"),null!==(n=G_(e,!0))&&void 0!==n?n:"-"),{em:G().createElement("em",null)})},{icon:G().createElement(Ar,{icon:tg,size:24}),description:(0,Y.__)("This action is final and cannot be undone.","woocommerce-payments")}],modalButtonLabel:t?(0,Y.__)("Accepting…","woocommerce-payments"):(0,Y.__)("Accept dispute","woocommerce-payments"),modalButtonTracksEvent:"wcpay_dispute_accept_click"}}({dispute:e,isDisputeAcceptRequestPending:d}),w=!("klarna"===r&&W_(e.status)),b=W_(e.status)?(0,Y.__)("Submit evidence","woocommerce-payments"):(0,Y.__)("Challenge dispute","woocommerce-payments");return G().createElement("div",{className:"transaction-details-dispute-details-wrapper"},G().createElement(So,null,G().createElement(Oo,{className:"transaction-details-dispute-details-body"},G().createElement(og,{dispute:e,isUrgent:y<=2}),h&&G().createElement(Ia,{icon:ng,isDismissible:!1},(0,Y.__)("You initiated a challenge to this dispute. Click 'Continue with challenge' to proceed with your draft response.","woocommerce-payments")),G().createElement(lg,{dispute:e}),W_(e.status)?G().createElement(mg,{dispute:e,customer:t,chargeCreated:n,isDefendable:w}):G().createElement(ug,{dispute:e,customer:t,chargeCreated:n}),_&&G().createElement(sg,{issuerEvidence:e.issuer_evidence}),G().createElement("div",{className:"transaction-details-dispute-details-body__actions"},w&&G().createElement(Qr.Link,{href:d?"":Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"primary","data-testid":"challenge-dispute-button",disabled:d,onClick:()=>{oa("wcpay_dispute_challenge_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},h?(0,Y.__)("Continue with challenge","woocommerce-payments"):b)),G().createElement(jr,{variant:w?"tertiary":"primary",disabled:d,"data-testid":"open-accept-dispute-modal-button",onClick:()=>{oa(v.acceptButtonTracksEvent,{dispute_status:e.status,on_page:"transaction_details"}),u(!0)}},v.acceptButtonLabel),l&&G().createElement(Xa,{title:v.modalTitle,onRequestClose:g,className:"transaction-details-dispute-accept-modal"},G().createElement("p",null,G().createElement("strong",null,(0,Y.__)("Before proceeding, please take note of the following:","woocommerce-payments"))),v.modalLines.map(((e,t)=>G().createElement(Sa,{justify:"start",key:t},G().createElement(ka,{className:"transaction-details-dispute-accept-modal__icon"},e.icon),G().createElement(ka,null,e.description)))),G().createElement(Sa,{className:"transaction-details-dispute-accept-modal__actions",justify:"end"},G().createElement(jr,{variant:"tertiary",disabled:d,onClick:g},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{variant:"primary",isBusy:d,disabled:d,"data-testid":"accept-dispute-button",onClick:()=>{oa(v.modalButtonTracksEvent,{dispute_status:e.status,on_page:"transaction_details"}),W_(e.status)?o?window.location.href=o:f((0,Y.__)("Unable to view order. Order not found.","woocommerce-payments")):c()}},v.modalButtonLabel)))))))},yg=({dispute:e})=>{const t=e.metadata.__evidence_submitted_at?(0,$i.dateI18n)("M j, Y",Ei().unix(parseInt(e.metadata.__evidence_submitted_at,10)).toISOString()):"-";return G().createElement(K_,{className:"transaction-details-dispute-footer transaction-details-dispute-footer--primary"},G().createElement(Sa,{justify:"space-between"},G().createElement(ka,null,(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("You submitted evidence for this dispute on %s. The cardholder’s bank is reviewing the case, which can take 60 days or more. You will be alerted when they make their final decision. <a>Learn more about the dispute process</a>.","woocommerce-payments"),t),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/"})})),G().createElement(ka,{className:"transaction-details-dispute-footer__actions"},G().createElement(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_view_submitted_evidence_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},(0,Y.__)("View submitted evidence","woocommerce-payments"))))))},hg=({dispute:e})=>{const t=e.metadata.__dispute_closed_at?(0,$i.dateI18n)("M j, Y",Ei().unix(parseInt(e.metadata.__dispute_closed_at,10)).toISOString()):"-";return G().createElement(K_,{className:"transaction-details-dispute-footer"},G().createElement(Sa,{justify:"space-between"},G().createElement(ka,null,(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Good news! You won this dispute on %s. The disputed amount and the dispute fee have been credited back to your account. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),t),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/"})})),G().createElement(ka,{className:"transaction-details-dispute-footer__actions"},G().createElement(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_view_submitted_evidence_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},(0,Y.__)("View dispute details","woocommerce-payments"))))))},fg=({dispute:e})=>{var t;const n=!!e.metadata.__evidence_submitted_at,o="1"===e.metadata.__closed_by_merchant,r=null!==(t=G_(e,!0))&&void 0!==t?t:"-",a=e.metadata.__dispute_closed_at?(0,$i.dateI18n)("M j, Y",Ei().unix(parseInt(e.metadata.__dispute_closed_at,10)).toISOString()):"-";let i=(0,Y.sprintf)((0,Y.__)("This dispute was lost on %1$s due to non-response.","woocommerce-payments"),a);return o&&(i=(0,Y.sprintf)((0,Y.__)("This dispute was accepted and lost on %1$s.","woocommerce-payments"),a)),n&&(i=(0,Y.sprintf)((0,Y.__)("This dispute was lost on %1$s.","woocommerce-payments"),a)),G().createElement(K_,{className:"transaction-details-dispute-footer"},G().createElement(Sa,{justify:"space-between"},G().createElement(ka,null,i," ",(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("The %1$s fee has been deducted from your account, and the disputed amount returned to the cardholder. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),r),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/"})})),n&&G().createElement(ka,{className:"transaction-details-dispute-footer__actions"},G().createElement(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_view_submitted_evidence_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},(0,Y.__)("View dispute details","woocommerce-payments"))))))},_g=({dispute:e})=>{const t=e.metadata.__evidence_submitted_at?(0,$i.dateI18n)("M j, Y",Ei().unix(parseInt(e.metadata.__evidence_submitted_at,10)).toISOString()):"-";return G().createElement(K_,{className:"transaction-details-dispute-footer transaction-details-dispute-footer--primary"},G().createElement(Sa,{justify:"space-between"},G().createElement(ka,null,(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("You submitted evidence for this inquiry on %s. The cardholder’s bank is reviewing the case, which can take 120 days or more. You will be alerted when they make their final decision. <a>Learn more</a>.","woocommerce-payments"),t),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"})})),G().createElement(ka,{className:"transaction-details-dispute-footer__actions"},G().createElement(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_view_submitted_evidence_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},(0,Y.__)("View submitted evidence","woocommerce-payments"))))))},gg=({dispute:e})=>{const t=!!e.metadata.__evidence_submitted_at,n=e.metadata.__dispute_closed_at?(0,$i.dateI18n)("M j, Y",Ei().unix(parseInt(e.metadata.__dispute_closed_at,10)).toISOString()):"-";return G().createElement(K_,{className:"transaction-details-dispute-footer"},G().createElement(Sa,{justify:"space-between"},G().createElement(ka,null,(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("This inquiry was closed on %s. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),n),{a:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/"})})),t&&G().createElement(ka,{className:"transaction-details-dispute-footer__actions"},G().createElement(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})},G().createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_view_submitted_evidence_clicked",{dispute_status:e.status,on_page:"transaction_details"})}},(0,Y.__)("View submitted evidence","woocommerce-payments"))))))},vg=({dispute:e})=>"under_review"===e.status?G().createElement(yg,{dispute:e}):"won"===e.status?G().createElement(hg,{dispute:e}):"lost"===e.status?G().createElement(fg,{dispute:e}):"warning_under_review"===e.status?G().createElement(_g,{dispute:e}):"warning_closed"===e.status?G().createElement(gg,{dispute:e}):null;function wg(e){let{label:t,className:n,selected:o,help:r,onChange:a,hideLabelFromVision:i,options:s=[],...c}=e;const d=`inspector-radio-control-${(0,jo.useInstanceId)(wg)}`,l=e=>a(e.target.value);return!(0,mt.isEmpty)(s)&&(0,q.createElement)(ah,{label:t,id:d,hideLabelFromVision:i,help:r,className:Lo()(n,"components-radio-control")},s.map(((e,t)=>(0,q.createElement)("div",{key:`${d}-${t}`,className:"components-radio-control__option"},(0,q.createElement)("input",Q({id:`${d}-${t}`,className:"components-radio-control__input",type:"radio",name:d,value:e.value,onChange:l,checked:e.value===o,"aria-describedby":r?`${d}__help`:void 0},c)),(0,q.createElement)("label",{htmlFor:`${d}-${t}`},e.label)))))}const bg=({charge:e,formattedAmount:t,onModalClose:n})=>{const[o,r]=(0,q.useState)(null),[a,i]=(0,q.useState)(!1),{doRefund:s}=qp(e.payment_intent),c=()=>{n()};return G().createElement(ef,{className:"missing-order-notice-modal",title:(0,Y.__)("Refund transaction","woocommerce-payments"),actions:G().createElement(G().Fragment,null,G().createElement(jr,{onClick:c,variant:"secondary"},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{onClick:()=>{return t=void 0,n=void 0,a=function*(){oa("payments_transactions_details_refund_full",{payment_intent_id:e.payment_intent}),i(!0),yield s(e,"other"===o?null:o),i(!1),c()},new((r=void 0)||(r=Promise))((function(e,o){function i(e){try{c(a.next(e))}catch(e){o(e)}}function s(e){try{c(a.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}c((a=a.apply(t,n||[])).next())}));var t,n,r,a},isPrimary:!0,isBusy:a,disabled:a},(0,Y.__)("Refund transaction","woocommerce-payments"))),onRequestClose:c},G().createElement("p",null,Ua({mixedString:(0,Y.sprintf)((0,Y.__)("This will issue a full refund of {{strong}}%s{{/strong}} to the customer.","woocommerce-payments"),t),components:{strong:G().createElement("strong",null)}})),G().createElement(wg,{className:"missing-order-notice-modal__reason",label:(0,Y.__)("Select a reason (Optional)","woocommerce-payments"),selected:o,options:[{label:(0,Y.__)("Duplicate order","woocommerce-payments"),value:"duplicate"},{label:(0,Y.__)("Fraudulent","woocommerce-payments"),value:"fraudulent"},{label:(0,Y.__)("Requested by customer","woocommerce-payments"),value:"requested_by_customer"},{label:(0,Y.__)("Other","woocommerce-payments"),value:"other"}],onChange:e=>r(e)}))},Eg={amount:0,currency:"USD",net:0,fee:0,refunded:null},$g=({charge:e={},metadata:t={}})=>{var n,o,r,a,i,s;return[{title:(0,Y.__)("Date","woocommerce-payments"),content:e.created?(0,$i.dateI18n)("M j, Y, g:ia",Ei()(1e3*e.created).toISOString()):"–"},{title:(0,Y.__)("Channel","woocommerce-payments"),content:G().createElement("span",null,(s=null==t?void 0:t.reader_model,"COTS_DEVICE"===s?(i=null==t?void 0:t.platform,"ios"===i?(0,Y.__)("Tap to Pay on iPhone","woocommerce-payments"):"android"===i?(0,Y.__)("Tap to Pay on Android","woocommerce-payments"):(0,Y.__)("Tap to Pay","woocommerce-payments")):Tf(null===(n=e.payment_method_details)||void 0===n?void 0:n.type)))},{title:(0,Y.__)("Customer","woocommerce-payments"),content:G().createElement(V_,{billing_details:e.billing_details,order_details:e.order})},{title:(0,Y.__)("Order","woocommerce-payments"),content:G().createElement(lf,{order:e.order})},wcpaySettings.isSubscriptionsActive&&{title:(0,Y.__)("Subscription","woocommerce-payments"),content:(null===(r=null===(o=e.order)||void 0===o?void 0:o.subscriptions)||void 0===r?void 0:r.length)?e.order.subscriptions.map(((e,t,n)=>[G().createElement(lf,{key:t,order:e}),t!==n.length-1&&", "])):G().createElement(lf,{order:null})},{title:(0,Y.__)("Payment method","woocommerce-payments"),content:G().createElement(P_,{payment:e.payment_method_details})},{title:(0,Y.__)("Risk evaluation","woocommerce-payments"),content:(null===(a=e.outcome)||void 0===a?void 0:a.risk_level)?uf[e.outcome.risk_level]:"–"}].filter(M_)},Sg=({charge:e={},metadata:t={},isLoading:n,paymentIntent:o})=>{var r,a,i,s,c,d,l;const u=e.amount?(e=>{var t,n,o;const r=e.balance_transaction?{currency:e.balance_transaction.currency,amount:e.balance_transaction.amount,fee:e.balance_transaction.fee,refunded:0,net:0}:{currency:e.currency,amount:e.amount,fee:e.application_fee_amount,refunded:0,net:0};return xf(e)&&(r.refunded-=(0,mt.sumBy)(null===(t=e.refunds)||void 0===t?void 0:t.data,"balance_transaction.amount")),Sf(e)&&void 0!==e.dispute&&(r.fee+=(0,mt.sumBy)(null===(n=e.dispute)||void 0===n?void 0:n.balance_transactions,"fee"),r.refunded-=(0,mt.sumBy)(null===(o=e.dispute)||void 0===o?void 0:o.balance_transactions,"amount")),r.net=r.amount-r.fee-r.refunded,r})(e):Eg,m=e.currency&&u.currency!==e.currency,{featureFlags:{isAuthAndCaptureEnabled:p}}=(0,W.useContext)(Cc),y=!e.captured&&"failed"!==e.status&&0===e.amount_refunded&&p,{authorization:h}=gy(e.payment_intent,null===(r=e.order)||void 0===r?void 0:r.number,y),f=Nf(e,o),_=e.dispute&&G_(e.dispute),g=!e.dispute||(v=e.dispute.status,W_(v)||"won"===v);var v;const w=e.order&&e.order.number,b=e.amount_refunded>0,E=e.captured&&!e.refunded&&g,$=e.balance_transaction?{fee:e.balance_transaction.fee,currency:e.balance_transaction.currency}:{fee:e.application_fee_amount,currency:e.currency};Ei().updateLocale("en",{relativeTime:{s:(0,Y.__)("a second","woocommerce-payments"),ss:(0,Y.__)("%d seconds","woocommerce-payments"),m:(0,Y.__)("a minute","woocommerce-payments"),mm:(0,Y.__)("%d minutes","woocommerce-payments"),h:(0,Y.__)("an hour","woocommerce-payments"),hh:(0,Y.__)("%d hours","woocommerce-payments"),d:(0,Y.__)("a day","woocommerce-payments"),dd:(0,Y.__)("%d days","woocommerce-payments")}});const S=Rc(e.amount,e.currency,u.currency),[x,k]=(0,W.useState)(!1);return G().createElement(So,null,G().createElement(Oo,null,G().createElement(Sa,{direction:"row",align:"start"},G().createElement("div",{className:"payment-details-summary"},G().createElement("div",{className:"payment-details-summary__section"},G().createElement("p",{className:"payment-details-summary__amount"},G().createElement(U_,{isLoading:n,placeholder:(0,Y.__)("Amount placeholder","woocommerce-payments")},S,G().createElement("span",{className:"payment-details-summary__amount-currency"},e.currency||"USD"),e.dispute?G().createElement(q_,{status:e.dispute.status,dueBy:null===(a=e.dispute.evidence_details)||void 0===a?void 0:a.due_by,prefixDisputeType:!0}):G().createElement(R_,{status:If(e,o)}))),G().createElement("div",{className:"payment-details-summary__breakdown"},m?G().createElement("p",{className:"payment-details-summary__breakdown__settlement-currency"},Fc(u.amount,u.currency)):null,u.refunded?G().createElement("p",null,`${_?(0,Y.__)("Deducted","woocommerce-payments"):(0,Y.__)("Refunded","woocommerce-payments")}: `,Fc(-u.refunded,u.currency)):"",G().createElement("p",null,G().createElement(U_,{isLoading:n,placeholder:(0,Y.__)("Fee amount","woocommerce-payments")},`${(0,Y.__)("Fees","woocommerce-payments")}: `,Rc(-u.fee,u.currency),_&&G().createElement(Bs,{className:"payment-details-summary__breakdown__fee-tooltip",buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Fee breakdown","woocommerce-payments"),content:G().createElement(G().Fragment,null,G().createElement(Sa,null,G().createElement("label",null,(0,Y.__)("Transaction fee","woocommerce-payments")),G().createElement("span",{"aria-label":(0,Y.__)("Transaction fee","woocommerce-payments")},Rc($.fee,$.currency))),G().createElement(Sa,null,G().createElement("label",null,(0,Y.__)("Dispute fee","woocommerce-payments")),G().createElement("span",{"aria-label":(0,Y.__)("Dispute fee","woocommerce-payments")},_)),G().createElement(Sa,null,G().createElement("label",null,(0,Y.__)("Total fees","woocommerce-payments")),G().createElement("span",{"aria-label":(0,Y.__)("Total fees","woocommerce-payments")},Rc(u.fee,u.currency))))}))),e.paydown?G().createElement("p",null,`${(0,Y.__)("Loan repayment","woocommerce-payments")}: `,Fc(e.paydown.amount,u.currency)):"",G().createElement("p",null,G().createElement(U_,{isLoading:n,placeholder:(0,Y.__)("Net amount","woocommerce-payments")},`${(0,Y.__)("Net","woocommerce-payments")}: `,Fc(e.paydown?u.net-Math.abs(e.paydown.amount):u.net,u.currency))))),G().createElement("div",{className:"payment-details-summary__section"},!n&&f&&G().createElement("div",{className:"payment-details-summary__fraud-outcome-action"},G().createElement(Q_,{orderId:(null===(i=e.order)||void 0===i?void 0:i.number)||0,paymentIntentId:e.payment_intent||"",onClick:()=>{oa("wcpay_fraud_protection_transaction_reviewed_merchant_blocked",{payment_intent_id:e.payment_intent}),oa("payments_transactions_details_cancel_charge_button_click",{payment_intent_id:e.payment_intent})}},(0,Y.__)("Block transaction")),G().createElement(y_,{buttonIsPrimary:!0,orderId:(null===(s=e.order)||void 0===s?void 0:s.number)||0,paymentIntentId:e.payment_intent||"",buttonIsSmall:!1,onClick:()=>{oa("wcpay_fraud_protection_transaction_reviewed_merchant_approved",{payment_intent_id:e.payment_intent}),oa("payments_transactions_details_capture_charge_button_click",{payment_intent_id:e.payment_intent})}},(0,Y.__)("Approve Transaction","woocommerce-payments"))),G().createElement("div",{className:"payment-details-summary__id"},G().createElement(U_,{isLoading:n,placeholder:"Payment ID: pi_xxxxxxxxxxxxxxxxxxxxxxxx"},e.payment_intent&&G().createElement("div",{className:"payment-details-summary__id_wrapper"},G().createElement("span",{className:"payment-details-summary__id_label"},`${(0,Y.__)("Payment ID","woocommerce-payments")}: `),G().createElement("span",{className:"payment-details-summary__id_value"},e.payment_intent)),e.id&&G().createElement("div",{className:"payment-details-summary__id_wrapper"},G().createElement("span",{className:"payment-details-summary__id_label"},`${(0,Y.__)("Charge ID","woocommerce-payments")}: `),G().createElement("span",{className:"payment-details-summary__id_value"},e.id)))))),G().createElement("div",{className:"payment-details__refund-controls"},E&&G().createElement(U_,{isLoading:n,placeholder:O_},G().createElement(I_,{icon:O_,label:(0,Y.__)("Transaction actions","woocommerce-payments"),popoverProps:{position:"bottom left"},className:"refund-controls__dropdown-menu"},(({onClose:t})=>G().createElement(T_,null,!b&&G().createElement(A_,{onClick:()=>{k(!0),oa("payments_transactions_details_refund_modal_open",{payment_intent_id:e.payment_intent}),t()}},(0,Y.__)("Refund in full","woocommerce-payments")),w&&G().createElement(A_,{onClick:()=>{var t,n;oa("payments_transactions_details_partial_refund",{payment_intent_id:e.payment_intent,order_id:null===(t=e.order)||void 0===t?void 0:t.number}),window.location=null===(n=e.order)||void 0===n?void 0:n.url}},(0,Y.__)("Partial refund","woocommerce-payments"))))))))),G().createElement(hs,null),G().createElement(Oo,null,G().createElement(B_,{isLoading:n,numLines:4},G().createElement(F_,{items:$g({charge:e,metadata:t})}))),e.dispute&&G().createElement(Oa,null,H_(e.dispute.status)?G().createElement(pg,{dispute:e.dispute,customer:e.billing_details,chargeCreated:e.created,orderUrl:null===(c=e.order)||void 0===c?void 0:c.url,paymentMethod:null===(d=e.payment_method_details)||void 0===d?void 0:d.type}):G().createElement(vg,{dispute:e.dispute})),x&&G().createElement(bg,{charge:e,formattedAmount:S,onModalClose:()=>{k(!1),oa("payments_transactions_details_refund_modal_close",{payment_intent_id:e.payment_intent})}}),!pt().isEmpty(e)&&!e.order&&!n&&G().createElement(J_,{charge:e,isLoading:n,onButtonClick:()=>k(!0)}),p&&h&&!h.captured&&G().createElement(U_,{isLoading:n,placeholder:""},G().createElement(Z_,{actions:f?G().createElement(G().Fragment,null):G().createElement(y_,{orderId:(null===(l=e.order)||void 0===l?void 0:l.number)||0,paymentIntentId:e.payment_intent||"",buttonIsPrimary:!0,buttonIsSmall:!1,onClick:()=>{oa("payments_transactions_details_capture_charge_button_click",{payment_intent_id:e.payment_intent})}})},(0,q.createInterpolateElement)((0,Y.__)("You must <a>capture</a> this charge within the next","woocommerce-payments"),{a:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/settings-guide/authorize-and-capture/#capturing-authorized-orders",target:"_blank",rel:"noreferer"})})," ",G().createElement("abbr",{title:(0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(h.created).add(7,"days"),"UTC")},G().createElement("b",null,Ei().utc(h.created).add(7,"days").fromNow(!0))),f&&`. ${(0,Y.__)("Approving this transaction will capture the charge.","woocommerce-payments")}`)))},xg=e=>G().createElement(Cc.Provider,{value:window.wcpaySettings},G().createElement(Sg,Object.assign({},e)));var kg=n(1064),Cg=n(2294),Ng=n(9774);const Ig=e=>Number((100*e).toFixed(3)),Tg=e=>(0,Ta.jsx)(Ro.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",...e,children:(0,Ta.jsx)(Ro.Path,{d:["M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 ","6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"].join(" ")})}),Ag=e=>G().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e),G().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0.175781L15.75 3.24396V7.81781C15.75 11.7168 13.2458 15.4084 9.7147 16.573C9.25069 16.726 8.74931 16.726 8.2853 16.573C4.75416 15.4084 2.25 11.7168 2.25 7.81781V3.24396L9 0.175781ZM3.75 4.20983V7.81781C3.75 11.1307 5.89514 14.2052 8.75512 15.1485C8.914 15.2009 9.086 15.2009 9.24488 15.1485C12.1049 14.2052 14.25 11.1307 14.25 7.81781V4.20983L9 1.82347L3.75 4.20983Z",fill:"white"})),Og={[Rl]:{[Pl]:(0,Y.__)("Place in review if the AVS verification fails","woocommerce-payments"),[Fl]:(0,Y.__)("Place in review if the shipping address country differs from the billing address country","woocommerce-payments"),[zl]:(0,Y.__)("Place in review if the country resolved from customer IP is not listed in your selling countries","woocommerce-payments"),[Bl]:(0,Y.__)("Place in review if the order originates from a country different from the shipping address country","woocommerce-payments"),[Ul]:(0,Y.__)("Place in review if the items count is not in your defined range","woocommerce-payments"),[Vl]:(0,Y.__)("Place in review if the purchase price is not in your defined range","woocommerce-payments")},[Dl]:{[Pl]:(0,Y.__)("Block if the AVS verification fails","woocommerce-payments"),[Fl]:(0,Y.__)("Block if the shipping address differs from the billing address","woocommerce-payments"),[zl]:(0,Y.__)("Block if the country resolved from customer IP is not listed in your selling countries","woocommerce-payments"),[Bl]:(0,Y.__)("Block if the order originates from a country different from the shipping address country","woocommerce-payments"),[Ul]:(0,Y.__)("Block if the items count is not in your defined range","woocommerce-payments"),[Vl]:(0,Y.__)("Block if the purchase price is not in your defined range","woocommerce-payments")}},Mg=(e,t)=>({date:new Date(1e3*e.datetime),icon:(0,Ta.jsx)(Of.A,{}),headline:(0,Y.sprintf)((0,Y.__)("Payment status changed to %s.","woocommerce-payments"),t),body:[]}),Lg=(e,t,n,o=[])=>{let r="";if(e.deposit){r=(0,Y.sprintf)(n?(0,Y.__)("%1$s was added to your <a>%2$s payout</a>.","woocommerce-payments"):(0,Y.__)("%1$s was deducted from your <a>%2$s payout</a>.","woocommerce-payments"),t,(0,$i.dateI18n)("M j, Y",Ei()(1e3*e.deposit.arrival_date).toISOString()));const o=Ii({page:"wc-admin",path:"/payments/payouts/details",id:e.deposit.id});r=(0,q.createInterpolateElement)(r,{a:(0,Ta.jsx)(Qr.Link,{href:o})})}else r=(0,Y.sprintf)(n?(0,Y.__)("%s will be added to a future payout.","woocommerce-payments"):(0,Y.__)("%s will be deducted from a future payout.","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:n?(0,Ta.jsx)(kg.A,{}):(0,Ta.jsx)(Cg.A,{}),headline:r,body:o}},jg=(e,t,n)=>{let o="";if(e.deposit){o=(0,Y.sprintf)((0,Y.__)("%1$s was subtracted from your <a>%2$s payout</a>.","woocommerce-payments"),t,(0,$i.dateI18n)("M j, Y",Ei()(1e3*e.deposit.arrival_date).toISOString()));const n=Ii({page:"wc-admin",path:"/payments/payouts/details",id:e.deposit.id});o=(0,q.createInterpolateElement)(o,{a:(0,Ta.jsx)(Qr.Link,{href:n})})}else o=(0,Y.sprintf)((0,Y.__)("%s will be subtracted from a future payout.","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:(0,Ta.jsx)(Cg.A,{}),headline:o,body:n}},Dg=(e,t,n,o=[])=>({date:new Date(1e3*e.datetime),headline:t,icon:n,body:o}),Rg=(e={})=>{const{transaction_details:t={}}=e,{customer_currency:n,store_currency:o}=t;return n&&o&&n!==o},Pg=e=>{if(!e.fee_rates)return!1;const t=e.fee_rates.history;return 1===t?.length&&"base"===t[0].type},Fg=e=>{const{amount_captured:t,fee:n,currency:o,transaction_details:{store_amount_captured:r,store_fee:a,store_currency:i}}=e;return Rg(e)?Fc(r-a,i):Fc(t-n,o)},zg=e=>(0,Y.sprintf)((0,Y.__)("Net payout: %s","woocommerce-payments"),Fg(e)),Bg=e=>{if(!e.fee_rates)return(0,Y.sprintf)((0,Y.__)("Fee: %s","woocommerce-payments"),Rc(e.fee,e.currency));const{percentage:t,fixed:n,fixed_currency:o,history:r}=e.fee_rates;let a=e.fee,i=e.currency;Rg(e)&&(a=e.transaction_details.store_fee,i=e.transaction_details.store_currency);const s=Pg(e)?(0,Y.__)("Base fee","woocommerce-payments"):(0,Y.__)("Fee","woocommerce-payments");return Pg(e)&&r[0]?.capped?(0,Y.sprintf)("%1$s (capped at %2$s): %3$s",s,Rc(n,o),Rc(-a,i)):(0,Y.sprintf)("%1$s (%2$f%% + %3$s): %4$s",s,Ig(t),Rc(n,o),Rc(-a,i))},Ug=e=>{if(!Rg(e))return;const{transaction_details:{customer_currency:t,customer_amount:n,customer_amount_captured:o,store_currency:r,store_amount:a,store_amount_captured:i}}=e;return((e,t)=>{if(!e.currency||!t.currency)return;const n=jc(e.currency)?1:100;return`${Fc(n,e.currency,!0)} → ${function(e,t){const{currencyData:n}=wcpaySettings;let o="number"==typeof t.amount&&"number"==typeof e.amount&&0!==e.amount?Math.abs(t.amount/e.amount):0;jc(t.currency)&&(o*=100),jc(e.currency)&&(o/=100);const r=(0,mt.find)(n,{code:t.currency.toUpperCase()}),a=o<1?6:5,i=jc(t.currency);r||(0,Y.sprintf)(i?"%i %s":"%.5f %s",o,t.currency.toUpperCase());const s=Ac()({...r,precision:a});return Pc(function(e=""){return e.split(" ").map((e=>(0,mt.endsWith)(e,"0")?(0,mt.trimEnd)(e,"0"):e)).join(" ")}(zc(s.formatAmount(o))),t.currency.toUpperCase())}(e,t)}: ${Fc(Math.abs(t.amount),t.currency)}`})({currency:t,amount:null!=o?o:n},{currency:r,amount:null!=i?i:a})},Vg=e=>"available"===e.acquirer_reference_number_status?(0,Y.sprintf)((0,Y.__)("Acquirer Reference Number (ARN) %s","woocommerce-payments"),e.acquirer_reference_number):"",Yg=e=>{switch(e.failure_reason){case"expired_or_canceled_card":return(0,Y.__)("the card being expired or canceled.","woocommerce-payments");case"lost_or_stolen_card":case"unknown":return(0,Y.__)("the card being lost or stolen.","woocommerce-payments")}},Hg=e=>{const t=(e=>{if(!e?.fee_rates?.history)return;if(Pg(e))return;const{fee_rates:{history:t}}=e,n={};return t.forEach((e=>{let t=e.type;e.additional_type&&(t+=`-${e.additional_type}`);const{percentage_rate:o,fixed_rate:r,currency:a,capped:i}=e,s=Ig(o),c=Rc(r,a),d=(0,Y.sprintf)(((e,t)=>({base:t?(0,Y.__)("Base fee: capped at %2$s","woocommerce-payments"):0!==e?(0,Y.__)("Base fee: %1$s%% + %2$s","woocommerce-payments"):(0,Y.__)("Base fee: %1$s%%","woocommerce-payments"),"additional-international":0!==e?(0,Y.__)("International card fee: %1$s%% + %2$s","woocommerce-payments"):(0,Y.__)("International card fee: %1$s%%","woocommerce-payments"),"additional-fx":0!==e?(0,Y.__)("Foreign exchange fee: %1$s%% + %2$s","woocommerce-payments"):(0,Y.__)("Foreign exchange fee: %1$s%%","woocommerce-payments"),"additional-wcpay-subscription":0!==e?(0,Y.__)("Subscription transaction fee: %1$s%% + %2$s","woocommerce-payments"):(0,Y.__)("Subscription transaction fee: %1$s%%","woocommerce-payments"),"additional-device":0!==e?(0,Y.__)("Tap to pay transaction fee: %1$s%% + %2$s","woocommerce-payments"):(0,Y.__)("Tap to pay transaction fee: %1$s%%","woocommerce-payments"),discount:(0,Y.__)("Discount","woocommerce-payments")}))(r,i)[t],s,c);n[t]="discount"===t?{label:d,variable:(0,Y.sprintf)((0,Y.__)("Variable fee: %s","woocommerce-payments"),s)+"%",fixed:(0,Y.sprintf)((0,Y.__)("Fixed fee: %s","woocommerce-payments"),c)}:d})),n})(e);if("object"!=typeof t)return;const n=Object.keys(t).map((e=>{const n=t[e];return(0,Ta.jsxs)("li",{children:["discount"===e?n.label:n,"discount"===e&&(o=n,(0,Ta.jsxs)("ul",{className:"discount-split-list",children:[(0,Ta.jsx)("li",{children:o.variable},"variable"),(0,Ta.jsx)("li",{children:o.fixed},"fixed")]}))]},e);var o}));return(0,Ta.jsxs)("ul",{className:"fee-breakdown-list",children:[" ",n," "]})},Wg=(e,t)=>{const n="block"===t,o=n?(0,Y.__)("Payment was blocked by <a>%s</a>","woocommerce-payments"):(0,Y.__)("Payment was approved by <a>%s</a>","woocommerce-payments"),r=n?(0,Ta.jsx)(Ng.A,{className:"is-error"}):(0,Ta.jsx)(Ca.A,{className:"is-success"});return[Dg(e,(0,q.createInterpolateElement)((0,Y.sprintf)(o,e.user.username),{a:(0,Ta.jsx)("a",{href:(0,Gr.addQueryArgs)("user-edit.php",{user_id:e.user.id}),tabIndex:-1})}),r)]},Gg=e=>Object.entries(e.ruleset_results||{}).filter((([,e])=>"allow"!==e)).map((([e,t])=>(0,Ta.jsx)("p",{className:"fraud-outcome-ruleset-item",children:Og[t][e]},e))),qg=(e,t)=>{const n="block"===t,o=n?(0,Y.__)("Payment was screened by your fraud filters and blocked.","woocommerce-payments"):(0,Y.__)("Payment was screened by your fraud filters and placed in review.","woocommerce-payments"),r=n?(0,Ta.jsx)(Ng.A,{className:"is-error"}):(0,Ta.jsx)(Ag,{className:"is-fraud-outcome-review"});return[Dg(e,o,r,Gg(e))]},Qg=e=>{const{type:t}=e,n=(t,n,o=!1)=>(0,Y.sprintf)(t,o?Fc(n,e.currency):Rc(n,e.currency));switch(t){case"started":return[Mg(e,(0,Y.__)("Started","woocommerce-payments"))];case"authorized":return[Mg(e,(0,Y.__)("Authorized","woocommerce-payments")),Dg(e,n((0,Y.__)("A payment of %s was successfully authorized.","woocommerce-payments"),e.amount,!0),(0,Ta.jsx)(Ca.A,{className:"is-warning"}))];case"authorization_voided":return[Mg(e,(0,Y.__)("Authorization voided","woocommerce-payments")),Dg(e,n((0,Y.__)("Authorization for %s was voided.","woocommerce-payments"),e.amount,!0),(0,Ta.jsx)(Ca.A,{className:"is-warning"}))];case"authorization_expired":return[Mg(e,(0,Y.__)("Authorization expired","woocommerce-payments")),Dg(e,n((0,Y.__)("Authorization for %s expired.","woocommerce-payments"),e.amount,!0),(0,Ta.jsx)(Ng.A,{className:"is-error"}))];case"captured":const o=Fg(e);return[Mg(e,(0,Y.__)("Paid","woocommerce-payments")),Lg(e,o,!0),Dg(e,n((0,Y.__)("A payment of %s was successfully charged.","woocommerce-payments"),e.amount_captured,!0),(0,Ta.jsx)(Ca.A,{className:"is-success"}),[Ug(e),Bg(e),Hg(e),zg(e)])];case"partial_refund":case"full_refund":const r=Fc(e.amount_refunded,e.currency),a=Rg(e)?Fc(e.transaction_details.store_amount,e.transaction_details.store_currency):r;return[Mg(e,"full_refund"===t?(0,Y.__)("Refunded","woocommerce-payments"):(0,Y.__)("Partial refund","woocommerce-payments")),Lg(e,a,!1),Dg(e,(0,Y.sprintf)((0,Y.__)("A payment of %s was successfully refunded.","woocommerce-payments"),r),(0,Ta.jsx)(Ca.A,{className:"is-success"}),[Ug(e),Vg(e)])];case"refund_failed":const i=Fc(e.amount_refunded,e.currency);return[Dg(e,(0,Y.sprintf)((0,Y.__)("%s refund was attempted but failed due to %s","woocommerce-payments"),i,Yg(e)),(0,Ta.jsx)(Kr.A,{className:"is-error"}),[Vg(e)])];case"failed":return[Mg(e,(0,Y.__)("Failed","woocommerce-payments")),Dg(e,n((0,Y.__)("A payment of %s failed.","woocommerce-payments"),e.amount,!0),(0,Ta.jsx)(Ng.A,{className:"is-error"}))];case"dispute_needs_response":let s,c=(0,Y.__)("Payment disputed","woocommerce-payments");if($l[e.reason]&&(c=(0,Y.sprintf)((0,Y.__)("Payment disputed as %s.","woocommerce-payments"),$l[e.reason].display)),null===e.amount)s={date:new Date(1e3*e.datetime),icon:(0,Ta.jsx)(Na.A,{}),headline:(0,Y.__)("No funds have been withdrawn yet.","woocommerce-payments"),body:[(0,Y.__)("The cardholder's bank is requesting more information to decide whether to return these funds to the cardholder.","woocommerce-payments")]};else{const t=Fc(Math.abs(e.amount)+Math.abs(e.fee),e.currency),n=Rg(e)?Rc(e.transaction_details.customer_amount,e.transaction_details.customer_currency):Rc(e.amount,e.currency);s=Lg(e,t,!1,[(0,Y.sprintf)((0,Y.__)("Disputed amount: %s","woocommerce-payments"),n),Ug(e),(0,Y.sprintf)((0,Y.__)("Fee: %s","woocommerce-payments"),Rc(e.fee,e.currency))])}return[Mg(e,(0,Y.__)("Disputed: Needs response","woocommerce-payments")),s,Dg(e,c,(0,Ta.jsx)(Ng.A,{className:"is-error"}))];case"dispute_in_review":return[Mg(e,(0,Y.__)("Disputed: In review","woocommerce-payments")),Dg(e,(0,Y.__)("Challenge evidence submitted.","woocommerce-payments"),(0,Ta.jsx)(Ca.A,{className:"is-success"}))];case"dispute_won":const d=Fc(Math.abs(e.amount)+Math.abs(e.fee),e.currency);return[Mg(e,(0,Y.__)("Disputed: Won","woocommerce-payments")),Lg(e,d,!0,[(0,Y.sprintf)((0,Y.__)("Dispute reversal: %s","woocommerce-payments"),Rc(e.amount,e.currency)),(0,Y.sprintf)((0,Y.__)("Fee refund: %s","woocommerce-payments"),Rc(Math.abs(e.fee),e.currency))]),Dg(e,(0,Y.__)("Dispute won! The bank ruled in your favor.","woocommerce-payments"),(0,Ta.jsx)(Kr.A,{className:"is-success"}))];case"dispute_lost":return[Mg(e,(0,Y.__)("Disputed: Lost","woocommerce-payments")),Dg(e,(0,Y.__)("Dispute lost. The bank ruled in favor of your customer.","woocommerce-payments"),(0,Ta.jsx)(Ng.A,{className:"is-error"}))];case"dispute_warning_closed":return[Dg(e,(0,Y.__)("Dispute inquiry closed. The bank chose not to pursue this dispute.","woocommerce-payments"),(0,Ta.jsx)(Kr.A,{className:"is-success"}))];case"dispute_charge_refunded":return[Dg(e,(0,Y.__)("The disputed charge has been refunded.","woocommerce-payments"),(0,Ta.jsx)(Kr.A,{className:"is-success"}))];case"financing_paydown":return[jg(e,Rc(Math.abs(e.amount)),[(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Loan repayment: <a>Loan %s</a>","woocommerce-payments"),e.loan_id),{a:(0,Ta.jsx)(Qr.Link,{href:Ii({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:e.loan_id})})})])];case"fraud_outcome_manual_approve":return Wg(e,"allow");case"fraud_outcome_manual_block":return Wg(e,"block");case"fraud_outcome_review":return qg(e,"review");case"fraud_outcome_block":return qg(e,"block");default:return[]}},Kg=({paymentIntentId:e})=>{const{timeline:t,timelineError:n,isLoading:o}=(e=>(0,Js.useSelect)((t=>{const{getTimeline:n,getTimelineError:o,isResolving:r}=t(xi);return{timeline:n(e),timelineError:o(e),isLoading:r("getTimeline",[e])}}),[e]))(e),r=(a=t)?(0,mt.flatMap)(a,Qg):[];var a;return(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsx)(df,{children:(0,Ta.jsx)(U_,{isLoading:o,value:(0,Y.__)("Timeline","woocommerce-payments")})}),(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)(B_,{isLoading:o,numLines:3,children:n instanceof Error?(0,Y.__)("Error while loading timeline","woocommerce-payments"):(0,Ta.jsx)(Qr.Timeline,{items:r})}),(0,Ta.jsx)(B_,{isLoading:o,numLines:3}),(0,Ta.jsx)(B_,{isLoading:o,numLines:3}),(0,Ta.jsx)(B_,{isLoading:o,numLines:3})]})]})},Zg=e=>{const{label:t,children:n,isLoading:o}=e;return(0,Ta.jsxs)("div",{className:"payment-method-detail",children:[(0,Ta.jsx)("h4",{className:"payment-method-detail__label",children:(0,Ta.jsx)(U_,{isLoading:o,display:"block",value:t})}),(0,Ta.jsx)("p",{className:"payment-method-detail__value",children:(0,Ta.jsx)(U_,{isLoading:o,value:n})})]})},Jg={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},Xg={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},ev={bankName:"bank name placeholder",bic:"bic placeholder",id:"id placeholder",verifiedName:"verified name placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},tv={bsb:"000000",last4:"0000",fingerprint:"fingerprint placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},nv=e=>{const{checked:t}=e;switch(t){case"pass":return(0,Y.__)("Passed","woocommerce-payments");case"fail":return(0,Y.__)("Failed","woocommerce-payments");case"unavailable":return(0,Y.__)("Unavailable","woocommerce-payments");default:return(0,Y.__)("Not checked","woocommerce-payments")}},ov={last4:"0000",fingerprint:(0,Y.__)("fingerprint placeholder","woocommerce-payments"),date:(0,Y.__)("date placeholder","woocommerce-payments"),cardType:(0,Y.__)("card type placeholder","woocommerce-payments"),id:(0,Y.__)("id placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments"),cvcCheck:null,line1Check:null,postalCodeCheck:null},rv={last4:"0000",fingerprint:(0,Y.__)("fingerprint placeholder","woocommerce-payments"),date:(0,Y.__)("date placeholder","woocommerce-payments"),cardType:(0,Y.__)("card type placeholder","woocommerce-payments"),id:(0,Y.__)("id placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments")},av={arzte_und_apotheker_bank:"Ärzte- und Apothekerbank",austrian_anadi_bank_ag:"Austrian Anadi Bank AG",bank_austria:"Bank Austria",bankhaus_carl_spangler:"Bankhaus Carl Spängler &amp; Co.AG",bankhaus_schelhammer_und_schattera_ag:"Bankhaus Schelhammer &amp; Schattera AG",bawag_psk_ag:"BAWAG P.S.K. AG",bks_bank_ag:"BKS Bank AG",brull_kallmus_bank_ag:"Brüll Kallmus Bank AG",btv_vier_lander_bank:"BTV VIER LÄNDER BANK",capital_bank_grawe_gruppe_ag:"Capital Bank Grawe Gruppe AG",dolomitenbank:"Dolomitenbank",easybank_ag:"Easybank AG",erste_bank_und_sparkassen:"Erste Bank und Sparkassen",hypo_alpeadriabank_international_ag:"Hypo Alpe-Adria-Bank International AG",hypo_noe_lb_fur_niederosterreich_u_wien:"HYPO NOE LB für Niederösterreich u. Wien",hypo_oberosterreich_salzburg_steiermark:"HYPO Oberösterreich,Salzburg,Steiermark",hypo_tirol_bank_ag:"Hypo Tirol Bank AG",hypo_vorarlberg_bank_ag:"Hypo Vorarlberg Bank AG",hypo_bank_burgenland_aktiengesellschaft:"HYPO-BANK BURGENLAND Aktiengesellschaft",marchfelder_bank:"Marchfelder Bank",oberbank_ag:"Oberbank AG",raiffeisen_bankengruppe_osterreich:"Raiffeisen Bankengruppe Österreich",schoellerbank_ag:"Schoellerbank AG",sparda_bank_wien:"Sparda-Bank Wien",volksbank_gruppe:"Volksbank Gruppe",volkskreditbank_ag:"Volkskreditbank AG",vr_bank_braunau:"VR-Bank Braunau"},iv={id:(0,Y.__)("id placeholder","woocommerce-payments"),bank:(0,Y.__)("bank name placeholder","woocommerce-payments"),verifiedName:(0,Y.__)("verified_name placeholder","woocommerce-payments"),customerName:(0,Y.__)("customer_name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments")},sv={bankName:(0,Y.__)("bank name placeholder","woocommerce-payments"),bic:(0,Y.__)("bic placeholder","woocommerce-payments"),id:(0,Y.__)("id placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments")},cv={id:(0,Y.__)("id placeholder","woocommerce-payments"),bankName:(0,Y.__)("bank name placeholder","woocommerce-payments"),bic:(0,Y.__)("bic placeholder","woocommerce-payments"),last4:"0000",verifiedName:(0,Y.__)("verified name placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments")},dv={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",paymentMethodCategory:"category placeholder",preferredLocale:"locale placeholder"},lv={id:(0,Y.__)("id placeholder","woocommerce-payments"),bank:(0,Y.__)("bank name placeholder","woocommerce-payments"),reference:(0,Y.__)("reference placeholder","woocommerce-payments"),verifiedName:(0,Y.__)("verified_name placeholder","woocommerce-payments"),customerName:(0,Y.__)("customer_name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments")},uv={last4:"0000",fingerprint:(0,Y.__)("fingerprint placeholder","woocommerce-payments"),id:(0,Y.__)("id placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments")},mv={bankCode:(0,Y.__)("bank code placeholder","woocommerce-payments"),bankName:(0,Y.__)("bank name placeholder","woocommerce-payments"),bic:(0,Y.__)("bic placeholder","woocommerce-payments"),last4:"0000",verifiedName:(0,Y.__)("verified name placeholder","woocommerce-payments"),fingerprint:(0,Y.__)("fingerprint placeholder","woocommerce-payments"),id:(0,Y.__)("id placeholder","woocommerce-payments"),name:(0,Y.__)("name placeholder","woocommerce-payments"),email:(0,Y.__)("email placeholder","woocommerce-payments"),formattedAddress:(0,Y.__)("address placeholder","woocommerce-payments"),country:(0,Y.__)("country placeholder","woocommerce-payments")},pv={affirm:({charge:e,isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{name:o,email:r,formatted_address:a}=t;return{id:n,name:o,email:r,formattedAddress:a}})(e):Jg,{id:o,name:r,email:a,formattedAddress:i}=n;return G().createElement("div",{className:"payment-method-details"},G().createElement("div",{className:"payment-method-details__column"},G().createElement(Zg,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments")},o||"–")),G().createElement("div",{className:"payment-method-details__column"},G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments")},r||"–"),G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments")},a||"–"),G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments")},G().createElement("span",{dangerouslySetInnerHTML:{__html:i||"–"}}))))},afterpay_clearpay:({charge:e,isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{name:o,email:r,formatted_address:a}=t;return{id:n,name:o,email:r,formattedAddress:a}})(e):Xg,{id:o,name:r,email:a,formattedAddress:i}=n;return G().createElement("div",{className:"payment-method-details"},G().createElement("div",{className:"payment-method-details__column"},G().createElement(Zg,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments")},o||"–")),G().createElement("div",{className:"payment-method-details__column"},G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments")},r||"–"),G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments")},a||"–"),G().createElement(Zg,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments")},G().createElement("span",{dangerouslySetInnerHTML:{__html:i||"–"}}))))},au_becs_debit:({charge:e={},isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bsb_number:o,last4:r,fingerprint:a}=e.payment_method_details.au_becs_debit,{name:i,email:s,formatted_address:c}=t;return{bsb:o,last4:r,fingerprint:a,id:n,name:i,email:s,formattedAddress:c}})(e):tv,{bsb:o,last4:r,id:a,name:i,email:s,formattedAddress:c}=n,d=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("BSB","woocommerce-payments"),children:o}),(0,Ta.jsxs)(d,{isLoading:t,label:(0,Y.__)("Account","woocommerce-payments"),children:["••••• ",r]}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:a})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:i}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:s}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:c}})})]})]})},bancontact:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_name:o,bic:r,verified_name:a}=e.payment_method_details.bancontact,{name:i,email:s,formatted_address:c}=t;return{id:n,bankName:o,bic:r,verifiedName:a,name:i,email:s,formattedAddress:c}})(e):ev,{id:o,bankName:r,bic:a,verifiedName:i,name:s,email:c,formattedAddress:d}=n,l=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:r}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("BIC","woocommerce-payments"),children:a}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:o})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Verified name","woocommerce-payments"),children:i}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:s}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:c}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})})]})]})},card:({charge:e={},isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:o,fingerprint:r,exp_month:a,exp_year:i,funding:s,network:c,country:d,checks:l}=e.payment_method_details.card,{name:u,email:m,formatted_address:p}=t,{cvc_check:y,address_line1_check:h,address_postal_code_check:f}=l||{},_=a&&i?a+" / "+i:void 0,g={credit:(0,Y.__)("credit","woocommerce-payments"),debit:(0,Y.__)("debit","woocommerce-payments"),prepaid:(0,Y.__)("prepaid","woocommerce-payments"),unknown:(0,Y.__)("unknown","woocommerce-payments")};return{last4:o,fingerprint:r,date:_,cardType:c?(0,Y.sprintf)((0,Y.__)("%1$s %2$s card","woocommerce-payments"),"jcb"===c?c.toUpperCase():c.charAt(0).toUpperCase()+c.slice(1),g[s]):void 0,id:n,name:u,email:m,country:wcSettings.countries[d],cvcCheck:y,line1Check:h,postalCodeCheck:f,formattedAddress:p}})(e):ov,{last4:o,date:r,cardType:a,id:i,name:s,email:c,country:d,cvcCheck:l,line1Check:u,postalCodeCheck:m,formattedAddress:p}=n,y=Zg,h=nv;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Number","woocommerce-payments"),children:o?(0,Ta.jsxs)(Ta.Fragment,{children:["•••• ",o]}):"–"}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Expires","woocommerce-payments"),children:null!=r?r:"–"}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Type","woocommerce-payments"),children:null!=a?a:"–"}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:i||"–"})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:s}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:c}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:p}})}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Origin","woocommerce-payments"),children:d}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("CVC check","woocommerce-payments"),children:(0,Ta.jsx)(h,{checked:l})}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Street check","woocommerce-payments"),children:(0,Ta.jsx)(h,{checked:u})}),(0,Ta.jsx)(y,{isLoading:t,label:(0,Y.__)("Zip check","woocommerce-payments"),children:(0,Ta.jsx)(h,{checked:m})})]})]})},card_present:({charge:e={},isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:o,fingerprint:r,exp_month:a,exp_year:i,funding:s,network:c,country:d}=e.payment_method_details.card_present,{name:l,email:u,formatted_address:m}=t,p=a+" / "+i,y={credit:(0,Y.__)("credit","woocommerce-payments"),debit:(0,Y.__)("debit","woocommerce-payments"),prepaid:(0,Y.__)("prepaid","woocommerce-payments"),unknown:(0,Y.__)("unknown","woocommerce-payments")};return{last4:o,fingerprint:r,date:p,cardType:(0,Y.sprintf)((0,Y.__)("%1$s %2$s card","woocommerce-payments"),c.charAt(0).toUpperCase()+c.slice(1),y[s]),id:n,name:l,email:u,country:wcSettings.countries[d],formattedAddress:m}})(e):rv,{last4:o,date:r,cardType:a,id:i,name:s,email:c,country:d,formattedAddress:l}=n,u=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsxs)(u,{isLoading:t,label:(0,Y.__)("Number","woocommerce-payments"),children:["•••• ",o]}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Expires","woocommerce-payments"),children:r}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Type","woocommerce-payments"),children:a}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:i})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:s}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:c}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:l}})}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Origin","woocommerce-payments"),children:d})]})]})},eps:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:o,verified_name:r}=e.payment_method_details.eps,{name:a,email:i,formatted_address:s}=t;return{id:n,bank:o,verifiedName:r,customerName:a,email:i,formattedAddress:s}})(e):iv,{id:o,bank:r,verifiedName:a,customerName:i,email:s,formattedAddress:c}=n,d=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:av[r]}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:o}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Verified name","woocommerce-payments"),children:a})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:i}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:s}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:c}})})]})]})},giropay:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_name:o,bic:r}=e.payment_method_details.giropay,{name:a,email:i,formatted_address:s}=t;return{id:n,bankName:o,bic:r,name:a,email:i,formattedAddress:s}})(e):sv,{id:o,bankName:r,bic:a,name:i,email:s,formattedAddress:c}=n,d=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:r}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("BIC","woocommerce-payments"),children:a}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:o})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:i}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:s}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:c}})})]})]})},ideal:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:o,bic:r,country:a,iban_last4:i,verified_name:s}=e.payment_method_details.ideal,{name:c,email:d,formatted_address:l}=t;return{bankName:o,bic:r,last4:i,verifiedName:s,id:n,name:c,email:d,country:wcSettings.countries[a],formattedAddress:l}})(e):cv,{bankName:o,bic:r,last4:a,verifiedName:i,id:s,name:c,email:d,formattedAddress:l}=n,u=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:s}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:o}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("BIC","woocommerce-payments"),children:r}),(0,Ta.jsxs)(u,{isLoading:t,label:(0,Y.__)("IBAN","woocommerce-payments"),children:["•••• ",a]})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Verified name","woocommerce-payments"),children:i}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:c}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:d}),(0,Ta.jsx)(u,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:l}})})]})]})},klarna:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{payment_method_category:o,preferred_locale:r}=e.payment_method_details.klarna,a={pay_later:(0,Y.__)("pay_later","woocommerce-payments"),pay_now:(0,Y.__)("pay_now","woocommerce-payments"),pay_with_financing:(0,Y.__)("pay_with_financing","woocommerce-payments"),pay_in_installments:(0,Y.__)("pay_in_installments","woocommerce-payments")},{name:i,email:s,formatted_address:c}=t;return{id:n,name:i,email:s,formattedAddress:c,paymentMethodCategory:a[o],preferredLocale:r}})(e):dv,{id:o,name:r,email:a,formattedAddress:i,paymentMethodCategory:s,preferredLocale:c}=n;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:o}),(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("Category","woocommerce-payments"),children:s}),(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("Preferred Locale","woocommerce-payments"),children:c})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:r}),(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:a}),(0,Ta.jsx)(Zg,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:i}})})]})]})},p24:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:o,reference:r,verified_name:a}=e.payment_method_details.p24,{name:i,email:s,formatted_address:c}=t;return{id:n,bank:o,reference:r,verifiedName:a,customerName:i,email:s,formattedAddress:c}})(e):lv,{id:o,bank:r,reference:a,verifiedName:i,customerName:s,email:c,formattedAddress:d}=n,l=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:Hf[r]}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Reference","woocommerce-payments"),children:a}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:o}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Verified name","woocommerce-payments"),children:i})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:s}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:c}),(0,Ta.jsx)(l,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})})]})]})},sepa_debit:({charge:e={},isLoading:t})=>{const n=e&&e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:o,fingerprint:r,country:a}=e.payment_method_details.sepa_debit,{name:i,email:s,formatted_address:c}=t;return{last4:o,fingerprint:r,id:n,name:i,email:s,country:wcSettings.countries[a],formattedAddress:c}})(e):uv,{last4:o,id:r,name:a,email:i,country:s,formattedAddress:c}=n,d=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsxs)(d,{isLoading:t,label:(0,Y.__)("IBAN","woocommerce-payments"),children:["•••• ",o]}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:r})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:a}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:i}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:c}})}),(0,Ta.jsx)(d,{isLoading:t,label:(0,Y.__)("Origin","woocommerce-payments"),children:s})]})]})},sofort:({charge:e={},isLoading:t})=>{const n=e.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_code:o,bank_name:r,bic:a,country:i,iban_last4:s,verified_name:c}=e.payment_method_details.sofort,{name:d,email:l,formatted_address:u}=t;return{bankCode:o,bankName:r,bic:a,last4:s,verifiedName:c,id:n,name:d,email:l,country:wcSettings.countries[i],formattedAddress:u}})(e):mv,{bankCode:o,bankName:r,bic:a,last4:i,verifiedName:s,id:c,name:d,email:l,country:u,formattedAddress:m}=n,p=Zg;return(0,Ta.jsxs)("div",{className:"payment-method-details",children:[(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("ID","woocommerce-payments"),children:c}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Bank code","woocommerce-payments"),children:o}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Bank name","woocommerce-payments"),children:r}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("BIC","woocommerce-payments"),children:a}),(0,Ta.jsxs)(p,{isLoading:t,label:(0,Y.__)("IBAN","woocommerce-payments"),children:["•••• ",i]})]}),(0,Ta.jsxs)("div",{className:"payment-method-details__column",children:[(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Verified name","woocommerce-payments"),children:s}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Owner","woocommerce-payments"),children:d}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Owner email","woocommerce-payments"),children:l}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Address","woocommerce-payments"),children:(0,Ta.jsx)("span",{dangerouslySetInnerHTML:{__html:m}})}),(0,Ta.jsx)(p,{isLoading:t,label:(0,Y.__)("Origin","woocommerce-payments"),children:u})]})]})}},yv=({charge:e={},isLoading:t})=>{if(!e.payment_method_details||!e.payment_method_details.type)return null;const n=e.payment_method_details.type;if(!(n in pv))return null;const o=pv[n];return(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsx)(df,{children:(0,Ta.jsx)(U_,{isLoading:t,value:(0,Y.__)("Payment method","woocommerce-payments")})}),(0,Ta.jsx)(Oo,{children:(0,Ta.jsx)(o,{isLoading:t,charge:e})})]})},hv=({id:e,error:t,charge:n={},metadata:o={},isLoading:r,showTimeline:a=!0,paymentIntent:i})=>!r&&t instanceof Error?G().createElement(Ma,{maxWidth:1032,className:"wcpay-payment-details"},G().createElement(rc,{currentPage:"payments",isDetailsView:!0}),G().createElement(So,null,G().createElement(Oo,null,(0,Y.__)("Payment details not loaded","woocommerce-payments")))):G().createElement(Ma,{maxWidth:1032,className:"wcpay-payment-details"},G().createElement(rc,{currentPage:"payments",isDetailsView:!0}),G().createElement(Oa,null,G().createElement(xg,{charge:n,metadata:o,isLoading:r,paymentIntent:i})),a&&wcpaySettings.featureFlags.paymentTimeline&&G().createElement(Oa,null,G().createElement(Kg,{paymentIntentId:e})),G().createElement(Oa,null,G().createElement(yv,{charge:n,isLoading:r}))),fv=({id:e})=>{const{data:t,isLoading:n}=(e=>(0,Js.useSelect)((t=>{const{getChargeFromOrder:n,isResolving:o,getChargeFromOrderError:r,hasFinishedResolution:a}=t(xi);return{data:n(e),error:r(e),isLoading:o("getChargeFromOrder",[e])||!a("getChargeFromOrder",[e])}}),[e]))(e),o=!!t.payment_intent,r=n||o;return(0,W.useEffect)((()=>{if(t&&o){const e=Ii({page:"wc-admin",path:"/payments/transactions/details",id:t.payment_intent});window.location.href=e}}),[t,o]),G().createElement(hv,{id:e,charge:t,isLoading:r,showTimeline:!o})},_v=e=>void 0!==e.charge,gv=({id:e})=>{const{data:t,error:n,isLoading:o}=qp(e),r=_v(t)?t:{},a=Gp(e),i=a||o,s=(_v(t)?t.charge:t)||{},c=_v(t)?t.metadata:{};return(0,W.useEffect)((()=>{if((e=>void 0===e.charge)(t)&&a&&t.payment_intent){const e=Ii({page:"wc-admin",path:"/payments/transactions/details",id:t.payment_intent});(0,Ay.getHistory)().replace(e)}}),[t,a]),G().createElement(hv,{id:e,error:n,charge:s,metadata:c,isLoading:i,showTimeline:!a,paymentIntent:r})},vv=({query:e})=>{const{id:t,transaction_id:n,transaction_type:o}=e||{},{status_is:r,type_is:a}=(0,Ay.getQuery)();return r&&a&&(oa("wcpay_fraud_protection_order_details_link_clicked",{status:r,type:a}),(0,Ay.updateQueryString)({status_is:void 0,type_is:void 0})),"card_reader_fee"===o?G().createElement(x_,{chargeId:t,transactionId:n}):/^\d+$/.test(t)?G().createElement(fv,{id:t}):G().createElement(gv,{id:t})},wv=({storeCurrencies:e})=>{return G().createElement("div",{className:"woocommerce-filters-disputes"},G().createElement(Qr.ReportFilters,{filters:(t=Cl,t.forEach((t=>{if("store_currency_is"===t.param){const n=e||[];t.filters=[t.filters[0],...n.map((e=>({label:Mc(e),value:e})))],2<t.filters.length&&(t.showFilters=()=>!0)}})),t),advancedFilters:Tl,showDatePicker:!1,path:"/payments/disputes",query:(0,Ay.getQuery)()}));var t};var bv=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const Ev=e=>{if(""===e.due_by||!H_(e.status))return"";const t=Ei()().utc(),n=Ei().utc(e.due_by),o=n.diff(t,"hours",!1),r=n.diff(t,"days",!1);return o<=0?"":o<=72?G().createElement("span",{className:"due-soon"},o<=24?(0,Y.__)("Last day today","woocommerce-payments"):(0,Y.sprintf)((0,Y._n)("%s day left","%s days left",r,"woocommerce-payments"),r),G().createElement(Kr.A,{className:"due-soon-icon"})):(0,$i.dateI18n)("M j, Y / g:iA",Ei().utc(e.due_by).local().toISOString())},$v=()=>{var e,t,n;np();const[o,r]=(0,W.useState)(!1),{createNotice:a}=(0,Js.useDispatch)("core/notices"),{disputes:i,isLoading:s}=Al((0,Ay.getQuery)()),{disputesSummary:c,isLoading:d}=(({paged:e,per_page:t,match:n,store_currency_is:o,date_before:r,date_after:a,date_between:i,filter:s,status_is:c,status_is_not:d})=>(0,Js.useSelect)((l=>{const{getDisputesSummary:u,isResolving:m}=l(xi),p="awaiting_response"===s?kl:void 0,y={paged:Number.isNaN(parseInt(null!=e?e:"",10))?"1":e,perPage:Number.isNaN(parseInt(null!=t?t:"",10))?"25":t,match:n,storeCurrencyIs:o,dateBefore:r,dateAfter:a,dateBetween:i,search:p,statusIs:c,statusIsNot:d};return{disputesSummary:u(y),isLoading:m("getDisputesSummary",[y])}}),[e,t,o,n,r,a,JSON.stringify(i),s,c,d]))((0,Ay.getQuery)()),[l,u]=(0,W.useState)(!1),[m]=Xm(),p=(y=(0,Ay.getQuery)().orderby,[{key:"details",label:"",required:!0,cellClassName:Lo()("info-button",{"is-sorted":"amount"===y}),isLeftAligned:!0},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount","woocommerce-payments"),required:!0,isSortable:!0,isLeftAligned:!0},{key:"currency",label:(0,Y.__)("Currency","woocommerce-payments"),visible:!1,required:!0},{key:"status",label:(0,Y.__)("Status","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Status","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"reason",label:(0,Y.__)("Reason","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Reason","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"source",label:(0,Y.__)("Source","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Source","woocommerce-payments"),required:!0,cellClassName:"is-center-aligned"},{key:"order",label:(0,Y.__)("Order #","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Order #","woocommerce-payments"),required:!0},{key:"customerName",label:(0,Y.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Customer","woocommerce-payments"),isLeftAligned:!0},{key:"customerEmail",label:(0,Y.__)("Email","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customerCountry",label:(0,Y.__)("Country","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"created",label:(0,Y.__)("Disputed on","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Disputed on","woocommerce-payments"),isLeftAligned:!0,isSortable:!0,defaultSort:!0,defaultOrder:"desc",visible:!1},{key:"dueBy",label:(0,Y.__)("Respond by","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Respond by","woocommerce-payments"),required:!0,isLeftAligned:!0,isSortable:!0},{key:"action",label:(0,Y.__)("Action","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Action","woocommerce-payments"),isLeftAligned:!1,isNumeric:!0,required:!0,visible:!0}]);var y;const h=c.count||0,f=i.map((e=>{var t,n,o,r,a,i;const s=t=>{t.preventDefault(),oa("wcpay_disputes_row_action_click"),(0,Ay.getHistory)().push(jy(e.charge_id,"transactions"))},c=t=>G().createElement(Ry,{href:jy(e.charge_id,"transactions"),onClick:s},t),d=G().createElement(Dy,{id:e.charge_id,parentSegment:"transactions"}),l=$l[e.reason],u=l?l.display:Mi(e.reason),m=H_(e.status),y={amount:{value:Dc(e.amount,e.currency),display:c(Fc(e.amount,e.currency))},currency:{value:e.currency,display:c(e.currency)},status:{value:e.status,display:c(G().createElement(q_,{status:e.status,dueBy:e.due_by}))},reason:{value:u,display:c(u)},source:{value:null!==(t=e.source)&&void 0!==t?t:"",display:c(G().createElement("span",{className:`payment-method__brand payment-method__brand--${null!==(n=e.source)&&void 0!==n?n:""}`}))},created:{value:e.created,display:c((0,$i.dateI18n)("M j, Y",Ei()(e.created).toISOString()))},dueBy:{value:e.due_by,display:c(Ev(e))},order:{value:null!==(o=e.order_number)&&void 0!==o?o:"",display:G().createElement(lf,{order:e.order})},customerName:{value:null!==(r=e.customer_name)&&void 0!==r?r:"",display:e.order&&e.order.customer_url?G().createElement(Qr.Link,{href:e.order.customer_url},e.customer_name):c(e.customer_name)},customerEmail:{value:null!==(a=e.customer_email)&&void 0!==a?a:"",display:c(e.customer_email)},customerCountry:{value:null!==(i=e.customer_country)&&void 0!==i?i:"",display:c(e.customer_country)},details:{value:e.dispute_id,display:d},action:{value:"",display:G().createElement(jr,{variant:m?"secondary":"tertiary",href:jy(e.charge_id,"transactions"),onClick:s},m?(0,Y.__)("Respond","woocommerce-payments"):(0,Y.__)("See details","woocommerce-payments"))}};return p.map((({key:e})=>y[e]||{value:void 0,display:null}))})),_=!!f.length,g=e=>bv(void 0,void 0,void 0,(function*(){const t=(0,Ay.getQuery)(),{page:n,path:o}=t,r=(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}}(t,["page","path"]),wcpaySettings.currentUserEmail),i=Pi(e,m),{date_before:s,date_after:c,date_between:d,match:l,status_is:u,status_is_not:p}=(0,Ay.getQuery)(),y=!!(s||c||d||u||p),f=(0,Y.sprintf)((0,Y.__)("You are about to export %d disputes. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),h);if(y||h<1e3||window.confirm(f))try{const{exported_disputes:e}=yield Wr()({path:gl({userEmail:r,locale:i,dateAfter:c,dateBefore:s,dateBetween:d,match:l,statusIs:u,statusIsNot:p}),method:"POST"});a("success",(0,Y.sprintf)((0,Y.__)("Your export will be emailed to %s","woocommerce-payments"),r)),oa("wcpay_disputes_download",{exported_disputes:e,total_disputes:e,download_type:"endpoint"})}catch(e){a("error",(0,Y.__)("There was a problem generating your export.","woocommerce-payments"))}}));let v;void 0!==c.count&&!d&&(v=[{label:(0,Y._n)("dispute","disputes",null!==(e=c.count)&&void 0!==e?e:0,"woocommerce-payments"),value:`${ji(c.count)}`}]);const w="string"==typeof(0,Ay.getQuery)().store_currency_is,b=c.currencies||(w?[null!==(t=(0,Ay.getQuery)().store_currency_is)&&void 0!==t?t:""]:[]),E=()=>{u(!1)};return G().createElement(Ma,null,G().createElement(rc,{currentPage:"disputes"}),G().createElement(wv,{storeCurrencies:b}),G().createElement(Qr.TableCard,{className:"wcpay-disputes-list",title:(0,Y.__)("Disputes","woocommerce-payments"),isLoading:s,rowsPerPage:parseInt(null!==(n=(0,Ay.getQuery)().per_page)&&void 0!==n?n:"",10)||25,totalRows:h,headers:p,rows:f,summary:v,query:(0,Ay.getQuery)(),onQueryChange:Ay.onQueryChange,actions:[_&&G().createElement(Hy,{key:"download",isDisabled:s||o,onClick:()=>bv(void 0,void 0,void 0,(function*(){r(!0);const e=(0,Y.__)("Disputes","woocommerce-payments");if("endpoint"==(h>f.length?"endpoint":"browser"))Ri()||Di()?g(""):u(!0);else{const t=[Object.assign(Object.assign({},p[0]),{label:(0,Y.__)("Dispute Id","woocommerce-payments")}),...p.slice(1,-1)],n=f.map((e=>{var t,n;return[...e.slice(0,3),Object.assign(Object.assign({},e[3]),{value:L_[null!==(t=e[3].value)&&void 0!==t?t:""].message}),Object.assign(Object.assign({},e[4]),{value:Mi((null!==(n=e[4].value)&&void 0!==n?n:"").toString())}),...e.slice(5,10),Object.assign(Object.assign({},e[10]),{value:(0,$i.dateI18n)("Y-m-d",Ei()(e[10].value).toISOString())}),Object.assign(Object.assign({},e[11]),{value:(0,$i.dateI18n)("Y-m-d / g:iA",Ei()(e[11].value).toISOString())})]}));(0,Oy.downloadCSVFile)((0,Oy.generateCSVFileName)(e,(0,Ay.getQuery)()),(0,Oy.generateCSVDataFromTable)(t,n)),oa("wcpay_disputes_download",{exported_disputes:n.length,total_disputes:c.count,download_type:"browser"})}r(!1)}))})]}),!Ri()&&!Di()&&l&&G().createElement(tf,{onClose:E,onSubmit:e=>{g(e),E()},totalItems:h,exportType:"disputes"}))},Sv=(function(){var e=ut.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}})`
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
 `,xv=Ft("svg",{target:"e1bj2jdf2"})("width:",Wn.spinnerSize,"px;height:",Wn.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:var( --wp-admin-theme-color );overflow:visible;"),kv={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},Cv=Ft("circle",{target:"e1bj2jdf1"})(kv,";stroke:",Bn.gray[300],";"),Nv=Ft("path",{target:"e1bj2jdf0"})(kv,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",Sv,";");function Iv(e){let{className:t,...n}=e;return(0,q.createElement)(xv,Q({className:Lo()("components-spinner",t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false"},n),(0,q.createElement)(Cv,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,q.createElement)(Nv,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}const Tv=G().createElement(Ro.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G().createElement(Ro.Path,{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:"#F0B849",strokeWidth:"1.5"}),G().createElement(Ro.Path,{d:"M13 7H11V13H13V7Z",fill:"#F0B849"}),G().createElement(Ro.Path,{d:"M13 15H11V17H13V15Z",fill:"#F0B849"})),Av=({query:{id:e}})=>{const{dispute:t,error:n,isLoading:o}=(e=>{const{dispute:t,error:n,isLoading:o}=(0,Js.useSelect)((t=>{const{getDispute:n,getDisputeError:o,isResolving:r}=t(xi);return{dispute:n(e),error:o(e),isLoading:r("getDispute",[e])}}),[e]);return{dispute:t,isLoading:o,error:n}})(e);return(0,W.useEffect)((()=>{if(!o&&(null==t?void 0:t.charge)){const e=t.charge,n=Ii({page:"wc-admin",path:"/payments/transactions/details",id:e.payment_intent,transaction_id:e.balance_transaction,type:"dispute"});(0,Ay.getHistory)().replace(n)}}),[t,o]),G().createElement(Ma,null,G().createElement(Sa,{direction:"column",className:"wcpay-dispute-detail-legacy-redirect"},n?G().createElement(G().Fragment,null,G().createElement(ka,null,G().createElement(Ar,{icon:Tv,type:"warning",size:32})),G().createElement(ka,null,G().createElement("div",null,G().createElement("b",null,"Error retrieving dispute")),G().createElement("div",null,"Please check your network and try again."))):G().createElement(G().Fragment,null,G().createElement(ka,null,G().createElement(Iv,null)),G().createElement(ka,null,G().createElement("div",null,G().createElement("b",null,"One moment please")),G().createElement("div",null,"Redirecting to payment details…")))))},Ov=(0,q.forwardRef)((function e(t,n){let{label:o,hideLabelFromVision:r,value:a,help:i,className:s,onChange:c,type:d="text",...l}=t;const u=`inspector-text-control-${(0,jo.useInstanceId)(e)}`;return(0,q.createElement)(ah,{label:o,hideLabelFromVision:r,id:u,help:i,className:s},(0,q.createElement)("input",Q({className:"components-text-control__input",type:d,id:u,value:a,onChange:e=>c(e.target.value),"aria-describedby":i?u+"__help":void 0,ref:n},l)))})),Mv=ut("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Wn.radiusBlockUi,";border:",Wn.borderWidth," solid ",Bn.ui.border,";",""),Lv=ut("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Wn.borderWidthFocus," - ",Wn.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;",""),jv=ut("font-family:",Ky("default.fontFamily"),";padding:6px 8px;",Mv,";font-size:",Ky("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: 600px)","{font-size:",Ky("default.fontSize"),";line-height:normal;}&:focus{",Lv,";}&::-webkit-input-placeholder{color:",Bn.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",Bn.darkGray.placeholder,";}&:-ms-input-placeholder{color:",Bn.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Bn.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",Bn.lightGray.placeholder,";}&:-ms-input-placeholder{color:",Bn.lightGray.placeholder,";}}",""),Dv=Ft("textarea",{target:"ebk7yr50"})("width:100%;",jv,";");function Rv(e){let{label:t,hideLabelFromVision:n,value:o,help:r,onChange:a,rows:i=4,className:s,...c}=e;const d=`inspector-textarea-control-${(0,jo.useInstanceId)(Rv)}`;return(0,q.createElement)(ah,{label:t,hideLabelFromVision:n,id:d,help:r,className:s},(0,q.createElement)(Dv,Q({className:"components-textarea-control__input",id:d,rows:i,onChange:e=>a(e.target.value),"aria-describedby":r?d+"__help":void 0,value:o},c)))}const Pv=[{key:"general",title:(0,Y.__)("General evidence","woocommerce-payments"),description:(0,Y.__)("Provide general evidence about the customer and the order.","woocommerce-payments"),fields:[{key:"product_description",label:(0,Y.__)("Product description","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("A description of the product or service and any relevant details on how this was presented to the customer at the time of purchase.","woocommerce-payments")},{key:"customer_name",label:(0,Y.__)("Customer name","woocommerce-payments"),type:"text"},{key:"customer_email_address",label:(0,Y.__)("Customer email","woocommerce-payments"),type:"text"},{key:"customer_signature",label:(0,Y.__)("Customer signature","woocommerce-payments"),type:"file",description:(0,Y.__)("A relevant document or contract showing the customer's signature (if available).","woocommerce-payments")},{key:"billing_address",label:(0,Y.__)("Customer billing address","woocommerce-payments"),type:"textarea"},{key:"customer_purchase_ip",label:(0,Y.__)("Customer IP address","woocommerce-payments"),type:"text"},{key:"receipt",label:(0,Y.__)("Receipt","woocommerce-payments"),type:"file",description:(0,Y.__)("Any receipt or message sent to the customer notifying them of the charge. This field will be automatically filled with a Stripe generated email receipt if any such receipt was sent.","woocommerce-payments")},{key:"customer_communication",label:(0,Y.__)("Customer communication","woocommerce-payments"),type:"file",description:(0,Y.__)("Any communication with the customer that you feel is relevant to your case (e.g. emails proving that they received the product or service, or demonstrating their use of or satisfaction with the product or service).","woocommerce-payments")}]},{key:"refund_policy_info",title:(0,Y.__)("Refund policy info","woocommerce-payments"),fields:[{key:"refund_policy",label:(0,Y.__)("Refund policy","woocommerce-payments"),type:"file",description:(0,Y.__)("Your refund policy, as shown or provided to the customer.","woocommerce-payments")},{key:"refund_policy_disclosure",label:(0,Y.__)("Refund policy disclosure","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("An explanation of how and when the customer was shown or provided your refund policy prior to purchase.","woocommerce-payments")},{key:"refund_refusal_explanation",label:(0,Y.__)("Refund refusal explanation","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("Your explanation for why the customer is not entitled to a refund.","woocommerce-payments")}],reason:"credit_not_processed"},{key:"duplicate_charge_info",title:(0,Y.__)("Duplicate charge info","woocommerce-payments"),fields:[{key:"duplicate_charge_id",label:(0,Y.__)("Duplicate charge ID","woocommerce-payments"),type:"text",description:(0,Y.__)("The charge ID for the previous payment that appears to be a duplicate of the one that is disputed.","woocommerce-payments")},{key:"duplicate_charge_explanation",label:(0,Y.__)("Explanation of duplicate charge","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("An explanation of the difference between the disputed payment and the prior one that appears to be a duplicate.","woocommerce-payments")},{key:"duplicate_charge_documentation",label:(0,Y.__)("Duplicate charge documentation","woocommerce-payments"),type:"file",description:(0,Y.__)("Upload documentation for the prior payment that can uniquely identify it, such as a separate receipt. This document should be paired with a similar document from the disputed payment that proves the two are separate. This should also include a separate shipping label or receipt for the other payment. If multiple products were shipped together, provide a packing list that shows each purchase.","woocommerce-payments")},{key:"shipping_documentation",label:(0,Y.__)("Shipping documentation","woocommerce-payments"),type:"file",description:(0,Y.__)("A shipping label or receipt for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"physical_product"},{key:"service_documentation",label:(0,Y.__)("Service documentation","woocommerce-payments"),type:"file",description:(0,Y.__)("A copy of a service agreement or documentation for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"offline_service"}],reason:"duplicate"},{key:"shipping_information",title:(0,Y.__)("Shipping information","woocommerce-payments"),fields:[{key:"shipping_carrier",label:(0,Y.__)("Shipping carrier","woocommerce-payments"),type:"text",description:(0,Y.__)("The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.","woocommerce-payments")},{key:"shipping_tracking_number",label:(0,Y.__)("Tracking number","woocommerce-payments"),type:"text",description:(0,Y.__)("The tracking number (if available) for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. When we compile your evidence into a single document, these tracking numbers will be expanded to include detailed delivery information from the carrier.","woocommerce-payments")},{key:"shipping_documentation",label:(0,Y.__)("Proof of shipping","woocommerce-payments"),type:"file",description:(0,Y.__)("Provide documentation as proof that a product was shipped to the cardholder at the same address the cardholder provided to you. This could include a copy of the shipment receipt or label, and show the full shipping address of the cardholder, if possible.","woocommerce-payments")},{key:"shipping_date",label:(0,Y.__)("Date of shipment","woocommerce-payments"),type:"date",description:(0,Y.__)("The date on which a physical product began its route to the shipping address. This date should be prior to the date of the dispute.","woocommerce-payments")},{key:"shipping_address",label:(0,Y.__)("Shipping address","woocommerce-payments"),type:"textarea",description:(0,Y.__)("The address to which a physical product was shipped. The shipping address must match a billing address verified with AVS. (A signature is not required as evidence of delivery).","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","unrecognized"],productType:"physical_product"},{key:"cancellation_policy_info",title:(0,Y.__)("Cancellation policy info","woocommerce-payments"),fields:[{key:"cancellation_policy",label:(0,Y.__)("Cancellation policy","woocommerce-payments"),type:"file",description:(0,Y.__)("Your subscription cancellation policy, as shown to the customer.","woocommerce-payments")},{key:"cancellation_policy_disclosure",label:(0,Y.__)("Cancellation policy disclosure","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("An explanation of how and when the customer was shown your cancellation policy prior to purchase.","woocommerce-payments")},{key:"cancellation_rebuttal",label:(0,Y.__)("Cancellation rebuttal","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,Y.__)("A justification for why the customer's subscription was not canceled.","woocommerce-payments")}],reason:"subscription_canceled"},{key:"download_and_activity_logs",title:(0,Y.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:[(0,Y.__)("Provide at least two of the following pieces of information:","woocommerce-payments"),(0,Y.__)("• Customer's IP address and their device's geographical location at the time of purchase","woocommerce-payments"),(0,Y.__)("• Device ID and name of the device","woocommerce-payments"),(0,Y.__)("• Customer name and email address linked to their customer profile","woocommerce-payments"),(0,Y.__)("• Evidence that the customer logged into their account for your business before the transaction date","woocommerce-payments"),(0,Y.__)("• Evidence that your website or app was accessed by the cardholder for purchase or services on or after the transaction date","woocommerce-payments"),(0,Y.__)("• Evidence that the same device and card used in the disputed payment was used in a previous payment that was not disputed","woocommerce-payments")]}],reason:["fraudulent","product_not_received"],productType:"digital_product_or_service"},{key:"download_and_activity_logs",title:(0,Y.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:(0,Y.__)("Any server or activity logs showing proof that the cardholder accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.","woocommerce-payments")}],reason:["product_unacceptable","subscription_canceled","unrecognized"],productType:"digital_product_or_service",denormalized:!0},{key:"service_details",title:(0,Y.__)("Service details","woocommerce-payments"),fields:[{key:"service_date",label:(0,Y.__)("Service date","woocommerce-payments"),type:"date",description:(0,Y.__)("The date on which the cardholder received or began receiving the purchased service.","woocommerce-payments")},{key:"service_documentation",label:(0,Y.__)("Proof of service","woocommerce-payments"),type:"file",description:(0,Y.__)("Documentation showing proof that a service was provided to the cardholder. This could include a copy of a signed contract, work order, or other form of written agreement.","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","subscription_canceled","unrecognized"],productType:"offline_service"},{key:"uncategorized",title:(0,Y.__)("Additional details","woocommerce-payments"),description:(0,Y.__)("Provide any extra evidence or statements you'd like the bank to see, either as text or by uploading a document.","woocommerce-payments"),fields:[{key:"uncategorized_text",label:(0,Y.__)("Additional details","woocommerce-payments"),maxLength:2e4,type:"textarea"},{key:"uncategorized_file",label:(0,Y.__)("Additional document","woocommerce-payments"),type:"file"}]}],Fv=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var zv=function(e,t){return zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},zv(e,t)};function Bv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Uv=function(){return Uv=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Uv.apply(this,arguments)};function Vv(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function Yv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}function Hv(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Wv=n(5606),Gv=(void 0===Wv||Wv.env,"production"),qv=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Qv={measureLayout:qv(["layout","layoutId","drag"]),animation:qv(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:qv(["exit"]),drag:qv(["drag","dragControls"]),focus:qv(["whileFocus"]),hover:qv(["whileHover","onHoverStart","onHoverEnd"]),tap:qv(["whileTap","onTap","onTapStart","onTapCancel"]),pan:qv(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:qv(["whileInView","onViewportEnter","onViewportLeave"])},Kv=function(){},Zv=function(){},Jv=(0,W.createContext)({strict:!1}),Xv=Object.keys(Qv),ew=Xv.length,tw=(0,W.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),nw=(0,W.createContext)({}),ow=(0,W.createContext)(null),rw="undefined"!=typeof document,aw=rw?W.useLayoutEffect:W.useEffect,iw={current:null},sw=!1;function cw(e,t,n,o){var r,a,i=(0,W.useContext)(Jv),s=(0,W.useContext)(nw).visualElement,c=(0,W.useContext)(ow),d=(!sw&&function(){if(sw=!0,rw)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return iw.current=e.matches};e.addListener(t),t()}else iw.current=!1}(),r=Yv((0,W.useState)(iw.current),1)[0],"never"!==(a=(0,W.useContext)(tw).reducedMotion)&&("always"===a||r)),l=(0,W.useRef)(void 0);o||(o=i.renderer),!l.current&&o&&(l.current=o(e,{visualState:t,parent:s,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:d}));var u=l.current;return aw((function(){null==u||u.syncRender()})),(0,W.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),aw((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function dw(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function lw(e){return Array.isArray(e)}function uw(e){return"string"==typeof e||lw(e)}function mw(e,t,n,o,r){var a;return void 0===o&&(o={}),void 0===r&&(r={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,o,r)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,o,r)),t}function pw(e,t,n){var o=e.getProps();return mw(o,t,null!=n?n:o.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function yw(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||uw(e.initial)||uw(e.animate)||uw(e.whileHover)||uw(e.whileDrag)||uw(e.whileTap)||uw(e.whileFocus)||uw(e.exit)}function hw(e){return Boolean(yw(e)||e.variants)}function fw(e){return Array.isArray(e)?e.join(" "):e}function _w(e){var t=(0,W.useRef)(null);return null===t.current&&(t.current=e()),t.current}var gw={hasAnimatedSinceResize:!0,hasEverUpdated:!1},vw=1,ww=(0,W.createContext)({}),bw=(0,W.createContext)({}),Ew=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bv(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(W.Component);function $w(e){var t=e.preloadedFeatures,n=e.createVisualElement,o=e.projectionNodeConstructor,r=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Qv.projectionNodeConstructor=e[t]:Qv[t].Component=e[t])}(t),(0,W.forwardRef)((function(e,s){var c=function(e){var t,n=e.layoutId,o=null===(t=(0,W.useContext)(ww))||void 0===t?void 0:t.id;return o&&void 0!==n?o+"-"+n:n}(e);e=Uv(Uv({},e),{layoutId:c});var d=(0,W.useContext)(tw),l=null,u=function(e){var t=function(e,t){if(yw(e)){var n=e.initial,o=e.animate;return{initial:!1===n||uw(n)?n:void 0,animate:uw(o)?o:void 0}}return!1!==e.inherit?t:{}}(e,(0,W.useContext)(nw)),n=t.initial,o=t.animate;return(0,W.useMemo)((function(){return{initial:n,animate:o}}),[fw(n),fw(o)])}(e),m=d.isStatic?void 0:_w((function(){if(gw.hasEverUpdated)return vw++})),p=a(e,d.isStatic);return!d.isStatic&&rw&&(u.visualElement=cw(i,p,Uv(Uv({},d),e),n),function(e,t,n,o){var r,a=t.layoutId,i=t.layout,s=t.drag,c=t.dragConstraints,d=t.layoutScroll,l=(0,W.useContext)(bw);o&&n&&!(null==n?void 0:n.projection)&&(n.projection=new o(e,n.getLatestValues(),null===(r=n.parent)||void 0===r?void 0:r.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||c&&dw(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:l,layoutScroll:d}))}(m,e,u.visualElement,o||Qv.projectionNodeConstructor),l=function(e,t,n){var o=[],r=(0,W.useContext)(Jv);if(!t)return null;"production"!==Gv&&n&&r.strict&&Zv(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<ew;a++){var i=Xv[a],s=Qv[i],c=s.isEnabled,d=s.Component;c(e)&&d&&o.push(W.createElement(d,Uv({key:i},e,{visualElement:t})))}return o}(e,u.visualElement,t)),W.createElement(Ew,{visualElement:u.visualElement,props:Uv(Uv({},d),e)},l,W.createElement(nw.Provider,{value:u},r(i,e,m,function(e,t,n){return(0,W.useCallback)((function(o){var r;o&&(null===(r=e.mount)||void 0===r||r.call(e,o)),t&&(o?t.mount(o):t.unmount()),n&&("function"==typeof n?n(o):dw(n)&&(n.current=o))}),[t])}(p,u.visualElement,s),p,d.isStatic,u.visualElement)))}))}function Sw(e){function t(t,n){return void 0===n&&(n={}),$w(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,o){return n.has(o)||n.set(o,t(o)),n.get(o)}})}var xw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function kw(e){return"string"==typeof e&&!e.includes("-")&&!!(xw.indexOf(e)>-1||/[A-Z]/.test(e))}var Cw={},Nw=["","X","Y","Z"],Iw=["transformPerspective","x","y","z"];function Tw(e,t){return Iw.indexOf(e)-Iw.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Nw.forEach((function(t){return Iw.push(e+t)}))}));var Aw=new Set(Iw);function Ow(e){return Aw.has(e)}var Mw=new Set(["originX","originY","originZ"]);function Lw(e){return Mw.has(e)}function jw(e,t){var n=t.layout,o=t.layoutId;return Ow(e)||Lw(e)||(n||void 0!==o)&&(!!Cw[e]||"opacity"===e)}var Dw=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Rw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Pw(e){return e.startsWith("--")}var Fw=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const zw=(e,t)=>n=>Math.max(Math.min(n,t),e),Bw=e=>e%1?Number(e.toFixed(5)):e,Uw=/(-)?([\d]*\.?[\d])+/g,Vw=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Yw=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Hw(e){return"string"==typeof e}const Ww=e=>({test:t=>Hw(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Gw=Ww("deg"),qw=Ww("%"),Qw=Ww("px"),Kw=Ww("vh"),Zw=Ww("vw"),Jw=Object.assign(Object.assign({},qw),{parse:e=>qw.parse(e)/100,transform:e=>qw.transform(100*e)}),Xw={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eb=Object.assign(Object.assign({},Xw),{transform:zw(0,1)}),tb=Object.assign(Object.assign({},Xw),{default:1});var nb=Uv(Uv({},Xw),{transform:Math.round}),ob={borderWidth:Qw,borderTopWidth:Qw,borderRightWidth:Qw,borderBottomWidth:Qw,borderLeftWidth:Qw,borderRadius:Qw,radius:Qw,borderTopLeftRadius:Qw,borderTopRightRadius:Qw,borderBottomRightRadius:Qw,borderBottomLeftRadius:Qw,width:Qw,maxWidth:Qw,height:Qw,maxHeight:Qw,size:Qw,top:Qw,right:Qw,bottom:Qw,left:Qw,padding:Qw,paddingTop:Qw,paddingRight:Qw,paddingBottom:Qw,paddingLeft:Qw,margin:Qw,marginTop:Qw,marginRight:Qw,marginBottom:Qw,marginLeft:Qw,rotate:Gw,rotateX:Gw,rotateY:Gw,rotateZ:Gw,scale:tb,scaleX:tb,scaleY:tb,scaleZ:tb,skew:Gw,skewX:Gw,skewY:Gw,distance:Qw,translateX:Qw,translateY:Qw,translateZ:Qw,x:Qw,y:Qw,z:Qw,perspective:Qw,transformPerspective:Qw,opacity:eb,originX:Jw,originY:Jw,originZ:Qw,zIndex:nb,fillOpacity:eb,strokeOpacity:eb,numOctaves:nb};function rb(e,t,n,o){var r,a=e.style,i=e.vars,s=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var l=!1,u=!1,m=!0;for(var p in t){var y=t[p];if(Pw(p))i[p]=y;else{var h=ob[p],f=Fw(y,h);if(Ow(p)){if(l=!0,s[p]=f,c.push(p),!m)continue;y!==(null!==(r=h.default)&&void 0!==r?r:0)&&(m=!1)}else Lw(p)?(d[p]=f,u=!0):a[p]=f}}l?a.transform=function(e,t,n,o){var r=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,c=t.allowTransformNone,d=void 0===c||c,l="";a.sort(Tw);for(var u=!1,m=a.length,p=0;p<m;p++){var y=a[p];l+="".concat(Rw[y]||y,"(").concat(r[y],") "),"z"===y&&(u=!0)}return!u&&s?l+="translateZ(0)":l=l.trim(),o?l=o(r,n?"":l):d&&n&&(l="none"),l}(e,n,m,o):o?a.transform=o({},""):!t.transform&&a.transform&&(a.transform="none"),u&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,o=e.originY,r=void 0===o?"50%":o,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(r," ").concat(i)}(d))}var ab=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ib(e,t,n){for(var o in t)Dw(t[o])||jw(o,n)||(e[o]=t[o])}function sb(e,t,n){var o={},r=function(e,t,n){var o={};return ib(o,e.style||{},e),Object.assign(o,function(e,t,n){var o=e.transformTemplate;return(0,W.useMemo)((function(){var e=ab();rb(e,t,{enableHardwareAcceleration:!n},o);var r=e.vars,a=e.style;return Uv(Uv({},r),a)}),[t])}(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),o.style=r,o}var cb=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function db(e){return cb.has(e)}var lb,ub=function(e){return!db(e)};try{(lb=require("@emotion/is-prop-valid").default)&&(ub=function(e){return e.startsWith("on")?!db(e):lb(e)})}catch(Wf){}function mb(e,t,n){return"string"==typeof e?e:Qw.transform(t+n*e)}var pb={offset:"stroke-dashoffset",array:"stroke-dasharray"},yb={offset:"strokeDashoffset",array:"strokeDasharray"};function hb(e,t,n,o){var r=t.attrX,a=t.attrY,i=t.originX,s=t.originY,c=t.pathLength,d=t.pathSpacing,l=void 0===d?1:d,u=t.pathOffset,m=void 0===u?0:u;rb(e,Vv(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o),e.attrs=e.style,e.style={};var p=e.attrs,y=e.style,h=e.dimensions;p.transform&&(h&&(y.transform=p.transform),delete p.transform),h&&(void 0!==i||void 0!==s||y.transform)&&(y.transformOrigin=function(e,t,n){var o=mb(t,e.x,e.width),r=mb(n,e.y,e.height);return"".concat(o," ").concat(r)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==r&&(p.x=r),void 0!==a&&(p.y=a),void 0!==c&&function(e,t,n,o,r){void 0===n&&(n=1),void 0===o&&(o=0),void 0===r&&(r=!0),e.pathLength=1;var a=r?pb:yb;e[a.offset]=Qw.transform(-o);var i=Qw.transform(t),s=Qw.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,c,l,m,!1)}var fb=function(){return Uv(Uv({},ab()),{attrs:{}})};function _b(e,t){var n=(0,W.useMemo)((function(){var n=fb();return hb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Uv(Uv({},n.attrs),{style:Uv({},n.style)})}),[t]);if(e.style){var o={};ib(o,e.style,e),n.style=Uv(Uv({},o),n.style)}return n}function gb(e){return void 0===e&&(e=!1),function(t,n,o,r,a,i){var s=a.latestValues,c=(kw(t)?_b:sb)(n,s,i),d=function(e,t,n){var o={};for(var r in e)(ub(r)||!0===n&&db(r)||!t&&!db(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(n,"string"==typeof t,e),l=Uv(Uv(Uv({},d),c),{ref:r});return o&&(l["data-projection-id"]=o),(0,W.createElement)(t,l)}}var vb=/([a-z])([A-Z])/g,wb=function(e){return e.replace(vb,"$1-$2").toLowerCase()};function bb(e,t,n,o){var r=t.style,a=t.vars;for(var i in Object.assign(e.style,r,o&&o.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Eb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function $b(e,t,n,o){for(var r in bb(e,t,void 0,o),t.attrs)e.setAttribute(Eb.has(r)?r:wb(r),t.attrs[r])}function Sb(e){var t=e.style,n={};for(var o in t)(Dw(t[o])||jw(o,e))&&(n[o]=t[o]);return n}function xb(e){var t=Sb(e);for(var n in e)Dw(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function kb(e){return"object"==typeof e&&"function"==typeof e.start}var Cb=function(e){return Array.isArray(e)},Nb=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},Ib=function(e){return Cb(e)?e[e.length-1]||0:e};function Tb(e){var t=Dw(e)?e.get():e;return Nb(t)?t.toValue():t}function Ab(e,t,n,o){var r=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:Mb(t,n,o,r),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var Ob=function(e){return function(t,n){var o=(0,W.useContext)(nw),r=(0,W.useContext)(ow);return n?Ab(e,t,o,r):_w((function(){return Ab(e,t,o,r)}))}};function Mb(e,t,n,o){var r={},a=!1===(null==n?void 0:n.initial),i=o(e);for(var s in i)r[s]=Tb(i[s]);var c=e.initial,d=e.animate,l=yw(e),u=hw(e);t&&u&&!l&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=d||(d=t.animate));var m=a||!1===c,p=m?d:c;return p&&"boolean"!=typeof p&&!kb(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=mw(e,t);if(n){var o=n.transitionEnd;n.transition;var a=Vv(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[m?s.length-1:0]),null!==s&&(r[i]=s)}for(var i in o)r[i]=o[i]}})),r}var Lb,jb={useVisualState:Ob({scrapeMotionValuesFromProps:xb,createRenderState:fb,onMount:function(e,t,n){var o=n.renderState,r=n.latestValues;try{o.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){o.dimensions={x:0,y:0,width:0,height:0}}hb(o,r,{enableHardwareAcceleration:!1},e.transformTemplate),$b(t,o)}})},Db={useVisualState:Ob({scrapeMotionValuesFromProps:Sb,createRenderState:ab})};function Rb(e,t,n,o){return void 0===o&&(o={passive:!0}),e.addEventListener(t,n,o),function(){return e.removeEventListener(t,n)}}function Pb(e,t,n,o){(0,W.useEffect)((function(){var r=e.current;if(n&&r)return Rb(r,t,n,o)}),[e,t,n,o])}function Fb(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function zb(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Lb||(Lb={}));var Bb={pageX:0,pageY:0};function Ub(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Bb;return{x:n[t+"X"],y:n[t+"Y"]}}function Vb(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Yb(e,t){return void 0===t&&(t="page"),{point:zb(e)?Ub(e,t):Vb(e,t)}}var Hb=function(e,t){void 0===t&&(t=!1);var n,o=function(t){return e(t,Yb(t))};return t?(n=o,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):o},Wb=function(){return rw&&null===window.onpointerdown},Gb=function(){return rw&&null===window.ontouchstart},qb=function(){return rw&&null===window.onmousedown},Qb={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Kb={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Zb(e){return Wb()?e:Gb()?Kb[e]:qb()?Qb[e]:e}function Jb(e,t,n,o){return Rb(e,Zb(t),Hb(n,"pointerdown"===t),o)}function Xb(e,t,n,o){return Pb(e,Zb(t),n&&Hb(n,"pointerdown"===t),o)}function eE(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var tE=eE("dragHorizontal"),nE=eE("dragVertical");function oE(e){var t=!1;if("y"===e)t=nE();else if("x"===e)t=tE();else{var n=tE(),o=nE();n&&o?t=function(){n(),o()}:(n&&n(),o&&o())}return t}function rE(){var e=oE(!0);return!e||(e(),!1)}function aE(e,t,n){return function(o,r){var a;Fb(o)&&!rE()&&(null===(a=e.animationState)||void 0===a||a.setActive(Lb.Hover,t),null==n||n(o,r))}}var iE=function(e,t){return!!t&&(e===t||iE(e,t.parentElement))};function sE(e){return(0,W.useEffect)((function(){return function(){return e()}}),[])}const cE=(e,t)=>n=>t(e(n)),dE=(...e)=>e.reduce(cE);var lE=new Set,uE=new WeakMap,mE=new WeakMap,pE=function(e){var t;null===(t=uE.get(e.target))||void 0===t||t(e)},yE=function(e){e.forEach(pE)};var hE={some:0,all:1};function fE(e,t,n,o){var r=o.root,a=o.margin,i=o.amount,s=void 0===i?"some":i,c=o.once;(0,W.useEffect)((function(){if(e){var o={root:null==r?void 0:r.current,rootMargin:a,threshold:"number"==typeof s?s:hE[s]};return function(e,t,n){var o=function(e){var t=e.root,n=Vv(e,["root"]),o=t||document;mE.has(o)||mE.set(o,{});var r=mE.get(o),a=JSON.stringify(n);return r[a]||(r[a]=new IntersectionObserver(yE,Uv({root:t},n))),r[a]}(t);return uE.set(e,n),o.observe(e),function(){uE.delete(e),o.unobserve(e)}}(n.getInstance(),o,(function(e){var o,r=e.isIntersecting;if(t.isInView!==r&&(t.isInView=r,!c||r||!t.hasEnteredView)){r&&(t.hasEnteredView=!0),null===(o=n.animationState)||void 0===o||o.setActive(Lb.InView,r);var a=n.getProps(),i=r?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[e,r,a,s])}function _E(e,t,n,o){var r=o.fallback,a=void 0===r||r;(0,W.useEffect)((function(){var o;e&&a&&("production"!==Gv&&(o="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",lE.has(o)||(console.warn(o),lE.add(o))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var o=n.getProps().onViewportEnter;null==o||o(null),null===(e=n.animationState)||void 0===e||e.setActive(Lb.InView,!0)})))}),[e])}var gE=function(e){return function(t){return e(t),null}},vE={inView:gE((function(e){var t=e.visualElement,n=e.whileInView,o=e.onViewportEnter,r=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=(0,W.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||o||r);i.once&&s.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?_E:fE)(c,s.current,t,i)})),tap:gE((function(e){var t=e.onTap,n=e.onTapStart,o=e.onTapCancel,r=e.whileTap,a=e.visualElement,i=t||n||o||r,s=(0,W.useRef)(!1),c=(0,W.useRef)(null),d={passive:!(n||t||o||y)};function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function u(){var e;return l(),s.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Lb.Tap,!1),!rE()}function m(e,n){u()&&(iE(a.getInstance(),e.target)?null==t||t(e,n):null==o||o(e,n))}function p(e,t){u()&&(null==o||o(e,t))}function y(e,t){var o;l(),s.current||(s.current=!0,c.current=dE(Jb(window,"pointerup",m,d),Jb(window,"pointercancel",p,d)),null===(o=a.animationState)||void 0===o||o.setActive(Lb.Tap,!0),null==n||n(e,t))}Xb(a,"pointerdown",i?y:void 0,d),sE(l)})),focus:gE((function(e){var t=e.whileFocus,n=e.visualElement;Pb(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Lb.Focus,!0)}:void 0),Pb(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Lb.Focus,!1)}:void 0)})),hover:gE((function(e){var t=e.onHoverStart,n=e.onHoverEnd,o=e.whileHover,r=e.visualElement;Xb(r,"pointerenter",t||o?aE(r,!0,t):void 0,{passive:!t}),Xb(r,"pointerleave",n||o?aE(r,!1,n):void 0,{passive:!n})}))},wE=0,bE=function(){return wE++},EE=function(){return _w(bE)};function $E(){var e=(0,W.useContext)(ow);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,o=e.register,r=EE();return(0,W.useEffect)((function(){return o(r)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(r)}]:[!0]}function SE(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const xE=(e,t,n)=>Math.min(Math.max(n,e),t),kE=.001,CE=.01,NE=10,IE=.05,TE=1;const AE=12;function OE(e,t){return e*Math.sqrt(1-t*t)}const ME=["duration","bounce"],LE=["stiffness","damping","mass"];function jE(e,t){return t.some((t=>void 0!==e[t]))}function DE(e){var{from:t=0,to:n=1,restSpeed:o=2,restDelta:r}=e,a=Vv(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:c,mass:d,velocity:l,duration:u,isResolvedFromDuration:m}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!jE(e,LE)&&jE(e,ME)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,a;Kv(e<=1e3*NE,"Spring duration must be 10 seconds or less");let i=1-t;i=xE(IE,TE,i),e=xE(CE,NE,e/1e3),i<1?(r=t=>{const o=t*i,r=o*e,a=o-n,s=OE(t,i),c=Math.exp(-r);return kE-a/s*c},a=t=>{const o=t*i*e,a=o*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,c=Math.exp(-o),d=OE(Math.pow(t,2),i);return(-r(t)+kE>0?-1:1)*((a-s)*c)/d}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-kE,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let o=n;for(let n=1;n<AE;n++)o-=e(o)/t(o);return o}(r,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*i*Math.sqrt(o*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=RE,y=RE;function h(){const e=l?-l/1e3:0,o=n-t,a=c/(2*Math.sqrt(s*d)),i=Math.sqrt(s/d)/1e3;if(void 0===r&&(r=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=OE(i,a);p=r=>{const s=Math.exp(-a*i*r);return n-s*((e+a*i*o)/t*Math.sin(t*r)+o*Math.cos(t*r))},y=n=>{const r=Math.exp(-a*i*n);return a*i*r*(Math.sin(t*n)*(e+a*i*o)/t+o*Math.cos(t*n))-r*(Math.cos(t*n)*(e+a*i*o)-t*o*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(o+(e+i*o)*t);else{const t=i*Math.sqrt(a*a-1);p=r=>{const s=Math.exp(-a*i*r),c=Math.min(t*r,300);return n-s*((e+a*i*o)*Math.sinh(c)+t*o*Math.cosh(c))/t}}}return h(),{next:e=>{const t=p(e);if(m)i.done=e>=u;else{const a=1e3*y(e),s=Math.abs(a)<=o,c=Math.abs(n-t)<=r;i.done=s&&c}return i.value=i.done?n:t,i},flipTarget:()=>{l=-l,[t,n]=[n,t],h()}}}DE.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const RE=e=>0,PE=(e,t,n)=>{const o=t-e;return 0===o?1:(n-e)/o},FE=(e,t,n)=>-n*e+n*t+e,zE=(e,t)=>n=>Boolean(Hw(n)&&Yw.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),BE=(e,t,n)=>o=>{if(!Hw(o))return o;const[r,a,i,s]=o.match(Uw);return{[e]:parseFloat(r),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},UE=zw(0,255),VE=Object.assign(Object.assign({},Xw),{transform:e=>Math.round(UE(e))}),YE={test:zE("rgb","red"),parse:BE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+VE.transform(e)+", "+VE.transform(t)+", "+VE.transform(n)+", "+Bw(eb.transform(o))+")"},HE={test:zE("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),o=e.substr(5,2),r=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),o=e.substr(3,1),r=e.substr(4,1),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:YE.transform},WE={test:zE("hsl","hue"),parse:BE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+qw.transform(Bw(t))+", "+qw.transform(Bw(n))+", "+Bw(eb.transform(o))+")"};function GE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qE({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,a=0,i=0;if(t/=100){const o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=GE(s,o,e+1/3),a=GE(s,o,e),i=GE(s,o,e-1/3)}else r=a=i=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*i),alpha:o}}const QE=(e,t,n)=>{const o=e*e,r=t*t;return Math.sqrt(Math.max(0,n*(r-o)+o))},KE=[HE,YE,WE],ZE=e=>KE.find((t=>t.test(e))),JE=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,XE=(e,t)=>{let n=ZE(e),o=ZE(t);Zv(!!n,JE(e)),Zv(!!o,JE(t));let r=n.parse(e),a=o.parse(t);n===WE&&(r=qE(r),n=YE),o===WE&&(a=qE(a),o=YE);const i=Object.assign({},r);return e=>{for(const t in i)"alpha"!==t&&(i[t]=QE(r[t],a[t],e));return i.alpha=FE(r.alpha,a.alpha,e),n.transform(i)}},e$={test:e=>YE.test(e)||HE.test(e)||WE.test(e),parse:e=>YE.test(e)?YE.parse(e):WE.test(e)?WE.parse(e):HE.parse(e),transform:e=>Hw(e)?e:e.hasOwnProperty("red")?YE.transform(e):WE.transform(e)},t$="${c}",n$="${n}";function o$(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const o=e.match(Vw);o&&(n=o.length,e=e.replace(Vw,t$),t.push(...o.map(e$.parse)));const r=e.match(Uw);return r&&(e=e.replace(Uw,n$),t.push(...r.map(Xw.parse))),{values:t,numColors:n,tokenised:e}}function r$(e){return o$(e).values}function a$(e){const{values:t,numColors:n,tokenised:o}=o$(e),r=t.length;return e=>{let t=o;for(let o=0;o<r;o++)t=t.replace(o<n?t$:n$,o<n?e$.transform(e[o]):Bw(e[o]));return t}}const i$=e=>"number"==typeof e?0:e,s$={test:function(e){var t,n,o,r;return isNaN(e)&&Hw(e)&&(null!==(n=null===(t=e.match(Uw))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(r=null===(o=e.match(Vw))||void 0===o?void 0:o.length)&&void 0!==r?r:0)>0},parse:r$,createTransformer:a$,getAnimatableNone:function(e){const t=r$(e);return a$(e)(t.map(i$))}},c$=e=>"number"==typeof e;function d$(e,t){return c$(e)?n=>FE(e,t,n):e$.test(e)?XE(e,t):p$(e,t)}const l$=(e,t)=>{const n=[...e],o=n.length,r=e.map(((e,n)=>d$(e,t[n])));return e=>{for(let t=0;t<o;t++)n[t]=r[t](e);return n}},u$=(e,t)=>{const n=Object.assign(Object.assign({},e),t),o={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(o[r]=d$(e[r],t[r]));return e=>{for(const t in o)n[t]=o[t](e);return n}};function m$(e){const t=s$.parse(e),n=t.length;let o=0,r=0,a=0;for(let e=0;e<n;e++)o||"number"==typeof t[e]?o++:void 0!==t[e].hue?a++:r++;return{parsed:t,numNumbers:o,numRGB:r,numHSL:a}}const p$=(e,t)=>{const n=s$.createTransformer(t),o=m$(e),r=m$(t);return o.numHSL===r.numHSL&&o.numRGB===r.numRGB&&o.numNumbers>=r.numNumbers?dE(l$(o.parsed,r.parsed),n):(Kv(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},y$=(e,t)=>n=>FE(e,t,n);function h$(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const a=e.length;Zv(a===t.length,"Both input and output ranges must be the same length"),Zv(!o||!Array.isArray(o)||o.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const o=[],r=n||function(e){return"number"==typeof e?y$:"string"==typeof e?e$.test(e)?XE:p$:Array.isArray(e)?l$:"object"==typeof e?u$:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=dE(e,a)}o.push(a)}return o}(t,o,r),s=2===a?function([e,t],[n]){return o=>n(PE(e,t,o))}(e,i):function(e,t){const n=e.length,o=n-1;return r=>{let a=0,i=!1;if(r<=e[0]?i=!0:r>=e[o]&&(a=o-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>r||t===o);t++);a=t-1}const s=PE(e[a],e[a+1],r);return t[a](s)}}(e,i);return n?t=>s(xE(e[0],e[a-1],t)):s}const f$=e=>t=>1-e(1-t),_$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,g$=e=>t=>t*t*((e+1)*t-e),v$=4/11,w$=8/11,b$=e=>e,E$=e=>Math.pow(e,2);const $$=f$(E$),S$=_$(E$),x$=e=>1-Math.sin(Math.acos(e)),k$=f$(x$),C$=_$(k$),N$=g$(1.525),I$=f$(N$),T$=_$(N$),A$=(()=>{const e=g$(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),O$=4356/361,M$=35442/1805,L$=16061/1805,j$=e=>{if(1===e||0===e)return e;const t=e*e;return e<v$?7.5625*t:e<w$?9.075*t-9.9*e+3.4:e<.9?O$*t-M$*e+L$:10.8*e*e-20.52*e+10.72},D$=f$(j$);function R$(e,t){return e.map((()=>t||S$)).splice(0,e.length-1)}function P$({from:e=0,to:t=1,ease:n,offset:o,duration:r=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(o&&o.length===i.length?o:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),r);function c(){return h$(s,i,{ease:Array.isArray(n)?n:R$(i,n)})}let d=c();return{next:e=>(a.value=d(e),a.done=e>=r,a),flipTarget:()=>{i.reverse(),d=c()}}}const F$={keyframes:P$,spring:DE,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:o=350,restDelta:r=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const c=t+s,d=void 0===a?c:a(c);return d!==c&&(s=d-t),{next:e=>{const t=-s*Math.exp(-e/o);return i.done=!(t>r||t<-r),i.value=i.done?d:d+t,i},flipTarget:()=>{}}}},z$=1/60*1e3,B$="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),U$="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(B$())),z$);let V$=!0,Y$=!1,H$=!1;const W$={delta:0,timestamp:0},G$=["read","update","preRender","render","postRender"],q$=G$.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],o=0,r=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const c=s&&r,d=c?t:n;return a&&i.add(e),-1===d.indexOf(e)&&(d.push(e),c&&r&&(o=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:c=>{if(r)a=!0;else{if(r=!0,[t,n]=[n,t],n.length=0,o=t.length,o)for(let n=0;n<o;n++){const o=t[n];o(c),i.has(o)&&(s.schedule(o),e())}r=!1,a&&(a=!1,s.process(c))}}};return s}((()=>Y$=!0)),e)),{}),Q$=G$.reduce(((e,t)=>{const n=q$[t];return e[t]=(e,t=!1,o=!1)=>(Y$||eS(),n.schedule(e,t,o)),e}),{}),K$=G$.reduce(((e,t)=>(e[t]=q$[t].cancel,e)),{}),Z$=G$.reduce(((e,t)=>(e[t]=()=>q$[t].process(W$),e)),{}),J$=e=>q$[e].process(W$),X$=e=>{Y$=!1,W$.delta=V$?z$:Math.max(Math.min(e-W$.timestamp,40),1),W$.timestamp=e,H$=!0,G$.forEach(J$),H$=!1,Y$&&(V$=!1,U$(X$))},eS=()=>{Y$=!0,V$=!0,H$||U$(X$)},tS=()=>W$,nS=Q$;function oS(e,t,n=0){return e-t-n}const rS=e=>{const t=({delta:t})=>e(t);return{start:()=>nS.update(t,!0),stop:()=>K$.update(t)}};function aS(e){var t,n,{from:o,autoplay:r=!0,driver:a=rS,elapsed:i=0,repeat:s=0,repeatType:c="loop",repeatDelay:d=0,onPlay:l,onStop:u,onComplete:m,onRepeat:p,onUpdate:y}=e,h=Vv(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let f,_,g,{to:v}=h,w=0,b=h.duration,E=!1,$=!0;const S=function(e){if(Array.isArray(e.to))return P$;if(F$[e.type])return F$[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?P$:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?DE:P$}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,o,v))&&(g=h$([0,100],[o,v],{clamp:!1}),o=0,v=100);const x=S(Object.assign(Object.assign({},h),{from:o,to:v}));return r&&(null==l||l(),f=a((function(e){if($||(e=-e),i+=e,!E){const e=x.next(Math.max(0,i));_=e.value,g&&(_=g(_)),E=$?e.done:i<=0}null==y||y(_),E&&(0===w&&(null!=b||(b=i)),w<s?function(e,t,n,o){return o?e>=t+n:e<=-n}(i,b,d,$)&&(w++,"reverse"===c?($=w%2==0,i=function(e,t,n=0,o=!0){return o?oS(t+-e,t,n):t-(e-t)+n}(i,b,d,$)):(i=oS(i,b,d),"mirror"===c&&x.flipTarget()),E=!1,p&&p()):(f.stop(),m&&m()))})),f.start()),{stop:()=>{null==u||u(),f.stop()}}}function iS(e,t){return t?e*(1e3/t):0}var sS=function(e){return 1e3*e};const cS=(e,t)=>1-3*t+3*e,dS=(e,t)=>3*t-6*e,lS=e=>3*e,uS=(e,t,n)=>((cS(t,n)*e+dS(t,n))*e+lS(t))*e,mS=(e,t,n)=>3*cS(t,n)*e*e+2*dS(t,n)*e+lS(t),pS=.1;function yS(e,t,n,o){if(e===t&&n===o)return b$;const r=new Float32Array(11);for(let t=0;t<11;++t)r[t]=uS(t*pS,e,n);return a=>0===a||1===a?a:uS(function(t){let o=0,a=1;for(;10!==a&&r[a]<=t;++a)o+=pS;--a;const i=o+(t-r[a])/(r[a+1]-r[a])*pS,s=mS(i,e,n);return s>=.001?function(e,t,n,o){for(let r=0;r<8;++r){const r=mS(t,n,o);if(0===r)return t;t-=(uS(t,n,o)-e)/r}return t}(t,i,e,n):0===s?i:function(e,t,n,o,r){let a,i,s=0;do{i=t+(n-t)/2,a=uS(i,o,r)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,o,o+pS,e,n)}(a),t,o)}var hS={linear:b$,easeIn:E$,easeInOut:S$,easeOut:$$,circIn:x$,circInOut:C$,circOut:k$,backIn:N$,backInOut:T$,backOut:I$,anticipate:A$,bounceIn:D$,bounceInOut:e=>e<.5?.5*(1-j$(1-2*e)):.5*j$(2*e-1)+.5,bounceOut:j$},fS=function(e){if(Array.isArray(e)){Zv(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Yv(e,4);return yS(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Zv(void 0!==hS[e],"Invalid easing type '".concat(e,"'")),hS[e]):e},_S=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},gS=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!s$.test(t)||t.startsWith("url(")))},vS=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},wS=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},bS=function(){return{type:"keyframes",ease:"linear",duration:.3}},ES=function(e){return{type:"keyframes",duration:.8,values:e}},$S={x:vS,y:vS,z:vS,rotate:vS,rotateX:vS,rotateY:vS,rotateZ:vS,scaleX:wS,scaleY:wS,scale:wS,opacity:bS,backgroundColor:bS,color:bS,default:wS},SS=function(e,t){var n;return n=Cb(t)?ES:$S[e]||$S.default,Uv({to:t},n(t))};const xS=new Set(["brightness","contrast","saturate","opacity"]);function kS(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=n.match(Uw)||[];if(!o)return e;const r=n.replace(o,"");let a=xS.has(t)?1:0;return o!==n&&(a*=100),t+"("+a+r+")"}const CS=/([a-z-]*)\(.*?\)/g,NS=Object.assign(Object.assign({},s$),{getAnimatableNone:e=>{const t=e.match(CS);return t?t.map(kS).join(" "):e}});var IS=Uv(Uv({},ob),{color:e$,backgroundColor:e$,outlineColor:e$,fill:e$,stroke:e$,borderColor:e$,borderTopColor:e$,borderRightColor:e$,borderBottomColor:e$,borderLeftColor:e$,filter:NS,WebkitFilter:NS}),TS=function(e){return IS[e]};function AS(e,t){var n,o=TS(e);return o!==NS&&(o=s$),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,t)}var OS={current:!1},MS=!1;function LS(e,t,n,o,r){var a,i=RS(o,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),c=gS(e,n);"none"===s&&c&&"string"==typeof n?s=AS(e,n):jS(s)&&"string"==typeof n?s=DS(n):!Array.isArray(n)&&jS(n)&&"string"==typeof s&&(n=DS(s));var d=gS(e,s);return Kv(d===c,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),d&&c&&!1!==i.type?function(){var o={from:s,to:n,velocity:t.getVelocity(),onComplete:r,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:o,power:r=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:d,driver:l,onUpdate:u,onComplete:m,onStop:p}){let y;function h(e){return void 0!==n&&e<n||void 0!==o&&e>o}function f(e){return void 0===n?o:void 0===o||Math.abs(n-e)<Math.abs(o-e)?n:o}function _(e){null==y||y.stop(),y=aS(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var n;null==u||u(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:m,onStop:p}))}function g(e){_(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:c},e))}if(h(e))g({from:e,velocity:t,to:f(e)});else{let o=r*t+e;void 0!==d&&(o=d(o));const i=f(o),s=i===n?-1:1;let l,u;const m=e=>{l=u,u=e,t=iS(e-l,tS().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};_({type:"decay",from:e,velocity:t,timeConstant:a,power:r,restDelta:c,modifyTarget:d,onUpdate:h(o)?m:void 0})}return{stop:()=>null==y?void 0:y.stop()}}(Uv(Uv({},o),i)):aS(Uv(Uv({},function(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Hv([],Yv(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Vv(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Uv(Uv({},e),SS(n,t.to))),Uv(Uv({},t),function(e){var t=e.ease,n=e.times,o=e.yoyo,r=e.flip,a=e.loop,i=Vv(e,["ease","times","yoyo","flip","loop"]),s=Uv({},i);return n&&(s.offset=n),i.duration&&(s.duration=sS(i.duration)),i.repeatDelay&&(s.repeatDelay=sS(i.repeatDelay)),t&&(s.ease=_S(t)?t.map(fS):fS(t)),"tween"===i.type&&(s.type="keyframes"),(o||a||r)&&(Kv(!MS,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),MS=!0,o?s.repeatType="reverse":a?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=a||o||r||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;o.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,o,a=Ib(n);return t.set(a),r(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(o=null==i?void 0:i.onComplete)||void 0===o||o.call(i),{stop:function(){}}}}function jS(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function DS(e){return"number"==typeof e?0:AS("",e)}function RS(e,t){return e[t]||e.default||e}function PS(e,t,n,o){return void 0===o&&(o={}),OS.current&&(o={type:!1}),t.start((function(r){var a,i,s=LS(e,t,n,o,r),c=function(e,t){var n,o;return null!==(o=null!==(n=(RS(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==o?o:0}(o,e),d=function(){return i=s()};return c?a=window.setTimeout(d,sS(c)):d(),function(){clearTimeout(a),null==i||i.stop()}}))}var FS=function(e){return/^\-?\d*\.?\d+$/.test(e)},zS=function(e){return/^0[^.\s]+$/.test(e)};function BS(e,t){-1===e.indexOf(t)&&e.push(t)}function US(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var VS=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return BS(this.subscriptions,e),function(){return US(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(var r=0;r<o;r++){var a=this.subscriptions[r];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),YS=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new VS,this.velocityUpdateSubscribers=new VS,this.renderSubscribers=new VS,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var o=tS(),r=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=r,n.lastUpdated=a,nS.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return nS.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?iS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function HS(e){return new YS(e)}var WS=function(e){return function(t){return t.test(e)}},GS=[Xw,Qw,qw,Gw,Zw,Kw,{test:function(e){return"auto"===e},parse:function(e){return e}}],qS=function(e){return GS.find(WS(e))},QS=Hv(Hv([],Yv(GS),!1),[e$,s$],!1),KS=function(e){return QS.find(WS(e))};function ZS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,HS(n))}function JS(e,t){if(t)return(t[e]||t.default||t).from}function XS(e,t,n){var o;void 0===n&&(n={});var r=pw(e,t,n.custom),a=(r||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=r?function(){return ex(e,r,n)}:function(){return Promise.resolve()},c=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var r=i.delayChildren,a=void 0===r?0:r,s=i.staggerChildren,c=i.staggerDirection;return function(e,t,n,o,r,a){void 0===n&&(n=0),void 0===o&&(o=0),void 0===r&&(r=1);var i=[],s=(e.variantChildren.size-1)*o,c=1===r?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),s-e*o};return Array.from(e.variantChildren).sort(tx).forEach((function(e,o){i.push(XS(e,t,Uv(Uv({},a),{delay:n+c(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+o,s,c,n)}:function(){return Promise.resolve()},d=i.when;if(d){var l=Yv("beforeChildren"===d?[s,c]:[c,s],2),u=l[0],m=l[1];return u().then(m)}return Promise.all([s(),c(n.delay)])}function ex(e,t,n){var o,r=void 0===n?{}:n,a=r.delay,i=void 0===a?0:a,s=r.transitionOverride,c=r.type,d=e.makeTargetAnimatable(t),l=d.transition,u=void 0===l?e.getDefaultTransition():l,m=d.transitionEnd,p=Vv(d,["transition","transitionEnd"]);s&&(u=s);var y=[],h=c&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[c]);for(var f in p){var _=e.getValue(f),g=p[f];if(!(!_||void 0===g||h&&nx(h,f))){var v=Uv({delay:i},u);e.shouldReduceMotion&&Ow(f)&&(v=Uv(Uv({},v),{type:!1,delay:0}));var w=PS(f,_,g,v);y.push(w)}}return Promise.all(y).then((function(){m&&function(e,t){var n=pw(e,t),o=n?e.makeTargetAnimatable(n,!1):{},r=o.transitionEnd,a=void 0===r?{}:r;o.transition;var i=Vv(o,["transitionEnd","transition"]);for(var s in i=Uv(Uv({},i),a))ZS(e,s,Ib(i[s]))}(e,m)}))}function tx(e,t){return e.sortNodePosition(t)}function nx(e,t){var n=e.protectedKeys,o=e.needsAnimating,r=n.hasOwnProperty(t)&&!0!==o[t];return o[t]=!1,r}var ox=[Lb.Animate,Lb.InView,Lb.Focus,Lb.Hover,Lb.Tap,Lb.Drag,Lb.Exit],rx=Hv([],Yv(ox),!1).reverse(),ax=ox.length;function ix(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,o=t.options;return function(e,t,n){var o;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var r=t.map((function(t){return XS(e,t,n)}));o=Promise.all(r)}else if("string"==typeof t)o=XS(e,t,n);else{var a="function"==typeof t?pw(e,t,n.custom):t;o=ex(e,a,n)}return o.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,o)})))}}(e),n=function(){var e;return(e={})[Lb.Animate]=sx(!0),e[Lb.InView]=sx(),e[Lb.Hover]=sx(),e[Lb.Tap]=sx(),e[Lb.Drag]=sx(),e[Lb.Focus]=sx(),e[Lb.Exit]=sx(),e}(),o={},r=!0,a=function(t,n){var o=pw(e,n);if(o){o.transition;var r=o.transitionEnd,a=Vv(o,["transition","transitionEnd"]);t=Uv(Uv(Uv({},t),a),r)}return t};function i(i,s){for(var c,d=e.getProps(),l=e.getVariantContext(!0)||{},u=[],m=new Set,p={},y=1/0,h=function(t){var o=rx[t],h=n[o],f=null!==(c=d[o])&&void 0!==c?c:l[o],_=uw(f),g=o===s?h.isActive:null;!1===g&&(y=t);var v=f===l[o]&&f!==d[o]&&_;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys=Uv({},p),!h.isActive&&null===g||!f&&!h.prevProp||kb(f)||"boolean"==typeof f)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!lw(t)&&!SE(t,e)}(h.prevProp,f),b=w||o===s&&h.isActive&&!v&&_||t>y&&_,E=Array.isArray(f)?f:[f],$=E.reduce(a,{});!1===g&&($={});var S=h.prevResolvedValues,x=void 0===S?{}:S,k=Uv(Uv({},x),$),C=function(e){b=!0,m.delete(e),h.needsAnimating[e]=!0};for(var N in k){var I=$[N],T=x[N];p.hasOwnProperty(N)||(I!==T?Cb(I)&&Cb(T)?!SE(I,T)||w?C(N):h.protectedKeys[N]=!0:void 0!==I?C(N):m.add(N):void 0!==I&&m.has(N)?C(N):h.protectedKeys[N]=!0)}h.prevProp=f,h.prevResolvedValues=$,h.isActive&&(p=Uv(Uv({},p),$)),r&&e.blockInitialAnimation&&(b=!1),b&&!v&&u.push.apply(u,Hv([],Yv(E.map((function(e){return{animation:e,options:Uv({type:o},i)}}))),!1))},f=0;f<ax;f++)h(f);if(o=Uv({},p),m.size){var _={};m.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(_[t]=n)})),u.push({animation:_})}var g=Boolean(u.length);return r&&!1===d.initial&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(u):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:i,setActive:function(t,o,r){var a;if(n[t].isActive===o)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,o)})),n[t].isActive=o;var s=i(r,t);for(var c in n)n[c].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function sx(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var cx={animation:gE((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=ix(t)),kb(n)&&(0,W.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:gE((function(e){var t=e.custom,n=e.visualElement,o=Yv($E(),2),r=o[0],a=o[1],i=(0,W.useContext)(ow);(0,W.useEffect)((function(){var e,o;n.isPresent=r;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Lb.Exit,!r,{custom:null!==(o=null==i?void 0:i.custom)&&void 0!==o?o:t});!r&&(null==s||s.then(a))}),[r])}))};const dx=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),lx=e=>dx(e)&&e.hasOwnProperty("z"),ux=(e,t)=>Math.abs(e-t);function mx(e,t){if(c$(e)&&c$(t))return ux(e,t);if(dx(e)&&dx(t)){const n=ux(e.x,t.x),o=ux(e.y,t.y),r=lx(e)&&lx(t)?ux(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2)+Math.pow(r,2))}}var px=function(){function e(e,t,n){var o=this,r=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=fx(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=mx(e.offset,{x:0,y:0})>=3;if(t||n){var r=e.point,a=tS().timestamp;o.history.push(Uv(Uv({},r),{timestamp:a}));var i=o.handlers,s=i.onStart,c=i.onMove;t||(s&&s(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=yx(t,o.transformPagePoint),Fb(e)&&0===e.buttons?o.handlePointerUp(e,t):nS.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,a=n.onSessionEnd,i=fx(yx(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,i),a&&a(e,i)},!(zb(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=r;var a=yx(Yb(e),this.transformPagePoint),i=a.point,s=tS().timestamp;this.history=[Uv(Uv({},i),{timestamp:s})];var c=t.onSessionStart;c&&c(e,fx(a,this.history)),this.removeListeners=dE(Jb(window,"pointermove",this.handlePointerMove),Jb(window,"pointerup",this.handlePointerUp),Jb(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),K$.update(this.updatePoint)},e}();function yx(e,t){return t?{point:t(e.point)}:e}function hx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fx(e,t){var n=e.point;return{point:n,delta:hx(n,gx(t)),offset:hx(n,_x(t)),velocity:vx(t,.1)}}function _x(e){return e[0]}function gx(e){return e[e.length-1]}function vx(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,o=null,r=gx(e);n>=0&&(o=e[n],!(r.timestamp-o.timestamp>sS(t)));)n--;if(!o)return{x:0,y:0};var a=(r.timestamp-o.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(r.x-o.x)/a,y:(r.y-o.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function wx(e){return e.max-e.min}function bx(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),mx(e,t)<n}function Ex(e,t,n,o){void 0===o&&(o=.5),e.origin=o,e.originPoint=FE(t.min,t.max,e.origin),e.scale=wx(n)/wx(t),(bx(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=FE(n.min,n.max,e.origin)-e.originPoint,(bx(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $x(e,t,n,o){Ex(e.x,t.x,n.x,null==o?void 0:o.originX),Ex(e.y,t.y,n.y,null==o?void 0:o.originY)}function Sx(e,t,n){e.min=n.min+t.min,e.max=e.min+wx(t)}function xx(e,t,n){e.min=t.min-n.min,e.max=e.min+wx(t)}function kx(e,t,n){xx(e.x,t.x,n.x),xx(e.y,t.y,n.y)}function Cx(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Nx(e,t){var n,o=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(n=Yv([r,o],2))[0],r=n[1]),{min:o,max:r}}var Ix=.35;function Tx(e,t,n){return{min:Ax(e,t),max:Ax(e,n)}}function Ax(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Ox=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Mx=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Lx(e){return[e("x"),e("y")]}function jx(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Dx(e){return void 0===e||1===e}function Rx(e){var t=e.scale,n=e.scaleX,o=e.scaleY;return!Dx(t)||!Dx(n)||!Dx(o)}function Px(e){return Rx(e)||Fx(e.x)||Fx(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Fx(e){return e&&"0%"!==e}function zx(e,t,n){return n+t*(e-n)}function Bx(e,t,n,o,r){return void 0!==r&&(e=zx(e,r,o)),zx(e,n,o)+t}function Ux(e,t,n,o,r){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Bx(e.min,t,n,o,r),e.max=Bx(e.max,t,n,o,r)}function Vx(e,t){var n=t.x,o=t.y;Ux(e.x,n.translate,n.scale,n.originPoint),Ux(e.y,o.translate,o.scale,o.originPoint)}function Yx(e,t){e.min=e.min+t,e.max=e.max+t}function Hx(e,t,n){var o=Yv(n,3),r=o[0],a=o[1],i=o[2],s=void 0!==t[i]?t[i]:.5,c=FE(e.min,e.max,s);Ux(e,t[r],t[a],c,t.scale)}var Wx=["x","scaleX","originX"],Gx=["y","scaleY","originY"];function qx(e,t){Hx(e.x,t,Wx),Hx(e.y,t,Gx)}function Qx(e,t){return jx(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}var Kx=new WeakMap,Zx=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Mx(),this.visualElement=e}return e.prototype.start=function(e,t){var n=this,o=(void 0===t?{}:t).snapToCursor,r=void 0!==o&&o;!1!==this.visualElement.isPresent&&(this.panSession=new px(e,{onSessionStart:function(e){n.stopAnimation(),r&&n.snapToCursor(Yb(e,"page").point)},onStart:function(e,t){var o,r=n.getProps(),a=r.drag,i=r.dragPropagation,s=r.onDragStart;(!a||i||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=oE(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Lx((function(e){var t,o,r=n.getAxisMotionValue(e).get()||0;if(qw.test(r)){var a=null===(o=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===o?void 0:o.actual[e];a&&(r=wx(a)*(parseFloat(r)/100))}n.originPoint[e]=r})),null==s||s(e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(Lb.Drag,!0))},onMove:function(e,t){var o=n.getProps(),r=o.dragPropagation,a=o.dragDirectionLock,i=o.onDirectionLock,s=o.onDrag;if(r||n.openGlobalLock){var c=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(c),void(null!==n.currentDirection&&(null==i||i(n.currentDirection)));n.updateAxis("x",t.point,c),n.updateAxis("y",t.point,c),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var o=t.velocity;this.startAnimation(o);var r=this.getProps().onDragEnd;null==r||r(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Lb.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var o=this.getProps().drag;if(n&&Jx(e,o,this.currentDirection)){var r=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var o=t.min,r=t.max;return void 0!==o&&e<o?e=n?FE(o,e,n.min):Math.max(e,o):void 0!==r&&e>r&&(e=n?FE(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),r.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,o=t.dragElastic,r=(this.visualElement.projection||{}).layout,a=this.constraints;n&&dw(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!r)&&function(e,t){var n=t.top,o=t.left,r=t.bottom,a=t.right;return{x:Cx(e.x,o,a),y:Cx(e.y,n,r)}}(r.actual,n),this.elastic=function(e){return void 0===e&&(e=Ix),!1===e?e=0:!0===e&&(e=Ix),{x:Tx(e,"left","right"),y:Tx(e,"top","bottom")}}(o),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lx((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!dw(t))return!1;var o=t.current;Zv(null!==o,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var r=this.visualElement.projection;if(!r||!r.layout)return!1;var a=function(e,t,n){var o=Qx(e,n),r=t.scroll;return r&&(Yx(o.x,r.x),Yx(o.y,r.y)),o}(o,r.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:Nx(e.x,t.x),y:Nx(e.y,t.y)}}(r.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=jx(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),o=n.drag,r=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,c=n.onDragTransitionEnd,d=this.constraints||{},l=Lx((function(n){var c;if(Jx(n,o,t.currentDirection)){var l=null!==(c=null==d?void 0:d[n])&&void 0!==c?c:{};s&&(l={min:0,max:0});var u=a?200:1e6,m=a?40:1e7,p=Uv(Uv({type:"inertia",velocity:r?e[n]:0,bounceStiffness:u,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},i),l);return t.startAxisValueAnimation(n,p)}}));return Promise.all(l).then(c)},e.prototype.startAxisValueAnimation=function(e,t){return PS(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Lx((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,o="_drag"+e.toUpperCase();return this.visualElement.getProps()[o]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Lx((function(n){if(Jx(n,t.getProps().drag,t.currentDirection)){var o=t.visualElement.projection,r=t.getAxisMotionValue(n);if(o&&o.layout){var a=o.layout.actual[n],i=a.min,s=a.max;r.set(e[n]-FE(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),o=n.drag,r=n.dragConstraints,a=this.visualElement.projection;if(dw(r)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};Lx((function(e){var n,o,r,a,s,c=t.getAxisMotionValue(e);if(c){var d=c.get();i[e]=(n={min:d,max:d},o=t.constraints[e],r=.5,a=wx(n),(s=wx(o))>a?r=PE(o.min,o.max-a,n.min):a>s&&(r=PE(n.min,n.max-s,o.min)),xE(0,1,r))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Lx((function(e){if(Jx(e,o,null)){var n=t.getAxisMotionValue(e),r=t.constraints[e],a=r.min,s=r.max;n.set(FE(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Kx.set(this.visualElement,this);var n=Jb(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),o=n.drag,r=n.dragListener;o&&(void 0===r||r)&&t.start(e)})),o=function(){dw(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},r=this.visualElement.projection,a=r.addEventListener("measure",o);r&&!r.layout&&(null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout()),o();var i=Rb(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return r.addEventListener("didUpdate",(function(e){var n=e.delta,o=e.hasLayoutChanged;t.isDragging&&o&&(Lx((function(e){var o=t.getAxisMotionValue(e);o&&(t.originPoint[e]+=n[e].translate,o.set(o.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,r=void 0!==o&&o,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,c=void 0!==s&&s,d=e.dragElastic,l=void 0===d?Ix:d,u=e.dragMomentum,m=void 0===u||u;return Uv(Uv({},e),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:c,dragElastic:l,dragMomentum:m})},e}();function Jx(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Xx={pan:gE((function(e){var t=e.onPan,n=e.onPanStart,o=e.onPanEnd,r=e.onPanSessionStart,a=e.visualElement,i=t||n||o||r,s=(0,W.useRef)(null),c=(0,W.useContext)(tw).transformPagePoint,d={onSessionStart:r,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,o&&o(e,t)}};(0,W.useEffect)((function(){null!==s.current&&s.current.updateHandlers(d)})),Xb(a,"pointerdown",i&&function(e){s.current=new px(e,d,{transformPagePoint:c})}),sE((function(){return s.current&&s.current.end()}))})),drag:gE((function(e){var t=e.dragControls,n=e.visualElement,o=_w((function(){return new Zx(n)}));(0,W.useEffect)((function(){return t&&t.subscribe(o)}),[o,t]),(0,W.useEffect)((function(){return o.addListeners()}),[o])}))},ek=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],tk=function(e){var t=e.treeType,n=void 0===t?"":t,o=e.build,r=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,l=e.sortNodePosition,u=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,p=e.props,y=e.presenceId,h=e.blockInitialAnimation,f=e.visualState,_=e.shouldReduceMotion;void 0===t&&(t={});var g,v,w=!1,b=f.latestValues,E=f.renderState,$=function(){var e=ek.map((function(){return new VS})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){ek.forEach((function(o){var r,a="on"+o,i=e[a];null===(r=t[o])||void 0===r||r.call(t),i&&(t[o]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+ek[t]]=function(t){return e.add(t)},n["notify"+ek[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Hv([],Yv(t),!1))}})),n}(),S=new Map,x=new Map,k={},C=Uv({},b);function N(){g&&w&&(I(),s(g,E,p.style,R.projection))}function I(){o(R,E,b,t,p)}function T(){$.notifyUpdate(b)}function A(e,t){var n=t.onChange((function(t){b[e]=t,p.onUpdate&&nS.update(T,!1,!0)})),o=t.onRenderRequest(R.scheduleRender);x.set(e,(function(){n(),o()}))}var O=u(p);for(var M in O){var L=O[M];void 0!==b[M]&&Dw(L)&&L.set(b[M],!1)}var j=yw(p),D=hw(p),R=Uv(Uv({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,presenceId:y,shouldReduceMotion:_,variantChildren:D?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==m?void 0:m.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=R.current=e,R.projection&&R.projection.mount(e),D&&m&&!j&&(v=null==m?void 0:m.addVariantChild(R)),S.forEach((function(e,t){return A(t,e)})),null==m||m.children.add(R),R.setProps(p)},unmount:function(){var e;null===(e=R.projection)||void 0===e||e.unmount(),K$.update(T),K$.render(N),x.forEach((function(e){return e()})),null==v||v(),null==m||m.children.delete(R),$.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=R.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return l&&n===e.treeType?l(R.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return D?R:null==m?void 0:m.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return b[e]},setStaticValue:function(e,t){return b[e]=t},getLatestValues:function(){return b},setVisibility:function(e){R.isVisible!==e&&(R.isVisible=e,R.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(R,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){R.hasValue(e)&&R.removeValue(e),S.set(e,t),b[e]=t.get(),A(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=x.get(e))||void 0===t||t(),x.delete(e),delete b[e],d(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=HS(t),R.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=b[e])&&void 0!==n?n:c(g,e,t)},setBaseTarget:function(e,t){C[e]=t},getBaseTarget:function(e){if(r){var t=r(p,e);if(void 0!==t&&!Dw(t))return t}return C[e]}},$),{build:function(){return I(),E},scheduleRender:function(){nS.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&R.scheduleRender(),p=e,$.updatePropListeners(e),k=function(e,t,n){var o;for(var r in t){var a=t[r],i=n[r];if(Dw(a))e.addValue(r,a);else if(Dw(i))e.addValue(r,HS(a));else if(i!==a)if(e.hasValue(r)){var s=e.getValue(r);!s.hasAnimated&&s.set(a)}else e.addValue(r,HS(null!==(o=e.getStaticValue(r))&&void 0!==o?o:a))}for(var r in n)void 0===t[r]&&e.removeValue(r);return t}(R,u(p),k)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==m?void 0:m.getVariantContext();if(!j){var t=(null==m?void 0:m.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},o=0;o<ok;o++){var r=nk[o],a=p[r];(uw(a)||!1===a)&&(n[r]=a)}return n}});return R}},nk=Hv(["initial"],Yv(ox),!1),ok=nk.length;function rk(e){return"string"==typeof e&&e.startsWith("var(--")}var ak=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ik(e,t,n){void 0===n&&(n=1),Zv(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var o=Yv(function(e){var t=ak.exec(e);if(!t)return[,];var n=Yv(t,3);return[n[1],n[2]]}(e),2),r=o[0],a=o[1];if(r){var i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():rk(a)?ik(a,t,n+1):a}}var sk,ck=new Set(["width","height","top","left","right","bottom","x","y"]),dk=function(e){return ck.has(e)},lk=function(e,t){e.set(t,!1),e.set(t)},uk=function(e){return e===Xw||e===Qw};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(sk||(sk={}));var mk=function(e,t){return parseFloat(e.split(", ")[t])},pk=function(e,t){return function(n,o){var r=o.transform;if("none"===r||!r)return 0;var a=r.match(/^matrix3d\((.+)\)$/);if(a)return mk(a[1],t);var i=r.match(/^matrix\((.+)\)$/);return i?mk(i[1],e):0}},yk=new Set(["x","y","z"]),hk=Iw.filter((function(e){return!yk.has(e)})),fk={width:function(e,t){var n=e.x,o=t.paddingLeft,r=void 0===o?"0":o,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:function(e,t){var n=e.y,o=t.paddingTop,r=void 0===o?"0":o,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,o=t.top;return parseFloat(o)+(n.max-n.min)},right:function(e,t){var n=e.x,o=t.left;return parseFloat(o)+(n.max-n.min)},x:pk(4,13),y:pk(5,14)};function _k(e,t,n,o){return function(e){return Object.keys(e).some(dk)}(t)?function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=Uv({},t),o=Uv({},o);var r=Object.keys(t).filter(dk),a=[],i=!1,s=[];if(r.forEach((function(r){var c=e.getValue(r);if(e.hasValue(r)){var d,l=n[r],u=qS(l),m=t[r];if(Cb(m)){var p=m.length,y=null===m[0]?1:0;l=m[y],u=qS(l);for(var h=y;h<p;h++)d?Zv(qS(m[h])===d,"All keyframes must be of the same type"):(d=qS(m[h]),Zv(d===u||uk(u)&&uk(d),"Keyframes must be of the same dimension as the current value"))}else d=qS(m);if(u!==d)if(uk(u)&&uk(d)){var f=c.get();"string"==typeof f&&c.set(parseFloat(f)),"string"==typeof m?t[r]=parseFloat(m):Array.isArray(m)&&d===Qw&&(t[r]=m.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==d?void 0:d.transform)&&(0===l||0===m)?0===l?c.set(d.transform(l)):t[r]=u.transform(m):(i||(a=function(e){var t=[];return hk.forEach((function(n){var o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),s.push(r),o[r]=void 0!==o[r]?o[r]:t[r],lk(c,m))}})),s.length){var c=s.indexOf("height")>=0?window.pageYOffset:null,d=function(e,t,n){var o=t.measureViewportBox(),r=t.getInstance(),a=getComputedStyle(r),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=fk[e](o,a)})),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);lk(o,s[n]),e[n]=fk[n](c,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Yv(t,2),o=n[0],r=n[1];e.getValue(o).set(r)})),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:d,transitionEnd:o}}return{target:t,transitionEnd:o}}(e,t,n,o):{target:t,transitionEnd:o}}var gk={treeType:"dom",readValueFromInstance:function(e,t){if(Ow(t)){var n=TS(t);return n&&n.default||0}var o,r=(o=e,window.getComputedStyle(o));return(Pw(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Qx(e,t.transformPagePoint)},resetTransform:function(e,t,n){var o=n.transformTemplate;t.style.transform=o?o({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,o=t.style;delete n[e],delete o[e]},makeTargetAnimatable:function(e,t,n,o){var r=n.transformValues;void 0===o&&(o=!0);var a=t.transition,i=t.transitionEnd,s=Vv(t,["transition","transitionEnd"]),c=function(e,t,n){var o,r,a={};for(var i in e)a[i]=null!==(o=JS(i,t))&&void 0!==o?o:null===(r=n.getValue(i))||void 0===r?void 0:r.get();return a}(s,a||{},e);if(r&&(i&&(i=r(i)),s&&(s=r(s)),c&&(c=r(c))),o){!function(e,t,n){var o,r,a,i,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var d=0;d<c;d++){var l=s[d],u=t[l],m=null;Array.isArray(u)&&(m=u[0]),null===m&&(m=null!==(r=null!==(o=n[l])&&void 0!==o?o:e.readValue(l))&&void 0!==r?r:t[l]),null!=m&&("string"==typeof m&&(FS(m)||zS(m))?m=parseFloat(m):!KS(m)&&s$.test(u)&&(m=AS(l,u)),e.addValue(l,HS(m)),null!==(a=(i=n)[l])&&void 0!==a||(i[l]=m),e.setBaseTarget(l,m))}}(e,s,c);var d=function(e,t,n,o){var r=function(e,t,n){var o,r=Vv(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:r,transitionEnd:n};for(var i in n&&(n=Uv({},n)),e.forEachValue((function(e){var t=e.get();if(rk(t)){var n=ik(t,a);n&&e.set(n)}})),r){var s=r[i];if(rk(s)){var c=ik(s,a);c&&(r[i]=c,n&&(null!==(o=n[i])&&void 0!==o||(n[i]=s)))}}return{target:r,transitionEnd:n}}(e,t,o);return _k(e,t=r.target,n,o=r.transitionEnd)}(e,s,c,i);i=d.transitionEnd,s=d.target}return Uv({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Sb,build:function(e,t,n,o,r){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),rb(t,n,o,r.transformTemplate)},render:bb},vk=tk(gk),wk=tk(Uv(Uv({},gk),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ow(t)?(null===(n=TS(t))||void 0===n?void 0:n.default)||0:(t=Eb.has(t)?t:wb(t),e.getAttribute(t))},scrapeMotionValuesFromProps:xb,build:function(e,t,n,o,r){hb(t,n,o,r.transformTemplate)},render:$b})),bk=function(e,t){return kw(e)?wk(t,{enableHardwareAcceleration:!1}):vk(t,{enableHardwareAcceleration:!0})};function Ek(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var $k={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Qw.test(e))return e;e=parseFloat(e)}var n=Ek(e,t.target.x),o=Ek(e,t.target.y);return"".concat(n,"% ").concat(o,"%")}},Sk="_$css",xk={correct:function(e,t){var n=t.treeScale,o=t.projectionDelta,r=e,a=e.includes("var("),i=[];a&&(e=e.replace(ak,(function(e){return i.push(e),Sk})));var s=s$.parse(e);if(s.length>5)return r;var c=s$.createTransformer(e),d="number"!=typeof s[0]?1:0,l=o.x.scale*n.x,u=o.y.scale*n.y;s[0+d]/=l,s[1+d]/=u;var m=FE(l,u,.5);"number"==typeof s[2+d]&&(s[2+d]/=m),"number"==typeof s[3+d]&&(s[3+d]/=m);var p=c(s);if(a){var y=0;p=p.replace(Sk,(function(){var e=i[y];return y++,e}))}return p}},kk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bv(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,o=n.visualElement,r=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=o.projection;e=Ck,Object.assign(Cw,e),s&&((null==r?void 0:r.group)&&r.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Uv(Uv({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),gw.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,o=n.layoutDependency,r=n.visualElement,a=n.drag,i=n.isPresent,s=r.projection;return s?(s.isPresent=i,a||e.layoutDependency!==o||void 0===o?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||nS.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,o=e.switchLayoutGroup,r=t.projection;r&&(r.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(r),(null==o?void 0:o.deregister)&&o.deregister(r))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(W.Component),Ck={borderRadius:Uv(Uv({},$k),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:$k,borderTopRightRadius:$k,borderBottomLeftRadius:$k,borderBottomRightRadius:$k,boxShadow:xk},Nk={measureLayout:function(e){var t=Yv($E(),2),n=t[0],o=t[1],r=(0,W.useContext)(ww);return W.createElement(kk,Uv({},e,{layoutGroup:r,switchLayoutGroup:(0,W.useContext)(bw),isPresent:n,safeToRemove:o}))}},Ik=["TopLeft","TopRight","BottomLeft","BottomRight"],Tk=Ik.length,Ak=function(e){return"string"==typeof e?parseFloat(e):e},Ok=function(e){return"number"==typeof e||Qw.test(e)};function Mk(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Lk=Dk(0,.5,k$),jk=Dk(.5,.95,b$);function Dk(e,t,n){return function(o){return o<e?0:o>t?1:n(PE(e,t,o))}}function Rk(e,t){e.min=t.min,e.max=t.max}function Pk(e,t){Rk(e.x,t.x),Rk(e.y,t.y)}function Fk(e,t,n,o,r){return e=zx(e-=t,1/n,o),void 0!==r&&(e=zx(e,1/r,o)),e}function zk(e,t,n,o,r){var a=Yv(n,3),i=a[0],s=a[1],c=a[2];!function(e,t,n,o,r,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===o&&(o=.5),void 0===a&&(a=e),void 0===i&&(i=e),qw.test(t)&&(t=parseFloat(t),t=FE(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=FE(a.min,a.max,o);e===a&&(s-=t),e.min=Fk(e.min,t,n,s,r),e.max=Fk(e.max,t,n,s,r)}}(e,t[i],t[s],t[c],t.scale,o,r)}var Bk=["x","scaleX","originX"],Uk=["y","scaleY","originY"];function Vk(e,t,n,o){zk(e.x,t,Bk,null==n?void 0:n.x,null==o?void 0:o.x),zk(e.y,t,Uk,null==n?void 0:n.y,null==o?void 0:o.y)}function Yk(e){return 0===e.translate&&1===e.scale}function Hk(e){return Yk(e.x)&&Yk(e.y)}function Wk(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Gk=function(){function e(){this.members=[]}return e.prototype.add=function(e){BS(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(US(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var o=n;o>=0;o--){var r=this.members[o];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,o=this.lead;e!==o&&(this.prevLead=o,this.lead=e,e.show(),o&&(o.instance&&o.scheduleRender(),e.scheduleRender(),e.resumeFrom=o,t&&(e.resumeFrom.preserveOpacity=!0),o.snapshot&&(e.snapshot=o.snapshot,e.snapshot.latestValues=o.animationValues||o.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&o.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,o,r,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(o=e.resumingFrom)||void 0===o?void 0:(r=o.options).onExitComplete)||void 0===a||a.call(r)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),qk="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Qk(e,t,n){var o=e.x.translate/t.x,r=e.y.translate/t.y,a="translate3d(".concat(o,"px, ").concat(r,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var i=n.rotate,s=n.rotateX,c=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),c&&(a+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,l=e.y.scale*t.y;return(a+="scale(".concat(d,", ").concat(l,")"))===qk?"none":a}var Kk=function(e,t){return e.depth-t.depth},Zk=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){BS(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){US(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Kk),this.isDirty=!1,this.children.forEach(e)},e}();function Jk(e){var t=e.attachResizeListener,n=e.defaultParent,o=e.measureScroll,r=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,o){var r=this;void 0===t&&(t={}),void 0===o&&(o=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){r.isUpdating&&(r.isUpdating=!1,r.clearAllSnapshots())},this.updateProjection=function(){r.nodes.forEach(aC),r.nodes.forEach(iC)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=o?o.root||o:this,this.path=o?Hv(Hv([],Yv(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zk)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new VS),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.eventHandlers.get(e);null==o||o.notify.apply(o,Hv([],Yv(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var o,r=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var d,l=function(){return r.root.updateBlockedByResize=!1};t(e,(function(){r.root.updateBlockedByResize=!0,clearTimeout(d),d=window.setTimeout(l,250),gw.hasAnimatedSinceResize&&(gw.hasAnimatedSinceResize=!1,r.nodes.forEach(rC))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&c&&(i||s)&&this.addEventListener("didUpdate",(function(e){var t,n,o,a,i,s=e.delta,d=e.hasLayoutChanged,l=e.hasRelativeTargetChanged,u=e.layout;if(r.isTreeAnimationBlocked())return r.target=void 0,void(r.relativeTarget=void 0);var m=null!==(n=null!==(t=r.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==n?n:mC,p=c.getProps(),y=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,f=!r.targetLayout||!Wk(r.targetLayout,u)||l,_=!d&&l;if((null===(o=r.resumeFrom)||void 0===o?void 0:o.instance)||_||d&&(f||!r.currentAnimation)){r.resumeFrom&&(r.resumingFrom=r.resumeFrom,r.resumingFrom.resumingFrom=void 0),r.setAnimationOrigin(s,_);var g=Uv(Uv({},RS(m,"layout")),{onPlay:y,onComplete:h});c.shouldReduceMotion&&(g.delay=0,g.type=!1),r.startAnimation(g)}else d||0!==r.animationProgress||r.finishAnimation(),r.isLead()&&(null===(i=(a=r.options).onExitComplete)||void 0===i||i.call(a));r.targetLayout=u}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,K$.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sC))},e.prototype.willUpdate=function(e){var t,n,o;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var r=0;r<this.path.length;r++){var a=this.path[r];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options,s=i.layoutId,c=i.layout;if(void 0!==s||c){var d=null===(o=this.options.visualElement)||void 0===o?void 0:o.getProps().transformTemplate;this.prevTransformTemplateValue=null==d?void 0:d(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(nC);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(pC),this.potentialNodes.clear()),this.nodes.forEach(oC),this.nodes.forEach(Xk),this.nodes.forEach(eC),this.clearAllSnapshots(),Z$.update(),Z$.preRender(),Z$.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(tC),this.sharedNodes.forEach(cC)},e.prototype.scheduleUpdateProjection=function(){nS.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;nS.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));hC(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();hC(n);var o=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=Mx(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==o?void 0:o.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=r(this.instance),this.scroll=o(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Hk(this.projectionDelta),o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,r=null==o?void 0:o(this.latestValues,""),i=r!==this.prevTransformTemplateValue;t&&(n||Px(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return Mx();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Yx(t.x,n.x),Yx(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=Mx();Pk(t,e);for(var n=0;n<this.path.length;n++){var o=this.path[n],r=o.scroll,a=o.options,i=o.isScrollRoot;if(o!==this.root&&r&&a.layoutScroll){if(i){Pk(t,e);var s=this.root.scroll;s&&(Yx(t.x,-s.x),Yx(t.y,-s.y))}Yx(t.x,r.x),Yx(t.y,r.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=Mx();Pk(n,e);for(var o=0;o<this.path.length;o++){var r=this.path[o];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&qx(n,{x:-r.scroll.x,y:-r.scroll.y}),Px(r.latestValues)&&qx(n,r.latestValues)}return Px(this.latestValues)&&qx(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=Mx();Pk(n,e);for(var o=0;o<this.path.length;o++){var r=this.path[o];if(r.instance&&Px(r.latestValues)){Rx(r.latestValues)&&r.updateSnapshot();var a=Mx();Pk(a,r.measure()),Vk(n,r.latestValues,null===(t=r.snapshot)||void 0===t?void 0:t.layout,a)}}return Px(this.latestValues)&&Vk(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Uv(Uv(Uv({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,o,r=this.options,a=r.layout,i=r.layoutId;this.layout&&(a||i)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Mx(),this.relativeTargetOrigin=Mx(),kx(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Pk(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Mx(),this.targetWithTransforms=Mx()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,o=this.relativeParent.target,Sx(t.x,n.x,o.x),Sx(t.y,n.y,o.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Pk(this.target,this.layout.actual),Vx(this.target,this.targetDelta)):Pk(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Mx(),this.relativeTargetOrigin=Mx(),kx(this.relativeTargetOrigin,this.target,this.relativeParent.target),Pk(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Px(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,o=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||o)){var r=this.getLead();Pk(this.layoutCorrected,this.layout.actual),function(e,t,n,o){var r,a;void 0===o&&(o=!1);var i=n.length;if(i){var s,c;t.x=t.y=1;for(var d=0;d<i;d++)c=(s=n[d]).projectionDelta,"contents"!==(null===(a=null===(r=s.instance)||void 0===r?void 0:r.style)||void 0===a?void 0:a.display)&&(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&qx(e,{x:-s.scroll.x,y:-s.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Vx(e,c)),o&&Px(s.latestValues)&&qx(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==r);var a=r.target;if(a){this.projectionDelta||(this.projectionDelta=Ox(),this.projectionDeltaWithTransform=Ox());var i=this.treeScale.x,s=this.treeScale.y,c=this.projectionTransform;$x(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Qk(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,o;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(o=this.getStack())||void 0===o||o.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,o=this;void 0===t&&(t=!1);var r=this.snapshot,a=(null==r?void 0:r.latestValues)||{},i=Uv({},this.latestValues),s=Ox();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c=Mx(),d=null==r?void 0:r.isShared,l=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,u=Boolean(d&&!l&&!0===this.options.crossfade&&!this.path.some(uC));this.animationProgress=0,this.mixTargetDelta=function(t){var n,r=t/1e3;dC(s.x,e.x,r),dC(s.y,e.y,r),o.setTargetDelta(s),o.relativeTarget&&o.relativeTargetOrigin&&o.layout&&(null===(n=o.relativeParent)||void 0===n?void 0:n.layout)&&(kx(c,o.layout.actual,o.relativeParent.layout.actual),function(e,t,n,o){lC(e.x,t.x,n.x,o),lC(e.y,t.y,n.y,o)}(o.relativeTarget,o.relativeTargetOrigin,c,r)),d&&(o.animationValues=i,function(e,t,n,o,r,a){var i,s,c,d;r?(e.opacity=FE(0,null!==(i=n.opacity)&&void 0!==i?i:1,Lk(o)),e.opacityExit=FE(null!==(s=t.opacity)&&void 0!==s?s:1,0,jk(o))):a&&(e.opacity=FE(null!==(c=t.opacity)&&void 0!==c?c:1,null!==(d=n.opacity)&&void 0!==d?d:1,o));for(var l=0;l<Tk;l++){var u="border".concat(Ik[l],"Radius"),m=Mk(t,u),p=Mk(n,u);void 0===m&&void 0===p||(m||(m=0),p||(p=0),0===m||0===p||Ok(m)===Ok(p)?(e[u]=Math.max(FE(Ak(m),Ak(p),o),0),(qw.test(p)||qw.test(m))&&(e[u]+="%")):e[u]=p)}(t.rotate||n.rotate)&&(e.rotate=FE(t.rotate||0,n.rotate||0,o))}(i,a,o.latestValues,r,u,l)),o.root.scheduleUpdateProjection(),o.scheduleRender(),o.animationProgress=r},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,o=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(K$.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nS.update((function(){gw.hasAnimatedSinceResize=!0,o.currentAnimation=function(e,t,n){void 0===n&&(n={});var o=Dw(0)?0:HS(0);return PS("",o,1e3,n),{stop:function(){return o.stop()},isAnimating:function(){return o.isAnimating()}}}(0,0,Uv(Uv({},e),{onUpdate:function(t){var n;o.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),o.completeAnimation()}})),o.resumingFrom&&(o.resumingFrom.currentAnimation=o.currentAnimation),o.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,o=e.layout,r=e.latestValues;t&&n&&o&&(Pk(t,n),qx(t,r),$x(this.projectionDeltaWithTransform,this.layoutCorrected,t,r))},e.prototype.registerSharedNode=function(e,t){var n,o,r;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gk),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(r=null===(o=t.options.initialPromotionConfig)||void 0===o?void 0:o.shouldPreserveFollowOpacity)||void 0===r?void 0:r.call(o,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,o=t.transition,r=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,r),n&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},o=0;o<Nw.length;o++){var r="rotate"+Nw[o];e.getStaticValue(r)&&(t=!0,n[r]=e.getStaticValue(r),e.setStaticValue(r,0))}if(t){for(var r in null==e||e.syncRender(),n)e.setStaticValue(r,n[r]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,o,r,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var c=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Tb(e.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none",s;var d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){var l={};return this.options.layoutId&&(l.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,l.pointerEvents=Tb(e.pointerEvents)||""),this.hasProjected&&!Px(this.latestValues)&&(l.transform=c?c({},""):"none",this.hasProjected=!1),l}var u=d.animationValues||d.latestValues;this.applyTransformsToTarget(),s.transform=Qk(this.projectionDeltaWithTransform,this.treeScale,u),c&&(s.transform=c(u,s.transform));var m=this.projectionDelta,p=m.x,y=m.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*y.origin,"% 0"),d.animationValues?s.opacity=d===this?null!==(r=null!==(o=u.opacity)&&void 0!==o?o:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=d===this?null!==(a=u.opacity)&&void 0!==a?a:"":null!==(i=u.opacityExit)&&void 0!==i?i:0,Cw)if(void 0!==u[h]){var f=Cw[h],_=f.correct,g=f.applyTo,v=_(u[h],d);if(g)for(var w=g.length,b=0;b<w;b++)s[g[b]]=v;else s[h]=v}return this.options.layoutId&&(s.pointerEvents=d===this?Tb(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(nC),this.root.sharedNodes.clear()},e}()}function Xk(e){e.updateLayout()}function eC(e){var t,n,o,r,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,c=i.measured;"size"===e.options.animationType?Lx((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=wx(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Lx((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=wx(s[e]);t.max=t.min+n}));var d=Ox();$x(d,s,a.layout);var l=Ox();a.isShared?$x(l,e.applyTransform(c,!0),a.measured):$x(l,s,a.layout);var u=!Hk(d),m=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,y=p.snapshot,h=p.layout;if(y&&h){var f=Mx();kx(f,a.layout,y.layout);var _=Mx();kx(_,s,h.actual),Wk(f,_)||(m=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:l,layoutDelta:d,hasLayoutChanged:u,hasRelativeTargetChanged:m})}else e.isLead()&&(null===(r=(o=e.options).onExitComplete)||void 0===r||r.call(o));e.options.transition=void 0}function tC(e){e.clearSnapshot()}function nC(e){e.clearMeasurements()}function oC(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function rC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function aC(e){e.resolveTargetDelta()}function iC(e){e.calcProjection()}function sC(e){e.resetRotation()}function cC(e){e.removeLeadSnapshot()}function dC(e,t,n){e.translate=FE(t.translate,0,n),e.scale=FE(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lC(e,t,n,o){e.min=FE(t.min,n.min,o),e.max=FE(t.max,n.max,o)}function uC(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var mC={duration:.45,ease:[.4,0,.1,1]};function pC(e,t){for(var n=e.root,o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}var r=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));r&&e.mount(r,!0)}function yC(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function hC(e){yC(e.x),yC(e.y)}var fC=Jk({attachResizeListener:function(e,t){return Rb(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),_C={current:void 0},gC=Jk({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!_C.current){var e=new fC(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),_C.current=e}return _C.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),vC=Uv(Uv(Uv(Uv({},cx),vE),Xx),Nk),wC=Sw((function(e,t){return function(e,t,n,o,r){var a=t.forwardMotionProps,i=void 0!==a&&a,s=kw(e)?jb:Db;return Uv(Uv({},s),{preloadedFeatures:n,useRender:gb(i),createVisualElement:o,projectionNodeConstructor:r,Component:e})}(e,t,vC,bk,gC)}));function bC(){var e=(0,W.useRef)(!1);return aw((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var EC=function(e){var t=e.children,n=e.initial,o=e.isPresent,r=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=_w($C),c=EE(),d=(0,W.useMemo)((function(){return{id:c,initial:n,isPresent:o,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),a=o.next();!a.done;a=o.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}null==r||r()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),i?void 0:[o]);return(0,W.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[o]),W.useEffect((function(){!o&&!s.size&&(null==r||r())}),[o]),W.createElement(ow.Provider,{value:d},t)};function $C(){return new Map}var SC=function(e){return e.key||""},xC=function(e){var t=e.children,n=e.custom,o=e.initial,r=void 0===o||o,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,c=void 0===s||s,d=Yv(function(){var e=bC(),t=Yv((0,W.useState)(0),2),n=t[0],o=t[1],r=(0,W.useCallback)((function(){e.current&&o(n+1)}),[n]);return[(0,W.useCallback)((function(){return nS.postRender(r)}),[r]),n]}(),1),l=d[0],u=(0,W.useContext)(ww).forceRender;u&&(l=u);var m=bC(),p=function(e){var t=[];return W.Children.forEach(e,(function(e){(0,W.isValidElement)(e)&&t.push(e)})),t}(t),y=p,h=new Set,f=(0,W.useRef)(y),_=(0,W.useRef)(new Map).current,g=(0,W.useRef)(!0);if(aw((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=SC(e);t.set(n,e)}))}(p,_),f.current=y})),sE((function(){g.current=!0,_.clear(),h.clear()})),g.current)return W.createElement(W.Fragment,null,y.map((function(e){return W.createElement(EC,{key:SC(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c},e)})));y=Hv([],Yv(y),!1);for(var v=f.current.map(SC),w=p.map(SC),b=v.length,E=0;E<b;E++){var $=v[E];-1===w.indexOf($)&&h.add($)}return i&&h.size&&(y=[]),h.forEach((function(e){if(-1===w.indexOf(e)){var t=_.get(e);if(t){var o=v.indexOf(e);y.splice(o,0,W.createElement(EC,{key:SC(t),isPresent:!1,onExitComplete:function(){_.delete(e),h.delete(e);var t=f.current.findIndex((function(t){return t.key===e}));if(f.current.splice(t,1),!h.size){if(f.current=p,!1===m.current)return;l(),a&&a()}},custom:n,presenceAffectsLayout:c},t))}}})),y=y.map((function(e){var t=e.key;return h.has(t)?e:W.createElement(EC,{key:SC(e),isPresent:!0,presenceAffectsLayout:c},e)})),"production"!==Gv&&i&&y.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),W.createElement(W.Fragment,null,h.size?y:y.map((function(e){return(0,W.cloneElement)(e)})))};function kC(e){let{className:t,label:n,onFilesDrop:o,onHTMLDrop:r,onDrop:a}=e;const[i,s]=(0,q.useState)(),[c,d]=(0,q.useState)(),[l,u]=(0,q.useState)(),m=(0,jo.__experimentalUseDropZone)({onDrop(e){const t=(0,Do.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n&&r?r(n):t.length&&o?o(t):a&&a(e)},onDragStart(e){s(!0);let t="default";(0,mt.includes)(e.dataTransfer.types,"text/html")?t="html":((0,mt.includes)(e.dataTransfer.types,"Files")||(0,Do.getFilesFromDataTransfer)(e.dataTransfer).length>0)&&(t="file"),u(t)},onDragEnd(){s(!1),u()},onDragEnter(){d(!0)},onDragLeave(){d(!1)}}),p=(0,jo.useReducedMotion)();let y;c&&(y=(0,q.createElement)(wC.div,{variants:{hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},initial:p?"show":"hidden",animate:"show",exit:p?"show":"exit",className:"components-drop-zone__content"},(0,q.createElement)(wC.div,{variants:{hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}}},(0,q.createElement)(Us,{icon:Fv,className:"components-drop-zone__content-icon"}),(0,q.createElement)("span",{className:"components-drop-zone__content-text"},n||(0,Y.__)("Drop files to upload")))));const h=Lo()("components-drop-zone",t,{"is-active":(i||c)&&("file"===l&&o||"html"===l&&r||"default"===l&&a),"is-dragging-over-document":i,"is-dragging-over-element":c,[`is-dragging-${l}`]:!!l});return(0,q.createElement)("div",{ref:m,className:h},p?y:(0,q.createElement)(xC,null,y))}const CC=function(e){let{accept:t,children:n,multiple:o=!1,onChange:r,onClick:a,render:i,...s}=e;const c=(0,q.useRef)(),d=()=>{c.current.click()},l=i?i({openFileDialog:d}):(0,q.createElement)(jr,Q({onClick:d},s),n);return(0,q.createElement)("div",{className:"components-form-file-upload"},l,(0,q.createElement)("input",{type:"file",ref:c,multiple:o,style:{display:"none"},accept:t,onChange:r,onClick:a,"data-testid":"form-file-upload-input"}))};var NC=n(5339),IC=n(9230),TC=n(7568);const AC=({error:e})=>W.createElement("span",{className:"upload-message is-destructive"},e),OC=({fileName:e,showPreview:t})=>{const n=wcpaySettings.restUrl+Si.substring(1)+"/file/"+e;return W.createElement(W.Fragment,null,t&&e&&W.createElement("img",{src:n,style:{maxWidth:100,marginTop:12},alt:e}),!t&&e&&W.createElement("span",{className:"upload-message"},e))},MC=({field:e,fileName:t,disabled:n,isDone:o,isLoading:r,accept:a,error:i,onFileChange:s,onFileRemove:c,help:d,showPreview:l,uploadButtonLabel:u,type:m="file"})=>{const p=i&&0<i.length||!1,y="image"===m?NC.A:IC.A,h=o&&!p?Ca.A:y;return W.createElement(ah,{id:`form-file-upload-base-control-${e.key}`,label:e.label,help:d},W.createElement(kC,{onFilesDrop:t=>s(e.key,t[0])}),W.createElement("div",{className:"file-upload"},W.createElement(CC,{accept:a,onChange:t=>{s(e.key,(t.target.files||new FileList)[0])},render:({openFileDialog:t})=>W.createElement(jr,{id:`form-file-upload-${e.key}`,className:o&&!p?"is-success":"",isSecondary:!0,isDestructive:p,isBusy:r,disabled:n||r,icon:W.createElement(h,{size:18}),onClick:e=>((e,t)=>{var n;const o=null===(n=e.target.closest(".components-form-file-upload"))||void 0===n?void 0:n.querySelector('input[type="file"]');o&&(o.value=""),t()})(e,t)},u||(0,Y.__)("Upload file","woocommerce-payments"))}),p?W.createElement(AC,{error:i}):W.createElement(OC,{fileName:t,showPreview:l}),o&&!n?W.createElement(jr,{className:"delete-uploaded-file-button","aria-label":(0,Y.__)("Remove file","woocommerce-payments"),icon:W.createElement(TC.A,{size:18}),onClick:()=>c(e.key)}):null))},LC=({field:e,fileName:t,showPreview:n})=>W.createElement(ah,{id:`form-file-upload-base-control-${e.key}`,label:e.label},W.createElement(OC,{fileName:t?`: ${t}`:(0,Y.__)(": Evidence file was not uploaded","woocommerce-payments"),showPreview:n})),jC=[{key:"created",label:(0,Y.__)("Dispute date","woocommerce-payments")},{key:"amount",label:(0,Y.__)("Disputed amount","woocommerce-payments")},{key:"dueBy",label:(0,Y.__)("Respond by","woocommerce-payments")},{key:"reason",label:(0,Y.__)("Reason","woocommerce-payments")},{key:"order",label:(0,Y.__)("Order","woocommerce-payments")},{key:"customer",label:(0,Y.__)("Customer","woocommerce-payments")},{key:"transactionId",label:(0,Y.__)("Transaction ID","woocommerce-payments")}],DC=e=>{const t="object"==typeof e.charge?e.charge.id:e.charge;return W.createElement(Qr.Link,{href:jy(t,"transactions")},t)},RC=e=>{const t=$l[e.reason];return t?t.display:Mi(e.reason)},PC=({dispute:e,isLoading:t})=>{const n=t?{created:(0,Y.__)("Created date","woocommerce-payments"),amount:(0,Y.__)("Amount","woocommerce-payments"),dueBy:(0,Y.__)("Due by date","woocommerce-payments"),reason:(0,Y.__)("Dispute reason","woocommerce-payments"),order:(0,Y.__)("Order link","woocommerce-payments"),customer:(0,Y.__)("Customer name","woocommerce-payments"),transactionId:(0,Y.__)("Transaction link","woocommerce-payments")}:{created:(0,$i.dateI18n)("M j, Y",Ei()(1e3*e.created).toISOString()),amount:Fc(e.amount||0,e.currency||"USD"),dueBy:e.evidence_details?(0,$i.dateI18n)("M j, Y - g:iA",Ei()(1e3*e.evidence_details.due_by).toISOString()):null,reason:RC(e),order:e.order?W.createElement(lf,{order:e.order}):null,customer:"object"==typeof e.charge?e.charge.billing_details.name:null,transactionId:DC(e)};return W.createElement("div",{className:"wcpay-dispute-info"},jC.map((({key:e,label:o})=>null==n[e]?null:W.createElement("div",{key:e,className:"wcpay-dispute-info-item"},W.createElement(U_,{isLoading:t,display:"inline"},W.createElement("span",{className:"wcpay-dispute-info-key"},`${o}: `),W.createElement("span",{className:"wcpay-dispute-info-value"},n[e]))))))},FC=e=>{const t=(0,q.useRef)();return(0,q.useEffect)((()=>{t.current=e})),(0,q.useCallback)((()=>{const e=t.current();if(!e)return;const n=e=>{e.preventDefault(),e.returnValue=""};window.addEventListener("beforeunload",n);const o=(0,Ay.getHistory)().block((t=>(window.confirm(e)&&(o(),t.retry()),!0)));return()=>{window.removeEventListener("beforeunload",n),o()}}),[])},zC="__product_type",BC=e=>Array.isArray(e)?(0,mt.flatten)(e.map(((e,t)=>[e,(0,Ta.jsx)("br",{},t)]))):e,UC=e=>{const{fields:t,evidence:n,onChange:o,onFileChange:r,onFileRemove:a,onSave:i,readOnly:s}=e,{createErrorNotice:c}=(0,Js.useDispatch)("core/notices"),{getNotices:d}=(0,Js.useSelect)("core/notices");if(!t||!t.length)return null;const l=e=>({label:e.label,value:n[e.key]||"",onChange:t=>{if(((e,t)=>!(e.maxLength&&t.length>=e.maxLength||Object.values({...n,[e.key]:t}).reduce(((e,t)=>"string"==typeof t?e+t.length:e),0)>=15e4))(e,t))o(e.key,t);else{const e=(0,Y.__)("Reached maximum character count for evidence","woocommerce-payments");d().some((t=>t.content===e))||c(e)}},disabled:s,help:s&&BC(e.description)}),u=e=>{const t=n.metadata&&n.metadata[e.key]||"",o=n.isUploading&&(n.isUploading[e.key]||!1),i=n.uploadingErrors&&(n.uploadingErrors[e.key]||""),c=!o&&t.length>0;return{field:e,fileName:t,accept:".pdf, image/png, image/jpeg",onFileChange:r,onFileRemove:a,disabled:s,isLoading:o,isDone:c,error:i,help:s&&BC(e.description)}},m=e=>{const t=s&&!n[e.key];switch(e.type){case"file":return s?(0,Ta.jsx)(LC,{...u(e)},e.key):(0,Ta.jsx)(MC,{...u(e)},e.key);case"text":return(0,Ta.jsx)(Ov,{label:e.label,value:t?(0,Y.__)("No information submitted","woocommerce-payments"):null,disabled:t,...t?{}:l(e)},e.key);case"date":return(0,Ta.jsx)(Ov,{label:e.label,value:t?(0,Y.__)("Date not submitted","woocommerce-payments"):null,disabled:t,...t?{}:l(e)},e.key);default:return t?"":(0,Ta.jsx)(Rv,{maxLength:e.maxLength,...l(e)},e.key)}},p=t.map((e=>(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsx)(df,{children:e.title}),(0,Ta.jsxs)(Oo,{children:[!s&&e.description&&(0,Ta.jsx)("p",{children:e.description}),e.fields.map(m)]})]},e.key))),y=(0,Y.__)("Are you sure you're ready to submit this evidence? Evidence submissions are final.","woocommerce-payments");return(0,Ta.jsxs)(Ta.Fragment,{children:[p,s?null:(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)("p",{children:(0,Y.__)("When you submit your evidence, we'll format it and send it to the cardholder's bank, then email you once the dispute has been decided.","woocommerce-payments")}),(0,Ta.jsxs)("p",{children:[(0,Ta.jsx)("strong",{children:(0,Y.__)("Evidence submission is final.","woocommerce-payments")})," ",(0,Y.__)("You can also save this evidence for later instead of submitting it immediately.","woocommerce-payments")," ",(0,Ta.jsx)("strong",{children:(0,Y.__)("We will automatically submit any saved evidence at the due date.","woocommerce-payments")})]})]}),(0,Ta.jsx)(K_,{children:(0,Ta.jsxs)("div",{children:[(0,Ta.jsx)(jr,{isPrimary:!0,onClick:()=>window.confirm(y)&&i(!0),children:(0,Y.__)("Submit evidence","woocommerce-payments")}),(0,Ta.jsx)(jr,{isSecondary:!0,onClick:()=>i(!1),children:(0,Y.__)("Save for later","woocommerce-payments")})]})})]})]})},VC=e=>{const{isLoading:t,dispute:n={},productType:o,onChangeProductType:r,...a}=e,i=n&&"needs_response"!==n.status&&"warning_needs_response"!==n.status,s=!t&&n.id,c=(0,Ta.jsx)(da,{className:"wcpay-test-mode-notice",status:"informational",isDismissible:!1,children:(0,Y.__)("Evidence is already submitted. Details below are read-only.","woocommerce-payments")});return t||s?(0,Ta.jsxs)(Ma,{isNarrow:!0,className:"wcpay-dispute-evidence",children:[(0,Ta.jsx)(rc,{currentPage:"disputes",isDetailsView:!0}),i&&!t&&c,(0,Ta.jsx)(Oa,{children:(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsx)(df,{children:(0,Ta.jsx)(U_,{isLoading:t,value:(0,Y.__)("Challenge dispute","woocommerce-payments")})}),(0,Ta.jsx)(Oo,{children:(0,Ta.jsx)(PC,{dispute:n,isLoading:t})})]})}),(0,Ta.jsx)(Oa,{children:(0,Ta.jsxs)(So,{size:"large",children:[(0,Ta.jsx)(df,{children:(0,Ta.jsx)(U_,{isLoading:t,value:(0,Y.__)("Product type","woocommerce-payments")})}),(0,Ta.jsx)(Oo,{children:(0,Ta.jsx)(B_,{isLoading:t,numLines:2,children:(0,Ta.jsx)(Kh,{value:o,onChange:r,"data-testid":"dispute-challenge-product-type-selector",options:[{label:(0,Y.__)("Select one…","woocommerce-payments"),disabled:!0,value:""},{label:(0,Y.__)("Physical product","woocommerce-payments"),value:"physical_product"},{label:(0,Y.__)("Digital product or service","woocommerce-payments"),value:"digital_product_or_service"},{label:(0,Y.__)("Offline service","woocommerce-payments"),value:"offline_service"},{label:(0,Y.__)("Multiple product types","woocommerce-payments"),value:"multiple"}],disabled:i})})})]})}),!t&&(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(UC,{...a,readOnly:i})})]}):(0,Ta.jsxs)(Ma,{isNarrow:!0,className:"wcpay-dispute-details",children:[(0,Ta.jsx)(rc,{currentPage:"disputes",isDetailsView:!0}),(0,Ta.jsx)("div",{children:(0,Y.__)("Dispute not loaded","woocommerce-payments")})]})},YC=({query:e})=>{const t=`/wc/v3/payments/disputes/${e.id}`,[n,o]=(0,q.useState)(),[r,a]=(0,q.useState)(!1),[i,s]=(0,q.useState)({}),{createSuccessNotice:c,createErrorNotice:d,createInfoNotice:l}=(0,Js.useDispatch)("core/notices"),u=!n||(0,mt.isMatchWith)(n.evidence,i,((e,t)=>{if(null===e&&!t)return!0})),m=FC((()=>{if(!u)return(0,Y.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments")}));(0,q.useEffect)(m,[u,m]),(0,q.useEffect)((()=>{(async()=>{a(!0);try{o(await Wr()({path:t}))}finally{a(!1)}})()}),[a,o,t]);const p=(e,t)=>s((n=>({...n,[e]:t}))),y=(e={})=>o((t=>(0,mt.merge)({},t,e))),{updateDispute:h}=(()=>{const{updateDispute:e}=(0,Js.useDispatch)(xi);return{updateDispute:e}})(),f=(e=>{if(!e)return"";let t=e.metadata[zC]||"";return!t&&e.evidence_details&&e.evidence_details.has_evidence&&(t="multiple"),t})(n),_=n&&n.reason,g=(0,q.useMemo)((()=>((e,t)=>e&&t?"multiple"===t?Pv.map((e=>e.denormalized?null:{...e,fields:e.fields.filter((e=>!e.denormalized))})).filter(Boolean):Pv.map((n=>{const o=n.reason&&!(0,mt.includes)(n.reason,e),r=n.productType&&n.productType!==t;if(o||r)return null;const a=n.fields.filter((e=>!e.productType||e.productType===t));return{...n,fields:a}})).filter(Boolean):[])(_,f)),[_,f]);return(0,Ta.jsx)(VC,{isLoading:r,dispute:n,evidence:n?{...n.evidence,...i,metadata:n.metadata||{},isUploading:n.isUploading||{},uploadingErrors:n.uploadingErrors||{}}:{},onChange:p,onFileChange:async(e,t)=>{if(!t)return;if((e=>{if(45e5<(n.fileSize?Object.values(n.fileSize):[]).reduce(((e,t)=>e+t),0)+e)return l((0,Y.__)("The files you've attached to this dispute as evidence will exceed the limit for a dispute's total size. Try using smaller files as evidence. Hint: if you've attached images, you might want to try providing them in lower resolutions.","woocommerce-payments")),!0})(t.size))return;oa("wcpay_dispute_file_upload_started",{type:e});const o=new FormData;o.append("file",t),o.append("purpose","dispute_evidence"),y({metadata:{[e]:""},isUploading:{[e]:!0},uploadingErrors:{[e]:""}}),p(e,"");try{const t=await Wr()({path:"/wc/v3/payments/file",method:"post",body:o});y({metadata:{[e]:t.filename},isUploading:{[e]:!1},fileSize:{[e]:t.size}}),p(e,t.id),oa("wcpay_dispute_file_upload_success",{type:e})}catch(t){oa("wcpay_dispute_file_upload_failed",{message:t.message}),y({metadata:{[e]:""},isUploading:{[e]:!1},uploadingErrors:{[e]:t.message}}),p(e,"")}},onFileRemove:e=>{p(e,""),y({metadata:{[e]:""},uploadingErrors:{[e]:""},fileSize:{[e]:0}})},onSave:async r=>{if((0,mt.some)(n.isUploading))l((0,Y.__)("Please wait until file upload is finished","woocommerce-payments"));else{a(!0);try{oa(r?"wcpay_dispute_submit_evidence_clicked":"wcpay_dispute_save_evidence_clicked");const{metadata:a}=n,d=await Wr()({path:t,method:"post",data:{evidence:{...n.evidence,...i},metadata:a,submit:r}});o(d),(t=>{const n=t?(0,Y.__)("Evidence submitted!","woocommerce-payments"):(0,Y.__)("Evidence saved!","woocommerce-payments"),o=Ii({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"});oa(t?"wcpay_dispute_submit_evidence_success":"wcpay_dispute_save_evidence_success"),c(n,{actions:[{label:t?(0,Y.__)("View submitted evidence","woocommerce-payments"):(0,Y.__)("Return to evidence submission","woocommerce-payments"),url:Ii({page:"wc-admin",path:"/payments/disputes/challenge",id:e.id})}]}),window.location.replace(o)})(r),s({}),h(d)}catch(e){((e,t)=>{oa(t?"wcpay_dispute_submit_evidence_failed":"wcpay_dispute_save_evidence_failed");const n=t?(0,Y.__)("Failed to submit evidence. (%s)","woocommerce-payments"):(0,Y.__)("Failed to save evidence. (%s)","woocommerce-payments");d((0,Y.sprintf)(n,e.message))})(e,r)}finally{a(!1)}}},productType:f,onChangeProductType:e=>{oa("wcpay_dispute_product_selected",{selection:e}),y({metadata:{[zC]:e}})},fields:g})},HC=(0,W.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null}),WC=({children:e,defaultActiveTask:t="",defaultCompletedTasks:n={}})=>{const[o,r]=(0,W.useState)(t),[a,i]=(0,W.useState)(n),s=(0,W.useMemo)((()=>({activeTask:o,setActiveTask:r,completedTasks:a,setCompletedTasks:i})),[o,r,a]);return(0,Ta.jsx)(HC.Provider,{value:s,children:e})},GC=({children:e,id:t=""})=>{const{activeTask:n,completedTasks:o,setActiveTask:r,setCompletedTasks:a}=(0,W.useContext)(HC),i=(0,W.useMemo)((()=>({isActive:t===n,setActive:()=>r(t),setCompleted:(e=!0,n="")=>{a((n=>({...n,[t]:e}))),n&&r(n)},taskId:t,isCompleted:Boolean(o[t])})),[r,a,n,o,t]);return(0,Ta.jsx)(Nc.Provider,{value:i,children:e})},qC=({children:e})=>{const t=(0,W.useRef)(!0),n=(0,W.useRef)(null),{activeTask:o}=(0,W.useContext)(HC);return(0,W.useLayoutEffect)((()=>{if(!0===t.current)return void(t.current=!1);if(!n.current)return;const e=n.current.querySelector(".wcpay-wizard-task.is-active .wcpay-wizard-task__headline");e&&e.focus()}),[o]),(0,Ta.jsx)("div",{ref:n,children:(0,Ta.jsx)("ul",{children:e})})};const QC=e=>{var{className:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className"]);const{isActive:o}=(0,W.useContext)(Nc);return G().createElement("div",Object.assign({className:Lo()("task-collapsible-body",t,{"is-active":o})},n))},KC=({children:e,title:t,index:n,className:o,visibleDescription:r})=>{const{isCompleted:a,isActive:i}=(0,W.useContext)(Nc);return G().createElement("li",{className:Lo()("wcpay-wizard-task",o,{"is-completed":a,"is-active":i})},G().createElement("div",{className:"wcpay-wizard-task__top-border"}),G().createElement("div",{className:"wcpay-wizard-task__headline",tabIndex:-1},G().createElement("div",{className:"wcpay-wizard-task__icon-wrapper"},G().createElement("div",{className:"wcpay-wizard-task__icon-text"},n),G().createElement(Us,{icon:La,className:"wcpay-wizard-task__icon-checkmark"})),G().createElement("span",{className:"wcpay-wizard-task__title"},t)),r&&!i&&G().createElement("span",{className:Lo()("wcpay-wizard-task__visible-description-element","is-muted-color")},r),G().createElement("div",{className:"wcpay-wizard-task__body"},e))},ZC=({Icon:e,label:t})=>e?(0,Ta.jsxs)("span",{className:Lo()("woocommerce-payments__payment-method-icon"),children:[(0,Ta.jsx)(e,{}),t&&(0,Ta.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null,JC=n.p+"../assets/images/payment-methods/bancontact.svg?ver=439d3f59385fa74e675e",XC=n.p+"../assets/images/payment-methods/eps.svg?ver=7bd9ed62d1b21ca35ceb",eN=n.p+"../assets/images/payment-methods/giropay.svg?ver=1100c024fff0503b41f7",tN=n.p+"../assets/images/payment-methods/sofort.svg?ver=b6780ad95a25d8b7b634",nN=n.p+"../assets/images/payment-methods/sepa-debit.svg?ver=9e42854526214016710d",oN=n.p+"../assets/images/payment-methods/p24.svg?ver=85e0cf9bc6526516d85f",rN=n.p+"../assets/images/payment-methods/ideal.svg?ver=c2cc71cf802e14c4f042",aN=n.p+"../assets/images/payment-methods/bank-debit.svg?ver=d0e134b0067cbbf6403f",iN=n.p+"../assets/images/payment-methods/affirm-badge.svg?ver=1151b0d701a5ea6ebcae",sN=n.p+"../assets/images/payment-methods/afterpay-logo.svg?ver=7b4e5ed5741b9cd7ade0",cN=n.p+"../assets/images/payment-methods/clearpay.svg?ver=1092499f79ea6d761029",dN=n.p+"../assets/images/payment-methods/jcb.svg?ver=3351f2584f4a62ad094d",lN=n.p+"../assets/images/payment-methods/klarna.svg?ver=e031a517911ff23ecaaa",uN=n.p+"../assets/images/cards/visa.svg?ver=f10d76e13a47cb867cca",mN=n.p+"../assets/images/cards/mastercard.svg?ver=d21057587f14a719da45",pN=n.p+"../assets/images/cards/amex.svg?ver=9035aad80e3ae7ac653c",yN=n.p+"../assets/images/payment-methods/woo.svg?ver=c063471dc31ce4748a14",hN=n.p+"../assets/images/cards/apple-pay.svg?ver=126e07a26632bc8a9c21",fN=n.p+"../assets/images/cards/google-pay.svg?ver=30aba48019e36097a19d",_N=n.p+"../assets/images/cards/diners.svg?ver=f5f358185b445ca33039",gN=n.p+"../assets/images/cards/discover.svg?ver=a19341de516c258e11fe",vN=n.p+"../assets/images/cards/cb.svg?ver=375fa3d816484fa4b53c",wN=n.p+"../assets/images/cards/unionpay.svg?ver=590378d28822ade6ea0b",bN=n.p+"../assets/images/payment-methods/link.svg?ver=2af3c660d8ddc95442bb",EN=n.p+"../assets/images/payment-methods/cc.svg?ver=e99146e27d67e25c0717";const $N=(e,t,n=!0)=>o=>{var{className:r}=o,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["className"]);return G().createElement("img",Object.assign({className:Lo()("payment-method__icon",n?"":"no-outline",r),src:e,alt:t},a))},SN=$N(iN,(0,Y.__)("Affirm","woocommerce-payments")),xN=$N(sN,(0,Y.__)("Afterpay","woocommerce-payments")),kN=$N(cN,(0,Y.__)("Clearpay","woocommerce-payments")),CN=($N(pN,(0,Y.__)("American Express","woocommerce-payments")),$N(hN,(0,Y.__)("Apple Pay","woocommerce-payments")),$N(JC,(0,Y.__)("Bancontact","woocommerce-payments"))),NN=$N(aN,(0,Y.__)("BECS Direct Debit","woocommerce-payments")),IN=$N(EN,(0,Y.__)("Credit card / Debit card","woocommerce-payments"),!1),TN=($N(vN,(0,Y.__)("Cartes Bancaires","woocommerce-payments")),$N(_N,(0,Y.__)("Diners Club","woocommerce-payments")),$N(gN,(0,Y.__)("Discover","woocommerce-payments")),$N(XC,(0,Y.__)("BECS Direct Debit","woocommerce-payments"))),AN=$N(eN,(0,Y.__)("Giropay","woocommerce-payments")),ON=($N(fN,(0,Y.__)("Google Pay","woocommerce-payments")),$N(rN,(0,Y.__)("iDEAL","woocommerce-payments"))),MN=$N(dN,(0,Y.__)("JCB","woocommerce-payments")),LN=$N(lN,(0,Y.__)("Klarna","woocommerce-payments")),jN=($N(bN,(0,Y.__)("Link","woocommerce-payments")),$N(mN,(0,Y.__)("Mastercard","woocommerce-payments")),$N(oN,(0,Y.__)("Przelewy24 (P24)","woocommerce-payments"))),DN=$N(nN,(0,Y.__)("SEPA Direct Debit","woocommerce-payments")),RN=$N(tN,(0,Y.__)("Sofort","woocommerce-payments"));var PN,FN;$N(wN,(0,Y.__)("UnionPay","woocommerce-payments")),$N(uN,(0,Y.__)("Visa","woocommerce-payments")),$N(yN,(0,Y.__)("WooPay","woocommerce-payments"));const zN=(null===(FN=null===(PN=window.wcpaySettings)||void 0===PN?void 0:PN.accountStatus)||void 0===FN?void 0:FN.country)||"US",BN={card:{id:"card",label:(0,Y.__)("Credit / Debit card","woocommerce-payments"),description:(0,Y.__)("Let your customers pay with major credit and debit cards without leaving your store.","woocommerce-payments"),icon:IN,currencies:[],stripe_key:"card_payments",allows_manual_capture:!0,allows_pay_later:!1,accepts_only_domestic_payment:!1},au_becs_debit:{id:"au_becs_debit",label:(0,Y.__)("BECS Direct Debit","woocommerce-payments"),description:(0,Y.__)("Bulk Electronic Clearing System — Accept secure bank transfer from Australia.","woocommerce-payments"),icon:NN,currencies:["AUD"],stripe_key:"au_becs_debit_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},bancontact:{id:"bancontact",label:(0,Y.__)("Bancontact","woocommerce-payments"),description:(0,Y.__)("Bancontact is a bank redirect payment method offered by more than 80% of online businesses in Belgium.","woocommerce-payments"),icon:CN,currencies:["EUR"],stripe_key:"bancontact_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},eps:{id:"eps",label:(0,Y.__)("EPS","woocommerce-payments"),description:(0,Y.__)("Accept your payment with EPS — a common payment method in Austria.","woocommerce-payments"),icon:TN,currencies:["EUR"],stripe_key:"eps_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},giropay:{id:"giropay",label:(0,Y.__)("giropay","woocommerce-payments"),description:(0,Y.__)("Expand your business with giropay — Germany’s second most popular payment system.","woocommerce-payments"),icon:AN,currencies:["EUR"],stripe_key:"giropay_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},ideal:{id:"ideal",label:(0,Y.__)("iDEAL","woocommerce-payments"),description:(0,Y.__)("Expand your business with iDEAL — Netherlands’s most popular payment method.","woocommerce-payments"),icon:ON,currencies:["EUR"],stripe_key:"ideal_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},p24:{id:"p24",label:(0,Y.__)("Przelewy24 (P24)","woocommerce-payments"),description:(0,Y.__)("Accept payments with Przelewy24 (P24), the most popular payment method in Poland.","woocommerce-payments"),icon:jN,currencies:["EUR","PLN"],stripe_key:"p24_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},sepa_debit:{id:"sepa_debit",label:(0,Y.__)("SEPA Direct Debit","woocommerce-payments"),description:(0,Y.__)("Reach 500 million customers and over 20 million businesses across the European Union.","woocommerce-payments"),icon:DN,currencies:["EUR"],stripe_key:"sepa_debit_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},sofort:{id:"sofort",label:(0,Y.__)("Sofort","woocommerce-payments"),description:(0,Y.__)("Accept secure bank transfers from Austria, Belgium, Germany, Italy, Netherlands, and Spain.","woocommerce-payments"),icon:RN,currencies:["EUR"],stripe_key:"sofort_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},affirm:{id:"affirm",label:(0,Y.__)("Affirm","woocommerce-payments"),description:(0,Y.__)("Allow customers to pay over time with Affirm.","woocommerce-payments"),icon:SN,currencies:["USD","CAD"],stripe_key:"affirm_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0},afterpay_clearpay:{id:"afterpay_clearpay",label:"GB"===zN?(0,Y.__)("Clearpay","woocommerce-payments"):(0,Y.__)("Afterpay","woocommerce-payments"),description:"GB"===zN?(0,Y.__)("Allow customers to pay over time with Clearpay.","woocommerce-payments"):(0,Y.__)("Allow customers to pay over time with Afterpay.","woocommerce-payments"),icon:"GB"===zN?kN:xN,currencies:["USD","AUD","CAD","NZD","GBP"],stripe_key:"afterpay_clearpay_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0},jcb:{id:"jcb",label:(0,Y.__)("JCB","woocommerce-payments"),description:(0,Y.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:MN,currencies:["JPY"],stripe_key:"jcb_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},klarna:{id:"klarna",label:(0,Y.__)("Klarna","woocommerce-payments"),description:(0,Y.__)("Allow customers to pay over time or pay now with Klarna.","woocommerce-payments"),icon:LN,currencies:["EUR","GBP","USD","DKK","NOK","SEK"],stripe_key:"klarna_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0}},UN=()=>{const[e]=Jm(),t=e.length,{completedTasks:n}=(0,q.useContext)(HC),o=n["add-payment-methods"];if(!o)return null;let r=0;if("object"==typeof o&&o.initialMethods){const{initialMethods:e}=o;r=t-e.length}return r<=0?(0,Y.__)("Setup complete!","woocommerce-payments"):(0,Y.sprintf)((0,Y._n)("Setup complete! One new payment method is now live on your store!","Setup complete! %s new payment methods are now live on your store!",r,"woocommerce-payments"),r)},VN=()=>{const[e]=Jm();return(0,Ta.jsx)("ul",{className:"wcpay-wizard-task__description-element setup-complete-task__enabled-methods-list",children:e.map((e=>(0,Ta.jsx)("li",{children:(0,Ta.jsx)(ZC,{Icon:BN[e].icon})},e)))})},YN=()=>{const{featureFlags:{multiCurrency:e}}=(0,q.useContext)(Cc);return(0,Ta.jsx)(KC,{title:(0,Y.__)("Enablement complete","woocommerce-payments"),index:2,children:(0,Ta.jsxs)(QC,{children:[(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:(0,Ta.jsx)(UN,{})}),(0,Ta.jsx)(VN,{}),(0,Ta.jsxs)("div",{className:"setup-complete-task__buttons",children:[(0,Ta.jsx)(jr,{href:"admin.php?page=wc-settings&tab=checkout&section=woocommerce_payments",isPrimary:!0,children:(0,Y.__)("Go to payments settings","woocommerce-payments")}),e&&(0,Ta.jsx)(jr,{href:"admin.php?page=wc-settings&tab=wcpay_multi_currency",isTertiary:!0,children:(0,Y.__)("Go to Multi-Currency settings","woocommerce-payments")})]})]})})},HN=({children:e})=>G().createElement("ul",null,e),WN=({label:e,checked:t=!1,disabled:n=!1,onChange:o,hideLabel:r=!1,isAllowingManualCapture:a=!1,isSetupRequired:i=!1,setupTooltip:s="",delayMsOnCheck:c=0,delayMsOnUncheck:d=0,needsAttention:l=!1})=>{const[u,m]=(0,W.useState)(!1),[p,y]=(0,W.useState)(t),[h]=ep();return(0,W.useEffect)((()=>{y(t)}),[y,t]),(0,Ta.jsxs)("div",{className:Lo()("loadable-checkbox",{"label-hidden":r}),children:[u&&(0,Ta.jsx)("div",{className:"loadable-checkbox__spinner",children:(0,Ta.jsx)("svg",{width:"131px",height:"131px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,Ta.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#ffffff",strokeWidth:"12",r:"32",strokeDasharray:"150.79644737231007 52.26548245743669",children:(0,Ta.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.4492753623188404s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})})}),h&&!a||i||l?(0,Ta.jsx)("div",{className:"loadable-checkbox__icon",style:{marginRight:"16px"},children:(0,Ta.jsx)(zs,{content:s,className:"wcpay-tooltip__tooltip--dark",children:(0,Ta.jsxs)("div",{children:[(0,Ta.jsx)(Kr.A,{style:{color:"#F0B849",fill:"currentColor",marginBottom:"-5px"},size:20}),(0,Ta.jsx)("div",{className:"loadable-checkbox__icon-warning","data-testid":"loadable-checkbox-icon-warning",children:(0,Ta.jsx)(Mr,{children:(0,Y.sprintf)((0,Y.__)("%s cannot be enabled at checkout. Click to expand.","woocommerce-payments"),e)})})]})})}):(0,Ta.jsx)(Jh,{label:e,checked:p,disabled:n,onChange:e=>(e=>{const t=e?c:d;t>0?(m(!0),setTimeout((()=>{o(e),m(!1)}),t)):o(e)})(e)})]})},GN=["au_becs_debit","bancontact","eps","giropay","ideal","p24","sepa_debit","sofort","affirm","afterpay_clearpay","jcb","klarna"],qN="inactive",QN={AE:"united-arab-emirates",AU:"australia",AT:"austria",BE:"belgium",BG:"bulgaria",CA:"canada",CY:"cyprus",CZ:"czech-republic",FR:"france",LU:"luxembourg",DE:"germany",DK:"denmark",EE:"estonia",FI:"finland",GR:"greece",HK:"hong-kong",HR:"croatia",HU:"hungary",IE:"ireland",IT:"italy",JP:"japan",LT:"lithuania",LV:"latvia",MT:"malta",NL:"netherlands",NO:"norway",NZ:"new-zealand",PL:"poland",PT:"portugal",SG:"singapore",SI:"slovenia",SK:"slovakia",SW:"sweden",ES:"spain",CH:"switzerland",UK:"united-kingdom",US:"united-states",RO:"romania"},KN=e=>(0,Y.sprintf)("%s%s","https://woocommerce.com/document/woopayments/fees-and-debits/fees/#",QN[e]),ZN=(e,t=1)=>e.fixed_rate&&e.percentage_rate?(0,Y.sprintf)("%1$f%% + %2$s",Ig(e.percentage_rate*t),Rc(e.fixed_rate*t,e.currency)):e.fixed_rate?(0,Y.sprintf)("%1$s",Rc(e.fixed_rate*t,e.currency)):e.percentage_rate?(0,Y.sprintf)("%1$f%%",Ig(e.percentage_rate*t)):"",JN=e=>e.discount.length?e.discount[0]:e.base,XN=e=>{if(!e)return G().createElement(G().Fragment,null);const t=e.discount.length&&e.discount[0].discount?1-e.discount[0].discount:1,n={percentage_rate:e.base.percentage_rate*t+e.additional.percentage_rate*t+e.fx.percentage_rate,fixed_rate:e.base.fixed_rate*t+e.additional.fixed_rate*t+e.fx.fixed_rate,currency:e.base.currency},o=e=>e.fixed_rate>0||e.percentage_rate>0;return G().createElement("div",{className:"wcpay-fees-tooltip"},G().createElement("div",null,G().createElement("div",null,"Base fee"),G().createElement("div",null,ZN(e.base,t))),o(e.additional)?G().createElement("div",null,G().createElement("div",null,"International payment method fee"),G().createElement("div",null,ZN(e.additional,t))):"",o(e.fx)?G().createElement("div",null,G().createElement("div",null,"Foreign exchange fee"),G().createElement("div",null,ZN(e.fx))):"",G().createElement("div",null,G().createElement("div",null,"Total per transaction"),G().createElement("div",{className:"wcpay-fees-tooltip__bold"},ZN(n))),wcpaySettings&&wcpaySettings.connect&&wcpaySettings.connect.country?G().createElement("div",{className:"wcpay-fees-tooltip__hint-text"},G().createElement("span",null,(r=wcpaySettings.connect.country,QN.hasOwnProperty(r)?Ua({mixedString:(0,Y.sprintf)((0,Y.__)("{{linkToStripePage /}} about %s Fees in your country","woocommerce-payments"),"WooPayments"),components:{linkToStripePage:G().createElement(tc,{href:KN(wcpaySettings.connect.country)},(0,Y.__)("Learn more","woocommerce-payments"))}}):Ua({mixedString:(0,Y.sprintf)((0,Y.__)("{{linkToStripePage /}} about %s Fees","woocommerce-payments"),"WooPayments"),components:{linkToStripePage:G().createElement(tc,{href:"https://woocommerce.com/document/woopayments/fees-and-debits/fees/"},(0,Y.__)("Learn more","woocommerce-payments"))}})))):"");var r},eI=(e,t={})=>{const n=e.base,o=JN(e),r=Object.assign({fee:(0,Y.__)("%1$f%% + %2$s per transaction","woocommerce-payments"),discount:(0,Y.__)("(%f%% discount)","woocommerce-payments"),displayBaseFeeIfDifferent:!0},t),a=(0,Y.sprintf)(r.fee,Ig(n.percentage_rate),Rc(n.fixed_rate,n.currency));if(o.percentage_rate!==n.percentage_rate||o.fixed_rate!==n.fixed_rate||o.currency!==n.currency){const e=o;let t,i;e.discount?(t=n.percentage_rate*(1-e.discount),i=n.fixed_rate*(1-e.discount)):(t=o.percentage_rate,i=o.fixed_rate);let s=(0,Y.sprintf)(r.fee,Ig(t),Rc(i,n.currency));r.displayBaseFeeIfDifferent&&(s=(0,Y.sprintf)((0,Y.__)("<s>%1$s</s> %2$s","woocommerce-payments"),a,s)),e.discount&&0<r.discount.length&&(s+=" "+(0,Y.sprintf)(r.discount,Ig(e.discount)));const c={s:G().createElement("s",null)};return(0,q.createInterpolateElement)(s,c)}return a},tI=e=>{switch(e){case"au_becs_debit":return(0,Y.__)("BECS Direct Debit transactions","woocommerce-payments");case"bancontact":return(0,Y.__)("Bancontact transactions","woocommerce-payments");case"card":return(0,Y.__)("Card transactions","woocommerce-payments");case"card_present":return(0,Y.__)("In-person transactions","woocommerce-payments");case"eps":return(0,Y.__)("EPS transactions","woocommerce-payments");case"giropay":return(0,Y.__)("giropay transactions","woocommerce-payments");case"ideal":return(0,Y.__)("iDEAL transactions","woocommerce-payments");case"p24":return(0,Y.__)("Przelewy24 (P24) transactions","woocommerce-payments");case"sepa_debit":return(0,Y.__)("SEPA Direct Debit transactions","woocommerce-payments");case"sofort":return(0,Y.__)("Sofort transactions","woocommerce-payments");case"affirm":return(0,Y.__)("Affirm transactions","woocommerce-payments");case"afterpay_clearpay":return(0,Y.__)("Afterpay transactions","woocommerce-payments");case"klarna":return(0,Y.__)("Klarna transactions","woocommerce-payments");default:return(0,Y.__)("Unknown transactions","woocommerce-payments")}},nI=e=>{let t;switch(e){case Zf.AFTERPAY_CLEARPAY:case Zf.AFFIRM:case Zf.KLARNA:t="https://woocommerce.com/document/woopayments/payment-methods/buy-now-pay-later/#contact-support";break;default:t="https://woocommerce.com/document/woopayments/payment-methods/additional-payment-methods/#method-cant-be-enabled"}return t},oI=({id:e,children:t})=>G().createElement(zs,{content:Ua({mixedString:(0,Y.__)("We need more information from you to enable this method. {{learnMoreLink}}Learn more.{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:G().createElement("a",{target:"_blank",rel:"noreferrer",title:(0,Y.__)("Learn more about enabling payment methods","woocommerce-payments"),href:nI(e)})}})},t),rI=({name:e})=>{const{description:t}=BN[e];return t?G().createElement(zs,{content:t},G().createElement("div",{className:"payment-method-checkbox__info"},G().createElement(Mr,null,(0,Y.__)("Information about the payment method, click to expand","woocommerce-payments")),G().createElement(Ar,{icon:"info-outline"}))):null},aI=({onChange:e,name:t,checked:n,fees:o,status:r,required:a,locked:i,isSetupRequired:s,setupTooltip:c})=>{var d;const{accountFees:l}=(0,W.useContext)(Cc),u=(0,q.useCallback)((n=>{i||e(t,n)}),[i,t,e]),m=qN===r;(0,W.useEffect)((()=>{m&&n&&u(!1)}),[m,n,u]);const[p]=ep(),y=BN[t],h=p&&!y.allows_manual_capture;return G().createElement("li",{className:Lo()("payment-method-checkbox",{overlay:h})},G().createElement(WN,{label:y.label,checked:n,disabled:m||i,onChange:e=>{u(e)},delayMsOnCheck:1500,delayMsOnUncheck:0,hideLabel:!0,isSetupRequired:s,setupTooltip:c,isAllowingManualCapture:y.allows_manual_capture}),G().createElement("div",{className:"woocommerce-payments__payment-method-icon"},y.icon({})),G().createElement("div",{className:"payment-method-checkbox__pills"},G().createElement("div",{className:"payment-method-checkbox__pills-left"},G().createElement("span",{className:"payment-method-checkbox__label"},y.label,a&&G().createElement("span",{className:"payment-method-checkbox__required-label"},(0,Y.__)("Required","woocommerce-payments"))),"pending"===r&&G().createElement(zs,{content:(0,Y.__)("This payment method is pending approval. Once approved, you will be able to use it.","woocommerce-payments")},G().createElement(mf,{className:"payment-status-pending-approval"},(0,Y.__)("Pending approval","woocommerce-payments"))),"pending_verification"===r&&G().createElement(zs,{content:(0,Y.sprintf)((0,Y.__)("%s won't be visible to your customers until you provide the required information. Follow the instructions sent by our partner Stripe to %s.","woocommerce-payments"),y.label,null!==(d=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountEmail)&&void 0!==d?d:"")},G().createElement(mf,{className:"payment-status-pending-verification"},(0,Y.__)("Pending activation","woocommerce-payments"))),m&&G().createElement(oI,{id:t},G().createElement(mf,{className:"payment-status-"+r},(0,Y.__)("More information needed","woocommerce-payments")))),G().createElement("div",{className:"payment-method-checkbox__pills-right"},G().createElement(zs,{content:XN(l[t]),maxWidth:"300px"},G().createElement(mf,{"aria-label":(0,Y.sprintf)((0,Y.__)("Base transaction fees: %s","woocommerce-payments"),o)},G().createElement("span",null,(e=>{if(!e)return(0,Y.__)("missing fees","woocommerce-payments");const t=(0,Y.__)("From %1$f%% + %2$s","woocommerce-payments");return eI(e,{fee:t,discount:"",displayBaseFeeIfDifferent:!1})})(l[t])))),G().createElement(rI,{name:t}))))},iI=({children:e,numLines:t})=>{const{isLoading:n}=np();return(0,Ta.jsx)(B_,{isLoading:n,numLines:t,children:e})},sI="/wc/v3/payments",cI="wc/payments/multi-currency",dI={SET_CURRENCIES:"SET_CURRENCIES",SET_AVAILABLE_CURRENCIES:"SET_AVAILABLE_CURRENCIES",SET_ENABLED_CURRENCIES:"SET_ENABLED_CURRENCIES",SET_DEFAULT_CURRENCY:"SET_DEFAULT_CURRENCY",SET_CURRENCY_SETTINGS:"SET_CURRENCY_SETTINGS",SET_STORE_SETTINGS:"SET_STORE_SETTINGS"},lI={},uI=e=>e&&e||{},mI=e=>uI(e).currencies||{},pI=e=>mI(e).available||{},yI=e=>mI(e).enabled||{},hI=e=>mI(e).default||{},fI=e=>uI(e).currency_settings||{},_I=e=>uI(e).settings||{};function gI(e){return{type:dI.SET_CURRENCIES,data:e}}function vI(e){return{type:dI.SET_AVAILABLE_CURRENCIES,data:e}}function wI(e){return{type:dI.SET_ENABLED_CURRENCIES,data:e}}function bI(e){return{type:dI.SET_DEFAULT_CURRENCY,data:e}}function EI(e,t){return{type:dI.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function $I(e){return{type:dI.SET_STORE_SETTINGS,data:e}}function*SI(e){const t=Object.keys((0,Js.select)(cI).getEnabledCurrencies()),n=e.filter((e=>!t.includes(e))),o=t.filter((t=>!e.includes(t)));try{const t=yield(0,lc.apiFetch)({path:`${sI}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield gI(t),yield(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)("Enabled currencies updated.","woocommerce-payments")),oa("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:n,removed_currencies:o})}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*xI(e,t){try{const n=yield(0,lc.apiFetch)({path:`${sI}/multi-currency/currencies/${e}`,method:"POST",data:t});yield EI(e,n),yield(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error updating currency settings.","woocommerce-payments"))}}function*kI(e,t,n=!1){try{const o=yield(0,lc.apiFetch)({path:`${sI}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});if(yield $I(o),n)return;yield(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error saving store settings.","woocommerce-payments"))}}function*CI(){const e=`${sI}/multi-currency/currencies`;try{const t=yield(0,lc.apiFetch)({path:e});yield gI(t)}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error retrieving currencies.","woocommerce-payments"))}}function*NI(e){const t=`${sI}/multi-currency/currencies/${e}`;try{const n=yield(0,lc.apiFetch)({path:t});yield EI(e,n)}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*II(){const e=`${sI}/multi-currency/get-settings`;try{const t=yield(0,lc.apiFetch)({path:e});yield $I(t)}catch(e){yield(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("Error retrieving store settings.","woocommerce-payments"))}}const TI=()=>(0,Js.useSelect)((e=>{const{getCurrencies:t,isResolving:n}=e(cI);return{currencies:t(),isLoading:n("getCurrencies",[])}}),[]),AI=()=>{const e=(0,Js.useSelect)((e=>{const{getEnabledCurrencies:t}=e(cI);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,Js.useDispatch)(cI);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}},OI=()=>{const{storeSettings:e,isLoading:t}=(0,Js.useSelect)((e=>{const{getStoreSettings:t,isResolving:n}=e(cI);return{storeSettings:t(),isLoading:n("getStoreSettings",[])}})),{submitStoreSettingsUpdate:n}=(0,Js.useDispatch)(cI);return{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:n}},MI=()=>(0,Js.useSelect)((e=>{const{getDefaultCurrency:t}=e(cI);return t()}));(0,Js.registerStore)(cI,{reducer:(e=lI,{type:t,data:n=[]})=>{switch(t){case dI.SET_CURRENCIES:return{...e,currencies:n,available:n.available,enabled:n.enabled,default:n.default};case dI.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:n.available},available:n.available};case dI.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:n.enabled},enabled:n.enabled};case dI.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:n.default},default:n.default};case dI.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[n.code]:n.data}};case dI.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:n.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:n.wcpay_multi_currency_enable_storefront_switcher,site_theme:n.site_theme,date_format:n.date_format,time_format:n.time_format,store_url:n.store_url}}}return e},actions:{...U},controls:lc.controls,selectors:{...B},resolvers:{...V}});const LI=({selectedMethods:e})=>{const{isLoading:t,currencies:n}=TI(),{enabledCurrencies:o}=AI(),r=(0,Js.useSelect)((e=>e(xi).getAccountDomesticCurrency())).toUpperCase();if(t)return null;const a=Object.values(o).map((e=>e.id));let i=[],s=[];if(e.forEach((e=>{const t=BN[e];if(!t)return;let o=t.currencies||[];t.accepts_only_domestic_payment&&(o=[r]),o.forEach((e=>{if(a.includes(e.toLowerCase()))return;i.push(t.label);const o=n?.available?.[e],r=null!=o?`${o.name} (${void 0!==o.symbol?o.symbol:e.toUpperCase()})`:e.toUpperCase();s.push(r)}))})),s=(0,mt.uniq)(s),i=(0,mt.uniq)(i),s.length<=0)return null;let c="";return c=1===i.length&&1===s.length?(0,Y.__)("%1$s requires an additional currency, so {{strong}}we'll add %2$s to your store{{/strong}}. You can view & manage currencies later in settings.","woocommerce-payments"):1===i.length&&s.length>1?(0,Y.__)("%1$s requires additional currencies, so {{strong}}we'll add %2$s to your store{{/strong}}. You can view & manage currencies later in settings.","woocommerce-payments"):i.length>1&&1===s.length?(0,Y.__)("%1$s require an additional currency, so {{strong}}we'll add %2$s to your store{{/strong}}. You can view & manage currencies later in settings.","woocommerce-payments"):(0,Y.__)("%1$s require additional currencies, so {{strong}}we'll add %2$s to your store{{/strong}}. You can view & manage currencies later in settings.","woocommerce-payments"),(0,Ta.jsx)(Ia,{icon:!0,status:"info",isDismissible:!1,children:Ua({mixedString:(0,Y.sprintf)(c,Ic(i),Ic(s)),components:{strong:(0,Ta.jsx)("strong",{})}})})},jI=e=>{const{featureFlags:{multiCurrency:t}}=(0,W.useContext)(Cc);return t?(0,Ta.jsx)(LI,{...e}):null};var DI=n(5491);const RI=({hasBorder:e,icon:t=()=>null})=>G().createElement("div",{className:"payment-confirm-illustration__wrapper"},G().createElement("div",{className:"payment-confirm-illustration__illustrations"},G().createElement(t,{className:Lo()("payment-confirm-illustration__payment-icon",{"has-border":e})}),G().createElement(DI.A,{className:"payment-confirm-illustration__payment-question-mark-icon"}))),PI={"individual.id_number":(0,Y.__)("Personal Identification Number","woocommerce-payments"),"business_profile.url":(0,Y.__)("Business Website","woocommerce-payments"),"company.tax_id":(0,Y.__)("Business Number","woocommerce-payments")},FI=({paymentMethod:e,requirements:t,onClose:n,onConfirmClose:o})=>{var r;const a=t.filter((e=>PI.hasOwnProperty(e))),i=BN[e];return G().createElement(ef,{title:(0,Y.sprintf)((0,Y.__)("One more step to enable %s","woocommerce-payments"),i.label),shouldCloseOnClickOutside:!1,onRequestClose:n,className:"wcpay-payment-method-confirmation-modal",actions:G().createElement(G().Fragment,null,G().createElement(jr,{isSecondary:!0,onClick:n},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{isPrimary:!0,onClick:o},(0,Y.__)("Continue","woocommerce-payments")))},G().createElement(RI,{icon:i.icon,hasBorder:"card"!==i.id}),0<a.length?G().createElement(G().Fragment,null,G().createElement("p",null,(0,Y.sprintf)((0,Y.__)("You need to provide more information to enable %s on your checkout:","woocommerce-payments"),i.label)),G().createElement("ul",{className:"payment-method-requirements-list"},a.map(((e,t)=>{var n;return G().createElement("li",{key:"requirement"+t},null!==(n=PI[e])&&void 0!==n?n:e)})))):G().createElement("p",null,(0,Y.sprintf)((0,Y.__)("You need to provide more information to enable %s on your checkout.","woocommerce-payments"),i.label)),G().createElement("p",null,Ua({mixedString:(0,Y.__)("If you choose to continue, our payment partner Stripe will send an e-mail to {{merchantEmail /}} to collect the required information","woocommerce-payments"),components:{merchantEmail:G().createElement("b",null,null!==(r=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountEmail)&&void 0!==r?r:"")}})))},zI=({paymentMethodsState:e})=>{const{setCompleted:t}=(0,W.useContext)(Nc),[n,o]=Jm(),{saveSettings:r,isSaving:a}=np(),i=(0,W.useMemo)((()=>Object.entries(e).map((([e,t])=>t&&e)).filter(Boolean)),[e]),s=Object.entries(e).map((([e,t])=>!t&&e)).filter(Boolean),c=(0,W.useCallback)((()=>{(async()=>{o([...new Set([...n,...i].filter((e=>!s.includes(e))))]),await r()?t({initialMethods:n},"setup-complete"):o(n)})()}),[s,i,o,r,t,n]);return(0,Ta.jsx)(jr,{isBusy:a,disabled:a||i.length<1,onClick:c,isPrimary:!0,children:(0,Y.__)("Continue","woocommerce-payments")})},BI=()=>{const e=(0,Js.useSelect)((e=>e(xi).getAvailablePaymentMethodIds())),t=(0,Js.useSelect)((e=>e(xi).getPaymentMethodStatuses())),{isActive:n}=(0,W.useContext)(Nc),o=wcpaySettings?.progressiveOnboarding?.isEnabled,r=wcpaySettings?.progressiveOnboarding?.isComplete,a=o&&!r,[i,s]=(()=>{const[e,t]=(0,W.useState)({card:!0});return[e,(0,W.useCallback)(((e,n)=>{t((t=>({...t,[e]:n})))}),[t])]})();(0,W.useEffect)((()=>{e.filter((e=>GN.includes(e))).forEach((e=>{s(e,!1)}))}),[e,s]);const c=(0,W.useMemo)((()=>Object.entries(i).map((([e,t])=>t&&e)).filter(Boolean)),[i]),[d,l]=(0,W.useState)(null),u=e=>{s(e,!0),l(null)},m=e=>{var n;const o=BN[e].stripe_key,r=null!==(n=t[o])&&void 0!==n?n:[];return r?{status:r.status,requirements:r.requirements}:{status:"unrequested",requirements:[]}},p=t=>t.map((t=>{const{label:n,currencies:o}=BN[t];if(e.includes(t)){let e=!1,d="";if(!wcpaySettings.isMultiCurrencyEnabled&&t!==Zf.CARD){const t=wcpaySettings.storeCurrency;o.indexOf(t)<0&&(e=!0,r=n,c=o,d=(0,Y.sprintf)((0,Y._n)("%1$s requires the %2$s currency. In order to enable the payment method, you must add this currency to your store.","%1$s requires the %2$s currencies. In order to enable the payment method, you must add these currencies to your store.",c.length,"woocommerce-payments"),r,Ic(c)))}return(0,Ta.jsx)(aI,{checked:i[t]&&qN!==m(t).status,setupTooltip:d,isSetupRequired:e,status:m(t).status,locked:a,onChange:(e,t)=>{((e,t)=>{if(t){const t=m(e);"unrequested"===t.status&&t.requirements.length>0?l({id:e,requirements:t.requirements}):u(e)}else s(e,!1)})(e,t)},name:t},t)}var r,c;return""})),y=GN.filter((t=>BN[t].allows_pay_later&&e.includes(t)));return(0,Ta.jsx)(KC,{className:"add-payment-methods-task",title:(0,Y.__)("Enable additional payment methods","woocommerce-payments"),index:1,children:(0,Ta.jsxs)(QC,{children:[(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:Ua({mixedString:(0,Y.__)("Increase your store’s conversion by offering your customers preferred and convenient payment methods on checkout.","woocommerce-payments"),components:{learnMoreLink:(0,Ta.jsx)(tc,{href:"https://woocommerce.com/document/woopayments/payment-methods/additional-payment-methods/"})}})}),a&&(0,Ta.jsxs)(da,{status:"warning",isDismissible:!1,className:"po__notice",children:[(0,Ta.jsx)("span",{children:(0,Y.__)("Some payment methods cannot be enabled because more information is needed about your account. ","woocommerce-payments")}),(0,Ta.jsx)("a",{href:"https://woocommerce.com/document/woopayments/payment-methods/additional-payment-methods/#method-cant-be-enabled",target:"_blank",rel:"external noreferrer noopener",children:(0,Y.__)("Learn more about enabling additional payment methods.","woocommerce-payments")})]}),(0,Ta.jsxs)(So,{className:"add-payment-methods-task__payment-selector-wrapper",size:"small",children:[(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)("p",{className:"add-payment-methods-task__payment-selector-title wcpay-wizard-task__description-element",children:(0,Y.__)("Popular in your country","woocommerce-payments")}),(0,Ta.jsx)(B_,{numLines:10,isLoading:!n,children:(0,Ta.jsx)(iI,{numLines:10,children:(0,Ta.jsxs)(HN,{children:[(0,Ta.jsx)(aI,{checked:i.card,required:!0,locked:!0,status:m("card").status,name:"card"},"card"),p(GN.filter((e=>!BN[e].allows_pay_later)))]})})})]}),y.length>0&&(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(hs,{}),(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)("p",{className:"add-payment-methods-task__payment-selector-title wcpay-wizard-task__description-element",children:(0,Y.__)("Buy Now, Pay Later","woocommerce-payments")}),(0,Ta.jsx)(B_,{numLines:10,isLoading:!n,children:(0,Ta.jsx)(iI,{numLines:10,children:(0,Ta.jsx)(HN,{children:p(y)})})})]})]}),d&&(0,Ta.jsx)(FI,{onClose:()=>{l(null)},onConfirmClose:()=>{u(d.id)},requirements:d.requirements,paymentMethod:d.id})]}),(0,Ta.jsx)(jI,{selectedMethods:c}),(0,Ta.jsx)(B_,{numLines:10,isLoading:!n,children:(0,Ta.jsx)(zI,{paymentMethodsState:i})})]})})},UI=()=>(0,Ta.jsx)(So,{className:"upe-preview-methods-selector",children:(0,Ta.jsx)(Oo,{children:(0,Ta.jsx)(WC,{defaultActiveTask:"add-payment-methods",children:(0,Ta.jsxs)(qC,{children:[(0,Ta.jsx)(GC,{id:"add-payment-methods",children:(0,Ta.jsx)(BI,{})}),(0,Ta.jsx)(GC,{id:"setup-complete",children:(0,Ta.jsx)(YN,{})})]})})})}),VI=()=>(0,Ta.jsx)(Ma,{children:(0,Ta.jsx)(Cc.Provider,{value:window.wcpaySettings,children:(0,Ta.jsx)(UI,{})})}),YI=n.p+"../assets/images/logo.svg?ver=cc343b18b042f1622414",HI=e=>(0,Ta.jsx)("img",{src:YI,width:"241",height:"64",alt:(0,Y.__)("WooPayments logo","woocommerce-payments"),...e}),WI=({style:e})=>{let t,n,o,r="woocommerce-payments-banner";return"account-page"===e?(t=196,n=65,o=!0,r+=" account-page"):(t=257,n=70,o=!1),(0,Ta.jsx)(So,{size:"large",className:r,children:(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)(HI,{width:t,height:n,className:"woocommerce-payments-banner-logo"}),o&&(0,Ta.jsx)("div",{className:"woocommerce-payments-banner-pill",children:(0,Ta.jsx)("div",{children:(0,Y.__)("Recommended","woocommerce-payments")})})]})})},GI=({children:e,displayBanner:t=!0})=>(0,Ta.jsxs)("div",{className:"wcpay-settings-layout",children:[t&&(0,Ta.jsx)(WI,{}),e]}),qI=({description:e=()=>null,children:t,className:n,id:o})=>G().createElement("div",{className:Lo()("settings-section",n),id:o},G().createElement("div",{className:"settings-section__details"},G().createElement(e,null)),G().createElement("div",{className:"settings-section__controls"},t)),QI=({isPreviewModalOpen:e,setPreviewModalOpen:t,isStorefrontSwitcherEnabledValue:n,isAutomaticSwitchEnabledValue:o})=>{const{storeSettings:r}=OI();return e&&(0,Ta.jsx)(Xa,{title:(0,Y.__)("Preview","woocommerce-payments"),isDismissible:!0,className:"multi-currency-store-settings-preview-modal",shouldCloseOnClickOutside:!1,onRequestClose:()=>{t(!1)},children:(0,Ta.jsx)("iframe",{title:(0,Y.__)("Preview","woocommerce-payments"),className:"multi-currency-store-settings-preview-iframe",src:"/"+r.store_url+"?is_mc_onboarding_simulation=1&enable_storefront_switcher="+n+"&enable_auto_currency="+o})})},KI=()=>{const{storeSettings:e,submitStoreSettingsUpdate:t}=OI(),{saveSettings:n,isSaving:o}=np(),[r,a]=(()=>{const{updateIsMultiCurrencyEnabled:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getIsMultiCurrencyEnabled())),e]})(),[i,s]=(0,W.useState)(!1),[c,d]=(0,W.useState)(!1),[l,u]=(0,W.useState)(!1),[m,p]=(0,W.useState)(!1);(0,W.useEffect)((()=>{Object.keys(e).length&&(u(e.enable_storefront_switcher),d(e.enable_auto_currency))}),[d,u,e]);const{setCompleted:y}=(0,W.useContext)(Nc);return(0,Ta.jsx)(KC,{title:Ua({mixedString:(0,Y.__)("{{wrapper}}Review store settings{{/wrapper}}","woocommerce-payments"),components:{wrapper:(0,Ta.jsx)("span",{})}}),visibleDescription:(0,Y.__)("These settings can be changed any time by visiting the Multi-Currency settings","woocommerce-payments"),index:2,children:(0,Ta.jsxs)(QC,{className:"multi-currency-settings-task__body",children:[(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:(0,Y.__)("These settings can be changed any time by visiting the Multi-Currency settings","woocommerce-payments")}),(0,Ta.jsx)(So,{className:"multi-currency-settings-task__wrapper",children:(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)(Jh,{checked:c,onChange:e=>{d(e)},"data-testid":"enable_auto_currency",label:(0,Y.__)("Automatically switch customers to their local currency if it has been enabled","woocommerce-payments")}),(0,Ta.jsx)("div",{className:"multi-currency-settings-task__description",children:(0,Y.__)("Customers will be notified via store alert banner.","woocommerce-payments")}),"Storefront"===e.site_theme?(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(Jh,{checked:l,onChange:e=>{u(e)},"data-testid":"enable_storefront_switcher",label:(0,Y.__)("Add a currency switcher to the Storefront theme on breadcrumb section.","woocommerce-payments")}),(0,Ta.jsx)("div",{className:"multi-currency-settings-task__description",children:(0,Y.__)("A currency switcher is also available in your widgets.","woocommerce-payments")})]}):null]})}),(0,Ta.jsx)(jr,{isBusy:i||o,disabled:i||o,onClick:()=>{s(!0),r||(a(!0),n()),t(c,l,!r),s(!1),y(!0,"setup-complete")},variant:"primary",children:(0,Y.__)("Continue","woocommerce-payments")}),(0,Ta.jsx)(jr,{isBusy:i||o,disabled:i||o,onClick:()=>{p(!0)},className:"multi-currency-setup-preview-button",variant:"tertiary",children:(0,Y.__)("Preview","woocommerce-payments")}),(0,Ta.jsx)(QI,{isPreviewModalOpen:m,setPreviewModalOpen:p,isStorefrontSwitcherEnabledValue:l,isAutomaticSwitchEnabledValue:c})]})})},ZI=()=>{const{isActive:e}=(0,q.useContext)(Nc),t=MI(),{updateOptions:n}=(0,Js.useDispatch)("wc/admin/options");return(0,q.useEffect)((()=>{e&&(n({wcpay_multi_currency_setup_completed:"yes"}),window.wcpaySettings.multiCurrencySetup.isSetupCompleted="yes")}),[e,n]),(0,Ta.jsx)(KC,{title:(0,Y.__)("Setup complete","woocommerce-payments"),index:3,children:(0,Ta.jsxs)(QC,{children:[(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:(0,Y.__)("You're ready to begin accepting payments using foreign currencies!","woocommerce-payments")}),(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:(0,Y.sprintf)((0,Y.__)("Your product prices are automatically converted from your default currency (%s) based on the currency exchange rate and formatting rules for each currency.","woocommerce-payments"),t&&t.name)}),(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:(0,Y.__)("To enter your own exchange rates or update the formatting rules for each currency, visit the Multi-Currency settings.","woocommerce-payments")}),(0,Ta.jsx)("br",{}),(0,Ta.jsxs)("div",{className:"setup-complete-task__buttons",children:[(0,Ta.jsx)(jr,{href:"admin.php?page=wc-admin",isPrimary:!0,children:(0,Y.__)("Back to home","woocommerce-payments")}),(0,Ta.jsx)(jr,{href:"admin.php?page=wc-settings&tab=wcpay_multi_currency",isTertiary:!0,children:(0,Y.__)("View Multi-Currency settings","woocommerce-payments")})]})]})})},JI=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),XI=e=>(0,Ta.jsxs)("div",{className:"search",children:[(0,Ta.jsx)(Us,{className:"search__icon",icon:JI}),(0,Ta.jsx)("input",{...e,type:"text",className:"components-text-control__input"})]}),eT=({children:e})=>(0,Ta.jsx)("ul",{children:e}),tT=({onChange:e,checked:t=!1,currency:{flag:n,symbol:o,code:r,name:a},testId:i=null})=>{const s=(0,q.useCallback)((t=>{e(r,t)}),[r,e]);return(0,Ta.jsx)("li",{className:"enabled-currency-checkbox","data-testid":i,children:(0,Ta.jsx)(Jh,{code:r,checked:t,onChange:s,label:Ua({mixedString:"{{flag /}} {{name /}} {{code /}}",components:{flag:(0,Ta.jsx)("span",{className:"enabled-currency-checkbox__flag",children:""!==n?n:(0,Ta.jsx)("div",{className:"enabled-currency-checkbox__flag-text",children:(0,Ta.jsx)("span",{children:r})})}),name:(0,Ta.jsx)("span",{children:a}),code:(0,Ta.jsxs)("span",{className:"enabled-currency-checkbox__code",children:["(",o,o!==r&&" "+r,")"]})}})})})},nT=[(0,Y.__)("any","woocommerce-payments"),(0,Y.__)("one","woocommerce-payments"),(0,Y.__)("two","woocommerce-payments"),(0,Y.__)("three","woocommerce-payments"),(0,Y.__)("four","woocommerce-payments"),(0,Y.__)("five","woocommerce-payments"),(0,Y.__)("six","woocommerce-payments"),(0,Y.__)("seven","woocommerce-payments"),(0,Y.__)("eight","woocommerce-payments"),(0,Y.__)("nine","woocommerce-payments")],oT=["USD","EUR","JPY","GBP","AUD","CAD","INR"],rT=e=>{if(e&&e.name&&e.symbol&&e.code){const t=e.name,n=e.code===e.symbol?e.code:(0,Y.sprintf)("%s %s",e.symbol,e.code);return(0,Y.sprintf)("%s (%s)",t,n)}return""},aT=(e,t,n)=>{const o=e.filter((e=>e!==t&&n[e])),r=(0,Y.__)("and","woocommerce-payments");return o.map((e=>rT(n[e]))).join(", ").replace(/, ([^,]+)$/,2===o.length?" "+r+" $1":", "+r+" $1")},iT=({enabledCurrencyCodes:e,selectedCurrencyCodes:t,selectedCurrencyCodesLength:n,isSaving:o,submitEnabledCurrenciesUpdate:r,setCompleted:a,setSaving:i})=>{const s=e.length<=1&&n<1;return(0,Ta.jsx)(jr,{isBusy:o,disabled:o||s,onClick:()=>{n>0&&(i(!0),r([...e,...t].sort()),i(!1)),a({initialCurrencies:e},"multi-currency-settings")},variant:"primary",children:0===n?e.length>1?(0,Y.__)("Continue","woocommerce-payments"):(0,Y.__)("Add currencies","woocommerce-payments"):(0,Y.sprintf)((0,Y._n)("Add %s currency","Add %s currencies",n,"woocommerce-payments"),n)})},sT=()=>{const{isLoading:e}=TI(),[t,n]=(0,W.useState)(!1),{isActive:o,setCompleted:r}=(0,W.useContext)(Nc),{enabledCurrencies:a,submitEnabledCurrenciesUpdate:i}=AI(),s=(0,Js.useSelect)((e=>{const{getAvailableCurrencies:t}=e(cI);return t()})),c=MI(),d=Object.keys(s),l=Object.keys(a),u=c.code,m=d.filter((e=>!l.includes(e))),p=oT.filter((e=>m.includes(e))),[y,h]=(0,W.useState)(p);(0,W.useEffect)((()=>{o&&h(p)}),[p.length]);const f=y.length,_=(e,t)=>{h(t?[...y,e]:pt().without(y,e))},[g,v]=(0,W.useState)(""),w=g?m.filter((e=>{const{symbol:t,name:n}=s[e];return`${t} ${e} ${n}`.toLocaleLowerCase().indexOf(g.toLocaleLowerCase())>-1})):m.filter((e=>!oT.includes(e))),b=(e,t="")=>d.length&&(0,Ta.jsx)(tT,{checked:y.includes(e),onChange:_,currency:s[e],testId:pt().isString(t)?t:null},"currency-checkbox-"+s[e].id);return(0,Ta.jsx)(KC,{className:"add-currencies-task",title:(0,Y.__)("Add currencies","woocommerce-payments"),visibleDescription:(0,Y.sprintf)((0,Y._n)("%s currency added","%s currencies added",f,"woocommerce-payments"),f<10?pt().capitalize(nT[f]):f),index:1,children:(0,Ta.jsxs)(QC,{children:[(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:!e&&Ua({mixedString:(0,Y.__)("Add currencies so international customers can shop and pay in their local currency. Your store's default currency is {{storeCurrencyText /}}.","woocommerce-payments"),components:{storeCurrencyText:(0,Ta.jsx)("strong",{children:rT(c)})}})}),l.length>1&&(0,Ta.jsx)("p",{className:"wcpay-wizard-task__description-element is-muted-color",children:Ua({mixedString:(0,Y.__)("You've already added {{enabledCurrenciesText /}} to your store.","woocommerce-payments"),components:{enabledCurrenciesText:(0,Ta.jsx)("strong",{children:aT(l,u,s)})}})}),(0,Ta.jsx)(So,{className:"add-currencies-task__currency-selector-wrapper",children:(0,Ta.jsxs)(Oo,{children:[(0,Ta.jsx)("div",{className:"add-currencies-task__search",children:(0,Ta.jsx)(XI,{value:g,placeholder:(0,Y.__)("Search currencies","woocommerce-payments"),onChange:e=>{v(e.target.value)}})}),(0,Ta.jsx)("div",{className:"add-currencies-task__separator"}),g&&(0,Ta.jsx)("h4",{children:(0,Y.sprintf)((0,Y.__)("Search results (%1$d currencies)","woocommerce-payments"),w.length)}),(0,Ta.jsx)(B_,{numLines:30,isLoading:e&&s,children:(0,Ta.jsx)("div",{className:"add-currencies-task__content",children:(0,Ta.jsxs)(eT,{children:[!g&&p.length?(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("li",{children:(0,Ta.jsx)("h4",{children:(0,Y.__)("Recommended currencies","woocommerce-payments")})}),p.map((e=>b(e,"recommended-currency"))),(0,Ta.jsx)("li",{className:"add-currencies-task__separator"})]}):"",!g&&(0,Ta.jsx)("li",{className:"add-currencies-task__available-currencies",children:(0,Ta.jsx)("h4",{children:(0,Y.__)("All currencies","woocommerce-payments")})}),w.map(b)]})})})]})}),(0,Ta.jsx)(B_,{numLines:5,isLoading:e&&s,children:(0,Ta.jsx)(iT,{enabledCurrencyCodes:l,selectedCurrencyCodes:y,selectedCurrencyCodesLength:f,isSaving:t,submitEnabledCurrenciesUpdate:i,setCompleted:r,setSaving:n})})]})})},cT=({isSetupCompleted:e})=>"yes"===e?(window.location.assign("admin.php?page=wc-settings&tab=wcpay_multi_currency"),null):(0,Ta.jsx)(So,{className:"multi-currency-setup-wizard",children:(0,Ta.jsx)(Oo,{children:(0,Ta.jsx)(WC,{defaultActiveTask:"add-currencies",children:(0,Ta.jsxs)(qC,{children:[(0,Ta.jsx)(GC,{id:"add-currencies",children:(0,Ta.jsx)(sT,{})}),(0,Ta.jsx)(GC,{id:"multi-currency-settings",children:(0,Ta.jsx)(KI,{})}),(0,Ta.jsx)(GC,{id:"setup-complete",children:(0,Ta.jsx)(ZI,{})})]})})})}),dT=()=>{const{isSetupCompleted:e}=window.wcpaySettings.multiCurrencySetup;return(0,Ta.jsx)(Ma,{children:(0,Ta.jsx)(Cc.Provider,{value:window.wcpaySettings,children:(0,Ta.jsx)(cT,{isSetupCompleted:e})})})},lT=({reader:e})=>{const{id:t,device_type:n,is_active:o}=e,r=o?(0,Y.__)("Active","woocommerce-payments"):(0,Y.__)("Inactive","woocommerce-payments");return G().createElement("li",{className:Lo()("card-readers-item",t)},G().createElement("div",{className:"card-readers-item__id"},G().createElement("span",null,t)),G().createElement("div",{className:"card-readers-item__type"},G().createElement("span",null,n)),G().createElement("div",{className:"card-readers-item__status"},G().createElement("span",{className:o?"active":"inactive"},r)))},uT=()=>G().createElement(G().Fragment,null,G().createElement("h2",null,(0,Y.__)("Connected card readers","woocommerce-payments")),G().createElement("p",null,(0,Y.sprintf)((0,Y.__)("Card readers are marked as active if they’ve processed one or more transactions during the current billing cycle. To connect or disconnect card readers, use the %s mobile application.","woocommerce-payments"),"WooPayments"))),mT=()=>{const{readers:e,isLoading:t}=(0,Js.useSelect)((e=>{const{getCardReaders:t,isResolving:n}=e(xi),o={limit:10};return{readers:t(o),isLoading:n("getCardReaders",[o])}}),[10]);return G().createElement(GI,{displayBanner:!1},G().createElement(qI,{description:uT},G().createElement(iI,{numLines:20},G().createElement(So,{className:"card-readers-list__wrapper"},G().createElement(Oo,{className:"card-readers-list__header"},G().createElement("div",{className:"card-readers-list__header-id"},(0,Y.__)("Reader ID","woocommerce-payments")),G().createElement("div",{className:"card-readers-list__header-model"},(0,Y.__)("Model","woocommerce-payments")),G().createElement("div",{className:"card-readers-list__header-status"},(0,Y.__)("Status","woocommerce-payments"))),G().createElement(hs,null),G().createElement(Oo,{className:"card-readers-list__body"},G().createElement("ul",null,!t&&Object.entries(e).map((([e,t])=>G().createElement(lT,{key:e,reader:t})))))))))},pT=n.p+"../assets/images/woopay.svg?ver=182127aba8ef46006ea8",yT=({onRequestClose:e})=>{const[t,n]=(0,W.useState)(!0);return(0,Ta.jsx)(Xa,{title:(0,Ta.jsx)("img",{src:pT,alt:(0,Y.__)("WooPay Logo","woocommerce-payments"),className:"woopay-disable-feedback-logo"}),isDismissible:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!0,onRequestClose:e,className:"woopay-disable-feedback",children:(0,Ta.jsx)(U_,{isLoading:t,children:(0,Ta.jsx)("iframe",{title:(0,Y.__)("WooPay Disable Feedback","woocommerce-payments"),src:"https://woocommerce.survey.fm/woopay-disabled-merchants-feedback-triggered",className:"woopay-disable-feedback-iframe",onLoad:()=>{n(!1)}})})})},hT=({disabled:e=!1})=>{const{saveSettings:t,isSaving:n,isLoading:o,isDirty:r}=np(),a=tp(),[i,s]=(0,W.useState)(null),[c,d]=(0,W.useState)(null),[l,u]=(0,W.useState)(!1);return null===i&&a&&void 0!==a.is_payment_request_enabled&&s(a.is_payment_request_enabled),null===c&&a&&void 0!==a.is_woopay_enabled&&d(a.is_woopay_enabled),(0,Ta.jsxs)(qI,{className:"save-settings-section",children:[(0,Ta.jsx)(jr,{isPrimary:!0,isBusy:n,disabled:n||o||e||!r,onClick:async()=>{if(await t()&&(i!==a.is_payment_request_enabled&&(oa("wcpay_payment_request_settings_change",{enabled:a.is_payment_request_enabled?"yes":"no"}),s(a.is_payment_request_enabled)),c&&!a.is_woopay_enabled)){const{woopayLastDisableDate:e}=wcpaySettings;if(e){const t=new Date(e),n=new Date,o=Math.abs(n-t);if(Math.ceil(o/864e5)<7)return}u(!0),s(!0),wcpaySettings.woopayLastDisableDate=new Date}},children:(0,Y.__)("Save changes","woocommerce-payments")}),l?(0,Ta.jsx)(yT,{onRequestClose:()=>u(!1)}):null]})},fT=({setInputsValid:e})=>{const[t,n]=(0,q.useState)(!1),[o,r]=(()=>{const{updateAccountBusinessName:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAccountBusinessName())),e]})(),[a,i]=(()=>{const{updateAccountBusinessURL:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAccountBusinessURL())),e]})();return(0,W.useLayoutEffect)((()=>{const e=document.querySelector(".card-readers-business-url-input input");e.focus(),e.blur()}),[]),(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("h4",{children:(0,Y.__)("Business details","woocommerce-payments")}),(0,Ta.jsx)(Ov,{className:"card-readers-business-name-input",label:(0,Y.__)("Business name","woocommerce-payments"),value:o,onChange:r}),t&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Ta.jsx)("span",{children:(0,Y.__)("Error: Invalid business URL, should start with http:// or https:// prefix.","woocommerce-payments")})}),(0,Ta.jsx)(Ov,{className:"card-readers-business-url-input",label:(0,Y.__)("Business URL","woocommerce-payments"),value:a,onChange:i,onBlur:t=>{t.target.checkValidity()?(n(!1),e(!0)):(n(!0),e(!1))},type:"url"})]})};var _T=n(603),gT=n.n(_T),vT=n(4183),wT=n.n(vT);const bT=e=>{var{onValueChange:t,value:n,onValidationChange:o=e=>e,onCountryDropdownClick:r,inputProps:a={label:"",ariaLabel:"",name:""},isBlocksCheckout:i}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["onValueChange","value","onValidationChange","onCountryDropdownClick","inputProps","isBlocksCheckout"]);const[c,d]=(0,W.useState)(!1),[l,u]=(0,W.useState)(null),m=(0,W.useRef)(null);return(0,W.useEffect)((()=>{var e,n,a;let i=null;const s=m.current,d=()=>{i&&(c||i.getNumber())&&(t(i.getNumber()),o(i.isValidNumber()))};let l={initialCountry:"US",onlyCountries:[]};if("undefined"!=typeof wcpaySettings&&"JP"===(null!==(n=null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===e?void 0:e.country)&&void 0!==n?n:"")&&(l={initialCountry:"JP",onlyCountries:["JP"]}),s){i=gT()(s,Object.assign({customPlaceholder:()=>"",separateDialCode:!0,hiddenInput:"full",utilsScript:wT(),dropdownContainer:document.body,formatOnDisplay:!1},l)),u(i),s.addEventListener("countrychange",d);const e=null===(a=s.closest(".iti"))||void 0===a?void 0:a.querySelector(".iti__flag-container");e&&r&&e.addEventListener("click",r)}return()=>{var e;if(i){i.destroy(),s&&s.removeEventListener("countrychange",d);const t=null===(e=null==s?void 0:s.closest(".iti"))||void 0===e?void 0:e.querySelector(".iti__flag-container");t&&r&&t.removeEventListener("click",r)}}}),[t,o,r,c]),(0,W.useEffect)((()=>{l&&m.current&&(c||l.getNumber())&&(l.setNumber(n),o(l.isValidNumber()))}),[n,l,m,o,c]),G().createElement("div",{className:i?"wc-block-components-text-input":""},G().createElement("input",Object.assign({type:"tel",ref:m,value:(p=n,l?p.replace("+"+l.getSelectedCountryData().dialCode,""):p),onBlur:()=>{d(!0)},onChange:()=>{l&&(t(l.getNumber()),o(l.isValidNumber()))},placeholder:(0,Y.__)("Mobile number","woocommerce-payments"),"aria-label":a.ariaLabel||(0,Y.__)("Mobile phone number","woocommerce-payments"),name:a.name,className:l&&!l.isValidNumber()?"phone-input input-text has-error":"phone-input input-text"},s)));var p},ET=({setInputVallid:e})=>{const[t,n]=(()=>{const{updateAccountBusinessSupportPhone:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAccountBusinessSupportPhone())),e]})();let o=op()?.data?.details?.account_business_support_phone?.message;const r=(0,W.useRef)(t).current,a=""===t&&""===r,i=(0,Js.useSelect)((e=>e(xi).getIsTestModeOnboarding()),[]),s=i&&"+10000000000"===t,[c,d]=(0,W.useState)(!0);""===t&&(o=(0,Y.__)("Support phone number cannot be empty.","woocommerce-payments")),s||c||a||(o=(0,Y.__)("Please enter a valid phone number.","woocommerce-payments")),""===t&&""!==r&&(o=(0,Y.__)("Support phone number cannot be empty once it has been set before, please specify.","woocommerce-payments")),(0,W.useEffect)((()=>{e&&e(!o)}),[o,e]);let l=(0,Y.__)("Support phone number","woocommerce-payments");return i&&(l+=(0,Y.__)(" (+1 0000000000 can be used in sandbox mode)","woocommerce-payments")),(0,Ta.jsxs)(Ta.Fragment,{children:[o&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Ta.jsx)("span",{children:o})}),(0,Ta.jsx)(ah,{className:"settings__account-business-support-phone-input no-top-margin",help:(0,Y.__)("This may be visible on receipts, invoices, and automated emails from your store.","woocommerce-payments"),label:l,id:"account-business-support-phone-input",children:(0,Ta.jsx)(bT,{onValueChange:n,value:t,onValidationChange:d,inputProps:{ariaLabel:l}})})]})},$T=({setInputVallid:e})=>{const[t,n]=(()=>{const{updateAccountBusinessSupportEmail:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAccountBusinessSupportEmail())),e]})();let o=op()?.data?.details?.account_business_support_email?.message;const r=(0,W.useRef)(t).current;return""===t&&""!==r&&(o=(0,Y.__)("Support email cannot be empty once it has been set before, please specify.","woocommerce-payments")),(0,W.useEffect)((()=>{e&&e(!o)}),[o,e]),(0,Ta.jsxs)(Ta.Fragment,{children:[o&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Ta.jsx)("span",{children:o})}),(0,Ta.jsx)(Ov,{className:"settings__account-business-support-email-input",help:(0,Y.__)("This may be visible on receipts, invoices, and automated emails from your store.","woocommerce-payments"),label:(0,Y.__)("Support email","woocommerce-payments"),value:t,onChange:n,"data-testid":"account-business-support-email-input"})]})},ST=({setInputsValid:e})=>{const[t,n]=(0,W.useState)(!0),[o,r]=(0,W.useState)(!0);return(0,W.useEffect)((()=>{e(t&&o)}),[t,o,e]),(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("h4",{children:(0,Y.__)("Customer support contacts","woocommerce-payments")}),(0,Ta.jsx)($T,{setInputVallid:n}),(0,Ta.jsx)(ET,{setInputVallid:r})]})},xT=()=>{const[e,t,n,o,r,a,i,s]=(()=>{const{updateAccountBusinessSupportAddress:e}=(0,Js.useDispatch)(xi),t=(0,Js.useSelect)((e=>{const{getAccountBusinessSupportAddress:t,getAccountBusinessSupportAddressCountry:n,getAccountBusinessSupportAddressLine1:o,getAccountBusinessSupportAddressLine2:r,getAccountBusinessSupportAddressCity:a,getAccountBusinessSupportAddressState:i,getAccountBusinessSupportAddressPostalCode:s}=e(xi);return[t(),n(),o(),r(),a(),i(),s()]}));return[...t,e]})(),c=op()?.data?.details?.account_business_support_address?.message,d=(t,n)=>{s({...e,[t]:n})},l=e=>(new DOMParser).parseFromString(e,"text/html").documentElement.textContent,u=Object.entries(wcSettings.countries).map((([e,t])=>({label:l(t),value:e}))),m=wcpaySettings.connect.availableStates[t]||[],p=Object.entries(m).map((([e,t])=>({label:l(t),value:l(t),country:e})));return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("h4",{children:(0,Y.__)("Business address","woocommerce-payments")}),c&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Ta.jsx)("span",{children:c})}),(0,Ta.jsx)(Kh,{label:(0,Y.__)("Country","woocommerce-payments"),value:t,onChange:e=>d("country",e),options:u}),(0,Ta.jsx)(Ov,{className:"card-readers-support-address-line1-input",label:(0,Y.__)("Address line 1","woocommerce-payments"),value:n,onChange:e=>d("line1",e)}),(0,Ta.jsx)(Ov,{className:"card-readers-support-address-line2-input",label:(0,Y.__)("Address line 2","woocommerce-payments"),value:o,onChange:e=>d("line2",e)}),(0,Ta.jsx)(Ov,{className:"card-readers-support-address-city",label:(0,Y.__)("City","woocommerce-payments"),value:r,onChange:e=>d("city",e)}),p.length>0&&(0,Ta.jsx)(Kh,{label:(0,Y.__)("State","woocommerce-payments"),value:a,onChange:e=>d("state",e),options:p}),(0,Ta.jsx)(Ov,{className:"card-readers-support-address-postcode",label:(0,Y.__)("Postal code","woocommerce-payments"),value:i,onChange:e=>d("postal_code",e)})]})};const kT=e=>{const{fieldKey:t,label:n,accept:o,disabled:r,help:a,purpose:i,fileID:s,updateFileID:c}=e,[d,l]=(0,q.useState)(!1),[u,m]=(0,q.useState)(!1),{createErrorNotice:p}=(0,Js.useDispatch)("core/notices"),y=!d&&s&&0<s.length,h=u||"";return G().createElement("div",{className:"wcpay-branding-upload-field__wrapper"},G().createElement(MC,{field:{key:t,label:n},fileName:s,isLoading:d,accept:o,disabled:r,isDone:y,help:a,error:h,onFileChange:(e,t)=>{return n=void 0,o=void 0,a=function*(){if(!t)return;if((e=>{if(51e4<e)return p((0,Y.__)("The file you have attached is exceeding the maximum limit.","woocommerce-payments")),!0})(t.size))return;l(!0),oa("wcpay_merchant_settings_file_upload_started",{type:e});const n=new FormData;n.append("file",t),n.append("purpose",i),n.append("as_account","0");try{const t=yield Wr()({path:"/wc/v3/payments/file",method:"post",body:n});t&&c(t.id),l(!1),m(!1),oa("wcpay_merchant_settings_file_upload_success",{type:e})}catch({err:e}){oa("wcpay_merchant_settings_file_upload_success",{message:e.message}),c(""),l(!1),m(e.message||""),p(e.message)}},new((r=void 0)||(r=Promise))((function(e,t){function i(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}c((a=a.apply(n,o||[])).next())}));var n,o,r,a},onFileRemove:()=>{c(""),l(!1),m(!1)},showPreview:!0}))},CT=()=>{const[e,t]=(()=>{const{updateAccountBrandingLogo:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAccountBrandingLogo())),e]})();return(0,q.useEffect)((()=>{document.querySelectorAll(".components-circular-option-picker__dropdown-link-action button").forEach((function(e){e.innerHTML=(0,Y.__)("Edit","woocommerce-payments")}))}),[]),(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)("h4",{children:(0,Y.__)("Branding","woocommerce-payments")}),(0,Ta.jsx)("p",{className:"wcpay-branding-help-label",children:(0,Y.__)("Your business’s logo will be used on printed receipts.","woocommerce-payments")}),(0,Ta.jsx)(kT,{fieldKey:"branding-logo",label:(0,Y.__)("Logo","woocommerce-payments"),accept:"image/png, image/jpeg",disabled:!1,help:(0,Y.__)("Upload a .png or .jpg file.","woocommerce-payments"),purpose:"business_logo",fileID:e,updateFileID:t})]})},NT=()=>G().createElement(G().Fragment,null,G().createElement("h2",null,(0,Y.__)("Card reader receipts","woocommerce-payments")),G().createElement("p",null,(0,Y.__)("These details will appear on emailed receipts for customers that pay in person using card readers. Updating the details here will not affect any other stores settings.","woocommerce-payments"))),IT=()=>{const[e,t]=(0,q.useState)(!0),[n,o]=(0,q.useState)(!0),r=e&&n;return G().createElement(GI,{displayBanner:!1},G().createElement(qI,{description:NT},G().createElement(iI,{numLines:20},G().createElement(So,{className:"card-readers-settings__wrapper"},G().createElement(Oo,null,G().createElement(fT,{setInputsValid:t}),G().createElement(ST,{setInputsValid:o}),G().createElement(xT,null),G().createElement(CT,null))))),G().createElement(hT,{disabled:!r}))},TT=()=>G().createElement(Ma,null,G().createElement(p_,{className:"wcpay-card-readers-page",activeClass:"active-tab",tabs:[{name:"connected-readers",title:(0,Y.__)("Connected readers","woocommerce-payments"),className:"connected-readers-list"},{name:"receipt-details",title:(0,Y.__)("Receipt details","woocommerce-payments"),className:"connected-readers-receipt-details"}]},(e=>"receipt-details"===e.name?G().createElement(IT,null):G().createElement(mT,null)))),AT=kt((function(e,t){const n=function(e){return xa({isBlock:!0,...Kt(e,"FlexBlock")})}(e);return(0,q.createElement)(Bt,Q({},n,{ref:t}))}),"FlexBlock"),OT=({title:e,children:t})=>W.createElement(AT,{className:"wcpay-loan-summary-block"},W.createElement("div",{className:"wcpay-loan-summary-block__title"},e),W.createElement("div",{className:"wcpay-loan-summary-block__value"},t)),MT=()=>W.createElement(So,null,W.createElement(df,{size:"medium",className:"wcpay-loan-summary-header"},W.createElement(ka,null,(0,Y.__)("Active loan overview","woocommerce-payments"))),W.createElement(Oo,{className:"wcpay-loan-summary-body"},W.createElement(Sa,{align:"normal",className:"wcpay-loan-summary-row"},W.createElement(OT,{title:(0,Y.__)("Total repaid","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:(0,Y.__)("Total repaid placeholder","woocommerce-payments")})),W.createElement(OT,{title:(0,Y.__)("Repaid this period","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:(0,Y.__)("Repaid this period placeholder","woocommerce-payments")}))),W.createElement(Sa,{align:"normal",className:"wcpay-loan-summary-row is-bottom-row"},W.createElement(OT,{title:(0,Y.__)("Loan disbursed","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:"Date disbursed"})),W.createElement(OT,{title:(0,Y.__)("Loan amount","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:"Loan amount"})),W.createElement(OT,{title:(0,Y.__)("Fixed fee","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:"Fixed fee"})),W.createElement(OT,{title:(0,Y.__)("Withhold rate","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:"Rate"})),W.createElement(OT,{title:(0,Y.__)("First paydown","woocommerce-payments")},W.createElement(U_,{isLoading:!0,display:"inline",placeholder:(0,Y.__)("First paydown","woocommerce-payments")}))))),LT=()=>{for(const e in wcpaySettings.accountLoans.loans){const[t,n]=wcpaySettings.accountLoans.loans[e].split("|");if("active"===n)return t}return null},jT=()=>{const{summary:e,isLoading:t}=(0,Js.useSelect)((e=>{const{getActiveLoanSummary:t,getActiveLoanSummaryError:n,isResolving:o}=e(xi);return{summary:t(),summaryError:n(),isLoading:o("getActiveLoanSummary")}}));if(t||!e)return W.createElement(MT,null);const{details:n}=e;return W.createElement(So,null,W.createElement(df,{size:"medium",className:"wcpay-loan-summary-header"},W.createElement(ka,null,(0,Y.__)("Active loan overview","woocommerce-payments")),W.createElement(ka,null,LT()&&W.createElement(jr,{isLink:!0,href:Ii({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:LT()})},(0,Y.__)("View transactions","woocommerce-payments")))),W.createElement(Oo,{className:"wcpay-loan-summary-body"},W.createElement(Sa,{align:"normal",className:"wcpay-loan-summary-row"},W.createElement(OT,{title:(0,Y.__)("Total repaid","woocommerce-payments")},(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("<big>%s</big> of %s","woocommerce-payments"),Fc(n.paid_amount,n.currency),Fc(n.fee_amount+n.advance_amount,n.currency)),{big:W.createElement("span",{className:"is-big"})})),W.createElement(OT,{title:(0,Y.sprintf)((0,Y.__)("Repaid this period (until %s)","woocommerce-payments"),(0,$i.dateI18n)("M j, Y",new Date(1e3*n.current_repayment_interval.due_at)))},(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("<big>%s</big> of %s minimum","woocommerce-payments"),Fc(n.current_repayment_interval.paid_amount,n.currency),Fc(n.current_repayment_interval.paid_amount+n.current_repayment_interval.remaining_amount,n.currency)),{big:W.createElement("span",{className:"is-big"})}))),W.createElement(Sa,{align:"normal",className:"wcpay-loan-summary-row is-bottom-row"},W.createElement(OT,{title:(0,Y.__)("Loan disbursed","woocommerce-payments")},(0,$i.dateI18n)("M j, Y",new Date(1e3*n.advance_paid_out_at))),W.createElement(OT,{title:(0,Y.__)("Loan amount","woocommerce-payments")},Fc(n.advance_amount,n.currency)),W.createElement(OT,{title:(0,Y.__)("Fixed fee","woocommerce-payments")},Fc(n.fee_amount,n.currency)),W.createElement(OT,{title:(0,Y.__)("Withhold rate","woocommerce-payments")},100*n.withhold_rate,"%"),W.createElement(OT,{title:(0,Y.__)("First paydown","woocommerce-payments")},(0,$i.dateI18n)("M j, Y",new Date(1e3*n.repayments_begin_at))))))},DT=[{key:"paid_out_at",label:(0,Y.__)("Disbursed","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Disbursed","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultSort:!0},{key:"status",label:(0,Y.__)("Status","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Status","woocommerce-payments"),required:!0,cellClassName:"is-center-aligned"},{key:"amount",label:(0,Y.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Amount","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"fee_amount",label:(0,Y.__)("Fixed fee","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Fixed fee","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"withhold_rate",label:(0,Y.__)("Withhold rate","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Withhold rate","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"first_paydown_at",label:(0,Y.__)("First paydown","woocommerce-payments"),screenReaderLabel:(0,Y.__)("First paydown","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0}],RT=e=>e.fully_paid_at?(0,Y.__)("Paid off","woocommerce-payments")+": "+(0,$i.dateI18n)("M j, Y",e.fully_paid_at):(0,Y.__)("Active","woocommerce-payments"),PT=e=>W.createElement(Wy,{message:RT(e),type:e.fully_paid_at?"primary":"warning"}),FT=e=>e.map((e=>{const t=t=>W.createElement(Ry,{href:Ii({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:e.stripe_loan_id})},t),n={paid_out_at:{value:e.paid_out_at,display:t((0,$i.dateI18n)("M j, Y",e.paid_out_at))},status:{value:RT(e),display:t(PT(e))},amount:{value:jc(e.currency)?e.amount:e.amount/100,display:t(Fc(e.amount,e.currency.toUpperCase()))},fee_amount:{value:jc(e.currency)?e.fee_amount:e.fee_amount/100,display:t(Fc(e.fee_amount,e.currency.toUpperCase()))},withhold_rate:{value:e.withhold_rate,display:t(+(100*e.withhold_rate).toFixed(2)+"%")},first_paydown_at:{value:e.first_paydown_at,display:t(e.first_paydown_at?(0,$i.dateI18n)("M j, Y",e.first_paydown_at):"-")}};return DT.map((({key:e})=>n[e]))})),zT=e=>{if(!e.length)return[];const t=[{label:(0,Y._n)("loan","loans",e.length,"woocommerce-payments"),value:String(e.length)}],n=Array.from(new Set(e.map((e=>e.currency))));return 1===n.length&&(t.push({label:(0,Y.__)("total","woocommerce-payments"),value:Fc(e.reduce(((e,t)=>e+t.amount),0),n[0])}),t.push({label:(0,Y.__)("fixed fees","woocommerce-payments"),value:Fc(e.reduce(((e,t)=>e+t.fee_amount),0),n[0])})),t},BT=()=>{const{loans:e,isLoading:t}=(0,Js.useSelect)((e=>{const{getLoans:t,getLoansError:n,isResolving:o}=e(xi);return{loans:t(),loansError:n(),isLoading:o("getLoans")}}));return W.createElement(Ma,null,W.createElement(rc,{currentPage:"loans"}),wcpaySettings.accountLoans.has_active_loan&&W.createElement(Oa,null,W.createElement(jT,null)),W.createElement(Qr.TableCard,{className:"wcpay-loans-list",title:(0,Y.__)("All loans","woocommerce-payments"),isLoading:t,totalRows:e.length,headers:DT,rows:FT(e),rowsPerPage:e.length,summary:zT(e),showMenu:!1}))},UT=({id:e,title:t,currencyCode:n,tooltip:o,amount:r=0,isLoading:a=!1})=>W.createElement("div",{className:"wcpay-account-balances__balances__item"},W.createElement("p",{id:e,className:"wcpay-account-balances__balances__item__title"},W.createElement("span",null,t),!a&&o),W.createElement("p",{className:"wcpay-account-balances__balances__item__amount","aria-labelledby":e},W.createElement(U_,{isLoading:a,display:"inline",placeholder:"loading amount",value:Rc(r,n)}))),VT=({instantBalance:{amount:e,fee:t,net:n,fee_percentage:o},onClose:r,onSubmit:a,inProgress:i})=>{const s=`${o}%`,c=(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Need cash in a hurry? Instant payouts are available within 30 minutes for a nominal %s service fee. <a>Learn more</a>","woocommerce-payments"),s),{a:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/payouts/instant-payouts/",target:"_blank",rel:"noopener noreferrer"})});return G().createElement(Xa,{title:(0,Y.__)("Instant payout","woocommerce-payments"),onRequestClose:r,className:"wcpay-instant-payout-modal"},G().createElement("p",null,c),G().createElement("ul",null,G().createElement("li",{className:"wcpay-instant-payout-modal__balance"},(0,Y.__)("Balance available for instant payout: ","woocommerce-payments"),G().createElement("span",null,Rc(e))),G().createElement("li",{className:"wcpay-instant-payout-modal__fee"},(0,Y.sprintf)((0,Y.__)("%s service fee: ","woocommerce-payments"),s),G().createElement("span",null,"-",Rc(t))),G().createElement("li",{className:"wcpay-instant-payout-modal__net"},(0,Y.__)("Net payout amount: ","woocommerce-payments"),G().createElement("span",null,Fc(n)))),G().createElement("div",{className:"wcpay-instant-payout-modal__footer"},G().createElement(jr,{isSecondary:!0,onClick:r},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{isPrimary:!0,onClick:a,isBusy:i,disabled:i},(0,Y.sprintf)((0,Y.__)("Pay out %s now","woocommerce-payments"),Fc(n)))))},YT=({instantBalance:e})=>{const[t,n]=(0,q.useState)(!1),o=(e=>{let t=!1;return 0===e.amount&&(t=!0),t})(e),{inProgress:r,submit:a}=(e=>{const{deposit:t,inProgress:n}=(0,Js.useSelect)((t=>{const{getInstantDeposit:n,isResolving:o}=t(xi);return{deposit:n([e]),inProgress:o("getInstantDeposit",[e])}})),{submitInstantDeposit:o}=(0,Js.useDispatch)(xi);return{deposit:t,inProgress:n,submit:()=>o(e)}})(e.currency);return G().createElement(G().Fragment,null,G().createElement(jr,{isPrimary:!0,disabled:o,onClick:()=>n(!0)},(0,Y.sprintf)((0,Y.__)("Get %s now","woocommerce-payments"),Rc(e.amount,e.currency))),(t||r)&&G().createElement(VT,{instantBalance:e,inProgress:r,onSubmit:()=>{n(!1),a()},onClose:()=>{n(!1)}}))},HT=n.p+"../assets/images/icons/send-money.svg?ver=62733158594b203e44de",WT=((0,Y.__)("Good morning, %s","woocommerce-payments"),(0,Y.__)("Good afternoon, %s","woocommerce-payments"),(0,Y.__)("Good evening, %s","woocommerce-payments"),(0,Y.__)("Good morning","woocommerce-payments"),(0,Y.__)("Good afternoon","woocommerce-payments"),(0,Y.__)("Good evening","woocommerce-payments"),{available:(0,Y.__)("Available funds","woocommerce-payments"),total:(0,Y.__)("Total balance","woocommerce-payments")}),GT="https://woocommerce.com/document/woopayments/payouts/payout-schedule/",qT="https://woocommerce.com/document/woopayments/fees-and-debits/account-showing-negative-balance/",QT=({balance:e})=>{const t=e<0;return G().createElement(Bs,{className:"wcpay-account-balances__balances__item__tooltip",buttonIcon:G().createElement(Os.A,null),buttonLabel:`${WT.total} tooltip`,maxWidth:"315px",content:G().createElement(G().Fragment,null,G().createElement(G().Fragment,null,Ua({mixedString:(0,Y.__)("{{bold}}Total balance{{/bold}} combines both pending funds (transactions under processing) and available funds (ready for payout). {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{bold:G().createElement("b",null),learnMoreLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:GT})}})),G().createElement(Ia,{className:"wcpay-account-balances__balances-total-balance-tooltip-notice",isDismissible:!1},(0,Y.__)("Total balance = Available funds + Pending funds","woocommerce-payments")),G().createElement(G().Fragment,null,t&&Ua({mixedString:(0,Y.__)("Negative account balance? {{discoverWhyLink}}Discover why.{{/discoverWhyLink}}","woocommerce-payments"),components:{discoverWhyLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:qT})}})))})},KT=({balance:e})=>{const t=e<0;return G().createElement(Bs,{className:"wcpay-account-balances__balances__item__tooltip",buttonIcon:G().createElement(Os.A,null),buttonLabel:`${WT.available} tooltip`,maxWidth:t?"280px":void 0,content:G().createElement(G().Fragment,null,G().createElement("p",null,Ua({mixedString:(0,Y.__)("{{bold}}Available funds{{/bold}} have completed processing and are ready to be dispatched to your bank account. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{bold:G().createElement("b",null),learnMoreLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:GT})}})),G().createElement("p",null,t&&Ua({mixedString:(0,Y.__)("Negative account balance? {{discoverWhyLink}}Discover why.{{/discoverWhyLink}}","woocommerce-payments"),components:{discoverWhyLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:qT})}})))})},ZT=()=>({setSelectedCurrency:e=>{(0,Ay.updateQueryString)({selected_currency:e})},selectedCurrency:(0,Ay.getQuery)().selected_currency}),JT=()=>{const{overviews:e,isLoading:t}=ad(),{selectedCurrency:n}=ZT(),{isInstantDepositNoticeDismissed:o,handleDismissInstantDepositNotice:r}=(()=>{const{updateOptions:e}=(0,Js.useDispatch)("wc/admin/options"),[t,n]=(0,W.useState)(wcpaySettings.isInstantDepositNoticeDismissed);return{isInstantDepositNoticeDismissed:t,handleDismissInstantDepositNotice:()=>{n(!0),wcpaySettings.isInstantDepositNoticeDismissed=!0,e({wcpay_instant_deposit_notice_dismissed:!0})}}})();if(!t&&0===e.currencies.length)return null;if(t){const e={name:"loading",currencyCode:wcpaySettings.accountDefaultCurrency,availableFunds:0,pendingFunds:0,delayDays:0};return G().createElement(Sa,{gap:0,className:"wcpay-account-balances__balances"},G().createElement(UT,{id:`wcpay-account-balances-${e.currencyCode}-total`,title:WT.total,amount:0,currencyCode:e.currencyCode,isLoading:!0}),G().createElement(UT,{id:`wcpay-account-balances-${e.currencyCode}-available`,title:WT.available,amount:0,currencyCode:e.currencyCode,isLoading:!0}))}const{currencies:a,account:i}=e,s=a.map((e=>{var t,n,o,r,a;return{name:e.currency,currencyCode:e.currency,availableFunds:null!==(n=null===(t=e.available)||void 0===t?void 0:t.amount)&&void 0!==n?n:0,pendingFunds:null!==(r=null===(o=e.pending)||void 0===o?void 0:o.amount)&&void 0!==r?r:0,delayDays:null!==(a=null==i?void 0:i.deposits_schedule.delay_days)&&void 0!==a?a:0,instantBalance:e.instant}})),c=s.find((e=>e.name===n))||s[0],d=c.availableFunds+c.pendingFunds;return G().createElement(G().Fragment,null,G().createElement(Sa,{gap:0,className:"wcpay-account-balances__balances"},G().createElement(UT,{id:`wcpay-account-balances-${c.currencyCode}-total`,title:WT.total,amount:d,currencyCode:c.currencyCode,tooltip:G().createElement(QT,{balance:d})}),G().createElement(UT,{id:`wcpay-account-balances-${c.currencyCode}-available`,title:WT.available,amount:c.availableFunds,currencyCode:c.currencyCode,tooltip:G().createElement(KT,{balance:c.availableFunds})})),c.instantBalance&&c.instantBalance.amount>0&&G().createElement(Sa,{gap:0,className:"wcpay-account-balances__instant-deposit",direction:"column",align:"start"},!o&&G().createElement(Ia,{className:"wcpay-account-balances__instant-deposit-notice",icon:G().createElement("img",{src:HT,alt:""}),isDismissible:!0,onRemove:()=>r()},(0,Y.sprintf)((0,Y.__)("Get %1$s via instant payout. Funds are typically in your bank account within 30 mins. Fee: %2$s%%.","woocommerce-payments"),Rc(c.instantBalance.amount,c.instantBalance.currency),c.instantBalance.fee_percentage)),G().createElement(Sa,{justify:"flex-start"},G().createElement(YT,{instantBalance:c.instantBalance}),o&&G().createElement(Bs,{buttonIcon:G().createElement(Os.A,null),buttonLabel:(0,Y.__)("Learn more about instant payouts","woocommerce-payments"),content:Ua({mixedString:(0,Y.sprintf)((0,Y.__)("With {{strong}}instant payout{{/strong}} you can receive requested funds in your bank account within 30 mins for a %s%% fee. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),c.instantBalance.fee_percentage),components:{strong:G().createElement("strong",null),learnMoreLink:G().createElement(Qr.Link,{href:"https://woocommerce.com/document/woopayments/payouts/instant-payouts/",target:"_blank",rel:"noreferrer",type:"external"})}})}))))},XT=({progressLabel:e,totalLabel:t,progress:n})=>{const o=.5<n;return G().createElement("div",{className:"progressbar"},G().createElement("div",{className:"progressbar__container"},G().createElement("div",{className:"progressbar__inner",style:{width:100*n+"%"}},o&&G().createElement("span",{className:"progressbar__inner-progress-label"},e)),!o&&G().createElement("span",{className:"progressbar__outer-progress-label"},e)),G().createElement("span",{className:"progressbar__total-label"},t))},eA=({feeData:{volume_allowance:e,current_volume:t,...n}})=>{var o;if(!e)return null;const r=null!==(o=n.volume_currency)&&void 0!==o?o:n.currency;return(0,Ta.jsx)(XT,{progressLabel:Rc(t,r),totalLabel:Rc(e,r),progress:t/e})},tA=({feeData:{volume_allowance:e,end_time:t,...n}})=>{var o;const r=null!==(o=n.volume_currency)&&void 0!==o?o:n.currency;let a;if(e&&t)a=(0,Y.sprintf)((0,Y.__)("Discounted base fee expires after the first %1$s of total payment volume or on %2$s.","woocommerce-payments"),Rc(e,r),(0,$i.dateI18n)("F j, Y",Ei()(t).toISOString()));else if(e)a=(0,Y.sprintf)((0,Y.__)("Discounted base fee expires after the first %1$s of total payment volume.","woocommerce-payments"),Rc(e,r));else{if(!t)return null;a=(0,Y.sprintf)((0,Y.__)("Discounted base fee expires on %1$s.","woocommerce-payments"),(0,$i.dateI18n)("F j, Y",Ei()(t).toISOString()))}return(0,Ta.jsx)("p",{className:"description",children:a})},nA=e=>{const{accountFee:t,paymentMethod:n}=e,o=t.base,r=Lc(o.currency),a=Mc(o.currency),i=r?.getCurrencyConfig()?.code,s=eI(t),c=JN(t);return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("p",{children:[tI(n),":"]}),a?`${a} `:null,i?`(${i}) `:null,s,(0,Ta.jsx)(eA,{feeData:c}),(0,Ta.jsx)(tA,{feeData:c})]})},oA=e=>{const{accountFees:t}=e;let n=!1;const o=Object.entries(t).map((([e,t])=>0===t.fee.discount.length?null:(n=!0,(0,Ta.jsx)(nA,{paymentMethod:t.payment_method,accountFee:t.fee},e))));return(0,Ta.jsxs)(Ta.Fragment,{children:[n&&(0,Ta.jsxs)("div",{className:"account-fees",children:[(0,Ta.jsx)(hs,{}),(0,Ta.jsx)("h4",{children:(0,Y.__)("Active discounts","woocommerce-payments")})]}),o]})},rA=({label:e,align:t,value:n,children:o})=>(0,Ta.jsxs)(Sa,{direction:"row",align:t||"center",justify:"left",gap:3,className:"woocommerce-account-status-item",children:[(0,Ta.jsx)(ka,{className:"item-label",children:e}),(0,Ta.jsx)(AT,{className:"item-value",children:o||n||null})]});var aA=n(2467);const iA=e=>{const{iconSize:t,interval:n}=e,o=(e=>{switch(e){case"daily":case"weekly":case"monthly":return(0,Y.__)("Automatic","woocommerce-payments");case"manual":return(0,Y.__)("Manual","woocommerce-payments");default:return(0,Y.__)("Unknown","woocommerce-payments")}})(n);return G().createElement("span",{className:"account-status__info__green"},G().createElement(aA.A,{size:t}),o)},sA=e=>{const{iconSize:t}=e;return G().createElement("span",{className:"account-status__info__red"},G().createElement(Da.A,{size:t}),(0,Y.__)("Disabled","woocommerce-payments"))},cA=e=>{const{iconSize:t}=e,n=(0,q.createInterpolateElement)((0,Y.__)("Temporarily suspended (<a>learn more</a>)","woocommerce-payments"),{a:G().createElement("a",{href:"https://woocommerce.com/document/woopayments/payouts/why-payouts-suspended/",target:"_blank",rel:"noopener noreferrer"})});return G().createElement("span",{className:"account-status__info__yellow"},G().createElement(Da.A,{size:t}),n)},dA=e=>{const{iconSize:t}=e;return G().createElement("span",{className:"account-status__info__gray"},G().createElement(Da.A,{size:t}),(0,Y.__)("Pending verification","woocommerce-payments"))},lA=({status:e,interval:t,accountStatus:n,poEnabled:o,poComplete:r,iconSize:a})=>{const i=o&&!r;return"blocked"===e||"under_review"===n?G().createElement(cA,{iconSize:a,interval:t}):"pending_verification"===n||i?G().createElement(dA,{iconSize:a,interval:t}):"disabled"===e?G().createElement(sA,{iconSize:a,interval:t}):G().createElement(iA,{iconSize:a,interval:t})},uA=e=>{const{iconSize:t}=e;return G().createElement("span",{className:"account-status__info__green"},G().createElement(aA.A,{size:t}),(0,Y.__)("Enabled","woocommerce-payments"))},mA=e=>{const{iconSize:t}=e;return G().createElement("span",{className:"account-status__info__red"},G().createElement(Da.A,{size:t}),(0,Y.__)("Disabled","woocommerce-payments"))},pA=e=>{const{iconSize:t}=e;return G().createElement("span",{className:"account-status__info__gray"},G().createElement(Da.A,{size:t}),(0,Y.__)("Pending verification","woocommerce-payments"))},yA=e=>{const{paymentsEnabled:t,accountStatus:n}=e;return t?G().createElement(uA,{iconSize:e.iconSize}):"pending_verification"===n?G().createElement(pA,{iconSize:e.iconSize}):G().createElement(mA,{iconSize:e.iconSize})},hA=e=>{const{accountStatus:t,poEnabled:n,poComplete:o}=e;let r=(0,Y.__)("Unknown","woocommerce-payments"),a="light",i="";return"complete"===t?(r=(0,Y.__)("Complete","woocommerce-payments"),a="success"):"enabled"===t?(r=(0,Y.__)("Enabled","woocommerce-payments"),a="primary"):"restricted_soon"===t?(r=(0,Y.__)("Restricted soon","woocommerce-payments"),a="warning"):"pending_verification"===t||n&&!o&&"restricted"===t?(r=(0,Y.__)("Pending","woocommerce-payments"),a="light",i=(0,Y.__)("Payouts are pending while Stripe verifies details on your account.","woocommerce-payments")):"restricted_partially"===t?(r=(0,Y.__)("Restricted partially","woocommerce-payments"),a="warning"):"restricted"===t?(r=(0,Y.__)("Restricted","woocommerce-payments"),a="alert"):t.startsWith("rejected")?(r=(0,Y.__)("Rejected","woocommerce-payments"),a="light"):"under_review"===t&&(r=(0,Y.__)("Under review","woocommerce-payments"),a="light"),(0,Ta.jsx)(Wy,{message:r,type:a,tooltip:i})},fA={title:(0,Y.__)("Account Tools","woocommerce-payments"),description:Ni()?(0,Y.__)("Your account is in sandbox mode. If you are experiencing problems completing account setup, or wish to test with a different email/country associated with your account, you can reset your account and start from the beginning.","woocommerce-payments"):(0,Y.__)("Payments and payouts are disabled until account setup is completed. If you are experiencing problems completing account setup, or need to change the email/country associated with your account, you can reset your account and start from the beginning.","woocommerce-payments"),reset:(0,Y.__)("Reset account","woocommerce-payments")},_A=()=>{Ts(),window.location.href=(0,Gr.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-reset-account":"true",source:"wcpay-reset-account"})},gA=()=>{const[e,t]=(0,W.useState)(!1);return Ni()?G().createElement(G().Fragment,null,G().createElement("div",{className:"account-tools"},G().createElement(hs,null),G().createElement("h4",null,fA.title),G().createElement("p",null,fA.description),G().createElement("div",{className:"account-tools__actions"},G().createElement(jr,{variant:"secondary",onClick:()=>t(!0)},fA.reset))),G().createElement(_s,{isVisible:e,onDismiss:()=>t(!1),onSubmit:_A})):null},vA=e=>{const{title:t,children:n,value:o}=e;return(0,Ta.jsxs)(So,{isMedium:!0,children:[(0,Ta.jsx)(df,{className:"woocommerce-account-status__header",direction:"row",align:"center",justify:"left",gap:3,expanded:!0,children:t}),(0,Ta.jsx)(Oo,{children:n||o||null})]})},wA=()=>{const e=(0,Y.__)("Account details","woocommerce-payments");return(0,Ta.jsx)(vA,{title:e,children:(0,Y.__)("Error determining the connection status.","woocommerce-payments")})},bA=e=>{const{accountStatus:t,accountFees:n}=e,o=!!t.accountLink&&(0,Gr.addQueryArgs)(t.accountLink,{from:"WCPAY_ACCOUNT_DETAILS",source:"wcpay-account-details"}),r=(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsx)(ka,{className:"account-details",children:(0,Y.__)("Account details","woocommerce-payments")}),(0,Ta.jsx)(AT,{className:"account-status",children:(0,Ta.jsx)(hA,{accountStatus:t.status,poEnabled:t.progressiveOnboarding.isEnabled,poComplete:t.progressiveOnboarding.isComplete})}),o&&(0,Ta.jsx)(ka,{className:"edit-details",children:(0,Ta.jsx)(jr,{variant:"link",onClick:()=>oa("wcpay_account_details_link_clicked",{from:"WCPAY_ACCOUNT_DETAILS",source:"wcpay-account-details"}),href:o,target:"_blank",children:(0,Y.__)("Edit details","woocommerce-payments")})})]});return(0,Ta.jsxs)(vA,{title:r,children:[(0,Ta.jsx)(rA,{label:(0,Y.__)("Payments:","woocommerce-payments"),children:(0,Ta.jsx)(yA,{paymentsEnabled:t.paymentsEnabled,accountStatus:t.status,iconSize:24})}),(0,Ta.jsx)(rA,{label:(0,Y.__)("Payouts:","woocommerce-payments"),children:(0,Ta.jsx)(lA,{status:t.deposits?.status,interval:t.deposits?.interval,accountStatus:t.status,poEnabled:t.progressiveOnboarding.isEnabled,poComplete:t.progressiveOnboarding.isComplete,iconSize:24})}),(0,Ta.jsx)(gA,{}),n.length>0&&(0,Ta.jsx)(oA,{accountFees:n})]})},EA=e=>{const{accountStatus:t}=e;return t.error?(0,Ta.jsx)(wA,{}):(0,Ta.jsx)(bA,{...e})},$A=()=>{const[e,t]=G().useState(!1),{accountStatus:{progressiveOnboarding:{isEnabled:n,isComplete:o},status:r},testModeOnboarding:a}=wcpaySettings;return e||a||n&&!o?null:G().createElement(So,{className:"wcpay-connection-success"},G().createElement((()=>G().createElement(I_,{className:"wcpay-connection-success__dropdown",label:(0,Y.__)("Dismiss element","woocommerce-payments"),icon:"ellipsis",controls:[{icon:"button",title:(0,Y.__)("Dismiss","woocommerce-payments"),onClick:()=>t(!0)}]})),null),G().createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0NTMgNzMiPjxyZWN0IHdpZHRoPSIzLjkiIGhlaWdodD0iMTIuMiIgZmlsbD0iIzY0Q0E0MyIgcng9IjEuOSIgdHJhbnNmb3JtPSJtYXRyaXgoLS44MyAuNTYgLjU2IC44MyA0MDQgNDguNikiLz48cmVjdCB3aWR0aD0iMy4xIiBoZWlnaHQ9IjkuNiIgZmlsbD0iI0ZGMkQ1NSIgcng9IjEuNSIgdHJhbnNmb3JtPSJtYXRyaXgoLS42NyAuNzQgLjc0IC42NyA0MTggMTMuNSkiLz48cmVjdCB3aWR0aD0iMy42IiBoZWlnaHQ9IjExLjQiIGZpbGw9IiMxMTdBQzkiIHJ4PSIxLjgiIHRyYW5zZm9ybT0ibWF0cml4KC0uNjQgLS43NyAtLjc3IC42NCAzOTEuOCAyNSkiLz48cmVjdCB3aWR0aD0iMy45IiBoZWlnaHQ9IjEyLjIiIGZpbGw9IiNGRjgwODUiIHJ4PSIxLjkiIHRyYW5zZm9ybT0ibWF0cml4KC0uNCAtLjkxIC0uOTEgLjQgMTcxIDE0LjcpIi8+PHJlY3Qgd2lkdGg9IjUuMyIgaGVpZ2h0PSIxNi44IiBmaWxsPSIjRkY4MDg1IiByeD0iMi43IiB0cmFuc2Zvcm09Im1hdHJpeCguNCAuOTIgLjkyIC0uNCAzMjguMSA1MC42KSIvPjxjaXJjbGUgY3g9IjMuNCIgY3k9IjMuNCIgcj0iMy40IiBmaWxsPSIjRjBCODQ5IiB0cmFuc2Zvcm09Im1hdHJpeCgtLjk1IC0uMzEgLS4zMSAuOTUgNDM4IDU4LjQpIi8+PGNpcmNsZSBjeD0iMi4zIiBjeT0iMi4zIiByPSIyLjMiIGZpbGw9IiNCRjVBRjIiIHRyYW5zZm9ybT0ibWF0cml4KC0uOTUgLS4zMSAtLjMxIC45NSA0NTIuOSA0Mi41KSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9IjEuNSIgcj0iMS41IiBmaWxsPSIjQkY1QUYyIiB0cmFuc2Zvcm09Im1hdHJpeCgtLjk1IC0uMzEgLS4zMSAuOTUgMzc1LjMgNjIuMykiLz48Y2lyY2xlIGN4PSIyLjMiIGN5PSIyLjMiIHI9IjIuMyIgZmlsbD0iIzA5QjU4NSIgdHJhbnNmb3JtPSJtYXRyaXgoLS45NSAtLjMxIC0uMzEgLjk1IDE2My42IDUyLjYpIi8+PHJlY3Qgd2lkdGg9IjUuMyIgaGVpZ2h0PSIxNi44IiB4PSIzMTQuMyIgeT0iMTcuMiIgZmlsbD0iIzk4NEE5QyIgcng9IjIuNyIgdHJhbnNmb3JtPSJyb3RhdGUoLTUyIDMxNC4zIDE3LjIpIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjNjRDQTQzIiByeD0iMS45IiB0cmFuc2Zvcm09Im1hdHJpeCguNjIgLS43OSAuNzkgLjYyIDI3IDM0LjcpIi8+PHJlY3Qgd2lkdGg9IjMuNiIgaGVpZ2h0PSIxMS40IiBmaWxsPSIjRTdDMDM3IiByeD0iMS44IiB0cmFuc2Zvcm09InJvdGF0ZSgtMTcxLjQgMTM0LjggNCkiLz48cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSI5LjQiIGZpbGw9IiNFN0MwMzciIHJ4PSIxLjUiIHRyYW5zZm9ybT0icm90YXRlKDc2LjkgNzQgMTU5LjIpIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjMzM2MUNDIiByeD0iMS45IiB0cmFuc2Zvcm09InJvdGF0ZSgzOC4yIDUyLjYgNDE3LjQpIi8+PGNpcmNsZSBjeD0iOTAuNSIgY3k9IjQ1LjciIHI9IjMuNCIgZmlsbD0iI0YwQjg0OSIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgOTAuNSA0NS43KSIvPjxjaXJjbGUgY3g9IjU5LjkiIGN5PSIyNy4xIiByPSIyLjMiIGZpbGw9IiNCRjVBRjIiIHRyYW5zZm9ybT0icm90YXRlKC0yIDU5LjkgMjcuMSkiLz48Y2lyY2xlIGN4PSIzMDcuMSIgY3k9IjYwLjgiIHI9IjEuNSIgZmlsbD0iI0YwQzkzMCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMzA3LjEgNjAuOCkiLz48Y2lyY2xlIGN4PSIzNTcuMyIgY3k9IjI4LjUiIHI9IjEuNSIgZmlsbD0iI0YwQzkzMCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMzU3LjMgMjguNSkiLz48Y2lyY2xlIGN4PSIyMzcuMiIgY3k9IjQ3LjQiIHI9IjEuNSIgZmlsbD0iIzMzNjFDQyIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMjM3LjIgNDcuNCkiLz48Y2lyY2xlIGN4PSIyOTAuOSIgY3k9IjM5LjkiIHI9IjEuOSIgZmlsbD0iIzM3RTY4OCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMjkwLjkgNDApIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjNjRDQTQzIiByeD0iMS45IiB0cmFuc2Zvcm09InJvdGF0ZSgtNzAuMyA5Ny41IC00Ni44KSIvPjxyZWN0IHdpZHRoPSIzLjkiIGhlaWdodD0iMTIuMiIgeD0iMTMxLjMiIHk9IjI1LjEiIGZpbGw9IiMzMzYxQ0MiIHJ4PSIxLjkiIHRyYW5zZm9ybT0icm90YXRlKDYgMTMxLjMgMjUuMSkiLz48Y2lyY2xlIGN4PSIzLjQiIGN5PSIzLjQiIHI9IjMuNCIgZmlsbD0iI0YwQjg0OSIgdHJhbnNmb3JtPSJyb3RhdGUoLTM0LjIgMTE3IDYuMykiLz48Y2lyY2xlIGN4PSIxOTUuOCIgY3k9IjMzLjIiIHI9IjIuMyIgZmlsbD0iI0JGNUFGMiIgdHJhbnNmb3JtPSJyb3RhdGUoLTM0IDE5NS44IDMzLjIpIi8+PGNpcmNsZSBjeD0iMS41IiBjeT0iMS41IiByPSIxLjUiIGZpbGw9IiMzMzYxQ0MiIHRyYW5zZm9ybT0icm90YXRlKC0zNC4yIDEzNy43IC02OC4zKSIvPjxjaXJjbGUgY3g9IjEuOSIgY3k9IjEuOSIgcj0iMS45IiBmaWxsPSIjMzdFNjg4IiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQuMiA3Ny43IDI0KSIvPjxjaXJjbGUgY3g9IjEuOSIgY3k9IjEuOSIgcj0iMS45IiBmaWxsPSIjRjBDOTMwIiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQuMiAzNy4zIC0zMy42KSIvPjxjaXJjbGUgY3g9IjIzMS40IiBjeT0iMjEuMyIgcj0iMi4zIiBmaWxsPSIjMDlCNTg1IiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQgMjMxLjQgMjEuMykiLz48Y2lyY2xlIGN4PSIyLjMiIGN5PSIyLjMiIHI9IjIuMyIgZmlsbD0iI0ZGM0IzMCIgdHJhbnNmb3JtPSJtYXRyaXgoLjgzIC0uNTYgLjU2IC44MyA5NyAxNC44KSIvPjwvc3ZnPgo=",alt:"confetti"}),"complete"!==r?G().createElement("h2",null,(0,Y.__)("Congratulations! Your store is being verified.","woocommerce-payments")):G().createElement("h2",null,(0,Y.__)("Congratulations! Your store has been verified.","woocommerce-payments")))},SA=(0,q.createElement)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,q.createElement)(Ro.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),xA=({deposits:e})=>{if(0===e.length)return null;const t="wcpay-deposits-overview__table",n=e.map((e=>W.createElement(Sa,{className:`${t}__row`,key:e.id},W.createElement(ka,{className:`${t}__cell`},W.createElement(Ar,{icon:SA,size:17}),W.createElement(Qr.Link,{href:jy(e.id,"payouts")},(e=>{return e?(t=null==e?void 0:e.date,(0,$i.dateI18n)("F j, Y",Ei().utc(t).toISOString(),!0)):"—";var t})(e))),W.createElement(ka,{className:`${t}__cell`},W.createElement(qy,{deposit:e})),W.createElement(ka,{className:`${t}__cell`},Rc(e.amount,e.currency)))));return W.createElement(W.Fragment,null,W.createElement(Oo,{className:`${t}__container`},W.createElement(Sa,{className:`${t}__row__header`},W.createElement(ka,{className:`${t}__cell`},(0,Y.__)("Dispatch date","woocommerce-payments")),W.createElement(ka,{className:`${t}__cell`},(0,Y.__)("Status","woocommerce-payments")),W.createElement(ka,{className:`${t}__cell`},(0,Y.__)("Amount","woocommerce-payments")))),W.createElement(hs,null),W.createElement(Oo,{className:`${t}__container`},n))},kA=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),CA=()=>G().createElement(Ia,{className:"wcpay-deposits-overview__suspended-notice",icon:!0,isDismissible:!1,status:"warning"},Ua({mixedString:(0,Y.__)("Your payouts are {{strong}}temporarily suspended{{/strong}}. {{suspendLink}}Learn more{{/suspendLink}}","woocommerce-payments"),components:{strong:G().createElement("strong",null),suspendLink:G().createElement(Qr.Link,{href:"https://woocommerce.com/document/woopayments/payouts/why-payouts-suspended/"})}})),NA=()=>G().createElement(Ia,{status:"warning",icon:!0,className:"new-account-waiting-period-notice",isDismissible:!1},Ua({mixedString:(0,Y.__)("Your first payout is held for 7-14 days. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),components:{whyLink:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#new-accounts"})}})),IA=()=>G().createElement(Ia,{icon:kA,isDismissible:!1,className:"wcpay-deposit-transit-days-notice"},(0,Y.__)("It may take 1-3 business days for payouts to reach your bank account.","woocommerce-payments")),TA=()=>G().createElement(Ia,{status:"warning",icon:!0,className:"negative-balance-deposits-paused-notice",isDismissible:!1},Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Payouts may be interrupted while your %s balance remains negative. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),"WooPayments"),components:{whyLink:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fees-and-debits/account-showing-negative-balance/"})}})),AA=({minimumDepositAmountFormatted:e})=>G().createElement(Ia,{status:"warning",icon:!0,isDismissible:!1},Ua({mixedString:(0,Y.sprintf)((0,Y.__)("Payouts are paused while your available funds balance remains below %s. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),e),components:{learnMoreLink:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#minimum-payout-amounts"})}})),OA=()=>G().createElement(Ia,{status:"warning",icon:!0,isDismissible:!1},Ua({mixedString:(0,Y.__)("You have no funds available. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),components:{whyLink:G().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/payouts/payout-schedule/#pending-funds"})}})),MA=({updateAccountLink:e})=>{const t=e?(0,Gr.addQueryArgs)(e,{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}):"";return""!==e?G().createElement(Ia,{status:"warning",icon:!0,className:"deposit-failure-notice",isDismissible:!1},Ua({mixedString:(0,Y.__)("Payouts are currently paused because a recent payout failed. Please {{updateLink}}update your bank account details{{/updateLink}}.","woocommerce-payments"),components:{updateLink:G().createElement(tc,{onClick:()=>oa("wcpay_account_details_link_clicked",{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}),href:t})}})):null},LA=()=>{var e,t,n,o,r,a,i,s,c,d,l,u;const{account:m,overview:p,isLoading:y}=(()=>{const{overviews:e,isLoading:t}=ad(),{currencies:n,account:o}=e,{selectedCurrency:r}=ZT();return{account:o,overview:n.some((e=>e.currency===r))?n.find((e=>e.currency===r)):n[0],isLoading:t}})(),h="deposits_unrestricted"===(null===(e=wcpaySettings.accountStatus.deposits)||void 0===e?void 0:e.restrictions),f=(null==p?void 0:p.currency)||wcpaySettings.accountDefaultCurrency,{isLoading:_,deposits:g}=(e=>{const t=id({store_currency_is:e,orderby:"date",order:"desc",per_page:"3"});return{deposits:t.deposits,isLoading:t.isLoading}})(f),v=y||_,w=null!==(n=null===(t=null==p?void 0:p.available)||void 0===t?void 0:t.amount)&&void 0!==n?n:0,b=null!==(r=null===(o=null==p?void 0:p.pending)||void 0===o?void 0:o.amount)&&void 0!==r?r:0,E=w+b,$=null!==(s=null===(i=null===(a=wcpaySettings.accountStatus.deposits)||void 0===a?void 0:a.minimum_scheduled_deposit_amounts)||void 0===i?void 0:i[f])&&void 0!==s?s:0,S=w>=$,x=E<0,k=0===w&&b>0,C=null===(c=wcpaySettings.accountStatus.deposits)||void 0===c?void 0:c.completed_waiting_period,N=!(null==m?void 0:m.deposits_blocked)&&C,I=!v&&(null==g?void 0:g.length)>0&&!!m,T=ic(null===(d=null==m?void 0:m.deposits_schedule)||void 0===d?void 0:d.interval),A=null!==(u=null===(l=null==m?void 0:m.default_external_accounts)||void 0===l?void 0:l.some((e=>e.currency===f&&"errored"===e.status)))&&void 0!==u&&u;return v?W.createElement(So,{className:"wcpay-deposits-overview"},W.createElement(df,null,(0,Y.__)("Payouts","woocommerce-payments")),W.createElement(Oo,{className:"wcpay-deposits-overview__schedule__container"},W.createElement(U_,{isLoading:!0,placeholder:W.createElement(cc,{depositsSchedule:{delay_days:0,interval:"daily",monthly_anchor:1,weekly_anchor:"monday"}})}))):C||0!==w||0!==b?W.createElement(So,{className:"wcpay-deposits-overview"},W.createElement(df,null,(0,Y.__)("Payouts","woocommerce-payments")),h&&!!m&&T&&W.createElement(Oo,{className:"wcpay-deposits-overview__schedule__container"},W.createElement(cc,{depositsSchedule:m.deposits_schedule})),W.createElement(Oo,{className:"wcpay-deposits-overview__notices__container"},(null==m?void 0:m.deposits_blocked)?W.createElement(CA,null):W.createElement(W.Fragment,null,h&&!k&&!A&&W.createElement(IA,null),!C&&W.createElement(NA,null),C&&k&&W.createElement(OA,null),x&&W.createElement(TA,null),A&&W.createElement(MA,{updateAccountLink:wcpaySettings.accountStatus.accountLink}),w>0&&!S&&W.createElement(AA,{minimumDepositAmountFormatted:Fc($,f)}))),I&&W.createElement(W.Fragment,null,W.createElement(Oo,{className:"wcpay-deposits-overview__heading"},W.createElement("span",{className:"wcpay-deposits-overview__heading__title"},(0,Y.__)("Payout history","woocommerce-payments"))),W.createElement(xA,{deposits:g})),(I||N)&&W.createElement(K_,{className:"wcpay-deposits-overview__footer"},I&&W.createElement(jr,{variant:"secondary",onClick:()=>{oa("wcpay_overview_deposits_view_history_click"),(0,Ay.getHistory)().push(Ii({page:"wc-admin",path:"/payments/payouts"}))}},(0,Y.__)("View full payout history","woocommerce-payments")),N&&W.createElement(jr,{variant:"tertiary",href:Ii({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})+"#payout-schedule",onClick:()=>oa("wcpay_overview_deposits_change_schedule_click")},(0,Y.__)("Change payout schedule","woocommerce-payments")))):null},jA=()=>G().createElement(mf,{className:"discoverability-card__new-feature-pill"},(0,Y.__)("New","woocommerce-payments")),DA=()=>G().createElement("p",{className:"discoverability-card__body"},(0,Y.__)("New features have been added to WooPayments to help reduce fraudulent transactions on your store. By using a set of rules to evaluate incoming orders, your store is better protected from fraudsters.","woocommerce-payments")),RA=({handleDontShowAgainOnClick:e})=>G().createElement("div",{className:"discoverability-card__actions"},G().createElement(jr,{href:"/wp-admin/admin.php?page=wc-settings&tab=checkout&anchor=%23fp-settings&section=woocommerce_payments/",variant:"primary",onClick:()=>{oa("wcpay_fraud_protection_banner_learn_more_button_clicked")}},(0,Y.__)("Learn more","woocommerce-payments")),G().createElement(jr,{variant:"tertiary",onClick:e},(0,Y.__)("Dismiss","woocommerce-payments"))),PA=()=>{const{frtDiscoverBannerSettings:e,lifetimeTPV:t}=wcpaySettings,{updateOptions:n}=(0,Js.useDispatch)("wc/admin/options"),[o,r]=(0,W.useState)((()=>{try{return JSON.parse(e)}catch(e){return{dontShowAgain:!1}}})),a=t>0&&!o.dontShowAgain;return(0,W.useEffect)((()=>{oa("wcpay_fraud_protection_banner_rendered");const e=JSON.stringify(o);n({wcpay_frt_discover_banner_settings:e}),wcpaySettings.frtDiscoverBannerSettings=e}),[e,o,n]),a?G().createElement(So,null,G().createElement("div",{className:"discoverability-card"},G().createElement(jA,null),G().createElement("h3",{className:"discoverability-card__header"},(0,Y.__)("Enhanced fraud protection for your store","woocommerce-payments")),G().createElement(DA,null),G().createElement(RA,{handleDontShowAgainOnClick:()=>{r({dontShowAgain:!0})}}))):null},FA=()=>wcpaySettings.hasOwnProperty("isJetpackIdcActive")&&wcpaySettings.isJetpackIdcActive&&(0,Ta.jsxs)(da,{status:"error",isDismissible:!1,className:"wcpay-jetpack-idc-notice",children:[(0,Y.__)("Your site is currently in Safe Mode.","woocommerce-payments"),(0,Ta.jsx)("span",{children:" "}),(0,Ta.jsx)("a",{href:Oi(),children:(0,Y.__)("Please take action","woocommerce-payments")})]}),zA=n.p+"../assets/images/payment-activity-empty-state.svg?ver=f25cebb798f411fdde45";var BA=n(5556),UA=n.n(BA);function VA(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function YA(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function HA(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return YA(n.overflowY,t)||YA(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function WA(e,t,n,o,r,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-o:i>t&&s<n||a<e&&s>n?i-t+r:0}n(4363);let GA=0;function qA(){}function QA(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function KA(e,t){let n;function o(){n&&clearTimeout(n)}function r(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];o(),n=setTimeout((()=>{n=null,e(...a)}),t)}return r.cancel=o,r}function ZA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.some((t=>(t&&t(e,...o),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function JA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function XA(){return String(GA++)}function eO(e,t){return Object.keys(e).reduce(((n,o)=>(n[o]=function(e,t){return void 0!==e[t]}(t,o)?t[o]:e[o],n)),{})}function tO(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function nO(e,t,n,o,r){if(void 0===r&&(r=!0),0===n)return-1;const a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);let i=t+e;i<0?i=r?a:0:i>a&&(i=r?0:a);const s=oO(e,i,n,o,r);return-1===s?t>=n?-1:t:s}function oO(e,t,n,o,r){const a=o(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!o(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!o(e).hasAttribute("disabled"))return e;return r?e>0?oO(1,0,n,o,!1):oO(-1,n-1,n,o,!1):-1}function rO(e,t,n,o){return void 0===o&&(o=!0),t.some((t=>t&&(QA(t,e,n)||o&&QA(t,n.document.activeElement,n))))}const aO=KA((e=>{iO(e).textContent=""}),500);function iO(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const sO={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};const cO=KA(((e,t)=>{!function(e,t){const n=iO(t);e&&(n.textContent=e,aO(t))}(e(),t)}),200),dO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?W.useLayoutEffect:W.useEffect;function lO(e){return/^\S{1}$/.test(e)}function uO(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function mO(e){const t=(0,W.useRef)(e);return t.current=e,t}function pO(e,t,n){const o=(0,W.useRef)(),r=(0,W.useRef)(),a=(0,W.useCallback)(((t,n)=>{r.current=n,t=eO(t,n.props);const o=e(t,n);return n.props.stateReducer(t,{...n,changes:o})}),[e]),[i,s]=(0,W.useReducer)(a,t),c=mO(n),d=(0,W.useCallback)((e=>s({props:c.current,...e})),[c]),l=r.current;return(0,W.useEffect)((()=>{l&&o.current&&o.current!==i&&function(e,t,n){const{props:o,type:r}=e,a={};Object.keys(t).forEach((o=>{!function(e,t,n,o){const{props:r,type:a}=t,i=`on${uO(e)}Change`;r[i]&&void 0!==o[e]&&o[e]!==n[e]&&r[i]({type:a,...o})}(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])})),o.onStateChange&&Object.keys(a).length&&o.onStateChange({type:r,...a})}(l,eO(o.current,l.props),i),o.current=i}),[i,n,l]),[i,d]}const yO={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:function(e,t){if(!e)return;const n=function(e,t){var n=window,o=t.scrollMode,r=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,c="function"==typeof i?i:function(e){return e!==i};if(!VA(e))throw new TypeError("Invalid target");for(var d,l,u=document.scrollingElement||document.documentElement,m=[],p=e;VA(p)&&c(p);){if((p=null==(l=(d=p).parentElement)?d.getRootNode().host||null:l)===u){m.push(p);break}null!=p&&p===document.body&&HA(p)&&!HA(document.documentElement)||null!=p&&HA(p,s)&&m.push(p)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,w=g.width,b=g.top,E=g.right,$=g.bottom,S=g.left,x="start"===r||"nearest"===r?b:"end"===r?$:b+v/2,k="center"===a?S+w/2:"end"===a?E:S,C=[],N=0;N<m.length;N++){var I=m[N],T=I.getBoundingClientRect(),A=T.height,O=T.width,M=T.top,L=T.right,j=T.bottom,D=T.left;if("if-needed"===o&&b>=0&&S>=0&&$<=h&&E<=y&&b>=M&&$<=j&&S>=D&&E<=L)return C;var R=getComputedStyle(I),P=parseInt(R.borderLeftWidth,10),F=parseInt(R.borderTopWidth,10),z=parseInt(R.borderRightWidth,10),B=parseInt(R.borderBottomWidth,10),U=0,V=0,Y="offsetWidth"in I?I.offsetWidth-I.clientWidth-P-z:0,H="offsetHeight"in I?I.offsetHeight-I.clientHeight-F-B:0,W="offsetWidth"in I?0===I.offsetWidth?0:O/I.offsetWidth:0,G="offsetHeight"in I?0===I.offsetHeight?0:A/I.offsetHeight:0;if(u===I)U="start"===r?x:"end"===r?x-h:"nearest"===r?WA(_,_+h,h,F,B,_+x,_+x+v,v):x-h/2,V="start"===a?k:"center"===a?k-y/2:"end"===a?k-y:WA(f,f+y,y,P,z,f+k,f+k+w,w),U=Math.max(0,U+_),V=Math.max(0,V+f);else{U="start"===r?x-M-F:"end"===r?x-j+B+H:"nearest"===r?WA(M,j,A,F,B+H,x,x+v,v):x-(M+A/2)+H/2,V="start"===a?k-D-P:"center"===a?k-(D+O/2)+Y/2:"end"===a?k-L+z+Y:WA(D,L,O,P,z+Y,k,k+w,w);var q=I.scrollLeft,Q=I.scrollTop;x+=Q-(U=Math.max(0,Math.min(Q+U/G,I.scrollHeight-A/G+H))),k+=q-(V=Math.max(0,Math.min(q+V/W,I.scrollWidth-O/W+Y)))}C.push({el:I,top:U,left:V})}return C}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:o}=e;t.scrollTop=n,t.scrollLeft=o}))},circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function hO(e,t,n){void 0===n&&(n=sO);const o=e[`default${uO(t)}`];return void 0!==o?o:n[t]}function fO(e,t,n){void 0===n&&(n=sO);const o=e[t];if(void 0!==o)return o;const r=e[`initial${uO(t)}`];return void 0!==r?r:hO(e,t,n)}function _O(e,t,n,o){const{items:r,initialHighlightedIndex:a,defaultHighlightedIndex:i}=e,{selectedItem:s,highlightedIndex:c}=t;return 0===r.length?-1:void 0!==a&&c===a?a:void 0!==i?i:s?0===n?r.indexOf(s):nO(n,r.indexOf(s),r.length,o,!1):0===n?-1:n<0?r.length-1:0}function gO(e,t,n){let{isInitialMount:o,highlightedIndex:r,items:a,environment:i,...s}=n;(0,W.useEffect)((()=>{o||cO((()=>e({highlightedIndex:r,highlightedItem:a[r],resultCount:a.length,...s})),i.document)}),t)}let vO=qA;function wO(e){for(var t=e.keysSoFar,n=e.highlightedIndex,o=e.items,r=e.itemToString,a=e.getItemNodeFromIndex,i=t.toLowerCase(),s=0;s<o.length;s++){var c=(s+n+1)%o.length,d=o[c];if(void 0!==d&&r(d).toLowerCase().startsWith(i)){var l=a(c);if(!(null==l?void 0:l.hasAttribute("disabled")))return c}}return n}UA().array.isRequired,UA().func,UA().func,UA().func,UA().bool,UA().number,UA().number,UA().number,UA().bool,UA().bool,UA().bool,UA().any,UA().any,UA().any,UA().string,UA().string,UA().string,UA().func,UA().string,UA().func,UA().func,UA().func,UA().func,UA().func,UA().shape({addEventListener:UA().func,removeEventListener:UA().func,document:UA().shape({getElementById:UA().func,activeElement:UA().any,body:UA().any})});var bO=Uv(Uv({},yO),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),EO=qA;const $O=0,SO=1,xO=2,kO=3,CO=4,NO=5,IO=6,TO=7,AO=8,OO=11,MO=13,LO=14,jO=15,DO=20;var RO=Object.freeze({__proto__:null,MenuKeyDownArrowDown:$O,MenuKeyDownArrowUp:SO,MenuKeyDownEscape:xO,MenuKeyDownHome:kO,MenuKeyDownEnd:CO,MenuKeyDownEnter:NO,MenuKeyDownSpaceButton:IO,MenuKeyDownCharacter:TO,MenuBlur:AO,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:OO,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:MO,ToggleButtonKeyDownArrowUp:LO,ToggleButtonKeyDownCharacter:jO,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:DO,FunctionSetInputValue:21,FunctionReset:22});function PO(e,t){const{type:n,props:o,shiftKey:r}=t;let a;switch(n){case OO:a={isOpen:hO(o,"isOpen"),highlightedIndex:hO(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case jO:{const n=t.key,r=`${e.inputValue}${n}`,i=wO({keysSoFar:r,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:r,...i>=0&&{selectedItem:o.items[i]}}}break;case MO:a={highlightedIndex:_O(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case LO:a={highlightedIndex:_O(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case NO:case IO:a={isOpen:hO(o,"isOpen"),highlightedIndex:hO(o,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]}};break;case kO:a={highlightedIndex:oO(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case CO:a={highlightedIndex:oO(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case xO:case AO:a={isOpen:!1,highlightedIndex:-1};break;case TO:{const n=t.key,r=`${e.inputValue}${n}`,i=wO({keysSoFar:r,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:r,...i>=0&&{highlightedIndex:i}}}break;case $O:a={highlightedIndex:nO(r?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case SO:a={highlightedIndex:nO(r?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case DO:a={selectedItem:t.selectedItem};break;default:return function(e,t,n){const{type:o,props:r}=t;let a;switch(o){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:_O(r,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:_O(r,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:hO(r,"highlightedIndex"),isOpen:hO(r,"isOpen"),selectedItem:hO(r,"selectedItem"),inputValue:hO(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...a}}(e,t,RO)}return{...e,...a}}function FO(e){void 0===e&&(e={}),EO(e,FO);const t={...bO,...e},{items:n,scrollIntoView:o,environment:r,initialIsOpen:a,defaultIsOpen:i,itemToString:s,getA11ySelectionMessage:c,getA11yStatusMessage:d}=t,l=function(e){const t=fO(e,"selectedItem"),n=fO(e,"isOpen"),o=fO(e,"highlightedIndex"),r=fO(e,"inputValue");return{highlightedIndex:o<0&&t&&n?e.items.indexOf(t):o,isOpen:n,selectedItem:t,inputValue:r}}(t),[u,m]=function(e,t,n){const[o,r]=pO(e,t,n);return[eO(o,n),r]}(PO,l,t),{isOpen:p,highlightedIndex:y,selectedItem:h,inputValue:f}=u,_=(0,W.useRef)(null),g=(0,W.useRef)(null),v=(0,W.useRef)({}),w=(0,W.useRef)(!0),b=(0,W.useRef)(null),E=function(e){let{id:t=`downshift-${XA()}`,labelId:n,menuId:o,getItemId:r,toggleButtonId:a,inputId:i}=e;return(0,W.useRef)({labelId:n||`${t}-label`,menuId:o||`${t}-menu`,getItemId:r||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:i||`${t}-input`}).current}(t),$=(0,W.useRef)(),S=(0,W.useRef)(!0),x=mO({state:u,props:t}),k=(0,W.useCallback)((e=>v.current[E.getItemId(e)]),[E]);gO(d,[p,y,f,n],{isInitialMount:S.current,previousResultCount:$.current,items:n,environment:r,itemToString:s,...u}),gO(c,[h],{isInitialMount:S.current,previousResultCount:$.current,items:n,environment:r,itemToString:s,...u});const C=function(e){let{highlightedIndex:t,isOpen:n,itemRefs:o,getItemNodeFromIndex:r,menuElement:a,scrollIntoView:i}=e;const s=(0,W.useRef)(!0);return dO((()=>{t<0||!n||!Object.keys(o.current).length||(!1===s.current?s.current=!0:i(r(t),a))}),[t]),s}({menuElement:g.current,highlightedIndex:y,isOpen:p,itemRefs:v,scrollIntoView:o,getItemNodeFromIndex:k});(0,W.useEffect)((()=>(b.current=KA((e=>{e({type:21,inputValue:""})}),500),()=>{b.current.cancel()})),[]),(0,W.useEffect)((()=>{f&&b.current(m)}),[m,f]),vO({isInitialMount:S.current,props:t,state:u}),(0,W.useEffect)((()=>{S.current?(a||i||p)&&g.current&&g.current.focus():p?g.current&&g.current.focus():r.document.activeElement===g.current&&_.current&&(w.current=!1,_.current.focus())}),[p]),(0,W.useEffect)((()=>{S.current||($.current=n.length)}));const N=function(e,t,n,o){const r=(0,W.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,W.useEffect)((()=>{const a=()=>{r.current.isMouseDown=!0},i=a=>{r.current.isMouseDown=!1,e&&!rO(a.target,t.map((e=>e.current)),n)&&o()},s=()=>{r.current.isTouchMove=!1},c=()=>{r.current.isTouchMove=!0},d=a=>{!e||r.current.isTouchMove||rO(a.target,t.map((e=>e.current)),n,!1)||o()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",s),n.addEventListener("touchmove",c),n.addEventListener("touchend",d),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",c),n.removeEventListener("touchend",d)}}),[e,n]),r}(p,[g,_],r,(()=>{m({type:AO})})),I=qA;(0,W.useEffect)((()=>{S.current=!1}),[]),(0,W.useEffect)((()=>{p||(v.current={})}),[p]);const T=(0,W.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:MO,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:LO,getItemNodeFromIndex:k,shiftKey:e.shiftKey})}})),[m,k]),A=(0,W.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:$O,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:SO,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),m({type:kO,getItemNodeFromIndex:k})},End(e){e.preventDefault(),m({type:CO,getItemNodeFromIndex:k})},Escape(){m({type:xO})},Enter(e){e.preventDefault(),m({type:NO})}," "(e){e.preventDefault(),m({type:IO})}})),[m,k]),O=(0,W.useCallback)((()=>{m({type:16})}),[m]),M=(0,W.useCallback)((()=>{m({type:18})}),[m]),L=(0,W.useCallback)((()=>{m({type:17})}),[m]),j=(0,W.useCallback)((e=>{m({type:19,highlightedIndex:e})}),[m]),D=(0,W.useCallback)((e=>{m({type:DO,selectedItem:e})}),[m]),R=(0,W.useCallback)((()=>{m({type:22})}),[m]),P=(0,W.useCallback)((e=>{m({type:21,inputValue:e})}),[m]),F=(0,W.useCallback)((e=>({id:E.labelId,htmlFor:E.toggleButtonId,...e})),[E]),z=(0,W.useCallback)((function(e,t){let{onMouseLeave:n,refKey:o="ref",onKeyDown:r,onBlur:a,ref:i,...s}=void 0===e?{}:e,{suppressRefError:c=!1}=void 0===t?{}:t;const d=x.current.state;return I("getMenuProps",c,o,g),{[o]:JA(i,(e=>{g.current=e})),id:E.menuId,role:"listbox","aria-labelledby":E.labelId,tabIndex:-1,...d.isOpen&&d.highlightedIndex>-1&&{"aria-activedescendant":E.getItemId(d.highlightedIndex)},onMouseLeave:ZA(n,(()=>{m({type:9})})),onKeyDown:ZA(r,(e=>{const t=tO(e);t&&A[t]?A[t](e):lO(t)&&m({type:TO,key:t,getItemNodeFromIndex:k})})),onBlur:ZA(a,(()=>{!1!==w.current?!N.current.isMouseDown&&m({type:AO}):w.current=!0})),...s}}),[m,x,A,N,I,E,k]);return{getToggleButtonProps:(0,W.useCallback)((function(e,t){let{onClick:n,onKeyDown:o,refKey:r="ref",ref:a,...i}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const c={[r]:JA(a,(e=>{_.current=e})),id:E.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":x.current.state.isOpen,"aria-labelledby":`${E.labelId} ${E.toggleButtonId}`,...i};return i.disabled||(c.onClick=ZA(n,(()=>{m({type:12})})),c.onKeyDown=ZA(o,(e=>{const t=tO(e);t&&T[t]?T[t](e):lO(t)&&m({type:jO,key:t,getItemNodeFromIndex:k})}))),I("getToggleButtonProps",s,r,_),c}),[m,x,T,I,E,k]),getLabelProps:F,getMenuProps:z,getItemProps:(0,W.useCallback)((function(e){let{item:t,index:n,onMouseMove:o,onClick:r,refKey:a="ref",ref:i,disabled:s,...c}=void 0===e?{}:e;const{state:d,props:l}=x.current,u=function(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}(n,t,l.items);if(u<0)throw new Error("Pass either item or item index in getItemProps!");const p={disabled:s,role:"option","aria-selected":`${u===d.highlightedIndex}`,id:E.getItemId(u),[a]:JA(i,(e=>{e&&(v.current[E.getItemId(u)]=e)})),...c};return s||(p.onClick=ZA(r,(()=>{m({type:OO,index:n})}))),p.onMouseMove=ZA(o,(()=>{n!==d.highlightedIndex&&(C.current=!1,m({type:10,index:n,disabled:s}))})),p}),[m,x,C,E]),toggleMenu:O,openMenu:L,closeMenu:M,setHighlightedIndex:j,selectItem:D,reset:R,setInputValue:P,highlightedIndex:y,isOpen:p,selectedItem:h,inputValue:f}}FO.stateChangeTypes=RO,UA().array.isRequired,UA().func,UA().func,UA().func,UA().bool,UA().number,UA().number,UA().number,UA().bool,UA().bool,UA().bool,UA().any,UA().any,UA().any,UA().string,UA().string,UA().string,UA().string,UA().string,UA().string,UA().func,UA().string,UA().string,UA().func,UA().func,UA().func,UA().func,UA().func,UA().func,UA().shape({addEventListener:UA().func,removeEventListener:UA().func,document:UA().shape({getElementById:UA().func,activeElement:UA().any,body:UA().any})}),UA().array,UA().array,UA().array,UA().func,UA().func,UA().func,UA().number,UA().number,UA().number,UA().func,UA().func,UA().string,UA().string,UA().shape({addEventListener:UA().func,removeEventListener:UA().func,document:UA().shape({getElementById:UA().func,activeElement:UA().any,body:UA().any})});const zO=e=>(null==e?void 0:e.name)||"",BO=({selectedItem:e},{type:t,changes:n,props:{items:o}})=>{switch(t){case FO.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:o[e?Math.min(o.indexOf(e)+1,o.length-1):0]};case FO.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:o[e?Math.max(o.indexOf(e)-1,0):o.length-1]};default:return n}},UO=function({name:e,className:t,label:n,describedBy:o,options:r,onChange:a,value:i,placeholder:s,children:c}){var d;const{getLabelProps:l,getToggleButtonProps:u,getMenuProps:m,getItemProps:p,isOpen:y,highlightedIndex:h,selectedItem:f}=FO({initialSelectedItem:r[0],items:r,itemToString:zO,onSelectedItemChange:a,selectedItem:i||{},stateReducer:BO}),_=zO(f),g=m({className:"wcpay-filter components-custom-select-control__menu","aria-hidden":!y}),v=(0,q.useCallback)((e=>{var t;e.stopPropagation(),null===(t=null==g?void 0:g.onKeyDown)||void 0===t||t.call(g,e)}),[g]);return(null===(d=g["aria-activedescendant"])||void 0===d?void 0:d.startsWith("downshift-null"))&&delete g["aria-activedescendant"],G().createElement("div",{className:Lo()("wcpay-filter components-custom-select-control",t)},G().createElement(jr,Object.assign({},u({"aria-label":n,"aria-labelledby":void 0,"aria-describedby":o||(_?(0,Y.sprintf)((0,Y.__)("Currently selected: %s"),_):(0,Y.__)("No selection")),className:Lo()("wcpay-filter components-custom-select-control__button",{placeholder:!_}),name:e})),G().createElement("label",Object.assign({},l({className:"wcpay-filter components-custom-select-control__label"})),n),G().createElement("span",{className:"wcpay-filter components-custom-select-control__button-value"},_||s),G().createElement(Us,{icon:Fr,className:"wcpay-filter components-custom-select-control__button-icon"})),G().createElement("ul",Object.assign({},g,{onKeyDown:v}),y&&r.map(((e,t)=>G().createElement("li",Object.assign({},p({item:e,index:t,key:e.key,className:Lo()(e.className,"wcpay-filter components-custom-select-control__item",{"is-highlighted":t===h}),style:e.style})),G().createElement(Us,{icon:La,className:"wcpay-filter components-custom-select-control__item-icon",visibility:e===f?"visible":"hidden"}),c?c(e):e.name,e.hint&&G().createElement("span",{className:"wcpay-filter components-custom-select-control__item-hint"},e.hint))))))},VO=({id:e,label:t,currencyCode:n,tooltip:o,amount:r=0,isLoading:a=!1,reportLink:i,tracksSource:s})=>W.createElement("div",{className:"wcpay-payment-data-highlights__item"},W.createElement("p",{className:"wcpay-payment-data-highlights__item__label"},W.createElement("span",{id:e},t),!a&&o),W.createElement("div",{className:"wcpay-payment-data-highlights__item__wrapper"},W.createElement("p",{className:"wcpay-payment-data-highlights__item__wrapper__amount","aria-labelledby":e},W.createElement(U_,{isLoading:a,display:"inline",placeholder:"loading amount",value:Rc(r,n)})),i&&W.createElement(Qr.Link,{href:i,onClick:()=>{oa("wcpay_overview_payment_activity_click",{source:s})}},(0,Y.__)("View report","woocommerce-payments")))),YO=["charge","payment","payment_failure_refund","payment_refund","refund","refund_failure","dispute","dispute_reversal","card_reader_fee","adjustment"],HO=["charge","payment","adjustment"],WO=["refund","refund_failure","payment_refund","payment_failure_refund"],GO=["dispute","dispute_reversal"],qO=e=>e.reduce(((e,t,n)=>Object.assign(Object.assign({},e),{[`search[${n}]`]:t})),{}),QO=({paymentActivityData:e,isLoading:t})=>{var n,o,r,a,i;const s=null!==(n=null==e?void 0:e.total_payment_volume)&&void 0!==n?n:0,c=null!==(o=null==e?void 0:e.charges)&&void 0!==o?o:0,d=null!==(r=null==e?void 0:e.fees)&&void 0!==r?r:0,l=null!==(a=null==e?void 0:e.disputes)&&void 0!==a?a:0,u=null!==(i=null==e?void 0:e.refunds)&&void 0!==i?i:0,m=null==e?void 0:e.currency,p=wcSettings.admin.timeZone;return W.createElement("div",{className:"wcpay-payment-activity-data"},W.createElement(VO,{id:"wcpay-payment-activity-data__total-payment-volume",label:(0,Y.__)("Total payment volume","woocommerce-payments"),currencyCode:m,tooltip:W.createElement(Bs,{className:"wcpay-payment-activity-data__total-payment-volume__tooltip",maxWidth:"294px",buttonIcon:W.createElement(Os.A,null),buttonLabel:(0,Y.__)("Total payment volume tooltip","woocommerce-payments"),content:W.createElement(W.Fragment,null,Ua({mixedString:(0,Y.__)("{{strong}}Total payment volume{{/strong}} is the sum of all transactions in a given time period, minus refunds and disputes.","woocommerce-payments"),components:{strong:W.createElement("strong",null)}}),W.createElement(Ia,{className:"wcpay-payment-activity-data__total-payment-volume__tooltip__notice",isDismissible:!1},(0,Y.__)("Total payment volume = Charges - Refunds - Disputes","woocommerce-payments")))}),amount:s,reportLink:Ii(Object.assign({page:"wc-admin",path:"/payments/transactions",filter:"advanced",store_currency_is:m,"date_between[0]":Ei()(null==e?void 0:e.date_start).add(p).format("YYYY-MM-DD"),"date_between[1]":Ei()(null==e?void 0:e.date_end).add(p).format("YYYY-MM-DD")},qO(YO))),tracksSource:"total_payment_volume",isLoading:t}),W.createElement("div",{className:"wcpay-payment-data-highlights"},W.createElement(VO,{id:"wcpay-payment-data-highlights__charges",label:(0,Y.__)("Charges","woocommerce-payments"),currencyCode:m,tooltip:W.createElement(Bs,{className:"payment-data-highlights__charges__tooltip",buttonIcon:W.createElement(Os.A,null),buttonLabel:(0,Y.__)("Charges tooltip","woocommerce-payments"),content:Ua({mixedString:(0,Y.__)("A {{strong}}charge{{/strong}} is the amount billed to your customer’s payment method.","woocommerce-payments"),components:{strong:W.createElement("strong",null)}})}),amount:c,reportLink:Ii(Object.assign({page:"wc-admin",path:"/payments/transactions",filter:"advanced",store_currency_is:m,"date_between[0]":Ei()(null==e?void 0:e.date_start).add(p).format("YYYY-MM-DD"),"date_between[1]":Ei()(null==e?void 0:e.date_end).add(p).format("YYYY-MM-DD")},qO(HO))),tracksSource:"charges",isLoading:t}),W.createElement(VO,{id:"wcpay-payment-data-highlights__refunds",label:(0,Y.__)("Refunds","woocommerce-payments"),currencyCode:m,amount:u,reportLink:Ii(Object.assign({page:"wc-admin",path:"/payments/transactions",filter:"advanced",store_currency_is:m,"date_between[0]":Ei()(null==e?void 0:e.date_start).add(p).format("YYYY-MM-DD"),"date_between[1]":Ei()(null==e?void 0:e.date_end).add(p).format("YYYY-MM-DD")},qO(WO))),tracksSource:"refunds",isLoading:t}),W.createElement(VO,{id:"wcpay-payment-data-highlights__disputes",label:(0,Y.__)("Disputes","woocommerce-payments"),currencyCode:m,tooltip:W.createElement(Bs,{className:"payment-data-highlights__disputes__tooltip",buttonIcon:W.createElement(Os.A,null),buttonLabel:(0,Y.__)("Disputes tooltip","woocommerce-payments"),content:Ua({mixedString:(0,Y.__)("{{strong}}Disputes{{/strong}} includes the amount of any disputed charges. Dispute fees are included in the Fees section. {{learnMoreLink}}Learn more{{/learnMoreLink}}.","woocommerce-payments"),components:{strong:W.createElement("strong",null),learnMoreLink:W.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/"})}})}),amount:l,reportLink:Ii(Object.assign({page:"wc-admin",path:"/payments/transactions",filter:"advanced",store_currency_is:m,"date_between[0]":Ei()(null==e?void 0:e.date_start).add(p).format("YYYY-MM-DD"),"date_between[1]":Ei()(null==e?void 0:e.date_end).add(p).format("YYYY-MM-DD")},qO(GO))),tracksSource:"disputes",isLoading:t}),W.createElement(VO,{id:"wcpay-payment-data-highlights__fees",label:(0,Y.__)("Fees","woocommerce-payments"),currencyCode:m,tooltip:W.createElement(Bs,{className:"payment-data-highlights__fees__tooltip",buttonIcon:W.createElement(Os.A,null),buttonLabel:(0,Y.__)("Fees tooltip","woocommerce-payments"),content:Ua({mixedString:(0,Y.__)("{{strong}}Fees{{/strong}} includes all types of fees charged by WooPayments. {{learnMoreLink}}Learn more{{/learnMoreLink}}.","woocommerce-payments"),components:{strong:W.createElement("strong",null),learnMoreLink:W.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woocommerce.com/document/woopayments/fees-and-debits/fees/"})}})}),amount:d,isLoading:t})))};const KO=(e={})=>{const[t,n]=(0,W.useState)(!1),[o,r]=(0,W.useState)("resolved"),[a,i]=(0,W.useState)(e),{createErrorNotice:s}=(0,Js.useDispatch)("core/notices");return{setSurveySubmitted:(0,W.useCallback)((e=>{return t=void 0,o=void 0,i=function*(){r("pending");try{yield Wr()({path:`${Si}/survey/payments-overview`,method:"POST",data:e}),n(!0),r("resolved")}catch(e){r("error"),n(!1),s((0,Y.__)("An error occurred while submitting the survey. Please try again.","woocommerce-payments"))}},new((a=void 0)||(a=Promise))((function(e,n){function r(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,s)}c((i=i.apply(t,o||[])).next())}));var t,o,a,i}),[r,n,s]),responseStatus:o,surveySubmitted:t,surveyAnswers:a,setSurveyAnswers:i}},ZO=(0,W.createContext)(null),JO=({children:e,initialData:t})=>G().createElement(ZO.Provider,{value:KO(t)},e),XO={"very-unhappy":G().createElement(G().Fragment,null,"😞"),unhappy:G().createElement(G().Fragment,null,"🫤"),neutral:G().createElement(G().Fragment,null,"😑"),happy:G().createElement(G().Fragment,null,"🙂"),"very-happy":G().createElement(G().Fragment,null,"😍")},eM=({rating:e,onClick:t,disabled:n,isSelected:o})=>G().createElement("button",{disabled:n,type:"button",onClick:t,className:Lo()("components-button","has-icon",{selected:o})},G().createElement("span",{role:"img","aria-label":e},XO[e])),tM=()=>{var e;const{responseStatus:t,surveySubmitted:n,surveyAnswers:o,setSurveyAnswers:r,setSurveySubmitted:a}=(()=>{const e=(0,W.useContext)(ZO);if(!e)throw new Error("An error occurred when using survey context");return e})(),[i,s]=(0,q.useState)(!0),c=o.rating,d=["very-unhappy","unhappy","neutral"],l=c&&d.includes(c),u="pending"===t,m=function(e){const t=Object.assign(Object.assign({},o),{rating:e});r(t),e&&!d.includes(e)&&a(t)};return i?n?G().createElement(K_,{size:"small"},G().createElement("div",{className:"wcpay-payments-activity__survey"},G().createElement("div",{className:"survey_container"},G().createElement("span",{role:"img","aria-label":"Thank you!"},"🙌"),(0,Y.__)("We appreciate your feedback!","woocommerce-payments")),G().createElement("div",{className:"close_container"},G().createElement("button",{type:"button",className:"components-button has-icon","aria-label":"Close dialog",onClick:()=>{s(!1)}},G().createElement(Us,{icon:qa,size:28}))))):G().createElement(K_,{size:"small"},G().createElement("div",{className:"wcpay-payments-activity__survey"},G().createElement("div",{className:"survey_container"},(0,Y.__)("Are these metrics helpful?","woocommerce-payments"),G().createElement("div",{className:"survey_container__emoticons"},["very-unhappy","unhappy","neutral","happy","very-happy"].map((e=>G().createElement(eM,{key:e,disabled:u,rating:e,onClick:()=>m(e),isSelected:e===c}))))),l&&G().createElement(G().Fragment,null,G().createElement("div",{className:"close_container"},G().createElement("button",{type:"button",className:"components-button has-icon","aria-label":"Close dialog",onClick:()=>{m(void 0)},disabled:u},G().createElement(Us,{icon:qa,size:28}))),G().createElement(Ro.HorizontalRule,null),G().createElement("div",{className:"comment_container"},G().createElement(Rv,{label:(0,Y.__)("Why do you feel that way? (optional)","woocommerce-payments"),onChange:e=>{r((t=>Object.assign(Object.assign({},t),{comments:e})))},value:null!==(e=o.comments)&&void 0!==e?e:"",readOnly:u}),G().createElement("p",{className:"comment_container__disclaimer"},(0,q.createInterpolateElement)((0,Y.__)("Your feedback will be only be shared with WooCommerce and treated pursuant to our <a>privacy policy</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://automattic.com/privacy/",target:"_blank",rel:"noreferrer"})}))),G().createElement("div",{className:"wcpay-confirmation-modal__footer"},G().createElement(jr,{variant:"tertiary",disabled:u,onClick:()=>{m(void 0)}},(0,Y.__)("Cancel","woocommerce-payments")),G().createElement(jr,{variant:"primary",isBusy:u,disabled:u,onClick:()=>a(o)},(0,Y.__)("Send","woocommerce-payments")))))):null},nM=()=>G().createElement(So,null,G().createElement(df,null,(0,Y.__)("Your payment activity","woocommerce-payments")),G().createElement(Oo,{className:"wcpay-payment-activity__card__body"},G().createElement("div",{className:"wcpay-payment-activity__card__body__empty-state-wrapper"},G().createElement("img",{src:zA,alt:""}),G().createElement("p",null,Ua({mixedString:(0,Y.__)("{{strong}}No payments…yet!{{/strong}}"),components:{strong:G().createElement("strong",null)}})),G().createElement("p",null,(0,Y.__)("Once your first order comes in, you'll start seeing your payment activity right here.","woocommerce-payments"))))),oM=()=>{var e;const t=null!==(e=wcpaySettings.isOverviewSurveySubmitted)&&void 0!==e&&e,{selectedCurrency:n}=ZT(),{selectedDateRange:o,setSelectedDateRange:r,dateRangePresets:a}=(()=>{var e;const t=Ei()(),n=Ei()().clone().subtract(1,"d").set({hour:23,minute:59,second:59,millisecond:0}),o=Ei()().clone().set({hour:23,minute:59,second:59,millisecond:0}),r={today:{start:t.clone().set({hour:0,minute:0,second:0,millisecond:0}),end:o,displayKey:(0,Y.__)("Today","woocommerce-payments")},last_7_days:{start:t.clone().subtract(7,"days").set({hour:0,minute:0,second:0,millisecond:0}),end:n,displayKey:(0,Y.__)("Last 7 days","woocommerce-payments")},last_4_weeks:{start:t.clone().subtract(4,"weeks").set({hour:0,minute:0,second:0,millisecond:0}),end:n,displayKey:(0,Y.__)("Last 4 weeks","woocommerce-payments")},last_3_months:{start:t.clone().subtract(3,"months").set({hour:0,minute:0,second:0,millisecond:0}),end:n,displayKey:(0,Y.__)("Last 3 months","woocommerce-payments")},last_12_months:{start:t.clone().subtract(12,"months").set({hour:0,minute:0,second:0,millisecond:0}),end:n,displayKey:(0,Y.__)("Last 12 months","woocommerce-payments")},month_to_date:{start:t.clone().startOf("month"),end:o,displayKey:(0,Y.__)("Month to date","woocommerce-payments")},quarter_to_date:{start:t.clone().startOf("quarter"),end:o,displayKey:(0,Y.__)("Quarter to date","woocommerce-payments")},year_to_date:{start:t.clone().startOf("year"),end:o,displayKey:(0,Y.__)("Year to date","woocommerce-payments")},all_time:{start:Ei()(wcpaySettings.accountStatus.created,"YYYY-MM-DD\\THH:mm:ss"),end:o,displayKey:(0,Y.__)("All time","woocommerce-payments")}},a=null!==(e=sessionStorage.getItem("selectedPresetName"))&&void 0!==e?e:"last_7_days",i={preset_name:a,date_start:r[a].start.format("YYYY-MM-DD\\THH:mm:ss"),date_end:r[a].end.format("YYYY-MM-DD\\THH:mm:ss")},[s,c]=(0,W.useState)({preset_name:i.preset_name,date_start:i.date_start,date_end:i.date_end});return{selectedDateRange:s,setSelectedDateRange:c,dateRangePresets:r}})(),{paymentActivityData:i,isLoading:s}=(c={currency:null!=n?n:wcpaySettings.accountDefaultCurrency,date_start:o.date_start,date_end:o.date_end,timezone:Ei()(new Date).format("Z")},(0,Js.useSelect)((e=>{const{getPaymentActivityData:t,isResolving:n}=e(xi);return{paymentActivityData:t(c),isLoading:n("getPaymentActivityData",[c])}}),[c.currency,c.date_start,c.date_end]));var c;if(!s&&void 0===i)return G().createElement(G().Fragment,null);const d=Object.keys(a).map((e=>{const t=a[e];return{key:e,name:t.displayKey,hint:(n=t.start,o=t.end,n.isSame(o,"day")?n.format("MMMM D, YYYY"):n.isSame(o,"year")?`${n.format("MMMM D")} - ${o.format("MMMM D, YYYY")}`:`${n.format("MMMM D, YYYY")} - ${o.format("MMMM D, YYYY")}`)};var n,o}));return G().createElement(So,null,G().createElement(df,{className:"wcpay-payment-activity__card__header"},(0,Y.__)("Your payment activity","woocommerce-payments"),G().createElement(UO,{label:"Period",options:d,value:d.find((e=>e.key===o.preset_name)),placeholder:"Select an option...",onChange:e=>{const t=e.selectedItem;if(t){const e=a[t.key].start.clone().format("YYYY-MM-DD\\THH:mm:ss"),n=a[t.key].end.clone().format("YYYY-MM-DD\\THH:mm:ss"),{key:o}=t;sessionStorage.setItem("selectedPresetName",t.key),oa("wcpay_overview_payment_activity_period_change",{preset_name:o}),r({date_start:e,date_end:n,preset_name:o})}}})),G().createElement(Oo,{className:"wcpay-payment-activity__card__body"},G().createElement(QO,{paymentActivityData:i,isLoading:s})),!t&&G().createElement(JO,null,G().createElement(tM,null)))},rM=()=>{const{lifetimeTPV:e}=wcpaySettings;return e>0?G().createElement(oM,null):G().createElement(nM,null)},aM=e=>{var t;const{code:n,symbol:o}=(null===(t=Lc(e))||void 0===t?void 0:t.getCurrencyConfig())||{},r=(0,jf.decodeEntities)(o||"");return n&&o&&r!==n?{name:`${n} ${r}`,key:e}:{name:e.toUpperCase(),key:e}},iM=({depositCurrencies:e})=>{const t=e.map(aM),{selectedCurrency:n,setSelectedCurrency:o}=(e=>{const{selectedCurrency:t,setSelectedCurrency:n}=ZT();return(0,W.useEffect)((()=>{(!t||!e.find((e=>e.toLowerCase()===t.toLowerCase())))&&e.length>0&&n(e[0].toLowerCase())}),[e,t,n]),{selectedCurrency:t,setSelectedCurrency:n}})(e);return G().createElement(UO,{label:"Currency",value:t.find((e=>e.key===n)),options:t,onChange:({selectedItem:e})=>{if(!e)return;const t=e.key.toLowerCase();o(t),oa("wcpay_overview_currency_select_change",{selected_currency:t})}})},sM={withName:{morning:(0,Y.__)("Good morning, %s","woocommerce-payments"),afternoon:(0,Y.__)("Good afternoon, %s","woocommerce-payments"),evening:(0,Y.__)("Good evening, %s","woocommerce-payments")},withoutName:{morning:(0,Y.__)("Good morning","woocommerce-payments"),afternoon:(0,Y.__)("Good afternoon","woocommerce-payments"),evening:(0,Y.__)("Good evening","woocommerce-payments")}},cM=()=>{const{user:e}=(()=>{const{user:e,isLoading:t}=(0,Js.useSelect)((e=>{const{getCurrentUser:t,isResolving:n}=e("core");return{user:t(),isLoading:!!n("getCurrentUser")}}));return{user:e,isLoading:t}})(),t=((e,t=new Date)=>{const n=((e=new Date)=>{const t=e.getHours();return t>=5&&t<12?"morning":t>=12&&t<17?"afternoon":"evening"})(t);let o=sM.withoutName[n];return e&&(o=(0,Y.sprintf)(sM.withName[n],e)),o+=" 👋",o})(null==e?void 0:e.first_name),{overviews:n}=ad(),o=(null==n?void 0:n.currencies.map((e=>e.currency)))||[],r=o.length>1;return G().createElement(df,{className:"wcpay-welcome"},G().createElement(Sa,{align:"center",justify:"space-between",className:"wcpay-welcome__flex"},G().createElement(ka,{className:"wcpay-welcome__flex__greeting"},t),r&&G().createElement(ka,null,G().createElement(iM,{depositCurrencies:o}))))},dM=window.wc.data;function lM(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function uM(e,t){return uM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uM(e,t)}function mM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,uM(e,t)}const pM=G().createContext(null);function yM(e,t){var n=Object.create(null);return e&&W.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,W.isValidElement)(e)?t(e):e}(e)})),n}function hM(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fM(e,t,n){var o=yM(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),a=[];for(var i in e)i in t?a.length&&(r[i]=a,a=[]):a.push(i);var s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var d=r[c][o];s[r[c][o]]=n(d)}s[c]=n(c)}for(o=0;o<a.length;o++)s[a[o]]=n(a[o]);return s}(t,o);return Object.keys(r).forEach((function(a){var i=r[a];if((0,W.isValidElement)(i)){var s=a in t,c=a in o,d=t[a],l=(0,W.isValidElement)(d)&&!d.props.in;!c||s&&!l?c||!s||l?c&&s&&(0,W.isValidElement)(d)&&(r[a]=(0,W.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:hM(i,"exit",e),enter:hM(i,"enter",e)})):r[a]=(0,W.cloneElement)(i,{in:!1}):r[a]=(0,W.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:hM(i,"exit",e),enter:hM(i,"enter",e)})}})),r}var _M=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gM=function(e){function t(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}mM(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,r=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,yM(n.children,(function(e){return(0,W.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:hM(e,"appear",n),enter:hM(e,"enter",n),exit:hM(e,"exit",n)})}))):fM(e,r,a),firstRender:!1}},n.handleExited=function(e,t){var n=yM(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Q({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=lM(e,["component","childFactory"]),r=this.state.contextValue,a=_M(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?G().createElement(pM.Provider,{value:r},a):G().createElement(pM.Provider,{value:r},G().createElement(t,o,a))},t}(G().Component);gM.propTypes={},gM.defaultProps={component:"div",childFactory:function(e){return e}};const vM=gM;function wM(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var bM=function(e){return e.scrollTop},EM="unmounted",$M="exited",SM="entering",xM="entered",kM="exiting",CM=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,a=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(r=$M,o.appearStatus=SM):r=xM:r=t.unmountOnExit||t.mountOnEnter?EM:$M,o.state={status:r},o.nextCallback=null,o}mM(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===EM?{status:$M}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==SM&&n!==xM&&(t=SM):n!==SM&&n!==xM||(t=kM)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===SM){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ls().findDOMNode(this);n&&bM(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$M&&this.setState({status:EM})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[Ls().findDOMNode(this),o],a=r[0],i=r[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:SM},(function(){t.props.onEntering(a,i),t.onTransitionEnd(c,(function(){t.safeSetState({status:xM},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:xM},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:Ls().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:kM},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$M},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:$M},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ls().findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],i=r[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===EM)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,lM(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return G().createElement(pM.Provider,{value:null},"function"==typeof n?n(e,o):G().cloneElement(G().Children.only(n),o))},t}(G().Component);function NM(){}CM.contextType=pM,CM.propTypes={},CM.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:NM,onEntering:NM,onEntered:NM,onExit:NM,onExiting:NM,onExited:NM},CM.UNMOUNTED=EM,CM.EXITED=$M,CM.ENTERING=SM,CM.ENTERED=xM,CM.EXITING=kM;const IM=CM;var TM=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=wM(n.className,o):n.setAttribute("class",wM(n.className&&n.className.baseVal||"",o)));var n,o}))},AM=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1];t.removeClasses(r,"exit"),t.addClass(r,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.addClass(r,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.removeClasses(r,a),t.addClass(r,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}mM(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&bM(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o}))}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,a=n.done;this.appliedClasses[t]={},o&&TM(e,o),r&&TM(e,r),a&&TM(e,a)},n.render=function(){var e=this.props,t=(e.classNames,lM(e,["classNames"]));return G().createElement(IM,Q({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(G().Component);AM.defaultProps={classNames:""},AM.propTypes={};const OM=AM,MM={page:1,per_page:dM.QUERY_DEFAULTS.pageSize,status:"unactioned",type:dM.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",source:"woocommerce-payments",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted","source"]},LM=(e,t)=>{oa("wcpay_inbox_action_click",{note_name:e.name,note_title:e.title,note_content_inner_link:t})},jM=({hasNotes:e,batchUpdating:t,lastRead:n,notes:o,onDismiss:r,onNoteActionClick:a})=>{if(t)return;if(!e)return(0,Ta.jsx)("section",{className:"woocommerce-empty-activity-card",children:(0,Y.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!","woocommerce-admin")});const i=e=>{oa("wcpay_inbox_note_view",{note_content:e.content,note_name:e.name,note_title:e.title,note_type:e.type})},s=Object.keys(o).map((e=>o[e]));return(0,Ta.jsx)(vM,{role:"menu",children:s.map((e=>{const{id:t,is_deleted:o}=e;return o?null:(0,Ta.jsx)(OM,{timeout:500,classNames:"wcpay-inbox-message",children:(0,Ta.jsx)(qr.InboxNoteCard,{note:e,lastRead:n,onDismiss:r,onNoteActionClick:a,onBodyLinkClick:LM,onNoteVisible:i},t)},t)}))})},DM=()=>{const{createNotice:e}=(0,Js.useDispatch)("core/notices"),{batchUpdateNotes:t,removeNote:n,updateNote:o,triggerNoteAction:r}=(0,Js.useDispatch)(dM.NOTES_STORE_NAME),{isError:a,resolving:i,batchUpdating:s,notes:c,overviewInboxLastRead:d}=(0,Js.useSelect)((e=>{const{getNotes:t,getNotesError:n,isResolving:o,isNotesRequesting:r}=e(dM.NOTES_STORE_NAME),{getCurrentUser:a}=e("core"),i=a(),s=i?i.woocommerce_meta:{};return{notes:t(MM),isError:Boolean(n("getNotes",[MM])),resolving:o("getNotes",[MM]),batchUpdating:r("batchUpdateNotes"),overviewInboxLastRead:s.wc_payments_overview_inbox_last_read?JSON.parse(s.wc_payments_overview_inbox_last_read):void 0}})),[l,u]=(0,q.useState)(),m=(0,q.useRef)(d);if(!m.current&&d&&(m.current=d),(0,q.useEffect)((()=>{!async function(e){if(!e||0===Object.keys(e).length)return;const t=await(0,Js.select)("core").getCurrentUser(),n=Object.keys(e).reduce(((t,n)=>{let o=e[n];return"string"!=typeof o&&(o=JSON.stringify(o)),{...t,[n]:o}}),{}),o=await(0,Js.dispatch)("core").saveUser({id:t.id,woocommerce_meta:{...t.woocommerce_meta,...n}});if(void 0===o)return{error:await(0,Js.select)("core").getLastEntitySaveError("root","user",t.id),updatedUser:o};o.woocommerce_meta}({wc_payments_overview_inbox_last_read:Date.now()})}),[]),a){const e=(0,Y.__)("There was an error getting your inbox. Please try again.","woocommerce-admin"),t=(0,Y.__)("Reload","woocommerce-admin"),n=()=>{window.location.reload()};return(0,Ta.jsx)(Qr.EmptyContent,{title:e,actionLabel:t,actionURL:null,actionCallback:n})}const p=async(r=!1)=>{const a="all"===l.type;if(oa("wcpay_inbox_action_dismissed",{note_name:l.note.name,note_title:l.note.title,note_name_dismiss_all:a,note_name_dismiss_confirmation:r}),r){const r=l.note.id,i=!r||a;try{let a=[];if(i)await t(c.map((e=>e.id)),{is_deleted:1}),a=[...c];else{const e=await n(r);a=[e]}u(void 0),e("success",a.length>1?(0,Y.__)("All messages dismissed","woocommerce-admin"):(0,Y.__)("Message dismissed","woocommerce-admin"),{actions:[{label:(0,Y.__)("Undo","woocommerce-admin"),onClick:()=>{a.length>1?t(a.map((e=>e.id)),{is_deleted:0}):o(r,{is_deleted:0})}}]})}catch(t){const n=i?c.length:1;e("error",(0,Y._n)("Message could not be dismissed","Messages could not be dismissed",n,"woocommerce-admin")),u(void 0)}}else u(void 0)},y=function(e){return 0!==e.filter((({is_deleted:e})=>!e)).length}(c);return(0,Ta.jsx)(Ta.Fragment,{children:(0,Ta.jsxs)("div",{className:"wcpay-overview-screen-notes-wrapper",children:[(i||s)&&(0,Ta.jsx)(Qr.Section,{children:(0,Ta.jsx)(qr.InboxNotePlaceholder,{className:"banner message-is-unread"})}),(0,Ta.jsx)(Qr.Section,{children:!i&&!s&&jM({hasNotes:y,batchUpdating:s,lastRead:m.current,notes:c,onDismiss:(e,t)=>{u({note:e,type:t})},onNoteActionClick:(e,t)=>{r(e.id,t.id)}})}),l&&(0,Ta.jsx)(qr.InboxDismissConfirmationModal,{onClose:p,onDismiss:()=>p(!0)})]})})},RM=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),PM=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"})),FM=(0,q.createElement)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,q.createElement)(Ro.Path,{d:"M14.103 7.128l2.26-2.26a4 4 0 00-5.207 4.804L5.828 15a2 2 0 102.828 2.828l5.329-5.328a4 4 0 004.804-5.208l-2.261 2.26-1.912-.512-.513-1.912zm-7.214 9.64a.5.5 0 11.707-.707.5.5 0 01-.707.707z"}));var zM={};!function e(t,n,o,r){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),i="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var o=e.transferToImageBitmap();try{n.createPattern(o,"no-repeat")}catch(e){return!1}return!0}();function c(){}function d(e){var o=n.exports.Promise,r=void 0!==o?o:t.Promise;return"function"==typeof r?new r(e):(e(c,c),null)}var l,u,m,p,y,h,f=(l=s,u=new Map,{transform:function(e){if(l)return e;if(u.has(e))return u.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),u.set(e,t),t},clear:function(){u.clear()}}),_=function(){var e,t,n=Math.floor(1e3/60),o={},r=0;return"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return o[t]=requestAnimationFrame((function a(i){r===i||r+n-1<i?(r=i,delete o[t],e()):o[t]=requestAnimationFrame(a)})),t},t=function(e){o[e]&&cancelAnimationFrame(o[e])}):(e=function(e){return setTimeout(e,n)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),g=(y={},function(){if(m)return m;if(!o&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,o,r){if(p)return t(n,null),p;var a=Math.random().toString(36).slice(2);return p=d((function(o){function i(t){t.data.callback===a&&(delete y[a],e.removeEventListener("message",i),p=null,f.clear(),r(),o())}e.addEventListener("message",i),t(n,a),y[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(m)}return m}),v={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:v[t],n)}function b(e){return e<0?0:Math.floor(e)}function E(e){return parseInt(e,16)}function $(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function x(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function k(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function C(e,n){var s,c=!e,l=!!w(n||{},"resize"),u=!1,m=w(n,"disableForReducedMotion",Boolean),p=a&&w(n||{},"useWorker")?g():null,y=c?x:k,h=!(!e||!p||!e.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function E(t,n,a){for(var c,l,u,m,p=w(t,"particleCount",b),h=w(t,"angle",Number),g=w(t,"spread",Number),v=w(t,"startVelocity",Number),E=w(t,"decay",Number),S=w(t,"gravity",Number),x=w(t,"drift",Number),k=w(t,"colors",$),C=w(t,"ticks",Number),N=w(t,"shapes"),I=w(t,"scalar"),T=!!w(t,"flat"),A=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),O=p,M=[],L=e.width*A.x,j=e.height*A.y;O--;)M.push((void 0,void 0,l=(c={x:L,y:j,angle:h,spread:g,startVelocity:v,color:k[O%k.length],shape:N[(m=N.length,Math.floor(Math.random()*(m-0))+0)],ticks:C,decay:E,gravity:S,drift:x,scalar:I,flat:T}).angle*(Math.PI/180),u=c.spread*(Math.PI/180),{x:c.x,y:c.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*c.startVelocity+Math.random()*c.startVelocity,angle2D:-l+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:c.color,shape:c.shape,tick:0,totalTicks:c.ticks,decay:c.decay,drift:c.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*c.gravity,ovalScalar:.6,scalar:c.scalar,flat:c.flat}));return s?s.addFettis(M):(s=function(e,t,n,a,s){var c,l,u=t.slice(),m=e.getContext("2d"),p=d((function(t){function d(){c=l=null,m.clearRect(0,0,a.width,a.height),f.clear(),s(),t()}c=_.frame((function t(){!o||a.width===r.width&&a.height===r.height||(a.width=e.width=r.width,a.height=e.height=r.height),a.width||a.height||(n(e),a.width=e.width,a.height=e.height),m.clearRect(0,0,a.width,a.height),(u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n=t.tick++/t.totalTicks,o=t.x+t.random*t.tiltCos,r=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),i&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,n,o,r,a,i){var s=new Path2D(e),c=new Path2D;c.addPath(s,new DOMMatrix(t));var d=new Path2D;return d.addPath(c,new DOMMatrix([Math.cos(i)*r,Math.sin(i)*r,-Math.sin(i)*a,Math.cos(i)*a,n,o])),d}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-o),.1*Math.abs(s-r),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var c=Math.PI/10*t.wobble,d=.1*Math.abs(a-o),l=.1*Math.abs(s-r),u=t.shape.bitmap.width*t.scalar,m=t.shape.bitmap.height*t.scalar,p=new DOMMatrix([Math.cos(c)*d,Math.sin(c)*d,-Math.sin(c)*l,Math.cos(c)*l,t.x,t.y]);p.multiplySelf(new DOMMatrix(t.shape.matrix));var y=e.createPattern(f.transform(t.shape.bitmap),"no-repeat");y.setTransform(p),e.globalAlpha=1-n,e.fillStyle=y,e.fillRect(t.x-u/2,t.y-m/2,u,m),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-r)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,o,r,a,i,s){e.save(),e.translate(t,n),e.rotate(a),e.scale(o,r),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-r)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var h=Math.PI/2*3,_=4*t.scalar,g=8*t.scalar,v=t.x,w=t.y,b=5,E=Math.PI/b;b--;)v=t.x+Math.cos(h)*g,w=t.y+Math.sin(h)*g,e.lineTo(v,w),h+=E,v=t.x+Math.cos(h)*_,w=t.y+Math.sin(h)*_,e.lineTo(v,w),h+=E;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(r)),e.lineTo(Math.floor(a),Math.floor(s)),e.lineTo(Math.floor(o),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(m,e)}))).length?c=_.frame(t):d()})),l=d}));return{addFettis:function(e){return u=u.concat(e),p},canvas:e,promise:p,reset:function(){c&&_.cancel(c),l&&l()}}}(e,M,y,n,a),s.promise)}function S(n){var o=m||w(n,"disableForReducedMotion",Boolean),r=w(n,"zIndex",Number);if(o&&v)return d((function(e){e()}));c&&s?e=s.canvas:c&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(r),document.body.appendChild(e)),l&&!h&&y(e);var a={width:e.width,height:e.height};function i(){if(p){var t={getBoundingClientRect:function(){if(!c)return e.getBoundingClientRect()}};return y(t),void p.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function f(){s=null,l&&(u=!1,t.removeEventListener("resize",i)),c&&e&&(document.body.removeChild(e),e=null,h=!1)}return p&&!h&&p.init(e),h=!0,p&&(e.__confetti_initialized=!0),l&&!u&&(u=!0,t.addEventListener("resize",i,!1)),p?p.fire(n,a,f):E(n,a,f)}return S.reset=function(){p&&p.reset(),s&&s.reset()},S}function N(){return h||(h=C(null,{useWorker:!0,resize:!0})),h}n.exports=function(){return N().apply(this,arguments)},n.exports.reset=function(){N().reset()},n.exports.create=C,n.exports.shapeFromPath=function(e){if(!i)throw new Error("path confetti are not supported in this browser");var t,n;"string"==typeof e?t=e:(t=e.path,n=e.matrix);var o=new Path2D(t),r=document.createElement("canvas").getContext("2d");if(!n){for(var a,s,c=1e3,d=c,l=c,u=0,m=0,p=0;p<c;p+=2)for(var y=0;y<c;y+=2)r.isPointInPath(o,p,y,"nonzero")&&(d=Math.min(d,p),l=Math.min(l,y),u=Math.max(u,p),m=Math.max(m,y));a=u-d,s=m-l;var h=Math.min(10/a,10/s);n=[h,0,0,h,-Math.round(a/2+d)*h,-Math.round(s/2+l)*h]}return{type:"path",path:t,matrix:n}},n.exports.shapeFromText=function(e){var t,n=1,o="#000000",r='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,r="fontFamily"in e?e.fontFamily:r,o="color"in e?e.color:o);var a=10*n,i=a+"px "+r,s=new OffscreenCanvas(a,a),c=s.getContext("2d");c.font=i;var d=c.measureText(t),l=Math.ceil(d.actualBoundingBoxRight+d.actualBoundingBoxLeft),u=Math.ceil(d.actualBoundingBoxAscent+d.actualBoundingBoxDescent),m=d.actualBoundingBoxLeft+2,p=d.actualBoundingBoxAscent+2;l+=4,u+=4,(c=(s=new OffscreenCanvas(l,u)).getContext("2d")).font=i,c.fillStyle=o,c.fillText(t,m,p);var y=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[y,0,0,y,-l*y/2,-u*y/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),zM,!1);const BM=zM.exports;zM.exports.create;const UM=["#889BF2","#C3CDF9","#6079ED"],VM=(e,t)=>Math.floor(Math.random()*(t-e)+e),YM="function"==typeof Path2D&&"function"==typeof DOMMatrix?BM.shapeFromPath({path:"M0,0 L2,0 L2,1 L0,1 Z"}):"square",HM=(window.innerWidth+window.innerHeight)/50,WM=({trigger:e=!0,delay:t=250,colors:n=UM})=>((0,W.useEffect)((()=>{e&&setTimeout((()=>(e=>{const t={spread:360,particleCount:1,startVelocity:0,zIndex:1e6};for(let n=0;n<HM;n++)BM(Object.assign(Object.assign({},t),{colors:[e[VM(0,e.length)]],origin:{x:Math.random(),y:.999*Math.random()-.2},drift:VM(-2,2),shapes:["circle"]})),BM(Object.assign(Object.assign({},t),{colors:[e[VM(0,e.length)]],origin:{x:Math.random(),y:.999*Math.random()-.2},shapes:[YM],drift:VM(-2,2),scalar:VM(2,4)}))})(n)),t)}),[e,t,n]),null);const GM=()=>{var e,t;const[n,o]=(0,W.useState)(!0),[r,a]=(0,W.useState)(null===(e=wcpaySettings.progressiveOnboarding)||void 0===e?void 0:e.isEligibilityModalDismissed),{updateOptions:i}=(0,Js.useDispatch)("wc/admin/options"),s=(null===(t=new URLSearchParams(window.location.search).get("source"))||void 0===t?void 0:t.replace(/[^\w-]+/g,""))||"unknown",c=()=>{return e=void 0,t=void 0,o=function*(){a(!0),yield i({wcpay_onboarding_eligibility_modal_dismissed:!0})},new((n=void 0)||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}));var e,t,n,o};return(0,W.useEffect)((()=>{var e;null===(e=document.querySelector(".wcpay-progressive-onboarding-eligibility-modal .components-modal__header-heading-container"))||void 0===e||e.remove()}),[]),!n||r?null:G().createElement(Xa,{title:"",className:"wcpay-progressive-onboarding-eligibility-modal",onRequestClose:()=>{As("dismiss",s),c(),o(!1)}},G().createElement(WM,null),G().createElement("h1",{className:"wcpay-progressive-onboarding-eligibility-modal__heading"},(0,Y.__)("You’re ready to sell.","woocommerce-payments")),G().createElement("h2",{className:"wcpay-progressive-onboarding-eligibility-modal__subheading"},(0,Y.__)("Start selling now and fast track the setup process, or continue the process to set up payouts with WooPayments.","woocommerce-payments")),G().createElement("div",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits"},G().createElement("div",null,G().createElement(Us,{icon:RM,size:32}),G().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,Y.__)("Start selling instantly","woocommerce-payments")),(0,Y.sprintf)((0,Y.__)("%s enables you to start processing credit card payments right away.","woocommerce-payments"),"WooPayments")),G().createElement("div",null,G().createElement(Us,{icon:PM,size:32}),G().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,Y.__)("Quick and easy setup","woocommerce-payments")),(0,Y.__)("The setup process is super simple and ensures your store is ready to accept card payments.","woocommerce-payments")),G().createElement("div",null,G().createElement(Us,{icon:FM,size:32}),G().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,Y.__)("Flexible process","woocommerce-payments")),(0,Y.__)("You have a $5,000 balance limit or 30 days from your first transaction to verify and set up payouts in your account.","woocommerce-payments"))),G().createElement("div",{className:"wcpay-progressive-onboarding-eligibility-modal__footer"},G().createElement(jr,{variant:"secondary",onClick:()=>{As("setup_deposits",s),window.location.href=(0,Gr.addQueryArgs)(wcpaySettings.connectUrl,{collect_payout_requirements:!0,source:s,from:"WCPAY_OVERVIEW"})}},(0,Y.__)("Start receiving payouts","woocommerce-payments")),G().createElement(jr,{variant:"primary",onClick:()=>{As("enable_payments_only",s),c(),o(!1)}},(0,Y.__)("Start selling","woocommerce-payments"))))};var qM;!function(e){e[e.DAY_IN_MS=864e5]="DAY_IN_MS"}(qM||(qM={}));const QM=({overviewTasksVisibility:e,tasks:t})=>{const{createNotice:n}=(0,Js.useDispatch)("core/notices"),{updateOptions:o}=(0,Js.useDispatch)("wc/admin/options"),[r,a]=(0,q.useState)(t),{deletedTodoTasks:i,dismissedTodoTasks:s,remindMeLaterTodoTasks:c}=e,d=(0,q.useCallback)((()=>{const e=Date.now();return t.filter((t=>!i.includes(t.key)&&!s.includes(t.key)&&(!c[t.key]||c[t.key]<e)))}),[i,s,c,t]);(0,q.useEffect)((()=>{a(d())}),[t,d]);const l=(e,t)=>{(async({task:e,dismissedTasks:t,noticeMessage:r,optionName:i})=>{const{key:c,onDismiss:l}=e;t.push(c),a(d()),await o({[i]:[...t]}),n("success",r,{actions:[{label:(0,Y.__)("Undo","woocommerce-payments"),onClick:()=>(async(e,t,n)=>{const r=t.filter((t=>t!==e));t.splice(s.indexOf(e),1),a(d()),await o({[n]:r})})(c,t,i)}]}),l&&l()})("dismiss"===t?{task:e,dismissedTasks:s,noticeMessage:(0,Y.__)("Task dismissed","woocommerce-payments"),optionName:"woocommerce_dismissed_todo_tasks"}:{task:e,dismissedTasks:i,noticeMessage:(0,Y.__)("Task deleted","woocommerce-payments"),optionName:"woocommerce_deleted_todo_tasks"})};return r.length?(0,Ta.jsx)(qr.CollapsibleList,{className:"wcpay-task-list",collapsed:!1,show:5,collapseLabel:(0,Y.__)("Hide tasks","woocommerce-payments"),expandLabel:(0,Y.__)("Show tasks","woocommerce-payments"),children:r.map((e=>(0,Ta.jsx)(qr.TaskItem,{"data-key":e.key,...e.dataAttrs||{},title:e.title,actionLabel:e.actionLabel,completed:e.completed,content:e.content,additionalInfo:e.additionalInfo,showActionButton:e.showActionButton,expandable:e.expandable,expanded:e.expanded,enter:void 0!==e.enter&&e.enter,action:void 0!==e.action?e.action:e.onClick,onClick:e.onClick,time:e.time,level:e.level,onDelete:e.isDeletable&&e.completed?()=>l(e,"delete"):void 0,onDismiss:e.isDismissable?()=>l(e,"dismiss"):void 0,onSnooze:e.allowSnooze?()=>(async({key:e,onDismiss:t})=>{const r=Date.now()+qM.DAY_IN_MS;c[e]=r,a(d()),await o({woocommerce_remind_me_later_todo_tasks:{...c,[e]:r}}),n("success",(0,Y.__)("Task postponed until tomorrow","woocommerce-payments"),{actions:[{label:(0,Y.__)("Undo","woocommerce-payments"),onClick:()=>(async e=>{const{[e]:t,...n}=c;delete c[e],a(d()),await o({woocommerce_remind_me_later_todo_tasks:n})})(e)}]}),t&&t()})(e):void 0},e.key)))}):(0,Ta.jsx)("div",{})},KM={errors:{invalid_address_city_state_postal_code:(0,Y.__)("The combination of the city, state, and postal code in the provided address could not be validated.","woocommerce-payments"),invalid_street_address:(0,Y.__)("The street name and/or number for the provided address could not be validated.","woocommerce-payments"),invalid_tos_acceptance:(0,q.createInterpolateElement)((0,Y.__)("The existing terms of service signature has been invalidated because the account’s tax ID has changed. The account needs to accept the terms of service again. For more information, see <a>this documentation</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/update-verified-information",target:"_blank",rel:"noopener noreferrer"})}),invalid_representative_country:(0,Y.__)("The representative must have an address in the same country as the company.","woocommerce-payments"),verification_document_address_mismatch:(0,Y.__)("The address on the document did not match the address on the account. Upload a document with a matching address or update the address on the account.","woocommerce-payments"),verification_document_address_missing:(0,Y.__)("The company address was missing on the document. Upload a document that includes the address.","woocommerce-payments"),verification_document_corrupt:(0,Y.__)("The uploaded file for the document was invalid or corrupt. Upload a new file of the document.","woocommerce-payments"),verification_document_country_not_supported:(0,Y.__)("The provided document was from an unsupported country.","woocommerce-payments"),verification_document_dob_mismatch:(0,Y.__)("The date of birth (DOB) on the document did not match the DOB on the account. Upload a document with a matching DOB or update the DOB on the account.","woocommerce-payments"),verification_document_duplicate_type:(0,Y.__)("The same type of document was used twice. Two unique types of documents are required for verification. Upload two different documents.","woocommerce-payments"),verification_document_expired:(0,Y.__)("The document could not be used for verification because it has expired. If it’s an identity document, its expiration date must be after the date the document was submitted. If it’s an address document, the issue date must be within the last six months.","woocommerce-payments"),verification_document_failed_copy:(0,Y.__)("The document could not be verified because it was detected as a copy (e.g., photo or scan). Upload the original document.","woocommerce-payments"),verification_document_failed_greyscale:(0,Y.__)("The document could not be used for verification because it was in greyscale. Upload a color copy of the document.","woocommerce-payments"),verification_document_failed_other:(0,q.createInterpolateElement)((0,Y.__)("The document could not be verified for an unknown reason. Ensure that the document follows the <a>guidelines for document uploads</a>","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_failed_test_mode:(0,q.createInterpolateElement)((0,Y.__)("A test data helper was supplied to simulate verification failure. Refer to the documentation for <a>test file tokens</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/testing#test-file-tokens",target:"_blank",rel:"noopener noreferrer"})}),verification_document_fraudulent:(0,Y.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_id_number_mismatch:(0,Y.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_document_id_number_missing:(0,Y.__)("The company ID number was missing on the document. Upload a document that includes the ID number.","woocommerce-payments"),verification_document_incomplete:(0,Y.__)("The document was cropped or missing important information. Upload a complete scan of the document.","woocommerce-payments"),verification_document_invalid:(0,q.createInterpolateElement)((0,Y.__)("The uploaded file was not one of the valid document types. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_issue_or_expiry_date_missing:(0,Y.__)("The issue or expiry date is missing on the document. Upload a document that includes the issue and expiry dates."),verification_document_manipulated:(0,Y.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_missing_back:(0,Y.__)("The uploaded file was missing the back of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_missing_front:(0,Y.__)("The uploaded file was missing the front of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_name_mismatch:(0,Y.__)("The name on the document did not match the name on the account. Upload a document with a matching name or update the name on the account.","woocommerce-payments"),verification_document_name_missing:(0,Y.__)("The company name was missing on the document. Upload a document that includes the company name.","woocommerce-payments"),verification_document_nationality_mismatch:(0,Y.__)("The nationality on the document did not match the person’s stated nationality. Update the person’s stated nationality, or upload a document that matches it.","woocommerce-payments"),verification_document_not_readable:(0,q.createInterpolateElement)((0,Y.__)("The document could not be read. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_not_signed:(0,Y.__)("A valid signature is missing on the document. Upload a document that includes a valid signature.","woocommerce-payments"),verification_document_not_uploaded:(0,Y.__)("No document was uploaded. Upload the document again.","woocommerce-payments"),verification_document_photo_mismatch:(0,Y.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_too_large:(0,Y.__)("The uploaded file exceeded the 10 MB size limit. Resize the document and upload the new file.","woocommerce-payments"),verification_document_type_not_supported:(0,q.createInterpolateElement)((0,Y.__)("The provided document type was not accepted. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_address_match:(0,Y.__)("The address on the account could not be verified. Correct any errors in the address field or upload a document that includes the address.","woocommerce-payments"),verification_failed_business_iec_number:(0,Y.__)("The Importer Exporter Code (IEC) number could not be verified. Correct any errors in the company’s IEC number field. (India only)","woocommerce-payments"),verification_failed_document_match:(0,Y.__)("The document could not be verified. Upload a document that includes the company name, ID number, and address fields.","woocommerce-payments"),verification_failed_id_number_match:(0,Y.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_failed_keyed_identity:(0,Y.__)("The person’s keyed-in identity information could not be verified. Correct any errors or upload a document that matches the identity fields (e.g., name and date of birth) entered.","woocommerce-payments"),verification_failed_keyed_match:(0,Y.__)("The keyed-in information on the account could not be verified. Correct any errors in the company name, ID number, or address fields. You can also upload a document that includes those fields.","woocommerce-payments"),verification_failed_name_match:(0,Y.__)("The company name on the account could not be verified. Correct any errors in the company name field or upload a document that includes the company name.","woocommerce-payments"),verification_failed_residential_address:(0,Y.__)("We could not verify that the person resides at the provided address. The address must be a valid physical address where the individual resides and cannot be a P.O. Box.","woocommerce-payments"),verification_failed_tax_id_match:(0,Y.__)("The tax ID on the account cannot be verified by the IRS. Either correct any possible errors in the company name or tax ID, or upload a document that contains those fields.","woocommerce-payments"),verification_failed_tax_id_not_issued:(0,q.createInterpolateElement)((0,Y.__)("The tax ID on the account was not recognized by the IRS. Refer to the support article for <a>newly-issued tax ID numbers</a>.","woocommerce-payments"),{a:G().createElement("a",{href:"https://support.stripe.com/questions/newly-issued-us-tax-id-number-tin-not-verifying",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_other:(0,Y.__)("Verification failed for an unknown reason. Correct any errors and resubmit the required fields.","woocommerce-payments"),verification_missing_owners:(0,Y.__)("We have identified owners that haven’t been added on the account. Add any missing owners to the account.","woocommerce-payments"),verification_missing_executives:(0,Y.__)("We have identified executives that haven’t been added on the account. Add any missing executives to the account.","woocommerce-payments"),verification_requires_additional_memorandum_of_associations:(0,Y.__)("We have identified holding companies with significant percentage ownership. Upload a Memorandum of Association for each of the holding companies.","woocommerce-payments"),invalid_dob_age_under_18:(0,Y.__)("Underage. Age must be at least 18.","woocommerce-payments")},tasks:{no_payment_14_days:{title:(0,Y.__)("Please add your bank details to keep selling","woocommerce-payments"),description:e=>(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("You have time until <strong>%s</strong> to make your first sale without undergoing full business verification. Take advantage of this time window and start selling now.","woocommerce-payments"),e),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Set up payouts","woocommerce-payments")},no_payment_30_days:{title:(0,Y.__)("Payments paused! Verify your bank details to reactivate.","woocommerce-payments"),description:()=>(0,q.createInterpolateElement)((0,Y.__)("You have reached the <strong>30-day limit</strong> for early selling access. In order to reactivate payments, please verify your bank details.","woocommerce-payments"),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Verify bank details","woocommerce-payments")},after_payment:{title:(0,Y.__)("Verify your bank account to start receiving payouts","woocommerce-payments"),description:e=>(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Add the required details by <strong>%s</strong> or <strong>before reaching $5,000</strong> in sales to avoid a disruption in payments.","woocommerce-payments"),e),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Start receiving payouts","woocommerce-payments")},balance_rising:{title:(0,Y.__)("Verify your bank account to start receiving payouts","woocommerce-payments"),description:e=>(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("To ensure a smooth payments process, please make sure to confirm your bank details by <strong>%s</strong> or before you reach <strong>$5,000</strong> in sales.","woocommerce-payments"),e),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Start receiving payouts","woocommerce-payments")},near_threshold:{title:(0,Y.__)("Verify your bank details","woocommerce-payments"),description:e=>(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("Verify your bank details by <strong>%s</strong> or before reaching <strong>$5,000</strong> in sales to avoid a disruption in payments.","woocommerce-payments"),e),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Set up payouts","woocommerce-payments")},threshold_reached:{title:(0,Y.__)("Payments paused! Verify your bank details to reactivate.","woocommerce-payments"),description:e=>(0,q.createInterpolateElement)((0,Y.sprintf)((0,Y.__)("<strong>You have reached the payout threshold of $5,000.00. Please verify your bank account now to reactivate payments.</strong> Your customers can no longer make purchases on your store until your account is verified.","woocommerce-payments"),e),{strong:G().createElement("strong",null)}),action_label:(0,Y.__)("Verify bank details","woocommerce-payments")},add_apms:{title:(0,Y.__)("Add more ways for buyers to pay","woocommerce-payments"),description:(0,Y.__)("Enable payment methods that work seamlessly with WooPayments.","woocommerce-payments")},go_live:{title:(0,Y.__)("Set up real payments on your store","woocommerce-payments"),time:(0,Y.__)("10 minutes","woocommerce-payments")}}},ZM=()=>{const{status:e,progressiveOnboarding:{isEnabled:t,isComplete:n,tpv:o,firstTransactionDate:r},created:a}=wcpaySettings.accountStatus,i=()=>{oa("wcpay_overview_task_click",{task:"po-bank-account",source:"wcpay-po-bank-account-task"}),window.location.href=(0,Gr.addQueryArgs)(wcpaySettings.connectUrl,{collect_payout_requirements:!0,from:"WCPAY_OVERVIEW",source:"wcpay-po-bank-account-task"})};if(!t||n||!a)return null;if("pending"===e||"complete"===e||"enabled"===e)return null;let s,c,d,l,u=3;if(r){const e=o/100;l=Ei()(r).add(30,"days").format("MMMM D, YYYY");const t=Ei()().diff(r,"days");s=KM.tasks.after_payment.title,u=3,c=KM.tasks.after_payment.description(l),d=KM.tasks.after_payment.action_label,(1e3<=e||7<=t)&&(s=KM.tasks.balance_rising.title,u=2,c=KM.tasks.balance_rising.description(l),d=KM.tasks.balance_rising.action_label),(3e3<=e||21<=t)&&(s=KM.tasks.near_threshold.title,u=1,c=KM.tasks.near_threshold.description(l),d=KM.tasks.near_threshold.action_label),(5e3<=e||30<=t)&&(s=KM.tasks.threshold_reached.title,u=1,c=KM.tasks.threshold_reached.description(l),d=KM.tasks.threshold_reached.action_label)}else{l=Ei()(a).add(30,"days").format("MMMM D, YYYY");const e=Ei()().diff(a,"days");14>e&&(s=KM.tasks.after_payment.title,u=3,c=KM.tasks.after_payment.description(l),d=KM.tasks.after_payment.action_label),14<=e&&(s=KM.tasks.no_payment_14_days.title,u=2,c=KM.tasks.no_payment_14_days.description(l),d=KM.tasks.no_payment_14_days.action_label),30<=e&&(s=KM.tasks.no_payment_30_days.title,u=1,c=KM.tasks.no_payment_30_days.description,d=KM.tasks.no_payment_30_days.action_label)}return{key:"verify-bank-details-po",title:s,content:c,level:u,completed:!1,expanded:!0,expandable:!0,isDismissable:!1,showActionButton:!0,action:i,onClick:i,actionLabel:d,visible:!0,time:"2 minutes"}},JM=(e,t)=>e.filter((e=>Y_({dueBy:e.due_by,days:t}))),XM=e=>{e=[...e].filter((e=>""!==e.due_by)).sort(((e,t)=>Ei()(e.due_by).diff(Ei()(t.due_by))));const t=e.length;if(0===t)return null;const n=JM(e,1).length,o=JM(e,3).length,r={key:`dispute-resolution-task-${e.map((e=>e.dispute_id)).join("-")}`,title:"",content:"",level:1,completed:!1,expanded:!0,expandable:!0,isDismissable:!1,showActionButton:!0,actionLabel:(0,Y.__)("Respond now","woocommerce-payments"),action:()=>{oa("wcpay_overview_task_click",{task:"dispute-resolution-task",active_dispute_count:t});const n=(0,Ay.getHistory)();if(1===t){const t=e[0].charge_id;n.push(Ii({page:"wc-admin",path:"/payments/transactions/details",id:t}))}else n.push(Ii({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"}))},onClick:()=>{},dataAttrs:{"data-urgent":!!(o>=1)}};if(1===t){const t=e[0],o=Rc(t.amount,t.currency);return r.title=n>=1?(0,Y.sprintf)((0,Y.__)("Respond to a dispute for %s – Last day","woocommerce-payments"),o):(0,Y.sprintf)((0,Y.__)("Respond to a dispute for %s","woocommerce-payments"),o),r.content=n>=1?(0,Y.sprintf)((0,Y.__)("Respond today by %s","woocommerce-payments"),(0,$i.dateI18n)("g:i A",Ei().utc(t.due_by).local().toISOString())):(0,Y.sprintf)((0,Y.__)("By %s – %s left to respond","woocommerce-payments"),(0,$i.dateI18n)("M j, Y",Ei().utc(t.due_by).local().toISOString()),Ei()(t.due_by).fromNow(!0)),r}const a=e.reduce(((e,t)=>{const{currency:n}=t;return e.includes(n)?e:[...e,n]}),[]);if(a.length>1)r.title=(0,Y.sprintf)((0,Y.__)("Respond to %d active disputes","woocommerce-payments"),t);else{const n=e.reduce(((e,t)=>e+t.amount),0);r.title=(0,Y.sprintf)((0,Y.__)("Respond to %d active disputes for a total of %s","woocommerce-payments"),t,Rc(n,a[0]))}const i=JM(e,7).length;return r.content=n>=1?(0,Y.sprintf)((0,Y.__)("Final day to respond to %d of the disputes","woocommerce-payments"),n):(0,Y.sprintf)((0,Y.__)("Last week to respond to %d of the disputes","woocommerce-payments"),i),r.actionLabel=(0,Y.__)("See disputes","woocommerce-payments"),r},eL=e=>{const t=()=>{oa("wcpay_overview_task_click",{task:"reconnect-wpcom",source:"wcpay-reconnect-wpcom-task"}),window.location.href=(0,Gr.addQueryArgs)(e,{from:"WCPAY_OVERVIEW",source:"wcpay-reconnect-wpcom-user-task"})};return{key:"reconnect-wpcom-user",level:1,content:"",title:(0,Y.sprintf)((0,Y.__)("Reconnect %s","woocommerce-payments"),"WooPayments"),additionalInfo:(0,Y.sprintf)((0,Y.__)("%s is missing a connected WordPress.com account. Some functionality will be limited without a connected account.","woocommerce-payments"),"WooPayments"),completed:!1,onClick:t,action:t,actionLabel:(0,Y.__)("Reconnect","woocommerce-payments"),expandable:!0,expanded:!0,showActionButton:!0}},tL={button:(0,Y.__)("Finish setup","woocommerce-payments"),heading:(0,Y.sprintf)((0,Y.__)("Update %s business details","woocommerce-payments"),"WooPayments"),restrictedDescription:(0,Y.__)("Payments and payouts are disabled for this account until missing information is updated. Please update the following information in the Stripe dashboard.","woocommerce-payments"),restrictedSoonDescription:(0,Y.__)("Additional information is required to verify your business. Update by %s to avoid a disruption in payouts.","woocommerce-payments"),updateBusinessDetails:(0,Y.__)("Update business details","woocommerce-payments "),cancel:(0,Y.__)("Cancel","woocommerce-payments")},nL=({errorMessages:e,accountStatus:t,accountLink:n,currentDeadline:o})=>{const[r,a]=(0,W.useState)(!0),i=()=>{a(!1)};return G().createElement(G().Fragment,null,r&&G().createElement(Xa,{title:tL.updateBusinessDetails,isDismissible:!0,className:"wcpay-update-business-details-modal",shouldCloseOnClickOutside:!1,onRequestClose:i},G().createElement("div",{className:"wcpay-update-business-details-modal__wrapper"},G().createElement("div",{className:"wcpay-update-business-details-modal__body"},G().createElement("p",null,"restricted_soon"===t&&o?(0,Y.sprintf)(tL.restrictedSoonDescription,(0,$i.dateI18n)("ga M j, Y",Ei()(1e3*o).toISOString())):tL.restrictedDescription),e.map(((e,t)=>G().createElement(da,{key:t,status:"warning",isDismissible:!1},e))))),G().createElement("hr",null),G().createElement("div",{className:"wcpay-update-business-details-modal__footer"},G().createElement(jr,{variant:"secondary",onClick:i},tL.cancel),G().createElement(jr,{variant:"primary",onClick:()=>{oa("wcpay_account_details_link_clicked",{source:"wcpay-update-business-details-task"}),window.open(n,"_blank")}},tL.updateBusinessDetails))))},oL=(e,t,n,o,r,a)=>{const i="restricted_soon"===t,s="restricted"===t&&r,c=1<e.length,d=1===e.length,l=wcpaySettings.connectUrl,u=n?(0,Gr.addQueryArgs)(n,{from:"WCPAY_OVERVIEW",source:"wcpay-update-business-details-task"}):"";let m,p,y="";i&&o?(p=(0,Y.sprintf)((0,Y.__)("Update by %s to avoid a disruption in payouts.","woocommerce-payments"),(0,$i.dateI18n)("ga M j, Y",Ei()(1e3*o).toISOString())),d?(m=e[0],y=G().createElement(G().Fragment,null,m," ",p)):y=p):s&&(y=d?e[0]:a?(0,Y.__)("Payments and payouts are disabled for this account until missing business information is updated.","woocommerce-payments"):(0,Y.__)("Payments and payouts are disabled for this account until setup is completed.","woocommerce-payments"));const h=()=>{if("complete"!==t&&"enabled"!==t)if(c)(()=>{let r=document.querySelector("#wcpay-update-business-details-container");r||(r=document.createElement("div"),r.id="wcpay-update-business-details-container",document.body.appendChild(r)),(0,q.render)(G().createElement(nL,{key:Date.now(),errorMessages:e,accountStatus:t,accountLink:n,currentDeadline:o}),r)})();else{let e="wcpay-update-business-details-task";a||(e="wcpay-finish-setup-task"),oa("wcpay_account_details_link_clicked",{source:e}),a?window.open(u,"_blank"):window.location.href=(0,Gr.addQueryArgs)(l,{from:"WCPAY_OVERVIEW",source:"wcpay-finish-setup-task"})}};let f;return f=c?(0,Y.__)("More details","woocommerce-payments"):a?(0,Y.__)("Update","woocommerce-payments"):(0,Y.__)("Finish setup","woocommerce-payments"),{key:a?"update-business-details":"complete-setup",level:1,title:a?(0,Y.sprintf)((0,Y.__)("Update %s business details","woocommerce-payments"),"WooPayments"):(0,Y.sprintf)((0,Y.__)("Finish setting up %s","woocommerce-payments"),"WooPayments"),content:y,completed:"complete"===t||"enabled"===t,onClick:h,action:h,actionLabel:f,expandable:!0,expanded:!0,showActionButton:!0}},rL=()=>{const e=()=>{oa("wcpay_overview_task_click",{task:"add-apms",source:"wcpay-add-apms-task"}),window.location.href=Ii({page:"wc-admin",path:"/payments/additional-payment-methods",from:"WCPAY_OVERVIEW",source:"wcpay-add-apms-task"})};return{key:"add-apms",level:3,content:"",title:KM.tasks.add_apms.title,additionalInfo:KM.tasks.add_apms.description,completed:!1,onClick:e,action:e,expandable:!1,showActionButton:!1}},aL=()=>{const[e,t]=(0,W.useState)(!0);return e?G().createElement(Ws,{from:"WCPAY_GO_LIVE_TASK",source:"wcpay-go-live-task",onClose:()=>t(!1)}):G().createElement(G().Fragment,null)},iL=()=>{const e=()=>{oa("wcpay_overview_task_click",{task:"go-live",source:"wcpay-go-live-task"});const e=document.createElement("div");e.id="wcpay-golivemodal-container",document.body.appendChild(e),Ls().render(G().createElement(aL,null),e)};return{key:"go-live-payments",level:3,content:"",title:KM.tasks.go_live.title,time:KM.tasks.go_live.time,completed:!1,onClick:e,action:e,expandable:!1,showActionButton:!1}},sL=["invalid_value_other"],cL=({showUpdateDetailsTask:e,wpcomReconnectUrl:t,activeDisputes:n=[],enabledPaymentMethods:o=[],showGoLiveTask:r=!1})=>{var a;const{status:i,currentDeadline:s,pastDue:c,accountLink:d,requirements:l,progressiveOnboarding:u,detailsSubmitted:m}=wcpaySettings.accountStatus,p=null==u?void 0:u.isEnabled,y=null==u?void 0:u.isComplete,h=p&&!y,f=(()=>{var e;const t=KM.errors,n=null===(e=null==l?void 0:l.errors)||void 0===e?void 0:e.filter((e=>!sL.includes(e.code))),o=null==n?void 0:n.map((e=>t[e.code]||e.reason));return Array.from(new Set(o||[]))})(),_=e&&(!p||p&&!m),g=!!n&&0<JM(n,7).length,v=1===(null==o?void 0:o.length)&&m&&!h,w=wcpaySettings.isAccountConnected&&Ni(!1)&&r;return[_&&oL(f,null!=i?i:"",d,null!==(a=Number(s))&&void 0!==a?a:null,null!=c&&c,null==m||m),t&&eL(t),g&&XM(n),p&&m&&ZM(),v&&rL(),w&&iL()].filter(Boolean)},dL=(e,t)=>{if(e.completed||t.completed)return e.completed?1:-1;const n=e.level||3,o=t.level||3;return n===o?0:n>o?1:-1},lL=()=>{const e="1"===(0,Ay.getQuery)()["wcpay-login-error"];return wcpaySettings.errorMessage||e?(0,Ta.jsx)(Fa,{className:e?"wcpay-login-error":"",status:"error",icon:!0,isDismissible:!1,children:wcpaySettings.errorMessage||(0,Y.__)("There was a problem redirecting you to the account dashboard. Please try again.","woocommerce-payments")}):null},uL=()=>{const{accountStatus:e,accountStatus:{progressiveOnboarding:t},accountLoans:{has_active_loan:n},enabledPaymentMethods:o,featureFlags:{isPaymentOverviewWidgetEnabled:r},overviewTasksVisibility:a,showUpdateDetailsTask:i,wpcomReconnectUrl:s}=wcpaySettings,c=wcpaySettings.testModeOnboarding,{isLoading:d}=np(),[l,u]=(0,W.useState)(!1),m=tp(),{disputes:p}=Al({filter:"awaiting_response",per_page:50}),y=cL({showUpdateDetailsTask:i,wpcomReconnectUrl:s,activeDisputes:p,enabledPaymentMethods:o}),h=Array.isArray(y)&&y.sort(dL),f=(0,Ay.getQuery)(),_=e.status&&e.status.startsWith("rejected"),g="under_review"===e.status,v="1"===f["wcpay-connection-success"],w="true"===f["wcpay-sandbox-success"]&&(e.status&&"complete"===e.status||"enabled"===e.status),b="1"===f["wcpay-loan-offer-error"],E="1"===f["wcpay-server-link-error"],$="1"===f["wcpay-reset-account-error"],S=v&&t.isEnabled&&!t.isComplete,x=!_&&!g&&h.length>0,k=Object.entries(wcpaySettings.accountFees).map((([e,t])=>{const n=!d&&m.enabled_payment_method_ids.filter((t=>t===e)).length>0;return d||!n||0===t.discount.length?null:{payment_method:e,fee:t}})).filter((e=>e&&void 0!==e.fee));return!l&&w&&((0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)("Success! You can start using WooPayments in sandbox mode.","woocommerce-payments")),u(!0)),(0,Ta.jsxs)(Ma,{isNarrow:!0,className:"wcpay-overview",children:[(0,Ta.jsx)(lL,{}),(0,Ta.jsx)(FA,{}),b&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Y.__)("There was a problem redirecting you to the loan offer. Please check that it is not expired and try again.","woocommerce-payments")}),E&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Y.__)("There was a problem redirecting you to the requested link. Please check that it is valid and try again.","woocommerce-payments")}),$&&(0,Ta.jsx)(da,{status:"error",isDismissible:!1,children:(0,Y.__)("There was a problem resetting your account. Please wait a few seconds and try again.","woocommerce-payments")}),c?(0,Ta.jsx)(Gs,{from:"WCPAY_OVERVIEW",source:"wcpay-overview-page"}):(0,Ta.jsx)(rc,{currentPage:"overview",isTestModeOnboarding:c,actions:[]}),(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(PA,{})}),v&&(0,Ta.jsx)($A,{}),!_&&!g&&(0,Ta.jsxs)(Oa,{children:[(0,Ta.jsx)(dc,{}),(0,Ta.jsx)(cM,{}),x&&(0,Ta.jsx)(So,{children:(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(QM,{tasks:h,overviewTasksVisibility:a})})}),(0,Ta.jsx)(So,{children:(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(JT,{})})}),r&&(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(rM,{})}),(0,Ta.jsx)(LA,{})]}),(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(EA,{accountStatus:e,accountFees:k})}),n&&(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(jT,{})}),!_&&!g&&(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(DM,{})}),S&&(0,Ta.jsx)(Oa,{children:(0,Ta.jsx)(GM,{})})]})},mL={vat_invoice:(0,Y.__)("VAT Invoice","woocommerce-payments")},pL=Object.entries(mL).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),yL=[{label:(0,Y.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order"],showFilters:()=>!0,filters:[{label:(0,Y.__)("All documents","woocommerce-payments"),value:"all"},{label:(0,Y.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],hL=(0,El.getSetting)("wcVersion"),fL=parseFloat(hL),_L={title:fL<7.8?(0,Y.__)("Documents match {{select /}} filters","woocommerce-payments"):(0,Y.__)("Documents match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,Y.__)("Date","woocommerce-payments"),remove:(0,Y.__)("Remove document date filter","woocommerce-payments"),rule:(0,Y.__)("Select a document date filter match","woocommerce-payments"),title:fL<7.8?(0,Y.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a document date","woocommerce-payments")},rules:[{value:"before",label:(0,Y.__)("Before","woocommerce-payments")},{value:"after",label:(0,Y.__)("After","woocommerce-payments")},{value:"between",label:(0,Y.__)("Between","woocommerce-payments")}],input:{component:"Date"}},type:{labels:{add:(0,Y.__)("Type","woocommerce-payments"),remove:(0,Y.__)("Remove document type filter","woocommerce-payments"),rule:(0,Y.__)("Select a document type filter match","woocommerce-payments"),title:fL<7.8?(0,Y.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,Y.__)("<title>Type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,Y.__)("Select a document type","woocommerce-payments")},rules:[{value:"is",label:(0,Y._x)("Is","document type","woocommerce-payments")},{value:"is_not",label:(0,Y._x)("Is not","document type","woocommerce-payments")}],input:{component:"SelectControl",options:pL}}}},gL=()=>G().createElement("div",{className:"woocommerce-filters-documents"},G().createElement(Qr.ReportFilters,{filters:yL,advancedFilters:_L,showDatePicker:!1,path:"/payments/documents",query:(0,Ay.getQuery)()}));const vL=({onCompleted:e,vatNumber:t,placeholderCompanyName:n,placeholderCompanyAddress:o})=>{const{setCompleted:r}=(0,W.useContext)(Nc),[a,i]=(0,W.useState)(null),[s,c]=(0,W.useState)(!1),[d,l]=(0,W.useState)(""),[u,m]=(0,W.useState)("");(0,W.useEffect)((()=>{l(n),m(o)}),[n,o]);const p=""===d.trim()||""===u.trim();return G().createElement(KC,{index:2,title:(0,Y.__)("Confirm your business details","woocommerce-payments")},G().createElement(QC,null,G().createElement(Ov,{label:(0,Y.__)("Business name","woocommerce-payments"),value:d,onChange:l}),G().createElement(Rv,{label:(0,Y.__)("Address","woocommerce-payments"),value:u,onChange:m}),G().createElement(jr,{isPrimary:!0,disabled:p||s,isBusy:s,onClick:()=>{return n=void 0,o=void 0,s=function*(){try{c(!0);const n={name:d,address:u};null!==t&&(n.vat_number=t);const o=yield Wr()({path:"/wc/v3/payments/vat",method:"POST",data:n});c(!1),r(!0,"vat-submitted"),e(o.vat_number,o.name,o.address)}catch(e){c(!1),i(e.message)}},new((a=void 0)||(a=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function i(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,i)}c((s=s.apply(n,o||[])).next())}));var n,o,a,s}},(0,Y.__)("Confirm","woocommerce-payments")),a&&G().createElement(da,{status:"error",isDismissible:!1,className:"vat-number-error"},a)))};const wL=()=>"JP"===wcpaySettings.accountStatus.country?(0,Y.__)("Corporate Number","woocommerce-payments"):(0,Y.__)("VAT Number","woocommerce-payments"),bL=({onCompleted:e})=>{const{setCompleted:t}=(0,W.useContext)(Nc),[n,o]=(0,W.useState)(null),[r,a]=(0,W.useState)(!1),[i,s]=(0,W.useState)(!1),[c,d]=(0,W.useState)(""),l=(()=>{switch(wcpaySettings.accountStatus.country){case"JP":return"";case"GR":return"EL ";case"CH":return"CHE ";default:return`${wcpaySettings.accountStatus.country} `}})(),u=i&&c.trimEnd()===l.trimEnd();return c.startsWith(l)||d(l),G().createElement(KC,{index:1,title:(0,Y.sprintf)((0,Y.__)("Set your %1$s","woocommerce-payments"),wL())},G().createElement("p",{className:"wcpay-wizard-task__description-element"},(0,Y.__)("The information you provide here will be used for all of your account's tax documents.","woocommerce-payments")),G().createElement(QC,null,G().createElement(Jh,{checked:i,onChange:s,label:(0,Y.sprintf)((0,Y.__)("I'm registered for a %1$s","woocommerce-payments"),wL()),help:"JP"===wcpaySettings.accountStatus.country?(0,Y.__)("","woocommerce-payments"):(0,Y.__)("If your sales exceed the VAT threshold for your country, you're required to register for a VAT Number.","woocommerce-payments")}),i&&G().createElement(Ov,{label:wL(),help:"JP"===wcpaySettings.accountStatus.country?(0,Y.__)("A 13 digit number, for example 1234567890123.","woocommerce-payments"):(0,Y.__)("8 to 12 digits with your country code prefix, for example DE 123456789.","woocommerce-payments"),value:c,onChange:d}),G().createElement(jr,{isPrimary:!0,disabled:u||r,isBusy:r,onClick:()=>{return n=void 0,r=void 0,d=function*(){var n,r;const s=i?c.replace(l,""):null;let d="",u="";o("");try{if(null!==s){a(!0);const e=yield Wr()({path:`/wc/v3/payments/vat/${encodeURI(s)}`});a(!1),d=null!==(n=e.name)&&void 0!==n?n:"",u=null!==(r=e.address)&&void 0!==r?r:""}t(!0,"company-data"),e(s,d,u)}catch(e){a(!1),o(e.message)}},new((s=void 0)||(s=Promise))((function(e,t){function o(e){try{i(d.next(e))}catch(e){t(e)}}function a(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(o,a)}i((d=d.apply(n,r||[])).next())}));var n,r,s,d}},(0,Y.__)("Continue","woocommerce-payments")),n&&G().createElement(da,{status:"error",isDismissible:!1,className:"vat-number-error"},n)))},EL=({onCompleted:e})=>{const[t,n]=(0,W.useState)(null),[o,r]=(0,W.useState)(""),[a,i]=(0,W.useState)("");return G().createElement(WC,{defaultActiveTask:"vat-number"},G().createElement(qC,null,G().createElement(GC,{id:"vat-number"},G().createElement(bL,{onCompleted:(e,t,o)=>{n(e),r(t),i(o)}})),G().createElement(GC,{id:"company-data"},G().createElement(vL,{onCompleted:(t,n,o)=>{e(t,n,o)},vatNumber:t,placeholderCompanyName:o,placeholderCompanyAddress:a}))))},$L=({isModalOpen:e,setModalOpen:t,onCompleted:n})=>e?G().createElement(Xa,{title:(0,Y.__)("Set your tax details","woocommerce-payments"),onRequestClose:()=>t(!1)},G().createElement(EL,{onCompleted:n})):null,SL=e=>"vat_invoice"===e.type?e.period_from&&e.period_to?(0,Y.sprintf)((0,Y.__)("VAT invoice for %s to %s","woocommerce-payments"),(0,$i.dateI18n)("M j, Y",Ei().utc(e.period_from).toISOString(),"utc"),(0,$i.dateI18n)("M j, Y",Ei().utc(e.period_to).toISOString(),"utc")):(0,Y.__)("VAT invoice without proper period dates","woocommerce-payments"):(0,Y.__)("Unknown document type","woocommerce-payments"),xL=()=>{var e;const{documents:t,isLoading:n}=(({paged:e,per_page:t,orderby:n,order:o,match:r,date_before:a,date_after:i,date_between:s,type_is:c,type_is_not:d})=>(0,Js.useSelect)((l=>{const{getDocuments:u,getDocumentsError:m,isResolving:p}=l(xi),y={paged:Number.isNaN(parseInt(null!=e?e:"",10))?"1":e,perPage:Number.isNaN(parseInt(null!=t?t:"",10))?"25":t,orderby:n||"date",order:o||"desc",match:r,dateBefore:a,dateAfter:i,dateBetween:s&&s.sort(((e,t)=>Ei()(e).diff(Ei()(t)))),typeIs:c,typeIsNot:d};return{documents:u(y),documentsError:m(y),isLoading:p("getDocuments",[y])}}),[e,t,n,o,r,a,i,JSON.stringify(s),c,d]))((0,Ay.getQuery)()),{documentsSummary:o,isLoading:r}=(({match:e,date_before:t,date_after:n,date_between:o,type_is:r,type_is_not:a})=>(0,Js.useSelect)((i=>{const{getDocumentsSummary:s,isResolving:c}=i(xi),d={match:e,dateBefore:t,dateAfter:n,dateBetween:o,typeIs:r,typeIsNot:a};return{documentsSummary:s(d),isLoading:c("getDocumentsSummary",[d])}}),[e,t,n,JSON.stringify(o),r,a]))((0,Ay.getQuery)()),[a,i]=(0,W.useState)(!1),[s,c]=(0,W.useState)(null),d=(0,W.useCallback)(((e,t,n=!0)=>{const o=Ti(e);((e,t,n)=>(c({documentId:e,type:t,newTab:n}),!("vat_invoice"===t&&!wcpaySettings.accountStatus.hasSubmittedVatData&&(i(!0),1))))(e,t,n)&&window.open(o,n?"_blank":"_self")}),[]),{document_id:l,document_type:u}=(0,Ay.getQuery)();(0,W.useEffect)((()=>{l&&u&&d(l,u,!1)}),[l,u,d]);const m=[{key:"date",label:(0,Y.__)("Date","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Date and time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date",isSortable:!0,defaultSort:!0},{key:"type",label:(0,Y.__)("Type","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"description",label:(0,Y.__)("Description","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Description","woocommerce-payments")},{key:"download",label:(0,Y.__)("Download","woocommerce-payments"),screenReaderLabel:(0,Y.__)("Download","woocommerce-payments"),isLeftAligned:!1,isNumeric:!0}].filter(Boolean),p=o.count||0,y=t.map((e=>{var t;const n=null!==(t=mL[e.type])&&void 0!==t?t:(0,Y.__)("Unknown document type","woocommerce-payments"),o={date:{value:e.date,display:(0,$i.dateI18n)("M j, Y",Ei().utc(e.date).local().toISOString())},type:{value:n,display:n},description:{value:SL(e),display:SL(e)},download:{value:Ti(e.document_id),display:G().createElement(jr,{className:"documents-list__download-button",variant:"link",onClick:()=>d(e.document_id,e.type)},(0,Y.__)("Download","woocommerce-payments"))}};return m.map((({key:e})=>o[e]||{display:null}))})),h=(0,Y.__)("Documents","woocommerce-payments");let f;return void 0!==o.count&&!1===r&&(f=[{label:(0,Y._n)("document","documents",o.count,"woocommerce-payments"),value:`${o.count}`}]),G().createElement(Ma,null,G().createElement(gL,null),G().createElement(Qr.TableCard,{className:"documents-list woocommerce-report-table has-search",title:h,isLoading:n,rowsPerPage:parseInt(null!==(e=(0,Ay.getQuery)().per_page)&&void 0!==e?e:"",10)||25,totalRows:p,headers:m,rows:y,summary:f,query:(0,Ay.getQuery)(),onQueryChange:Ay.onQueryChange,actions:[]}),G().createElement($L,{isModalOpen:a,setModalOpen:i,onCompleted:()=>{i(!1),wcpaySettings.accountStatus.hasSubmittedVatData=!0,s&&d(s.documentId,s.type,s.newTab)}}))},kL=()=>G().createElement(Ma,null,G().createElement(rc,{currentPage:"documents"}),G().createElement(xL,null)),CL={generic:{individual:(0,Y.__)("Select if you run your own business as an individual and are self-employed","woocommerce-payments"),company:(0,Y.__)("Select if you filed documentation to register your business with a government agency","woocommerce-payments"),non_profit:(0,Y.__)("Select if you run a non-business entity","woocommerce-payments"),government_entity:(0,Y.__)("Select if your business is classed as a government entity","woocommerce-payments")},US:{individual:(0,Y.__)("Select if you run your own business as an individual and are self-employed","woocommerce-payments"),company:(0,Y.__)("Select if you filed documentation to register your business with a government agency","woocommerce-payments"),non_profit:(0,Y.__)("Select if you have been granted tax-exempt status by the Internal Revenue Service (IRS)","woocommerce-payments"),government_entity:(0,Y.__)("Select if your business is classed as a government entity","woocommerce-payments")}};var NL=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const IL=e=>(null==e?void 0:e.name)||"",TL=({selectedItem:e},{type:t,changes:n,props:{items:o}})=>{switch(t){case FO.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:o[e?Math.min(o.indexOf(e)+1,o.length-1):0]};case FO.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:o[e?Math.max(o.indexOf(e)-1,0):o.length-1]};default:return n}},AL=function({name:e,className:t,label:n,describedBy:o,options:r,onChange:a,value:i,placeholder:s,children:c}){var d;const{getLabelProps:l,getToggleButtonProps:u,getMenuProps:m,getItemProps:p,isOpen:y,highlightedIndex:h,selectedItem:f}=FO({initialSelectedItem:r[0],items:r,itemToString:IL,onSelectedItemChange:a,selectedItem:i||{},stateReducer:TL}),_=IL(f),g=m({className:"components-custom-select-control__menu","aria-hidden":!y}),v=(0,q.useCallback)((e=>{var t;e.stopPropagation(),null===(t=null==g?void 0:g.onKeyDown)||void 0===t||t.call(g,e)}),[g]);return(null===(d=g["aria-activedescendant"])||void 0===d?void 0:d.startsWith("downshift-null"))&&delete g["aria-activedescendant"],G().createElement("div",{className:Lo()("wcpay components-custom-select-control",t)},G().createElement("label",Object.assign({},l({className:"components-custom-select-control__label"})),n),G().createElement(jr,Object.assign({},u({"aria-label":n,"aria-labelledby":void 0,"aria-describedby":o||(_?(0,Y.sprintf)((0,Y.__)("Currently selected: %s"),_):(0,Y.__)("No selection")),className:Lo()("components-custom-select-control__button",{placeholder:!_}),name:e})),G().createElement("span",{className:"components-custom-select-control__button-value"},_||s),G().createElement(Us,{icon:Fr,className:"components-custom-select-control__button-icon"})),G().createElement("ul",Object.assign({},g,{onKeyDown:v}),y&&r.map(((e,t)=>G().createElement("li",Object.assign({},p({item:e,index:t,key:e.key,className:Lo()(e.className,"components-custom-select-control__item",{"is-highlighted":t===h}),style:e.style})),c?c(e):e.name,e===f&&G().createElement(Us,{icon:La,className:"components-custom-select-control__item-icon"}))))))},OL=({name:e,className:t,label:n,options:o,onChange:r,value:a,placeholder:i,searchable:s})=>{var c;const d=(0,W.useRef)(null),l=(0,W.useRef)(),u=o.filter((e=>{var t;return null===(t=e.items)||void 0===t?void 0:t.length})).map((e=>e.key)),[m,p]=(0,W.useState)(new Set([u[0]])),[y,h]=(0,W.useState)(new Set([...u,...(null===(c=o[0])||void 0===c?void 0:c.items)||[]])),[f,_]=(0,W.useState)(""),g=o.filter((e=>y.has(e.key))),{isOpen:v,selectedItem:w,getToggleButtonProps:b,getMenuProps:E,getLabelProps:$,highlightedIndex:S,getItemProps:x}=FO({items:g,itemToString:e=>(null==e?void 0:e.name)||"",selectedItem:a||{},onSelectedItemChange:r,stateReducer:(e,{changes:t,type:n})=>{if(s&&n===FO.stateChangeTypes.MenuKeyDownCharacter)return e;if(t.selectedItem&&t.selectedItem.items){if(f)return e;const n=t.selectedItem.key;return m.has(n)?(m.delete(n),t.selectedItem.items.forEach((e=>y.delete(e)))):(m.add(n),t.selectedItem.items.forEach((e=>y.add(e)))),p(m),h(y),e}return t}}),k=E({className:"wcpay-component-grouped-select-control__list","aria-hidden":!v,onFocus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus()},onBlur:e=>{e.relatedTarget===d.current&&(e.nativeEvent.preventDownshiftDefault=!0)},onKeyDown:e=>{"Space"===e.code&&(e.nativeEvent.preventDownshiftDefault=!0)}});return G().createElement("div",{className:Lo()("wcpay-component-grouped-select-control",t)},G().createElement("label",Object.assign({},$({className:"wcpay-component-grouped-select-control__label"})),n),G().createElement("button",Object.assign({},b({type:"button",className:Lo()("components-text-control__input wcpay-component-grouped-select-control__button",{placeholder:i}),name:e})),G().createElement("span",{className:"wcpay-component-grouped-select-control__button-value"},(null==w?void 0:w.name)||i),G().createElement(Us,{icon:Fr,className:"wcpay-component-grouped-select-control__button-icon"})),G().createElement("ul",Object.assign({},k),v&&G().createElement(G().Fragment,null,s&&G().createElement("input",{className:"wcpay-component-grouped-select-control__search",ref:d,type:"text",value:f,onChange:({target:e})=>{if(l.current||(l.current={visibleItems:y}),""===e.value)h(l.current.visibleItems),l.current=void 0;else{const t=o.filter((t=>(null==t?void 0:t.group)&&`${t.name} ${t.context||""}`.toLowerCase().includes(e.value.toLowerCase()))),n=t.map((e=>(null==e?void 0:e.group)||"")),r=new Set([...t.map((e=>e.key)),...n]);h(r)}_(e.value)},tabIndex:-1,placeholder:(0,Y.__)("Search…","woocommerce-payments")}),G().createElement("div",{className:"wcpay-component-grouped-select-control__list-container"},g.map(((e,t)=>{const n=!!e.items;return G().createElement("li",Object.assign({},x({item:e,index:t,key:e.key,className:Lo()("wcpay-component-grouped-select-control__item",e.className,{"is-highlighted":t===S},{"is-group":n})})),G().createElement("div",{className:"wcpay-component-grouped-select-control__item-content"},e.name),e.key===(null==w?void 0:w.key)&&G().createElement(Us,{icon:La}),!f&&n&&G().createElement(Us,{icon:m.has(e.key)?Pr:Fr}))}))))))};const ML=(e,t,n)=>{const{error:o}=t,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["error"]);return o?G().createElement(G().Fragment,null,G().createElement(e,Object.assign({},r,{ref:n,className:Lo()(r.className,"has-error")})),G().createElement("div",{className:"components-form-field__error"},o)):G().createElement(e,Object.assign({},r,{ref:n}))},LL=((0,W.forwardRef)(((e,t)=>ML(Ov,e,t))),e=>ML(AL,e)),jL=e=>ML(OL,e),DL={steps:{business:{heading:(0,Y.__)("Let’s get your store ready to accept payments","woocommerce-payments"),subheading:(0,Y.__)("We’ll use these details to enable payments for your store.","woocommerce-payments")},store:{heading:(0,Y.__)("Please share a few more details","woocommerce-payments"),subheading:(0,Y.__)("This info will help us speed up the set up process.","woocommerce-payments")},loading:{heading:(0,Y.__)("One last step! Verify your identity with our partner","woocommerce-payments"),subheading:(0,Y.__)("This will take place in a secure environment through our partner. Once your business details are verified, you’ll be redirected back to your store dashboard.","woocommerce-payments")},embedded:{heading:(0,Y.__)("One last step! Verify your identity with our partner","woocommerce-payments"),subheading:(0,Y.__)("This info will verify your account","woocommerce-payments")}},fields:{country:(0,Y.__)("Where is your business legally registered?","woocommerce-payments"),business_type:(0,Y.__)("What type of legal entity is your business?","woocommerce-payments"),"company.structure":(0,Y.__)("What category of legal entity identify your business?","woocommerce-payments"),mcc:(0,Y.__)("What type of goods or services does your business sell? ","woocommerce-payments"),annual_revenue:(0,Y.__)("What is your estimated annual Ecommerce revenue (USD)?","woocommerce-payments"),go_live_timeframe:(0,Y.__)("What is the estimated timeline for taking your store live?","woocommerce-payments")},errors:{generic:(0,Y.__)("Please provide a response","woocommerce-payments"),country:(0,Y.__)("Please provide a country","woocommerce-payments"),business_type:(0,Y.__)("Please provide a business type","woocommerce-payments"),mcc:(0,Y.__)("Please provide a type of goods or services","woocommerce-payments")},placeholders:{generic:(0,Y.__)("Select an option","woocommerce-payments"),country:(0,Y.__)("Select a country","woocommerce-payments"),annual_revenue:(0,Y.__)("Select your annual revenue","woocommerce-payments"),go_live_timeframe:(0,Y.__)("Select a timeline","woocommerce-payments")},annualRevenues:{less_than_250k:(0,Y.__)("Less than $250k","woocommerce-payments"),from_250k_to_1m:(0,Y.__)("$250k - $1M","woocommerce-payments"),from_1m_to_20m:(0,Y.__)("$1M - $20M","woocommerce-payments"),from_20m_to_100m:(0,Y.__)("$20M - $100M","woocommerce-payments"),more_than_100m:(0,Y.__)("More than $100M","woocommerce-payments")},goLiveTimeframes:{already_live:(0,Y.__)("My store is already live","woocommerce-payments"),within_1month:(0,Y.__)("Within 1 month","woocommerce-payments"),from_1_to_3months:(0,Y.__)("1 – 3 months","woocommerce-payments"),from_3_to_6months:(0,Y.__)("3 – 6 months","woocommerce-payments"),more_than_6months:(0,Y.__)("6+ months","woocommerce-payments")},tos:Ua({mixedString:(0,Y.sprintf)((0,Y.__)("By using %1$s, you agree to be bound by our {{tosLink}}Terms of Service{{/tosLink}} (including {{merchantTermsLink}}%2$s merchant terms{{/merchantTermsLink}}) and acknowledge that you have read our {{privacyPolicyLink}}Privacy Policy{{/privacyPolicyLink}}.","woocommerce-payments"),"WooPayments","WooPay"),components:{tosLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://wordpress.com/tos/"}),merchantTermsLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://wordpress.com/tos/#more-woopay-specifically"}),privacyPolicyLink:G().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://automattic.com/privacy/"})}}),inlineNotice:{title:(0,Y.__)("Business Location:","woocommerce-payments"),action:(0,Y.__)("Change","woocommerce-payments")},continue:(0,Y.__)("Continue","woocommerce-payments"),back:(0,Y.__)("Back","woocommerce-payments"),cancel:(0,Y.__)("Cancel","woocommerce-payments")},RL=e=>{const{data:t,errors:n,setErrors:o,touched:r,setTouched:a}=Ss(),i=(n=t[e])=>{r[e]||a({[e]:!0});const i=((e,t)=>!!t)(0,n)?void 0:DL.errors[e]||DL.errors.generic;o({[e]:i})};return(0,W.useEffect)((()=>(i(),t[e]||a({[e]:!1}),()=>o({[e]:void 0}))),[]),{validate:i,error:()=>r[e]?n[e]:void 0}};var PL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const FL=({children:e})=>{const{errors:t,touched:n,setTouched:o}=Ss(),{currentStep:r,nextStep:a}=ws();return G().createElement("form",{onSubmit:e=>{e.preventDefault(),(()=>{if((0,mt.isEmpty)(t))return(e=>{xs.has(e)||(oa("wcpay_onboarding_flow_step_completed",{step:e,elapsed:Is()}),xs.add(e))})(r),a();o((0,mt.mapValues)(n,(()=>!0)))})()}},e,G().createElement(jr,{variant:"primary",type:"submit",className:"stepper__cta"},DL.continue))},zL=e=>{var t,n,{onChange:o}=e,r=PL(e,["onChange"]);const{name:a}=r,{data:i,setData:s}=Ss(),{validate:c,error:d}=RL(a);return G().createElement(LL,Object.assign({label:DL.fields[a],value:null===(t=r.options)||void 0===t?void 0:t.find((e=>e.key===i[a])),placeholder:null!==(n=DL.placeholders[a])&&void 0!==n?n:DL.placeholders.generic,onChange:({selectedItem:e})=>{o?null==o||o(a,e):s({[a]:null==e?void 0:e.key}),c(null==e?void 0:e.key)},options:[],error:d()},r))},BL=e=>{var t,n,{onChange:o}=e,r=PL(e,["onChange"]);const{name:a}=r,{data:i,setData:s}=Ss(),{validate:c,error:d}=RL(a);return G().createElement(jL,Object.assign({label:DL.fields[a],value:null===(t=r.options)||void 0===t?void 0:t.find((e=>e.key===i[a])),placeholder:null!==(n=DL.placeholders[a])&&void 0!==n?n:DL.placeholders.generic,onChange:({selectedItem:e})=>{o?null==o||o(a,e):s({[a]:null==e?void 0:e.key}),c(null==e?void 0:e.key)},options:[],error:d()},r))};var UL=n(8687);const VL="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE1NzZfMzU4MDMpIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjcyOTMgMEgzNi4yMzY3QzM4LjI4NjIgMCAzOS45NTUzIDEuNjczMTQgMzkuOTU1MyAzLjcyNzVWMTYuMTU5NkMzOS45NTUzIDE4LjIxNCAzOC4yODYyIDE5Ljg4NzEgMzYuMjM2NyAxOS44ODcxSDI0LjU3MzRMMjYuMTY4NiAyMy44MTU4TDE5LjEyMiAxOS44ODcxSDMuNzE4NzVDMS42NjkyMSAxOS44ODcxIDAgMTguMjE0IDAgMTYuMTU5NlYzLjcyNzVDMCAxLjY3MzE0IDEuNjY5MjEgMCAzLjcyOTMgMFoiIGZpbGw9IiM3RjU0QjMiLz4KPHBhdGggZD0iTTIuMDkyMzkgMy40MjMxOEMyLjM0NTk3IDMuMTE2MDYgMi43MTU3NSAyLjkyNTQ1IDMuMTE3MTggMi45MTQ4N0MzLjk0MTIxIDIuODYxOTMgNC40MTY2MiAzLjI1MzczIDQuNTQzNDEgNC4wOTAzMkM1LjA1MDUzIDcuNTAwMTIgNS41OTk4NyAxMC40MDE3IDYuMTgwOTEgMTIuNzg0M0w5Ljc2MjM2IDUuOTY0NjVDMTAuMDg5OSA1LjM1MDQ2IDEwLjQ5MTMgNS4wMjIxNyAxMC45ODc5IDQuOTkwNDNDMTEuNzA2MyA0LjkzNzQ5IDEyLjE1IDUuMzkyODIgMTIuMzI5NiA2LjM2NzA4QzEyLjY2NzYgOC4yNzMxOSAxMy4xODUzIDEwLjE0NzUgMTMuODcyIDExLjk1ODNDMTQuMzA1MSA3LjgwNzI0IDE1LjAyMzUgNC43OTk4MiAxNi4wMjcyIDIuOTQ2NjVDMTYuMjI3OSAyLjUyMzA3IDE2LjYzOTkgMi4yNDc3MyAxNy4xMDQ4IDIuMjI2NTdDMTcuNDc0NSAyLjE5NDc5IDE3Ljg0NDMgMi4zMTEzIDE4LjEyOTYgMi41NTQ4NUMxOC40MjU0IDIuNzc3MiAxOC42MDUgMy4xMjY2OSAxOC42MjYxIDMuNDk3MjlDMTguNjQ3MiAzLjc3MjYyIDE4LjU5NDQgNC4wNDc5NiAxOC40Njc2IDQuMjgwOTNDMTcuODMzNyA1LjQ2Njk2IDE3LjMwNTUgNy40MzY2IDE2Ljg5MzUgMTAuMTg5OUMxNi40OTIgMTIuODQ3OSAxNi4zMzM2IDE0LjkzNCAxNi40MzkyIDE2LjQyNzFDMTYuNDgxNSAxNi43OTc4IDE2LjQwNzUgMTcuMTY4NCAxNi4yNDkgMTcuNDk2NkMxNi4wOTA2IDE3LjgzNTUgMTUuNzUyNSAxOC4wNjg1IDE1LjM4MjcgMTguMDg5N0MxNC45NDk2IDE4LjEyMTQgMTQuNTI3IDE3LjkyMDIgMTQuMDkzOSAxNy40ODYxQzEyLjU3MjYgMTUuOTI5NCAxMS4zNjgyIDEzLjYxMDMgMTAuNDgwNyAxMC41Mjg3QzkuNDM0ODUgMTIuNjI1NSA4LjY0MjQ5IDE0LjIwMzMgOC4xMjQ4MSAxNS4yNDExQzcuMTYzNDQgMTcuMDk0MyA2LjMzOTQxIDE4LjAzNjcgNS42NjMyOCAxOC4wODk3QzUuMjE5NTQgMTguMTIxNCA0LjgzOTIxIDE3Ljc1MDggNC41MzI4NiAxNi45NjcyQzMuNjk4MjMgMTQuODI4MSAyLjgwMDIzIDEwLjY4NzYgMS44Mzg4NiA0LjU0NTY1QzEuNzU0MzMgNC4xNDMyNiAxLjg0OTQxIDMuNzQwODggMi4wOTIzOSAzLjQyMzE4WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTI2Ljk1MDkgNS45ODgxNUMyNi40MDE2IDUuMDAzMzEgMjUuNDUwNyA0LjMwNDM5IDI0LjM0MTUgNC4wOTI2MkMyNC4wNDU2IDQuMDI5MSAyMy43NDk4IDMuOTk3MzEgMjMuNDU0IDMuOTk3MzFDMjEuODkwNCAzLjk5NzMxIDIwLjYxMjEgNC44MTI3IDE5LjYxOSA2LjQ0MzQ4QzE4Ljc3MzkgNy44MzA3IDE4LjMzMDIgOS40Mjk3NCAxOC4zNTEzIDExLjA0OTlDMTguMzUxMyAxMi4zMTAxIDE4LjYxNTQgMTMuMzkwMiAxOS4xMzMxIDE0LjI5MDNDMTkuNjgyNSAxNS4yNzUyIDIwLjYzMzMgMTUuOTc0IDIxLjc0MjUgMTYuMTg1OUMyMi4wMzgzIDE2LjI0OTQgMjIuMzM0MSAxNi4yODEyIDIyLjYzIDE2LjI4MTJDMjQuMjA0MSAxNi4yODEyIDI1LjQ4MjQgMTUuNDY1OCAyNi40NjQ5IDEzLjgzNUMyNy4zMTAxIDEyLjQzNzIgMjcuNzUzOCAxMC44MzgyIDI3LjczMjcgOS4xOTY3NkMyNy43MzI3IDcuOTM2NjMgMjcuNDY4NiA2Ljg2NzA2IDI2Ljk1MDkgNS45ODgxNVpNMjQuODkwOCAxMC41MzFDMjQuNjY5IDExLjYwMDYgMjQuMjU2OSAxMi40MDU0IDIzLjY0NDIgMTIuOTU2QzIzLjE2ODggMTMuMzkwMiAyMi43MjUxIDEzLjU1OTcgMjIuMzIzNiAxMy40ODU1QzIxLjkyMjIgMTMuNDExNCAyMS42MDUyIDEzLjA1MTQgMjEuMzYyMiAxMi40MjY2QzIxLjE4MjYgMTEuOTUgMjEuMDc3IDExLjQ1MjMgMjEuMDc3IDEwLjkzMzRDMjEuMDc3IDEwLjUzMSAyMS4xMTkyIDEwLjEyODcgMjEuMTkzMiA5LjczNjgxQzIxLjM1MTcgOS4wMzc5MyAyMS42MzY5IDguMzgxMzcgMjIuMDU5NSA3Ljc4ODM0QzIyLjU5ODMgNi45OTQxNSAyMy4xNjg4IDYuNjU1MjkgMjMuNzYwNCA2Ljc4MjM0QzI0LjE2MTkgNi44NjcwNiAyNC40Nzg4IDcuMjE2NSAyNC43MjE4IDcuODQxMzJDMjQuOTAxNCA4LjMxNzg1IDI1LjAwNyA4LjgxNTU0IDI1LjAwNyA5LjMyMzg1QzI1LjAwNyA5LjcyNjIzIDI0Ljk3NTMgMTAuMTI4NyAyNC44OTA4IDEwLjUzMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0zNy4xNzczIDUuOTg4MTVDMzYuNjI4MiA1LjAwMzMxIDM1LjY3NzMgNC4zMDQzOSAzNC41NjggNC4wOTI2MkMzNC4yNzIzIDQuMDI5MSAzMy45NzY2IDMuOTk3MzEgMzMuNjgwNCAzLjk5NzMxQzMyLjExNzIgMy45OTczMSAzMC44Mzg2IDQuODEyNyAyOS44NDU2IDYuNDQzNDhDMjkuMDAwNSA3LjgzMDcgMjguNTU2NyA5LjQyOTc0IDI4LjU3NzkgMTEuMDQ5OUMyOC41Nzc5IDEyLjMxMDEgMjguODQyIDEzLjM5MDIgMjkuMzU5NiAxNC4yOTAzQzI5LjkwOSAxNS4yNzUyIDMwLjg2IDE1Ljk3NCAzMS45Njg5IDE2LjE4NTlDMzIuMjY1MSAxNi4yNDk0IDMyLjU2MDggMTYuMjgxMiAzMi44NTY1IDE2LjI4MTJDMzQuNDMwOCAxNi4yODEyIDM1LjcwOSAxNS40NjU4IDM2LjY5MTQgMTMuODM1QzM3LjUzNjcgMTIuNDM3MiAzNy45ODAzIDEwLjgzODIgMzcuOTU5MyA5LjE5Njc2QzM3Ljk1OTMgNy45MzY2MyAzNy42OTUyIDYuODY3MDYgMzcuMTc3MyA1Ljk4ODE1Wk0zNS4xMTc1IDEwLjUzMUMzNC44OTUzIDExLjYwMDYgMzQuNDgzNCAxMi40MDU0IDMzLjg3MDYgMTIuOTU2QzMzLjM5NTQgMTMuMzkwMiAzMi45NTE4IDEzLjU1OTcgMzIuNTUwMSAxMy40ODU1QzMyLjE0ODggMTMuNDExNCAzMS44MzE4IDEzLjA1MTQgMzEuNTg4NiAxMi40MjY2QzMxLjQwOTEgMTEuOTUgMzEuMzAzNiAxMS40NTIzIDMxLjMwMzYgMTAuOTMzNEMzMS4zMDM2IDEwLjUzMSAzMS4zNDU5IDEwLjEyODcgMzEuNDE5OCA5LjczNjgxQzMxLjU3ODQgOS4wMzc5MyAzMS44NjM0IDguMzgxMzcgMzIuMjg2IDcuNzg4MzRDMzIuODI0OSA2Ljk5NDE1IDMzLjM5NTQgNi42NTUyOSAzMy45ODY4IDYuNzgyMzRDMzQuMzg4NSA2Ljg2NzA2IDM0LjcwNTIgNy4yMTY1IDM0Ljk0ODMgNy44NDEzMkMzNS4xMjc4IDguMzE3ODUgMzUuMjMzOCA4LjgxNTU0IDM1LjIzMzggOS4zMjM4NUMzNS4yMzM4IDkuNzI2MjMgMzUuMjAxNyAxMC4xMjg3IDM1LjExNzUgMTAuNTMxWiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xNTc2XzM1ODAzIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjIzLjg0MjEiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",YL=({name:e,children:t,showHeading:n=!0})=>{const{trackAbandoned:o}=(()=>{const{errors:e,touched:t}=Ss(),{currentStep:n}=ws(),o=(o="hide")=>{var r;const a="hide"===o?"wcpay_onboarding_flow_hidden":"wcpay_onboarding_flow_exited",i=Object.keys(e).filter((e=>t[e])),s=new URLSearchParams(window.location.search);oa(a,{step:n,errored:i,elapsed:Ns(ks),source:(null===(r=s.get("source"))||void 0===r?void 0:r.replace(/[^\w-]+/g,""))||"unknown"})},r=()=>{"hidden"===document.visibilityState&&o("hide")};return(0,W.useEffect)((()=>(document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)})),[n,e,t]),{trackAbandoned:e=>{o(e),document.removeEventListener("visibilitychange",r)},removeTrackListener:()=>document.removeEventListener("visibilitychange",r)}})(),{prevStep:r,exit:a}=ws();return G().createElement(G().Fragment,null,G().createElement("div",{className:"stepper__nav"},G().createElement("button",{type:"button",className:"stepper__nav-button "+("embedded"===e?"hide":""),onClick:r},G().createElement(UL.A,null),DL.back),G().createElement("img",{src:VL,alt:"Woo",className:"stepper__nav-logo"}),G().createElement("button",{type:"button",className:"stepper__nav-button",onClick:()=>{o("exit"),a()}},DL.cancel)),G().createElement("div",{className:"stepper__wrapper"},n&&G().createElement(G().Fragment,null,G().createElement("h1",{className:"stepper__heading"},DL.steps[e].heading),G().createElement("h2",{className:"stepper__subheading"},DL.steps[e].subheading)),G().createElement("div",{className:"stepper__content"},t)))},HL=()=>{const{data:e,setData:t}=Ss(),n=Object.entries((null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.connect.availableCountries)||[]).map((([e,t])=>({key:e,name:t,types:[]}))).sort(((e,t)=>e.name.localeCompare(t.name))),o=(()=>{var e;return((null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.onboardingFieldsData)||void 0===e?void 0:e.business_types)||[]).map((e=>Object.assign(Object.assign({},e),{types:e.types.map((t=>Object.assign(Object.assign({},t),{description:CL[e.key]?CL[e.key][t.key]:CL.generic[t.key]})))}))).sort(((e,t)=>e.name.localeCompare(t.name)))||[]})(),r=(()=>{var e;const t=((null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.onboardingFieldsData)||void 0===e?void 0:e.mccs_display_tree)||[]).filter((e=>{var t;return!!(null==e?void 0:e.items)&&((null===(t=e.items)||void 0===t?void 0:t.filter((e=>!(null==e?void 0:e.items))))||[]).length}));return t.reduce(((e,t)=>{var n;const o=(null===(n=t.items)||void 0===n?void 0:n.map((e=>({key:e.id,name:e.title,group:t.id,context:(null==e?void 0:e.keywords)?e.keywords.join(" "):""}))))||[];return[...e,{key:t.id,name:t.title,items:o.map((e=>e.key))},...o]}),[])})(),a=o.find((t=>"PR"===e.country?"US"===t.key:t.key===e.country)),i=null==a?void 0:a.types.sort(((e,t)=>"company"===e.key?-1:"company"===t.key?1:0)),s=null==i?void 0:i.find((t=>t.key===e.business_type)),c=0===(null==s?void 0:s.structures.length)||(null==s?void 0:s.structures.find((t=>t.key===e["company.structure"]))),d=r.find((t=>t.key===e.mcc)),l=(e,n)=>{let o={[e]:null==n?void 0:n.key};"business_type"===e?o=Object.assign(Object.assign({},o),{"company.structure":void 0}):"country"===e&&(o=Object.assign(Object.assign({},o),{business_type:void 0})),t(o)};return G().createElement(G().Fragment,null,a&&G().createElement(Ia,{isDismissible:!1,buttonVariant:"link",actions:[{label:DL.inlineNotice.action,onClick:()=>l("country",null)}],status:"info"},G().createElement("div",{className:"wcpay-inline-notice__content__title"},DL.inlineNotice.title," ",G().createElement("b",null,a.name))),!a&&G().createElement("span",{"data-testid":"country-select"},G().createElement(zL,{name:"country",options:n,onChange:l})),a&&a.types.length>0&&G().createElement("span",{"data-testid":"business-type-select"},G().createElement(zL,{name:"business_type",options:a.types,onChange:l},(e=>G().createElement("div",null,G().createElement("div",null,e.name),G().createElement("div",{className:"complete-business-info-task__option-description"},e.description))))),s&&s.structures.length>0&&G().createElement("span",{"data-testid":"business-structure-select"},G().createElement(zL,{name:"company.structure",options:s.structures,onChange:l})),a&&s&&c&&G().createElement("span",{"data-testid":"mcc-select"},G().createElement(BL,{name:"mcc",options:r,searchable:!0})),a&&s&&c&&d&&G().createElement("span",{className:"wcpay-onboarding__tos"},DL.tos))};var WL=n(4759);function GL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var qL=W.createContext(null);qL.displayName="ConnectComponents";var QL,KL=function(e){var t=e.connectInstance,n=e.children;return W.createElement(qL.Provider,{value:{connectInstance:t}},n)},ZL=function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,s=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){d=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return GL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GL(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(W.useState(null),2),n=t[0],o=t[1],r=function(){var e=W.useContext(qL);if(!e)throw new Error("Could not find Components context; You need to wrap the part of your app in an <ConnectComponentsProvider> provider.");return e}(),a=r.connectInstance,i=W.useRef(null),s=W.createElement("div",{style:{width:"100%"},ref:i});return W.useLayoutEffect((function(){if(null!==i.current&&null===n){var t=a.create(e);if(o(t),null!==t){try{t.setAttribute("reactSdkAnalytics","3.3.17")}catch(e){console.log("Error setting React Sdk version with error message: ",e)}for(;i.current.firstChild;)i.current.removeChild(i.current.firstChild);i.current.appendChild(t)}}}),[a,e]),{wrapper:s,component:n}},JL=function(e,t,n){G().useEffect((function(){if(e)try{n(e,t)}catch(e){return void console.error("Error when calling setter! ",e)}}),[e,t,n])},XL=function(e){var t=e.onExit,n=e.recipientTermsOfServiceUrl,o=e.fullTermsOfServiceUrl,r=e.privacyPolicyUrl,a=e.skipTermsOfServiceCollection,i=e.collectionOptions,s=e.onLoadError,c=e.onLoaderStart,d=e.onStepChange,l=ZL("account-onboarding"),u=l.wrapper,m=l.component;return JL(m,n,(function(e,t){return e.setRecipientTermsOfServiceUrl(t)})),JL(m,o,(function(e,t){return e.setFullTermsOfServiceUrl(t)})),JL(m,r,(function(e,t){return e.setPrivacyPolicyUrl(t)})),JL(m,a,(function(e,t){return e.setSkipTermsOfServiceCollection(t)})),JL(m,i,(function(e,t){return e.setCollectionOptions(t)})),JL(m,t,(function(e,t){return e.setOnExit(t)})),JL(m,c,(function(e,t){e.setOnLoaderStart(t)})),JL(m,s,(function(e,t){e.setOnLoadError(t)})),JL(m,d,(function(e,t){return e.setOnStepChange(t)})),u};!function(e){e.exit="exit",e.close="close",e.instantPayoutCreated="instantpayoutcreated"}(QL||(QL={}));const ej={variables:{colorPrimary:"#7F54B3",colorBackground:"#FFFFFF",buttonPrimaryColorBackground:"#3858E9",buttonPrimaryColorBorder:"#3858E9",buttonPrimaryColorText:"#FFFFFF",buttonSecondaryColorBackground:"#FFFFFF",buttonSecondaryColorBorder:"#3858E9",buttonSecondaryColorText:"#3858E9",colorText:"#101517",colorSecondaryText:"#50575E",actionPrimaryColorText:"#3858E9",actionSecondaryColorText:"#101517",colorBorder:"#DDDDDD",formHighlightColorBorder:"#3858E9",formAccentColor:"#3858E9",colorDanger:"#CC1818",offsetBackgroundColor:"#F0F0F0",formBackgroundColor:"#FFFFFF",badgeNeutralColorText:"#2C3338",badgeNeutralColorBackground:"#F6F7F7",badgeNeutralColorBorder:"#F6F7F7",badgeSuccessColorText:"#005C12",badgeSuccessColorBackground:"#EDFAEF",badgeSuccessColorBorder:"#EDFAEF",badgeWarningColorText:"#614200",badgeWarningColorBackground:"#FCF9E8",badgeWarningColorBorder:"#FCF9E8",badgeDangerColorText:"#8A2424",badgeDangerColorBackground:"#FCF0F1",badgeDangerColorBorder:"#FCF0F1",borderRadius:"2px",buttonBorderRadius:"2px",formBorderRadius:"2px",badgeBorderRadius:"2px",overlayBorderRadius:"8px",spacingUnit:"10px",fontFamily:"-apple-system, BlinkMacSystemFont, 'system-ui', 'Segoe UI', 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', sans-serif",fontSizeBase:"16px",headingXlFontSize:"32px",headingXlFontWeight:"400",headingLgFontSize:"24px",headingLgFontWeight:"400",headingMdFontSize:"20px",headingMdFontWeight:"400",headingSmFontSize:"16px",headingSmFontWeight:"600",headingXsFontSize:"12px",headingXsFontWeight:"600",bodyMdFontWeight:"400",bodyMdFontSize:"16px",bodySmFontSize:"14px",bodySmFontWeight:"400"}};const tj=e=>{var{className:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className"]);return G().createElement("div",Object.assign({className:Lo()("wcpay-component-load-bar",t)},n))};var nj=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))};const oj=({continueKyc:e=!1,collectPayoutRequirements:t=!1})=>{const{data:n}=Ss(),[o,r]=(0,W.useState)(""),[a,i]=(0,W.useState)(""),[s,c]=(0,W.useState)(null),[d,l]=(0,W.useState)(null),[u,m]=(0,W.useState)(!0),[p,y]=(0,W.useState)(""),h=(0,W.useCallback)((()=>nj(void 0,void 0,void 0,(function*(){try{const o=!e&&(yield(t=n,NL(void 0,void 0,void 0,(function*(){if(e={country:t.country,business_type:t.business_type,mcc:t.mcc,annual_revenue:t.annual_revenue,go_live_timeframe:t.go_live_timeframe},Object.values(e).some((e=>void 0===e)))return!1;var e;const n={business:{country:t.country,type:t.business_type,mcc:t.mcc},store:{annual_revenue:t.annual_revenue,go_live_timeframe:t.go_live_timeframe}};return"eligible"===(yield Wr()({path:`${Si}/onboarding/router/po_eligible`,method:"POST",data:n})).result})))),r=yield((e,t)=>NL(void 0,void 0,void 0,(function*(){return yield Wr()({path:(0,Gr.addQueryArgs)(`${Si}/onboarding/kyc/session`,{self_assessment:(n=e,(0,mt.toPairs)(n).reduce(((e,[t,n])=>null!=n?(0,mt.set)(e,t,n):e),{})),progressive:t}),method:"GET"});var n})))(n,o);if(r&&r.clientSecret)return((e,t=!1)=>{var n;const o=new URLSearchParams(window.location.search);oa("wcpay_onboarding_flow_redirected",{is_po_eligible:e,is_embedded_onboarding:t,elapsed:Ns(ks),source:(null===(n=o.get("source"))||void 0===n?void 0:n.replace(/[^\w-]+/g,""))||"unknown"})})(o,!0),r;m(!1),y((0,Y.__)("Failed to create account session. Please check that you're using the latest version of WooPayments.","woocommerce-payments"))}catch(e){m(!1),y((0,Y.__)("Failed to retrieve account session. Please try again later.","woocommerce-payments"))}var t;return null}))),[e,n]),f=(0,W.useCallback)((()=>nj(void 0,void 0,void 0,(function*(){const e=yield h();if(e)return e.clientSecret;throw new Error("Error fetching the client secret")}))),[h]);(0,W.useEffect)((()=>{nj(void 0,void 0,void 0,(function*(){try{const e=yield h();e&&(r(e.locale),i(e.publishableKey),c((()=>f)))}catch(e){m(!1),y((0,Y.__)("Failed to create account session. Please check that you are using the latest version of WooPayments.","woocommerce-payments"))}finally{m(!1)}}))}),[n,e,h,f]),(0,W.useEffect)((()=>{if(a&&s&&!d){const e=(0,WL.loadConnectAndInitialize)({publishableKey:a,fetchClientSecret:f,appearance:{overlays:"drawer",variables:ej.variables},locale:o.replace("_","-")});l(e)}}),[a,s,d,f,o]);return G().createElement(G().Fragment,null,u&&G().createElement(tj,null),p&&G().createElement(Fa,{status:"error"},p),d&&G().createElement(KL,{connectInstance:d},G().createElement(XL,{onLoaderStart:()=>m(!1),onLoadError:e=>y(e.error.message||"Unknown error"),onExit:()=>nj(void 0,void 0,void 0,(function*(){var e;const t=(null===(e=new URLSearchParams(window.location.search).get("source"))||void 0===e?void 0:e.replace(/[^\w-]+/g,""))||"unknown";try{const e=yield(e=>NL(void 0,void 0,void 0,(function*(){return yield Wr()({path:`${Si}/onboarding/kyc/finalize`,method:"POST",data:{source:e,from:"WCPAY_ONBOARDING_WIZARD"}})})))(t);e.success?window.location.href=(e=>{const t="object"==typeof e?e:{},n={page:"wc-admin",path:"/payments/overview",source:t.source?.replace(/[^\w-]+/g,"")||"unknown",from:"WCPAY_ONBOARDING_WIZARD"},o={...t,...n};return Ii(o)})(Object.assign(Object.assign({},e.params),{"wcpay-connection-success":"1"})):window.location.href=Ai(Object.assign(Object.assign({},e.params),{"wcpay-connection-error":"1"}),"WCPAY_ONBOARDING_WIZARD")}catch(e){window.location.href=Ai({"wcpay-connection-error":"1",source:t},"WCPAY_ONBOARDING_WIZARD")}})),onStepChange:e=>(e=>{(e=>{var t;const n=new URLSearchParams(window.location.search);oa("wcpay_onboarding_flow_embedded_step_change",{step:e,elapsed:Ns(ks),source:(null===(t=n.get("source"))||void 0===t?void 0:t.replace(/[^\w-]+/g,""))||"unknown"})})(e)})(e.step),collectionOptions:{fields:t?"eventually_due":"currently_due",futureRequirements:"omit"}})))},rj=Object.entries(DL.annualRevenues).map((([e,t])=>({key:e,name:t}))),aj=Object.entries(DL.goLiveTimeframes).map((([e,t])=>({key:e,name:t}))),ij=()=>G().createElement(G().Fragment,null,G().createElement(zL,{name:"annual_revenue",options:rj}),G().createElement(zL,{name:"go_live_timeframe",options:aj}));var sj;const cj=()=>G().createElement(vs,{onStepChange:()=>window.scroll(0,0),onExit:()=>{var e;const t=new URLSearchParams(window.location.search);window.location.href=Ii({page:"wc-admin",path:"/payments/connect",source:(null===(e=t.get("source"))||void 0===e?void 0:e.replace(/[^\w-]+/g,""))||"unknown",from:"WCPAY_ONBOARDING_WIZARD"})}},G().createElement(YL,{name:"business"},G().createElement(FL,null,G().createElement(HL,null))),G().createElement(YL,{name:"store"},G().createElement(FL,null,G().createElement(ij,null))),G().createElement(YL,{name:"embedded",showHeading:!1},G().createElement(oj,null))),dj={business_name:null===wcSettings||void 0===wcSettings?void 0:wcSettings.siteTitle,mcc:(()=>{var e,t;const n=null===(e=wcSettings.admin.onboarding.profile.industry)||void 0===e?void 0:e[0];if(n)return((null===(t=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.onboardingFieldsData)||void 0===t?void 0:t.industry_to_mcc)||{})[n]})(),url:"localhost"===location.hostname?"https://wcpay.test":(null===wcSettings||void 0===wcSettings?void 0:wcSettings.homeUrl)+(()=>{var e;const{woocommerce_share_key:t,woocommerce_coming_soon:n,woocommerce_private_link:o}=(null===(e=null===wcSettings||void 0===wcSettings?void 0:wcSettings.admin)||void 0===e?void 0:e.siteVisibilitySettings)||{};return"yes"!==n||"no"===o?"":t?"?woo-share="+t:""})(),country:null===(sj=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.connect)||void 0===sj?void 0:sj.country},lj=()=>((0,W.useEffect)((()=>((()=>{var e;ks=Cs=Date.now();const t=new URLSearchParams(window.location.search);oa("wcpay_onboarding_flow_started",{source:(null===(e=t.get("source"))||void 0===e?void 0:e.replace(/[^\w-]+/g,""))||"unknown"})})(),document.body.classList.remove("woocommerce-admin-is-loading"),document.body.classList.add("woocommerce-admin-full-screen"),document.body.classList.add("is-wp-toolbar-disabled"),document.body.classList.add("wcpay-onboarding__body"),()=>{document.body.classList.remove("woocommerce-admin-full-screen"),document.body.classList.remove("is-wp-toolbar-disabled"),document.body.classList.remove("wcpay-onboarding__body")})),[]),G().createElement(Ma,{className:"wcpay-onboarding-prototype"},G().createElement($s,{initialData:dj},G().createElement(cj,null)))),uj=()=>{const e=new URLSearchParams(window.location.search),t=!!e.get("collect_payout_requirements");return(0,W.useEffect)((()=>(document.body.classList.remove("woocommerce-admin-is-loading"),document.body.classList.add("woocommerce-admin-full-screen"),document.body.classList.add("is-wp-toolbar-disabled"),document.body.classList.add("wcpay-onboarding__body"),()=>{document.body.classList.remove("woocommerce-admin-full-screen"),document.body.classList.remove("is-wp-toolbar-disabled"),document.body.classList.remove("wcpay-onboarding__body")})),[]),G().createElement(Ma,{className:"wcpay-onboarding-prototype"},G().createElement($s,null,G().createElement("div",{className:"stepper__nav"},G().createElement("button",{type:"button",className:"stepper__nav-button hide"},DL.back),G().createElement("img",{src:VL,alt:"Woo",className:"stepper__nav-logo"}),G().createElement("button",{type:"button",className:"stepper__nav-button",onClick:()=>{var t;(()=>{var e;const t=new URLSearchParams(window.location.search);oa("wcpay_onboarding_kyc_exit",{source:(null===(e=t.get("source"))||void 0===e?void 0:e.replace(/[^\w-]+/g,""))||"unknown"})})(),window.location.href=Ai({source:(null===(t=e.get("source"))||void 0===t?void 0:t.replace(/[^\w-]+/g,""))||"unknown"},"WCPAY_ONBOARDING_KYC")}},DL.cancel)),G().createElement("div",{className:"stepper__wrapper"},G().createElement("div",{className:"stepper__content"},G().createElement(oj,{continueKyc:!0,collectPayoutRequirements:t})))))};const mj=e=>{var{className:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className"]);return G().createElement(Oo,Object.assign({className:Lo()("wcpay-card-body",t)},n))},pj=({title:e,description:t,children:n,id:o})=>G().createElement(So,{id:o,className:"fraud-protection-rule-card"},G().createElement(mj,{className:"fraud-protection-rule-card-header-container"},G().createElement("div",null,G().createElement("p",{className:"fraud-protection-rule-card-header"},e),G().createElement("p",{className:"fraud-protection-rule-card-description"},t))),G().createElement("hr",null),G().createElement(mj,null,n)),yj=({children:e})=>G().createElement("div",{className:"fraud-protection-rule-description"},G().createElement("strong",null,(0,Y.__)("How does this filter protect me?","woocommerce-payments")),G().createElement("p",null,e)),hj=function(e){let{className:t,checked:n,id:o,disabled:r,onChange:a=mt.noop,...i}=e;const s=Lo()("components-form-toggle",t,{"is-checked":n,"is-disabled":r});return(0,q.createElement)("span",{className:s},(0,q.createElement)("input",Q({className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:a,disabled:r},i)),(0,q.createElement)("span",{className:"components-form-toggle__track"}),(0,q.createElement)("span",{className:"components-form-toggle__thumb"}))};function fj(e){let{label:t,checked:n,help:o,className:r,onChange:a,disabled:i}=e;const s=`inspector-toggle-control-${(0,jo.useInstanceId)(fj)}`;let c,d;return o&&(c=s+"__help",d=(0,mt.isFunction)(o)?o(n):o),(0,q.createElement)(ah,{id:s,help:d,className:Lo()("components-toggle-control",r)},(0,q.createElement)(hj,{id:s,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":c,disabled:i}),(0,q.createElement)("label",{htmlFor:s,className:"components-toggle-control__label"},t))}const _j=(0,W.createContext)({protectionSettingsUI:{},setProtectionSettingsUI:()=>null,setIsDirty:()=>null}),gj="review",vj="block",wj=[{label:(0,Y.__)("Authorize and hold for review","woocommerce-payments"),value:gj},{label:(0,Y.__)("Block Payment","woocommerce-payments"),value:vj}],bj={unchecked:(0,Y.__)("When enabled, the payment will be blocked."),[gj]:(0,Y.__)("The payment method will not be charged until you review and approve the transaction."),[vj]:(0,Y.__)("The payment will be blocked.")},Ej=(e,t)=>e?bj[t]:bj.unchecked,$j=({setting:e,label:t,children:n})=>{const{protectionSettingsUI:o,setProtectionSettingsUI:r,setIsDirty:a}=(0,W.useContext)(_j),{isFRTReviewFeatureActive:i}=wcpaySettings,s=null==o?void 0:o[e],c=((e,t)=>t?e.block?vj:gj:vj)(s,i),d=(t,n)=>{r((o=>Object.assign(Object.assign({},o),{[e]:Object.assign(Object.assign({},o[e]),{[t]:n})}))),a(!0)};return o?G().createElement("div",{className:"fraud-protection-rule-toggle"},G().createElement("strong",null,(0,Y.__)("Enable filtering","woocommerce-payments")),G().createElement(fj,{label:t,key:e,help:Ej(null==s?void 0:s.enabled,c),checked:null==s?void 0:s.enabled,className:"fraud-protection-rule-toggle-toggle",onChange:e=>{d("enabled",e)}}),(null==s?void 0:s.enabled)&&G().createElement("div",null,n,!!i&&G().createElement("div",{className:"fraud-protection-rule-toggle-block"},G().createElement("strong",null,(0,Y.__)("Filter action","woocommerce-payments")),G().createElement(wg,{options:wj,selected:c,onChange:e=>{d("block",vj===e)}})))):null},Sj=()=>G().createElement(pj,{title:(0,Y.__)("AVS Mismatch","woocommerce-payments"),description:(0,Y.__)("This filter compares the street number and the post code submitted by the customer against the data on file with the card issuer.","woocommerce-payments"),id:"avs-mismatch-card"},G().createElement($j,{setting:"avs_verification",label:(0,Y.__)("Block transactions for mismatched AVS","woocommerce-payments")}),G().createElement(yj,null,(0,Y.__)("Buyers who can provide the street number and post code on file with the issuing bank are more likely to be the actual account holder. AVS matches, however, are not a guarantee.","woocommerce-payments"))),xj=["error","warning","info"],kj=({type:e,children:t})=>{if(!xj.includes(e))return null;const n="info"===e?G().createElement(Tg,null):G().createElement(Kr.A,null);return G().createElement(Ia,{status:e,icon:n,className:"fraud-protection-rule-card-notice fraud-protection-rule-card-notice-"+e,children:t,isDismissible:!1})},Cj=()=>{var e,t,n;const o=null===(n=null===(t=null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===e?void 0:e.fraudProtection)||void 0===t?void 0:t.declineOnCVCFailure)||void 0===n||n;return G().createElement(pj,{title:(0,Y.__)("CVC Verification","woocommerce-payments"),description:(0,Y.__)("This filter checks the security code submitted by the customer against the data on file with the card issuer.","woocommerce-payments"),id:"cvc-verification-card"},G().createElement(yj,null,(0,Y.__)("Because the card security code appears only on the card and not on receipts or statements, the card security code provides some assurance that the physical card is in the possession of the buyer.","woocommerce-payments")),G().createElement(kj,{type:"warning"},o?Ua({mixedString:(0,Y.__)("For security, this filter is enabled and cannot be modified. Payments failing CVC verification will be blocked. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:G().createElement(Qr.Link,{target:"_blank",type:"external",href:"https://woocommerce.com/document/woopayments/fraud-and-disputes/fraud-protection/#advanced-configuration"})}}):(0,Y.__)("This filter is disabled, and can not be modified.","woocommerce-payments")))};function Nj(e){return void 0!==e.key}function Ij(e){return void 0!==e.min_items}function Tj(e){return void 0!==e.min_amount}const Aj=()=>wcSettings.admin.preloadSettings.general.woocommerce_allowed_countries,Oj=()=>{switch(Aj()){case"all":default:return[];case"all_except":return wcSettings.admin.preloadSettings.general.woocommerce_all_except_countries;case"specific":return wcSettings.admin.preloadSettings.general.woocommerce_specific_allowed_countries}},Mj=e=>{const t=parseFloat(e);return isNaN(t)?"":[parseInt((100*t).toString(),10),wcpaySettings.storeCurrency||"usd"].join("|")},Lj=e=>{if(!e)return"";const[t]=e.toString().split("|");return Number(t)/100},jj=(e,t,n={})=>{var o,r,a,i;const s=((e,t)=>({key:e,outcome:t?Dl:Rl,check:null}))(e,t);switch(e){case Pl:s.check={key:"avs_mismatch",operator:Wl,value:!0};break;case Fl:s.check={key:"billing_shipping_address_same",operator:Wl,value:!1};break;case zl:s.check={key:"ip_country",operator:"specific"===Aj()?"not_in":"in",value:Oj().join("|").toLowerCase()};break;case Bl:s.check={key:"ip_billing_country_same",operator:Wl,value:!1};break;case Ul:if(Ij(n)){const e=(null==n?void 0:n.min_items)+"",t=(null==n?void 0:n.max_items)+"";parseInt(e,10)&&parseInt(t,10)?s.check={operator:"or",checks:[{key:Yl,operator:ql,value:null!==(o=parseInt(e,10))&&void 0!==o?o:null},{key:Yl,operator:Gl,value:null!==(r=parseInt(t,10))&&void 0!==r?r:null}]}:(parseInt(e,10)||parseInt(t,10))&&(s.check=parseInt(e,10)?{key:Yl,operator:ql,value:null!==(a=parseInt(e,10))&&void 0!==a?a:null}:{key:Yl,operator:Gl,value:null!==(i=parseInt(t,10))&&void 0!==i?i:null})}break;case Vl:if(Tj(n)){const e=(null==n?void 0:n.min_amount)+"",t=(null==n?void 0:n.max_amount)+"";parseFloat(e)&&parseFloat(t)?s.check={operator:"or",checks:[{key:Hl,operator:ql,value:Mj(e)},{key:Hl,operator:Gl,value:Mj(t)}]}:(parseFloat(e)||parseFloat(t))&&(s.check=parseFloat(e)?{key:Hl,operator:ql,value:Mj(e)}:{key:Hl,operator:Gl,value:Mj(t)})}}return s},Dj=(e,t,n)=>{if(Nj(e)&&t===e.key&&n===e.operator)return e;if(!Nj(e)&&(null==e?void 0:e.checks))for(const o in e.checks){const r=e.checks[o],a=Dj(r,t,n);if(!1!==a)return a}return!1},Rj=e=>{var t,n,o,r;const a=(null===(n=null===(t=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===t?void 0:t.fraudProtection)||void 0===n?void 0:n.declineOnAVSFailure)||!1,i={[Pl]:{enabled:a,block:a},[Fl]:{enabled:!1,block:!1},[zl]:{enabled:!1,block:!1},[Bl]:{enabled:!1,block:!1},[Ul]:{enabled:!1,block:!1,min_items:null,max_items:null},[Vl]:{enabled:!1,block:!1,min_amount:null,max_amount:null}},s={};if("string"!=typeof e)for(const t in e){const n=e[t];switch(n.key){case Pl:case Fl:case zl:case Bl:s[n.key]={enabled:!0,block:n.outcome===Dl};break;case Ul:const e=Dj(n.check,Yl,ql),t=Dj(n.check,Yl,Gl);s[n.key]={enabled:!0,block:n.outcome===Dl,min_items:null!==(o=e.value)&&void 0!==o?o:"",max_items:null!==(r=t.value)&&void 0!==r?r:""};break;case Vl:const a=Dj(n.check,Hl,ql),i=Dj(n.check,Hl,Gl);s[n.key]={enabled:!0,block:n.outcome===Dl,min_amount:Lj(a.value),max_amount:Lj(i.value)}}}return Object.assign({},i,s)},Pj=({setting:e})=>{var t,n;const{protectionSettingsUI:o}=(0,W.useContext)(_j),[r,a]=(0,W.useState)(null!==(n=null===(t=o[e])||void 0===t?void 0:t.block)&&void 0!==n&&n);(0,W.useEffect)((()=>{var t,n;a(null!==(n=null===(t=o[e])||void 0===t?void 0:t.block)&&void 0!==n&&n)}),[o,e]);const i=Aj(),s=Oj();return G().createElement(kj,{type:"info"},(d=r,"all_except"===(c=i)?d?(0,Y.__)("Orders from the following countries will be blocked by the filter: ","woocommerce-payments"):(0,Y.__)("Orders from the following countries will be screened by the filter: ","woocommerce-payments"):"specific"===c?d?(0,Y.__)("Orders from outside of the following countries will be blocked by the filter: ","woocommerce-payments"):(0,Y.__)("Orders from outside of the following countries will be screened by the filter: ","woocommerce-payments"):null),G().createElement("strong",null,(0,jf.decodeEntities)(s.map((e=>{var t;return null!==(t=wcSettings.countries[e])&&void 0!==t&&t})).filter((e=>e)).join(", "))));var c,d},Fj=()=>{const e="all"===Aj();return G().createElement(pj,{title:(0,Y.__)("International IP Address","woocommerce-payments"),description:Ua({mixedString:(0,Y.__)("This filter screens for {{ipAddressLink}}IP addresses{{/ipAddressLink}} outside of your {{supportedCountriesLink}}supported countries{{/supportedCountriesLink}}.","woocommerce-payments"),components:{ipAddressLink:G().createElement(Qr.Link,{target:"_blank",type:"external",href:"https://simple.wikipedia.org/wiki/IP_address"}),supportedCountriesLink:G().createElement("a",{href:Ii({page:"wc-settings",tab:"general"})})}}),id:"international-ip-address-card"},e&&G().createElement(kj,{type:"warning"},(0,Y.__)("This filter is disabled because you're currently selling to all countries.","woocommerce-payments")),!e&&G().createElement($j,{setting:"international_ip_address",label:(0,Y.__)("Block transactions for international IP addresses","woocommerce-payments")}),G().createElement(yj,null,(0,Y.__)("You should be especially wary when a customer has an international IP address but uses domestic billing and shipping information. Fraudsters often pretend to live in one location, but live and shop from another.","woocommerce-payments")),!e&&G().createElement(Pj,{setting:"international_ip_address"}))},zj=()=>G().createElement(pj,{title:(0,Y.__)("IP Address Mismatch","woocommerce-payments"),description:Ua({mixedString:(0,Y.__)("This filter screens for customer's {{ipAddressLink}}IP address{{/ipAddressLink}} to see if it is in a different country than indicated in their billing address.","woocommerce-payments"),components:{ipAddressLink:G().createElement(Qr.Link,{target:"_blank",type:"external",href:"https://simple.wikipedia.org/wiki/IP_address"})}}),id:"ip-address-mismatch"},G().createElement($j,{setting:"ip_address_mismatch",label:(0,Y.__)("Screen transactions where the IP country and billing country don't match","woocommerce-payments")}),G().createElement(yj,null,(0,Y.__)("Fraudulent transactions often use fake addresses to place orders. If the IP address seems to be in one country, but the billing address is in another, that could signal potential fraud.","woocommerce-payments"))),Bj=()=>G().createElement(pj,{title:(0,Y.__)("Address Mismatch","woocommerce-payments"),description:(0,Y.__)("This filter screens for differences between the shipping information and the billing information (country).","woocommerce-payments"),id:"address-mismatch-card"},G().createElement($j,{setting:"address_mismatch",label:(0,Y.__)("Block transactions for mismatched addresses","woocommerce-payments")}),G().createElement(yj,null,(0,Y.__)("There are legitimate reasons for a billing/shipping mismatch with a customer purchase, but a mismatch could also indicate that someone is using a stolen identity to complete a purchase.","woocommerce-payments"))),Uj=({id:e,prefix:t,value:n,placeholder:o,help:r,onChange:a=()=>null})=>{const i=(0,W.useCallback)((e=>/^(\d+\.?\d*)?$/m.test(e)),[]),s=i(n)?n:"",[c,d]=G().useState(s);return(0,W.useEffect)((()=>{i(c)||a("")}),[i,c,a]),(isNaN(Number(n))||null===n||"0"===n)&&(n=""),G().createElement("div",{className:"components-base-control components-amount-input__container"},G().createElement("div",{className:"components-base-control__field components-amount-input__input_container"},t&&G().createElement("span",{className:"components-amount-input__prefix"},t),G().createElement("input",{id:e,placeholder:o,value:c,"data-testid":"amount-input",onChange:e=>{return t=e.target.value,void(i(t)&&(d(t),a(t)));var t},className:"components-text-control__input components-amount-input__input"})),G().createElement("span",{className:"components-amount-input__help_text"},r))},Vj=e=>""===e||"0"===e?0:parseFloat(e),Yj=({setting:e})=>{const{protectionSettingsUI:t,setProtectionSettingsUI:n,setIsDirty:o}=(0,W.useContext)(_j),r=(0,W.useMemo)((()=>t[e]),[t,e]),a=parseFloat(r.min_amount+""),i=parseFloat(r.max_amount+""),s=!Vj(a+"")&&!Vj(i+""),c=a&&i&&Vj(a+"")>Vj(i+""),d=(()=>{var e;const t={symbol:"$"};if("1"!==wcpaySettings.isMultiCurrencyEnabled)return t.symbol;const n=Lc(wcpaySettings.storeCurrency),{symbol:o}=(null===(e=n)||void 0===e?void 0:e.getCurrencyConfig())||t;return o})(),l=t=>r=>{n((n=>Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},n[e]),{[t]:r?parseFloat(r+""):null})}))),o(!0)};return G().createElement("div",{className:"fraud-protection-rule-toggle-children-container"},G().createElement("strong",null,"Limits"),G().createElement("div",{className:"fraud-protection-rule-toggle-children-horizontal-form"},G().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},G().createElement("label",{htmlFor:"fraud-protection-purchase-price-minimum"},(0,Y.__)("Minimum purchase price","woocommerce-payments")),G().createElement(Uj,{id:"fraud-protection-purchase-price-minimum",prefix:d,placeholder:"0.00",value:a.toString(),onChange:l("min_amount"),help:(0,Y.__)("Leave blank for no limit","woocommerce-payments")})),G().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},G().createElement("label",{htmlFor:"fraud-protection-purchase-price-maximum"},(0,Y.__)("Maximum purchase price","woocommerce-payments")),G().createElement(Uj,{id:"fraud-protection-purchase-price-maximum",prefix:d,placeholder:"0.00",value:i.toString(),onChange:l("max_amount"),help:(0,Y.__)("Leave blank for no limit","woocommerce-payments")}))),s&&G().createElement("div",null,G().createElement("br",null),G().createElement(kj,{type:"warning"},(0,Y.__)("A price range must be set for this filter to take effect.","woocommerce-payments"))),c?G().createElement("div",null,G().createElement("br",null),G().createElement(kj,{type:"error"},(0,Y.__)("Maximum purchase price must be greater than the minimum purchase price.","woocommerce-payments"))):null)},Hj=(e,t)=>{if(e.enabled&&Tj(e)){const{min_amount:n,max_amount:o}=e,r=Vj(n+""),a=Vj(o+"");if(!r&&!a)return t((0,Y.__)('A price range must be set for the "Purchase Price threshold" filter.',"woocommerce-payments")),!1;if(n&&o&&r>a)return t((0,Y.__)("Maximum purchase price must be greater than the minimum purchase price.","woocommerce-payments")),!1}return!0},Wj=()=>G().createElement(pj,{title:(0,Y.__)("Purchase Price Threshold","woocommerce-payments"),description:(0,Y.__)("This filter compares the purchase price of an order to the minimum and maximum purchase amounts that you specify.","woocommerce-payments"),id:"purchase-price-threshold-card"},G().createElement($j,{setting:"purchase_price_threshold",label:(0,Y.__)("Block transactions for abnormal purchase prices","woocommerce-payments")},G().createElement(Yj,{setting:"purchase_price_threshold"})),G().createElement(yj,null,(0,Y.__)("An unusually high purchase amount, compared to the average for your business, can indicate potential fraudulent activity.","woocommerce-payments"))),Gj=({setting:e})=>{const{protectionSettingsUI:t,setProtectionSettingsUI:n,setIsDirty:o}=(0,W.useContext)(_j),r=(0,W.useMemo)((()=>t[e]),[t,e]),a=parseInt((null==r?void 0:r.min_items)+"",10),i=parseInt((null==r?void 0:r.max_items)+"",10),s=isNaN(a)?"":a,c=isNaN(i)?"":i,d=!parseInt(s+"",10)&&!parseInt(c+"",10),l=parseInt(s+"",10)>parseInt(c+"",10),u=t=>r=>{n((n=>Object.assign(Object.assign({},n),{[e]:Object.assign(Object.assign({},n[e]),{[t]:r?parseInt(r+"",10):r})}))),o(!0)};return G().createElement("div",{className:"fraud-protection-rule-toggle-children-container"},G().createElement("strong",null,"Limits"),G().createElement("div",{className:"fraud-protection-rule-toggle-children-horizontal-form"},G().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},G().createElement("label",{htmlFor:"fraud-protection-order-items-minimum"},(0,Y.__)("Minimum items per order","woocommerce-payments")),G().createElement(Ov,{id:"fraud-protection-order-items-minimum",placeholder:"0",value:s,type:"number",onChange:u("min_items"),onKeyDown:e=>/^[+-.,e]$/m.test(e.key)&&e.preventDefault(),help:(0,Y.__)("Leave blank for no limit","woocommerce-payments"),min:"1",step:"1"})),G().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},G().createElement("label",{htmlFor:"fraud-protection-order-items-maximum"},(0,Y.__)("Maximum items per order","woocommerce-payments")),G().createElement(Ov,{id:"fraud-protection-order-items-maximum",placeholder:"0",type:"number",value:c,onChange:u("max_items"),onKeyDown:e=>/^[+-.,e]$/m.test(e.key)&&e.preventDefault(),help:(0,Y.__)("Leave blank for no limit","woocommerce-payments"),min:"1",step:"1"}))),d&&G().createElement("div",null,G().createElement("br",null),G().createElement(kj,{type:"warning"},(0,Y.__)("An item range must be set for this filter to take effect.","woocommerce-payments"))),l?G().createElement("div",null,G().createElement("br",null),G().createElement(kj,{type:"error"},(0,Y.__)("Maximum item count must be greater than the minimum item count.","woocommerce-payments"))):null)},qj=(e,t)=>{if(e.enabled&&Ij(e)){const{min_items:n,max_items:o}=e;if(!parseInt(n+"",10)&&!parseInt(o+"",10))return t((0,Y.__)('An item range must be set for the "Order Item Threshold" filter.',"woocommerce-payments")),!1;if(parseInt(n+"",10)>parseInt(o+"",10))return t((0,Y.__)('Maximum item count must be greater than the minimum item count on the "Order Item Threshold" rule.',"woocommerce-payments")),!1}return!0},Qj=()=>G().createElement(pj,{title:(0,Y.__)("Order Items Threshold","woocommerce-payments"),description:(0,Y.__)("This filter compares the amount of items in an order to the minimum and maximum counts that you specify.","woocommerce-payments"),id:"order-items-threshold-card"},G().createElement($j,{setting:"order_items_threshold",label:(0,Y.__)("Block transactions for abnormal item counts","woocommerce-payments")},G().createElement(Gj,{setting:"order_items_threshold"})),G().createElement(yj,null,(0,Y.__)("An unusually high item count, compared to the average for your business, can indicate potential fraudulent activity.","woocommerce-payments"))),Kj={"avs-mismatch-card":"wcpay_fraud_protection_advanced_settings_card_avs_mismatch_viewed","cvc-verification-card":"wcpay_fraud_protection_advanced_settings_card_cvc_verification_viewed","international-ip-address-card":"wcpay_fraud_protection_advanced_settings_card_international_ip_address_card_viewed","ip-address-mismatch":"wcpay_fraud_protection_advanced_settings_card_ip_address_mismatch_card_viewed","address-mismatch-card":"wcpay_fraud_protection_advanced_settings_card_address_mismatch_viewed","purchase-price-threshold-card":"wcpay_fraud_protection_advanced_settings_card_price_threshold_viewed","order-items-threshold-card":"wcpay_fraud_protection_advanced_settings_card_items_threshold_viewed"},Zj=()=>G().createElement(G().Fragment,null,G().createElement("h2",{className:"fraud-protection-header-breadcrumb"},G().createElement(Qr.Link,{type:"wp-admin",href:Ii({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})},"WooPayments")," > ",(0,Y.__)("Advanced fraud protection","woocommerce-payments")),G().createElement("p",{className:"fraud-protection-advanced-settings-notice"},(0,Y.__)("At least one risk filter needs to be enabled for advanced protection.","woocommerce-payments"))),Jj=({children:e})=>{const t=document.querySelector(".woocommerce-layout__header-wrapper");return t&&Ls().createPortal(e,t)},Xj=()=>{const[e,t]=(0,W.useState)(!1),{saveSettings:n,isLoading:o,isSaving:r}=np(),a=(0,W.useRef)(),[i,s]=(()=>{const{updateProtectionLevel:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getCurrentProtectionLevel())),e]})(),[c,d]=(()=>{const{updateAdvancedFraudProtectionSettings:e}=(0,Js.useDispatch)(xi);return[(0,Js.useSelect)((e=>e(xi).getAdvancedFraudProtectionSettings())),e]})(),[l,u]=(0,W.useState)(null),[m,p]=(0,W.useState)({});(0,W.useEffect)((()=>{p(Rj(c))}),[c]),(0,W.useLayoutEffect)((()=>{var e;const t=document.querySelector(".fraud-protection-header-save-button");t&&(null===(e=document.querySelector(".woocommerce-layout__header-heading"))||void 0===e||e.after(t))}));const y=()=>{var e,t;if(!(e=>{u(null);const t={order_items_threshold:qj,purchase_price_threshold:Hj};return Object.keys(t).map((n=>t[n](e[n],u))).every(Boolean)})(m))return void window.scrollTo({top:0});if((e=>Object.values(e).some((e=>e.enabled)))(m))jl!==i&&(s(jl),(0,Js.dispatch)("core/notices").createSuccessNotice((0,Y.__)('Current protection level is set to "advanced".',"woocommerce-payments")));else{if(Ll===i)return void(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)("At least one risk filter needs to be enabled for advanced protection.","woocommerce-payments"));s(Ll),(0,Js.dispatch)("core/notices").createErrorNotice((0,Y.__)('Current protection level is set to "basic". At least one risk filter needs to be enabled for advanced protection.',"woocommerce-payments"))}const o=(e=>{const t=[];for(const n in e)e[n].enabled&&t.push(jj(n,e[n].block,e[n]));return t.filter((e=>e))})(m);(null===(t=null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===e?void 0:e.fraudProtection)||void 0===t?void 0:t.declineOnAVSFailure)&&(wcpaySettings.accountStatus.fraudProtection.declineOnAVSFailure=o.some((e=>"avs_verification"===e.key))),d(o),n(),oa("wcpay_fraud_protection_advanced_settings_saved",{settings:JSON.stringify(o)})};(0,W.useEffect)((()=>{var e;const t=document.querySelector('#toplevel_page_wc-admin-path--payments-overview a[href$="section=woocommerce_payments"]');t&&(t.setAttribute("aria-current","page"),t.classList.add("current"),null===(e=t.parentElement)||void 0===e||e.classList.add("current"))}),[o]);const h=e=>{e.forEach((e=>{var t;const{target:n,intersectionRatio:o}=e;if(0<o){const{id:e}=n,o=Kj[e]||null;o&&oa(o);const r=document.getElementById(e);r&&(null===(t=a.current)||void 0===t||t.unobserve(r))}}))};(0,W.useEffect)((()=>{if(!o)return a.current=new IntersectionObserver(h),Object.keys(Kj).forEach((e=>{var t;const n=document.getElementById(e);n&&(null===(t=a.current)||void 0===t||t.observe(n))})),()=>{var e;null===(e=a.current)||void 0===e||e.disconnect()}}),[o]);const{isFRTReviewFeatureActive:f}=wcpaySettings,_=FC((()=>{if(!o&&!(0,mt.isMatchWith)(Rj(c),m,((e,t)=>{for(const n in e)if((f||"block"!==n)&&e[n]!==t[n])return!1;return!0})))return(0,Y.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments")}));(0,W.useEffect)(_,[_,m,c]);const g=()=>G().createElement(jr,{variant:"primary",isBusy:r,onClick:y,disabled:r||o||"error"===c||!e},(0,Y.__)("Save Changes","woocommerce-payments"));return G().createElement(_j.Provider,{value:{protectionSettingsUI:m,setProtectionSettingsUI:p,setIsDirty:t}},G().createElement(GI,{displayBanner:!1},G().createElement(Oa,null,G().createElement("div",{className:"fraud-protection-advanced-settings-layout"},G().createElement(Zj,null),l&&G().createElement("div",{className:"fraud-protection-advanced-settings-error-notice"},G().createElement(da,{status:"error",isDismissible:!0,onRemove:()=>{u(null)}},(0,Y.sprintf)("%s %s",(0,Y.__)("Settings were not saved.","woocommerce-payments"),l))),"error"===c&&G().createElement("div",{className:"fraud-protection-advanced-settings-error-notice"},G().createElement(da,{status:"error",isDismissible:!1},(0,Y.__)("There was an error retrieving your fraud protection settings. Please refresh the page to try again.","woocommerce-payments"))),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Sj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Fj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(zj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Bj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Wj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Qj,null)),G().createElement(B_,{isLoading:o,numLines:20},G().createElement(Cj,null)),G().createElement("footer",{className:"fraud-protection-advanced-settings__footer"},G().createElement(jr,{href:Ii({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"}),variant:"secondary",disabled:r||o},(0,Y.__)("Back to Payments Settings","woocommerce-payments")),g())))),G().createElement(Jj,null,G().createElement("div",{className:"fraud-protection-header-save-button"},g())))};(0,H.addFilter)("woocommerce_admin_pages_list","woocommerce-payments",(e=>{const{menuID:t,rootLink:n}=function(){const e=document.querySelector("#toplevel_page_wc-admin-path--payments-connect")?"connect":"overview";return{menuID:`toplevel_page_wc-admin-path--payments-${e}`,rootLink:[`/payments/${e}`,(0,Y.__)("Payments","woocommerce-payments")]}}(),o=window.wcAdminFeatures&&window.wcAdminFeatures.navigation?"WooPayments":(0,Y.__)("Connect","woocommerce-payments");return e.push({container:Zs,path:"/payments/connect",wpOpenMenu:t,breadcrumbs:[n,o],navArgs:{id:"wc-payments"},capability:"manage_woocommerce"}),e.push({container:lj,path:"/payments/onboarding",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Onboarding","woocommerce-payments")],navArgs:{id:"wc-payments-onboarding"},capability:"manage_woocommerce"}),e.push({container:uj,path:"/payments/onboarding/kyc",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Continue onboarding","woocommerce-payments")],navArgs:{id:"wc-payments-continue-onboarding"},capability:"manage_woocommerce"}),e.push({container:uL,path:"/payments/overview",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Overview","woocommerce-payments")],navArgs:{id:"wc-payments-overview"},capability:"manage_woocommerce"}),e.push({container:cf,path:"/payments/payouts",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Payouts","woocommerce-payments")],navArgs:{id:"wc-payments-deposits"},capability:"manage_woocommerce"}),e.push({container:i_,path:"/payments/payouts/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/payouts",(0,Y.__)("Payouts","woocommerce-payments")],(0,Y.__)("Payout details","woocommerce-payments")],navArgs:{id:"wc-payments-deposit-details",parentPath:"/payments/payouts"},capability:"manage_woocommerce"}),e.push({container:$_,path:"/payments/transactions",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Transactions","woocommerce-payments")],navArgs:{id:"wc-payments-transactions"},capability:"manage_woocommerce"}),e.push({container:vv,path:"/payments/transactions/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/transactions",(0,Y.__)("Transactions","woocommerce-payments")],(0,Y.__)("Payment details","woocommerce-payments")],navArgs:{id:"wc-payments-transaction-details",parentPath:"/payments/transactions"},capability:"manage_woocommerce"}),e.push({container:$v,path:"/payments/disputes",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Disputes","woocommerce-payments")],navArgs:{id:"wc-payments-disputes"},capability:"manage_woocommerce"}),e.push({container:Av,path:"/payments/disputes/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/disputes",(0,Y.__)("Disputes","woocommerce-payments")],(0,Y.__)("Dispute details","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-details-legacy-redirect",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),e.push({container:YC,path:"/payments/disputes/challenge",wpOpenMenu:t,breadcrumbs:[n,["/payments/disputes",(0,Y.__)("Disputes","woocommerce-payments")],(0,Y.__)("Challenge dispute","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-challenge",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),e.push({container:VI,path:"/payments/additional-payment-methods",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Add additional payment methods","woocommerce-payments")],capability:"manage_woocommerce"}),e.push({container:dT,path:"/payments/multi-currency-setup",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Set up multiple currencies","woocommerce-payments")],capability:"manage_woocommerce"}),e.push({container:TT,path:"/payments/card-readers",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Card readers","woocommerce-payments")],navArgs:{id:"wc-payments-card-readers"},capability:"manage_woocommerce"}),e.push({container:BT,path:"/payments/loans",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Capital Loans","woocommerce-payments")],navArgs:{id:"wc-payments-capital"},capability:"manage_woocommerce"}),wcpaySettings&&wcpaySettings.featureFlags.documents&&e.push({container:kL,path:"/payments/documents",wpOpenMenu:t,breadcrumbs:[n,(0,Y.__)("Documents","woocommerce-payments")],navArgs:{id:"wc-payments-documents"},capability:"manage_woocommerce"}),wcpaySettings&&e.push({container:Xj,path:"/payments/fraud-protection",wpOpenMenu:t,breadcrumbs:["WooPayments"],capability:"manage_woocommerce"}),e})),(0,H.addFilter)("woocommerce_admin_onboarding_task_list","woocommerce-payments",(e=>{const{showUpdateDetailsTask:t,wpcomReconnectUrl:n}=wcpaySettings;return[...e,...cL({showUpdateDetailsTask:t,wpcomReconnectUrl:n,showGoLiveTask:!0})]}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit