File "index.js"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js
File size: 561.69 KB
MIME-type: text/plain
Charset: utf-8
/*! For license information please see index.js.LICENSE.txt */
(()=>{var __webpack_modules__={87608:(e,t)=>{var o;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var c=n.apply(null,o);c&&e.push(c)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)r.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},33561: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,o){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,o)}function o(e,r,n){return o=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,o,r){var n=[null];n.push.apply(n,o);var a=new(Function.bind.apply(e,n));return r&&t(a,r.prototype),a},o.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return n(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 n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(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 n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var a=Object.hasOwnProperty,c=Object.setPrototypeOf,l=Object.isFrozen,i=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,u=Object.freeze,m=Object.seal,d=Object.create,p="undefined"!=typeof Reflect&&Reflect,h=p.apply,_=p.construct;h||(h=function(e,t,o){return e.apply(t,o)}),u||(u=function(e){return e}),m||(m=function(e){return e}),_||(_=function(e,t){return o(e,r(t))});var v,w=P(Array.prototype.forEach),g=P(Array.prototype.pop),E=P(Array.prototype.push),f=P(String.prototype.toLowerCase),b=P(String.prototype.toString),C=P(String.prototype.match),y=P(String.prototype.replace),A=P(String.prototype.indexOf),x=P(String.prototype.trim),S=P(RegExp.prototype.test),k=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return _(v,t)});function P(e){return function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return h(e,t,r)}}function B(e,t,o){var r;o=null!==(r=o)&&void 0!==r?r:f,c&&c(e,null);for(var n=t.length;n--;){var a=t[n];if("string"==typeof a){var i=o(a);i!==a&&(l(t)||(t[n]=i),a=i)}e[a]=!0}return e}function N(e){var t,o=d(null);for(t in e)!0===h(a,e,[t])&&(o[t]=e[t]);return o}function M(e,t){for(;null!==e;){var o=s(e,t);if(o){if(o.get)return P(o.get);if("function"==typeof o.value)return P(o.value)}e=i(e)}return function(e){return console.warn("fallback value for",e),null}}var V=u(["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"]),T=u(["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"]),F=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=u(["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"]),L=u(["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"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=u(["#text"]),z=u(["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"]),I=u(["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"]),O=u(["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(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=m(/<%[\w\W]*|[\w\W]*%>/gm),j=m(/\${[\w\W]*}/gm),q=m(/^data-[\-\w.\u00B7-\uFFFF]/),Z=m(/^aria-[\-\w]+$/),W=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=m(/^(?:\w+script|data):/i),Y=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=m(/^html$/i),K=function(){return"undefined"==typeof window?null:window};return function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),n=function(e){return t(e)};if(n.version="2.4.7",n.removed=[],!o||!o.document||9!==o.document.nodeType)return n.isSupported=!1,n;var a=o.document,c=o.document,l=o.DocumentFragment,i=o.HTMLTemplateElement,s=o.Node,m=o.Element,d=o.NodeFilter,p=o.NamedNodeMap,h=void 0===p?o.NamedNodeMap||o.MozNamedAttrMap:p,_=o.HTMLFormElement,v=o.DOMParser,P=o.trustedTypes,Q=m.prototype,ee=M(Q,"cloneNode"),te=M(Q,"nextSibling"),oe=M(Q,"childNodes"),re=M(Q,"parentNode");if("function"==typeof i){var ne=c.createElement("template");ne.content&&ne.content.ownerDocument&&(c=ne.content.ownerDocument)}var ae=function(t,o){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(n)&&(r=o.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");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}}(P,a),ce=ae?ae.createHTML(""):"",le=c,ie=le.implementation,se=le.createNodeIterator,ue=le.createDocumentFragment,me=le.getElementsByTagName,de=a.importNode,pe={};try{pe=N(c).documentMode?c.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof re&&ie&&void 0!==ie.createHTMLDocument&&9!==pe;var _e,ve,we=G,ge=U,Ee=j,fe=q,be=Z,Ce=J,ye=Y,Ae=W,xe=null,Se=B({},[].concat(r(V),r(T),r(F),r(L),r(R))),ke=null,Pe=B({},[].concat(r(z),r(I),r(O),r($))),Be=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}})),Ne=null,Me=null,Ve=!0,Te=!0,Fe=!1,De=!0,Le=!1,He=!1,Re=!1,ze=!1,Ie=!1,Oe=!1,$e=!1,Ge=!0,Ue=!1,je=!0,qe=!1,Ze={},We=null,Je=B({},["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"]),Ye=null,Xe=B({},["audio","video","img","source","image","track"]),Ke=null,Qe=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",rt=ot,nt=!1,at=null,ct=B({},[et,tt,ot],b),lt=["application/xhtml+xml","text/html"],it=null,st=c.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=N(t),_e=_e=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===_e?b:f,xe="ALLOWED_TAGS"in t?B({},t.ALLOWED_TAGS,ve):Se,ke="ALLOWED_ATTR"in t?B({},t.ALLOWED_ATTR,ve):Pe,at="ALLOWED_NAMESPACES"in t?B({},t.ALLOWED_NAMESPACES,b):ct,Ke="ADD_URI_SAFE_ATTR"in t?B(N(Qe),t.ADD_URI_SAFE_ATTR,ve):Qe,Ye="ADD_DATA_URI_TAGS"in t?B(N(Xe),t.ADD_DATA_URI_TAGS,ve):Xe,We="FORBID_CONTENTS"in t?B({},t.FORBID_CONTENTS,ve):Je,Ne="FORBID_TAGS"in t?B({},t.FORBID_TAGS,ve):{},Me="FORBID_ATTR"in t?B({},t.FORBID_ATTR,ve):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Ve=!1!==t.ALLOW_ARIA_ATTR,Te=!1!==t.ALLOW_DATA_ATTR,Fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Le=t.SAFE_FOR_TEMPLATES||!1,He=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Oe=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ue=t.SANITIZE_NAMED_PROPS||!1,je=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Ae=t.ALLOWED_URI_REGEXP||Ae,rt=t.NAMESPACE||ot,Be=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Be.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Be.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Be.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Te=!1),Oe&&(Ie=!0),Ze&&(xe=B({},r(R)),ke=[],!0===Ze.html&&(B(xe,V),B(ke,z)),!0===Ze.svg&&(B(xe,T),B(ke,I),B(ke,$)),!0===Ze.svgFilters&&(B(xe,F),B(ke,I),B(ke,$)),!0===Ze.mathMl&&(B(xe,L),B(ke,O),B(ke,$))),t.ADD_TAGS&&(xe===Se&&(xe=N(xe)),B(xe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(ke===Pe&&(ke=N(ke)),B(ke,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&B(Ke,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(We===Je&&(We=N(We)),B(We,t.FORBID_CONTENTS,ve)),je&&(xe["#text"]=!0),He&&B(xe,["html","head","body"]),xe.table&&(B(xe,["tbody"]),delete Ne.tbody),u&&u(t),it=t)},dt=B({},["mi","mo","mn","ms","mtext"]),pt=B({},["foreignobject","desc","title","annotation-xml"]),ht=B({},["title","style","font","a","script"]),_t=B({},T);B(_t,F),B(_t,D);var vt=B({},L);B(vt,H);var wt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ce}catch(t){e.remove()}}},gt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ie||Oe)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,o;if(ze)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);o=r&&r[0]}"application/xhtml+xml"===_e&&rt===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=ae?ae.createHTML(e):e;if(rt===ot)try{t=(new v).parseFromString(n,_e)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(rt,"template",null);try{t.documentElement.innerHTML=nt?ce:n}catch(e){}}var a=t.body||t.documentElement;return e&&o&&a.insertBefore(c.createTextNode(o),a.childNodes[0]||null),rt===ot?me.call(t,He?"html":"body")[0]:He?t.documentElement:a},ft=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},bt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,o){he[e]&&w(he[e],(function(e){e.call(n,t,o,it)}))},yt=function(e){var t,o;if(Ct("beforeSanitizeElements",e,null),(o=e)instanceof _&&("string"!=typeof o.nodeName||"string"!=typeof o.textContent||"function"!=typeof o.removeChild||!(o.attributes instanceof h)||"function"!=typeof o.removeAttribute||"function"!=typeof o.setAttribute||"string"!=typeof o.namespaceURI||"function"!=typeof o.insertBefore||"function"!=typeof o.hasChildNodes))return wt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var r=ve(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:r,allowedTags:xe}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===r&&S(/<template/i,e.innerHTML))return wt(e),!0;if(!xe[r]||Ne[r]){if(!Ne[r]&&xt(r)){if(Be.tagNameCheck instanceof RegExp&&S(Be.tagNameCheck,r))return!1;if(Be.tagNameCheck instanceof Function&&Be.tagNameCheck(r))return!1}if(je&&!We[r]){var a=re(e)||e.parentNode,c=oe(e)||e.childNodes;if(c&&a)for(var l=c.length-1;l>=0;--l)a.insertBefore(ee(c[l],!0),te(e))}return wt(e),!0}return e instanceof m&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var o=f(e.tagName),r=f(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===ot?"svg"===o:t.namespaceURI===et?"svg"===o&&("annotation-xml"===r||dt[r]):Boolean(_t[o]):e.namespaceURI===et?t.namespaceURI===ot?"math"===o:t.namespaceURI===tt?"math"===o&&pt[r]:Boolean(vt[o]):e.namespaceURI===ot?!(t.namespaceURI===tt&&!pt[r])&&!(t.namespaceURI===et&&!dt[r])&&!vt[o]&&(ht[o]||!_t[o]):!("application/xhtml+xml"!==_e||!at[e.namespaceURI]))}(e)?(wt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=y(t,we," "),t=y(t,ge," "),t=y(t,Ee," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(wt(e),!0)},At=function(e,t,o){if(Ge&&("id"===t||"name"===t)&&(o in c||o in st))return!1;if(Te&&!Me[t]&&S(fe,t));else if(Ve&&S(be,t));else if(!ke[t]||Me[t]){if(!(xt(e)&&(Be.tagNameCheck instanceof RegExp&&S(Be.tagNameCheck,e)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(e))&&(Be.attributeNameCheck instanceof RegExp&&S(Be.attributeNameCheck,t)||Be.attributeNameCheck instanceof Function&&Be.attributeNameCheck(t))||"is"===t&&Be.allowCustomizedBuiltInElements&&(Be.tagNameCheck instanceof RegExp&&S(Be.tagNameCheck,o)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(o))))return!1}else if(Ke[t]);else if(S(Ae,y(o,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(o,"data:")||!Ye[e])if(Fe&&!S(Ce,y(o,ye,"")));else if(o)return!1;return!0},xt=function(e){return e.indexOf("-")>0},St=function(t){var o,r,a,c;Ct("beforeSanitizeAttributes",t,null);var l=t.attributes;if(l){var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(c=l.length;c--;){var s=o=l[c],u=s.name,m=s.namespaceURI;if(r="value"===u?o.value:x(o.value),a=ve(u),i.attrName=a,i.attrValue=r,i.keepAttr=!0,i.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,i),r=i.attrValue,!i.forceKeepAttr&&(gt(u,t),i.keepAttr))if(De||!S(/\/>/i,r)){Le&&(r=y(r,we," "),r=y(r,ge," "),r=y(r,Ee," "));var d=ve(t.nodeName);if(At(d,a,r)){if(!Ue||"id"!==a&&"name"!==a||(gt(u,t),r="user-content-"+r),ae&&"object"===e(P)&&"function"==typeof P.getAttributeType)if(m);else switch(P.getAttributeType(d,a)){case"TrustedHTML":r=ae.createHTML(r);break;case"TrustedScriptURL":r=ae.createScriptURL(r)}try{m?t.setAttributeNS(m,u,r):t.setAttribute(u,r),g(n.removed)}catch(e){}}}else gt(u,t)}Ct("afterSanitizeAttributes",t,null)}},kt=function e(t){var o,r=ft(t);for(Ct("beforeSanitizeShadowDOM",t,null);o=r.nextNode();)Ct("uponSanitizeShadowNode",o,null),yt(o)||(o.content instanceof l&&e(o.content),St(o));Ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(t){var r,c,i,u,m,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(t)){if("function"!=typeof t.toString)throw k("toString is not a function");if("string"!=typeof(t=t.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(o.toStaticHTML)||"function"==typeof o.toStaticHTML){if("string"==typeof t)return o.toStaticHTML(t);if(bt(t))return o.toStaticHTML(t.outerHTML)}return t}if(Re||mt(d),n.removed=[],"string"==typeof t&&(qe=!1),qe){if(t.nodeName){var p=ve(t.nodeName);if(!xe[p]||Ne[p])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(c=(r=Et("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?r=c:r.appendChild(c);else{if(!Ie&&!Le&&!He&&-1===t.indexOf("<"))return ae&&$e?ae.createHTML(t):t;if(!(r=Et(t)))return Ie?null:$e?ce:""}r&&ze&&wt(r.firstChild);for(var h=ft(qe?t:r);i=h.nextNode();)3===i.nodeType&&i===u||yt(i)||(i.content instanceof l&&kt(i.content),St(i),u=i);if(u=null,qe)return t;if(Ie){if(Oe)for(m=ue.call(r.ownerDocument);r.firstChild;)m.appendChild(r.firstChild);else m=r;return(ke.shadowroot||ke.shadowrootmod)&&(m=de.call(a,m,!0)),m}var _=He?r.outerHTML:r.innerHTML;return He&&xe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(X,r.ownerDocument.doctype.name)&&(_="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+_),Le&&(_=y(_,we," "),_=y(_,ge," "),_=y(_,Ee," ")),ae&&$e?ae.createHTML(_):_},n.setConfig=function(e){mt(e),Re=!0},n.clearConfig=function(){it=null,Re=!1},n.isValidAttribute=function(e,t,o){it||mt({});var r=ve(e),n=ve(t);return At(r,n,o)},n.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],E(he[e],t))},n.removeHook=function(e){if(he[e])return g(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}()}()},86657:(e,t,o)=>{"use strict";const r=o(87602),n={findRule(e,t){for(let o=0;o<e.rules.length;o++)if(e.rules[o].name===t)return e.rules[o]},indexOfRule(e,t){for(let o=0;o<e.rules.length;o++)if(e.rules[o].name===t)return o;return-1},alwaysConsumesOnSuccess(e,t){function o(){return!0}function a(){return!1}const c=r.build({choice:e=>e.alternatives.every(c),sequence:e=>e.elements.some(c),simple_and:a,simple_not:a,optional:a,zero_or_more:a,repeated(e){const t=e.min?e.min:e.max;return!("constant"!==t.type||0===t.value||!c(e.expression)&&!(t.value>1&&e.delimiter&&c(e.delimiter)))},semantic_and:a,semantic_not:a,rule_ref(t){const o=n.findRule(e,t.name);return o?c(o):void 0},literal:e=>""!==e.value,class:o,any:o});return c(t)}};e.exports=n},73629:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const generateBytecode=__webpack_require__(27713),generateJS=__webpack_require__(72365),inferenceMatchResult=__webpack_require__(51358),removeProxyRules=__webpack_require__(47349),reportDuplicateLabels=__webpack_require__(13747),reportDuplicateRules=__webpack_require__(7937),reportInfiniteRecursion=__webpack_require__(47771),reportInfiniteRepetition=__webpack_require__(74414),reportUndefinedRules=__webpack_require__(78277),reportIncorrectPlucking=__webpack_require__(43046),Session=__webpack_require__(52399),visitor=__webpack_require__(87602),{base64}=__webpack_require__(93758);function processOptions(e,t){const o={};return Object.keys(e).forEach((t=>{o[t]=e[t]})),Object.keys(t).forEach((e=>{Object.prototype.hasOwnProperty.call(o,e)||(o[e]=t[e])})),o}function isSourceMapCapable(e){return"string"==typeof e?e.length>0:e&&"function"==typeof e.offset}const compiler={visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");const allRules=ast.rules.map((e=>e.name));if(options.allowedStartRules.some((e=>"*"===e)))options.allowedStartRules=allRules;else for(const e of options.allowedStartRules)if(-1===allRules.indexOf(e))throw new Error(`Unknown start rule "${e}"`);if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");const session=new Session(options);switch(Object.keys(passes).forEach((e=>{session.stage=e,session.info(`Process stage ${e}`),passes[e].forEach((t=>{session.info(`Process pass ${e}.${t.name}`),t(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":{if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");const e=ast.code.toStringWithSourceMap(),t=new TextEncoder,o=base64(t.encode(JSON.stringify(e.map.toJSON())));return e.code+`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${o}\n`}case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}};module.exports=compiler},10818:e=>{"use strict";e.exports={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40}},27713:(e,t,o)=>{"use strict";const r=o(86657),n=o(10818),a=o(87602),{ALWAYS_MATCH:c,SOMETIMES_MATCH:l,NEVER_MATCH:i}=o(51358);e.exports=function(e,t){const o=[],s=[],u=[],m=[],d=[];function p(e){const t=o.indexOf(e);return-1===t?o.push(e)-1:t}function h(e){const t=JSON.stringify(e),o=u.findIndex((e=>JSON.stringify(e)===t));return-1===o?u.push(e)-1:o}function _(e,t,o){const r={predicate:e,params:t,body:o.code,location:o.codeLocation},n=JSON.stringify(r),a=m.findIndex((e=>JSON.stringify(e)===n));return-1===a?m.push(r)-1:a}function v(e){return d.push(e)-1}function w(e){const t={};return Object.keys(e).forEach((o=>{t[o]=e[o]})),t}function g(e,...t){return e.concat(...t)}function E(e,t,o,r){return e===c?o:e===i?r:t.concat([o.length,r.length],o,r)}function f(e,t,o,r){const a=Object.keys(o).map((e=>r-o[e]));return[n.CALL,e,t,a.length].concat(a)}function b(e,t,o){const r=0|e.match;return g([n.PUSH_CURR_POS],[n.SILENT_FAILS_ON],S(e,{sp:o.sp+1,env:w(o.env),action:null}),[n.SILENT_FAILS_OFF],E(t?-r:r,[t?n.IF_ERROR:n.IF_NOT_ERROR],g([n.POP],[t?n.POP:n.POP_CURR_POS],[n.PUSH_UNDEFINED]),g([n.POP],[t?n.POP_CURR_POS:n.POP],[n.PUSH_FAILED])))}function C(e,t,o){const r=_(!0,Object.keys(o.env),e);return g([n.UPDATE_SAVED_POS],f(r,0,o.env,o.sp),E(0|e.match,[n.IF],g([n.POP],t?[n.PUSH_FAILED]:[n.PUSH_UNDEFINED]),g([n.POP],t?[n.PUSH_UNDEFINED]:[n.PUSH_FAILED])))}function y(e){return t=[n.WHILE_NOT_ERROR],o=g([n.APPEND],e),t.concat([o.length],o);var t,o}function A(e,t,o,r){switch(e.type){case"constant":return{pre:[],post:[],sp:o};case"variable":return e.sp=r+o-t[e.value],{pre:[],post:[],sp:o};case"function":return e.sp=r,{pre:f(_(!0,Object.keys(t),{code:e.value,codeLocation:e.codeLocation}),0,t,o),post:[n.NIP],sp:o+1};default:throw new Error(`Unknown boundary type "${e.type}" for the "repeated" node`)}}function x(e,t){if(null!==t.value){const o="constant"===t.type?[n.IF_GE,t.value]:[n.IF_GE_DYNAMIC,t.sp];return E(l,o,[n.PUSH_FAILED],e)}return e}const S=(k={grammar(e){e.rules.forEach(S),e.literals=o,e.classes=s,e.expectations=u,e.functions=m,e.locations=d},rule(e){e.bytecode=S(e.expression,{sp:-1,env:{},pluck:[],action:null})},named(e,t){const o=0|e.match,r=o===i?null:h({type:"rule",value:e.name});return g([n.SILENT_FAILS_ON],S(e.expression,t),[n.SILENT_FAILS_OFF],E(o,[n.IF_ERROR],[n.FAIL,r],[]))},choice:(e,t)=>function e(t,o){const r=0|t[0].match,a=S(t[0],{sp:o.sp,env:w(o.env),action:null});return r===c?a:g(a,t.length>1?E(l,[n.IF_ERROR],g([n.POP],e(t.slice(1),o)),[]):[])}(e.alternatives,t),action(e,t){const o=w(t.env),r="sequence"!==e.expression.type||0===e.expression.elements.length,a=S(e.expression,{sp:t.sp+(r?1:0),env:o,action:e}),c=0|e.expression.match,l=r&&c!==i?_(!1,Object.keys(o),e):null;return r?g([n.PUSH_CURR_POS],a,E(c,[n.IF_NOT_ERROR],g([n.LOAD_SAVED_POS,1],f(l,1,o,t.sp+2)),[]),[n.NIP]):a},sequence:(e,t)=>g([n.PUSH_CURR_POS],function t(o,r){if(o.length>0){const a=e.elements.length-o.length+1;return g(S(o[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null}),E(0|o[0].match,[n.IF_NOT_ERROR],t(o.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action}),g(a>1?[n.POP_N,a]:[n.POP],[n.POP_CURR_POS],[n.PUSH_FAILED])))}if(r.pluck.length>0)return g([n.PLUCK,e.elements.length+1,r.pluck.length],r.pluck.map((e=>r.sp-e)));if(r.action){const t=_(!1,Object.keys(r.env),r.action);return g([n.LOAD_SAVED_POS,e.elements.length],f(t,e.elements.length+1,r.env,r.sp))}return g([n.WRAP,e.elements.length],[n.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action})),labeled(e,o){let r=o.env;const a=e.label,c=o.sp+1;a&&(r=w(o.env),o.env[e.label]=c),e.pick&&o.pluck.push(c);const l=S(e.expression,{sp:o.sp,env:r,action:null});return a&&e.labelLocation&&t&&"source-and-map"===t.output?g([n.SOURCE_MAP_LABEL_PUSH,c,p(a),v(e.labelLocation)],l,[n.SOURCE_MAP_LABEL_POP,c]):l},text:(e,t)=>g([n.PUSH_CURR_POS],S(e.expression,{sp:t.sp+1,env:w(t.env),action:null}),E(0|e.match,[n.IF_NOT_ERROR],g([n.POP],[n.TEXT]),[n.NIP])),simple_and:(e,t)=>b(e.expression,!1,t),simple_not:(e,t)=>b(e.expression,!0,t),optional:(e,t)=>g(S(e.expression,{sp:t.sp,env:w(t.env),action:null}),E(-(0|e.expression.match),[n.IF_ERROR],g([n.POP],[n.PUSH_NULL]),[])),zero_or_more(e,t){const o=S(e.expression,{sp:t.sp+1,env:w(t.env),action:null});return g([n.PUSH_EMPTY_ARRAY],o,y(o),[n.POP])},one_or_more(e,t){const o=S(e.expression,{sp:t.sp+1,env:w(t.env),action:null});return g([n.PUSH_EMPTY_ARRAY],o,E(0|e.expression.match,[n.IF_NOT_ERROR],g(y(o),[n.POP]),g([n.POP],[n.POP],[n.PUSH_FAILED])))},repeated(e,t){const o=e.min?e.min:e.max,r="constant"!==o.type||o.value>0,a="constant"!==e.max.type&&null!==e.max.value,c=r?2:1,i=e.min?A(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},s=A(e.max,t.env,i.sp,c),u=S(e.expression,{sp:s.sp+c,env:w(t.env),action:null}),m=null!==e.delimiter?S(e.expression,{sp:s.sp+c+1,env:w(t.env),action:null}):u,d=function(e,t,o,r,a){return e?g([n.PUSH_CURR_POS],S(e,{sp:r.sp+a+1,env:w(r.env),action:null}),E(0|e.match,[n.IF_NOT_ERROR],g([n.POP],o,E(-t,[n.IF_ERROR],[n.POP,n.POP_CURR_POS,n.PUSH_FAILED],[n.NIP])),[n.NIP])):o}(e.delimiter,0|e.expression.match,m,t,c),p=x(d,e.max),h=a?x(u,e.max):u,_=g(r?[n.PUSH_CURR_POS]:[],[n.PUSH_EMPTY_ARRAY],h,y(p),[n.POP]);return g(i.pre,s.pre,r?function(e,t){const o="constant"===t.type?[n.IF_LT,t.value]:[n.IF_LT_DYNAMIC,t.sp];return g(e,E(l,o,[n.POP,n.POP_CURR_POS,n.PUSH_FAILED],[n.NIP]))}(_,o):_,s.post,i.post)},group:(e,t)=>S(e.expression,{sp:t.sp,env:w(t.env),action:null}),semantic_and:(e,t)=>C(e,!1,t),semantic_not:(e,t)=>C(e,!0,t),rule_ref:t=>[n.RULE,r.indexOfRule(e,t.name)],literal(e){if(e.value.length>0){const t=0|e.match,o=t===l||t===c&&!e.ignoreCase?p(e.ignoreCase?e.value.toLowerCase():e.value):null,r=t!==c?h({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return E(t,e.ignoreCase?[n.MATCH_STRING_IC,o]:[n.MATCH_STRING,o],e.ignoreCase?[n.ACCEPT_N,e.value.length]:[n.ACCEPT_STRING,o],[n.FAIL,r])}return[n.PUSH_EMPTY_STRING]},class(e){const t=0|e.match,o=t===l?function(e){const t={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},o=JSON.stringify(t),r=s.findIndex((e=>JSON.stringify(e)===o));return-1===r?s.push(t)-1:r}(e):null,r=t!==c?h({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return E(t,[n.MATCH_CHAR_CLASS,o],[n.ACCEPT_N,1],[n.FAIL,r])},any(e){const t=0|e.match,o=t!==c?h({type:"any"}):null;return E(t,[n.MATCH_ANY],[n.ACCEPT_N,1],[n.FAIL,o])}},t&&"source-and-map"===t.output&&Object.entries(k).forEach((([e,t])=>{k[e]=function(e,...o){const r=t(e,...o);return void 0!==r&&e.location?g([n.SOURCE_MAP_PUSH,v(e.location)],r,[n.SOURCE_MAP_POP]):r}})),a.build(k));var k;S(e)}},72365:(e,t,o)=>{"use strict";const r=o(86657),n=o(10818),a=o(82169),c=o(62415),{stringEscape:l,regexpClassEscape:i}=o(93758),{SourceNode:s}=o(10782),u=o(49002);function m(e,t,o){const r=u.offsetStart(t),n=r.line,a=r.column-1,c=e.split("\n");return 1===c.length?new s(n,a,String(t.source),e,o):new s(null,null,String(t.source),c.map(((e,r)=>new s(n+r,0===r?a:0,String(t.source),r===c.length-1?e:[e,"\n"],o))))}function d(e,t,o,r,n){if(o){const a=u.offsetEnd(o);return new s(null,null,String(o.source),[e,m(t,o,n),new s(a.line,a.column-1,String(o.source),r)])}return new s(null,null,null,[e,t,r])}e.exports=function(e,t){function o(e){let t=!0,o=0;return function e(r){return Array.isArray(r)?r.map(e):r instanceof s?(o++,r.children=e(r.children),o--,r):(r=t?r.replace(/^(.+)$/gm," $1"):r.replace(/\n(\s*\S)/g,"\n $1"),t=!o||r.endsWith("\n"),r)}(e)}function u(e){return"peg$c"+e}function p(e){return"peg$r"+e}function h(e){return"peg$e"+e}function _(e){return"peg$f"+e}function v(e){return"peg$parse"+e}function w(e){return e.codeLocation?m(e.code,e.codeLocation,"$"+e.type):e.code}e.code=function(e){function r(){return[`// Generated by Peggy ${c}.`,"//","// https://peggyjs.org/"]}function n(){return t.trace?["{"," SyntaxError: peg$SyntaxError,"," DefaultTracer: peg$DefaultTracer,"," parse: peg$parse","}"].join("\n"):["{"," SyntaxError: peg$SyntaxError,"," parse: peg$parse","}"].join("\n")}const a={bare:()=>[...r(),"(function() {",' "use strict";',"",e,"",o("return "+n()+";"),"})()"],commonjs(){const o=Object.keys(t.dependencies),a=r();return a.push("",'"use strict";',""),o.length>0&&(o.forEach((e=>{a.push("var "+e+' = require("'+l(t.dependencies[e])+'");')})),a.push("")),a.push(e,"","module.exports = "+n()+";"),a},es(){const o=Object.keys(t.dependencies),n=r();return n.push(""),o.length>0&&(o.forEach((e=>{n.push("import "+e+' from "'+l(t.dependencies[e])+'";')})),n.push("")),n.push(e,"","export {"," peg$SyntaxError as SyntaxError,",t.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),n},amd(){const a=Object.keys(t.dependencies),c="["+a.map((e=>t.dependencies[e])).map((e=>'"'+l(e)+'"')).join(", ")+"]",i=a.join(", ");return[...r(),"define("+c+", function("+i+") {",' "use strict";',"",e,"",o("return "+n()+";"),"});"]},globals:()=>[...r(),"(function(root) {",' "use strict";',"",e,"",o("root."+t.exportVar+" = "+n()+";"),"})(this);"],umd(){const a=Object.keys(t.dependencies),c=a.map((e=>t.dependencies[e])),i="["+c.map((e=>'"'+l(e)+'"')).join(", ")+"]",s=c.map((e=>'require("'+l(e)+'")')).join(", "),u=a.join(", "),m=r();return m.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),null!==t.exportVar&&m.push(" } else {"," root."+t.exportVar+" = factory();"),m.push(" }","})(this, function("+u+") {",' "use strict";',"",e,"",o("return "+n()+";"),"});"),m}}[t.format]();return new s(null,null,t.grammarSource,a.map((e=>e instanceof s?e:e+"\n")))}(function(){const c=[];e.topLevelInitializer&&(c.push(w(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),t.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");const m="{ "+t.allowedStartRules.map((e=>e+": "+v(e))).join(", ")+" }",g=v(t.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+m+";"," var peg$startRuleFunction = "+g+";","",new s(null,null,t.grammarSource,[e.literals.map(((e,t)=>" var "+u(t)+' = "'+l(e)+'";')).concat("",e.classes.map(((e,t)=>{return" var "+p(t)+" = /^["+((o=e).inverted?"^":"")+o.value.map((e=>Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e))).join("")+"]/"+(o.ignoreCase?"i":"")+";";var o}))).concat("",e.expectations.map(((e,t)=>" var "+h(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+l(e.value)+'")';case"literal":return'peg$literalExpectation("'+l(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((e=>Array.isArray(e)?'["'+l(e[0])+'", "'+l(e[1])+'"]':'"'+l(e)+'"')).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"))).concat("").join("\n"),e.functions.map((function(e,t){return d(`\n var ${_(t)} = function(${e.params.join(", ")}) {`,e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((i=>{c.push(...o(function(c){const i=[],s=new a(c.name,"s","var",c.bytecode),m=function t(r){let a=0;const l=r.length,i=[];let m;function d(e,n){const c=n+3,l=r[a+c-2],u=r[a+c-1];let m,d;s.checkedIf(a,(()=>{a+=c,m=t(r.slice(a,a+l)),a+=l}),u>0?()=>{d=t(r.slice(a,a+u)),a+=u}:null),i.push("if ("+e+") {"),i.push(...o(m)),u>0&&(i.push("} else {"),i.push(...o(d))),i.push("}")}function w(e){const n=r[a+2-1];let c;s.checkedLoop(a,(()=>{a+=2,c=t(r.slice(a,a+n)),a+=n})),i.push("while ("+e+") {"),i.push(...o(c)),i.push("}")}function g(e){const t=r[a+e-1];return _(r[a+1])+"("+r.slice(a+e,a+e+t).map((e=>s.index(e))).join(", ")+")"}for(;a<l;)switch(r[a]){case n.PUSH_EMPTY_STRING:i.push(s.push("''")),a++;break;case n.PUSH_CURR_POS:i.push(s.push("peg$currPos")),a++;break;case n.PUSH_UNDEFINED:i.push(s.push("undefined")),a++;break;case n.PUSH_NULL:i.push(s.push("null")),a++;break;case n.PUSH_FAILED:i.push(s.push("peg$FAILED")),a++;break;case n.PUSH_EMPTY_ARRAY:i.push(s.push("[]")),a++;break;case n.POP:s.pop(),a++;break;case n.POP_CURR_POS:i.push("peg$currPos = "+s.pop()+";"),a++;break;case n.POP_N:s.pop(r[a+1]),a+=2;break;case n.NIP:m=s.pop(),s.pop(),i.push(s.push(m)),a++;break;case n.APPEND:m=s.pop(),i.push(s.top()+".push("+m+");"),a++;break;case n.WRAP:i.push(s.push("["+s.pop(r[a+1]).join(", ")+"]")),a+=2;break;case n.TEXT:i.push(s.push("input.substring("+s.pop()+", peg$currPos)")),a++;break;case n.PLUCK:{const e=3,t=r[a+e-1],o=e+t;m=r.slice(a+e,a+o),m=1===t?s.index(m[0]):`[ ${m.map((e=>s.index(e))).join(", ")} ]`,s.pop(r[a+1]),i.push(s.push(m)),a+=o;break}case n.IF:d(s.top(),0);break;case n.IF_ERROR:d(s.top()+" === peg$FAILED",0);break;case n.IF_NOT_ERROR:d(s.top()+" !== peg$FAILED",0);break;case n.IF_LT:d(s.top()+".length < "+r[a+1],1);break;case n.IF_GE:d(s.top()+".length >= "+r[a+1],1);break;case n.IF_LT_DYNAMIC:d(s.top()+".length < ("+s.index(r[a+1])+"|0)",1);break;case n.IF_GE_DYNAMIC:d(s.top()+".length >= ("+s.index(r[a+1])+"|0)",1);break;case n.WHILE_NOT_ERROR:w(s.top()+" !== peg$FAILED");break;case n.MATCH_ANY:d("input.length > peg$currPos",0);break;case n.MATCH_STRING:d(e.literals[r[a+1]].length>1?"input.substr(peg$currPos, "+e.literals[r[a+1]].length+") === "+u(r[a+1]):"input.charCodeAt(peg$currPos) === "+e.literals[r[a+1]].charCodeAt(0),1);break;case n.MATCH_STRING_IC:d("input.substr(peg$currPos, "+e.literals[r[a+1]].length+").toLowerCase() === "+u(r[a+1]),1);break;case n.MATCH_CHAR_CLASS:d(p(r[a+1])+".test(input.charAt(peg$currPos))",1);break;case n.ACCEPT_N:i.push(s.push(r[a+1]>1?"input.substr(peg$currPos, "+r[a+1]+")":"input.charAt(peg$currPos)")),i.push(r[a+1]>1?"peg$currPos += "+r[a+1]+";":"peg$currPos++;"),a+=2;break;case n.ACCEPT_STRING:i.push(s.push(u(r[a+1]))),i.push(e.literals[r[a+1]].length>1?"peg$currPos += "+e.literals[r[a+1]].length+";":"peg$currPos++;"),a+=2;break;case n.FAIL:i.push(s.push("peg$FAILED")),i.push("if (peg$silentFails === 0) { peg$fail("+h(r[a+1])+"); }"),a+=2;break;case n.LOAD_SAVED_POS:i.push("peg$savedPos = "+s.index(r[a+1])+";"),a+=2;break;case n.UPDATE_SAVED_POS:i.push("peg$savedPos = peg$currPos;"),a++;break;case n.CALL:m=g(4),s.pop(r[a+2]),i.push(s.push(m)),a+=4+r[a+3];break;case n.RULE:i.push(s.push(v(e.rules[r[a+1]].name)+"()")),a+=2;break;case n.SILENT_FAILS_ON:i.push("peg$silentFails++;"),a++;break;case n.SILENT_FAILS_OFF:i.push("peg$silentFails--;"),a++;break;case n.SOURCE_MAP_PUSH:s.sourceMapPush(i,e.locations[r[a+1]]),a+=2;break;case n.SOURCE_MAP_POP:s.sourceMapPop(),a++;break;case n.SOURCE_MAP_LABEL_PUSH:s.labels[r[a+1]]={label:e.literals[r[a+2]],location:e.locations[r[a+3]]},a+=4;break;case n.SOURCE_MAP_LABEL_POP:delete s.labels[r[a+1]],a+=2;break;default:throw new Error("Invalid opcode: "+r[a]+".",{rule:c.name,bytecode:r})}return i}(c.bytecode);return i.push(d("function ",v(c.name),c.nameLocation,"() {\n",c.name)),t.trace&&i.push(" var startPos = peg$currPos;"),i.push(o(s.defines())),i.push(...o(function(o,r){const n=[];return n.push(""),t.trace&&n.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+o+","," location: peg$computeLocation(startPos, startPos, true)","});",""),t.cache&&(n.push("var key = peg$currPos * "+e.rules.length+" + "+r+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),t.trace&&n.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+o+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+o+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),n.push(" return cached.result;","}","")),n}('"'+l(c.name)+'"',r.indexOfRule(e,c.name)))),i.push(...o(m)),i.push(...o(function(e,o){const r=[];return t.cache&&r.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+o+" };"),t.trace&&r.push("","if ("+o+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+o+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),r.push("","return "+o+";"),r}('"'+l(c.name)+'"',s.result()))),i.push("}"),i}(i))),c.push("")})),e.initializer&&(c.push(w(e.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new s(null,null,t.grammarSource,c.map((e=>e instanceof s?e:e+"\n")))}())}},51358:(e,t,o)=>{"use strict";const r=o(87602),n=o(86657),a=o(48256),c=-1;function l(e){function t(e){return e.match=0}function o(e){return s(e.expression),e.match=1}function l(e){return e.match=s(e.expression)}function i(e,t){const o=e.length;let r=0,n=0;for(let t=0;t<o;++t){const o=s(e[t]);1===o&&++r,o===c&&++n}return r===o?1:t?n===o?c:0:n>0?c:0}const s=r.build({rule(e){let t,o=0;if(void 0===e.match){e.match=0;do{if(t=e.match,e.match=s(e.expression),++o>6)throw new a("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:l,choice:e=>e.match=i(e.alternatives,!0),action:l,sequence:e=>e.match=i(e.elements,!1),labeled:l,text:l,simple_and:l,simple_not:e=>e.match=-s(e.expression),optional:o,zero_or_more:o,one_or_more:l,repeated(e){const t=s(e.expression),o=e.delimiter?s(e.delimiter):c,r=e.min?e.min:e.max;return"constant"!==r.type||"constant"!==e.max.type?e.match=0:0===e.max.value||null!==e.max.value&&r.value>e.max.value?e.match=c:t===c?e.match=0===r.value?1:c:1===t?e.delimiter&&r.value>=2?e.match=o:e.match=1:e.delimiter&&r.value>=2?e.match=o===c?c:0:e.match=0===r.value?1:0},group:l,semantic_and:t,semantic_not:t,rule_ref(t){const o=n.findRule(e,t.name);return t.match=s(o)},literal(e){const t=0===e.value.length?1:0;return e.match=t},class(e){const t=0===e.parts.length?c:0;return e.match=t},any:t});s(e)}l.ALWAYS_MATCH=1,l.SOMETIMES_MATCH=0,l.NEVER_MATCH=c,e.exports=l},47349:(e,t,o)=>{"use strict";const r=o(86657),n=o(87602);e.exports=function(e,t,o){const a=[];e.rules.forEach(((c,l)=>{var i;"rule"===(i=c).type&&"rule_ref"===i.expression.type&&(function(e,t,a){n.build({rule_ref(n){n.name===t&&(n.name=a,o.info(`Proxy rule "${t}" replaced by the rule "${a}"`,n.location,[{message:"This rule will be used",location:r.findRule(e,a).nameLocation}]))}})(e)}(e,c.name,c.expression.name),-1===t.allowedStartRules.indexOf(c.name)&&a.push(l))})),a.reverse(),a.forEach((t=>{e.rules.splice(t,1)}))}},13747:(e,t,o)=>{"use strict";const r=o(87602);e.exports=function(e,t,o){function n(e){const t={};return Object.keys(e).forEach((o=>{t[o]=e[o]})),t}function a(e,t){c(e.expression,n(t))}const c=r.build({rule(e){c(e.expression,{})},choice(e,t){e.alternatives.forEach((e=>{c(e,n(t))}))},action:a,labeled(e,t){const r=e.label;r&&Object.prototype.hasOwnProperty.call(t,r)&&o.error(`Label "${e.label}" is already defined`,e.labelLocation,[{message:"Original label location",location:t[r]}]),c(e.expression,t),t[e.label]=e.labelLocation},text:a,simple_and:a,simple_not:a,optional:a,zero_or_more:a,one_or_more:a,repeated(e,t){e.delimiter&&c(e.delimiter,n(t)),c(e.expression,n(t))},group:a});c(e)}},7937:(e,t,o)=>{"use strict";const r=o(87602);e.exports=function(e,t,o){const n={};r.build({rule(e){Object.prototype.hasOwnProperty.call(n,e.name)?o.error(`Rule "${e.name}" is already defined`,e.nameLocation,[{message:"Original rule location",location:n[e.name]}]):n[e.name]=e.nameLocation}})(e)}},43046:(e,t,o)=>{"use strict";const r=o(87602);e.exports=function(e,t,o){const n=r.build({action(e){n(e.expression,e)},labeled(e,t){e.pick&&t&&o.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}},47771:(e,t,o)=>{"use strict";const r=o(86657),n=o(87602);e.exports=function(e,t,o){const a=[],c=[],l=n.build({rule(e){a.push(e.name),l(e.expression),a.pop()},sequence(t){t.elements.every((t=>(l(t),!r.alwaysConsumesOnSuccess(e,t))))},repeated(t){l(t.expression),t.delimiter&&!r.alwaysConsumesOnSuccess(e,t.expression)&&l(t.delimiter)},rule_ref(t){c.push(t);const n=r.findRule(e,t.name);if(-1!==a.indexOf(t.name))return a.push(t.name),void o.error("Possible infinite loop when parsing (left recursion: "+a.join(" -> ")+")",n.nameLocation,c.map(((e,t,o)=>({message:t+1!==o.length?`Step ${t+1}: call of the rule "${e.name}" without input consumption`:`Step ${t+1}: call itself without input consumption - left recursion`,location:e.location}))));n&&l(n),c.pop()}});l(e)}},74414:(e,t,o)=>{"use strict";const r=o(86657),n=o(87602);e.exports=function(e,t,o){const a=n.build({zero_or_more(t){r.alwaysConsumesOnSuccess(e,t.expression)||o.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more(t){r.alwaysConsumesOnSuccess(e,t.expression)||o.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated(t){if(t.delimiter&&a(t.delimiter),!(r.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&r.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)o.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{const e=t.min?t.min:t.max;o.warning("constant"===e.type&&"constant"===t.max.type?`An expression may not consume any input and may always match ${t.max.value} times`:"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}});a(e)}},78277:(e,t,o)=>{"use strict";const r=o(86657),n=o(87602);e.exports=function(e,t,o){n.build({rule_ref(t){r.findRule(e,t.name)||o.error(`Rule "${t.name}" is not defined`,t.location)}})(e)}},52399:(e,t,o)=>{"use strict";const r=o(48256);class n{constructor(e){"function"==typeof(e=void 0!==e?e:{}).error&&(this.error=e.error),"function"==typeof e.warning&&(this.warning=e.warning),"function"==typeof e.info&&(this.info=e.info)}error(){}warning(){}info(){}}e.exports=class{constructor(e){this._callbacks=new n(e),this._firstError=null,this.errors=0,this.problems=[],this.stage=null}error(...e){++this.errors,null===this._firstError&&(this._firstError=new r(...e),this._firstError.stage=this.stage,this._firstError.problems=this.problems),this.problems.push(["error",...e]),this._callbacks.error(this.stage,...e)}warning(...e){this.problems.push(["warning",...e]),this._callbacks.warning(this.stage,...e)}info(...e){this.problems.push(["info",...e]),this._callbacks.info(this.stage,...e)}checkErrors(){if(0!==this.errors)throw this._firstError}}},82169:(e,t,o)=>{"use strict";const{SourceNode:r}=o(10782),n=o(49002);class a{constructor(e,t,o,r){this.sp=-1,this.maxSp=-1,this.varName=t,this.ruleName=e,this.type=o,this.bytecode=r,this.labels={},this.sourceMapStack=[]}name(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack underflow: attempt to use a variable '${this.varName}<x>' at an index ${e}.\nBytecode: ${this.bytecode}`);return this.varName+e}static sourceNode(e,t,o){const a=n.offsetStart(e);return new r(a.line,a.column?a.column-1:null,String(e.source),t,o)}push(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);const t=this.labels[this.sp],o=[this.name(this.sp)," = ",e,";"];if(t){if(this.sourceMapStack.length){const e=a.sourceNode(t.location,o.splice(0,2),t.label),{parts:n,location:c}=this.sourceMapPopInternal(),l=c.start.offset<t.location.end.offset?{start:t.location.end,end:c.end,source:c.source}:c,i=a.sourceNode(l,o.concat("\n"));return this.sourceMapStack.push([n,n.length+1,c]),new r(null,null,t.location.source,[e,i])}return a.sourceNode(t.location,o.concat("\n"))}return o.join("")}pop(e){return void 0!==e?(this.sp-=e,Array.from({length:e},((e,t)=>this.name(this.sp+1+t)))):this.name(this.sp--)}top(){return this.name(this.sp)}index(e){if(e<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack overflow: attempt to get a variable at a negative index ${e}.\nBytecode: ${this.bytecode}`);return this.name(this.sp-e)}result(){if(this.maxSp<0)throw new RangeError(`Rule '${this.ruleName}': The variable stack is empty, can't get the result.\nBytecode: ${this.bytecode}`);return this.name(0)}defines(){return this.maxSp<0?"":this.type+" "+Array.from({length:this.maxSp+1},((e,t)=>this.name(t))).join(", ")+";"}checkedIf(e,t,o){const r=this.sp;if(t(),o){const t=this.sp;if(this.sp=r,o(),t!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Branches of a condition can't move the stack pointer differently (before: "+r+", after then: "+t+", after else: "+this.sp+"). Bytecode: "+this.bytecode)}}checkedLoop(e,t){const o=this.sp;if(t(),o!==this.sp)throw new Error("Rule '"+this.ruleName+"', position "+e+": Body of a loop can't move the stack pointer (before: "+o+", after: "+this.sp+"). Bytecode: "+this.bytecode)}sourceMapPush(e,t){if(this.sourceMapStack.length){const e=this.sourceMapStack[this.sourceMapStack.length-1];e[2].start.offset===t.start.offset&&e[2].end.offset>t.end.offset&&(e[2]={start:t.end,end:e[2].end,source:e[2].source})}this.sourceMapStack.push([e,e.length,t])}sourceMapPopInternal(){const[e,t,o]=this.sourceMapStack.pop(),a=e.splice(t).map((e=>e instanceof r?e:e+"\n"));if(a.length){const t=n.offsetStart(o);e.push(new r(t.line,t.column-1,String(o.source),a))}return{parts:e,location:o}}sourceMapPop(e){const{location:t}=this.sourceMapPopInternal();if(this.sourceMapStack.length&&t.end.offset<this.sourceMapStack[this.sourceMapStack.length-1][2].end.offset){const{parts:o,location:r}=this.sourceMapPopInternal(),n=r.start.offset<t.end.offset?{start:t.end,end:r.end,source:r.source}:r;this.sourceMapStack.push([o,o.length+(e||0),n])}}}e.exports=a},93758:(e,t)=>{"use strict";function o(e){return e.charCodeAt(0).toString(16).toUpperCase()}t.hex=o,t.stringEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+o(e))).replace(/[\x10-\x1F\x7F-\xFF]/g,(e=>"\\x"+o(e))).replace(/[\u0100-\u0FFF]/g,(e=>"\\u0"+o(e))).replace(/[\u1000-\uFFFF]/g,(e=>"\\u"+o(e)))},t.regexpClassEscape=function(e){return e.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+o(e))).replace(/[\x10-\x1F\x7F-\xFF]/g,(e=>"\\x"+o(e))).replace(/[\u0100-\u0FFF]/g,(e=>"\\u0"+o(e))).replace(/[\u1000-\uFFFF]/g,(e=>"\\u"+o(e)))},t.base64=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=e.length%3,r=e.length-o;let n="";for(let o=0;o<r;o+=3)n+=t[e[o]>>2],n+=t[(3&e[o])<<4|e[o+1]>>4],n+=t[(15&e[o+1])<<2|e[o+2]>>6],n+=t[63&e[o+2]];return 1===o?(n+=t[e[r]>>2],n+=t[(3&e[r])<<4],n+="=="):2===o&&(n+=t[e[r]>>2],n+=t[(3&e[r])<<4|e[r+1]>>4],n+=t[(15&e[r+1])<<2],n+="="),n}},87602:e=>{"use strict";const t={build(e){function t(t,...o){return e[t.type](t,...o)}function o(){}function r(e,...o){return t(e.expression,...o)}function n(e){return function(o,...r){o[e].forEach((e=>t(e,...r)))}}const a={grammar(e,...o){e.topLevelInitializer&&t(e.topLevelInitializer,...o),e.initializer&&t(e.initializer,...o),e.rules.forEach((e=>t(e,...o)))},top_level_initializer:o,initializer:o,rule:r,named:r,choice:n("alternatives"),action:r,sequence:n("elements"),labeled:r,text:r,simple_and:r,simple_not:r,optional:r,zero_or_more:r,one_or_more:r,repeated:(e,...o)=>(e.delimiter&&t(e.delimiter,...o),t(e.expression,...o)),group:r,semantic_and:o,semantic_not:o,rule_ref:o,literal:o,class:o,any:o};return Object.keys(a).forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)||(e[t]=a[t])})),t}};e.exports=t},48256:(e,t,o)=>{"use strict";const r=o(49002),n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])};class a extends Error{constructor(e,t,o){super(e),n(this,a.prototype),this.name="GrammarError",this.location=t,void 0===o&&(o=[]),this.diagnostics=o,this.stage=null,this.problems=[["error",e,t,o]]}toString(){let e=super.toString();this.location&&(e+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(e+=`${this.location.source}:`),e+=`${this.location.start.line}:${this.location.start.column}`);for(const t of this.diagnostics)e+="\n from ",void 0!==t.location.source&&null!==t.location.source&&(e+=`${t.location.source}:`),e+=`${t.location.start.line}:${t.location.start.column}: ${t.message}`;return e}format(e){const t=e.map((({source:e,text:t})=>({source:e,text:null!=t?String(t).split(/\r\n|\n|\r/g):[]})));function o(e,o,n=""){let a="";const c=t.find((({source:t})=>t===e.source)),l=e.start,i=r.offsetStart(e);if(c){const t=e.end,r=c.text[l.line-1],s=(l.line===t.line?t.column:r.length+1)-l.column||1;n&&(a+=`\nnote: ${n}`),a+=`\n --\x3e ${e.source}:${i.line}:${i.column}\n${"".padEnd(o)} |\n${i.line.toString().padStart(o)} | ${r}\n${"".padEnd(o)} | ${"".padEnd(l.column-1)}${"".padEnd(s,"^")}`}else a+=`\n at ${e.source}:${i.line}:${i.column}`,n&&(a+=`: ${n}`);return a}return this.problems.filter((e=>"info"!==e[0])).map((e=>function(e,t,n,a=[]){let c=-1/0;c=n?a.reduce(((e,{location:t})=>Math.max(e,r.offsetStart(t).line)),n.start.line):Math.max.apply(null,a.map((e=>e.location.start.line))),c=c.toString().length;let l=`${e}: ${t}`;n&&(l+=o(n,c));for(const e of a)l+=o(e.location,c,e.message);return l}(...e))).join("\n\n")}}e.exports=a},49002:e=>{"use strict";e.exports=class{constructor(e,t){this.source=e,this.start=t}toString(){return String(this.source)}offset(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}}static offsetStart(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start}static offsetEnd(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end}}},68189:e=>{"use strict";const t={$:"text","&":"simple_and","!":"simple_not"},o={"?":"optional","*":"zero_or_more","+":"one_or_more"},r={"&":"semantic_and","!":"semantic_not"};function n(e,t,o,r){var a=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(a,n.prototype),a.expected=t,a.found=o,a.location=r,a.name="SyntaxError",a}function a(e,t,o){return o=o||" ",e.length>t?e:(t-=e.length,e+(o+=o.repeat(t)).slice(0,t))}!function(e,t){function o(){this.constructor=e}o.prototype=t.prototype,e.prototype=new o}(n,Error),n.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var o,r=null;for(o=0;o<e.length;o++)if(e[o].source===this.location.source){r=e[o].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,c=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,l=this.location.source+":"+c.line+":"+c.column;if(r){var i=this.location.end,s=a("",c.line.toString().length," "),u=r[n.line-1],m=(n.line===i.line?i.column:u.length+1)-n.column||1;t+="\n --\x3e "+l+"\n"+s+" |\n"+c.line+" | "+u+"\n"+s+" | "+a("",n.column-1," ")+a("",m,"^")}else t+="\n at "+l}return t},n.buildMessage=function(e,t){var o={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function c(e){return o[e.type](e)}return"Expected "+function(e){var t,o,r=e.map(c);if(r.sort(),r.length>0){for(t=1,o=1;t<r.length;t++)r[t-1]!==r[t]&&(r[o]=r[t],o++);r.length=o}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:n,parse:function(e,a){var c,l={},i=(a=void 0!==a?a:{}).grammarSource,s={Grammar:Yo},u=Yo,m="{",d="}",p="=",h="/",_="@",v=":",w="$",g="&",E="!",f="?",b="*",C="+",y="|",A=",",x="..",S="(",k=")",P="\t",B="\v",N="\f",M=" ",V=" ",T="\ufeff",F="\n",D="\r\n",L="\r",H="\u2028",R="\u2029",z="/*",I="*/",O="//",$="_",G="\\",U="",j="",q="i",Z='"',W="'",J="[",Y="^",X="]",K="-",Q="0",ee="b",te="f",oe="n",re="r",ne="t",ae="v",ce="x",le="u",ie=".",se=";",ue=/^[\n\r\u2028\u2029]/,me=/^[0-9]/,de=/^[0-9a-f]/i,pe=/^[{}]/,he=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,_e=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,ve=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,we=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,ge=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,Ee=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,fe=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,be=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,Ce=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,ye=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Ae=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xe=Uo("{",!1),Se=Uo("}",!1),ke=Uo("=",!1),Pe=Uo("/",!1),Be=Uo("@",!1),Ne=Uo(":",!1),Me=Uo("$",!1),Ve=Uo("&",!1),Te=Uo("!",!1),Fe=Uo("?",!1),De=Uo("*",!1),Le=Uo("+",!1),He=Uo("|",!1),Re=Uo(",",!1),ze=Uo("..",!1),Ie=Uo("(",!1),Oe=Uo(")",!1),$e={type:"any"},Ge=qo("whitespace"),Ue=Uo("\t",!1),je=Uo("\v",!1),qe=Uo("\f",!1),Ze=Uo(" ",!1),We=Uo(" ",!1),Je=Uo("\ufeff",!1),Ye=jo(["\n","\r","\u2028","\u2029"],!1,!1),Xe=qo("end of line"),Ke=Uo("\n",!1),Qe=Uo("\r\n",!1),et=Uo("\r",!1),tt=Uo("\u2028",!1),ot=Uo("\u2029",!1),rt=qo("comment"),nt=Uo("/*",!1),at=Uo("*/",!1),ct=Uo("//",!1),lt=qo("identifier"),it=Uo("_",!1),st=Uo("\\",!1),ut=Uo("",!1),mt=Uo("",!1),dt=qo("literal"),pt=Uo("i",!1),ht=qo("string"),_t=Uo('"',!1),vt=Uo("'",!1),wt=qo("character class"),gt=Uo("[",!1),Et=Uo("^",!1),ft=Uo("]",!1),bt=Uo("-",!1),Ct=Uo("0",!1),yt=Uo("b",!1),At=Uo("f",!1),xt=Uo("n",!1),St=Uo("r",!1),kt=Uo("t",!1),Pt=Uo("v",!1),Bt=Uo("x",!1),Nt=Uo("u",!1),Mt=jo([["0","9"]],!1,!1),Vt=jo([["0","9"],["a","f"]],!1,!0),Tt=Uo(".",!1),Ft=qo("code block"),Dt=jo(["{","}"],!1,!1),Lt=jo([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Ht=jo([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Rt=jo(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),zt=jo(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),It=jo([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Ot=jo(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),$t=jo([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Gt=jo([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Ut=jo([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),jt=jo(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),qt=jo([" "," "," ",[" "," "]," "," "," "],!1,!1),Zt=Uo(";",!1),Wt=function(e,t,o){return{type:"grammar",topLevelInitializer:e,initializer:t,rules:o,location:$o()}},Jt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:$o()}},Yt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:$o()}},Xt=function(e,t,o){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:o,location:$o()}:o,location:$o()}},Kt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:$o()}:e},Qt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:$o()}:e},eo=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:$o()}:e},to=function(e,t,o){return o.type.startsWith("semantic_")&&Go('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==t?t[0]:null,labelLocation:null!==t?t[1]:e,pick:!0,expression:o,location:$o()}},oo=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:$o()}},ro=function(){return $o()},no=function(e){return Mr.indexOf(e[0])>=0&&Go(`Label can't be a reserved word "${e[0]}"`,e[1]),e},ao=function(e,o){return{type:t[e],expression:o,location:$o()}},co=function(e,t){return{type:o[t],expression:e,location:$o()}},lo=function(e,t,o){let r=t[0],n=t[1];return"constant"===n.type&&0===n.value&&Go("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:r,max:n,expression:e,delimiter:o,location:$o()}},io=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},so=function(e){return[null,e]},uo=function(e){return{type:"constant",value:e,location:$o()}},mo=function(e){return{type:"variable",value:e[0],location:$o()}},po=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:$o()}},ho=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:$o()}:e},_o=function(e){return{type:"rule_ref",name:e[0],location:$o()}},vo=function(e,t){return{type:r[e],code:t[0],codeLocation:t[1],location:$o()}},wo=function(e,t){return[e+t.join(""),$o()]},go=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:$o()}},Eo=function(e){return e.join("")},fo=function(e){return e.join("")},bo=function(e,t,o){return{type:"class",parts:t.filter((e=>""!==e)),inverted:null!==e,ignoreCase:null!==o,location:$o()}},Co=function(t,o){return t.charCodeAt(0)>o.charCodeAt(0)&&Go("Invalid character range: "+e.substring(Ho,Lo)+"."),[t,o]},yo=function(){return""},Ao=function(){return"\0"},xo=function(){return"\b"},So=function(){return"\f"},ko=function(){return"\n"},Po=function(){return"\r"},Bo=function(){return"\t"},No=function(){return"\v"},Mo=function(e){return String.fromCharCode(parseInt(e,16))},Vo=function(e){return String.fromCharCode(parseInt(e,16))},To=function(){return{type:"any",location:$o()}},Fo=function(e){return[e,$o()]},Do=function(e){return parseInt(e,10)},Lo=0,Ho=0,Ro=[{line:1,column:1}],zo=0,Io=[],Oo=0;if("startRule"in a){if(!(a.startRule in s))throw new Error("Can't start parsing from rule \""+a.startRule+'".');u=s[a.startRule]}function $o(){return Wo(Ho,Lo)}function Go(e,t){throw function(e,t){return new n(e,null,null,t)}(e,t=void 0!==t?t:Wo(Ho,Lo))}function Uo(e,t){return{type:"literal",text:e,ignoreCase:t}}function jo(e,t,o){return{type:"class",parts:e,inverted:t,ignoreCase:o}}function qo(e){return{type:"other",description:e}}function Zo(t){var o,r=Ro[t];if(r)return r;for(o=t-1;!Ro[o];)o--;for(r={line:(r=Ro[o]).line,column:r.column};o<t;)10===e.charCodeAt(o)?(r.line++,r.column=1):r.column++,o++;return Ro[t]=r,r}function Wo(e,t,o){var r=Zo(e),n=Zo(t),a={source:i,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}};return o&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Jo(e){Lo<zo||(Lo>zo&&(zo=Lo,Io=[]),Io.push(e))}function Yo(){var t,o,r,n,a,c;if(t=Lo,Br(),o=Lo,r=function(){var t,o,r,n;return t=Lo,123===e.charCodeAt(Lo)?(o=m,Lo++):(o=l,0===Oo&&Jo(xe)),o!==l&&(r=kr())!==l?(125===e.charCodeAt(Lo)?(n=d,Lo++):(n=l,0===Oo&&Jo(Se)),n!==l&&Nr()!==l?(Ho=t,t=Jt(r)):(Lo=t,t=l)):(Lo=t,t=l),t}(),r!==l?(n=Br(),o=r):(Lo=o,o=l),o===l&&(o=null),r=Lo,n=function(){var e,t;return e=Lo,(t=kr())!==l&&Nr()!==l?(Ho=e,e=Yt(t)):(Lo=e,e=l),e}(),n!==l?(a=Br(),r=n):(Lo=r,r=l),r===l&&(r=null),n=[],a=Lo,(c=Xo())!==l?(Br(),a=c):(Lo=a,a=l),a!==l)for(;a!==l;)n.push(a),a=Lo,(c=Xo())!==l?(Br(),a=c):(Lo=a,a=l);else n=l;return n!==l?(Ho=t,t=Wt(o,r,n)):(Lo=t,t=l),t}function Xo(){var t,o,r,n,a;return t=Lo,(o=pr())!==l?(Br(),r=Lo,(n=vr())!==l?(Br(),r=n):(Lo=r,r=l),r===l&&(r=null),61===e.charCodeAt(Lo)?(n=p,Lo++):(n=l,0===Oo&&Jo(ke)),n!==l?(Br(),(a=Ko())!==l&&Nr()!==l?(Ho=t,t=Xt(o,r,a)):(Lo=t,t=l)):(Lo=t,t=l)):(Lo=t,t=l),t}function Ko(){var t,o,r,n,a,c;if(t=Lo,(o=Qo())!==l){for(r=[],n=Lo,Br(),47===e.charCodeAt(Lo)?(a=h,Lo++):(a=l,0===Oo&&Jo(Pe)),a!==l?(Br(),(c=Qo())!==l?n=c:(Lo=n,n=l)):(Lo=n,n=l);n!==l;)r.push(n),n=Lo,Br(),47===e.charCodeAt(Lo)?(a=h,Lo++):(a=l,0===Oo&&Jo(Pe)),a!==l?(Br(),(c=Qo())!==l?n=c:(Lo=n,n=l)):(Lo=n,n=l);Ho=t,t=Kt(o,r)}else Lo=t,t=l;return t}function Qo(){var e,t,o,r;return e=Lo,t=function(){var e,t,o,r,n;if(e=Lo,(t=er())!==l){for(o=[],r=Lo,Br(),(n=er())!==l?r=n:(Lo=r,r=l);r!==l;)o.push(r),r=Lo,Br(),(n=er())!==l?r=n:(Lo=r,r=l);Ho=e,e=eo(t,o)}else Lo=e,e=l;return e}(),t!==l?(o=Lo,Br(),(r=kr())!==l?o=r:(Lo=o,o=l),o===l&&(o=null),Ho=e,e=Qt(t,o)):(Lo=e,e=l),e}function er(){var t,o,r,n;return t=Lo,o=function(){var t,o;return t=Lo,64===e.charCodeAt(Lo)?(o=_,Lo++):(o=l,0===Oo&&Jo(Be)),o!==l&&(Ho=t,o=ro()),t=o}(),o!==l?((r=tr())===l&&(r=null),(n=or())!==l?(Ho=t,t=to(o,r,n)):(Lo=t,t=l)):(Lo=t,t=l),t===l&&(t=Lo,(o=tr())!==l?(r=Br(),(n=or())!==l?(Ho=t,t=oo(o,n)):(Lo=t,t=l)):(Lo=t,t=l),t===l&&(t=or())),t}function tr(){var t,o,r;return t=Lo,(o=pr())!==l?(Br(),58===e.charCodeAt(Lo)?(r=v,Lo++):(r=l,0===Oo&&Jo(Ne)),r!==l?(Ho=t,t=no(o)):(Lo=t,t=l)):(Lo=t,t=l),t}function or(){var t,o,r;return t=Lo,o=function(){var t;return 36===e.charCodeAt(Lo)?(t=w,Lo++):(t=l,0===Oo&&Jo(Me)),t===l&&(38===e.charCodeAt(Lo)?(t=g,Lo++):(t=l,0===Oo&&Jo(Ve)),t===l&&(33===e.charCodeAt(Lo)?(t=E,Lo++):(t=l,0===Oo&&Jo(Te)))),t}(),o!==l?(Br(),(r=rr())!==l?(Ho=t,t=ao(o,r)):(Lo=t,t=l)):(Lo=t,t=l),t===l&&(t=rr()),t}function rr(){var t,o,r;return t=Lo,(o=ar())!==l?(Br(),r=function(){var t;return 63===e.charCodeAt(Lo)?(t=f,Lo++):(t=l,0===Oo&&Jo(Fe)),t===l&&(42===e.charCodeAt(Lo)?(t=b,Lo++):(t=l,0===Oo&&Jo(De)),t===l&&(43===e.charCodeAt(Lo)?(t=C,Lo++):(t=l,0===Oo&&Jo(Le)))),t}(),r!==l?(Ho=t,t=co(o,r)):(Lo=t,t=l)):(Lo=t,t=l),t===l&&(t=function(){var t,o,r,n,a,c,i;return t=Lo,(o=ar())!==l?(Br(),124===e.charCodeAt(Lo)?(r=y,Lo++):(r=l,0===Oo&&Jo(He)),r!==l?(Br(),n=function(){var t,o,r,n;return t=Lo,(o=nr())===l&&(o=null),Br(),e.substr(Lo,2)===x?(r=x,Lo+=2):(r=l,0===Oo&&Jo(ze)),r!==l?(Br(),(n=nr())===l&&(n=null),Ho=t,t=io(o,n)):(Lo=t,t=l),t===l&&(t=Lo,(o=nr())!==l&&(Ho=t,o=so(o)),t=o),t}(),n!==l?(Br(),a=Lo,44===e.charCodeAt(Lo)?(c=A,Lo++):(c=l,0===Oo&&Jo(Re)),c!==l?(Br(),(i=Ko())!==l?(Br(),a=i):(Lo=a,a=l)):(Lo=a,a=l),a===l&&(a=null),124===e.charCodeAt(Lo)?(c=y,Lo++):(c=l,0===Oo&&Jo(He)),c!==l?(Ho=t,t=lo(o,n,a)):(Lo=t,t=l)):(Lo=t,t=l)):(Lo=t,t=l)):(Lo=t,t=l),t}(),t===l&&(t=ar())),t}function nr(){var t,o;return t=Lo,o=function(){var t,o,r,n;if(t=Lo,o=Lo,r=[],(n=xr())!==l)for(;n!==l;)r.push(n),n=xr();else r=l;return(o=r!==l?e.substring(o,Lo):r)!==l&&(Ho=t,o=Do(o)),t=o}(),o!==l&&(Ho=t,o=uo(o)),(t=o)===l&&(t=Lo,(o=pr())!==l&&(Ho=t,o=mo(o)),(t=o)===l&&(t=Lo,(o=kr())!==l&&(Ho=t,o=po(o)),t=o)),t}function ar(){var t,o,r,n;return t=function(){var t,o,r;return Oo++,t=Lo,(o=vr())!==l?(105===e.charCodeAt(Lo)?(r=q,Lo++):(r=l,0===Oo&&Jo(pt)),r===l&&(r=null),Ho=t,t=go(o,r)):(Lo=t,t=l),Oo--,t===l&&(o=l,0===Oo&&Jo(dt)),t}(),t===l&&(t=function(){var t,o,r,n,a,c;if(Oo++,t=Lo,91===e.charCodeAt(Lo)?(o=J,Lo++):(o=l,0===Oo&&Jo(gt)),o!==l){for(94===e.charCodeAt(Lo)?(r=Y,Lo++):(r=l,0===Oo&&Jo(Et)),r===l&&(r=null),n=[],(a=Er())===l&&(a=fr());a!==l;)n.push(a),(a=Er())===l&&(a=fr());93===e.charCodeAt(Lo)?(a=X,Lo++):(a=l,0===Oo&&Jo(ft)),a!==l?(105===e.charCodeAt(Lo)?(c=q,Lo++):(c=l,0===Oo&&Jo(pt)),c===l&&(c=null),Ho=t,t=bo(r,n,c)):(Lo=t,t=l)}else Lo=t,t=l;return Oo--,t===l&&(o=l,0===Oo&&Jo(wt)),t}(),t===l&&(t=function(){var t,o;return t=Lo,46===e.charCodeAt(Lo)?(o=ie,Lo++):(o=l,0===Oo&&Jo(Tt)),o!==l&&(Ho=t,o=To()),t=o}(),t===l&&(t=function(){var t,o,r,n,a,c,i;return t=Lo,(o=pr())!==l?(r=Lo,Oo++,n=Lo,a=Br(),c=Lo,(i=vr())!==l?c=i=[i,Br()]:(Lo=c,c=l),c===l&&(c=null),61===e.charCodeAt(Lo)?(i=p,Lo++):(i=l,0===Oo&&Jo(ke)),i!==l?n=a=[a,c,i]:(Lo=n,n=l),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l?(Ho=t,t=_o(o)):(Lo=t,t=l)):(Lo=t,t=l),t}(),t===l&&(t=function(){var t,o,r;return t=Lo,o=function(){var t;return 38===e.charCodeAt(Lo)?(t=g,Lo++):(t=l,0===Oo&&Jo(Ve)),t===l&&(33===e.charCodeAt(Lo)?(t=E,Lo++):(t=l,0===Oo&&Jo(Te))),t}(),o!==l?(Br(),(r=kr())!==l?(Ho=t,t=vo(o,r)):(Lo=t,t=l)):(Lo=t,t=l),t}(),t===l&&(t=Lo,40===e.charCodeAt(Lo)?(o=S,Lo++):(o=l,0===Oo&&Jo(Ie)),o!==l?(Br(),(r=Ko())!==l?(Br(),41===e.charCodeAt(Lo)?(n=k,Lo++):(n=l,0===Oo&&Jo(Oe)),n!==l?(Ho=t,t=ho(r)):(Lo=t,t=l)):(Lo=t,t=l)):(Lo=t,t=l)))))),t}function cr(){var t;return e.length>Lo?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo($e)),t}function lr(){var t;return Oo++,9===e.charCodeAt(Lo)?(t=P,Lo++):(t=l,0===Oo&&Jo(Ue)),t===l&&(11===e.charCodeAt(Lo)?(t=B,Lo++):(t=l,0===Oo&&Jo(je)),t===l&&(12===e.charCodeAt(Lo)?(t=N,Lo++):(t=l,0===Oo&&Jo(qe)),t===l&&(32===e.charCodeAt(Lo)?(t=M,Lo++):(t=l,0===Oo&&Jo(Ze)),t===l&&(160===e.charCodeAt(Lo)?(t=V,Lo++):(t=l,0===Oo&&Jo(We)),t===l&&(65279===e.charCodeAt(Lo)?(t=T,Lo++):(t=l,0===Oo&&Jo(Je)),t===l&&(t=function(){var t;return Ae.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(qt)),t}())))))),Oo--,t===l&&0===Oo&&Jo(Ge),t}function ir(){var t;return ue.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Ye)),t}function sr(){var t;return Oo++,10===e.charCodeAt(Lo)?(t=F,Lo++):(t=l,0===Oo&&Jo(Ke)),t===l&&(e.substr(Lo,2)===D?(t=D,Lo+=2):(t=l,0===Oo&&Jo(Qe)),t===l&&(13===e.charCodeAt(Lo)?(t=L,Lo++):(t=l,0===Oo&&Jo(et)),t===l&&(8232===e.charCodeAt(Lo)?(t=H,Lo++):(t=l,0===Oo&&Jo(tt)),t===l&&(8233===e.charCodeAt(Lo)?(t=R,Lo++):(t=l,0===Oo&&Jo(ot)))))),Oo--,t===l&&0===Oo&&Jo(Xe),t}function ur(){var t;return Oo++,(t=function(){var t,o,r,n,a,c;if(t=Lo,e.substr(Lo,2)===z?(o=z,Lo+=2):(o=l,0===Oo&&Jo(nt)),o!==l){for(r=[],n=Lo,a=Lo,Oo++,e.substr(Lo,2)===I?(c=I,Lo+=2):(c=l,0===Oo&&Jo(at)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);n!==l;)r.push(n),n=Lo,a=Lo,Oo++,e.substr(Lo,2)===I?(c=I,Lo+=2):(c=l,0===Oo&&Jo(at)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);e.substr(Lo,2)===I?(n=I,Lo+=2):(n=l,0===Oo&&Jo(at)),n!==l?t=o=[o,r,n]:(Lo=t,t=l)}else Lo=t,t=l;return t}())===l&&(t=dr()),Oo--,t===l&&0===Oo&&Jo(rt),t}function mr(){var t,o,r,n,a,c;if(t=Lo,e.substr(Lo,2)===z?(o=z,Lo+=2):(o=l,0===Oo&&Jo(nt)),o!==l){for(r=[],n=Lo,a=Lo,Oo++,e.substr(Lo,2)===I?(c=I,Lo+=2):(c=l,0===Oo&&Jo(at)),c===l&&(c=ir()),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);n!==l;)r.push(n),n=Lo,a=Lo,Oo++,e.substr(Lo,2)===I?(c=I,Lo+=2):(c=l,0===Oo&&Jo(at)),c===l&&(c=ir()),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);e.substr(Lo,2)===I?(n=I,Lo+=2):(n=l,0===Oo&&Jo(at)),n!==l?t=o=[o,r,n]:(Lo=t,t=l)}else Lo=t,t=l;return t}function dr(){var t,o,r,n,a,c;if(t=Lo,e.substr(Lo,2)===O?(o=O,Lo+=2):(o=l,0===Oo&&Jo(ct)),o!==l){for(r=[],n=Lo,a=Lo,Oo++,c=ir(),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);n!==l;)r.push(n),n=Lo,a=Lo,Oo++,c=ir(),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);t=o=[o,r]}else Lo=t,t=l;return t}function pr(){var e,t,o,r;if(Oo++,e=Lo,(t=hr())!==l){for(o=[],r=_r();r!==l;)o.push(r),r=_r();Ho=e,e=wo(t,o)}else Lo=e,e=l;return Oo--,e===l&&(t=l,0===Oo&&Jo(lt)),e}function hr(){var t,o,r;return(t=function(){var t;return(t=function(){var t;return ge.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(It)),t}())===l&&(t=function(){var t;return he.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Lt)),t}())===l&&(t=function(){var t;return we.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(zt)),t}())===l&&(t=function(){var t;return _e.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Ht)),t}())===l&&(t=function(){var t;return ve.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Rt)),t}())===l&&(t=function(){var t;return Ce.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Ut)),t}()),t}())===l&&(95===e.charCodeAt(Lo)?(t=$,Lo++):(t=l,0===Oo&&Jo(it)),t===l&&(t=Lo,92===e.charCodeAt(Lo)?(o=G,Lo++):(o=l,0===Oo&&Jo(st)),o!==l&&(r=Ar())!==l?t=r:(Lo=t,t=l))),t}function _r(){var t;return(t=hr())===l&&(36===e.charCodeAt(Lo)?(t=w,Lo++):(t=l,0===Oo&&Jo(Me)),t===l&&(t=function(){var t;return(t=function(){var t;return fe.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo($t)),t}())===l&&(t=function(){var t;return Ee.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Ot)),t}()),t}())===l&&(t=function(){var t;return be.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Gt)),t}())===l&&(t=function(){var t;return ye.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(jt)),t}())===l&&(8204===e.charCodeAt(Lo)?(t=U,Lo++):(t=l,0===Oo&&Jo(ut)),t===l&&(8205===e.charCodeAt(Lo)?(t=j,Lo++):(t=l,0===Oo&&Jo(mt))))),t}function vr(){var t,o,r,n;if(Oo++,t=Lo,34===e.charCodeAt(Lo)?(o=Z,Lo++):(o=l,0===Oo&&Jo(_t)),o!==l){for(r=[],n=wr();n!==l;)r.push(n),n=wr();34===e.charCodeAt(Lo)?(n=Z,Lo++):(n=l,0===Oo&&Jo(_t)),n!==l?(Ho=t,t=Eo(r)):(Lo=t,t=l)}else Lo=t,t=l;if(t===l)if(t=Lo,39===e.charCodeAt(Lo)?(o=W,Lo++):(o=l,0===Oo&&Jo(vt)),o!==l){for(r=[],n=gr();n!==l;)r.push(n),n=gr();39===e.charCodeAt(Lo)?(n=W,Lo++):(n=l,0===Oo&&Jo(vt)),n!==l?(Ho=t,t=fo(r)):(Lo=t,t=l)}else Lo=t,t=l;return Oo--,t===l&&(o=l,0===Oo&&Jo(ht)),t}function wr(){var t,o,r,n;return t=Lo,o=Lo,r=Lo,Oo++,34===e.charCodeAt(Lo)?(n=Z,Lo++):(n=l,0===Oo&&Jo(_t)),n===l&&(92===e.charCodeAt(Lo)?(n=G,Lo++):(n=l,0===Oo&&Jo(st)),n===l&&(n=ir())),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l&&(n=cr())!==l?o=r=[r,n]:(Lo=o,o=l),(t=o!==l?e.substring(t,Lo):o)===l&&(t=Lo,92===e.charCodeAt(Lo)?(o=G,Lo++):(o=l,0===Oo&&Jo(st)),o!==l&&(r=Cr())!==l?t=r:(Lo=t,t=l),t===l&&(t=br())),t}function gr(){var t,o,r,n;return t=Lo,o=Lo,r=Lo,Oo++,39===e.charCodeAt(Lo)?(n=W,Lo++):(n=l,0===Oo&&Jo(vt)),n===l&&(92===e.charCodeAt(Lo)?(n=G,Lo++):(n=l,0===Oo&&Jo(st)),n===l&&(n=ir())),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l&&(n=cr())!==l?o=r=[r,n]:(Lo=o,o=l),(t=o!==l?e.substring(t,Lo):o)===l&&(t=Lo,92===e.charCodeAt(Lo)?(o=G,Lo++):(o=l,0===Oo&&Jo(st)),o!==l&&(r=Cr())!==l?t=r:(Lo=t,t=l),t===l&&(t=br())),t}function Er(){var t,o,r,n;return t=Lo,(o=fr())!==l?(45===e.charCodeAt(Lo)?(r=K,Lo++):(r=l,0===Oo&&Jo(bt)),r!==l&&(n=fr())!==l?(Ho=t,t=Co(o,n)):(Lo=t,t=l)):(Lo=t,t=l),t}function fr(){var t,o,r,n;return t=Lo,o=Lo,r=Lo,Oo++,93===e.charCodeAt(Lo)?(n=X,Lo++):(n=l,0===Oo&&Jo(ft)),n===l&&(92===e.charCodeAt(Lo)?(n=G,Lo++):(n=l,0===Oo&&Jo(st)),n===l&&(n=ir())),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l&&(n=cr())!==l?o=r=[r,n]:(Lo=o,o=l),(t=o!==l?e.substring(t,Lo):o)===l&&(t=Lo,92===e.charCodeAt(Lo)?(o=G,Lo++):(o=l,0===Oo&&Jo(st)),o!==l&&(r=Cr())!==l?t=r:(Lo=t,t=l),t===l&&(t=br())),t}function br(){var t,o;return t=Lo,92===e.charCodeAt(Lo)?(o=G,Lo++):(o=l,0===Oo&&Jo(st)),o!==l&&sr()!==l?(Ho=t,t=yo()):(Lo=t,t=l),t}function Cr(){var t,o,r,n;return t=function(){var t;return(t=yr())===l&&(t=function(){var t,o,r,n;return t=Lo,o=Lo,r=Lo,Oo++,n=function(){var t;return(t=yr())===l&&(t=xr())===l&&(120===e.charCodeAt(Lo)?(t=ce,Lo++):(t=l,0===Oo&&Jo(Bt)),t===l&&(117===e.charCodeAt(Lo)?(t=le,Lo++):(t=l,0===Oo&&Jo(Nt)))),t}(),n===l&&(n=ir()),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l&&(n=cr())!==l?o=r=[r,n]:(Lo=o,o=l),t=o!==l?e.substring(t,Lo):o}()),t}(),t===l&&(t=Lo,48===e.charCodeAt(Lo)?(o=Q,Lo++):(o=l,0===Oo&&Jo(Ct)),o!==l?(r=Lo,Oo++,n=xr(),Oo--,n===l?r=void 0:(Lo=r,r=l),r!==l?(Ho=t,t=Ao()):(Lo=t,t=l)):(Lo=t,t=l),t===l&&(t=function(){var t,o,r,n,a,c;return t=Lo,120===e.charCodeAt(Lo)?(o=ce,Lo++):(o=l,0===Oo&&Jo(Bt)),o!==l?(r=Lo,n=Lo,(a=Sr())!==l&&(c=Sr())!==l?n=a=[a,c]:(Lo=n,n=l),(r=n!==l?e.substring(r,Lo):n)!==l?(Ho=t,t=Mo(r)):(Lo=t,t=l)):(Lo=t,t=l),t}(),t===l&&(t=Ar()))),t}function yr(){var t,o;return 39===e.charCodeAt(Lo)?(t=W,Lo++):(t=l,0===Oo&&Jo(vt)),t===l&&(34===e.charCodeAt(Lo)?(t=Z,Lo++):(t=l,0===Oo&&Jo(_t)),t===l&&(92===e.charCodeAt(Lo)?(t=G,Lo++):(t=l,0===Oo&&Jo(st)),t===l&&(t=Lo,98===e.charCodeAt(Lo)?(o=ee,Lo++):(o=l,0===Oo&&Jo(yt)),o!==l&&(Ho=t,o=xo()),(t=o)===l&&(t=Lo,102===e.charCodeAt(Lo)?(o=te,Lo++):(o=l,0===Oo&&Jo(At)),o!==l&&(Ho=t,o=So()),(t=o)===l&&(t=Lo,110===e.charCodeAt(Lo)?(o=oe,Lo++):(o=l,0===Oo&&Jo(xt)),o!==l&&(Ho=t,o=ko()),(t=o)===l&&(t=Lo,114===e.charCodeAt(Lo)?(o=re,Lo++):(o=l,0===Oo&&Jo(St)),o!==l&&(Ho=t,o=Po()),(t=o)===l&&(t=Lo,116===e.charCodeAt(Lo)?(o=ne,Lo++):(o=l,0===Oo&&Jo(kt)),o!==l&&(Ho=t,o=Bo()),(t=o)===l&&(t=Lo,118===e.charCodeAt(Lo)?(o=ae,Lo++):(o=l,0===Oo&&Jo(Pt)),o!==l&&(Ho=t,o=No()),t=o)))))))),t}function Ar(){var t,o,r,n,a,c,i,s;return t=Lo,117===e.charCodeAt(Lo)?(o=le,Lo++):(o=l,0===Oo&&Jo(Nt)),o!==l?(r=Lo,n=Lo,(a=Sr())!==l&&(c=Sr())!==l&&(i=Sr())!==l&&(s=Sr())!==l?n=a=[a,c,i,s]:(Lo=n,n=l),(r=n!==l?e.substring(r,Lo):n)!==l?(Ho=t,t=Vo(r)):(Lo=t,t=l)):(Lo=t,t=l),t}function xr(){var t;return me.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Mt)),t}function Sr(){var t;return de.test(e.charAt(Lo))?(t=e.charAt(Lo),Lo++):(t=l,0===Oo&&Jo(Vt)),t}function kr(){var t,o,r,n;return Oo++,t=Lo,123===e.charCodeAt(Lo)?(o=m,Lo++):(o=l,0===Oo&&Jo(xe)),o!==l?(r=function(){var e,t;return e=Lo,t=Pr(),Ho=e,e=t=Fo(t)}(),125===e.charCodeAt(Lo)?(n=d,Lo++):(n=l,0===Oo&&Jo(Se)),n!==l?t=r:(Lo=t,t=l)):(Lo=t,t=l),Oo--,t===l&&(o=l,0===Oo&&Jo(Ft)),t}function Pr(){var t,o,r,n,a,c;if(t=Lo,o=[],r=[],n=Lo,a=Lo,Oo++,pe.test(e.charAt(Lo))?(c=e.charAt(Lo),Lo++):(c=l,0===Oo&&Jo(Dt)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l),n!==l)for(;n!==l;)r.push(n),n=Lo,a=Lo,Oo++,pe.test(e.charAt(Lo))?(c=e.charAt(Lo),Lo++):(c=l,0===Oo&&Jo(Dt)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);else r=l;for(r===l&&(r=Lo,123===e.charCodeAt(Lo)?(n=m,Lo++):(n=l,0===Oo&&Jo(xe)),n!==l?(a=Pr(),125===e.charCodeAt(Lo)?(c=d,Lo++):(c=l,0===Oo&&Jo(Se)),c!==l?r=n=[n,a,c]:(Lo=r,r=l)):(Lo=r,r=l));r!==l;){if(o.push(r),r=[],n=Lo,a=Lo,Oo++,pe.test(e.charAt(Lo))?(c=e.charAt(Lo),Lo++):(c=l,0===Oo&&Jo(Dt)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l),n!==l)for(;n!==l;)r.push(n),n=Lo,a=Lo,Oo++,pe.test(e.charAt(Lo))?(c=e.charAt(Lo),Lo++):(c=l,0===Oo&&Jo(Dt)),Oo--,c===l?a=void 0:(Lo=a,a=l),a!==l&&(c=cr())!==l?n=a=[a,c]:(Lo=n,n=l);else r=l;r===l&&(r=Lo,123===e.charCodeAt(Lo)?(n=m,Lo++):(n=l,0===Oo&&Jo(xe)),n!==l?(a=Pr(),125===e.charCodeAt(Lo)?(c=d,Lo++):(c=l,0===Oo&&Jo(Se)),c!==l?r=n=[n,a,c]:(Lo=r,r=l)):(Lo=r,r=l))}return e.substring(t,Lo)}function Br(){var e,t;for(e=[],(t=lr())===l&&(t=sr())===l&&(t=ur());t!==l;)e.push(t),(t=lr())===l&&(t=sr())===l&&(t=ur());return e}function Nr(){var t,o,r,n;if(t=[],o=Lo,r=Br(),59===e.charCodeAt(Lo)?(n=se,Lo++):(n=l,0===Oo&&Jo(Zt)),n!==l?o=r=[r,n]:(Lo=o,o=l),o!==l)for(;o!==l;)t.push(o),o=Lo,r=Br(),59===e.charCodeAt(Lo)?(n=se,Lo++):(n=l,0===Oo&&Jo(Zt)),n!==l?o=r=[r,n]:(Lo=o,o=l);else t=l;return t===l&&(t=Lo,o=function(){var e,t;for(e=[],(t=lr())===l&&(t=mr());t!==l;)e.push(t),(t=lr())===l&&(t=mr());return e}(),(r=dr())===l&&(r=null),(n=sr())!==l?t=o=[o,r,n]:(Lo=t,t=l),t===l&&(t=Lo,o=Br(),r=function(){var t,o;return t=Lo,Oo++,e.length>Lo?(o=e.charAt(Lo),Lo++):(o=l,0===Oo&&Jo($e)),Oo--,o===l?t=void 0:(Lo=t,t=l),t}(),r!==l?t=o=[o,r]:(Lo=t,t=l))),t}const Mr=a.reservedWords||[];if((c=u())!==l&&Lo===e.length)return c;throw c!==l&&Lo<e.length&&Jo({type:"end"}),function(e,t,o){return new n(n.buildMessage(e,t),e,t,o)}(Io,zo<e.length?e.charAt(zo):null,zo<e.length?Wo(zo,zo+1):Wo(zo,zo))}}},80154:(e,t,o)=>{"use strict";const r=o(48256),n=o(49002),a=o(73629),c=o(68189),l={VERSION:o(62415),RESERVED_WORDS:["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","null","true","false","enum","implements","interface","let","package","private","protected","public","static","yield","await","arguments","eval"],GrammarError:r,GrammarLocation:n,parser:c,compiler:a,generate(e,t){const o="plugins"in(t=void 0!==t?t:{})?t.plugins:[],r={parser:l.parser,passes:function(e){const t={};return Object.keys(e).forEach((o=>{t[o]=e[o].slice()})),t}(l.compiler.passes),reservedWords:l.RESERVED_WORDS.slice()};return o.forEach((e=>{e.use(r,t)})),l.compiler.compile(r.parser.parse(e,{grammarSource:t.grammarSource,reservedWords:r.reservedWords}),r.passes,t)}};e.exports=l},62415:e=>{"use strict";e.exports="3.0.2"},31772:(e,t,o)=>{"use strict";var r=o(25148);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,o,n,a,c){if(c!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={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:n};return o.PropTypes=o,o}},7862:(e,t,o)=>{e.exports=o(31772)()},25148:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},12443:(e,t)=>{class o{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const r=new o;for(let o=0,n=e.length;o<n;o++)r.add(e[o],t);return r}size(){return this._set.size}add(e,t){const o=this.has(e),r=this._array.length;o&&!t||this._array.push(e),o||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){const t=this._set.get(e);if(t>=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}}t.I=o},61944:(e,t,o)=>{const r=o(39286);t.encode=function(e){let t,o="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,n>>>=5,n>0&&(t|=32),o+=r.encode(t)}while(n>0);return o}},39286:(e,t)=>{const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<o.length)return o[e];throw new TypeError("Must be between 0 and 63: "+e)}},85460:(e,t,o)=>{const r=o(8023);t.H=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){!function(e,t){const o=e.generatedLine,n=t.generatedLine,a=e.generatedColumn,c=t.generatedColumn;return n>o||n==o&&c>=a||r.compareByGeneratedPositionsInflated(e,t)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},41393:(e,t,o)=>{const r=o(61944),n=o(8023),a=o(12443).I,c=o(85460).H;class l{constructor(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new c,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,o=new l({file:e.file,sourceRoot:t});return e.eachMapping((function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=n.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),o.addMapping(r)})),e.sources.forEach((function(r){let a=r;null!=t&&(a=n.relative(t,r)),o._sources.has(a)||o._sources.add(a);const c=e.sourceContentFor(r);null!=c&&o.setSourceContent(r,c)})),o}addMapping(e){const t=n.getArg(e,"generated"),o=n.getArg(e,"original",null);let r=n.getArg(e,"source",null),a=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,o,r,a),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:o&&o.line,originalColumn:o&&o.column,source:r,name:a})}setSourceContent(e,t){let o=e;null!=this._sourceRoot&&(o=n.relative(this._sourceRoot,o)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(o)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(o)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,o){let r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const c=this._sourceRoot;null!=c&&(r=n.relative(c,r));const l=this._mappings.toArray().length>0?new a:this._sources,i=new a;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){const r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=o&&(t.source=n.join(o,t.source)),null!=c&&(t.source=n.relative(c,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}const a=t.source;null==a||l.has(a)||l.add(a);const s=t.name;null==s||i.has(s)||i.add(s)}),this),this._sources=l,this._names=i,e.sources.forEach((function(t){const r=e.sourceContentFor(t);null!=r&&(null!=o&&(t=n.join(o,t)),null!=c&&(t=n.relative(c,t)),this.setSourceContent(t,r))}),this)}_validateMapping(e,t,o,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!o&&!r);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&o))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:o,original:t,name:r}))}_serializeMappings(){let e,t,o,a,c=0,l=1,i=0,s=0,u=0,m=0,d="";const p=this._mappings.toArray();for(let h=0,_=p.length;h<_;h++){if(t=p[h],e="",t.generatedLine!==l)for(c=0;t.generatedLine!==l;)e+=";",l++;else if(h>0){if(!n.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-c),c=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-m),m=a,e+=r.encode(t.originalLine-1-s),s=t.originalLine-1,e+=r.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(o=this._names.indexOf(t.name),e+=r.encode(o-u),u=o)),d+=e}return d}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));const o=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,t.SourceMapGenerator=l},5440:(e,t,o)=>{const r=o(41393).SourceMapGenerator,n=o(8023),a=/(\r?\n)/,c="$$$isSourceNode$$$";class l{constructor(e,t,o,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==o?null:o,this.name=null==n?null:n,this[c]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,t,o){const r=new l,c=e.split(a);let i=0;const s=function(){return e()+(e()||"");function e(){return i<c.length?c[i++]:void 0}};let u,m=1,d=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(m<e.generatedLine)){u=c[i]||"";const t=u.substr(0,e.generatedColumn-d);return c[i]=u.substr(e.generatedColumn-d),d=e.generatedColumn,h(p,t),void(p=e)}h(p,s()),m++,d=0}for(;m<e.generatedLine;)r.add(s()),m++;d<e.generatedColumn&&(u=c[i]||"",r.add(u.substr(0,e.generatedColumn)),c[i]=u.substr(e.generatedColumn),d=e.generatedColumn),p=e}),this),i<c.length&&(p&&h(p,s()),r.add(c.splice(i).join(""))),t.sources.forEach((function(e){const a=t.sourceContentFor(e);null!=a&&(null!=o&&(e=n.join(o,e)),r.setSourceContent(e,a))})),r;function h(e,t){if(null===e||void 0===e.source)r.add(t);else{const a=o?n.join(o,e.source):e.source;r.add(new l(e.originalLine,e.originalColumn,a,t,e.name))}}}add(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[c]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this}prepend(e){if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[c]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let o=0,r=this.children.length;o<r;o++)t=this.children[o],t[c]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let t,o;const r=this.children.length;if(r>0){for(t=[],o=0;o<r-1;o++)t.push(this.children[o]),t.push(e);t.push(this.children[o]),this.children=t}return this}replaceRight(e,t){const o=this.children[this.children.length-1];return o[c]?o.replaceRight(e,t):"string"==typeof o?this.children[this.children.length-1]=o.replace(e,t):this.children.push("".replace(e,t)),this}setSourceContent(e,t){this.sourceContents[n.toSetString(e)]=t}walkSourceContents(e){for(let t=0,o=this.children.length;t<o;t++)this.children[t][c]&&this.children[t].walkSourceContents(e);const t=Object.keys(this.sourceContents);for(let o=0,r=t.length;o<r;o++)e(n.fromSetString(t[o]),this.sourceContents[t[o]])}toString(){let e="";return this.walk((function(t){e+=t})),e}toStringWithSourceMap(e){const t={code:"",line:1,column:0},o=new r(e);let n=!1,a=null,c=null,l=null,i=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(a===r.source&&c===r.line&&l===r.column&&i===r.name||o.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),a=r.source,c=r.line,l=r.column,i=r.name,n=!0):n&&(o.addMapping({generated:{line:t.line,column:t.column}}),a=null,n=!1);for(let c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(a=null,n=!1):n&&o.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){o.setSourceContent(e,t)})),{code:t.code,map:o}}}t.SourceNode=l},8023:(e,t)=>{t.getArg=function(e,t,o){if(t in e)return e[t];if(3===arguments.length)return o;throw new Error('"'+t+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function r(e){return e}function n(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let o=t-10;o>=0;o--)if(36!==e.charCodeAt(o))return!1;return!0}function a(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=o?r:function(e){return n(e)?"$"+e:e},t.fromSetString=o?r:function(e){return n(e)?e.slice(1):e},t.compareByGeneratedPositionsInflated=function(e,t){let o=e.generatedLine-t.generatedLine;return 0!==o?o:(o=e.generatedColumn-t.generatedColumn,0!==o?o:(o=a(e.source,t.source),0!==o?o:(o=e.originalLine-t.originalLine,0!==o?o:(o=e.originalColumn-t.originalColumn,0!==o?o:a(e.name,t.name)))))};const c="http://host";function l(e){return t=>{const o=m(t),r=s(t),n=new URL(t,r);e(n);const a=n.toString();return"absolute"===o?a:"scheme-relative"===o?a.slice(5):"path-absolute"===o?a.slice(c.length):d(r,a)}}function i(e,t){return new URL(e,t).toString()}function s(e){const t=e.split("..").length-1,o=function(e,t){let o=0;for(;;){const e="p"+o++;if(-1===t.indexOf(e))return e}}(0,e);let r=`${c}/`;for(let e=0;e<t;e++)r+=`${o}/`;return r}const u=/^[A-Za-z0-9\+\-\.]+:/;function m(e){return"/"===e[0]?"/"===e[1]?"scheme-relative":"path-absolute":u.test(e)?"absolute":"path-relative"}function d(e,t){"string"==typeof e&&(e=new URL(e)),"string"==typeof t&&(t=new URL(t));const o=t.pathname.split("/"),r=e.pathname.split("/");for(r.length>0&&!r[r.length-1]&&r.pop();o.length>0&&r.length>0&&o[0]===r[0];)o.shift(),r.shift();return r.map((()=>"..")).concat(o).join("/")+t.search+t.hash}const p=l((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),h=l((e=>{}));t.normalize=h,t.join=function(e,t){const o=m(t),r=m(e);if(e=p(e),"absolute"===o)return i(t,void 0);if("absolute"===r)return i(t,e);if("scheme-relative"===o)return h(t);if("scheme-relative"===r)return i(t,i(e,c)).slice(5);if("path-absolute"===o)return h(t);if("path-absolute"===r)return i(t,i(e,c)).slice(c.length);const n=s(t+e);return d(n,i(t,i(e,n)))},t.relative=function(e,t){const o=function(e,t){if(m(e)!==m(t))return null;const o=s(e+t),r=new URL(e,o),n=new URL(t,o);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==r.protocol||n.user!==r.user||n.password!==r.password||n.hostname!==r.hostname||n.port!==r.port?null:d(r,n)}(e,t);return"string"==typeof o?o:h(t)}},10782:(e,t,o)=>{t.SourceMapGenerator=o(41393).SourceMapGenerator,t.SourceNode=o(5440).SourceNode}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AUTO_DRAFT_NAME:()=>oe,AddNewShippingClassModal:()=>ba,DETAILS_SECTION_ID:()=>q,NEW_PRODUCT_MANAGEMENT_ENABLED_OPTION_NAME:()=>I,PRODUCT_STATUS_LABELS:()=>zh,PostTypeContext:()=>Ct,RemoveConfirmationModal:()=>zc,TAB_GENERAL_ID:()=>j,TRACKS_SOURCE:()=>W,__experimentalAddProductsModal:()=>pd,__experimentalAttributeControl:()=>Oc,__experimentalAttributes:()=>jc,__experimentalBlockFill:()=>Fr,__experimentalBlockIcon:()=>yh,__experimentalBlockSlot:()=>Yn,__experimentalButtonWithDropdownMenu:()=>Lh,__experimentalCheckboxControl:()=>Do,__experimentalClearSelectedBlockOnBlur:()=>Ga,__experimentalDetailsDescriptionField:()=>ue,__experimentalDetailsFeatureField:()=>le,__experimentalDetailsNameField:()=>ae,__experimentalDetailsSummaryField:()=>se,__experimentalEditor:()=>Co,__experimentalEditorLoadingContext:()=>qe,__experimentalFormattedPrice:()=>th,__experimentalInitBlocks:()=>Ch,__experimentalLabel:()=>_n,__experimentalManageDownloadLimitsModal:()=>kr,__experimentalNotice:()=>Sc,__experimentalNumberControl:()=>Wp,__experimentalPluginHeaderItemModal:()=>Re,__experimentalPluginHeaderItemPopover:()=>ze,__experimentalProductFieldSection:()=>k,__experimentalProductImage:()=>rh,__experimentalProductList:()=>nh,__experimentalProductMVPCESFooter:()=>Sh,__experimentalProductMVPFeedbackModal:()=>Nh,__experimentalProductMVPFeedbackModalContainer:()=>Mh,__experimentalProductSectionLayout:()=>x,__experimentalProductSelect:()=>ah,__experimentalShippingDimensionsImage:()=>Na,__experimentalTextControl:()=>$p,__experimentalUseCurrencyInputProps:()=>bn,__experimentalUseFeedbackBar:()=>rt,__experimentalUseProductEntityProp:()=>wt,__experimentalUseProductHelper:()=>ne,__experimentalUseProductMetadata:()=>Qh,__experimentalUseProductScheduled:()=>ct,__experimentalUseProductTemplate:()=>bt,__experimentalUseVariationSwitcher:()=>Fh,__experimentalUseVariationsOrder:()=>Kh,__experimentalVariationQuickUpdateMenuItem:()=>Ud,__experimentalVariationSwitcherFooter:()=>Dh,__experimentalWooProductFieldItem:()=>V,__experimentalWooProductMoreMenuItem:()=>de,__experimentalWooProductSectionItem:()=>T,__experimentalWooProductTabItem:()=>F,createOrderedChildren:()=>B,deferSelectInFocus:()=>br,formatCurrencyDisplayValue:()=>fn,getCheckboxTracks:()=>ce,getCurrencySymbolProps:()=>Hh,getDerivedProductType:()=>te,getHeaderTitle:()=>Ze,getProductStatus:()=>Ih,getProductStockStatus:()=>gd,getProductStockStatusClass:()=>Ed,getProductTitle:()=>Oh,getProductVariationTitle:()=>$h,getSiteSettingsTimezoneAbbreviation:()=>ho,getTruncatedProductVariationTitle:()=>Gh,hasAttributesUsedForVariations:()=>Bp,initBlock:()=>Uh,isSameDay:()=>vo,isSiteSettingsTime12HourFormatted:()=>wo,isSiteSettingsTimezoneSameAsDateTimezone:()=>_o,isValidEmail:()=>xh,preventLeavingProductForm:()=>gt,productApiFetchMiddleware:()=>Wh,registerProductEditorBlockType:()=>C,sift:()=>$c,sortFillsByOrder:()=>N,store:()=>p,truncate:()=>Hd,useEvaluationContext:()=>b,useValidation:()=>tn,useValidations:()=>Xe});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{disableComplementaryArea:()=>Pe,enableComplementaryArea:()=>ke,pinItem:()=>Be,setFeatureDefaults:()=>Te,setFeatureValue:()=>Ve,toggleFeature:()=>Me,unpinItem:()=>Ne});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{getActiveComplementaryArea:()=>Fe,isFeatureActive:()=>Le,isItemPinned:()=>De});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{Icon:()=>Ge,addCard:()=>ol,addSubmenu:()=>nl,alignCenter:()=>za,alignJustify:()=>Oa,alignLeft:()=>Ra,alignNone:()=>cl,alignRight:()=>Ia,archive:()=>il,archiveTitle:()=>ul,arrowDown:()=>dl,arrowLeft:()=>At,arrowRight:()=>hl,arrowUp:()=>vl,aspectRatio:()=>fl,atSymbol:()=>gl,audio:()=>Cl,backup:()=>Al,blockDefault:()=>Sl,blockMeta:()=>Pl,blockTable:()=>Nl,box:()=>Vl,brush:()=>Fl,bug:()=>Ll,button:()=>Rl,buttons:()=>Il,calendar:()=>$l,cancelCircleFilled:()=>Ul,capturePhoto:()=>ql,captureVideo:()=>Wl,category:()=>Yl,chartBar:()=>Kl,check:()=>ot,chevronDown:()=>ir,chevronLeft:()=>$e,chevronRight:()=>ei,chevronRightSmall:()=>oi,chevronUp:()=>lr,classic:()=>ni,close:()=>Kt,closeSmall:()=>eo,cloud:()=>ii,cloudUpload:()=>ci,code:()=>ui,cog:()=>di,color:()=>hi,column:()=>vi,columns:()=>gi,comment:()=>Ci,commentAuthorAvatar:()=>Ai,commentAuthorName:()=>Si,commentContent:()=>Pi,commentEditLink:()=>Vi,commentReplyLink:()=>Ni,commentTitle:()=>Fi,copy:()=>fi,cover:()=>Li,create:()=>Ri,crop:()=>Ii,currencyDollar:()=>$i,currencyEuro:()=>Ui,currencyPound:()=>qi,customLink:()=>hr,customPostType:()=>Wi,desktop:()=>Yi,download:()=>es,dragHandle:()=>Ki,edit:()=>rs,external:()=>It,file:()=>as,flipHorizontal:()=>ls,flipVertical:()=>ss,footer:()=>$m,formatBold:()=>ms,formatCapitalize:()=>ps,formatIndent:()=>_s,formatIndentRTL:()=>ws,formatItalic:()=>Es,formatListBullets:()=>fs,formatListBulletsRTL:()=>bs,formatListNumbered:()=>Cs,formatListNumberedRTL:()=>ys,formatLowercase:()=>As,formatLtr:()=>La,formatOutdent:()=>xs,formatOutdentRTL:()=>Ss,formatRtl:()=>ks,formatStrikethrough:()=>Ps,formatUnderline:()=>Bs,formatUppercase:()=>Ns,fullscreen:()=>Ms,gallery:()=>Vs,globe:()=>Ts,grid:()=>Fs,group:()=>Ue,handle:()=>Ds,header:()=>Gm,heading:()=>Ls,help:()=>No,helpFilled:()=>Hs,home:()=>Is,html:()=>Os,image:()=>$s,inbox:()=>Rs,info:()=>Gs,insertAfter:()=>Us,insertBefore:()=>js,institution:()=>zs,justifyCenter:()=>Zs,justifyLeft:()=>qs,justifyRight:()=>Ws,justifySpaceBetween:()=>Js,key:()=>Ys,keyboardClose:()=>Xs,keyboardReturn:()=>_r,layout:()=>Ks,lifesaver:()=>Qs,lineDashed:()=>eu,lineDotted:()=>tu,lineSolid:()=>ou,link:()=>ru,linkOff:()=>nu,list:()=>au,listItem:()=>cu,listView:()=>Dt,lock:()=>lu,login:()=>iu,loop:()=>su,mapMarker:()=>uu,media:()=>sr,mediaAndText:()=>mu,megaphone:()=>du,menu:()=>pu,mobile:()=>hu,more:()=>_u,moreHorizontal:()=>vu,moreHorizontalMobile:()=>wu,moreVertical:()=>Ce,moveTo:()=>gu,navigation:()=>Eu,next:()=>Bt,notFound:()=>fu,overlayText:()=>bu,page:()=>yu,pageBreak:()=>Cu,pages:()=>Au,paragraph:()=>xu,payment:()=>Su,pencil:()=>os,people:()=>Mu,percent:()=>ku,pin:()=>Vu,plugins:()=>he,plus:()=>Pt,plusCircle:()=>Fu,plusCircleFilled:()=>Tu,positionCenter:()=>Pu,positionLeft:()=>Bu,positionRight:()=>Nu,post:()=>Du,postAuthor:()=>Lu,postCategories:()=>Hu,postComments:()=>Ru,postCommentsCount:()=>zu,postCommentsForm:()=>Iu,postContent:()=>Wo,postDate:()=>Ou,postExcerpt:()=>$u,postFeaturedImage:()=>Gu,postList:()=>Uu,postTerms:()=>qu,postTitle:()=>ju,preformatted:()=>Zu,previous:()=>Nt,pullLeft:()=>Wu,pullRight:()=>Ju,pullquote:()=>Yu,queryPagination:()=>Xu,queryPaginationNext:()=>Ku,queryPaginationNumbers:()=>Qu,queryPaginationPrevious:()=>em,queryTitle:()=>tm,quote:()=>om,receipt:()=>rm,redo:()=>Mt,removeBug:()=>nm,removeSubmenu:()=>am,replace:()=>cm,reset:()=>lm,resizeCornerNE:()=>im,reusableBlock:()=>sm,rotateLeft:()=>dm,rotateRight:()=>pm,row:()=>um,rss:()=>hm,search:()=>_m,separator:()=>vm,settings:()=>wm,share:()=>gm,shield:()=>Em,shipping:()=>km,shortcode:()=>fm,sidebar:()=>Um,siteLogo:()=>bm,stack:()=>Cm,starEmpty:()=>hn,starFilled:()=>pn,starHalf:()=>ym,store:()=>Am,stretchFullWidth:()=>xm,stretchWide:()=>Pm,styles:()=>Sm,subscript:()=>Bm,superscript:()=>Nm,swatch:()=>Mm,symbol:()=>mm,symbolFilled:()=>Im,table:()=>Rm,tableColumnAfter:()=>Vm,tableColumnBefore:()=>Tm,tableColumnDelete:()=>Fm,tableRowAfter:()=>Dm,tableRowBefore:()=>Lm,tableRowDelete:()=>Hm,tablet:()=>qm,tag:()=>zm,termDescription:()=>Om,textColor:()=>jm,tip:()=>Wm,title:()=>Zm,tool:()=>Jm,trash:()=>Pr,trendingDown:()=>Ym,trendingUp:()=>Xm,typography:()=>Km,undo:()=>Vt,ungroup:()=>Qm,unlock:()=>ed,update:()=>td,upload:()=>gr,verse:()=>od,video:()=>rd,warning:()=>nd,widget:()=>ad,wordpress:()=>cd});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{attributesInit:()=>Wc,initCatalogVisibility:()=>Po,initCheckbox:()=>zo,initCollapsible:()=>Go,initConditional:()=>Zo,initDescription:()=>ar,initDownloads:()=>Gr,initImages:()=>Qr,initInventoryQuantity:()=>hc,initLinkedProductList:()=>ph,initLowStockQty:()=>an,initName:()=>gn,initNotice:()=>kp,initNoticeHasVariations:()=>Tp,initNumber:()=>Kp,initPricing:()=>xn,initProductDetailsSectionDescription:()=>ud,initProductList:()=>kd,initRadio:()=>Mn,initRegularPrice:()=>Ln,initRequirePassword:()=>Qc,initSalePrice:()=>On,initScheduleSale:()=>Wn,initSection:()=>ta,initSectionDescription:()=>ca,initShippingClass:()=>Pa,initShippingDimensions:()=>Fa,initSku:()=>mn,initSubsection:()=>ma,initSubsectionDescription:()=>va,initSummary:()=>Za,initTab:()=>ec,initTag:()=>sc,initTaxonomy:()=>Ip,initText:()=>qp,initTextArea:()=>bh,initToggle:()=>Ec,initVariationItems:()=>_p,initVariationOptions:()=>Cp});const n=window.wp.data,a="MODAL_EDITOR_OPEN",c="MODAL_EDITOR_CLOSE",l="MODAL_EDITOR_SET_BLOCKS",i="MODAL_EDITOR_CONTENT_HAS_CHANGED",s="PANEL_PREPUBLISH_OPEN",u="PANEL_PREPUBLISH_CLOSE",m={openModalEditor:()=>({type:a}),closeModalEditor:()=>({type:c}),setModalEditorBlocks:e=>({type:l,blocks:e}),setModalEditorContentHasChanged:e=>({type:i,hasChanged:e}),openPrepublishPanel:()=>({type:s}),closePrepublishPanel:()=>({type:u})},d={modalEditor:{isOpen:!1,blocks:[],hasChanged:!1},prepublishPanel:{isOpen:!1}},p="woo/product-editor-ui",h=(0,n.createReduxStore)(p,{actions:m,selectors:{isModalEditorOpen:function(e){var t;return null===(t=e.modalEditor)||void 0===t?void 0:t.isOpen},getModalEditorBlocks:function(e){var t;return(null===(t=e.modalEditor)||void 0===t?void 0:t.blocks)||[]},getModalEditorContentHasChanged:function(e){var t;return!!(null===(t=e.modalEditor)||void 0===t?void 0:t.hasChanged)},isPrepublishPanelOpen:function(e){var t;return null===(t=e.prepublishPanel)||void 0===t?void 0:t.isOpen}},reducer:function(e=d,t){switch(t.type){case a:return{...e,modalEditor:{...e.modalEditor,isOpen:!0}};case c:return{...e,modalEditor:{...e.modalEditor,isOpen:!1}};case l:return{...e,modalEditor:{...e.modalEditor,blocks:t.blocks||[]}};case i:return{...e,modalEditor:{...e.modalEditor,hasChanged:(null==t?void 0:t.hasChanged)||!1}};case s:return{...e,prepublishPanel:{isOpen:!0}};case u:return{...e,prepublishPanel:{isOpen:!1}}}return e}}),_=window.wp.element,v=window.wp.hooks,w=window.wp.compose,g=__webpack_require__(80154).generate('\n{{\n\tfunction evaluateUnaryExpression( operator, operand ) {\n\t\tswitch ( operator ) {\n\t\t\tcase \'!\':\n\t\t\t\treturn !operand;\n\t\t\t\tbreak;\n\t\t\tcase \'-\':\n\t\t\t\treturn -operand;\n\t\t\t\tbreak;\n\t\t\tcase \'+\':\n\t\t\t\treturn +operand;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction evaluateBinaryExpression( head, tail ) {\n\t\treturn tail.reduce( ( leftOperand, tailElement ) => {\n\t\t\tconst operator = tailElement[ 1 ];\n\t\t\tconst rightOperand = tailElement[ 3 ];\n\n\t\t\tswitch ( operator ) {\n\t\t\t\tcase \'&&\':\n\t\t\t\t\treturn leftOperand && rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'||\':\n\t\t\t\t\treturn leftOperand || rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'===\':\n\t\t\t\t\treturn leftOperand === rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!==\':\n\t\t\t\t\treturn leftOperand !== rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'==\':\n\t\t\t\t\treturn leftOperand == rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'!=\':\n\t\t\t\t\treturn leftOperand != rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<=\':\n\t\t\t\t\treturn leftOperand <= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'<\':\n\t\t\t\t\treturn leftOperand < rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>=\':\n\t\t\t\t\treturn leftOperand >= rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'>\':\n\t\t\t\t\treturn leftOperand > rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'+\':\n\t\t\t\t\treturn leftOperand + rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'-\':\n\t\t\t\t\treturn leftOperand - rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'*\':\n\t\t\t\t\treturn leftOperand * rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'/\':\n\t\t\t\t\treturn leftOperand / rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \'%\':\n\t\t\t\t\treturn leftOperand % rightOperand;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn undefined;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}, head );\n\t}\n\n\tfunction getPropertyValue( obj, propertyName ) {\n\t\tif ( Object.hasOwn( obj, propertyName ) ) {\n\t\t\treturn obj[ propertyName ];\n\t\t} else if (\n\t\t\tArray.isArray( obj ) &&\n\t\t\tobj.length > 0 &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'key\' ) &&\n\t\t\tObject.hasOwn( obj[ 0 ], \'value\' )\n\t\t) {\n\t\t\t// We likely dealing with an array of objects with key/value pairs (like post meta data)\n\t\t\tconst item = obj.find( ( item ) => item.key === propertyName );\n\t\t\treturn item?.value;\n\t\t}\n\n\t\treturn undefined;\n\t}\n}}\n\nStart\n\t= Expression\n\nSourceCharacter\n\t= .\n\nWhiteSpace\n\t= " "\n\t/ "\\t"\n\nLineTerminator\n\t= "\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nLineTerminatorSequence\n\t= "\\n"\n\t/ "\\r\\n"\n\t/ "\\r"\n\t/ "\\u2028"\n\t/ "\\u2029"\n\nComment "comment"\n\t= MultiLineComment\n\nMultiLineComment\n\t= "/*" (!"*/" SourceCharacter)* "*/"\n\n__ "skipped"\n\t= (WhiteSpace / LineTerminatorSequence / Comment)*\n\nIdentifierPath\n\t= variable:Identifier accessor:(__ "." __ Identifier)* {\n\t\tconst path = variable.split( \'.\' );\n\t\tlet result = path.reduce( getPropertyValue, options.context );\n\n\t\tfor ( let i = 0; i < accessor.length; i++ ) {\n\t\t\tresult = getPropertyValue( result, accessor[ i ][ 3 ] );\n\t\t}\n\n\t\treturn result;\n\t}\n\nIdentifier\n\t= !ReservedWord name:IdentifierName {\n\t\treturn name;\n\t}\n\nIdentifierName\n\t= first:IdentifierStart rest:IdentifierPart* {\n\t\treturn text();\n\t}\n\nIdentifierStart\n\t= [a-zA-Z]\n\t/ "_"\n\t/ "$"\n\nIdentifierPart\n\t= IdentifierStart\n\nReservedWord\n\t= NullLiteral\n\t/ BooleanLiteral\n\n// Literals\n\nLiteral\n\t= NullLiteral\n\t/ BooleanLiteral\n\t/ NumericLiteral\n\t/ StringLiteral\n\nNullLiteral\n\t= NullToken { return null; }\n\nBooleanLiteral\n\t= "true" { return true; }\n\t/ "false" { return false; }\n\nNumericLiteral\n\t= literal:HexIntegerLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\t/ literal:DecimalLiteral !(IdentifierStart / DecimalDigit) {\n\t\treturn literal;\n\t}\n\nHexIntegerLiteral\n\t= "0x"i digits:$HexDigit+ {\n\t\treturn parseInt( digits, 16 );\n\t}\n\nHexDigit\n\t= [0-9a-f]i\n\nDecimalLiteral\n\t= DecimalIntegerLiteral "." DecimalDigit* ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ "." DecimalDigit+ ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\t/ DecimalIntegerLiteral ExponentPart? {\n\t\treturn parseFloat( text() );\n\t}\n\nDecimalIntegerLiteral\n\t= "0"\n\t/ NonZeroDigit DecimalDigit*\n\nDecimalDigit\n\t= [0-9]\n\nNonZeroDigit\n\t= [1-9]\n\nExponentPart\n\t= ExponentIndicator SignedInteger\n\nExponentIndicator\n\t= "e"i\n\nSignedInteger\n\t= [+-]? DecimalDigit+\n\nStringLiteral\n\t= \'"\' chars:DoubleQuotedStringCharacter* \'"\' {\n\t\treturn chars.join( \'\' );\n\t}\n\t/ "\'" chars:SingleQuotedStringCharacter* "\'" {\n\t\treturn chars.join( \'\' );\n\t}\n\nDoubleQuotedStringCharacter\n\t= !(\'"\' / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nSingleQuotedStringCharacter\n\t= !("\'" / "\\\\" / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\t/ "\\\\" escapeSequence:EscapeSequence {\n\t\treturn escapeSequence;\n\t}\n\t/ LineContinuation\n\nLineContinuation\n\t= "\\\\" LineTerminatorSequence {\n\t\treturn \'\';\n\t}\n\nEscapeSequence\n\t= CharacterEscapeSequence\n\t/ "0" !DecimalDigit {\n\t\treturn "\\0";\n\t}\n\t/ HexEscapeSequence\n\t/ UnicodeEscapeSequence\n\nCharacterEscapeSequence\n\t= SingleEscapeCharacter\n\t/ NonEscapeCharacter\n\nSingleEscapeCharacter\n\t= "\'"\n\t/ \'"\'\n\t/ "\\\\"\n\t/ "b" {\n\t\treturn "\\b";\n\t}\n\t/ "f" {\n\t\treturn "\\f";\n\t}\n\t/ "n" {\n\t\treturn "\\n";\n\t}\n\t/ "r" {\n\t\treturn "\\r";\n\t}\n\t/ "t" {\n\t\treturn "\\t";\n\t}\n\t/ "v" {\n\t\treturn "\\v";\n\t}\n\nNonEscapeCharacter\n\t= (!EscapeCharacter / LineTerminator) SourceCharacter {\n\t\treturn text();\n\t}\n\nEscapeCharacter\n\t= SingleEscapeCharacter\n\t/ DecimalDigit\n\t/ "x"\n\t/ "u"\n\nHexEscapeSequence\n\t= "x" digits:$(HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\nUnicodeEscapeSequence\n\t= "u" digits:$(HexDigit HexDigit HexDigit HexDigit) {\n\t\treturn String.fromCharCode( parseInt( digits, 16 ) );\n\t}\n\n// Tokens\n\nNullToken\n\t= "null" !IdentifierPart\n\nTrueToken\n\t= "true" !IdentifierPart\n\nFalseToken\n\t= "false" !IdentifierPart\n\n// Expressions\n\nPrimaryExpression\n\t= IdentifierPath\n\t/ Literal\n\t/ "(" __ expression:Expression __ ")" {\n\t\treturn expression;\n\t}\n\nUnaryExpression\n\t= PrimaryExpression\n\t/ operator:UnaryOperator __ operand:UnaryExpression {\n\t\treturn evaluateUnaryExpression( operator, operand );\n\t}\n\nUnaryOperator\n\t= "!"\n\t/ "-"\n\t/ "+"\n\nMultiplicativeExpression\n\t= head:UnaryExpression tail:(__ MultiplicativeOperator __ UnaryExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nMultiplicativeOperator\n\t= "*"\n\t/ "/"\n\t/ "%"\n\nAdditiveExpression\n\t= head:MultiplicativeExpression tail:(__ AdditiveOperator __ MultiplicativeExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nAdditiveOperator\n\t= "+"\n\t/ "-"\n\nRelationalExpression\n\t= head:AdditiveExpression tail:(__ RelationalOperator __ AdditiveExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nRelationalOperator\n\t= "<="\n\t/ "<"\n\t/ ">="\n\t/ ">"\n\nEqualityExpression\n\t= head:RelationalExpression tail:(__ EqualityOperator __ RelationalExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nEqualityOperator\n\t= "==="\n\t/ "!=="\n\t/ "=="\n\t/ "!="\n\nLogicalAndExpression\n\t= head:EqualityExpression tail:(__ LogicalAndOperator __ EqualityExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalAndOperator\n\t= "&&"\n\nLogicalOrExpression\n\t= head:LogicalAndExpression tail:(__ LogicalOrOperator __ LogicalAndExpression)* {\n\t\treturn evaluateBinaryExpression( head, tail );\n\t}\n\nLogicalOrOperator\n\t= "||"\n\nConditionalExpression\n\t= condition:LogicalOrExpression __ ConditionalTrueOperator __ expressionIfTrue:ConditionalExpression __ ConditionalFalseOperator __ expressionIfFalse:ConditionalExpression {\n\t\treturn condition ? expressionIfTrue : expressionIfFalse;\n\t}\n\t/ LogicalOrExpression\n\nConditionalTrueOperator\n\t= "?"\n\nConditionalFalseOperator\n\t= ":"\n\nExpression\n\t= __ expression:ConditionalExpression __ {\n\t\treturn expression;\n\t}\n'),E=window.wc.blockTemplates,f=window.wp.coreData;function b(e){const{postType:t}=e,o=(0,f.useEntityId)("postType",t);return{getEvaluationContext:r=>{const n=r("core").getEditedEntityRecord("postType",t,o);return{...e,editedProduct:n}}}}function C(e){const{metadata:t,settings:o,name:r}=e,n={...t,usesContext:(a=t.usesContext,[...a||[],"postType"])};var a;return(0,E.registerWooBlockType)({name:r,metadata:n,settings:o},b)}const y=(0,w.createHigherOrderComponent)((e=>t=>{const{hasInnerBlocks:o,allBlocksInvisible:r}=(0,n.useSelect)((e=>{var o,r,n;if("product-inventory-advanced"!==(null===(o=null==t?void 0:t.attributes)||void 0===o?void 0:o._templateBlockId))return{hasInnerBlocks:!0,allBlocksInvisible:!1};const a=b(t.context),c=e("core/block-editor").getBlock(null==t?void 0:t.clientId);let l=!1;if(null===(r=null==c?void 0:c.innerBlocks)||void 0===r?void 0:r.length){const t=null==c?void 0:c.innerBlocks[0];i=null==t?void 0:t.innerBlocks,s=a.getEvaluationContext(e),l=i.every((e=>{var t,o;return!(!(null===(t=e.attributes)||void 0===t?void 0:t._templateBlockHideConditions)||!Array.isArray(null===(o=e.attributes)||void 0===o?void 0:o._templateBlockHideConditions))&&e.attributes._templateBlockHideConditions.some((e=>function(e,t={}){return g.parse(e,{context:t})}(e.expression,s)))}))}var i,s;return{hasInnerBlocks:!!(null===(n=null==c?void 0:c.innerBlocks)||void 0===n?void 0:n.length),allBlocksInvisible:l}}));return o&&r?null:(0,_.createElement)(e,{...t})}),"maybeHideInventoryAdvancedCollapsible"),A=window.wc.components,x=({title:e,description:t,className:o,children:r})=>(0,_.createElement)(A.FormSection,{title:e,description:t,className:o},_.Children.map(r,(e=>(0,_.isValidElement)(e)&&e.props.onChange?(0,_.createElement)("div",{className:"product-field-layout"},e):e))),S=window.wp.components,k=({id:e,title:t,description:o,className:r,children:n})=>(0,_.createElement)(x,{title:t,description:o,className:r},(0,_.createElement)(S.Card,null,(0,_.createElement)(S.CardBody,null,n,(0,_.createElement)(A.__experimentalWooProductFieldItem.Slot,{section:e})))),P=window.React;function B(e,t,o,r){const{children:n,props:a}=function(e,t,o,r){if("function"==typeof e)return{children:e({...o,order:t,...r}),props:{order:t,...r}};if((0,P.isValidElement)(e))return"function"==typeof(null==e?void 0:e.type)?{children:e,props:{...o,order:t,...r}}:{children:e,props:{order:t,...r}};throw Error("Invalid children type")}(e,t,o,r);return(0,_.cloneElement)(n,a)}const N=e=>{const t=[...e].sort(((e,t)=>e[0].props.order-t[0].props.order));return(0,_.createElement)(P.Fragment,null,t)},M=({fieldName:e,sectionName:t,order:o,children:r})=>{const{registerFill:n,getFillHelpers:a}=(0,A.useSlotContext)(),c=`product_field/${t}/${e}`;return(0,_.useEffect)((()=>{n(c)}),[]),(0,_.createElement)(S.Fill,{name:`woocommerce_product_field_${t}`,key:c},(e=>B(r,o,{sectionName:t,...e,...a()},{_id:c})))},V=({children:e,sections:t,id:o})=>(0,_.createElement)(_.Fragment,null,t.map((({name:t,order:r=20})=>(0,_.createElement)(M,{fieldName:o,sectionName:t,order:r,key:t},e))));V.Slot=({fillProps:e,section:t})=>{const{filterRegisteredFills:o}=(0,A.useSlotContext)();return(0,_.createElement)(S.Slot,{name:`woocommerce_product_field_${t}`,fillProps:e},(e=>{var t;return N?_.Children.map(null===(t=N(o(e)))||void 0===t?void 0:t.props.children,(e=>(0,_.createElement)("div",{className:"woocommerce-product-form__field"},e))):null}))};const T=({children:e,tabs:t})=>(0,_.createElement)(_.Fragment,null,t.map((({name:t,order:o})=>(0,_.createElement)(S.Fill,{name:`woocommerce_product_section_${t}`,key:t},(r=>B(e,o||20,{tabName:t,...r}))))));T.Slot=({fillProps:e,tab:t})=>(0,_.createElement)(S.Slot,{name:`woocommerce_product_section_${t}`,fillProps:e},(e=>N?N(e):null));const F=({children:e,tabProps:t,templates:o})=>o?(0,_.createElement)(_.Fragment,null,o.map((o=>(0,_.createElement)(S.Fill,{name:`woocommerce_product_tab_${o.name}`,key:o.name},(r=>B(e,o.order||20,{},{tabProps:t,templateName:o.name,order:o.order||20,...r})))))):(console.warn("WooProductTabItem fill is missing templates property."),null);F.Slot=({fillProps:e,template:t,children:o})=>(0,_.createElement)(S.Slot,{name:`woocommerce_product_tab_${t}`,fillProps:e},(t=>{const r=t.reduce((({childrenMap:t,tabs:o},r)=>{var n;const a=r[0].props;if(a&&a.tabProps){t[a.tabProps.name]=r[0];const c="function"==typeof a.tabProps?a.tabProps(e):a.tabProps;o.push({...c,order:null!==(n=a.order)&&void 0!==n?n:20})}return{childrenMap:t,tabs:o}}),{childrenMap:{},tabs:[]}),n=r.tabs.sort(((e,t)=>e.order-t.order));return o(n,r.childrenMap)}));const D=window.wp.i18n,L=window.wp.url,H=window.wc.data,R="woocommerce_product_editor_show_feedback_bar",z="product_editor",I="woocommerce_new_product_management_enabled",O="woocommerce_single_variation_notice_dismissed",$="[^-\\d\\%s]+",G="[%s](?=%s*[%s])",U="__ADD_NEW_SHIPPING_CLASS_OPTION__",j="tab/general",q=`${j}/details`,Z="product-details",W="product-block-editor-v1",J="woocommerce/product-editor",Y=[5,10,25],X=window.wc.tracks,K=({product:e,permalinkPrefix:t,permalinkSuffix:o,onCancel:r,onSaved:a,saveHandler:c})=>{const{createNotice:l}=(0,n.useDispatch)("core/notices"),[i,s]=(0,_.useState)(!1),[u,m]=(0,_.useState)(e.slug||(0,L.cleanForSlug)(e.name)),d=t+(0,L.cleanForSlug)(u)+o;return(0,_.createElement)(S.Modal,{title:(0,D.__)("Edit product link","woocommerce"),onRequestClose:()=>r(),className:"woocommerce-product-link-edit-modal"},(0,_.createElement)("div",{className:"woocommerce-product-link-edit-modal__wrapper"},(0,_.createElement)("p",{className:"woocommerce-product-link-edit-modal__description"},(0,D.__)("Create a unique link for this product. Use simple, descriptive words and numbers. We'll replace spaces with hyphens (-).","woocommerce")),(0,_.createElement)(S.TextControl,{label:(0,D.__)("Product link","woocommerce"),name:"slug",value:u,onChange:m,hideLabelFromVision:!0,help:(0,_.createInterpolateElement)((0,D.__)("Preview: <link />","woocommerce"),{link:(0,_.createElement)("strong",null,d)})}),(0,_.createElement)("div",{className:"woocommerce-product-link-edit-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,onClick:()=>r()},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{isPrimary:!0,isBusy:i,disabled:i||u===e.slug,onClick:async()=>{s(!0),await(async()=>{var t;(0,X.recordEvent)("product_update_slug",{source:W,product_id:e.id,product_type:e.type});const{slug:o,permalink:r}=null!==(t=await c(u))&&void 0!==t?t:{};o?l(o===(0,L.cleanForSlug)(u)?"success":"info",o===(0,L.cleanForSlug)(u)?(0,D.__)("Product link successfully updated.","woocommerce"):(0,D.__)("Product link already existed, updated to ","woocommerce")+r):l("error",(0,D.__)("Failed to update product link.","woocommerce")),a()})(),s(!1)}},(0,D.__)("Save","woocommerce")))))},Q=window.wc.number,ee=window.wc.currency,te=e=>{var t;return window.wcAdminFeatures["product-variation-management"]&&(null===(t=e.attributes)||void 0===t?void 0:t.find((e=>e.options.length&&e.variation)))?"variable":"simple"},oe="AUTO-DRAFT";function re(e,t){return"publish"===e&&t?[{label:(0,D.__)("View in store","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_preview_changes",{source:W}),window.open(t,"_blank")}}]:[]}function ne(){const{createProduct:e,updateProduct:t,deleteProduct:o}=(0,n.useDispatch)(H.PRODUCTS_STORE_NAME),{batchUpdateProductVariations:r,invalidateResolutionForStoreSelector:a}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),{createNotice:c}=(0,n.useDispatch)("core/notices"),[l,i]=(0,_.useState)(!1),[s,u]=(0,_.useState)({draft:!1,publish:!1}),m=(0,_.useContext)(ee.CurrencyContext),d=(0,_.useCallback)((async(t,o,r=!1)=>(u({...s,[o]:!0}),e({...t,status:o,type:te(t)}).then((e=>{if(!r){const t="publish"===e.status?(0,D.__)("Product published.","woocommerce"):(0,D.__)("Product successfully created.","woocommerce");c("success",`🎉 ${t}`,{actions:re(e.status,e.permalink)})}return u({...s,[o]:!1}),e}),(e=>(r||c("error","publish"===o?(0,D.__)("Failed to publish product.","woocommerce"):(0,D.__)("Failed to create product.","woocommerce")),u({...s,[o]:!1}),e))))),[s]),p=(0,_.useCallback)((async(e,o,n,l=!1)=>(u({...s,[n]:!0}),t(e,{...o,status:n,type:te(o)}).then((async e=>async function(e,t){if(t)return r({product_id:e},{update:Object.values(t).flatMap(Object.entries).map((([e,t])=>({id:e,menu_order:t})))})}(e.id,o.variationsOrder).then((()=>a("getProductVariations"))).then((()=>e)))).then((e=>{if(!l){const t="draft"===o.status&&"publish"===e.status?(0,D.__)("Product published.","woocommerce"):(0,D.__)("Product successfully updated.","woocommerce");c("success",`🎉 ${t}`,{actions:re(e.status,e.permalink)})}return u({...s,[n]:!1}),e}),(e=>(l||c("error",(0,D.__)("Failed to update product.","woocommerce")),u({...s,[n]:!1}),e))))),[s]),h=(0,_.useCallback)((async(e,t="draft")=>d(function(e){return H.productReadOnlyProperties.forEach((t=>delete e[t])),e}({...e,name:(e.name||oe)+" - Copy"}),t)),[]),v=(0,_.useCallback)((async e=>(i(!0),o(e).then((e=>{const t=(0,D.__)("Successfully moved product to Trash.","woocommerce");return c("success",`🎉 ${t}`),i(!1),e}),(e=>(c("error",(0,D.__)("Failed to move product to Trash.","woocommerce")),i(!1),e))))),[]),w=(0,_.useCallback)((e=>{if(!e.length)return"";const{getCurrencyConfig:t}=m,{decimalSeparator:o}=t(),r=new RegExp($.replace("%s",o),"g"),n=new RegExp(G.replaceAll("%s",o),"g");return e.replace(r,"").replace(n,"").replace(o,".")}),[m]),g=(0,_.useCallback)((e=>{const{getCurrencyConfig:t}=m,{decimalSeparator:o,thousandSeparator:r}=t();return Q.numberFormat({decimalSeparator:o,thousandSeparator:r},e)}),[m]),E=(0,_.useCallback)((e=>{const{getCurrencyConfig:t}=m,{decimalSeparator:o,thousandSeparator:r}=t();return Q.parseNumber({decimalSeparator:o,thousandSeparator:r},e)}),[m]);return{createProductWithStatus:d,updateProductWithStatus:p,copyProductWithStatus:h,deleteProductAndRedirect:v,sanitizePrice:w,formatNumber:g,parseNumber:E,isUpdatingDraft:s.draft,isUpdatingPublished:s.publish,isDeleting:l}}const ae=({})=>{const{updateProductWithStatus:e}=ne(),[t,o]=(0,_.useState)(!1),{getInputProps:r,values:a,touched:c,errors:l,setValue:i,resetForm:s}=(0,A.useFormContext)(),{permalinkPrefix:u,permalinkSuffix:m}=(0,n.useSelect)((e=>{const{getPermalinkParts:t}=e(H.PRODUCTS_STORE_NAME);if(a.id){const e=t(a.id);return{permalinkPrefix:null==e?void 0:e.prefix,permalinkSuffix:null==e?void 0:e.suffix}}return{}}));return(0,_.createElement)("div",null,(0,_.createElement)(S.TextControl,{label:(0,_.createInterpolateElement)((0,D.__)("Name <required />","woocommerce"),{required:(0,_.createElement)("span",{className:"woocommerce-product-form__optional-input"},(0,D.__)("(required)","woocommerce"))}),name:`${Z}-name`,placeholder:(0,D.__)("e.g. 12 oz Coffee Mug","woocommerce"),...r("name",{onBlur:()=>{var e;!a.sku&&(null===(e=a.name)||void 0===e?void 0:e.length)&&i("sku",(0,L.cleanForSlug)(a.name))}})}),a.id&&!(Boolean(c.name)&&Boolean(l.name))&&u&&(0,_.createElement)("span",{className:"woocommerce-product-form__secondary-text product-details-section__product-link"},(0,D.__)("Product link","woocommerce"),": ",(0,_.createElement)("a",{href:a.permalink,target:"_blank",rel:"noreferrer"},u,a.slug||(0,L.cleanForSlug)(a.name),m),(0,_.createElement)(S.Button,{variant:"link",onClick:()=>o(!0)},(0,D.__)("Edit","woocommerce"))),t&&(0,_.createElement)(K,{permalinkPrefix:u||"",permalinkSuffix:m||"",product:a,onCancel:()=>o(!1),onSaved:()=>o(!1),saveHandler:async t=>{const o=await e(a.id,{slug:t},a.status,!0);if(o&&o.id)return s({...a,slug:o.slug,permalink:o.permalink},c,l),{slug:o.slug,permalink:o.permalink}}}))};function ce(e){return{onChange:t=>{(0,X.recordEvent)(`product_checkbox_${e}`,{checked:t})}}}const le=()=>{const{getCheckboxControlProps:e}=(0,A.useFormContext)();return(0,_.createElement)(S.CheckboxControl,{label:(0,_.createElement)(_.Fragment,null,(0,D.__)("Feature this product","woocommerce"),(0,_.createElement)(A.__experimentalTooltip,{text:(0,_.createInterpolateElement)((0,D.__)("Include this product in a featured section on your website with a widget or shortcode. <moreLink />","woocommerce"),{moreLink:(0,_.createElement)(A.Link,{href:"https://woo.com/document/woocommerce-shortcodes/#products",target:"_blank",type:"external",onClick:()=>(0,X.recordEvent)("add_product_learn_more",{category:Z})},(0,D.__)("Learn more","woocommerce"))})})),...e("featured",ce("featured"))})},ie=window.wp.blocks,se=()=>{const{setValue:e,values:t}=(0,A.useFormContext)(),[o,r]=(0,_.useState)((0,ie.parse)(t.short_description||""));return(0,_.createElement)(A.__experimentalRichTextEditor,{label:(0,D.__)("Summary","woocommerce"),blocks:o,onChange:t=>{r(t),o.length&&e("short_description",(0,ie.serialize)(t))},placeholder:(0,D.__)("Summarize this product in 1-2 short sentences. We'll show it at the top of the page.","woocommerce")})},ue=()=>{const{setValue:e,values:t}=(0,A.useFormContext)(),[o,r]=(0,_.useState)((0,ie.parse)(t.description||""));return(0,_.createElement)(A.__experimentalRichTextEditor,{label:(0,D.__)("Description","woocommerce"),blocks:o,onChange:t=>{r(t),o.length&&e("description",(0,ie.serialize)(t))},placeholder:(0,D.__)("Describe this product. What makes it unique? What are its most important features?","woocommerce")})},me="WooProductMenuMenuItem",de=({children:e,order:t=1})=>(0,_.createElement)(S.Fill,{name:me},(o=>(0,A.createOrderedChildren)(e,t,o)));de.Slot=({fillProps:e})=>(0,_.createElement)(S.Slot,{name:me,fillProps:e},A.sortFillsByOrder);const pe=window.wp.primitives,he=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_e.apply(this,arguments)}var ve=__webpack_require__(87608),we=__webpack_require__.n(ve);const ge=(0,_.forwardRef)((function(e,t){let{footer:o,header:r,sidebar:n,secondarySidebar:a,notices:c,content:l,drawer:i,actions:s,labels:u,className:m,shortcuts:d}=e;const p=(0,S.__unstableUseNavigateRegions)(d);!function(e){(0,_.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const h={drawer:(0,D.__)("Drawer"),header:(0,D.__)("Header"),body:(0,D.__)("Content"),secondarySidebar:(0,D.__)("Block Library"),sidebar:(0,D.__)("Settings"),actions:(0,D.__)("Publish"),footer:(0,D.__)("Footer"),...u};return(0,_.createElement)("div",_e({},p,{ref:(0,w.useMergeRefs)([t,p.ref]),className:we()(m,"interface-interface-skeleton",p.className,!!o&&"has-footer")}),!!i&&(0,_.createElement)("div",{className:"interface-interface-skeleton__drawer",role:"region","aria-label":h.drawer,tabIndex:"-1"},i),(0,_.createElement)("div",{className:"interface-interface-skeleton__editor"},!!r&&(0,_.createElement)("div",{className:"interface-interface-skeleton__header",role:"region","aria-label":h.header,tabIndex:"-1"},r),(0,_.createElement)("div",{className:"interface-interface-skeleton__body"},!!a&&(0,_.createElement)("div",{className:"interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":h.secondarySidebar,tabIndex:"-1"},a),!!c&&(0,_.createElement)("div",{className:"interface-interface-skeleton__notices"},c),(0,_.createElement)("div",{className:"interface-interface-skeleton__content",role:"region","aria-label":h.body,tabIndex:"-1"},l),!!n&&(0,_.createElement)("div",{className:"interface-interface-skeleton__sidebar",role:"region","aria-label":h.sidebar,tabIndex:"-1"},n),!!s&&(0,_.createElement)("div",{className:"interface-interface-skeleton__actions",role:"region","aria-label":h.actions,tabIndex:"-1"},s))),!!o&&(0,_.createElement)("div",{className:"interface-interface-skeleton__footer",role:"region","aria-label":h.footer,tabIndex:"-1"},o))})),Ee=window.lodash;function fe(e){let{scope:t,...o}=e;return(0,_.createElement)(S.Fill,_e({name:`PinnedItems/${t}`},o))}fe.Slot=function(e){let{scope:t,className:o,...r}=e;return(0,_.createElement)(S.Slot,_e({name:`PinnedItems/${t}`},r),(e=>!(0,Ee.isEmpty)(e)&&(0,_.createElement)("div",{className:we()(o,"interface-pinned-items")},e)))};const be=fe,Ce=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ye(e){let{as:t=S.DropdownMenu,className:o,label:r=(0,D.__)("Options"),popoverProps:n,toggleProps:a,children:c}=e;return(0,_.createElement)(t,{className:we()("interface-more-menu-dropdown",o),icon:Ce,label:r,popoverProps:{position:"bottom left",...n,className:we()("interface-more-menu-dropdown__content",null==n?void 0:n.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>c(e)))}const Ae=window.wp.deprecated;var xe=__webpack_require__.n(Ae);const Se=window.wp.preferences,ke=(e,t)=>o=>{let{registry:r}=o;t&&r.dispatch(Se.store).set(e,"complementaryArea",t)},Pe=e=>t=>{let{registry:o}=t;o.dispatch(Se.store).set(e,"complementaryArea",null)},Be=(e,t)=>o=>{let{registry:r}=o;if(!t)return;const n=r.select(Se.store).get(e,"pinnedItems");!0!==(null==n?void 0:n[t])&&r.dispatch(Se.store).set(e,"pinnedItems",{...n,[t]:!0})},Ne=(e,t)=>o=>{let{registry:r}=o;if(!t)return;const n=r.select(Se.store).get(e,"pinnedItems");r.dispatch(Se.store).set(e,"pinnedItems",{...n,[t]:!1})};function Me(e,t){return function(o){let{registry:r}=o;xe()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(Se.store).toggle(e,t)}}function Ve(e,t,o){return function(r){let{registry:n}=r;xe()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(Se.store).set(e,t,!!o)}}function Te(e,t){return function(o){let{registry:r}=o;xe()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(Se.store).setDefaults(e,t)}}const Fe=(0,n.createRegistrySelector)((e=>(t,o)=>e(Se.store).get(o,"complementaryArea"))),De=(0,n.createRegistrySelector)((e=>(t,o,r)=>{var n;const a=e(Se.store).get(o,"pinnedItems");return null===(n=null==a?void 0:a[r])||void 0===n||n})),Le=(0,n.createRegistrySelector)((e=>(t,o,r)=>(xe()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Se.store).get(o,r)))),He=(0,n.createReduxStore)("core/interface",{reducer:()=>{},actions:e,selectors:t});(0,n.register)(He);const Re=({children:e,label:t,icon:o,title:r})=>{const[n,a]=(0,_.useState)(!1),c="function"==typeof e?e({isOpen:n,setOpen:a}):e;return(0,_.createElement)(be,{scope:J},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Button,{variant:"tertiary",icon:null!=o?o:he,label:t,onClick:()=>a(!n)}),n&&(0,_.createElement)(S.Modal,{title:r,onRequestClose:()=>a(!1)},c)))},ze=({children:e,label:t,icon:o})=>{const[r,n]=(0,_.useState)(!1),a="function"==typeof e?e({isVisible:r,setVisible:n}):e;return(0,_.createElement)(be,{scope:J},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Button,{variant:"tertiary",icon:null!=o?o:he,label:t,onClick:()=>n(!r)}),r&&(0,_.createElement)(S.Popover,{onFocusOutside:()=>n(!1),onClose:()=>n(!1),focusOnMount:"container"},a)))},Ie=window.wc.adminLayout,Oe=window.wp.keyboardShortcuts,$e=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Ge=function(e){let{icon:t,size:o=24,...r}=e;return(0,_.cloneElement)(t,{width:o,height:o,...r})},Ue=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),je=window.wc.navigation,qe=(0,_.createContext)(!1),Ze=(e,t)=>Boolean(e)&&e!==t?e:t===oe?(0,D.__)("Add new product","woocommerce"):t,We=()=>(0,_.createElement)(_.Fragment,null,(0,_.createElement)(ye,{toggleProps:{onClick:()=>(0,X.recordEvent)("product_dropdown_click")},popoverProps:{className:"woocommerce-product-header__more-menu"}},(({onClose:e})=>(0,_.createElement)(_.Fragment,null,(0,_.createElement)(de.Slot,{fillProps:{onClose:e}})))));function Je(e){switch(e.code){case"variable_product_no_variation_prices":case"product_form_field_error":return e.message;case"product_invalid_sku":return(0,D.__)("Invalid or duplicated SKU.","woocommerce");case"product_create_error":return(0,D.__)("Failed to create product.","woocommerce");case"product_publish_error":return(0,D.__)("Failed to publish product.","woocommerce");case"product_preview_error":return(0,D.__)("Failed to preview product.","woocommerce");default:return(0,D.__)("Failed to save product.","woocommerce")}}const Ye=(0,_.createContext)({errors:{},registerValidator:()=>()=>{},unRegisterValidator:()=>()=>{},validateField:()=>Promise.resolve(void 0),validateAll:()=>Promise.resolve({})});function Xe(){const e=(0,_.useContext)(Ye),[t,o]=(0,_.useState)(!1);return{isValidating:t,validate:async t=>(o(!0),new Promise(((o,r)=>{e.validateAll(t).then((e=>{!function(e){return Object.values(e).some(Boolean)}(e)?o():r(e)})).catch((()=>{r(e.errors)}))})).finally((()=>{o(!1)})))}}function Ke({productStatus:e,...t}){const{createErrorNotice:o}=(0,n.useDispatch)("core/notices"),r=function({productStatus:e,productType:t="product",disabled:o,onClick:r,onSaveSuccess:a,onSaveError:c,...l}){const i=(0,_.useRef)(),[s]=(0,f.useEntityProp)("postType",t,"id"),[u]=(0,f.useEntityProp)("postType",t,"permalink"),{hasEdits:m,isDisabled:d}=(0,n.useSelect)((e=>{const{hasEditsForEntityRecord:o,isSavingEntityRecord:r}=e("core");return{isDisabled:r("postType",t,s),hasEdits:o("postType",t,s)}}),[s]),{isValidating:p,validate:h}=Xe(),v=o||d||p,{editEntityRecord:w,saveEditedEntityRecord:g}=(0,n.useDispatch)("core");let E;return"string"==typeof u&&(E=new URL(u),E.searchParams.append("preview","true")),{"aria-label":(0,D.__)("Preview in new tab","woocommerce"),children:(0,D.__)("Preview","woocommerce"),target:"_blank",...l,ref(e){"function"==typeof l.ref&&l.ref(e),i.current=e},"aria-disabled":v,href:null==E?void 0:E.toString(),variant:"tertiary",onClick:async function(o){var n;if(v)return o.preventDefault();if(r&&r(o),m){o.preventDefault();try{await h(),"auto-draft"===e&&await w("postType",t,s,{status:"draft"});const o=await g("postType",t,s,{throwOnError:!0});null===(n=i.current)||void 0===n||n.click(),a&&a(o)}catch(e){if(c){let t=e;t.code||(t={code:"product_preview_error"}),c(t)}}}}}}({productStatus:e,...t,onClick(){(0,X.recordEvent)("product_preview_changes",{source:W})},onSaveSuccess(t){if("auto-draft"===e){const e=(0,je.getNewPath)({},`/product/${t.id}`);(0,je.navigateTo)({url:e})}},onSaveError(e){const t=Je(e);o(t)}});return(0,_.createElement)(S.Button,{...r})}const Qe={cross_sell_ids:"cross_sells",reviews_allowed:"enable_reviews",downloadable:"is_downloadable",virtual:"is_virtual",images:"product_gallery",upsell_ids:"upsells"},et=["attributes","categories","description","manage_stock","menu_order","note","purchase_note","sale_price","short_description","tags","weight","cross_sell_ids","reviews_allowed","downloadable","virtual","images","upsell_ids"];function tt(e,t){const{id:o,type:r}=t,n={product_id:o,source:"product-blocks-editor-v1",product_type:r};t.parent_id>0&&(t.note=t.description,delete t.description);for(const e of Object.keys(t))if(et.includes(e)){const o=Qe[e]||e;Array.isArray(t[e])||"string"==typeof t[e]?n[o]=t[e].length?"yes":"no":n[o]=t[e]?"yes":"no"}if(t.downloadable||t.virtual){const{downloadable:e,virtual:o}=t,r={virtual:o,downloadable:e};n.product_type_options=Object.keys(r).filter((e=>r[e])).join(",")}"images"in t&&(n.product_image=t.images.length?"yes":"no"),t.dimensions&&(n.dimensions=t.dimensions.length.length||t.dimensions.width.length||t.dimensions.height.length?"yes":"no"),(0,X.recordEvent)(e,n)}const ot=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),rt=()=>{const{updateOptions:e}=(0,n.useDispatch)(H.OPTIONS_STORE_NAME),{shouldShowFeedbackBar:t}=(0,n.useSelect)((e=>{var t;const{getOption:o,hasFinishedResolution:r}=e(H.OPTIONS_STORE_NAME),n=o(R);return{shouldShowFeedbackBar:!!r("getOption",[R])&&(null===(t=window.wcTracks)||void 0===t?void 0:t.isEnabled)&&"yes"===n}}),[]);return{shouldShowFeedbackBar:t,maybeShowFeedbackBar:async()=>{var t;const{showFeedbackBarOption:o}=await(async()=>{const{getOption:e}=(0,n.resolveSelect)(H.OPTIONS_STORE_NAME);return{showFeedbackBarOption:await e(R)}})();(null===(t=window.wcTracks)||void 0===t?void 0:t.isEnabled)&&"no"!==o&&e({[R]:"yes"})},hideFeedbackBar:()=>{e({[R]:"no"})}}};function nt({productStatus:e,productType:t="product",...o}){const{createSuccessNotice:r,createErrorNotice:a}=(0,n.useDispatch)("core/notices"),{maybeShowFeedbackBar:c}=rt(),l=function({productStatus:e,productType:t="product",disabled:o,onClick:r,onSaveSuccess:a,onSaveError:c,...l}){const[i]=(0,f.useEntityProp)("postType",t,"id"),{hasEdits:s,isDisabled:u}=(0,n.useSelect)((e=>{const{hasEditsForEntityRecord:o,isSavingEntityRecord:r}=e("core");return{isDisabled:r("postType",t,i),hasEdits:o("postType",t,i)}}),[i]),{isValidating:m,validate:d}=Xe(),p=o||u||"publish"!==e&&!s||m,{editEntityRecord:h,saveEditedEntityRecord:v}=(0,n.useDispatch)("core");let w;return w="publish"===e?(0,D.__)("Switch to draft","woocommerce"):s||"auto-draft"===e?(0,D.__)("Save draft","woocommerce"):(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Icon,{icon:ot}),(0,D.__)("Saved","woocommerce")),{children:w,...l,"aria-disabled":p,variant:"tertiary",onClick:async function(e){if(p)return e.preventDefault();r&&r(e);try{await d({status:"draft"}),await h("postType",t,i,{status:"draft"});const e=await v("postType",t,i,{throwOnError:!0});a&&a(e)}catch(e){c&&c(e)}}}}({productStatus:e,productType:t,...o,onSaveSuccess(t){if(tt("product_edit",t),r((0,D.__)("Product saved as draft.","woocommerce")),c(),"auto-draft"===e){const e=(0,je.getNewPath)({},`/product/${t.id}`);(0,je.navigateTo)({url:e})}},onSaveError(e){const t=Je(e);a(t)}});return(0,_.createElement)(S.Button,{...l})}const at=window.wp.date;function ct(e){const[t]=(0,f.useEntityProp)("postType",e,"date_created");return(0,at.isInTheFuture)(t)}function lt({productStatus:e,productType:t="product",...o}){const{createSuccessNotice:r,createErrorNotice:a}=(0,n.useDispatch)("core/notices"),{maybeShowFeedbackBar:c}=rt(),l=function({productType:e="product",productStatus:t,disabled:o,onClick:r,onPublishSuccess:a,onPublishError:c,...l}){const{isValidating:i,validate:s}=Xe(),[u]=(0,f.useEntityProp)("postType",e,"id"),m=ct(e),{isSaving:d,isDirty:p}=(0,n.useSelect)((t=>{const{isSavingEntityRecord:o,hasEditsForEntityRecord:r}=t("core");return{isSaving:o("postType",e,u),isDirty:r("postType",e,u)}}),[u]),h=d||i,_=o||h||!p,v="product"!==e||"publish"===t,{editEntityRecord:w,saveEditedEntityRecord:g}=(0,n.useDispatch)("core");return{children:m?(0,D.__)("Schedule","woocommerce"):v?(0,D.__)("Update","woocommerce"):(0,D.__)("Publish","woocommerce"),...l,isBusy:h,"aria-disabled":_,variant:"primary",onClick:async function(t){r&&r(t);try{"product"===e?(await s({status:"publish"}),v||await w("postType",e,u,{status:"publish"})):await s();const t=await g("postType",e,u,{throwOnError:!0});t&&a&&a(t)}catch(e){if(c){let t=e;if(!t.code)if(t={code:v?"product_publish_error":"product_create_error"},e.variations)t.code="variable_product_no_variation_prices",t.message=e.variations;else{const o=Object.values(e).find((e=>void 0!==e));void 0!==o&&(t.code="product_form_field_error",t.message=o)}c(t)}}}}}({productType:t,productStatus:e,...o,onPublishSuccess(o){const n="product"!==t||"publish"===e;n&&tt("product_update",o);const a=n?(0,D.__)("Product updated.","woocommerce"):(0,D.__)("Product published.","woocommerce"),l={icon:"🎉",actions:[{label:(0,D.__)("View in store","woocommerce"),url:o.permalink,onClick(e){e.preventDefault(),window.open(o.permalink,"_blank")}}]};if(r(a,l),c(),"auto-draft"===e){const e=(0,je.getNewPath)({},`/product/${o.id}`);(0,je.navigateTo)({url:e})}},onPublishError(e){const t=Je(e);a(t)}});return(0,_.createElement)(S.Button,{...l})}function it(){return(0,_.createElement)("div",{className:"woocommerce-product-header is-loading","aria-hidden":"true"},(0,_.createElement)("div",{className:"woocommerce-product-header__inner"},(0,_.createElement)("div",null),(0,_.createElement)("div",{className:"woocommerce-product-header__title"}),(0,_.createElement)("div",{className:"woocommerce-product-header__actions"},(0,_.createElement)("div",{className:"woocommerce-product-header__action"}),(0,_.createElement)("div",{className:"woocommerce-product-header__action"}),(0,_.createElement)("div",{className:"woocommerce-product-header__action"}),(0,_.createElement)("div",{className:"woocommerce-product-header__action"}))),(0,_.createElement)("div",{className:"woocommerce-product-tabs"},Array(7).fill(0).map(((e,t)=>(0,_.createElement)("div",{key:t,className:"components-button"})))))}function st({productId:e,productType:t="product"}){const{openPrepublishPanel:o}=(0,n.useDispatch)(p),{isValidating:r}=Xe(),{isSaving:a,isDirty:c}=(0,n.useSelect)((o=>{const{isSavingEntityRecord:r,hasEditsForEntityRecord:n}=o("core");return{isSaving:r("postType",t,e),isDirty:n("postType",t,e)}}),[e,t]),l=a||r,i=l||!c,s=ct(t);return(0,_.createElement)(S.Button,{onClick:()=>{(0,X.recordEvent)("product_prepublish_panel",{source:W,action:"view"}),o()},isBusy:l,"aria-disabled":i,children:s?(0,D.__)("Schedule","woocommerce"):(0,D.__)("Publish","woocommerce"),variant:"primary"})}const ut="woocommerce_product_tabs";function mt({onChange:e=(()=>{})}){const[t,o]=(0,_.useState)(null),r=(0,je.getQuery)(),[a]=(0,f.useEntityProp)("postType","product","id"),c=(0,n.useSelect)((e=>e("core").getEditedEntityRecord("postType","product",a)));return(0,_.useEffect)((()=>{e(t)}),[t]),(0,_.useEffect)((()=>{r.tab&&o(r.tab)}),[r.tab]),(0,_.createElement)(S.NavigableMenu,{role:"tablist",onNavigate:function(e,t){t.click()},className:"woocommerce-product-tabs",orientation:"horizontal"},(0,_.createElement)(S.Slot,{fillProps:{onClick:e=>{(0,je.navigateTo)({url:(0,je.getNewPath)({tab:e})}),(0,X.recordEvent)("product_tab_click",function(e,t){const o={product_tab:e,product_type:t.type,source:W};return"inventory"===e?{...o,is_store_stock_management_enabled:t.manage_stock}:o}(e,c))}},name:ut},(e=>N?(function(e){var r,n;if(!t)for(let t=0;t<e.length;t++){if(e[t][0].props.disabled)continue;const a=(null===(n=null===(r=e[t][0].props)||void 0===r?void 0:r.children)||void 0===n?void 0:n.key)||null;return void o(a)}}(e),N(e)):null)))}const dt=(0,D.__)("Return to the main product","woocommerce");function pt({onTabSelect:e,productType:t="product"}){const o=(0,_.useContext)(qe),[r]=(0,f.useEntityProp)("postType",t,"id"),a=(0,n.useSelect)((e=>{const{getEntityRecord:o}=e("core");return o("postType",t,r)}),[r]),[c]=(0,f.useEntityProp)("postType",t,"name"),l=(0,Ie.useAdminSidebarWidth)();if((0,_.useEffect)((()=>{document.querySelectorAll(".interface-interface-skeleton__header").forEach((e=>{e.style&&(e.style.width="calc(100% - "+l+"px)",e.style.left=l+"px")}))}),[l]),o)return(0,_.createElement)(it,null);const i=(null==a?void 0:a.parent_id)>0,s="product"!==t||"publish"===(null==a?void 0:a.status);return(0,_.createElement)("div",{className:"woocommerce-product-header",role:"region","aria-label":(0,D.__)("Product Editor top bar.","woocommerce"),tabIndex:-1},(0,_.createElement)("div",{className:"woocommerce-product-header__inner"},i?(0,_.createElement)("div",{className:"woocommerce-product-header__back"},(0,_.createElement)(S.Tooltip,{className:"woocommerce-product-header__back-tooltip",text:dt},(0,_.createElement)("div",{className:"woocommerce-product-header__back-tooltip-wrapper"},(0,_.createElement)(S.Button,{icon:$e,isTertiary:!0,onClick:()=>{(0,X.recordEvent)("product_variation_back_to_main_product",{source:W});const e=(0,je.getNewPath)({tab:"variations"},`/product/${null==a?void 0:a.parent_id}`);(0,je.navigateTo)({url:e})}},(0,D.__)("Main product","woocommerce"))))):(0,_.createElement)("div",null),(0,_.createElement)("h1",{className:"woocommerce-product-header__title"},i?(0,_.createElement)("div",{className:"woocommerce-product-header__variable-product-title"},(0,_.createElement)(Ge,{icon:Ue}),(0,_.createElement)("span",{className:"woocommerce-product-header__variable-product-name"},null==a?void 0:a.name),(0,_.createElement)("span",{className:"woocommerce-product-header__variable-product-id"},"# ",null==a?void 0:a.id)):Ze(c,null==a?void 0:a.name)),(0,_.createElement)("div",{className:"woocommerce-product-header__actions"},!i&&(0,_.createElement)(nt,{productType:t,productStatus:null==a?void 0:a.status}),(0,_.createElement)(Ke,{productType:t,productStatus:null==a?void 0:a.status}),!s&&window.wcAdminFeatures["product-pre-publish-modal"]?(0,_.createElement)(st,{productId:r,productType:t}):(0,_.createElement)(lt,{productType:t,productStatus:null==a?void 0:a.status}),(0,_.createElement)(Ie.WooHeaderItem.Slot,{name:"product"}),(0,_.createElement)(be.Slot,{scope:J}),(0,_.createElement)(We,null))),(0,_.createElement)(mt,{onChange:e}))}const ht=window.wp.mediaUtils,_t=window.wp.plugins,vt=window.wp.blockEditor,wt=function(e,t){var o;const r=e.startsWith("meta_data."),n=e.replace("meta_data.",""),[a,c]=(0,f.useEntityProp)("postType",(null==t?void 0:t.postType)||"product",e),[l,i]=(0,f.useEntityProp)("postType",(null==t?void 0:t.postType)||"product","meta_data"),s=(0,_.useMemo)((()=>l?l.find((e=>e.key===n)):null),[l,n]),u=(0,_.useCallback)((e=>{i(s?l.map((t=>t.key===n?{...t,value:e}:t)):[...l,{key:n,value:e}])}),[l,n,s]);return r?[null!==(o=null==s?void 0:s.value)&&void 0!==o?o:null==t?void 0:t.fallbackValue,u]:[a,c]},gt=e=>(t,o)=>{const r=new URLSearchParams(t.search),n=new URLSearchParams(o.search);return r.delete("tab"),n.delete("tab"),(void 0===e||"/add-product"!==n.get("path")||r.get("path")!=="/product/"+e)&&r.toString()!==n.toString()};function Et(e){return delete e.content,delete e.blocks,e}function ft(e="product"){const[t]=(0,f.useEntityProp)("postType",e,"id"),{edits:o}=(0,n.useSelect)((o=>{const{getEntityRecordNonTransientEdits:r}=o("core");return{edits:Et(r("postType",e,t))}}),[t,e]);return{hasEdit:function(e){if(e.startsWith("meta_data.")){const t=e.replace("meta_data.","");return o.hasOwnProperty("meta_data")&&-1!==o.meta_data.findIndex((e=>e.key===t))}return o.hasOwnProperty(e)},hasEdits:Object.keys(o).length>0}}const bt=(e,t)=>{var o,r;const n=null!==(r=null===(o=window.productBlockEditorSettings)||void 0===o?void 0:o.productTemplates)&&void 0!==r?r:[],a="variable"===t?"standard-product-template":e,c="variable"===t?"simple":t;let l=n.find((e=>e.id===a&&e.productData.type===c));return l||(l=n.find((e=>e.productData.type===c))),{productTemplate:l,isResolving:!1}},Ct=(0,_.createContext)("product"),yt=window.wc.wcSettings,At=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));function xt({onClick:e}){return(0,_.createElement)(S.Button,{className:"woocommerce-iframe-editor__back-button",icon:At,onClick:e},(0,D.__)("Back","woocommerce"))}function St({children:e,enableResizing:t,settings:o,...r}){const n=(0,vt.__unstableUseMouseMoveTypingReset)();return(0,_.createElement)(vt.__unstableIframe,{ref:n,name:"editor-canvas",className:"edit-site-visual-editor__editor-canvas",...r},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(vt.__unstableEditorStyles,{styles:null==o?void 0:o.styles}),(0,_.createElement)("style",null,".is-root-container {\n\t\t\t\t\t\t\t\tpadding: 36px;\n\t\t\t\t\t\t\t\tdisplay: flow-root;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbody { position: relative; }"),t&&(0,_.createElement)("style",null,".is-root-container { min-height: 0 !important; }"),e))}const kt=(0,_.createContext)({hasRedo:!1,hasUndo:!1,isDocumentOverviewOpened:!1,isInserterOpened:!1,isSidebarOpened:!0,redo:()=>{},setIsDocumentOverviewOpened:()=>{},setIsInserterOpened:()=>{},setIsSidebarOpened:()=>{},undo:()=>{}}),Pt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),Bt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),Nt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),Mt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})),Vt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})),Tt=(0,_.forwardRef)((function(e,t){const{hasRedo:o,redo:r}=(0,_.useContext)(kt);return(0,_.createElement)(S.Button,{...e,ref:t,icon:(0,D.isRTL)()?Vt:Mt,label:(0,D.__)("Redo","woocommerce"),"aria-disabled":!o,onClick:o?r:void 0,className:"editor-history__redo"})})),Ft=(0,_.forwardRef)((function(e,t){const{hasUndo:o,undo:r}=(0,_.useContext)(kt);return(0,_.createElement)(S.Button,{...e,ref:t,icon:(0,D.isRTL)()?Mt:Vt,label:(0,D.__)("Undo","woocommerce"),"aria-disabled":!o,onClick:o?r:void 0,className:"editor-history__undo"})})),Dt=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"})),Lt=(0,_.forwardRef)((function(e,t){const{isDocumentOverviewOpened:o,setIsDocumentOverviewOpened:r}=(0,_.useContext)(kt);return(0,_.createElement)(S.Button,{...e,ref:t,icon:Dt,isPressed:o,label:(0,D.__)("Document overview","woocommerce"),onClick:function(){r(!o)},className:"document-overview"})})),Ht=(0,_.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})),Rt=(0,_.forwardRef)((function(e,t){const{isSidebarOpened:o,setIsSidebarOpened:r}=(0,_.useContext)(kt);return(0,_.createElement)(S.Button,{...e,ref:t,icon:Ht,isPressed:o,label:(0,D.__)("Show/hide block inspector","woocommerce"),onClick:function(){r(!o)}})})),zt=()=>{const{createNotice:e}=(0,n.useDispatch)("core/notices"),{blocks:t}=(0,n.useSelect)((e=>{const{getBlocks:t}=e(vt.store);return{blocks:t()}}),[]),o=(0,w.useCopyToClipboard)((()=>(0,ie.serialize)(t)),(()=>{e("success",(0,D.__)("All content copied.","woocommerce"))}));return(0,_.createElement)(S.MenuItem,{ref:o,role:"menuitem",onClick:()=>{(0,X.recordEvent)("product_iframe_editor_copy_all_content_menu_item_click")},disabled:!t.length},(0,D.__)("Copy all content","woocommerce"))},It=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Ot=()=>(0,_.createElement)(S.MenuItem,{role:"menuitem",icon:It,href:(0,D.__)("https://wordpress.org/documentation/article/wordpress-block-editor/","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_iframe_editor_help_menu_item_click")},target:"_blank",rel:"noopener noreferrer"},(0,D.__)("Help","woocommerce"),(0,_.createElement)(S.VisuallyHidden,{as:"span"},(0,D.__)("(opens in a new tab)","woocommerce"))),$t=()=>(0,_.createElement)(S.MenuGroup,{label:(0,D.__)("Tools","woocommerce")},(0,_.createElement)(zt,null),(0,_.createElement)(Ot,null));function Gt(){const{set:e}=(0,n.useDispatch)(Se.store);return(0,w.useViewportMatch)("medium")?(0,_.createElement)(S.MenuGroup,{label:(0,D.__)("View","woocommerce")},(0,_.createElement)(Se.PreferenceToggleMenuItem,{scope:"core",name:"fixedToolbar",onToggle:()=>{e("core","distractionFree",!1)},label:(0,D.__)("Top toolbar","woocommerce"),info:(0,D.__)("Access all block and document tools in a single place","woocommerce"),messageActivated:(0,D.__)("Top toolbar activated","woocommerce"),messageDeactivated:(0,D.__)("Top toolbar deactivated","woocommerce")})):null}function Ut(){const e=(0,yt.getSetting)("admin");return e.gutenberg_version?parseFloat(null==e?void 0:e.gutenberg_version):0}const jt=()=>{const e=(0,yt.isWpVersion)("6.5",">=")||Ut()>17.3;return(0,_.createElement)(ye,null,(()=>(0,_.createElement)(_.Fragment,null,e&&(0,_.createElement)(Gt,null),(0,_.createElement)($t,null))))};function qt({onSave:e=(()=>{}),onCancel:t=(()=>{})}){const{isInserterOpened:o,setIsInserterOpened:r}=(0,_.useContext)(kt),[a,c]=(0,_.useState)(!0),l=(0,w.useViewportMatch)("medium"),i=(0,_.useRef)(null),{isInserterEnabled:s,isTextModeEnabled:u,hasBlockSelection:m,hasFixedToolbar:d}=(0,n.useSelect)((e=>{var t,o;const{hasInserterItems:r,getBlockRootClientId:n,getBlockSelectionEnd:a,__unstableGetEditorMode:c,getBlockSelectionStart:l}=e(vt.store),{get:i}=e(Se.store);return{isTextModeEnabled:"text"===c(),isInserterEnabled:r(null!==(o=n(null!==(t=a())&&void 0!==t?t:""))&&void 0!==o?o:void 0),hasBlockSelection:!!l(),hasFixedToolbar:i("core","fixedToolbar")}}),[]),p=(0,D.__)("Document tools","woocommerce"),h=(0,_.useCallback)((()=>{var e;o?(null===(e=i.current)||void 0===e||e.focus(),r(!1)):r(!0)}),[o,r]);(0,_.useEffect)((()=>{m&&c(!1)}),[m]);const v=(0,yt.isWpVersion)("6.5",">=")||Ut()>17.3;return(0,_.createElement)(vt.NavigableToolbar,{className:"woocommerce-iframe-editor__header-toolbar","aria-label":p},(0,_.createElement)("div",{className:"woocommerce-iframe-editor__header-toolbar-left"},(0,_.createElement)("div",{className:"woocommerce-iframe-editor-document-tools"},(0,_.createElement)(S.ToolbarItem,{ref:i,as:S.Button,className:"woocommerce-iframe-editor__header-toolbar-inserter-toggle",variant:"primary",isPressed:o,onMouseDown:e=>{e.preventDefault()},onClick:h,disabled:!s,icon:Pt,label:o?(0,D.__)("Close","woocommerce"):(0,D.__)("Add","woocommerce"),showTooltip:!0}),l&&(0,_.createElement)(S.ToolbarItem,{as:vt.ToolSelector,disabled:u}),(0,_.createElement)(S.ToolbarItem,{as:Ft}),(0,_.createElement)(S.ToolbarItem,{as:Tt}),(0,_.createElement)(S.ToolbarItem,{as:Lt})),d&&l&&v&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{className:we()("selected-block-tools-wrapper",{"is-collapsed":a})},(0,_.createElement)(vt.BlockToolbar,{hideDragHandle:!0})),(0,_.createElement)(S.Popover.Slot,{name:"block-toolbar"}),m&&(0,_.createElement)(S.Button,{className:"edit-post-header__block-tools-toggle",icon:a?Bt:Nt,onClick:()=>{c((e=>!e))},label:a?(0,D.__)("Show block tools","woocommerce"):(0,D.__)("Hide block tools","woocommerce")}))),(0,_.createElement)("div",{className:"woocommerce-iframe-editor__header-toolbar-right"},(0,_.createElement)(S.ToolbarItem,{as:S.Button,variant:"tertiary",className:"woocommerce-modal-actions__cancel-button",onClick:t,text:(0,D.__)("Cancel","woocommerce")}),(0,_.createElement)(S.ToolbarItem,{as:S.Button,variant:"primary",className:"woocommerce-modal-actions__done-button",onClick:e,text:(0,D.__)("Done","woocommerce")}),(0,_.createElement)(S.ToolbarItem,{as:Rt,className:"woocommerce-show-block-inspector-panel"}),(0,_.createElement)(S.ToolbarItem,{as:jt})))}const Zt=window.wp.keycodes,Wt=20;function Jt({direction:e,resizeWidthBy:t}){return(0,_.createElement)(_.Fragment,null,(0,_.createElement)("button",{className:`resizable-editor__drag-handle is-${e}`,"aria-label":(0,D.__)("Drag to resize","woocommerce"),"aria-describedby":`resizable-editor__resize-help-${e}`,onKeyDown:function(o){const{keyCode:r}=o;"left"===e&&r===Zt.LEFT||"right"===e&&r===Zt.RIGHT?t(Wt):("left"===e&&r===Zt.RIGHT||"right"===e&&r===Zt.LEFT)&&t(-Wt)}}),(0,_.createElement)(S.VisuallyHidden,{id:`resizable-editor__resize-help-${e}`},(0,D.__)("Use left and right arrow keys to resize the canvas.","woocommerce")))}const Yt={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function Xt({enableResizing:e,height:t,children:o}){const[r,n]=(0,_.useState)("100%"),a=(0,_.useRef)(),c=(0,_.useCallback)((e=>{a.current&&n(a.current.offsetWidth+e)}),[]);return(0,_.createElement)(S.ResizableBox,{ref:e=>{a.current=null==e?void 0:e.resizable},size:{width:e?r:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,o)=>{n(o.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",minHeight:t,enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,_.createElement)(Jt,{direction:"left",resizeWidthBy:c}),right:(0,_.createElement)(Jt,{direction:"right",resizeWidthBy:c})},handleClasses:void 0,handleStyles:{left:Yt,right:Yt}},o)}const Kt=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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 Qt(){const{setIsInserterOpened:e}=(0,_.useContext)(kt),t=(0,w.useViewportMatch)("medium","<"),{rootClientId:o}=(0,n.useSelect)((e=>{const{getBlockRootClientId:t}=e(vt.store);return{rootClientId:t("")}})),r=(0,_.useCallback)((()=>e(!1)),[e]),a=t?"div":S.VisuallyHidden,[c,l]=(0,w.__experimentalUseDialog)({onClose:r,focusOnMount:!1}),i=(0,_.useRef)(null);return(0,_.useEffect)((()=>{var e;null===(e=i.current)||void 0===e||e.focusSearch()}),[]),(0,_.createElement)("div",{ref:c,...l,className:"woocommerce-iframe-editor__inserter-panel"},(0,_.createElement)(a,{className:"woocommerce-iframe-editor__inserter-panel-header"},(0,_.createElement)(S.Button,{icon:Kt,onClick:r,label:(0,D.__)("Close block inserter","woocommerce")})),(0,_.createElement)("div",{className:"woocommerce-iframe-editor__inserter-panel-content"},(0,_.createElement)(vt.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:t,rootClientId:o,ref:i})))}const eo=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"}));function to(){const{setIsDocumentOverviewOpened:e}=(0,_.useContext)(kt),t=(0,w.useFocusOnMount)("firstElement"),o=(0,w.useFocusReturn)(),r=(0,w.useFocusReturn)(),[n,a]=(0,_.useState)(null),[c,l]=(0,_.useState)("list-view"),i=(0,_.useRef)(null),s=(0,w.useMergeRefs)([r,t,i,a]);return(0,_.createElement)("div",{className:"woocommerce-iframe-editor__document-overview-sidebar",onKeyDown:function(t){"Escape"!==t.code||t.defaultPrevented||(t.preventDefault(),e(!1))}},(0,_.createElement)(S.Button,{className:"woocommerce-iframe-editor__document-overview-sidebar-close-button",ref:o,icon:eo,label:(0,D.__)("Close","woocommerce"),onClick:()=>e(!1)}),(0,_.createElement)(S.TabPanel,{className:"woocommerce-iframe-editor__document-overview-sidebar-tab-panel",initialTabName:c,onSelect:l,tabs:[{name:"list-view",title:"List View",className:"woocommerce-iframe-editor__document-overview-sidebar-tab-item"}]},(e=>(0,_.createElement)("div",{className:"woocommerce-iframe-editor__document-overview-sidebar-tab-content",ref:s},"list-view"===e.name?(0,_.createElement)(vt.__experimentalListView,{dropZoneElement:n}):null))))}function oo(){const{isInserterOpened:e,isDocumentOverviewOpened:t}=(0,_.useContext)(kt);return e?(0,_.createElement)(Qt,null):t?(0,_.createElement)(to,null):null}const ro=50;function no({maxHistory:e=ro,setBlocks:t}){const[o,r]=(0,_.useState)([]),[n,a]=(0,_.useState)(0);return{appendEdit:function(t){const c=[...o.slice(0,n+1),t].slice(-1*e);r(c),a(c.length-1)},hasRedo:!!o.length&&n<o.length-1,hasUndo:!!o.length&&n>0,redo:function(){const e=Math.min(o.length-1,n+1);o[e]&&(t(o[e]),a(e))},undo:function(){const e=Math.max(0,n-1);o[e]&&(t(o[e]),a(e))}}}function ao({onChange:e=(()=>{}),onClose:t,onInput:o=(()=>{}),settings:r,showBackButton:a=!1}){const[c]=(0,w.useResizeObserver)(),[l,i]=(0,_.useState)([]),s=(0,n.useSelect)((e=>e(p).getModalEditorBlocks()),[]);(0,_.useEffect)((()=>{i(s)}),[]);const{setModalEditorBlocks:u,setModalEditorContentHasChanged:m}=(0,n.useDispatch)(p),{appendEdit:d}=no({setBlocks:u}),{appendEdit:h,hasRedo:v,hasUndo:g,redo:E,undo:f}=no({setBlocks:i}),[b,C]=(0,_.useState)(!1),[y,A]=(0,_.useState)(!1),[x,k]=(0,_.useState)(!0),{clearSelectedBlock:P,updateSettings:B}=(0,n.useDispatch)(vt.store),N=(0,n.useSelect)((e=>e(vt.store).getSettings()),[]),{hasFixedToolbar:M}=(0,n.useSelect)((e=>{const{get:t}=e(Se.store);return{hasFixedToolbar:t("core","fixedToolbar")}}),[]);(0,_.useEffect)((()=>{B(productBlockEditorSettings)}),[]);const V=r||N,T=(0,yt.isWpVersion)("6.5",">=")||Ut()>17.3;return(0,_.createElement)("div",{className:"woocommerce-iframe-editor"},(0,_.createElement)(kt.Provider,{value:{hasRedo:v,hasUndo:g,isInserterOpened:b,isDocumentOverviewOpened:y,redo:E,setIsInserterOpened:C,setIsDocumentOverviewOpened:A,undo:f,isSidebarOpened:x,setIsSidebarOpened:k}},(0,_.createElement)(vt.BlockEditorProvider,{settings:{...V,hasFixedToolbar:M||!T,templateLock:!1},value:s,onChange:t=>{h(t),i(t),e(t)},onInput:e=>{h(e),i(e),o(e)},useSubRegistry:!0},(0,_.createElement)(qt,{onSave:()=>{d(l),u(l),m(!0),e(l),null==t||t()},onCancel:()=>{d(s),u(s),e(s),i(s),null==t||t()}}),(0,_.createElement)("div",{className:"woocommerce-iframe-editor__main"},(0,_.createElement)(oo,null),(0,_.createElement)(vt.BlockTools,{className:we()("woocommerce-iframe-editor__content",{"old-fixed-toolbar-shown":!T}),onClick:e=>{e.target===e.currentTarget&&P()}},(0,_.createElement)(vt.BlockEditorKeyboardShortcuts.Register,null),a&&t&&(0,_.createElement)(xt,{onClick:()=>{setTimeout(t,550)}}),(0,_.createElement)(Xt,{enableResizing:!0,height:"100%"},(0,_.createElement)(St,{enableResizing:!0,settings:V},c,(0,_.createElement)(vt.BlockList,{className:"edit-site-block-editor__block-list wp-site-blocks"})),(0,_.createElement)(S.Popover.Slot,null)),(0,_.createElement)("div",{className:"woocommerce-iframe-editor__content-inserter-clipper"})),x&&(0,_.createElement)("div",{className:"woocommerce-iframe-editor__sidebar"},(0,_.createElement)(vt.BlockInspector,null))))))}function co({initialBlocks:e,onChange:t,onClose:o,title:r}){const{closeModalEditor:a}=(0,n.useDispatch)(p),c=(0,w.useDebounce)((e=>{null==t||t(e)}),250);function l(){const e=c.flush();e&&(null==t||t(e)),a(),null==o||o()}return(0,_.createElement)(S.Modal,{className:"woocommerce-modal-editor",title:r,onRequestClose:l,shouldCloseOnClickOutside:!1},(0,_.createElement)(ao,{initialBlocks:e,onInput:c,onChange:c,onClose:l}))}function lo(){return(0,_.createElement)("div",{className:"woocommerce-product-block-editor__block-list block-editor-block-list__layout is-root-container is-loading","aria-hidden":"true"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-tab"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title-wrapper"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title"})),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__content wp-block-woocommerce-product-section-header__content--block-gap-unit-30"},(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-input"})),(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-textarea"})),(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-textarea"})))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title-wrapper"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__heading-title"})),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section__content wp-block-woocommerce-product-section__content--block-gap-unit-30"},(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-input"})),(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-textarea"})),(0,_.createElement)("div",{className:"block-editor-block-list__block"},(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"}),(0,_.createElement)("div",{className:"woocommerce-product-form-textarea"}))))))}function io({context:e,postType:t,productId:o,setIsEditorLoading:r}){!function(e="product"){const[t]=(0,f.useEntityProp)("postType",e,"id"),{hasEdits:o}=ft(e),{isSaving:r}=(0,n.useSelect)((o=>{const{isSavingEntityRecord:r}=o("core");return{isSaving:r("postType",e,t)}}),[t,e]);(0,je.useConfirmUnsavedChanges)(o||r,gt(t))}(t);const a=(0,n.useSelect)((e=>{const{canUser:t}=e("core");return!1!==t("create","media","")}),[]);(0,_.useEffect)((()=>{const e=()=>{document.dispatchEvent(new Event("wp-pin-menu"))};return window.addEventListener("scroll",e,{once:!0}),()=>window.removeEventListener("scroll",e)}),[]);const[c,l]=(0,_.useState)(void 0);(0,_.useEffect)((()=>{let e;const t=()=>{void 0!==window.productBlockEditorSettings?l(window.productBlockEditorSettings):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}}),[]);const i=(0,_.useMemo)((()=>{if(void 0===c)return;const e=a?{mediaUpload({onError:e,...t}){(0,ht.uploadMedia)({wpAllowedMimeTypes:c.allowedMimeTypes||void 0,onError:({message:t})=>e(t),...t})}}:{};return{...c,...e,templateLock:"all"}}),[c,a]),[s]=wt("type",{postType:t}),[u]=wt("meta_data._product_template_id",{postType:t}),{productTemplate:m}=bt(u,s),{layoutTemplate:d}=(0,E.useLayoutTemplate)(function(e,t){return(null==e?void 0:e.layoutTemplateId)?e.layoutTemplateId:"product_variation"===t?"product-variation":"simple-product"}(m,t)),[h,v,w]=(0,f.useEntityBlockEditor)("postType",t,{id:o}),{updateEditorSettings:g}=(0,n.useDispatch)("core/editor"),b=!i||!d||"product_variation"!==t&&!m||-1===o;(0,_.useLayoutEffect)((()=>{if(b)return;const e=(0,ie.synchronizeBlocksWithTemplate)([],d.blockTemplates);w(e,{}),g({...i,productTemplate:m}),r(b)}),[d,i,m,o]);const C=(0,n.useSelect)((e=>e(p).isModalEditorOpen()),[]),{closeModalEditor:y}=(0,n.useDispatch)(p);return C?(0,_.createElement)(co,{onClose:y,title:(0,D.__)("Edit description","woocommerce")}):(0,_.createElement)("div",{className:"woocommerce-product-block-editor"},(0,_.createElement)(vt.BlockContextProvider,{value:e},(0,_.createElement)(vt.BlockEditorProvider,{value:h,onInput:v,onChange:w,settings:i,useSubRegistry:!1},(0,_.createElement)(vt.BlockEditorKeyboardShortcuts.Register,null),(0,_.createElement)(vt.BlockTools,null,(0,_.createElement)(vt.ObserveTyping,null,b?(0,_.createElement)(lo,null):(0,_.createElement)(vt.BlockList,{className:"woocommerce-product-block-editor__block-list"}))),(0,_.createElement)(Ct.Provider,{value:e.postType},(0,_.createElement)(_t.PluginArea,{scope:"woocommerce-product-block-editor"})))))}function so({initialValue:e,children:t}){const o=(0,_.useRef)({}),r=(0,_.useRef)({}),[n,a]=(0,_.useState)({});async function c(t,r){const n=o.current;return t in n?(0,n[t])(e,r).then((e=>(a((o=>({...o,[t]:e}))),e))):Promise.resolve(void 0)}return(0,_.createElement)(Ye.Provider,{value:{errors:n,registerValidator:function(e,t){return o.current={...o.current,[e]:t},t=>{r.current[e]=t}},unRegisterValidator:function(e){o.current[e]&&delete o.current[e],r.current[e]&&delete r.current[e]},validateField:c,validateAll:async function(e){const t={},n=o.current;for(const o in n)t[o]=await c(o,e);a(t);const l=function(e,t){const o=Object.entries(e).filter((([e,o])=>(null==o?void 0:o.closest('.is-selected[role="tabpanel"]'))&&Boolean(t[e]))),[r]=o.sort((([,e],[,t])=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),[,n]=null!=r?r:[];return n}(r.current,t);return null==l||l.focus(),t}}},t)}function uo({label:e,postPassword:t,onInputChange:o}){const r=(0,w.useInstanceId)(S.BaseControl,"post_password"),[n,a]=(0,_.useState)(Boolean(t));return(0,_.useEffect)((()=>{n||""===t||a(!0)}),[t]),(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.CheckboxControl,{label:e,checked:n,className:"wp-block-woocommerce-product-password-fields__field",onChange:e=>{(0,X.recordEvent)("product_catalog_require_password",{source:W,value:e}),a(e),e||o("")}}),n&&(0,_.createElement)(S.BaseControl,{id:r,label:(0,D.__)("Password","woocommerce")},(0,_.createElement)(S.__experimentalInputControl,{id:r,value:t,onChange:o})))}function mo({catalogVisibility:e,label:t,visibility:o,onCheckboxChange:r}){return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.CheckboxControl,{label:t,checked:e===o||"hidden"===e,onChange:t=>function(t){if(t){if("visible"===e)return r(o),void(0,X.recordEvent)("product_catalog_visibility",{source:W,visibility:e});r("hidden")}else{if("hidden"===e)return"catalog"===o?(r("search"),void(0,X.recordEvent)("product_catalog_visibility",{source:W,visibility:e})):"search"===o?(r("catalog"),void(0,X.recordEvent)("product_catalog_visibility",{source:W,visibility:e})):void 0;r("visible"),(0,X.recordEvent)("product_catalog_visibility",{source:W,visibility:e})}}(t)}))}function po({productType:e}){const[t,o]=(0,f.useEntityProp)("postType",e,"catalog_visibility"),[r,n]=(0,f.useEntityProp)("postType",e,"reviews_allowed"),[a,c]=(0,f.useEntityProp)("postType",e,"post_password");return(0,_.createElement)(S.PanelBody,{initialOpen:!1,title:[(0,D.__)("Visibility: ","woocommerce"),(0,_.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},""!==a?(0,D.__)("Password protected","woocommerce"):"visible"===t?(0,D.__)("Public","woocommerce"):(0,D.__)("Hidden","woocommerce"))]},(0,_.createElement)("div",{className:"woocommerce-publish-panel-visibility"},(0,_.createElement)("fieldset",{className:"woocommerce-publish-panel-visibility__fieldset"},(0,_.createElement)("legend",{className:"woocommerce-publish-panel-visibility__legend"},(0,D.__)("Control how this product is viewed by customers and other site users.","woocommerce")),(0,_.createElement)(mo,{catalogVisibility:t,label:(0,D.__)("Hide in product catalog","woocommerce"),visibility:"search",onCheckboxChange:o}),(0,_.createElement)(mo,{catalogVisibility:t,label:(0,D.__)("Hide from search results","woocommerce"),visibility:"catalog",onCheckboxChange:o}),(0,_.createElement)(S.CheckboxControl,{label:(0,D.__)("Enable product reviews","woocommerce"),checked:r,onChange:e=>{n(e),(0,X.recordEvent)("product_prepublish_panel",{source:W,action:"enable_product_reviews",value:e})}}),(0,_.createElement)(uo,{label:(0,D.__)("Require a password","woocommerce"),postPassword:a,onInputChange:c}))))}function ho(){var e;const{timezone:t}=(0,at.__experimentalGetSettings)();return t.abbr&&isNaN(Number(t.abbr))?t.abbr:`UTC${Number(t.offset)<0?"":"+"}${null!==(e=t.offsetFormatted)&&void 0!==e?e:t.offset}`}function _o(e){const{timezone:t}=(0,at.__experimentalGetSettings)();return Number(t.offset)===e.getTimezoneOffset()/60*-1}function vo(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function wo(){const e=(0,at.__experimentalGetSettings)();return/a(?!\\)/i.test(e.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""))}function go(e){const{formats:t}=(0,at.__experimentalGetSettings)();return(0,at.dateI18n)((0,D.sprintf)((0,D._x)("F j, Y %s","product schedule full date format","woocommerce"),t.time),e,void 0)}function Eo(e,t=new Date){if(!e)return(0,D.__)("Immediately","woocommerce");if(!_o(t))return function(e){const t=ho(),o=go(e);return(0,D.isRTL)()?`${t} ${o}`:`${o} ${t}`}(e);const{formats:o}=(0,at.__experimentalGetSettings)(),r=(0,at.getDate)(e);if(vo(r,t))return(0,D.sprintf)((0,D.__)("Today at %s","woocommerce"),(0,at.dateI18n)(o.time,e,void 0));const n=new Date(t);return n.setDate(n.getDate()+1),vo(r,n)?(0,D.sprintf)((0,D.__)("Tomorrow at %s","woocommerce"),(0,at.dateI18n)(o.time,e,void 0)):r.getFullYear()===t.getFullYear()?(0,at.dateI18n)((0,D.sprintf)((0,D._x)("F j %s","product schedule date format without year","woocommerce"),o.time),r,void 0):go(e)}function fo({postType:e}){const[t,o,r]=(0,f.useEntityProp)("postType",e,"date_created");return(0,_.createElement)(S.PanelBody,{initialOpen:!1,title:[(0,D.__)("Publish:","woocommerce"),(0,_.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Eo(t===r?void 0:t))]},(0,_.createElement)(vt.__experimentalPublishDateTimePicker,{currentDate:t,onChange:function(e){o(e)},is12Hour:wo()}))}function bo({productId:e,productType:t="product",title:o=(0,D.__)("Are you ready to publish this product?","woocommerce"),description:r=(0,D.__)("Double-check your settings before sharing this product with customers.","woocommerce")}){const[a,,c]=(0,f.useEntityProp)("postType",t,"date_created"),l=(0,n.useSelect)((o=>{const{getEntityRecord:r}=o("core");return r("postType",t,e)}),[t,e]),{closePrepublishPanel:i}=(0,n.useDispatch)(p);return a!==c&&(o=(0,D.__)("Are you ready to schedule this product?","woocommerce"),r=(0,D.__)("Your product will be published at the specified date and time.","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-product-publish-panel"},(0,_.createElement)("div",{className:"woocommerce-product-publish-panel__header"},(0,_.createElement)(lt,{productType:t,productStatus:null==l?void 0:l.status}),(0,_.createElement)(S.Button,{variant:"secondary",onClick:()=>{(0,X.recordEvent)("product_prepublish_panel",{source:W,action:"cancel"}),i()}},(0,D.__)("Cancel","woocommerce"))),(0,_.createElement)("div",{className:"woocommerce-product-publish-panel__title"},(0,_.createElement)("h4",null,o),(0,_.createElement)("span",null,r)),(0,_.createElement)(po,{productType:t}),(0,_.createElement)(fo,{postType:t}))}function Co({product:e,productType:t="product"}){const[o,r]=(0,_.useState)(!0),[a,c]=(0,_.useState)(null),l=(0,Ie.useExtendLayout)("product-block-editor"),i=(null==e?void 0:e.id)||-1,s=(0,n.useSelect)((e=>e(p).isPrepublishPanelOpen()),[]);return(0,_.createElement)(Ie.LayoutContextProvider,{value:l},(0,_.createElement)(_.StrictMode,null,(0,_.createElement)(f.EntityProvider,{kind:"postType",type:t,id:i},(0,_.createElement)(Oe.ShortcutProvider,null,(0,_.createElement)(so,{initialValue:e},(0,_.createElement)(qe.Provider,{value:o},(0,_.createElement)(ge,{header:(0,_.createElement)(pt,{onTabSelect:c,productType:t}),content:(0,_.createElement)(_.Fragment,null,(0,_.createElement)(io,{postType:t,productId:i,context:{selectedTab:a,postType:t,postId:i},setIsEditorLoading:r})),actions:s&&(0,_.createElement)(bo,{productType:t,productId:i})})),(0,_.createElement)(S.Popover.Slot,null))))))}const yo=window.wp.blockLibrary,Ao=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-catalog-visibility-field","description":"A checkbox to manage the catalog visibility of the product.","title":"Product catalog visibility","category":"widgets","keywords":["products","catalog"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"visibility":{"type":"string","enum":["visible","catalog","search","hidden"],"default":"visible"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:xo,...So}=Ao,ko={example:{},edit:function({attributes:e}){const{label:t,visibility:o}=e,r=(0,E.useWooBlockProps)(e),[n,a]=(0,f.useEntityProp)("postType","product","catalog_visibility");return(0,_.createElement)("div",{...r},(0,_.createElement)(mo,{catalogVisibility:n,label:t,visibility:o,onCheckboxChange:a}))}};function Po(){return C({name:xo,metadata:So,settings:ko})}const Bo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-checkbox-field","title":"Product checkbox control","category":"woocommerce","description":"A reusable checkbox for the product editor.","keywords":["products","checkbox","input"],"textdomain":"default","attributes":{"title":{"type":"string","__experimentalRole":"content"},"label":{"type":"string"},"property":{"type":"string"},"tooltip":{"type":"string"},"checkedValue":{"type":"string"},"uncheckedValue":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),No=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));var Mo=__webpack_require__(33561);const Vo=["a","b","em","i","strong","p","br"],To=["target","href","rel","name","download"];function Fo(e,t){const o=(null==t?void 0:t.tags)||Vo,r=(null==t?void 0:t.attr)||To;return{__html:(0,Mo.sanitize)(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:r})}}const Do=({value:e,label:t,onChange:o,tooltip:r,title:n,checkedValue:a,uncheckedValue:c,disabled:l})=>(0,_.createElement)("div",{className:"woocommerce-product-form__checkbox"},n&&(0,_.createElement)("h4",null,n),(0,_.createElement)("div",{className:"woocommerce-product-form__checkbox-wrapper"},(0,_.createElement)(S.CheckboxControl,{label:t,checked:void 0!==a?a===e:e,onChange:function(e){o(e?void 0!==a?a:e:void 0!==c?c:e)},disabled:l}),r&&(0,_.createElement)(A.__experimentalTooltip,{text:(0,_.createElement)("span",{dangerouslySetInnerHTML:Fo(r)}),position:"top center",className:"woocommerce-product-form__checkbox-tooltip"},(0,_.createElement)("span",{className:"woocommerce-product-form__checkbox-tooltip-icon"},(0,_.createElement)(Ge,{icon:No,size:21.94,fill:"#949494"}))))),{name:Lo,...Ho}=Bo,Ro={example:{},edit:function({attributes:e,context:{postType:t}}){const{property:o,title:r,label:n,tooltip:a,checkedValue:c,uncheckedValue:l,disabled:i}=e,s=(0,E.useWooBlockProps)(e),[u,m]=wt(o,{postType:t,fallbackValue:!1});return(0,_.createElement)("div",{...s},(0,_.createElement)(Do,{value:u||!1,onChange:m,label:n||"",title:r,tooltip:a,checkedValue:c,uncheckedValue:l,disabled:i}))}},zo=()=>C({name:Lo,metadata:Ho,settings:Ro}),Io=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-collapsible","title":"Collapsible","category":"widgets","description":"Container with collapsible inner blocks.","textdomain":"default","attributes":{"toggleText":{"type":"string","__experimentalRole":"content"},"initialCollapsed":{"type":"boolean"},"persistRender":{"type":"boolean"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:Oo}=Io,$o={example:{},edit:function({attributes:e}){const t=(0,E.useWooBlockProps)(e),{toggleText:o,initialCollapsed:r,persistRender:n=!0}=e;return(0,_.createElement)("div",{...t},(0,_.createElement)(A.CollapsibleContent,{toggleText:o,initialCollapsed:r,persistRender:n},(0,_.createElement)(vt.InnerBlocks,{templateLock:"all"})))}},Go=()=>C({name:Oo,metadata:Io,settings:$o}),Uo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/conditional","title":"Conditional","category":"widgets","description":"Container to only conditionally render inner blocks.","textdomain":"default","attributes":{"mustMatch":{"__experimentalRole":"content","type":"array","items":{"type":"object"},"default":[]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:jo}=Uo,qo={example:{},edit:function({attributes:e,context:t}){xe()("`woocommerce/conditional` block",{alternative:"`hideConditions` attribute on any block"});const{postType:o}=t,r=(0,E.useWooBlockProps)(e),{mustMatch:a}=e,c=(0,f.useEntityId)("postType",o),l=(0,n.useSelect)((e=>{const t=e("core").getEditedEntityRecord("postType",o,c);for(const[e,o]of Object.entries(a))if(!o.includes(t[e]))return!1;return!0}),[o,c,a]);return(0,_.createElement)(A.DisplayState,{...r,state:l?"visible":"visually-hidden"},(0,_.createElement)(vt.InnerBlocks,{templateLock:"all"}))}},Zo=()=>C({name:jo,metadata:Uo,settings:qo}),Wo=(0,_.createElement)(pe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"})),Jo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-description-field","title":"Product description","category":"woocommerce","description":"The product description.","keywords":["products","description"],"textdomain":"default","attributes":{"__contentEditable":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":true}}');function Yo({nonAnimatedSrc:e,animatedSrc:t}){return(0,_.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,_.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,_.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function Xo(){const{toggle:e}=(0,n.useDispatch)("core/preferences");return(0,_.createElement)(S.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,D.__)("Welcome to the block editor","woocommerce"),finishButtonText:(0,D.__)("Get started","woocommerce"),onFinish:()=>e("core/edit-post","welcomeGuide"),pages:[{image:(0,_.createElement)(Yo,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,_.createElement)(_.Fragment,null,(0,_.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,D.__)("Welcome to the block editor","woocommerce")),(0,_.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,D.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.","woocommerce")))},{image:(0,_.createElement)(Yo,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,_.createElement)(_.Fragment,null,(0,_.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,D.__)("Make each block your own","woocommerce")),(0,_.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,D.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.","woocommerce")))},{image:(0,_.createElement)(Yo,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,_.createElement)(_.Fragment,null,(0,_.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,D.__)("Get to know the block library","woocommerce")),(0,_.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,_.createInterpolateElement)((0,D.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon.","woocommerce"),{InserterIconImage:(0,_.createElement)("img",{alt:(0,D.__)("inserter","woocommerce"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,_.createElement)(Yo,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,_.createElement)(_.Fragment,null,(0,_.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,D.__)("Learn how to use the block editor","woocommerce")),(0,_.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,D.__)("New to the block editor? Want to learn more about using it? ","woocommerce"),(0,_.createElement)(S.ExternalLink,{href:(0,D.__)("https://wordpress.org/documentation/article/wordpress-block-editor/","woocommerce")},(0,D.__)("Here's a detailed guide.","woocommerce"))))}]})}function Ko(){const{isActive:e}=(0,n.useSelect)((e=>{const{get:t}=e("core/preferences");return{isActive:t("core/edit-post","welcomeGuide")}}),[]);return e?(0,_.createElement)(Xo,null):null}function Qo({label:e=(0,D.__)("Edit Product description","woocommerce"),text:t=(0,D.__)("Full editor","woocommerce")}){const{openModalEditor:o,setModalEditorBlocks:r}=(0,n.dispatch)(p),[a]=(0,f.useEntityProp)("postType","product","description");return(0,_.createElement)(S.ToolbarButton,{label:e,onClick:()=>{if(function(){const e=Ut();return e>=17.9&&e<18}()){if("true"!==(null===(e=localStorage.getItem("__unsupported_force_product_editor_description_full_editor"))||void 0===e?void 0:e.trim().toLowerCase()))return void alert((0,D.__)("The version of the Gutenberg plugin installed causes a crash in the full editor. To prevent this, the full editor has been disabled.","woocommerce"));alert((0,D.__)("The version of the Gutenberg plugin installed causes a crash in the full editor. You are proceeding at your own risk and may experience crashes.","woocommerce"))}var e;let t=(0,ie.parse)(a);const n=er(t);n&&(t=(0,ie.rawHandler)({HTML:n})),r(t),(0,X.recordEvent)("product_add_description_click"),o()}},t)}function er(e){return!(1!==e.length||"core/freeform"!==e[0].name)&&e[0].attributes.content}const tr=(0,w.createHigherOrderComponent)((e=>t=>{var o;return"woocommerce/product-summary-field"!==(null==t?void 0:t.name)?(0,_.createElement)(e,{...t}):(null==t?void 0:t.isSelected)?"product-description__content"!==(null===(o=null==t?void 0:t.attributes)||void 0===o?void 0:o._templateBlockId)?(0,_.createElement)(e,{...t}):(0,_.createElement)(_.Fragment,null,(0,_.createElement)(vt.BlockControls,{group:"other"},(0,_.createElement)(Qo,null)),(0,_.createElement)(e,{...t})):(0,_.createElement)(e,{...t})}),"wooBlockwithFullEditorToolbarButton"),{name:or,...rr}=Jo,nr={example:{},edit:function({attributes:e}){const[t,o]=(0,f.useEntityProp)("postType","product","description"),[r,a]=(0,_.useState)([]),{isModalEditorOpen:c,modalEditorBlocks:l,hasChanged:i}=(0,n.useSelect)((e=>({isModalEditorOpen:e(p).isModalEditorOpen(),modalEditorBlocks:e(p).getModalEditorBlocks(),hasChanged:e(p).getModalEditorContentHasChanged()})),[]);(0,_.useEffect)((()=>{if(!t)return void a([]);if(-1===t.indexOf("\x3c!-- wp:"))return;const e=(0,ie.parse)(t);er(e)||a(e)}),[t]),(0,_.useEffect)((()=>{if(!i)return;(null==l?void 0:l.length)||o("");const e=(0,ie.serialize)(function(e){if(1===e.length){const{content:t}=e[0].attributes;if(!t||!t.trim())return[]}return e}(l));o(e)}),[l,o,i]);const s=(0,E.useWooBlockProps)(e,{className:we()({"has-blocks":!!t.length}),tabIndex:0}),u=(0,vt.useInnerBlocksProps)({},{templateLock:"contentOnly",allowedBlocks:["woocommerce/product-summary-field"]});return(0,_.createElement)("div",{...s},(null==r?void 0:r.length)?(0,_.createElement)(_.Fragment,null,(0,_.createElement)(vt.BlockControls,null,(0,_.createElement)(Qo,{text:(0,D.__)("Edit in full editor","woocommerce")})),(0,_.createElement)(vt.BlockPreview,{blocks:r,viewportWidth:800,additionalStyles:[{css:"body { padding: 32px; height: 10000px }"}]})):(0,_.createElement)("div",{...u}),c&&(0,_.createElement)(Ko,null))},icon:Wo},ar=()=>C({name:or,metadata:rr,settings:nr});(0,v.addFilter)("editor.BlockEdit","woocommerce/summary-block-with-full-editor-button",tr);const cr=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-downloads-field","title":"Product downloads","category":"widgets","description":"The product downloads.","keywords":["products","downloads"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),lr=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),ir=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),sr=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));function ur({allowedTypes:e,modalTitle:t,modalButtonText:o,multiple:r,className:n,uploaderParams:a,children:c,onSelect:l}){const i=(0,_.useMemo)((function(){return wp.media({title:t,library:{type:e},button:{text:o},multiple:r,states:[new wp.media.controller.Library({title:t,library:wp.media.query(),multiple:r,priority:20,filterable:"all"})]})}),[e,t,o,r]);return(0,_.useEffect)((function(){function e(){const e=i.state().get("selection").toJSON();l(e)}function t(){i.uploader.options.uploader.params=a}return i.on("select",e),i.on("ready",t),function(){i.off("select",e),i.off("ready",t)}}),[i,a,l]),(0,_.useEffect)((()=>function(){i.remove()}),[i]),c({open:function(){i.$el.addClass(n),i.open()}})}const mr="woocommerce-media-library-menu-item__upload_files_modal",dr="woocommerce-media-library-menu-item__upload_files_modal_wrapper";function pr({allowedTypes:e,onUploadSuccess:t}){const[o,r]=(0,_.useState)(!1);return(0,_.useEffect)((function(){const e=document.querySelector(`.${mr}`),t=null==e?void 0:e.closest('[role="dialog"]'),o=null==t?void 0:t.parentElement;return null==o||o.classList.add(dr),()=>{null==o||o.classList.remove(dr)}}),[o]),(0,_.createElement)(ur,{className:mr,allowedTypes:e,multiple:"add",uploaderParams:{type:"downloadable_product"},onSelect:function(e){t(e)}},(({open:e})=>{return(0,_.createElement)(S.MenuItem,{icon:sr,iconPosition:"left",onClick:(t=e,function(){t(),r(!0)}),info:(0,D.__)("Choose from uploaded media","woocommerce")},(0,D.__)("Media Library","woocommerce"));var t}))}const hr=(0,_.createElement)(pe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})),_r=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));function vr(e){e.required=!0,e.setCustomValidity(""),e.validity.valueMissing&&e.setCustomValidity((0,D.__)("The URL is required","woocommerce")),e.validity.typeMismatch&&e.setCustomValidity((0,D.__)("Insert a valid URL","woocommerce"))}function wr({onUploadSuccess:e,onUploadError:t}){function o(o){o.preventDefault();const r=o.currentTarget,n=r.url;if(vr(n),r.checkValidity()){const t=r.url.value;e([{url:t}])}else t(n.validationMessage)}function r(e){vr(e.target)}function n(e){vr(e.target)}return(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"left"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{"aria-expanded":e,icon:hr,iconPosition:"left",onClick:t,info:(0,D.__)("Link to a file hosted elsewhere","woocommerce")},(0,D.__)("Insert from URL","woocommerce")),renderContent:()=>(0,_.createElement)("form",{className:"components-dropdown-menu__menu",noValidate:!0,onSubmit:o},(0,_.createElement)(S.__experimentalInputControl,{name:"url",type:"url",placeholder:(0,D.__)("Insert URL","woocommerce"),suffix:(0,_.createElement)(S.Button,{icon:_r,type:"submit"}),className:"woocommerce-inert-url-menu-item__input","aria-label":(0,D.__)("Insert URL","woocommerce"),onInput:r,onBlur:n}))})}const gr=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"}));function Er({allowedTypes:e,maxUploadFileSize:t=1e7,onUploadSuccess:o,onUploadError:r}){return(0,_.createElement)(S.FormFileUpload,{multiple:!0,onChange:function(n){const a=n.currentTarget.files;(0,ht.uploadMedia)({allowedTypes:e,filesList:a,maxUploadFileSize:t,onFileChange:o,onError:r,additionalData:{type:"downloadable_product"}})},render:({openFileDialog:e})=>(0,_.createElement)(S.MenuItem,{icon:gr,iconPosition:"left",onClick:e,info:(0,D.__)("Select files from your device","woocommerce")},(0,D.__)("Upload","woocommerce"))})}function fr({allowedTypes:e,maxUploadFileSize:t,onUploadSuccess:o,onUploadError:r}){return(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"bottom-end"},contentClassName:"woocommerce-downloads-menu__menu-content",renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.Button,{"aria-expanded":e,icon:e?lr:ir,variant:"secondary",onClick:t,className:"woocommerce-downloads-menu__toogle"},(0,_.createElement)("span",null,(0,D.__)("Add new","woocommerce"))),renderContent:({onClose:n})=>(0,_.createElement)("div",{className:"components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(Er,{allowedTypes:e,maxUploadFileSize:t,onUploadSuccess:e=>{o(e),n()},onUploadError:r}),(0,_.createElement)(pr,{allowedTypes:e,onUploadSuccess:e=>{o(e),n()}}),(0,_.createElement)(wr,{onUploadSuccess:e=>{o(e),n()},onUploadError:r})))})}function br(e){setTimeout((function(t){e.ownerDocument.activeElement===t&&t.select()}),0,e)}const Cr=/[^0-9,.]/g,yr=({value:e,onChange:t,onFocus:o,onKeyDown:r})=>{const{formatNumber:n,parseNumber:a}=ne();return{value:n(e),onFocus(e){br(e.currentTarget),o&&o(e)},onKeyUp(e){"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},onKeyDown(o){const n=Number.parseFloat(e||"0"),a=Number(o.currentTarget.step||"1");"ArrowUp"===o.code&&(o.preventDefault(),t(String(n+a))),"ArrowDown"===o.code&&(o.preventDefault(),t(String(n-a))),r&&r(o)},onChange(e){const o=a(e.replace(Cr,""));t(o)}}},Ar=0,xr=0;function Sr(e){return null===e?"0":-1===e?"":String(e)}function kr({initialValue:e,onSubmit:t,onClose:o}){const[r,n]=(0,_.useState)(Sr(e.downloadLimit)),[a,c]=(0,_.useState)(Sr(e.downloadExpiry)),[l,i]=(0,_.useState)({});function s(){return r&&!Number.isInteger(Number(r))?(i((e=>({...e,downloadLimit:(0,D.__)("Download limit must be an integer number","woocommerce")}))),!1):Number.parseInt(r,10)<Ar?(i((e=>({...e,downloadLimit:(0,D.sprintf)((0,D.__)("Download limit must be greater than or equal to %d","woocommerce"),Ar)}))),!1):(i((({downloadLimit:e,...t})=>t)),!0)}function u(){return a&&!Number.isInteger(Number(a))?(i((e=>({...e,downloadExpiry:(0,D.__)("Expiry period must be an integer number","woocommerce")}))),!1):Number.parseInt(a,10)<xr?(i((e=>({...e,downloadExpiry:(0,D.sprintf)((0,D.__)("Expiry period must be greater than or equal to %d","woocommerce"),xr)}))),!1):(i((({downloadExpiry:e,...t})=>t)),!0)}const m=yr({value:r,onChange:n}),d={value:m.value,onChange:m.onChange,id:(0,w.useInstanceId)(S.BaseControl,"product_download_limit_field"),type:"number",min:Ar,className:we()({"has-error":l.downloadLimit}),label:(0,D.__)("Download limit","woocommerce"),help:l.downloadLimit||(0,D.__)("Decide how many times customers can download files after purchasing the product. Leave blank for unlimited re-downloads.","woocommerce"),placeholder:(0,D.__)("Unlimited","woocommerce"),suffix:(0,_.createElement)("span",{className:"woocommerce-manage-download-limits-modal__input-suffix"},(0,D.__)("times","woocommerce")),onBlur(){s()}},p=yr({value:a,onChange:c}),h={value:p.value,onChange:p.onChange,id:(0,w.useInstanceId)(S.BaseControl,"product_download_expiry_field"),type:"number",min:xr,className:we()({"has-error":l.downloadExpiry}),label:(0,D.__)("Expiry period","woocommerce"),help:l.downloadExpiry||(0,D.__)("Decide how long customers can access the files after purchasing the product. Leave blank for unlimited access.","woocommerce"),placeholder:(0,D.__)("Unlimited","woocommerce"),suffix:(0,_.createElement)("span",{className:"woocommerce-manage-download-limits-modal__input-suffix"},(0,D.__)("days","woocommerce")),onBlur(){u()}};return(0,_.createElement)(S.Modal,{title:(0,D.__)("Manage download limits","woocommerce"),className:"woocommerce-manage-download-limits-modal",onRequestClose:o},(0,_.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault();const o=s(),n=u();o&&n&&t({downloadLimit:""===r?-1:Number.parseInt(r,10),downloadExpiry:""===a?-1:Number.parseInt(a,10)})}},(0,_.createElement)("div",{className:"woocommerce-manage-download-limits-modal__content"},(0,_.createElement)(S.__experimentalInputControl,{...d}),(0,_.createElement)(S.__experimentalInputControl,{...h})),(0,_.createElement)("div",{className:"woocommerce-manage-download-limits-modal__actions"},(0,_.createElement)(S.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{variant:"primary",type:"submit"},(0,D.__)("Save","woocommerce")))))}const Pr=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"})),Br=()=>(0,_.createElement)("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 6C0.25 5.0335 1.0335 4.25 2 4.25L3 4.25L3 5.75L2 5.75C1.86193 5.75 1.75 5.86193 1.75 6L1.75 14C1.75 14.1381 1.86193 14.25 2 14.25L8 14.25C8.13807 14.25 8.25 14.1381 8.25 14L8.25 13L9.75 13L9.75 14C9.75 14.9665 8.9665 15.75 8 15.75L2 15.75C1.0335 15.75 0.25 14.9665 0.25 14L0.25 6ZM6 0.25C5.0335 0.25 4.25 1.0335 4.25 2L4.25 10C4.25 10.9665 5.0335 11.75 6 11.75L12 11.75C12.9665 11.75 13.75 10.9665 13.75 10L13.75 2C13.75 1.0335 12.9665 0.249999 12 0.249999L6 0.25ZM5.75 2C5.75 1.86193 5.86193 1.75 6 1.75L12 1.75C12.1381 1.75 12.25 1.86193 12.25 2L12.25 10C12.25 10.1381 12.1381 10.25 12 10.25L6 10.25C5.86193 10.25 5.75 10.1381 5.75 10L5.75 2Z",fill:"#007CBA"})),Nr=()=>(0,_.createElement)("svg",{width:"56",height:"72",viewBox:"0 0 56 72",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.9551 0H1.41177C0.63207 0 0 0.632067 0 1.41176V70.5882C0 71.3679 0.632067 72 1.41176 72H54.5882C55.3679 72 56 71.3679 56 70.5882V17.9261L37.9551 0Z",fill:"#F0F0F0"}),(0,_.createElement)("rect",{x:"28.6191",y:"40.6892",width:"13.3101",height:"13.3107",rx:"2.85325",fill:"#DDDDDD"}),(0,_.createElement)("ellipse",{cx:"18.1551",cy:"47.3446",rx:"6.65505",ry:"6.65537",fill:"#DDDDDD"}),(0,_.createElement)("path",{d:"M25.9557 24.1401C26.5048 23.1889 27.8776 23.1889 28.4267 24.1401L34.6041 34.84C35.1531 35.7911 34.4668 36.9799 33.3686 36.9799H21.0139C19.9157 36.9799 19.2293 35.7911 19.7784 34.84L25.9557 24.1401Z",fill:"#DDDDDD"}),(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.0005 9.53674e-05L56 17.9995H40.824C39.2646 17.9995 38.0005 16.7354 38.0005 15.176V9.53674e-05Z",fill:"#DDDDDD"})),Mr=({downloableItem:e,onCancel:t,onChange:o,onRemove:r,onSave:a})=>{const{createNotice:c}=(0,n.useDispatch)("core/notices"),[l,i]=(0,_.useState)(!1),{id:s=0,file:u="",name:m=""}=e;return(0,_.createElement)(S.Modal,{title:(0,D.sprintf)((0,D.__)("Edit %s","woocommerce"),m),onRequestClose:e=>{e.isPropagationStopped()||l||((0,X.recordEvent)("product_downloads_modal_cancel"),t())},className:"woocommerce-edit-downloads-modal"},(0,_.createElement)("div",{className:"woocommerce-edit-downloads-modal__preview"},(0,_.createElement)(A.ImageGallery,{allowDragging:!1,columns:1},((e="")=>{if(!e)return;const t=(e.split(".").pop()||"").toLowerCase();return["jpg","jpeg","png","gif","webp"].includes(t)})(u)?(0,_.createElement)(A.ImageGalleryItem,{key:s,alt:m,src:u,id:`${s}`,isCover:!1}):(0,_.createElement)(Nr,null)),(0,_.createElement)("div",{className:"components-form-file-upload"},(0,_.createElement)("p",null,m))),(0,_.createElement)(S.BaseControl,{id:"file-name-help",className:"woocommerce-edit-downloads-modal__file-name",help:(0,D.__)("Your customers will see this on the thank-you page and in their order confirmation email.","woocommerce")},(0,_.createElement)(S.__experimentalInputControl,{id:"file-name",label:(0,D.__)("FILE NAME","woocommerce"),name:"file-name",value:m||"",onChange:o})),(0,_.createElement)("div",{className:"woocommerce-edit-downloads-modal__file-url"},(0,_.createElement)(S.__experimentalInputControl,{disabled:!0,id:"file-url",label:(0,D.__)("FILE URL","woocommerce"),name:"file-url",value:u||"",suffix:(0,_.createElement)(S.Button,{icon:(0,_.createElement)(Br,null),onClick:async function(){(0,X.recordEvent)("product_downloads_modal_copy_url_to_clipboard"),i(!0),await async function(e){if("clipboard"in navigator)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}await void c("success",(0,D.__)("URL copied successfully.","woocommerce"))}(u),i(!1)}})})),(0,_.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons"},(0,_.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons-left"},(0,_.createElement)(S.Button,{icon:Pr,isDestructive:!0,variant:"tertiary",label:(0,D.__)("Delete","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_downloads_modal_delete"),r()}},(0,D.__)("Delete file","woocommerce"))),(0,_.createElement)("div",{className:"woocommerce-edit-downloads-modal__buttons-right"},(0,_.createElement)(S.Button,{label:(0,D.__)("Cancel","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_downloads_modal_cancel"),t()},variant:"tertiary"},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{label:(0,D.__)("Update","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_downloads_modal_update"),a()},variant:"primary"},(0,D.__)("Update","woocommerce")))))};function Vr(){return(0,_.createElement)("svg",{width:"104",height:"64",viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88.129 64C87.9065 64 87.6851 63.9941 87.4649 63.9823V64H61.888L56.6463 48.9818L68.2211 51.8173L51.9999 35.5945L35.7787 51.8173L47.3535 48.9818L42.1118 64H17.972V63.985C8.36383 63.5505 0.682007 53.7386 0.682007 41.6982C0.682007 29.3812 8.72077 19.3963 18.6371 19.3963C22.011 19.3963 25.1676 20.5522 27.8642 22.5626C32.3286 9.21729 41.8544 0 52.8848 0C65.7239 0 76.5246 12.4881 79.6776 29.4383C82.0937 27.4239 85.001 26.2488 88.129 26.2488C96.5176 26.2488 103.318 34.6997 103.318 45.1244C103.318 55.5491 96.5176 64 88.129 64Z",fill:"#F0F0F0"}))}function Tr(e,t){return`${e}-${t}`}function Fr({name:e,slotContainerBlockName:t,...o}){const{clientId:r}=(0,vt.useBlockEditContext)(),a=(0,n.useSelect)((e=>{const{getBlockParentsByBlockName:o}=e("core/block-editor"),[n]=o(r,t,!0);return n}),[r,t]);return a?(0,_.createElement)(S.Fill,{...o,name:Tr(e,a)}):(console.warn("No closest ancestor client ID found for block fill."),null)}const Dr=["woocommerce/product-section","woocommerce/product-subsection"];function Lr({containerBlockName:e=Dr,...t}){return(0,_.createElement)(Fr,{...t,name:"section-actions",slotContainerBlockName:e})}function Hr(e){var t;const[o]=null!==(t=null==e?void 0:e.split("/").reverse())&&void 0!==t?t:[];return o}function Rr(e){return e?String(e):""}function zr(e){return{...e,id:Rr(e.id)}}const{name:Ir,...Or}=cr,$r={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,E.useWooBlockProps)(e),[r,a]=(0,f.useEntityProp)("postType",t,"downloads"),[c,l]=(0,f.useEntityProp)("postType",t,"download_limit"),[i,s]=(0,f.useEntityProp)("postType",t,"download_expiry"),[u,m]=(0,_.useState)(),{allowedMimeTypes:d}=(0,n.useSelect)((e=>{const{getEditorSettings:t}=e("core/editor");return t()})),p=d?Object.values(d):[],{createErrorNotice:h}=(0,n.useDispatch)("core/notices"),[v,w]=(0,_.useState)(!1);function g(e){if(!Array.isArray(e))return;const t=e.filter((e=>!r.some((t=>t.file===e.url))));if(t.length!==e.length&&h(1===e.length?(0,D.__)("This file has already been added","woocommerce"):(0,D.__)("Some of these files have already been added","woocommerce")),t.length){const e=t.map((e=>({id:Rr(e.id),file:e.url,name:e.title||e.alt||e.caption||Hr(e.url)}))),o=r.map(zr);o.push(...e),a(o)}}function b(e){const t=r.reduce((function(t,o){return o.file===e.file?t:[...t,zr(o)]}),[]);a(t)}function C(e){return function(){b(e)}}function y(e){return function(){m(zr(e))}}function x(e){h("string"==typeof e?e:(0,D.__)("There was an error uploading files","woocommerce"))}return(0,_.createElement)("div",{...o},(0,_.createElement)(Lr,null,Boolean(r.length)&&(0,_.createElement)(S.Button,{variant:"tertiary",onClick:function(){w(!0)}},(0,D.__)("Manage limits","woocommerce")),(0,_.createElement)(fr,{allowedTypes:p,onUploadSuccess:g,onUploadError:x})),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__body"},(0,_.createElement)(A.MediaUploader,{label:Boolean(r.length)?"":(0,_.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__drop-zone-content"},(0,_.createElement)(Vr,null),(0,_.createElement)("p",{className:"wp-block-woocommerce-product-downloads-field__drop-zone-label"},(0,_.createInterpolateElement)((0,D.__)("Supported file types: <Types /> and more. <link>View all</link>","woocommerce"),{Types:(0,_.createElement)(_.Fragment,null,"PNG, JPG, PDF, PPT, DOC, MP3, MP4"),link:(0,_.createElement)("a",{href:"https://codex.wordpress.org/Uploading_Files",target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation()})}))),buttonText:"",allowedMediaTypes:p,multipleSelect:"add",onUpload:g,onFileUploadChange:g,onError:x,additionalData:{type:"downloadable_product"}}),Boolean(r.length)&&(0,_.createElement)(A.Sortable,{className:"wp-block-woocommerce-product-downloads-field__table"},r.map((e=>{const t=Hr(e.file),o=e.file.startsWith("blob");return(0,_.createElement)(A.ListItem,{key:e.file,className:"wp-block-woocommerce-product-downloads-field__table-row"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__table-filename"},(0,_.createElement)("span",null,e.name),e.name!==t&&(0,_.createElement)("span",{className:"wp-block-woocommerce-product-downloads-field__table-filename-description"},t)),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-downloads-field__table-actions"},o&&(0,_.createElement)(S.Spinner,{"aria-label":(0,D.__)("Uploading file","woocommerce")}),!o&&(0,_.createElement)(S.Button,{onClick:y(e),variant:"tertiary"},(0,D.__)("Edit","woocommerce")),(0,_.createElement)(S.Button,{icon:eo,label:(0,D.__)("Remove file","woocommerce"),disabled:o,onClick:C(e)})))})))),v&&(0,_.createElement)(kr,{initialValue:{downloadLimit:c,downloadExpiry:i},onSubmit:function(e){l(e.downloadLimit),s(e.downloadExpiry),w(!1)},onClose:function(){w(!1)}}),u&&(0,_.createElement)(Mr,{downloableItem:{...u},onCancel:()=>m(null),onRemove:()=>{b(u),m(null)},onChange:e=>{m({...u,name:e})},onSave:(k=u,function(){const e=r.map(zr).map((e=>e.id===k.id?k:e));a(e),m(null)}),onUploadSuccess:function(e){var t;if(!Array.isArray(e)||!(null==e?void 0:e.length)||void 0===(null===(t=e[0])||void 0===t?void 0:t.id))return;const o={id:Rr(e[0].id),file:e[0].url,name:e[0].title||e[0].alt||e[0].caption||Hr(e[0].url)},n=r.map((e=>e.file===(null==u?void 0:u.file)?zr(o):zr(e)));a(n),m(o)},onUploadError:x}));var k}};function Gr(){return C({name:Ir,metadata:Or,settings:$r})}const Ur=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-images-field","title":"Product images","category":"widgets","description":"The product images.","keywords":["products","image","images","gallery"],"textdomain":"default","attributes":{"mediaId":{"type":"number","__experimentalRole":"content"},"property":{"type":"string"},"multiple":{"type":"boolean","default":true},"images":{"__experimentalRole":"content","type":"array","items":{"type":"number"},"default":[]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');function jr({...e}){return(0,_.createElement)("svg",{...e,width:"32",height:"65",viewBox:"0 0 32 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{d:"M29.1535 7.61841C23.142 7.61841 19.6604 8.66953 17.6751 11.0101C18.9601 6.48043 21.3345 3.07988 25.672 0C20.5319 0.663632 17.5484 2.61667 16.1033 5.4115C14.6582 2.6189 11.6747 0.665859 6.53464 0C10.8721 3.07988 13.2465 6.47821 14.5315 11.0101C12.5462 8.66953 9.06465 7.61841 3.0531 7.61841C10.2185 10.9833 12.9597 13.6913 15.2941 18.5438H16.9103C19.2447 13.6913 21.9881 10.9833 29.1513 7.61841H29.1535Z",fill:"#DDDDDD"}),(0,_.createElement)("path",{d:"M20.8963 60.4609C23.2279 59.5968 31.7769 57.6994 31.7769 49.4182C31.7769 44.4995 27.3285 40.7894 22.2783 39.9284C24.5252 39.1942 27.8063 35.9252 27.8063 32.2574C27.8063 27.5321 23.5303 25.6469 20.0344 24.9157C20.0344 23.8371 23.9204 18.272 23.9204 18.272H7.85652C7.85652 18.272 11.7425 23.8371 11.7425 24.9157C8.24361 25.6499 3.97061 27.5321 3.97061 32.2574C3.97061 35.9252 7.25172 39.1942 9.4986 39.9284C4.44538 40.7925 0 44.5026 0 49.4182C0 57.7025 8.54904 59.5998 10.8806 60.4609C5.3526 60.9775 2.5886 63.1347 2.15918 64.8598H29.6207C29.1883 63.1347 26.4243 60.9775 20.8993 60.4609H20.8963Z",fill:"#F0F0F0"}))}function qr({...e}){return(0,_.createElement)("svg",{...e,width:"59",height:"80",viewBox:"0 0 59 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{d:"M54.0218 14.4803C43.085 14.4803 36.7511 16.3926 33.1392 20.6507C35.477 12.41 39.7967 6.22334 47.6879 0.620117C38.3366 1.82746 32.9086 5.38063 30.2796 10.4653C27.6506 5.38468 22.2226 1.83152 12.8713 0.620117C20.7625 6.22334 25.0822 12.4059 27.42 20.6507C23.8081 16.3926 17.4742 14.4803 6.53735 14.4803C19.5733 20.6021 24.5604 25.5287 28.8073 34.357H31.7478C35.9947 25.5287 40.9858 20.6021 54.0178 14.4803H54.0218Z",fill:"#DDDDDD"}),(0,_.createElement)("path",{d:"M38.9992 110.617C43.241 109.045 58.7943 105.593 58.7943 90.5271C58.7943 81.5787 50.7013 74.8288 41.5135 73.2623C45.6013 71.9266 51.5706 65.9793 51.5706 59.3065C51.5706 50.7098 43.7912 47.28 37.4313 45.9498C37.4313 43.9875 44.5009 33.8628 44.5009 33.8628H15.276C15.276 33.8628 22.3456 43.9875 22.3456 45.9498C15.9802 47.2855 8.20633 50.7098 8.20633 59.3065C8.20633 65.9793 14.1757 71.9266 18.2634 73.2623C9.07009 74.8343 0.982605 81.5841 0.982605 90.5271C0.982605 105.599 16.5359 109.051 20.7777 110.617C10.7206 111.557 5.69205 115.482 4.91081 118.62H54.8716C54.0849 115.482 49.0563 111.557 39.0047 110.617H38.9992Z",fill:"#F0F0F0"}))}function Zr({...e}){return(0,_.createElement)("svg",{...e,width:"62",height:"65",viewBox:"0 0 62 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("path",{d:"M59.3177 7.59526C53.3245 7.59526 49.8535 8.64319 47.8742 10.9766C49.1553 6.46075 51.5225 3.07052 55.8468 0C50.7224 0.661616 47.7479 2.60872 46.3072 5.39506C44.8665 2.61094 41.8921 0.663836 36.7676 0C41.0919 3.07052 43.4591 6.45853 44.7402 10.9766C42.7609 8.64319 39.29 7.59526 33.2967 7.59526C40.4403 10.95 43.1732 13.6497 45.5004 18.4875H47.1118C49.4391 13.6497 52.1741 10.95 59.3155 7.59526H59.3177Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M51.1522 60.2087C53.4766 59.3472 61.9997 57.4556 61.9997 49.1995C61.9997 44.2958 57.5648 40.597 52.53 39.7386C54.77 39.0066 58.0411 35.7476 58.0411 32.0909C58.0411 27.38 53.7781 25.5004 50.2929 24.7715C50.2929 23.6962 54.167 18.1479 54.167 18.1479H38.152C38.152 18.1479 42.0261 23.6962 42.0261 24.7715C38.5379 25.5035 34.2779 27.38 34.2779 32.0909C34.2779 35.7476 37.5491 39.0066 39.7891 39.7386C34.7513 40.6 30.3194 44.2989 30.3194 49.1995C30.3194 57.4587 38.8424 59.3502 41.1669 60.2087C35.6557 60.7238 32.9001 62.8744 32.472 64.5943H59.8501C59.4189 62.8744 56.6633 60.7238 51.1552 60.2087H51.1522Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M18.2238 61.2964C20.1078 60.597 27.012 59.0606 27.012 52.3534C27.012 48.3704 23.4192 45.3665 19.3387 44.6672C21.1518 44.0744 23.8026 41.4257 23.8026 38.4551C23.8026 34.6297 20.3494 33.1022 17.5256 32.5094C17.5256 31.6369 20.6641 27.1299 20.6641 27.1299H7.69128C7.69128 27.1299 10.8298 31.6369 10.8298 32.5094C8.0038 33.1022 4.55279 34.6297 4.55279 38.4551C4.55279 41.4235 7.20367 44.0721 9.01672 44.6672C4.93624 45.3665 1.34338 48.3704 1.34338 52.3534C1.34338 59.0606 8.24761 60.597 10.1316 61.2964C5.66767 61.716 3.43571 63.4633 3.08773 64.8598H25.2677C24.9197 63.4633 22.6877 61.716 18.2238 61.2964Z",fill:"white"}),(0,_.createElement)("path",{d:"M14.705 29.1672C16.3668 19.7341 14.7486 11.8172 9.57432 9.5886C4.55918 7.42903 1.86622 9.95303 2.88996 12.0076C4.11785 14.4701 7.87058 12.5775 11.1745 15.6654C14.2667 18.5553 14.3478 29.5136 14.3478 29.5136L14.7066 29.1657L14.705 29.1672Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M14.6523 26.841C14.6523 26.841 15.8096 19.2256 20.5681 15.9277C25.274 12.6659 29.9139 14.515 30.085 16.3566C30.2561 18.1983 28.9967 19.398 25.1884 19.398C19.4888 19.398 17.078 21.8845 15.0996 26.928C14.5457 28.3407 14.6523 26.841 14.6523 26.841Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M15.4498 29.3576C15.4498 29.3576 14.2925 21.7422 9.534 18.4443C4.82808 15.1825 0.18821 17.0316 0.0170856 18.8732C-0.154039 20.7149 0.91774 22.0421 6.06198 21.9146C11.532 21.7781 14.1213 29.6156 14.1213 29.6156L15.4498 29.3591V29.3576Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M18.2243 61.2964C20.1082 60.597 27.0125 59.0606 27.0125 52.3534C27.0125 48.3704 23.4196 45.3665 19.3391 44.6672C21.1522 44.0744 23.803 41.4257 23.803 38.4551C23.803 34.6297 20.3498 33.1022 17.5261 32.5094C17.5261 31.6369 20.6646 27.1299 20.6646 27.1299H7.69171C7.69171 27.1299 10.8302 31.6369 10.8302 32.5094C8.00423 33.1022 4.55322 34.6297 4.55322 38.4551C4.55322 41.4235 7.20409 44.0721 9.01714 44.6672C4.93667 45.3665 1.34381 48.3704 1.34381 52.3534C1.34381 59.0606 8.24804 60.597 10.132 61.2964C5.6681 61.716 3.43614 63.4633 3.08816 64.8598H25.2681C24.9201 63.4633 22.6882 61.716 18.2243 61.2964Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M14.1795 49.7139C9.43406 49.7139 5.83677 48.8391 2.8889 48.1064C1.92696 49.3053 1.34625 50.7485 1.34625 52.3514C1.34625 53.8035 1.66985 55.0112 2.19737 56.0214C5.63507 57.1892 8.91762 57.7709 14.1817 57.7709C19.4457 57.7709 22.7283 57.1892 26.166 56.0214C26.6913 55.0112 27.0171 53.8012 27.0171 52.3514C27.0171 50.7485 26.4342 49.3053 25.4745 48.1064C22.5266 48.8391 18.9293 49.7139 14.1839 49.7139H14.1795Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M23.4906 40.2536C23.6901 39.6786 23.8053 39.0747 23.8053 38.4575C23.8053 37.4695 23.5726 36.6347 23.1825 35.9287C21.7307 36.597 17.9162 37.5894 14.1793 37.5894C10.4424 37.5894 6.62788 36.597 5.17611 35.9287C4.78601 36.6347 4.55328 37.4673 4.55328 38.4575C4.55328 39.0769 4.66854 39.6808 4.86802 40.2536C7.2906 41.1417 10.735 41.8566 14.1793 41.8566C17.6237 41.8566 21.0658 41.1417 23.4906 40.2536Z",fill:"#E0E0E0"}))}function Wr({...e}){return(0,_.createElement)("svg",{...e,width:"118",height:"77",viewBox:"0 0 118 77",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("rect",{width:"118",height:"77",fill:"white"}),(0,_.createElement)("path",{d:"M72.0248 20.5848C66.0397 20.5848 62.5735 21.6313 60.597 23.9615C61.8763 19.4519 64.2402 16.0663 68.5586 13C63.4412 13.6607 60.4708 15.6051 59.0321 18.3876C57.5934 15.6074 54.623 13.6629 49.5056 13C53.824 16.0663 56.1879 19.4496 57.4672 23.9615C55.4906 21.6313 52.0245 20.5848 46.0394 20.5848C53.1732 23.9349 55.9023 26.6309 58.2264 31.4621H59.8356C62.1596 26.6309 64.891 23.9349 72.0225 20.5848H72.0248Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M63.8041 73.1943C66.1254 72.334 74.6367 70.445 74.6367 62.2003C74.6367 57.3033 70.2079 53.6096 65.18 52.7523C67.417 52.0214 70.6836 48.7668 70.6836 45.1152C70.6836 40.4107 66.4265 38.5338 62.946 37.8059C62.946 36.732 66.8148 31.1914 66.8148 31.1914H50.8218C50.8218 31.1914 54.6906 36.732 54.6906 37.8059C51.2072 38.5368 46.953 40.4107 46.953 45.1152C46.953 48.7668 50.2197 52.0214 52.4567 52.7523C47.4257 53.6126 42.9999 57.3064 42.9999 62.2003C42.9999 70.448 51.5113 72.337 53.8326 73.1943C48.3289 73.7087 45.5771 75.8563 45.1496 77.5739H72.4901C72.0595 75.8563 69.3077 73.7087 63.8071 73.1943H63.8041Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.1884 77.8602C39.7296 75.1315 38.8029 71.0481 38.8029 66.4848C38.8029 61.9215 39.7296 57.8381 41.1884 55.1094H30.5839C32.0427 57.8381 32.9693 61.9215 32.9693 66.4848C32.9693 71.0481 32.0427 75.1315 30.5839 77.8602H41.1884Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M35.8259 32.3584H30.0536L16 55.5332H31.058H40.5939H55.6518L41.5982 32.3584H35.8259Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{d:"M50.9764 47.8242H20.6754L16 55.5332L50.9764 47.8242Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M46.301 40.1118H25.3508L20.6754 47.8242L46.301 40.1118Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M41.598 32.3584H30.0535L25.3506 40.1119L41.598 32.3584Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M77.5858 59H96.2531L95.155 77.6673H78.6838L77.5858 59Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M88.6696 53.9424C88.6696 56.1976 86.9196 58.0258 86.9196 58.0258C86.9196 58.0258 85.1695 56.1976 85.1695 53.9424C85.1695 51.6871 86.9196 49.8589 86.9196 49.8589C86.9196 49.8589 88.6696 51.6871 88.6696 53.9424Z",fill:"#E0E0E0"}),(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.9589 64H77.8798L77.5857 59H96.253L95.9589 64Z",fill:"#E0E0E0"}))}function Jr(){const e=[{id:"front-side",image:(0,_.createElement)(jr,null),text:(0,D.__)("Front side","woocommerce")},{id:"close-up",image:(0,_.createElement)(qr,null),text:(0,D.__)("Close-up","woocommerce")},{id:"variants",image:(0,_.createElement)(Zr,null),text:(0,D.__)("Variants","woocommerce")},{id:"lifestyle-scene",image:(0,_.createElement)(Wr,null),text:(0,D.__)("Lifestyle scene","woocommerce")}];return(0,_.createElement)("div",{className:"woocommerce-image-placeholder__wrapper"},e.map((({id:e,image:t,text:o})=>(0,_.createElement)("div",{key:e,className:"woocommerce-image-placeholder__item"},t,(0,_.createElement)("p",null,o)))))}function Yr(e){return e.id?{id:e.id,name:e.title,src:e.url,alt:e.alt}:null}const{name:Xr}=Ur,Kr={example:{},edit:function({attributes:e,context:t}){var o;const{property:r,multiple:n}=e,[a,c]=(0,f.useEntityProp)("postType",t.postType,r),[l,i]=(0,_.useState)(!1),[s,u]=(0,_.useState)(!1),[m,d]=(0,_.useState)(null),p=(0,E.useWooBlockProps)(e,{className:we()({"has-images":Array.isArray(a)?a.length>0:Boolean(a)})});function h(e){return function(t){var o;if((0,X.recordEvent)(e),Array.isArray(t)){const e=t.filter((e=>e.id)).map((e=>({id:e.id,name:e.title,src:e.url,alt:e.alt})));(null===(o=t[0])||void 0===o?void 0:o.id)&&c([...a,...e])}else t.id&&c(Yr(t))}}const v=null!==a&&(!Array.isArray(a)||a.length>0);return(0,_.createElement)("div",{...p},(0,_.createElement)("div",{className:"woocommerce-product-form__image-drop-zone"},l?(0,_.createElement)("div",{className:"woocommerce-product-form__remove-image-drop-zone"},(0,_.createElement)("span",null,(0,_.createElement)(Ge,{icon:Pr,size:20,className:"icon-control"}),(0,D.__)("Drop here to remove","woocommerce")),(0,_.createElement)(S.DropZone,{onHTMLDrop:()=>u(!0),onDrop:()=>u(!0),label:(0,D.__)("Drop here to remove","woocommerce")})):(0,_.createElement)(Lr,null,(0,_.createElement)("div",{className:"woocommerce-product-form__media-uploader"},(0,_.createElement)(A.MediaUploader,{value:Array.isArray(a)?a.map((({id:e})=>e)):null!==(o=null==a?void 0:a.id)&&void 0!==o?o:void 0,multipleSelect:!!n&&"add",onError:()=>null,onFileUploadChange:h("product_images_add_via_file_upload_area"),onMediaGalleryOpen:()=>{(0,X.recordEvent)("product_images_media_gallery_open")},onSelect:function(e){if((0,X.recordEvent)("product_images_add_via_media_library"),Array.isArray(e)){const t=e.map(Yr).filter((e=>null!==e));c(t)}else c(Yr(e))},onUpload:h("product_images_add_via_drag_and_drop_upload"),label:"",buttonText:(0,D.__)("Choose an image","woocommerce")})))),v?(0,_.createElement)(A.ImageGallery,{allowDragging:!1,onDragStart:function(e){var t,o;if(Array.isArray(a)){const{id:r,dataset:n}=e.target;if(r)d(parseInt(r,10));else if(null==n?void 0:n.index){const e=parseInt(n.index,10);d(null!==(o=null===(t=a[e])||void 0===t?void 0:t.id)&&void 0!==o?o:null)}i((e=>!e))}},onDragEnd:function(){Array.isArray(a)&&(s&&m&&((0,X.recordEvent)("product_images_remove_image_button_click"),c(a.filter((e=>e.id!==m))),u(!1),d(null)),i((e=>!e)))},onOrderChange:function(e){if(Array.isArray(a)){const t=a.reduce(((e,t)=>({...e,[`${t.id}`]:t})),{}),o=e.filter((e=>{var o;return(null===(o=null==e?void 0:e.props)||void 0===o?void 0:o.id)in t})).map((e=>{var o;return t[null===(o=null==e?void 0:e.props)||void 0===o?void 0:o.id]}));(0,X.recordEvent)("product_images_change_image_order_via_image_gallery"),c(o)}},onReplace:function({replaceIndex:e,media:t}){if((0,X.recordEvent)("product_images_replace_image_button_click"),Array.isArray(a)&&!a.some((e=>t.id===e.id))){const o=Yr(t);if(o){const t=[...a];t[e]=o,c(t)}}else c(Yr(t))},onRemove:function({removedItem:e}){if((0,X.recordEvent)("product_images_remove_image_button_click"),Array.isArray(a)){const t=a.filter((t=>t.id===e.props.id));c(t)}else c(null)},onSelectAsCover:()=>(0,X.recordEvent)("product_images_select_image_as_cover_button_click")},(Array.isArray(a)?a:[a]).map(((e,t)=>(0,_.createElement)(A.ImageGalleryItem,{key:e.id,alt:e.alt,src:e.src,id:`${e.id}`,isCover:n&&0===t})))):(0,_.createElement)(Jr,null))}},Qr=()=>C({name:Xr,metadata:Ur,settings:Kr}),en=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-inventory-email-field","title":"Stock level threshold","category":"widgets","description":"Stock management minimum quantity.","keywords":["products","inventory","email","minimum"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');function tn(e,t,o=[]){const r=(0,_.useContext)(Ye),[n,a]=(0,_.useState)(!1),c=(0,_.useMemo)((()=>r.registerValidator(e,t)),[e,...o]);return(0,_.useEffect)((()=>()=>{r.unRegisterValidator(e)}),[]),{ref:c,error:r.errors[e],isValidating:n,validate:async t=>(a(!0),r.validateField(e,t).finally((()=>{a(!1)})))}}const{name:on,...rn}=en,nn={example:{},edit:function({attributes:e,clientId:t}){const o=(0,E.useWooBlockProps)(e),r=(0,yt.getSetting)("notifyLowStockAmount",2),[n,a]=(0,f.useEntityProp)("postType","product","low_stock_amount"),c=(0,w.useInstanceId)(S.BaseControl,"low_stock_amount"),{ref:l,error:i,validate:s}=tn(`low_stock_amount-${t}`,(async function(){if(n&&n<0)return(0,D.__)("This field must be a positive number.","woocommerce")}),[n]);return(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{...o},(0,_.createElement)("div",{className:"wp-block-columns"},(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(S.BaseControl,{id:c,label:(0,D.__)("Email me when stock reaches","woocommerce"),help:i||(0,_.createInterpolateElement)((0,D.__)("Make sure to enable notifications in <link>store settings.</link>","woocommerce"),{link:(0,_.createElement)(A.Link,{href:`${(0,yt.getSetting)("adminUrl")}admin.php?page=wc-settings&tab=products§ion=inventory`,target:"_blank",type:"external"})}),className:i&&"has-error"},(0,_.createElement)(S.__experimentalInputControl,{id:c,ref:l,name:"low_stock_amount",placeholder:(0,D.sprintf)((0,D.__)("%d (store default)","woocommerce"),r),onChange:a,onBlur:s,value:n,type:"number",min:0}))),(0,_.createElement)("div",{className:"wp-block-column"}))))}};function an(){return C({name:on,metadata:rn,settings:nn})}const cn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-sku-field","title":"Product text control","category":"woocommerce","description":"The product sku.","keywords":["products","sku"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),{name:ln,...sn}=cn,un={example:{},edit:function({attributes:e,context:t}){const o=(0,E.useWooBlockProps)(e),[r,n]=(0,f.useEntityProp)("postType",t.postType,"sku");return(0,_.createElement)("div",{...o},(0,_.createElement)(S.BaseControl,{id:"product_sku",className:"woocommerce-product-form_inventory-sku",label:(0,_.createInterpolateElement)((0,D.__)("Sku <description />","woocommerce"),{description:(0,_.createElement)("span",{className:"woocommerce-product-form__optional-input"},(0,D.__)("(STOCK KEEPING UNIT)","woocommerce"))})},(0,_.createElement)(S.__experimentalInputControl,{name:"woocommerce-product-sku",onChange:n,value:r||""})))}},mn=()=>C({name:ln,metadata:sn,settings:un}),dn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-name-field","title":"Product name","category":"widgets","description":"The product name.","keywords":["products","name","title"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"},"autoFocus":{"type":"boolean","default":false}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),pn=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})),hn=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),_n=({label:e,required:t,tooltip:o,note:r})=>{let n=e;return t?n=(null==r?void 0:r.length)?(0,_.createInterpolateElement)((0,D.__)("<label/> <note /> <required/>","woocommerce"),{label:(0,_.createElement)("span",null,e),note:(0,_.createElement)("span",{className:"woocommerce-product-form-label__note"},r),required:(0,_.createElement)("span",{className:"woocommerce-product-form-label__required"},(0,D.__)("*","woocommerce"))}):(0,_.createInterpolateElement)((0,D.__)("<label/> <required/>","woocommerce"),{label:(0,_.createElement)("span",null,e),required:(0,_.createElement)("span",{className:"woocommerce-product-form-label__required"},(0,D.__)("*","woocommerce"))}):(null==r?void 0:r.length)&&(n=(0,_.createInterpolateElement)((0,D.__)("<label/> <note />","woocommerce"),{label:(0,_.createElement)("span",null,e),note:(0,_.createElement)("span",{className:"woocommerce-product-form-label__note"},r)})),(0,_.createElement)("div",{className:"woocommerce-product-form-label__label"},n,o&&(0,_.createElement)(A.__experimentalTooltip,{text:(0,_.createElement)("span",{dangerouslySetInnerHTML:Fo(o)}),position:"top center",className:"woocommerce-product-form-label__tooltip"},(0,_.createElement)("span",{className:"woocommerce-product-form-label__icon"},(0,_.createElement)(Ge,{icon:No,size:18,fill:"#949494"}))))},{name:vn}=dn,wn={example:{},edit:function({attributes:e,clientId:t}){const o=(0,E.useWooBlockProps)(e),{editEntityRecord:r,saveEntityRecord:a}=(0,n.useDispatch)("core"),{hasEdit:c}=ft(),[l,i]=(0,_.useState)(!1),s=(0,f.useEntityId)("postType","product"),u=(0,n.useSelect)((e=>e("core").getEditedEntityRecord("postType","product",s))),[m,d]=(0,f.useEntityProp)("postType","product","sku"),[p,h]=(0,f.useEntityProp)("postType","product","name"),{permalinkPrefix:v,permalinkSuffix:g}=(0,n.useSelect)((e=>{const{getPermalinkParts:t}=e(H.PRODUCTS_STORE_NAME);if(s){const e=t(s);return{permalinkPrefix:null==e?void 0:e.prefix,permalinkSuffix:null==e?void 0:e.suffix}}return{}})),{ref:b,error:C,validate:y}=tn("name",(async function(){return p&&p!==oe?p.length>120?(0,D.__)("Please enter a product name shorter than 120 characters.","woocommerce"):void 0:(0,D.__)("Name field is required.","woocommerce")}),[p]),A=null!=C?C:s&&["publish","draft"].includes(u.status)&&v&&(0,_.createElement)("span",{className:"woocommerce-product-form__secondary-text product-details-section__product-link"},(0,D.__)("Product link","woocommerce"),": ",(0,_.createElement)("a",{href:u.permalink,target:"_blank",rel:"noreferrer"},v,u.slug||(0,L.cleanForSlug)(p),g),(0,_.createElement)(S.Button,{variant:"link",onClick:()=>i(!0)},(0,D.__)("Edit","woocommerce"))),x=(0,w.useInstanceId)(S.BaseControl,"product_name"),{selectBlock:k}=(0,n.useDispatch)("core/block-editor");(0,_.useEffect)((()=>{e.autoFocus&&k(t)}),[]);const[P,B]=wt("featured");function N(){B(!P)}return(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{...o},(0,_.createElement)(S.BaseControl,{id:x,label:(0,_.createElement)(_n,{label:(0,D.__)("Name","woocommerce"),required:!0}),className:we()({"has-error":C}),help:A},(0,_.createElement)(S.__experimentalInputControl,{id:x,ref:b,name:"name",autoFocus:e.autoFocus,placeholder:(0,D.__)("e.g. 12 oz Coffee Mug","woocommerce"),onChange:h,value:p&&p!==oe?p:"",autoComplete:"off","data-1p-ignore":!0,onBlur:()=>{c("name")&&(m||C||d((0,L.cleanForSlug)(p)),y())},suffix:function(){const e=(0,D.__)("Mark as featured","woocommerce"),t=(0,D.__)("Unmark as featured","woocommerce"),o=P?t:e;return(0,_.createElement)(S.Tooltip,{text:o,position:"top center"},P?(0,_.createElement)(S.Button,{icon:pn,"aria-label":t,onClick:N}):(0,_.createElement)(S.Button,{icon:hn,"aria-label":e,onClick:N}))}()})),l&&(0,_.createElement)(K,{permalinkPrefix:v||"",permalinkSuffix:g||"",product:u,onCancel:()=>i(!1),onSaved:()=>i(!1),saveHandler:async e=>{const{slug:t,permalink:o}=await a("postType","product",{id:u.id,slug:e});if(t&&o)return r("postType","product",u.id,{slug:t,permalink:o}),{slug:t,permalink:o}}})))}},gn=()=>C({name:vn,metadata:dn,settings:wn}),En=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-pricing-field","description":"A product price block with currency display.","title":"Product pricing","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"property":{"type":"string","__experimentalRole":"content"},"label":{"type":"string"},"help":{"type":"string"},"tooltip":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),fn=(e,t,o)=>{const{decimalSeparator:r,thousandSeparator:n}=t,a=new RegExp("[^-0-9%s1%s2]".replace("%s1",r).replace("%s2",n),"g");return void 0===e?e:o(e).replace(a,"")},bn=({value:e,onChange:t,onFocus:o,onKeyUp:r})=>{const{sanitizePrice:n}=ne(),a=(0,_.useContext)(ee.CurrencyContext),{getCurrencyConfig:c,formatAmount:l}=a,i=c();return{prefix:i.symbol,className:"components-currency-control",value:fn(String(e),i,l),sanitize:e=>n(String(e)),onFocus(e){br(e.currentTarget),o&&o(e)},onKeyUp(o){const a=Number.parseFloat(n(e||"0")),c=Number(o.currentTarget.step||"1");"ArrowUp"===o.code&&t(String(a+c)),"ArrowDown"===o.code&&t(String(a-c)),r&&r(o)},onChange(e){const o=n(e);t&&t(o)}}},{name:Cn,...yn}=En,An={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,E.useWooBlockProps)(e),{property:r,label:n=(0,D.__)("Price","woocommerce"),help:a,disabled:c,tooltip:l}=e,[i,s]=wt(r,{postType:t,fallbackValue:""}),u=bn({value:i||"",onChange:s}),m=a?(0,_.createInterpolateElement)(a,{PricingTab:(0,_.createElement)(A.Link,{href:(0,je.getNewPath)({tab:"pricing"}),onClick:()=>{(0,X.recordEvent)("product_pricing_help_click")}})}):null,d=(0,w.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-pricing-field");return(0,_.createElement)("div",{...o},(0,_.createElement)(S.BaseControl,{id:d,help:m},(0,_.createElement)(S.__experimentalInputControl,{...u,disabled:c,id:d,name:r,label:l?(0,_.createElement)(_n,{label:n,tooltip:l}):n})))}};function xn(){return C({name:Cn,metadata:yn,settings:An})}const Sn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-radio-field","title":"Product radio control","category":"woocommerce","description":"The product radio.","keywords":["products","radio","input"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string"},"property":{"type":"string"},"options":{"type":"array","items":{"type":"object"},"default":[],"__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}');function kn({title:e,description:t,className:o,...r}){return(0,_.createElement)(S.RadioControl,{...r,className:we()(o,"woocommerce-radio-field"),label:(0,_.createElement)(_.Fragment,null,(0,_.createElement)("span",{className:"woocommerce-radio-field__title"},e),t&&(0,_.createElement)("span",{className:"woocommerce-radio-field__description",dangerouslySetInnerHTML:Fo(t)}))})}const{name:Pn,...Bn}=Sn,Nn={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,E.useWooBlockProps)(e),{description:r,options:n,property:a,title:c}=e,[l,i]=wt(a,{postType:t,fallbackValue:""});return(0,_.createElement)("div",{...o},(0,_.createElement)(kn,{title:c,description:r,selected:l,options:n,onChange:e=>i(e||"")}))}};function Mn(){return C({name:Pn,metadata:Bn,settings:Nn})}const Vn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-regular-price-field","description":"A product price block with currency display.","title":"Product regular price","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"help":{"type":"string"},"isRequired":{"type":"boolean","default":false},"tooltip":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"],"editorStyle":"file:./editor.css"}'),{name:Tn,...Fn}=Vn,Dn={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,E.useWooBlockProps)(e),{label:n,help:a,isRequired:c,tooltip:l}=e,[i,s]=(0,f.useEntityProp)("postType",o.postType||"product","regular_price"),[u]=(0,f.useEntityProp)("postType",o.postType||"product","sale_price"),m=bn({value:i,onChange:s}),d=a?(0,_.createInterpolateElement)(a,{PricingTab:(0,_.createElement)(A.Link,{href:(0,je.getNewPath)({tab:"pricing"}),onClick:()=>{(0,X.recordEvent)("product_pricing_help_click")}})}):null,p=(0,w.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-regular-price-field"),{ref:h,error:v,validate:g}=tn(`regular_price-${t}`,(async function(){const e=Number.parseFloat(i);if(e){if(e<0)return(0,D.__)("List price must be greater than or equals to zero.","woocommerce");if(u&&e<=Number.parseFloat(u))return(0,D.__)("List price must be greater than the sale price.","woocommerce")}else if(c)return(0,D.sprintf)((0,D.__)("%s is required.","woocommerce"),n)}),[i,u]);return(0,_.useEffect)((()=>{c&&g()}),[]),(0,_.createElement)("div",{...r},(0,_.createElement)(S.BaseControl,{id:p,help:v||d,className:we()({"has-error":v})},(0,_.createElement)(S.__experimentalInputControl,{...m,id:p,name:"regular_price",ref:h,label:l?(0,_.createElement)(_n,{label:n,tooltip:l}):n,onBlur:g})))}};function Ln(){return C({name:Tn,metadata:Fn,settings:Dn})}const Hn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-sale-price-field","description":"A product price block with currency display.","title":"Product sale price","category":"widgets","keywords":["products","price"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"help":{"type":"string"},"tooltip":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"],"editorStyle":"file:./editor.css"}'),{name:Rn,...zn}=Hn,In={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,E.useWooBlockProps)(e),{label:n,help:a,tooltip:c}=e,[l]=(0,f.useEntityProp)("postType",o.postType||"product","regular_price"),[i,s]=(0,f.useEntityProp)("postType",o.postType||"product","sale_price"),u=bn({value:i,onChange:s}),m=(0,w.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-sale-price-field"),{ref:d,error:p,validate:h}=tn(`sale-price-${t}`,(async function(){if(i){if(Number.parseFloat(i)<0)return(0,D.__)("Sale price must be greater than or equals to zero.","woocommerce");const e=Number.parseFloat(l);if(!e||e<=Number.parseFloat(i))return(0,D.__)("Sale price must be lower than the list price.","woocommerce")}}),[l,i]);return(0,_.createElement)("div",{...r},(0,_.createElement)(S.BaseControl,{id:m,help:p||a,className:we()({"has-error":p})},(0,_.createElement)(S.__experimentalInputControl,{...u,id:m,name:"sale_price",ref:d,label:c?(0,_.createElement)(_n,{label:n,tooltip:c}):n,onBlur:h})))}};function On(){return C({name:Rn,metadata:zn,settings:In})}const $n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-schedule-sale-fields","title":"Product schedule sale fields","category":"woocommerce","description":"The product schedule sale fields.","keywords":["products","schedule","sale"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),Gn=window.moment;var Un=__webpack_require__.n(Gn);const{name:jn,...qn}=$n,Zn={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,E.useWooBlockProps)(e),{hasEdit:n}=ft(),a=(0,at.getSettings)().formats.datetime,[c,l]=(0,_.useState)(!1),[i]=(0,f.useEntityProp)("postType",o.postType||"product","sale_price"),s=Number.parseFloat(i||"0")>0,[u,m]=(0,f.useEntityProp)("postType",o.postType||"product","date_on_sale_from_gmt"),[d,p]=(0,f.useEntityProp)("postType",o.postType||"product","date_on_sale_to_gmt"),h=Un()().startOf("minute").toISOString();(0,_.useEffect)((()=>{n("sale_price")&&!s&&(l(!1),m(""),p(""))}),[s]),(0,_.useEffect)((()=>{(u||d)&&l(!0)}),[u,d]);const v=Un()(u,Un().ISO_8601,!0),w=Un()(d,Un().ISO_8601,!0),{ref:g,error:b,validate:C}=tn(`date_on_sale_from_gmt-${t}`,(async function(){if(c&&u){if(!v.isValid())return(0,D.__)("Please enter a valid date.","woocommerce");if(v.isAfter(w))return(0,D.__)("The start date of the sale must be before the end date.","woocommerce")}}),[c,u,v,w]),{ref:y,error:x,validate:k}=tn(`date_on_sale_to_gmt-${t}`,(async function(){if(c&&d){if(!w.isValid())return(0,D.__)("Please enter a valid date.","woocommerce");if(w.isBefore(v))return(0,D.__)("The end date of the sale must be after the start date.","woocommerce")}}),[c,u,v,w]);return(0,_.createElement)("div",{...r},(0,_.createElement)(S.ToggleControl,{label:(0,D.__)("Schedule sale","woocommerce"),checked:c,onChange:function(e){(0,X.recordEvent)("product_pricing_schedule_sale_toggle_click",{enabled:e}),l(e),e?(m(h),p("")):(m(""),p(""))},disabled:!s}),c&&(0,_.createElement)("div",{className:"wp-block-columns wp-block-woocommerce-product-schedule-sale-fields__content"},(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(A.DateTimePickerControl,{ref:g,label:(0,D.__)("From","woocommerce"),placeholder:(0,D.__)("Sale start date and time (optional)","woocommerce"),dateTimeFormat:a,currentDate:u,onChange:m,className:b&&"has-error",help:b,onBlur:()=>C()})),(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(A.DateTimePickerControl,{ref:y,label:(0,D.__)("To","woocommerce"),placeholder:(0,D.__)("Sale end date and time (optional)","woocommerce"),dateTimeFormat:a,currentDate:d,onChange:e=>p(Un()(e).startOf("minute").toISOString()),onBlur:()=>k(),className:x&&"has-error",help:x}))))}};function Wn(){return C({name:jn,metadata:qn,settings:Zn})}const Jn=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-section","title":"Product section","category":"woocommerce","description":"The product section.","keywords":["products","section","group"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string","__experimentalRole":"content"},"blockGap":{"type":"string","enum":["unit-30","unit-40"],"default":"unit-30"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');function Yn({name:e,...t}){const{clientId:o}=(0,vt.useBlockEditContext)();return(0,_.createElement)(S.Slot,{...t,name:Tr(e,o)})}function Xn({description:e,sectionTagName:t,title:o}){const r="fieldset"===t?"legend":"div";return(0,_.createElement)(r,{className:"wp-block-woocommerce-product-section-header__heading"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section-header__heading-title-wrapper"},(0,_.createElement)("h2",{className:"wp-block-woocommerce-product-section-header__heading-title"},o,e&&(0,_.createElement)(A.__experimentalTooltip,{className:"wp-block-woocommerce-product-section-header__heading-tooltip",text:(0,_.createElement)("p",{className:"wp-block-woocommerce-product-section-header__heading-description",dangerouslySetInnerHTML:Fo(e)}),position:"bottom center",helperText:(0,D.__)("View helper text","woocommerce")})),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-section-header__actions"},(0,_.createElement)(Yn,{name:"section-actions"}))),(0,_.createElement)(Yn,{name:"section-description"}))}const{name:Kn,...Qn}=Jn,ea={example:{},edit:function({attributes:e}){const{description:t,title:o,blockGap:r}=e,n=(0,E.useWooBlockProps)(e),a=(0,vt.useInnerBlocksProps)({className:we()("wp-block-woocommerce-product-section-header__content",`wp-block-woocommerce-product-section-header__content--block-gap-${r}`)},{templateLock:"all"}),c=o?"fieldset":"div";return(0,_.createElement)(c,{...n},o&&(0,_.createElement)(Xn,{description:t,sectionTagName:c,title:o}),(0,_.createElement)("div",{...a}))}};function ta(){return C({name:Kn,metadata:Qn,settings:ea})}const oa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-section-description","title":"Product section description","category":"woocommerce","description":"The product section description.","keywords":["products","section","description"],"textdomain":"default","attributes":{"content":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:ra,...na}=oa,aa={example:{},edit:function({attributes:e}){const{content:t}=e,o=(0,E.useWooBlockProps)(e);return(0,_.createElement)(Fr,{...o,name:"section-description",slotContainerBlockName:"woocommerce/product-section"},(0,_.createElement)("div",null,t))}};function ca(){return C({name:ra,metadata:na,settings:aa})}const la=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-subsection","title":"Product subsection","category":"woocommerce","description":"The product subsection.","keywords":["products","subsection","group"],"textdomain":"default","attributes":{"title":{"type":"string"},"description":{"type":"string","__experimentalRole":"content"},"blockGap":{"type":"string","enum":["unit-30","unit-40"],"default":"unit-30"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),{name:ia,...sa}=la,ua={example:{},edit:function({attributes:e}){const{description:t,title:o,blockGap:r}=e,n=(0,E.useWooBlockProps)(e),a=(0,vt.useInnerBlocksProps)({className:we()("wp-block-woocommerce-product-section-header__content",`wp-block-woocommerce-product-section-header__content--block-gap-${r}`)},{templateLock:"all"}),c=o?"fieldset":"div";return(0,_.createElement)(c,{...n},o&&(0,_.createElement)(Xn,{description:t,sectionTagName:c,title:o}),(0,_.createElement)("div",{...a}))}};function ma(){return C({name:ia,metadata:sa,settings:ua})}const da=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-subsection-description","title":"Product subsection description","category":"woocommerce","description":"The product subsection description.","keywords":["products","subsection","description"],"textdomain":"default","attributes":{"content":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false}}'),{name:pa,...ha}=da,_a={example:{},edit:function({attributes:e}){const{content:t}=e,o=(0,E.useWooBlockProps)(e);return(0,_.createElement)(Fr,{...o,name:"section-description",slotContainerBlockName:"woocommerce/product-subsection"},(0,_.createElement)("div",null,t))}};function va(){return C({name:pa,metadata:ha,settings:_a})}const wa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-shipping-class-field","title":"Product shipping class field","category":"woocommerce","description":"The product shipping class field.","keywords":["products","shipping","class"],"textdomain":"default","attributes":{"title":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}');function ga({onAdd:e,onCancel:t}){var o;const{errors:r,getInputProps:n,isValidForm:a}=(0,A.useFormContext)(),[c,l]=(0,_.useState)(!1);return(0,_.createElement)("div",{className:"woocommerce-add-new-shipping-class-modal__wrapper"},(0,_.createElement)(S.TextControl,{...n("name"),placeholder:(0,D.__)("e.g. Fragile products","woocommerce"),label:(0,_.createInterpolateElement)((0,D.__)("Name <required />","woocommerce"),{required:(0,_.createElement)("span",{className:"woocommerce-add-new-shipping-class-modal__optional-input"},(0,D.__)("(required)","woocommerce"))})}),(0,_.createElement)(S.TextControl,{...n("slug"),label:(0,D.__)("Slug","woocommerce")}),(0,_.createElement)(S.TextControl,{...n("description"),label:(0,D.__)("Description","woocommerce"),help:null!==(o=null==r?void 0:r.description)&&void 0!==o?o:(0,D.__)("Describe how you and other store administrators can use this shipping class.","woocommerce")}),(0,_.createElement)("div",{className:"woocommerce-add-new-shipping-class-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,onClick:t},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{isPrimary:!0,isBusy:c,disabled:!a||c,onClick:function(){l(!0),e().then((()=>{l(!1),t()})).catch((()=>{l(!1)}))}},(0,D.__)("Add","woocommerce"))))}function Ea(e){var t;const o={};return(null===(t=e.name)||void 0===t?void 0:t.length)||(o.name=(0,D.__)("The shipping class name is required.","woocommerce")),o}const fa={name:"",slug:"",description:""};function ba({shippingClass:e,onAdd:t,onCancel:o}){return(0,_.createElement)(S.Modal,{title:(0,D.__)("New shipping class","woocommerce"),className:"woocommerce-add-new-shipping-class-modal",onRequestClose:o},(0,_.createElement)(A.Form,{initialValues:null!=e?e:fa,validate:Ea,errors:{},onSubmit:function(e){return t(Object.entries(e).reduce((function(e,[t,o]){return{...e,[t]:""===o?void 0:o}}),{}))}},(e=>(0,_.createElement)(ga,{onAdd:e.handleSubmit,onCancel:o}))))}const Ca=[{value:"",label:(0,D.__)("No shipping class","woocommerce")},{value:U,label:(0,D.__)("Add new shipping class","woocommerce")}];function ya(e){return e.map((({slug:e,name:t})=>({value:e,label:t})))}function Aa(e,t){const o=null==e?void 0:e.find((({slug:e})=>"uncategorized"!==e));if(o&&!(null==t?void 0:t.some((({slug:e})=>e===o.slug))))return{name:o.name,slug:o.slug}}const{name:xa,...Sa}=wa,ka={example:{},edit:function({attributes:e,context:t}){const[o,r]=(0,_.useState)(!1),a=(0,E.useWooBlockProps)(e),{createProductShippingClass:c,invalidateResolution:l}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_SHIPPING_CLASSES_STORE_NAME),{createErrorNotice:i}=(0,n.useDispatch)("core/notices"),[s]=(0,f.useEntityProp)("postType",t.postType,"categories"),[u,m]=(0,f.useEntityProp)("postType",t.postType,"shipping_class"),[d]=(0,f.useEntityProp)("postType",t.postType,"virtual");function p(e){let t=(0,D.__)("We couldn’t add this shipping class. Try again in a few seconds.","woocommerce");throw"term_exists"===e.code&&(t=(0,D.__)("A shipping class with that slug already exists.","woocommerce")),i(t,{explicitDismiss:!0}),e}const{shippingClasses:h}=(0,n.useSelect)((e=>{var t;const{getProductShippingClasses:o}=e(H.EXPERIMENTAL_PRODUCT_SHIPPING_CLASSES_STORE_NAME);return{shippingClasses:null!==(t=o())&&void 0!==t?t:[]}}),[]),v=(0,w.useInstanceId)(S.BaseControl,"wp-block-woocommerce-product-shipping-class-field");return(0,_.createElement)("div",{...a},(0,_.createElement)("div",{className:"wp-block-columns"},(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(S.SelectControl,{id:v,name:"shipping_class",value:u,onChange:e=>{e!==U?m(e):r(!0)},label:(0,D.__)("Shipping class","woocommerce"),options:[...Ca,...ya(null!=h?h:[])],disabled:d,help:(0,_.createInterpolateElement)((0,D.__)("Manage shipping classes and rates in <Link>global settings</Link>.","woocommerce"),{Link:(0,_.createElement)(A.Link,{href:(0,je.getNewPath)({tab:"shipping",section:"classes"},"",{},"wc-settings"),target:"_blank",type:"external",onClick:()=>{(0,X.recordEvent)("product_shipping_global_settings_link_click")}},(0,_.createElement)(_.Fragment,null))})})),(0,_.createElement)("div",{className:"wp-block-column"})),o&&(0,_.createElement)(ba,{shippingClass:Aa(s,h),onAdd:e=>c(e).then((e=>((0,X.recordEvent)("product_new_shipping_class_modal_add_button_click"),l("getProductShippingClasses"),m(e.slug),e))).catch(p),onCancel:()=>r(!1)}))}};function Pa(){return C({name:xa,metadata:Sa,settings:ka})}const Ba=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-shipping-dimensions-fields","title":"Product shipping dimensions fields","category":"woocommerce","description":"The product shipping dimensions fields.","keywords":["products","shipping","dimensions"],"textdomain":"default","attributes":{"__contentEditable":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');function Na({highlight:e,labels:t={},...o}){return(0,_.createElement)("svg",{width:"295",height:"195",viewBox:"0 0 295 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,_.createElement)("path",{d:"M11.5664 134.604V35.3599C11.5664 33.9482 12.9862 32.9782 14.3014 33.4915L99.6373 66.7959C100.4 67.0935 100.905 67.8243 100.914 68.6426L102.037 171.578C102.052 173.027 100.574 174.014 99.2419 173.444L12.7831 136.448C12.0451 136.132 11.5664 135.407 11.5664 134.604Z",fill:"A"===e?"#F0F6FC":"#FFFFFF"}),(0,_.createElement)("path",{d:"M11.5664 134.603V35.3599C11.5664 33.9482 12.9862 32.9782 14.3014 33.4915L99.624 66.7908C100.393 67.0909 100.9 67.8314 100.901 68.6569L101.024 174.131L12.7844 136.447C12.0457 136.132 11.5664 135.406 11.5664 134.603Z",stroke:"#E0E0E0",strokeWidth:"2.00574"}),(0,_.createElement)("path",{d:"M1.25977 150.388L86.0112 188.183",stroke:"A"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,_.createElement)("path",{d:"M250.775 32.9793L100.9 66.9577V172.981C100.9 174.297 102.146 175.257 103.418 174.921L251.73 135.764C252.611 135.531 253.224 134.735 253.224 133.824V34.9354C253.224 33.6488 252.03 32.6948 250.775 32.9793Z",fill:"B"===e?"#F0F6FC":"#FFFFFF",stroke:"#E0E0E0",strokeWidth:"2.00574"}),(0,_.createElement)("path",{d:"M270.402 28.9875V132.064",stroke:"C"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,_.createElement)("path",{d:"M257.804 152.679L107.771 192.765",stroke:"B"===e?"#006FAD":"#CCCCCC",strokeWidth:"1.50431",strokeMiterlimit:"16"}),(0,_.createElement)("path",{d:"M13.1406 33.41L161.446 1.61817C161.808 1.54066 162.184 1.56462 162.533 1.68742L251.16 32.8868",stroke:"#E0E0E0",strokeWidth:"2.00574"}),t.C?(0,_.createElement)("text",{x:"280",y:"85",fontSize:11,fill:"C"===e?"#007CBA":"#949494"},t.C):(0,_.createElement)("path",{d:"M282.123 80.7892C282.123 79.5323 282.435 78.5405 283.058 77.8136C283.685 77.0867 284.537 76.7233 285.615 76.7233C286.467 76.7233 287.192 76.9739 287.79 77.4752C288.391 77.9729 288.741 78.6175 288.837 79.4088H287.639C287.525 78.9326 287.285 78.553 286.92 78.2701C286.558 77.9873 286.123 77.8458 285.615 77.8458C284.92 77.8458 284.368 78.1108 283.96 78.6407C283.556 79.1671 283.353 79.8833 283.353 80.7892C283.353 81.6915 283.556 82.4077 283.96 82.9376C284.368 83.464 284.922 83.7272 285.62 83.7272C286.132 83.7272 286.569 83.5983 286.93 83.3405C287.296 83.0826 287.532 82.7353 287.639 82.2985H288.837C288.73 83.0647 288.382 83.6824 287.795 84.1515C287.208 84.617 286.483 84.8497 285.62 84.8497C284.542 84.8497 283.69 84.4863 283.063 83.7594C282.437 83.0325 282.123 82.0424 282.123 80.7892Z",fill:"C"===e?"#007CBA":"#949494"}),t.B?(0,_.createElement)("text",{x:"188",y:"190",fontSize:11,fill:"B"===e?"#007CBA":"#949494"},t.B):(0,_.createElement)("path",{d:"M192.281 189.611V181.861H195.396C196.123 181.861 196.692 182.034 197.104 182.382C197.519 182.725 197.727 183.196 197.727 183.794C197.727 184.199 197.596 184.562 197.335 184.885C197.073 185.203 196.751 185.395 196.368 185.459V185.551C196.891 185.604 197.312 185.803 197.63 186.147C197.953 186.487 198.114 186.91 198.114 187.414C198.114 188.098 197.879 188.635 197.41 189.026C196.941 189.416 196.293 189.611 195.466 189.611H192.281ZM193.484 188.591H195.224C195.765 188.591 196.177 188.483 196.459 188.268C196.742 188.054 196.884 187.74 196.884 187.328C196.884 186.924 196.737 186.618 196.443 186.41C196.15 186.199 195.72 186.093 195.154 186.093H193.484V188.591ZM193.484 185.142H194.913C195.442 185.142 195.844 185.048 196.116 184.858C196.391 184.664 196.529 184.383 196.529 184.015C196.529 183.656 196.404 183.379 196.153 183.182C195.906 182.981 195.561 182.881 195.117 182.881H193.484V185.142Z",fill:"B"===e?"#007CBA":"#949494"}),t.A?(0,_.createElement)("text",{x:"18",y:"185",fontSize:11,fill:"A"===e?"#007CBA":"#949494"},t.A):(0,_.createElement)("path",{d:"M22.7694 185.149L25.5678 177.399H26.8622L29.6605 185.149H28.3822L27.6732 183.092H24.7191L24.0048 185.149H22.7694ZM25.0253 182.082H27.3671L26.2445 178.806H26.1532L25.0253 182.082Z",fill:"A"===e?"#007CBA":"#949494"}))}const{name:Ma,...Va}=Ba,Ta={example:{},edit:function({attributes:e,clientId:t,context:o}){var r,a,c;const l=(0,E.useWooBlockProps)(e),[i,s]=(0,f.useEntityProp)("postType",o.postType,"dimensions"),[u,m]=(0,f.useEntityProp)("postType",o.postType,"weight"),[d]=(0,f.useEntityProp)("postType",o.postType,"virtual"),[p,h]=(0,_.useState)(),{formatNumber:v,parseNumber:g}=ne(),{dimensionUnit:b,weightUnit:C}=(0,n.useSelect)((e=>{const{getOption:t}=e(H.OPTIONS_STORE_NAME);return{dimensionUnit:t("woocommerce_dimension_unit"),weightUnit:t("woocommerce_weight_unit")}}),[]);function y(e,t){return{name:`dimensions.${e}`,value:i?v(String(i[e])):void 0,onChange:t=>s({...null!=i?i:{},[e]:g(t)}),onFocus:()=>h(t),onBlur:()=>h(void 0),suffix:b,disabled:d}}const{ref:A,error:x,validate:k}=tn(`dimensions_width-${t}`,(async function(){if((null==i?void 0:i.width)&&+i.width<=0)return(0,D.__)("Width must be greater than zero.","woocommerce")}),[null==i?void 0:i.width]),{ref:P,error:B,validate:N}=tn(`dimensions_length-${t}`,(async function(){if((null==i?void 0:i.length)&&+i.length<=0)return(0,D.__)("Length must be greater than zero.","woocommerce")}),[null==i?void 0:i.length]),{ref:M,error:V,validate:T}=tn(`dimensions_height-${t}`,(async function(){if((null==i?void 0:i.height)&&+i.height<=0)return(0,D.__)("Height must be greater than zero.","woocommerce")}),[null==i?void 0:i.height]),{ref:F,error:L,validate:R}=tn(`weight-${t}`,(async function(){if(u&&+u<=0)return(0,D.__)("Weight must be greater than zero.","woocommerce")}),[u]),z={...y("width","A"),id:(0,w.useInstanceId)(S.BaseControl,"product_shipping_dimensions_width"),ref:A,onBlur:k},I={...y("length","B"),id:(0,w.useInstanceId)(S.BaseControl,"product_shipping_dimensions_length"),ref:P,onBlur:N},O={...y("height","C"),id:(0,w.useInstanceId)(S.BaseControl,"product_shipping_dimensions_height"),ref:M,onBlur:T},$={id:(0,w.useInstanceId)(S.BaseControl,"product_shipping_weight"),name:"weight",value:v(String(u)),onChange:e=>m(g(e)),suffix:C,ref:F,onBlur:R,disabled:d};return(0,_.createElement)("div",{...l},(0,_.createElement)("h4",null,(0,D.__)("Dimensions","woocommerce")),(0,_.createElement)("div",{className:"wp-block-columns"},(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(S.BaseControl,{id:z.id,label:(0,_.createInterpolateElement)((0,D.__)("Width <Side />","woocommerce"),{Side:(0,_.createElement)("span",null,"A")}),className:we()({"has-error":x}),help:x},(0,_.createElement)(S.__experimentalInputControl,{...z})),(0,_.createElement)(S.BaseControl,{id:I.id,label:(0,_.createInterpolateElement)((0,D.__)("Length <Side />","woocommerce"),{Side:(0,_.createElement)("span",null,"B")}),className:we()({"has-error":B}),help:B},(0,_.createElement)(S.__experimentalInputControl,{...I})),(0,_.createElement)(S.BaseControl,{id:O.id,label:(0,_.createInterpolateElement)((0,D.__)("Height <Side />","woocommerce"),{Side:(0,_.createElement)("span",null,"C")}),className:we()({"has-error":V}),help:V},(0,_.createElement)(S.__experimentalInputControl,{...O})),(0,_.createElement)(S.BaseControl,{id:$.id,label:(0,D.__)("Weight","woocommerce"),className:we()({"has-error":L}),help:L},(0,_.createElement)(S.__experimentalInputControl,{...$}))),(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(Na,{highlight:p,className:"wp-block-woocommerce-product-shipping-dimensions-fields__dimensions-image",labels:{A:(null===(r=z.value)||void 0===r?void 0:r.length)?z.value:void 0,B:(null===(a=I.value)||void 0===a?void 0:a.length)?I.value:void 0,C:(null===(c=O.value)||void 0===c?void 0:c.length)?O.value:void 0}}))))}};function Fa(){return C({name:Ma,metadata:Va,settings:Ta})}const Da=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-summary-field","title":"Product summary","category":"widgets","description":"The product summary.","keywords":["products","summary","excerpt"],"textdomain":"default","attributes":{"property":{"type":"string"},"align":{"type":"string"},"allowedFormats":{"type":"array","default":["core/bold","core/code","core/italic","core/link","core/strikethrough","core/underline","core/text-color","core/subscript","core/superscript","core/unknown"]},"direction":{"type":"string","enum":["ltr","rtl"]},"label":{"type":"string"},"helpText":{"type":"string"},"content":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),La=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Ha({direction:e,onChange:t}){return(0,_.createElement)(_.Fragment,null,(0,D.isRTL)()&&(0,_.createElement)(S.ToolbarButton,{icon:La,title:(0,D._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:function(){"function"==typeof t&&t("ltr"===e?void 0:"ltr")}}))}const Ra=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"})),za=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"})),Ia=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"})),Oa=(0,_.createElement)(pe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z"})),$a=[{icon:Ra,title:(0,D.__)("Align text left","woocommerce"),align:"left"},{icon:za,title:(0,D.__)("Align text center","woocommerce"),align:"center"},{icon:Ia,title:(0,D.__)("Align text right","woocommerce"),align:"right"},{icon:Oa,title:(0,D.__)("Align text justify","woocommerce"),align:"justify"}],Ga=()=>{const{clearSelectedBlock:e}=(0,n.useDispatch)(vt.store);return{handleBlur:function(t){var o;(null===(o=null==t?void 0:t.relatedTarget)||void 0===o?void 0:o.closest(".block-editor-block-contextual-toolbar"))||e()}}},{name:Ua,...ja}=Da,qa={example:{},edit:function e({attributes:t,setAttributes:o,context:r}){const{align:n,allowedFormats:a,direction:c,label:l,helpText:i}=t,s=(0,E.useWooBlockProps)(t,{style:{direction:c}}),u=(0,w.useInstanceId)(e,"wp-block-woocommerce-product-summary-field__content"),[m,d]=(0,f.useEntityProp)("postType",r.postType||"product",t.property),{handleBlur:p}=Ga();return(0,_.createElement)("div",{className:"wp-block wp-block-woocommerce-product-summary-field-wrapper"},(0,_.createElement)(vt.BlockControls,{group:"block"},(0,_.createElement)(vt.AlignmentControl,{alignmentControls:$a,value:n,onChange:function(e){o({align:e})}}),(0,_.createElement)(Ha,{direction:c,onChange:function(e){o({direction:e})}})),(0,_.createElement)(S.BaseControl,{id:u.toString(),label:void 0===l?(0,_.createInterpolateElement)((0,D.__)("Summary","woocommerce"),{optional:(0,_.createElement)("span",{className:"woocommerce-product-form__optional-input"},(0,D.__)("(OPTIONAL)","woocommerce"))}):l,help:void 0===i?(0,D.__)("Summarize this product in 1-2 short sentences. We'll show it at the top of the page.","woocommerce"):i},(0,_.createElement)("div",{...s},(0,_.createElement)(vt.RichText,{id:u.toString(),identifier:"content",tagName:"p",value:m,onChange:d,"data-empty":Boolean(m),className:we()("components-summary-control",{[`has-text-align-${n}`]:n}),dir:c,allowedFormats:a,onBlur:p}))))}};function Za(){return C({name:Ua,metadata:ja,settings:qa})}const Wa=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-tab","title":"Product tab","category":"woocommerce","description":"The product tab.","keywords":["products","tab","group"],"textdomain":"default","attributes":{"id":{"type":"string"},"title":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"providesContext":{"isInSelectedTab":"isSelected"},"usesContext":["selectedTab"],"editorStyle":"file:./editor.css"}'),Ja=({children:e})=>(0,_.createElement)(_.Fragment,null,e);function Ya({children:e,className:t,id:o,order:r=100,selected:n=!1}){const a=we()("wp-block-woocommerce-product-tab__button",t,{"is-selected":n});return(0,_.createElement)(S.Fill,{name:ut},(t=>{const{onClick:c}=t;return(0,_.createElement)(Ja,{order:r},(0,_.createElement)(S.Button,{key:o,className:a,onClick:()=>c(o),id:`woocommerce-product-tab__${o}`,"aria-controls":`woocommerce-product-tab__${o}-content`,"aria-selected":n},e))}))}const{name:Xa,...Ka}=Wa,Qa={example:{},edit:function({setAttributes:e,attributes:t,context:o}){const r=(0,E.useWooBlockProps)(t),{id:n,title:a,_templateBlockOrder:c,isSelected:l}=t,i=o.selectedTab===n;i!==l&&e({isSelected:i});const s=we()("wp-block-woocommerce-product-tab__content",{"is-selected":i});return(0,_.createElement)("div",{...r},(0,_.createElement)(Ya,{id:n,selected:i,order:c},a),(0,_.createElement)("div",{id:`woocommerce-product-tab__${n}-content`,"aria-labelledby":`woocommerce-product-tab__${n}`,role:"tabpanel",className:s},(0,_.createElement)(vt.InnerBlocks,{templateLock:"contentOnly"})))}};function ec(){return C({name:Xa,metadata:Ka,settings:Qa})}const tc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-tag-field","title":"Product Tag","category":"widgets","description":"A field to select product tags.","keywords":["products","tag"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"},"label":{"type":"string"},"placeholder":{"type":"string"}},"usesContext":["postType"],"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),oc=({initialTagName:e,onCancel:t,onCreate:o})=>{const{createNotice:r}=(0,n.useDispatch)("core/notices"),[a,c]=(0,_.useState)(!1),{createProductTag:l,invalidateResolutionForStoreSelector:i}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME),[s,u]=(0,_.useState)(e||"");return(0,_.createElement)(S.Modal,{title:(0,D.__)("Create tag","woocommerce"),onRequestClose:()=>t(),className:"woocommerce-create-new-tag-modal"},(0,_.createElement)("div",{className:"woocommerce-create-new-tag-modal__wrapper"},(0,_.createElement)(S.TextControl,{label:(0,D.__)("Name","woocommerce"),name:"Tops",value:s,onChange:u}),(0,_.createElement)("div",{className:"woocommerce-create-new-tag-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,onClick:()=>t(),disabled:a},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{isPrimary:!0,disabled:0===s.length||a,isBusy:a,onClick:()=>{(async()=>{(0,X.recordEvent)("product_tag_add",{source:W}),c(!0);try{const e=await l({name:s});i("getProductTags"),c(!1),o(e)}catch(e){r("error",(0,D.__)("Failed to create tag.","woocommerce")),c(!1),t()}})()}},(0,D.__)("Save","woocommerce")))))};function rc(e){return{value:String(e.id),label:e.name}}function nc(e){return{id:+e.value,name:e.label}}function ac(e){return e.map(rc)}const cc=({id:e,label:t,placeholder:o,value:r=[],onChange:a})=>{const{tagsSelectList:c,searchTags:l}=(()=>{const[e,t]=(0,_.useState)([]),[o,r]=(0,_.useState)(!0),a=e=>{r(!0);const o=void 0!==e?{search:e}:"";(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME).getProductTags(o).then((e=>{t(e)})).finally((()=>{r(!1)}))};return(0,_.useEffect)(a,[]),{searchTags:a,tagsSelectList:e,isSearching:o}})(),[i,s]=(0,_.useState)(""),[u,m]=(0,_.useState)(!1),[d,p]=(0,_.useState)(!1),[h,v]=(0,_.useState)(),{createProductTag:g,invalidateResolutionForStoreSelector:E}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_TAGS_STORE_NAME),{createNotice:f}=(0,n.useDispatch)("core/notices"),b=e=>{s(e||""),l(e||""),v(e)},C=(0,w.useDebounce)(b,150);return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(A.__experimentalSelectTreeControl,{id:e,multiple:!0,shouldNotRecursivelySelect:!0,createValue:i,label:t,isLoading:u,onInputChange:C,placeholder:0===r.length?o:"",initialInputValue:h,onCreateNew:0===i.length?()=>p(!0):async()=>{(0,X.recordEvent)("product_tag_add",{source:W}),m(!0);try{v("");const e=await g({name:i});E("getProductTags"),m(!1),a([...r,e]),b("")}catch(e){f("error",(0,D.__)("Failed to create tag.","woocommerce")),m(!1)}},shouldShowCreateButton:e=>!e||-1===c.findIndex((t=>t.name===e)),items:ac(c),selected:ac(r),onSelect:e=>{if(Array.isArray(e)){const t=e.filter((({value:e})=>!r.some((t=>t.id===+e)))).map(nc);a([...r,...t])}},onRemove:e=>{const t=Array.isArray(e)?r.filter((t=>!e.some((({value:e})=>t.id===+e)))):r.filter((t=>t.id!==+e.value));a(t)}}),d&&(0,_.createElement)(oc,{initialTagName:i,onCancel:()=>p(!1),onCreate:e=>{a([...r,e]),p(!1),b("")}}))},{name:lc}=tc,ic={example:{},edit:function({attributes:e,context:t}){const o=(0,E.useWooBlockProps)(e),{name:r,label:n,placeholder:a}=e,[c,l]=(0,f.useEntityProp)("postType",t.postType||"product",r||"tags"),i=(0,w.useInstanceId)(S.BaseControl,"tag-field");return(0,_.createElement)("div",{...o},(0,_.createElement)(cc,{id:i,label:n||(0,D.__)("Tags","woocommerce"),placeholder:a||(0,D.__)("Search or create tags…","woocommerce"),onChange:l,value:c||[]}))}},sc=()=>C({name:lc,metadata:tc,settings:ic}),uc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-inventory-quantity-field","title":"Product inventory quantity available","category":"woocommerce","description":"The product available quantity.","keywords":["products","quantity","inventory"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:mc,...dc}=uc,pc={example:{},edit:function({attributes:e,clientId:t,context:o}){const r=(0,E.useWooBlockProps)(e),[n]=(0,f.useEntityProp)("postType",o.postType,"manage_stock"),[a,c]=(0,f.useEntityProp)("postType",o.postType,"stock_quantity"),l=(0,w.useInstanceId)(S.BaseControl,"product_stock_quantity"),{ref:i,error:s,validate:u}=tn(`stock_quantity-${t}`,(async function(){if(n&&a&&a<0)return(0,D.__)("Stock quantity must be a positive number.","woocommerce")}),[n,a]);return(0,_.useEffect)((()=>{n&&null===a&&c(1)}),[n,a]),(0,_.createElement)("div",{...r},(0,_.createElement)("div",{className:"wp-block-columns"},(0,_.createElement)("div",{className:"wp-block-column"},(0,_.createElement)(S.BaseControl,{id:l,className:s&&"has-error",help:null!=s?s:""},(0,_.createElement)(S.__experimentalInputControl,{id:l,name:"stock_quantity",ref:i,label:(0,D.__)("Available quantity","woocommerce"),value:a,onChange:c,onBlur:u,type:"number",min:0}))),(0,_.createElement)("div",{className:"wp-block-column"})))}};function hc(){return C({name:mc,metadata:dc,settings:pc})}const _c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-toggle-field","title":"Product toggle control","category":"woocommerce","description":"The product toggle.","keywords":["products","radio","input"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"help":{"type":"string"},"checkedHelp":{"type":"string"},"uncheckedHelp":{"type":"string"},"property":{"type":"string"},"disabled":{"type":"boolean","default":false},"disabledCopy":{"type":"string","__experimentalRole":"content"},"checkedValue":{"type":"object"},"uncheckedValue":{"type":"object"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":true,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["postType"]}'),{name:vc,...wc}=_c,gc={example:{},edit:function({attributes:e,context:{postType:t}}){var o,r,n;const a=(0,E.useWooBlockProps)(e),{_templateBlockId:c,label:l,property:i,disabled:s,disabledCopy:u,checkedValue:m,uncheckedValue:d}=e,[p,h]=wt(i,{postType:t,fallbackValue:!1}),v=(0,f.useEntityId)("postType",t),[w]=(0,f.useEntityProp)("postType",t,"parent_id");function g(){return void 0!==m?m===p:p}let b=null;return(null==e?void 0:e.help)&&(b=(0,_.createElement)("div",{dangerouslySetInnerHTML:{__html:null===(o=Fo(e.help))||void 0===o?void 0:o.__html}})),(null==e?void 0:e.checkedHelp)&&g()&&(b=(0,_.createElement)("div",{dangerouslySetInnerHTML:{__html:null===(r=Fo(e.checkedHelp))||void 0===r?void 0:r.__html}})),(null==e?void 0:e.uncheckedHelp)&&!g()&&(b=(0,_.createElement)("div",{dangerouslySetInnerHTML:{__html:null===(n=Fo(e.uncheckedHelp))||void 0===n?void 0:n.__html}})),(0,_.createElement)("div",{...a},(0,_.createElement)(S.ToggleControl,{label:l,checked:g(),disabled:s,onChange:function(e){(0,X.recordEvent)("product_toggle_click",{block_id:c,source:W,product_id:w>0?w:v}),h(e?void 0!==m?m:e:void 0!==d?d:e)},help:b}),s&&(0,_.createElement)("p",{className:"wp-block-woocommerce-product-toggle__disable-copy",dangerouslySetInnerHTML:Fo(u)}))}};function Ec(){return C({name:vc,metadata:wc,settings:gc})}const fc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-attributes-field","title":"Product attributes","category":"widgets","description":"The product attributes.","keywords":["products","attributes"],"textdomain":"default","attributes":{"name":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),bc=({initialAttributeTermName:e,attributeId:t,onCancel:o=(()=>{}),onCreated:r=(()=>{})})=>{const{createNotice:a}=(0,n.useDispatch)("core/notices"),[c,l]=(0,_.useState)(!1),{createProductAttributeTerm:i,invalidateResolutionForStoreSelector:s}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME);return(0,_.createElement)(S.Modal,{title:(0,D.__)("Create attribute","woocommerce"),onRequestClose:e=>{e.stopPropagation(),o()},className:"woocommerce-create-attribute-term-modal"},(0,_.createElement)(A.Form,{initialValues:{name:e,slug:(0,L.cleanForSlug)(e)},validate:function(e){var t;const o={};return(null===(t=e.name)||void 0===t?void 0:t.length)||(o.name=(0,D.__)("The attribute term name is required.","woocommerce")),o},errors:{},onSubmit:async e=>{(0,X.recordEvent)("product_attribute_term_add",{source:W}),l(!0);try{const o=await i({...e,attribute_id:t});(0,X.recordEvent)("product_attribute_term_add_success",{source:W}),s("getProductAttributes"),l(!1),r(o)}catch(e){(0,X.recordEvent)("product_attribute_term_add_failed",{source:W}),a("error",(0,D.__)("Failed to create attribute term.","woocommerce")),l(!1),o()}}},(({getInputProps:e,handleSubmit:t,isValidForm:r,setValue:n,values:a})=>{const l=e("name");return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.TextControl,{label:(0,D.__)("Name","woocommerce"),...l,onBlur:()=>{l.onBlur(),n("slug",(0,L.cleanForSlug)(a.name))}}),(0,_.createElement)(S.TextControl,{label:(0,D.__)("Slug","woocommerce"),...e("slug"),help:(0,D.__)("The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.","woocommerce")}),(0,_.createElement)(S.TextareaControl,{label:(0,D.__)("Description","woocommerce"),...e("description")}),(0,_.createElement)("div",{className:"woocommerce-create-attribute-term-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,label:(0,D.__)("Cancel","woocommerce"),onClick:()=>o()},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{isPrimary:!0,isBusy:c,label:(0,D.__)("Add attribute","woocommerce"),disabled:!r||c,onClick:t},(0,D.__)("Add","woocommerce"))))})))};let Cc=0;const yc=({value:e=[],onChange:t,placeholder:o,disabled:r,attributeId:a,label:c="",autoCreateOnSelect:l=!0,readOnlyWhenClosed:i=!1})=>{const s=(0,_.useRef)("woocommerce-attribute-term-field-"+ ++Cc),[u,m]=(0,_.useState)([]),[d,p]=(0,_.useState)(!1),[h,v]=(0,_.useState)(!1),[g,E]=(0,_.useState)(),{createNotice:f}=(0,n.useDispatch)("core/notices"),{createProductAttributeTerm:b,invalidateResolutionForStoreSelector:C}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME),y=(0,_.useCallback)((e=>(p(!0),(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME).getProductAttributeTerms({search:e||"",attribute_id:a}).then((e=>(m(e),p(!1),e)),(e=>(p(!1),e))))),[a]),x=(0,w.useDebounce)(y,250);(0,_.useEffect)((()=>{r||void 0===a||u.length||y()}),[r,a]);const k=o=>{t(e.filter((e=>e.slug!==o.slug)))},P=()=>{const e=document.querySelector("."+s.current+" .woocommerce-experimental-select-control__input");e&&setTimeout((()=>{e.focus()}),0)},B=o=>{-99!==o.id?e.find((e=>e.slug===o.slug))?k(o):t([...e,o]):l?((async o=>{(0,X.recordEvent)("product_attribute_term_add",{source:W}),v(!0);try{const r=await b({...o,attribute_id:a});(0,X.recordEvent)("product_attribute_term_add_success",{source:W}),t([...e,r]),C("getProductAttributes"),C("getProductAttributeTerms"),v(!1)}catch(e){let t={source:W,code:"Unknown error.",message:"An unknown error occurred."},o=(0,D.__)("Failed to create attribute term.","woocommerce");const r=e;(null==r?void 0:r.code)&&(null==r?void 0:r.message)&&(t={...t,code:r.code,message:r.message},"term_exists"===r.code&&(o=(0,D.__)("Attribute term already exists.","woocommerce"))),(0,X.recordEvent)("product_attribute_term_add_failed",t),f("error",o),v(!1)}})({name:o.name,slug:(0,L.cleanForSlug)(o.name)}),P()):E(o.name)},N=(e||[]).map((e=>e.slug));return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(A.__experimentalSelectControl,{items:u,multiple:!0,disabled:r||!a,label:c,getFilteredItems:(e,t)=>t.length>0&&!e.find((e=>e.name.toLowerCase()===t.toLowerCase()))?[...e,{id:-99,name:t}]:e,onInputChange:x,placeholder:o||"",getItemLabel:e=>(null==e?void 0:e.name)||"",getItemValue:e=>(null==e?void 0:e.slug)||"",stateReducer:(e,t)=>{const{changes:o,type:r}=t;switch(r){case A.selectControlStateChangeTypes.ControlledPropUpdatedSelectedItem:const t=h?{isOpen:h}:{};return{...o,...t,inputValue:e.inputValue};case A.selectControlStateChangeTypes.ItemClick:return o.selectedItem&&-99===o.selectedItem.id?o:{...o,isOpen:!0,inputValue:e.inputValue,highlightedIndex:e.highlightedIndex};default:return o}},selected:e,onSelect:B,onRemove:k,readOnlyWhenClosed:i,className:"woocommerce-attribute-term-field "+s.current,__experimentalOpenMenuOnFocus:!0},(({items:e,highlightedIndex:t,getItemProps:o,getMenuProps:r,isOpen:n})=>(0,_.createElement)(A.__experimentalSelectControlMenu,{isOpen:n,getMenuProps:r},[d||h?(0,_.createElement)("div",{key:"loading-spinner",className:"woocommerce-attribute-term-field__loading-spinner"},(0,_.createElement)(S.Spinner,null)):null,...e.map(((e,r)=>{const n=N.includes(e.slug);return(0,_.createElement)(A.__experimentalSelectControlMenuItem,{key:`${e.slug}`,index:r,isActive:t===r,item:e,getItemProps:o},-99!==e.id?(0,_.createElement)(S.CheckboxControl,{onChange:()=>null,checked:n,label:(0,_.createElement)("span",null,e.name)}):(0,_.createElement)("div",{className:"woocommerce-attribute-term-field__add-new"},(0,_.createElement)(S.Icon,{icon:Pt,size:20,className:"woocommerce-attribute-term-field__add-new-icon"}),(0,_.createElement)("span",null,(0,D.sprintf)((0,D.__)('Create "%s"',"woocommerce"),e.name))))}))].filter((e=>null!==e))))),!l&&g&&void 0!==a&&(0,_.createElement)(bc,{initialAttributeTermName:g,onCancel:()=>{E(void 0),P()},attributeId:a,onCreated:e=>{B(e),E(void 0),C("getProductAttributeTerms"),P()}}))};function Ac(e){return null!==e&&"object"==typeof e&&!!e.label}const xc=({value:e=[],onChange:t,placeholder:o,disabled:r,label:n})=>{const[a,c]=(0,_.useState)(e),l=o=>{t(e.filter((e=>e!==o)))};return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(A.__experimentalSelectControl,{items:a,multiple:!0,disabled:r,label:n||"",placeholder:o||"",getItemLabel:e=>Ac(e)?e.label:e||"",getItemValue:e=>Ac(e)?e.id:e||"",getFilteredItems:(e,t)=>{const o=e.filter((e=>!t.length||!Ac(e)&&e.toLowerCase().includes(t.toLowerCase())));return t.length>0&&!o.find((e=>!Ac(e)&&e.toLowerCase()===t.toLowerCase()))?[...o,{id:"is-new",label:t}]:o},selected:e,onSelect:o=>{if(Ac(o))return c([...a,o.label]),void t([...e,o.label]);e.includes(o)?l(o):t([...e,o])},onRemove:l,className:"woocommerce-attribute-term-field"},(({items:t,highlightedIndex:o,getItemProps:r,getMenuProps:n,isOpen:a})=>(0,_.createElement)(A.__experimentalSelectControlMenu,{isOpen:a,getMenuProps:n},t.map(((t,n)=>(0,_.createElement)(A.__experimentalSelectControlMenuItem,{key:`${Ac(t)?t.id:t}`,index:n,isActive:o===n,item:t,getItemProps:r},Ac(t)?(0,_.createElement)("div",{className:"woocommerce-attribute-term-field__add-new"},(0,_.createElement)(S.Icon,{icon:Pt,size:20,className:"woocommerce-attribute-term-field__add-new-icon"}),(0,_.createElement)("span",null,(0,D.sprintf)((0,D.__)('Create "%s"',"woocommerce"),t.label))):(0,_.createElement)(S.CheckboxControl,{onChange:()=>null,checked:e.includes(t),label:(0,_.createElement)("span",null," ",t," ")}))))))))};function Sc({title:e="",content:t="",className:o,type:r="info",children:n,isDismissible:a=!1,handleDismiss:c=(()=>{})}){return(0,_.createElement)("div",{className:we()(o,r,"woocommerce-product-notice",{"is-dismissible":a})},e&&(0,_.createElement)("h3",{className:"woocommerce-product-notice__title"},e),t&&(0,_.createElement)("p",{className:"woocommerce-product-notice__content"},t),(0,_.createElement)("div",{className:"woocommerce-product-notice__content"},n),a&&(0,_.createElement)(S.Button,{className:"woocommerce-product-notice__dismiss",icon:eo,onClick:c}))}function kc(e){return 0!==e.id?e.id:e.name}const Pc=e=>`${e.id}-${e.name}`;function Bc(e){return"string"==typeof e?{id:0,name:e,slug:e,options:[]}:e}const Nc=({title:e=(0,D.__)("Edit attribute","woocommerce"),nameLabel:t=(0,D.__)("Name","woocommerce"),globalAttributeHelperMessage:o,customAttributeHelperMessage:r=(0,D.__)("Your customers will see this on the product page","woocommerce"),termsLabel:n=(0,D.__)("Values","woocommerce"),termsPlaceholder:a=(0,D.__)("Search or create value","woocommerce"),isDefaultLabel:c=(0,D.__)("Set default value","woocommerce"),isDefaultTooltip:l=(0,D.__)("Check to preselect the first choice when customers enter the product page.","woocommerce"),useAsFilterLabel:i=(0,D.__)("Use as filter","woocommerce"),useAsFilterTooltip:s=(0,D.__)("Check to allow customers to search and filter by this option in your store.","woocommerce"),visibleLabel:u=(0,D.__)("Show in product details","woocommerce"),visibleTooltip:m=(0,D.__)("Check to show this option and its values in the product details section on the product page.","woocommerce"),cancelAccessibleLabel:d=(0,D.__)("Cancel","woocommerce"),cancelLabel:p=(0,D.__)("Cancel","woocommerce"),updateAccessibleLabel:h=(0,D.__)("Edit attribute","woocommerce"),updateLabel:v=(0,D.__)("Update","woocommerce"),onCancel:w,onEdit:g,attribute:E,attributes:f})=>{const[b,C]=(0,_.useState)({...E}),y=0===(null==b?void 0:b.id),{additions:x,deletions:k}=(0,_.useMemo)((()=>{var e,t,o,r,n,a,c,l;if(!E.variation)return{};const i=f.filter((e=>Pc(e)!==Pc(E))).reduce(((e,{terms:t})=>{var o;return e*(null!==(o=null==t?void 0:t.length)&&void 0!==o?o:1)}),1),s=null!==(t=null===(e=E.terms)||void 0===e?void 0:e.length)&&void 0!==t?t:0,u=i*s,m=null!==(n=null===(r=null===(o=null==b?void 0:b.terms)||void 0===o?void 0:o.filter((e=>{var t;return!(null===(t=E.terms)||void 0===t?void 0:t.some((t=>t.id===e.id)))})))||void 0===r?void 0:r.length)&&void 0!==n?n:0,d=s+m||1,p=null!==(l=null===(c=null===(a=E.terms)||void 0===a?void 0:a.filter((e=>{var t;return null===(t=null==b?void 0:b.terms)||void 0===t?void 0:t.some((t=>e.id===t.id))})))||void 0===c?void 0:c.length)&&void 0!==l?l:0;return{additions:Math.abs(u-i*d),deletions:Math.abs(u-i*p)}}),[f,E,b]);return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Modal,{title:e,onRequestClose:()=>w(),className:"woocommerce-edit-attribute-modal"},(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__body"},(0,_.createElement)(S.TextControl,{label:t,disabled:!y,value:(null==b?void 0:b.name)?null==b?void 0:b.name:"",onChange:e=>C({...b,name:e})}),(0,_.createElement)("p",{className:"woocommerce-edit-attribute-modal__helper-text"},y?r:o),E.terms?(0,_.createElement)(yc,{label:n,placeholder:(null==b?void 0:b.terms)&&(null==b?void 0:b.terms.length)>0?"":a,value:null==b?void 0:b.terms,attributeId:null==b?void 0:b.id,onChange:e=>{C({...b,terms:e})}}):(0,_.createElement)(xc,{label:n,placeholder:(null==b?void 0:b.options)&&(null==b?void 0:b.options.length)>0?"":a,disabled:!(null==E?void 0:E.name),value:null==b?void 0:b.options,onChange:e=>{C({...b,options:e})}}),(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__options"},E.variation&&(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,_.createElement)(S.CheckboxControl,{onChange:e=>C({...b,isDefault:e}),checked:null==b?void 0:b.isDefault,label:c}),(0,_.createElement)(A.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-set-default-value",text:l})),(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,_.createElement)(S.CheckboxControl,{onChange:e=>C({...b,visible:e}),checked:null==b?void 0:b.visible,label:u}),(0,_.createElement)(A.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-show-in-product-details",text:m})),0!==E.id&&(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__option-container"},(0,_.createElement)(S.CheckboxControl,{disabled:!0,onChange:()=>{},checked:!0,label:i}),(0,_.createElement)(A.__experimentalTooltip,{className:"woocommerce-edit-attribute-modal__tooltip-use-as-filter",text:s}))),Boolean(x||k)&&(0,_.createElement)(Sc,null,function(){const e=(0,D.sprintf)((0,D.__)("%d variations will be added","woocommerce"),x),t=(0,D.sprintf)((0,D.__)("%d variations will be removed","woocommerce"),k);return x&&k?(0,D.sprintf)("%1$s, %2$s.",e,t):x?(0,D.sprintf)("%s.",e):(0,D.sprintf)("%s.",t)}())),(0,_.createElement)("div",{className:"woocommerce-edit-attribute-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,label:d,onClick:()=>w()},p),(0,_.createElement)(S.Button,{isPrimary:!0,label:h,onClick:()=>{g(b)}},v))),(0,_.createElement)(A.__experimentalSelectControlMenuSlot,null))};function Mc({width:e=24,height:t=24,...o}){return(0,_.createElement)("svg",{...o,width:e,height:t,viewBox:`0 0 ${e} ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)("g",null,(0,_.createElement)("path",{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#949494"}),(0,_.createElement)("rect",{x:"16.7734",y:"4",width:"1.22727",height:"16",transform:"rotate(30 16.7734 4)",fill:"#949494"}),(0,_.createElement)("rect",{x:"16",y:"3",width:"1.22727",height:"16",transform:"rotate(30 16 3)",fill:"white"})),(0,_.createElement)("defs",null,(0,_.createElement)("clipPath",{id:"clip0_4951_450432"},(0,_.createElement)("rect",{width:"24",height:"24",fill:"white"}))))}function Vc({width:e=24,height:t=24,className:o,...r}){return(0,_.createElement)("svg",{...r,width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:we()(o,"woocommerce-hidden-icon")},(0,_.createElement)("path",{d:"M3.99863 13C4.66945 13.3354 4.66932 13.3357 4.66919 13.3359L4.672 13.3305C4.67523 13.3242 4.68086 13.3135 4.6889 13.2985C4.70497 13.2686 4.73062 13.2218 4.76597 13.1608C4.83672 13.0385 4.94594 12.8592 5.09443 12.6419C5.39214 12.2062 5.84338 11.624 6.45337 11.0431C7.6721 9.88241 9.49621 8.75 11.9986 8.75C14.501 8.75 16.3251 9.88241 17.5439 11.0431C18.1539 11.624 18.6051 12.2062 18.9028 12.6419C19.0513 12.8592 19.1605 13.0385 19.2313 13.1608C19.2666 13.2218 19.2923 13.2686 19.3083 13.2985C19.3164 13.3135 19.322 13.3242 19.3252 13.3305L19.3281 13.3359C19.3279 13.3357 19.3278 13.3354 19.9986 13C20.6694 12.6646 20.6693 12.6643 20.6691 12.664L20.6678 12.6614L20.6652 12.6563L20.6573 12.6408C20.6507 12.6282 20.6417 12.6108 20.63 12.5892C20.6068 12.5459 20.5734 12.4852 20.5296 12.4096C20.4422 12.2584 20.3131 12.0471 20.1413 11.7956C19.7984 11.2938 19.2809 10.626 18.5784 9.9569C17.1721 8.61759 14.9962 7.25 11.9986 7.25C9.00105 7.25 6.82516 8.61759 5.41889 9.9569C4.71638 10.626 4.19886 11.2938 3.85596 11.7956C3.68413 12.0471 3.55507 12.2584 3.46762 12.4096C3.42386 12.4852 3.39044 12.5459 3.3672 12.5892C3.35558 12.6108 3.3465 12.6282 3.33994 12.6408L3.33199 12.6563L3.32943 12.6614L3.3285 12.6632C3.32833 12.6635 3.32781 12.6646 3.99863 13ZM11.9986 16C13.9316 16 15.4986 14.433 15.4986 12.5C15.4986 10.567 13.9316 9 11.9986 9C10.0656 9 8.49863 10.567 8.49863 12.5C8.49863 14.433 10.0656 16 11.9986 16Z",fill:"#949494"}))}const Tc=(0,D.__)("Visible in product details","woocommerce"),Fc=(0,D.__)("Custom attribute. Customers can’t filter or search by it to find this product","woocommerce"),Dc=({attribute:e,editLabel:t=(0,D.__)("Edit","woocommerce"),removeLabel:o=(0,D.__)("Remove attribute","woocommerce"),onDragStart:r,onDragEnd:n,onEditClick:a,onRemoveClick:c})=>(0,_.createElement)(A.ListItem,{className:"woocommerce-attribute-list-item",onDragStart:r,onDragEnd:n},(0,_.createElement)("div",null,e.name),(0,_.createElement)("div",null,e.options.slice(0,e.options.length>3?2:3).map((e=>(0,_.createElement)(A.Tag,{key:e,label:e}))),e.options.length>3&&(0,_.createElement)(A.Tag,{label:(0,D.sprintf)((0,D.__)("+ %d more","woocommerce"),e.options.length-2)})),(0,_.createElement)("div",{className:"woocommerce-attribute-list-item__actions"},0===e.id&&(0,_.createElement)(S.Tooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",position:"top center",text:Fc},(0,_.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,_.createElement)(Mc,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),e.visible&&(0,_.createElement)(S.Tooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",position:"top center",text:Tc},(0,_.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,_.createElement)(Vc,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),"function"==typeof a&&(0,_.createElement)(S.Button,{variant:"tertiary",onClick:()=>a(e)},t),"function"==typeof c&&(0,_.createElement)(S.Button,{icon:eo,label:o,onClick:()=>c(e)}))),Lc=({disabledAttributeMessage:e="",renderItems:t,highlightedIndex:o,getItemProps:r})=>t.length>0?(0,_.createElement)(_.Fragment,null,t.map(((t,n)=>{return(0,_.createElement)(A.__experimentalSelectControlMenuItem,{key:t.id,index:n,isActive:o===n,item:t,getItemProps:e=>({...r(e),disabled:t.isDisabled||void 0}),tooltipText:t.isDisabled?e:(a=t.slug,a&&a.startsWith("pa_")?a.substring(3):"")},-99===t.id?(0,_.createElement)("div",{className:"woocommerce-attribute-input-field__add-new"},(0,_.createElement)(S.Icon,{icon:Pt,size:20,className:"woocommerce-attribute-input-field__add-new-icon"}),(0,_.createElement)("span",null,(0,D.sprintf)((0,D.__)('Create "%s"',"woocommerce"),t.name))):t.name);var a}))):(0,_.createElement)("div",{className:"woocommerce-attribute-input-field__no-results"},(0,D.__)("Nothing yet. Type to create.","woocommerce")),Hc=({value:e=null,onChange:t,placeholder:o,label:r,disabled:a,disabledAttributeIds:c=[],disabledAttributeMessage:l,ignoredAttributeIds:i=[],createNewAttributesAsGlobal:s=!1})=>{const{createErrorNotice:u}=(0,n.useDispatch)("core/notices"),{createProductAttribute:m,invalidateResolution:d}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME),{attributes:p,isLoading:h}=(0,n.useSelect)((e=>{const{getProductAttributes:t,hasFinishedResolution:o}=e(H.EXPERIMENTAL_PRODUCT_ATTRIBUTES_STORE_NAME);return{isLoading:!o("getProductAttributes"),attributes:t()}})),v=(0,_.useMemo)((function(){var e;return null!==(e=null==p?void 0:p.map((e=>({...e,isDisabled:c.includes(e.id)}))))&&void 0!==e?e:[]}),[p,c]);return(0,_.createElement)(A.__experimentalSelectControl,{className:"woocommerce-attribute-input-field",items:v||[],label:r||"",disabled:a,getFilteredItems:(e,t)=>{const o=e.filter((e=>(e=>!i.length||!i.includes(e.id))(e)&&(e.name||"").toLowerCase().startsWith(t.toLowerCase())));return t.length>0&&(s||!e.find((e=>e.name.toLowerCase()===t.toLowerCase())))?[...o,{id:-99,name:t}]:o},placeholder:o,getItemLabel:e=>(null==e?void 0:e.name)||"",getItemValue:e=>(null==e?void 0:e.id)||"",selected:e,onSelect:e=>{!function(e){return-99===e.id}(e)?t({id:e.id,name:e.name,slug:e.slug,options:[]}):(e=>{(0,X.recordEvent)("product_attribute_add_custom_attribute",{source:W}),s?m({name:e.name,generate_slug:!0}).then((e=>{d("getProductAttributes"),t({...e,options:[]})}),(e=>{let t=(0,D.__)("Failed to create new attribute.","woocommerce");"woocommerce_rest_cannot_create"===e.code&&(t=e.message),u(t,{explicitDismiss:!0})})):t(e.name)})(e)},onRemove:()=>t(),__experimentalOpenMenuOnFocus:!0},(({items:e,highlightedIndex:t,getItemProps:o,getMenuProps:r,isOpen:n})=>(0,_.createElement)(A.__experimentalSelectControlMenu,{getMenuProps:r,isOpen:n},h?(0,_.createElement)(S.Spinner,null):(0,_.createElement)(Lc,{renderItems:e,highlightedIndex:t,disabledAttributeMessage:l,getItemProps:o}))))},Rc=({title:e=(0,D.__)("Add attributes","woocommerce"),description:t="",notice:o,attributeLabel:r=(0,D.__)("Attribute","woocommerce"),valueLabel:a=(0,D.__)("Values","woocommerce"),attributePlaceholder:c=(0,D.__)("Search or create attribute","woocommerce"),termPlaceholder:l=(0,D.__)("Search or create value","woocommerce"),removeLabel:i=(0,D.__)("Remove attribute","woocommerce"),addAnotherAccessibleLabel:s=(0,D.__)("Add another attribute","woocommerce"),addAnotherLabel:u=(0,D.__)("+ Add another","woocommerce"),cancelLabel:m=(0,D.__)("Cancel","woocommerce"),addAccessibleLabel:d=(0,D.__)("Add attributes","woocommerce"),addLabel:p=(0,D.__)("Add","woocommerce"),onCancel:h,onAdd:v,onAddAnother:w=(()=>{}),onRemoveItem:g=(()=>{}),selectedAttributeIds:E=[],createNewAttributesAsGlobal:f=!1,disabledAttributeIds:b=[],disabledAttributeMessage:C=(0,D.__)("Already used in Attributes","woocommerce"),termsAutoSelection:y,defaultVisibility:x=!1,defaultSearch:k})=>{const P=e=>{return(e=>0!==e.id)(e)?(t=e.terms)?t.map((e=>e.name)):[]:e.options;var t},B=e=>void 0!==e.visible?e.visible:x,N=e=>{setTimeout((()=>{const t=document.querySelector(".woocommerce-new-attribute-modal__table-row-"+e+" .woocommerce-new-attribute-modal__table-attribute-value-column .woocommerce-experimental-select-control__input");t&&t.focus()}),0)};(0,_.useEffect)((function(){const e=document.querySelector(".woocommerce-new-attribute-modal__table-row .woocommerce-attribute-input-field label"),t=setTimeout((()=>{null==e||e.focus()}),100);return()=>clearTimeout(t)}),[]);const M={name:k};return(0,_.createElement)(_.Fragment,null,(0,_.createElement)(A.Form,{initialValues:{attributes:[k?M:null]}},(({values:A,setValue:x})=>{function k(e){return function(t){y&&t&&"string"!=typeof t?(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME).getProductAttributeTerms({search:"",attribute_id:t.id}).then((o=>{const r=Bc(t);"all"===y?r.terms=o:o.length>0&&(r.terms=[o[0]]),x("attributes["+e+"]",{...r}),N(e)})):(x("attributes["+e+"]",t&&Bc(t)),t&&N(e))}}return(0,_.createElement)(S.Modal,{title:e,onRequestClose:e=>{e.isPropagationStopped()||h()},className:"woocommerce-new-attribute-modal"},o&&(0,_.createElement)(S.Notice,{isDismissible:!1},(0,_.createElement)("p",null,o)),t&&(0,_.createElement)("p",null,t),(0,_.createElement)("div",{className:"woocommerce-new-attribute-modal__body"},(0,_.createElement)("table",{className:"woocommerce-new-attribute-modal__table"},(0,_.createElement)("thead",null,(0,_.createElement)("tr",{className:"woocommerce-new-attribute-modal__table-header"},(0,_.createElement)("th",null,r),(0,_.createElement)("th",null,a))),(0,_.createElement)("tbody",null,A.attributes.map(((e,t)=>(0,_.createElement)("tr",{key:t,className:`woocommerce-new-attribute-modal__table-row woocommerce-new-attribute-modal__table-row-${t}`},(0,_.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-column"},(0,_.createElement)(Hc,{placeholder:c,value:e,label:r,onChange:k(t),ignoredAttributeIds:[...E,...A.attributes.map((e=>null==e?void 0:e.id)).filter((e=>void 0!==e))],createNewAttributesAsGlobal:f,disabledAttributeIds:b,disabledAttributeMessage:C})),(0,_.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-value-column"},e&&0===e.id?(0,_.createElement)(xc,{placeholder:(null==e?void 0:e.options)&&(null==e?void 0:e.options.length)>0?"":l,disabled:!e.name,value:e.options,label:a,onChange:e=>x("attributes["+t+"].options",e)}):(0,_.createElement)(yc,{placeholder:(null==e?void 0:e.terms)&&(null==e?void 0:e.terms.length)>0?"":l,disabled:!e||!e.id,attributeId:e?e.id:void 0,value:null==e?[]:e.terms,label:a,onChange:e=>x("attributes["+t+"].terms",e)})),(0,_.createElement)("td",{className:"woocommerce-new-attribute-modal__table-attribute-trash-column"},(0,_.createElement)(S.Button,{icon:eo,disabled:1===A.attributes.length&&null===A.attributes[0],label:i,onClick:()=>((e,t,o)=>{g(),t.attributes.length>1?o("attributes",t.attributes.filter(((t,o)=>o!==e))):o(`attributes[${e}]`,[null])})(t,A,x)})))))))),(0,_.createElement)("div",null,(0,_.createElement)(S.Button,{className:"woocommerce-new-attribute-modal__add-attribute",variant:"tertiary",label:s,onClick:()=>{((e,t)=>{var o;t("attributes",[...e.attributes,null]),o=e.attributes.length,setTimeout((()=>{const e=document.querySelector(`.woocommerce-new-attribute-modal__table-row-${o}`);null==e||e.scrollIntoView({behavior:"smooth"})}),0),w()})(A,x)}},u)),(0,_.createElement)("div",{className:"woocommerce-new-attribute-modal__buttons"},(0,_.createElement)(S.Button,{isSecondary:!0,label:m,onClick:()=>h()},m),(0,_.createElement)(S.Button,{isPrimary:!0,label:d,disabled:1===A.attributes.length&&(null===A.attributes[0]||void 0===A.attributes[0]),onClick:()=>(e=>{const t=[];e.attributes.forEach((e=>{var o;null!==(o=e)&&o.name.length>0&&(e=>e.terms&&e.terms.length>0||e.options&&e.options.length>0)(o)&&t.push({...e,visible:B(e),options:P(e)})})),v(t)})(A)},p)))})),(0,_.createElement)(A.__experimentalSelectControlMenuSlot,null))};function zc({title:e,description:t,onCancel:o,onRemove:r}){const[n,a]=(0,_.useState)(!1);return(0,_.createElement)(S.Modal,{title:e,onRequestClose:e=>{!e.isPropagationStopped()&&o&&o()},className:"woocommerce-remove-confirmation-modal"},(0,_.createElement)("div",{className:"woocommerce-remove-confirmation-modal__content"},t),(0,_.createElement)("div",{className:"woocommerce-remove-confirmation-modal__buttons"},(0,_.createElement)(S.Button,{isDestructive:!0,variant:"primary",isBusy:n,onClick:async function(){try{a(!0),await r()}finally{a(!1)}}},(0,D.__)("Delete","woocommerce")),(0,_.createElement)(S.Button,{variant:"tertiary",onClick:o},(0,D.__)("Cancel","woocommerce"))))}function Ic(){return(0,_.createElement)("div",{className:"woocommerce-product-page-attribute-skeleton"},Array(3).fill(0).map(((e,t)=>(0,_.createElement)("div",{key:t,className:"woocommerce-product-page-attribute-skeleton__row"},(0,_.createElement)("div",{className:we()("woocommerce-product-page-attribute-skeleton__item")},(0,_.createElement)("div",{className:we()(`woocommerce-product-page-attribute-skeleton__name${t}`,`woocommerce-product-page-attribute-skeleton__row${t}`)})),(0,_.createElement)("div",{className:"woocommerce-product-page-attribute-skeleton__item"},(0,_.createElement)("div",{className:we()(`woocommerce-product-page-attribute-skeleton__value${t}`,`woocommerce-product-page-attribute-skeleton__row${t}`)})),(0,_.createElement)("div",{className:"woocommerce-product-page-attribute-skeleton__last-item"},(0,_.createElement)("div",{className:we()("woocommerce-product-page-attribute-skeleton__buttons",`woocommerce-product-page-attribute-skeleton__row${t}`)}))))))}const Oc=({value:e,onAdd:t=(()=>{}),onAddAnother:o=(()=>{}),onRemoveItem:r=(()=>{}),onChange:n,onEdit:a=(()=>{}),onNewModalCancel:c=(()=>{}),onNewModalClose:l=(()=>{}),onNewModalOpen:i=(()=>{}),onEditModalCancel:s=(()=>{}),onEditModalClose:u=(()=>{}),onEditModalOpen:m=(()=>{}),onRemove:d=(()=>{}),onRemoveCancel:p=(()=>{}),onNoticeDismiss:h=(()=>{}),renderCustomEmptyState:v,uiStrings:g,createNewAttributesAsGlobal:E=!1,useRemoveConfirmationModal:f=!1,disabledAttributeIds:b=[],termsAutoSelection:C,defaultVisibility:y=!1})=>{g={newAttributeListItemLabel:(0,D.__)("Add new","woocommerce"),globalAttributeHelperMessage:(0,D.__)("You can change the attribute's name in <link>Attributes</link>.","woocommerce"),attributeRemoveConfirmationMessage:(0,D.__)("Remove this attribute?","woocommerce"),...g};const[x,k]=(0,_.useState)(!1),[P,B]=(0,_.useState)(),[N,M]=(0,_.useState)(),[V,T]=(0,_.useState)(null),F=e=>{n(e.map((e=>({...e,options:e.terms?e.terms.map((e=>e.name)):e.options,terms:void 0,visible:e.visible||!1}))))},L=t=>{F(e.filter((e=>Pc(e)!==Pc(t)))),d(t),M(null)},H=()=>{k(!0),i()},R=()=>{k(!1),B(void 0),l()},z=e=>{T(null),u(e)},I=e.sort(((e,t)=>e.position-t.position)),O=e.reduce(((e,t)=>(e[kc(t)]=t,e)),{}),$=e.find((e=>Pc(e)===V)),G=(0,w.useViewportMatch)("medium","<");return(0,_.createElement)("div",{className:"woocommerce-attribute-field"},v&&0===e.length?null:(0,_.createElement)(Lr,null,(null==g?void 0:g.newAttributeListItemLabel)&&(0,_.createElement)(S.Button,{variant:"secondary",className:"woocommerce-add-attribute-list-item__add-button",onClick:H},g.newAttributeListItemLabel)),g.notice&&(0,_.createElement)(S.Notice,{isDismissible:!0,status:"warning",className:"woocommerce-attribute-field__notice",onRemove:h},(0,_.createElement)("p",null,g.notice)),Boolean(e.length)&&(0,_.createElement)(A.Sortable,{onOrderChange:e=>{const t=e.reduce(((e,{props:t},o)=>(e[kc(t.attribute)]=o,e)),{});n(function(e,t){return Object.keys(t).map((o=>isNaN(e[o])?{...t[o]}:{...t[o],position:e[o]}))}(t,O))}},I.map((e=>(0,_.createElement)(Dc,{attribute:e,removeLabel:null==g?void 0:g.attributeRemoveLabel,key:Pc(e),onEditClick:()=>{return t=e,(0,X.recordEvent)("product_options_edit",{source:W,attribute:t.name}),T(Pc(t)),void m(t);var t},onRemoveClick:()=>{return t=e,void(f?M(t):window.confirm(null==g?void 0:g.attributeRemoveConfirmationMessage)?L(t):p(t));var t}})))),x&&(0,_.createElement)(Rc,{title:g.newAttributeModalTitle,description:g.newAttributeModalDescription,onCancel:()=>{R(),c()},onAdd:o=>{const r=o.filter((t=>!e.some((e=>Pc(t)===Pc(e)))));F([...e,...r]),t(o),R()},onAddAnother:o,onRemoveItem:r,selectedAttributeIds:e.map((e=>e.id)),createNewAttributesAsGlobal:E,disabledAttributeIds:b,disabledAttributeMessage:g.disabledAttributeMessage,termsAutoSelection:C,defaultVisibility:y,defaultSearch:P}),(0,_.createElement)(A.__experimentalSelectControlMenuSlot,null),$&&(0,_.createElement)(Nc,{title:(0,D.sprintf)((0,D.__)("Edit %s","woocommerce"),$.name),customAttributeHelperMessage:g.customAttributeHelperMessage,globalAttributeHelperMessage:g.globalAttributeHelperMessage?(0,_.createInterpolateElement)(g.globalAttributeHelperMessage,{link:(0,_.createElement)(A.Link,{href:(0,yt.getAdminLink)("edit.php?post_type=product&page=product_attributes"),target:"_blank",type:"wp-admin"},(0,_.createElement)(_.Fragment,null))}):void 0,onCancel:()=>{z($),s($)},onEdit:t=>{(t=>{var o;(0,X.recordEvent)("product_options_update",{source:W,attribute:t.name,values:null===(o=t.terms)||void 0===o?void 0:o.map((e=>e.name)),default:t.isDefault,visible:t.visible,filter:!0});const r=e.map((e=>Pc(e)===Pc(t)?t:e));a(t),F(r),z(t)})(t)},attribute:$,attributes:e}),N&&(0,_.createElement)(zc,{title:(0,D.sprintf)((0,D.__)("Delete %(attributeName)s","woocommerce"),{attributeName:N.name}),description:(0,_.createElement)("p",null,g.attributeRemoveConfirmationModalMessage),onRemove:()=>L(N),onCancel:()=>{p(N),M(null)}}),G||e.length?null:v?v({addAttribute(e){B(e),H()}}):(0,_.createElement)(Ic,null))},$c=(e,t)=>e.reduce(((e,o)=>(e[t(o)?0:1].push(o),e)),[[],[]]),Gc=(e,t)=>t?e.filter((e=>!!e.variation)):e.filter((e=>!e.variation));function Uc({allAttributes:e=[],isVariationAttributes:t=!1,onChange:o,productId:r}){const[a,c]=(0,_.useState)(Gc(e,t)),l=(0,_.useCallback)((e=>(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME).getProductAttributeTerms({attribute_id:e}).then((e=>e),(e=>e))),[r]),i=(e,t,o)=>e.map((({isDefault:e,terms:r,...n},a)=>({...n,variation:t,position:o+a})));return(0,_.useEffect)((()=>{const[o,r]=$c(Gc(e,t),(e=>0===e.id));Promise.all(r.map((e=>l(e.id)))).then((e=>{c([...r.map(((t,o)=>{return r=t,n=e[o],{...r,terms:(n||[]).filter((e=>r.options.includes(e.name)))};var r,n})),...o])}))}),[e,t,l]),{attributes:a,handleChange:r=>{const n=r.reduce(((e,t)=>void 0===t.isDefault||!0===t.isDefault?[...e,{id:t.id,name:t.name,option:t.options[0]}]:e),[]);let a=t?e.filter((e=>!e.variation)):e.filter((e=>!!e.variation));a=a.filter((e=>!(e.id>0&&r.some((t=>t.id===e.id))||0===e.id&&r.some((t=>t.name.toLowerCase()===e.name.toLowerCase())))));const c=i(r,t,t?a.length:0),l=i(a,!t,t?0:r.length);o(t?[...l,...c]:[...c,...l],n)},setAttributes:c}}const jc=({value:e,onChange:t,productId:o})=>{const{attributes:r,handleChange:n}=Uc({allAttributes:e,onChange:t,productId:o});return(0,_.createElement)(Oc,{value:r,disabledAttributeIds:e.filter((e=>!!e.variation)).map((e=>e.id)),uiStrings:{disabledAttributeMessage:(0,D.__)("Already used in Variations","woocommerce")},onAdd:()=>{(0,X.recordEvent)("product_add_attributes_modal_add_button_click")},onChange:n,onNewModalCancel:()=>{(0,X.recordEvent)("product_add_attributes_modal_cancel_button_click")},onNewModalOpen:()=>{r.length?(0,X.recordEvent)("product_add_attribute_button"):(0,X.recordEvent)("product_add_first_attribute_button_click")},onAddAnother:()=>{(0,X.recordEvent)("product_add_attributes_modal_add_another_attribute_button_click")},onRemoveItem:()=>{(0,X.recordEvent)("product_add_attributes_modal_remove_attribute_button_click")},onRemove:()=>(0,X.recordEvent)("product_remove_attribute_confirmation_confirm_click"),onRemoveCancel:()=>(0,X.recordEvent)("product_remove_attribute_confirmation_cancel_click"),termsAutoSelection:"first",defaultVisibility:!0})},{name:qc}=fc,Zc={example:{},edit:function({attributes:e}){const[t,o]=(0,f.useEntityProp)("postType","product","attributes"),r=(0,f.useEntityId)("postType","product"),n=(0,E.useWooBlockProps)(e);return(0,_.createElement)("div",{...n},(0,_.createElement)(jc,{productId:r,value:t,onChange:o}))}},Wc=()=>C({name:qc,metadata:fc,settings:Zc}),Jc=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-password-field","description":"A checkbox and an input to type a password to view a product.","title":"Product password","category":"widgets","keywords":["products","password"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),{name:Yc,...Xc}=Jc,Kc={edit:function({attributes:e}){const t=(0,E.useWooBlockProps)(e),{label:o}=e,[r,n]=(0,f.useEntityProp)("postType","product","post_password");return(0,_.createElement)("div",{...t},(0,_.createElement)(uo,{label:o,postPassword:r,onInputChange:n}))}};function Qc(){return C({name:Yc,metadata:Xc,settings:Kc})}const el=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-details-section-description","title":"Product details section description","category":"woocommerce","description":"The product details section description.","keywords":["products","section","description"],"textdomain":"default","attributes":{"content":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),tl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5zM12 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2v-6h-1.5v6a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5h6V4z"})),ol=tl,rl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})),nl=rl,al=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),cl=al,ll=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),il=ll,sl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM20 16H4v-1.5h16V16Zm-7 4H4v-1.5h9V20Z"})),ul=sl,ml=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"})),dl=ml,pl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),hl=pl,_l=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12.5 3.9L6.7 9.7l1.1 1.1 4-4V20h1.4V6.7l4.5 4.1 1.1-1.1z"})),vl=_l,wl=(0,_.createElement)(pe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z"})),gl=wl,El=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),fl=El,bl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Cl=bl,yl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Al=yl,xl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),Sl=xl,kl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"})),Pl=kl,Bl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Nl=Bl,Ml=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})),Vl=Ml,Tl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})),Fl=Tl,Dl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.13 5.5l1.926 1.927A4.975 4.975 0 007.025 10H5v1.5h2V13H5v1.5h2.1a5.002 5.002 0 009.8 0H19V13h-2v-1.5h2V10h-2.025a4.979 4.979 0 00-1.167-2.74l1.76-1.76-1.061-1.06-1.834 1.834A4.977 4.977 0 0012 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5zm2.37 5v3a3.5 3.5 0 107 0v-3a3.5 3.5 0 10-7 0z",fillRule:"evenodd",clipRule:"evenodd"})),Ll=Dl,Hl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Rl=Hl,zl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"})),Il=zl,Ol=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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"})),$l=Ol,Gl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"})),Ul=Gl,jl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12 9.2c-2.2 0-3.9 1.8-3.9 4s1.8 4 3.9 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.4-1.1-2.4-2.5s1.1-2.5 2.4-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM20.2 8c-.1 0-.3 0-.5-.1l-2.5-.8c-.4-.1-.8-.4-1.1-.8l-1-1.5c-.4-.5-1-.9-1.7-.9h-2.9c-.6.1-1.2.4-1.6 1l-1 1.5c-.3.3-.6.6-1.1.7l-2.5.8c-.2.1-.4.1-.6.1-1 .2-1.7.9-1.7 1.9v8.3c0 1 .9 1.9 2 1.9h16c1.1 0 2-.8 2-1.9V9.9c0-1-.7-1.7-1.8-1.9zm.3 10.1c0 .2-.2.4-.5.4H4c-.3 0-.5-.2-.5-.4V9.9c0-.1.2-.3.5-.4.2 0 .5-.1.8-.2l2.5-.8c.7-.2 1.4-.6 1.8-1.3l1-1.5c.1-.1.2-.2.4-.2h2.9c.2 0 .3.1.4.2l1 1.5c.4.7 1.1 1.1 1.9 1.4l2.5.8c.3.1.6.1.8.2.3 0 .4.2.4.4v8.1z"})),ql=jl,Zl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M14 5H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v10zm2.5-7v4l5 3V7l-5 3zm3.5 4.4l-2-1.2v-2.3l2-1.2v4.7z"})),Wl=Zl,Jl=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),Yl=Jl,Xl=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M11.25 5h1.5v15h-1.5V5zM6 10h1.5v10H6V10zm12 4h-1.5v6H18v-6z",clipRule:"evenodd"})),Kl=Xl,Ql=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),ei=Ql,ti=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),oi=ti,ri=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),ni=ri,ai=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})),ci=ai,li=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),ii=li,si=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),ui=si,mi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})),di=mi,pi=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})),hi=pi,_i=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})),vi=_i,wi=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"})),gi=wi,Ei=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),fi=Ei,bi=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})),Ci=bi,yi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),Ai=yi,xi=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,_.createElement)(pe.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,_.createElement)(pe.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})),Si=xi,ki=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})),Pi=ki,Bi=(0,_.createElement)(pe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})),Ni=Bi,Mi=(0,_.createElement)(pe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})),Vi=Mi,Ti=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6 11.9c.6.3 1.3.5 2.1.5.4 0 .8 0 1.2-.1.4-.1.7-.2 1-.3l-.1-1.3c-.3.1-.6.3-.9.3-.3.1-.7.1-1.1.1-.6 0-1.1-.1-1.5-.4-.4-.3-.7-.6-.9-1-.2-.5-.3-1-.3-1.5 0-.6.1-1.1.3-1.5.2-.4.5-.8.9-1 .4-.3.9-.4 1.5-.4.4 0 .7 0 1.1.1l.9.3.1-1.3c-.3-.1-.6-.2-1-.3C9 4 8.6 4 8.2 4c-.9 0-1.6.2-2.2.5-.6.4-1.1.8-1.5 1.5-.3.6-.5 1.3-.5 2.2s.2 1.6.5 2.2c.4.6.9 1.1 1.5 1.5zm-2 2.6V16h16v-1.5H4zM4 20h9v-1.5H4V20z"})),Fi=Ti,Di=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),Li=Di,Hi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"})),Ri=Hi,zi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"})),Ii=zi,Oi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),$i=Oi,Gi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 3.25a8.75 8.75 0 100 17.5 8.75 8.75 0 000-17.5zM4.75 12a7.25 7.25 0 1114.5 0 7.25 7.25 0 01-14.5 0zm9.195 1.944a2.75 2.75 0 01-4.066-.194h.621a.75.75 0 000-1.5H9.262a2.767 2.767 0 010-.5H11.5a.75.75 0 000-1.5H9.88a2.75 2.75 0 014.066-.194.75.75 0 001.06-1.061 4.25 4.25 0 00-6.88 1.255H7.5a.75.75 0 000 1.5h.258c-.01.166-.01.334 0 .5H7.5a.75.75 0 000 1.5h.626a4.25 4.25 0 006.88 1.255.75.75 0 00-1.06-1.06z"})),Ui=Gi,ji=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",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.25 4c-.787 0-1.425.638-1.425 1.425 0 .058.014.147.069.3.04.113.088.223.147.36a26.094 26.094 0 01.173.415H12.5a.75.75 0 010 1.5h-.953c.002.047.003.095.003.144 0 .617-.236 1.168-.511 1.606h3.386a.75.75 0 010 1.5H9.35a.75.75 0 01-.452-1.349l.007-.005a4.417 4.417 0 00.596-.581c.328-.39.549-.806.549-1.171 0-.05-.002-.097-.004-.144H9.5a.75.75 0 010-1.5h.088a5.875 5.875 0 01-.106-.27 2.382 2.382 0 01-.157-.805 2.925 2.925 0 015.637-1.097.75.75 0 01-1.39.563 1.426 1.426 0 00-1.322-.891zm-3.35 5.9l.45.6-.45-.6z"})),qi=ji,Zi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})),Wi=Zi,Ji=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),Yi=Ji,Xi=(0,_.createElement)(pe.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})),Ki=Xi,Qi=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})),es=Qi,ts=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),os=ts,rs=os,ns=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"})),as=ns,cs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})),ls=cs,is=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})),ss=is,us=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),ms=us,ds=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),ps=ds,hs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),_s=hs,vs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),ws=vs,gs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),Es=gs,fs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),bs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),Cs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),ys=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),As=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),xs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),Ss=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),ks=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6zM5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z"})),Ps=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),Bs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Ns=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Ms=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),Vs=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),Ts=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 3.3c-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.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})),Fs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),Ds=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M7 16.5h10V15H7v1.5zm0-9V9h10V7.5H7z"})),Ls=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Hs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1 16v-2h2v2h-2zm2-3v-1.141A3.991 3.991 0 0016 10a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2z"})),Rs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",clipRule:"evenodd"})),zs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M18.646 9H20V8l-1-.5L12 4 5 7.5 4 8v1h14.646zm-3-1.5L12 5.677 8.354 7.5h7.292zm-7.897 9.44v-6.5h-1.5v6.5h1.5zm5-6.5v6.5h-1.5v-6.5h1.5zm5 0v6.5h-1.5v-6.5h1.5zm2.252 8.81c0 .414-.334.75-.748.75H4.752a.75.75 0 010-1.5h14.5a.75.75 0 01.749.75z",clipRule:"evenodd"})),Is=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),Os=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})),$s=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Gs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Us=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z"})),js=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z"})),qs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Zs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Ws=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Js=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),Ys=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M9 13.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM9 16a4.002 4.002 0 003.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 005 12a4 4 0 004 4z",fillRule:"evenodd",clipRule:"evenodd"})),Xs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"})),Ks=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Qs=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M17.375 15.656A6.47 6.47 0 0018.5 12a6.47 6.47 0 00-.943-3.374l-1.262.813c.448.749.705 1.625.705 2.561a4.977 4.977 0 01-.887 2.844l1.262.813zm-1.951 1.87l-.813-1.261A4.976 4.976 0 0112 17c-.958 0-1.852-.27-2.613-.736l-.812 1.261A6.47 6.47 0 0012 18.5a6.47 6.47 0 003.424-.974zm-8.8-1.87A6.47 6.47 0 015.5 12c0-1.235.344-2.39.943-3.373l1.261.812A4.977 4.977 0 007 12c0 1.056.328 2.036.887 2.843l-1.262.813zm2.581-7.803A4.977 4.977 0 0112 7c1.035 0 1.996.314 2.794.853l.812-1.262A6.47 6.47 0 0012 5.5a6.47 6.47 0 00-3.607 1.092l.812 1.261zM12 20a8 8 0 100-16 8 8 0 000 16zm0-4.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",clipRule:"evenodd"})),eu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),tu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})),ou=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,_.createElement)(pe.Path,{d:"M5 11.25h14v1.5H5z"})),ru=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),nu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),au=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),cu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),lu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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"})),iu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})),su=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),uu=(0,_.createElement)(pe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),mu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),du=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"})),pu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),hu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})),_u=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),vu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),wu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,_.createElement)(pe.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,_.createElement)(pe.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),gu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"})),Eu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),fu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"})),bu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),Cu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"})),yu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Au=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"})),xu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),Su=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"})),ku=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"})),Pu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),Bu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Nu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),Mu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.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 0z",fillRule:"evenodd"})),Vu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})),Tu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),Fu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),Du=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),Lu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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"})),Hu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})),Ru=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})),zu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})),Iu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})),Ou=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,_.createElement)(pe.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),$u=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"})),Gu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),Uu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"})),ju=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"})),qu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),Zu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})),Wu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})),Ju=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})),Yu=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Xu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})),Ku=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})),Qu=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})),em=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})),tm=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm1.3-2.9c.6.3 1.3.5 2 .5.8 0 1.4-.2 2-.5.1 0 .1-.1.2-.2l.8.7.9-1-.8-.7.3-.3a5.09 5.09 0 0 0 0-4.4c-.2-.6-.7-1-1.3-1.4-.6-.3-1.3-.5-2-.5-.8 0-1.4.2-2 .5-.7.4-1.1.8-1.5 1.5-.3.6-.5 1.3-.5 2.2 0 .8.2 1.6.5 2.2.4.6.8 1.1 1.4 1.4zm-.1-5c.2-.4.5-.7.8-1s.8-.4 1.3-.4 1 .1 1.3.4.6.6.8 1c.3.4.4.8.4 1.4 0 .5-.1 1-.3 1.4v.1l-1-.9-.9 1 .9.9c-.3.2-.7.3-1.2.3s-1-.1-1.3-.4c-.4-.2-.6-.6-.8-1C5 9 4.9 8.5 4.9 8c0-.6.1-1 .3-1.4z"})),om=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})),rm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M16.83 6.342l.602.3.625-.25.443-.176v12.569l-.443-.178-.625-.25-.603.301-1.444.723-2.41-.804-.475-.158-.474.158-2.41.803-1.445-.722-.603-.3-.625.25-.443.177V6.215l.443.178.625.25.603-.301 1.444-.722 2.41.803.475.158.474-.158 2.41-.803 1.445.722zM20 4l-1.5.6-1 .4-2-1-3 1-3-1-2 1-1-.4L5 4v17l1.5-.6 1-.4 2 1 3-1 3 1 2-1 1 .4 1.5.6V4zm-3.5 6.25v-1.5h-8v1.5h8zm0 3v-1.5h-8v1.5h8zm-8 3v-1.5h8v1.5h-8z",clipRule:"evenodd"})),nm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M8.45474 21.2069L16.4547 3.7069L15.5453 3.29114L14.2837 6.05081C13.5991 5.69873 12.8228 5.49999 12 5.49999C10.9385 5.49999 9.95431 5.83076 9.1448 6.39485L7.18994 4.44L6.12928 5.50066L8.05556 7.42694C7.49044 8.15127 7.12047 9.0353 7.02469 9.99999H5V11.5H7V13H5V14.5H7.10002C7.35089 15.7359 8.0576 16.8062 9.03703 17.5279L7.54526 20.7911L8.45474 21.2069ZM9.68024 16.1209C8.95633 15.4796 8.5 14.5431 8.5 13.5V10.5C8.5 8.567 10.067 6.99999 12 6.99999C12.6003 6.99999 13.1653 7.15111 13.659 7.41738L9.68024 16.1209ZM15.3555 9.50155L16.1645 7.73191C16.6053 8.39383 16.8926 9.16683 16.9753 9.99999H19V11.5H17V13H19V14.5H16.9C16.4367 16.7822 14.419 18.5 12 18.5C11.7508 18.5 11.5058 18.4818 11.2664 18.4466L11.928 16.9993C11.9519 16.9998 11.9759 17 12 17C13.933 17 15.5 15.433 15.5 13.5V10.5C15.5 10.1531 15.4495 9.81794 15.3555 9.50155Z"})),am=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})),cm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16 10h4c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1zm-8 4H4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h4c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm10-2.6L14.5 15l1.1 1.1 1.7-1.7c-.1 1.1-.3 2.3-.9 2.9-.3.3-.7.5-1.3.5h-4.5v1.5H15c.9 0 1.7-.3 2.3-.9 1-1 1.3-2.7 1.4-4l1.8 1.8 1.1-1.1-3.6-3.7zM6.8 9.7c.1-1.1.3-2.3.9-2.9.4-.4.8-.6 1.3-.6h4.5V4.8H9c-.9 0-1.7.3-2.3.9-1 1-1.3 2.7-1.4 4L3.5 8l-1 1L6 12.6 9.5 9l-1-1-1.7 1.7z"})),lm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7 11.5h10V13H7z"})),im=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),sm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),um=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"})),mm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),dm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})),pm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),hm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})),_m=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),vm=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),wm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),gm=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Em=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 3.176l6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 01-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176zM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21z",fillRule:"evenodd",clipRule:"evenodd"})),fm=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),bm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"})),Cm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"})),ym=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),Am=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),xm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),Sm=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),km=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})),Pm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Bm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),Nm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),Mm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"})),Vm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),Tm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Fm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Dm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Lm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Hm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Rm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"})),zm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),Im=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),Om=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})),$m=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Gm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Um=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),jm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M12.9 6h-2l-4 11h1.9l1.1-3h4.2l1.1 3h1.9L12.9 6zm-2.5 6.5l1.5-4.9 1.7 4.9h-3.2z"})),qm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),Zm=(0,_.createElement)(pe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M5 4v3h5.5v12h3V7H19V4H5z"})),Wm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Jm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),Ym=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M4.195 8.245a.75.75 0 011.06-.05l5.004 4.55 4.025-3.521L19 13.939V10.75h1.5v5.75h-5.75V15h3.19l-3.724-3.723-3.975 3.478-5.995-5.45a.75.75 0 01-.051-1.06z"})),Xm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M3.445 16.505a.75.75 0 001.06.05l5.005-4.55 4.024 3.521 4.716-4.715V14h1.5V8.25H14v1.5h3.19l-3.724 3.723L9.49 9.995l-5.995 5.45a.75.75 0 00-.05 1.06z"})),Km=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})),Qm=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})),ed=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.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.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})),td=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),od=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),rd=(0,_.createElement)(pe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(pe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),nd=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),ad=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,_.createElement)(pe.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"})),cd=(0,_.createElement)(pe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,_.createElement)(pe.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),{name:ld,...id}=el,sd={example:{},edit:function({attributes:e,clientId:t}){var r;const a=(0,E.useWooBlockProps)(e),{productTemplates:c,productTemplate:l}=(0,n.useSelect)((e=>{const{getEditorSettings:t}=e("core/editor");return t()})),[i,s]=c.reduce((([e,t],o)=>(o.layoutTemplateId?e.push(o):t.push(o),[e,t])),[[],[]]),u=(0,f.useEntityId)("postType","product"),{validate:m}=Xe(),{editEntityRecord:d,saveEditedEntityRecord:p,saveEntityRecord:h}=(0,n.useDispatch)("core"),{createSuccessNotice:v,createErrorNotice:w}=(0,n.useDispatch)("core/notices"),g=(0,n.useSelect)((e=>{const{getBlockRootClientId:o}=e("core/block-editor");return o(t)}),[t]),[b,C]=(0,_.useState)(),{isSaving:y}=(0,n.useSelect)((e=>{const{isSavingEntityRecord:t}=e("core");return{isSaving:t("postType","product",u)}}),[u]);if(g)return(0,_.createElement)(Fr,{name:"section-description",slotContainerBlockName:"woocommerce/product-section"},(0,_.createElement)("div",{...a},(0,_.createElement)("p",null,(0,_.createInterpolateElement)((0,D.__)("This is a <ProductTemplate />.","woocommerce"),{ProductTemplate:(0,_.createElement)("span",null,null===(r=null==l?void 0:l.title)||void 0===r?void 0:r.toLowerCase())})),(0,_.createElement)(S.Dropdown,{focusOnMount:!0,popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.Button,{"aria-expanded":e,variant:"link",onClick:P(e,t)},(0,_.createElement)("span",null,(0,D.__)("Change product type","woocommerce"))),renderContent:({onClose:e})=>(0,_.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__dropdown components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,i.map(k(e))),s.length>0&&(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{"aria-expanded":e,icon:x("chevronRight"),iconPosition:"right",onClick:t},(0,_.createElement)("span",null,(0,D.__)("More","woocommerce"))),renderContent:()=>(0,_.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__dropdown components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,s.map(k(e))))})))}),Boolean(b)&&(0,_.createElement)(S.Modal,{title:(0,D.__)("Change product type?","woocommerce"),className:"wp-block-woocommerce-product-details-section-description__modal",onRequestClose:()=>{C(void 0)}},(0,_.createElement)("p",null,(0,_.createElement)("b",null,(0,D.__)("This product type isn’t supported by the updated product editing experience yet.","woocommerce"))),(0,_.createElement)("p",null,(0,D.__)("You’ll be taken to the classic editing screen that isn’t optimized for commerce but offers advanced functionality and supports all extensions.","woocommerce")),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-details-section-description__modal-actions"},(0,_.createElement)(S.Button,{variant:"secondary","aria-disabled":y,onClick:()=>{y||C(void 0)}},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{variant:"primary",isBusy:y,"aria-disabled":y,onClick:async function(){var e,t;try{if(y)return;const{id:o,productData:r}=b;await m(r);const n=null!==(e=await p("postType","product",u,{throwOnError:!0}))&&void 0!==e?e:{id:u},a=null!==(t=null==r?void 0:r.meta_data)&&void 0!==t?t:[];await h("postType","product",{...n,...r,meta_data:[...a,{key:"_product_template_id",value:o}]},{throwOnError:!0}),v((0,D.__)("Product type changed.","woocommerce")),(0,X.recordEvent)("product_template_changed",{source:W,template:o}),window.location.href=(0,je.getNewPath)({},`/product/${u}`)}catch(e){const t=Je(e);w(t)}}},(0,D.__)("Change","woocommerce"))))));function A(e,t){return async function(){var o;try{if((0,X.recordEvent)("product_template_selector_selected",{source:W,selected_template:e.id,unsupported_template:!e.layoutTemplateId}),!e.layoutTemplateId)return C(e),void t();await m(e.productData);const r=null!==(o=e.productData.meta_data)&&void 0!==o?o:[];await d("postType","product",u,{...e.productData,meta_data:[...r,{key:"_product_template_id",value:e.id}]}),await p("postType","product",u,{throwOnError:!0}),v((0,D.__)("Product type changed.","woocommerce")),(0,X.recordEvent)("product_template_changed",{source:W,template:e.id})}catch(e){const t=Je(e);w(t)}t()}}function x(e,t){if(!e)return;const{Icon:r}=o;let n;if(/^https?:\/\//.test(e))n=(0,_.createElement)("img",{src:e,alt:t});else{if(!(e in o))return;n=o[e]}return(0,_.createElement)(r,{icon:n,size:24})}function k(e){return function(t){var o;const r=(null==l?void 0:l.id)===t.id;return(0,_.createElement)(S.MenuItem,{key:t.id,info:null!==(o=t.description)&&void 0!==o?o:void 0,isSelected:r,icon:r?x("check"):x(t.icon,t.title),iconPosition:"left",role:"menuitemradio",onClick:A(t,e),className:we()({"components-menu-item__button--selected":r})},t.title)}}function P(e,t){return function(){t(),e||(0,X.recordEvent)("product_template_selector_open",{source:W,supported_templates:i.map((e=>e.id)),unsupported_template:s.map((e=>e.id))})}}}};function ud(){return C({name:ld,metadata:id,settings:sd})}const md=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-list-field","title":"Product list","category":"widgets","description":"The product list.","keywords":["products"],"textdomain":"default","attributes":{"property":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');function dd(e){return e.images.length>0?{backgroundImage:`url(${e.images[0].src})`}:void 0}function pd({initialValue:e,onSubmit:t,onClose:o}){const[r,a]=(0,_.useState)([]),[c,l]=(0,_.useState)([]),i=(0,_.useCallback)((async(t="")=>(a([]),(0,n.resolveSelect)(H.PRODUCTS_STORE_NAME).getProducts({search:t,orderby:"title",order:"asc",exclude:[...e,...c].map((e=>e.id))}).then((e=>(a(e),e))))),[c]),{isFetching:s,...u}=(0,A.useAsyncFilter)({filter:i});(0,P.useEffect)((function(){i()}),[e,c]);const{formatAmount:m}=(0,_.useContext)(ee.CurrencyContext);return(0,_.createElement)(S.Modal,{title:(0,D.__)("Add products to this group","woocommerce"),className:"woocommerce-add-products-modal",onRequestClose:o},(0,_.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),t([...c])},className:"woocommerce-add-products-modal__form"},(0,_.createElement)("fieldset",{className:"woocommerce-add-products-modal__form-group"},(0,_.createElement)("legend",{className:"woocommerce-add-products-modal__form-group-title"},(0,D.__)("Add and manage products in this group to let customers purchase them all in one go.","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__form-group-content"},(0,_.createElement)(A.__experimentalSelectControl,{...u,items:r,placeholder:(0,D.__)("Search for products","woocommerce"),label:"",selected:null,onSelect:function(e){l((t=>[...t,e]))},__experimentalOpenMenuOnFocus:!0},(({items:e,isOpen:t,highlightedIndex:o,getMenuProps:r,getItemProps:n})=>(0,_.createElement)(A.__experimentalSelectControlMenu,{isOpen:t,getMenuProps:r,className:"woocommerce-add-products-modal__menu"},s?(0,_.createElement)("div",{className:"woocommerce-add-products-modal__menu-loading"},(0,_.createElement)(S.Spinner,null)):e.map(((e,t)=>(0,_.createElement)(A.__experimentalSelectControlMenuItem,{key:e.id,index:t,isActive:o===t,item:e,getItemProps:e=>({...n(e),className:"woocommerce-add-products-modal__menu-item"})},(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-image",style:dd(e)}),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-content"},(0,_.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-title"},e.name),Boolean(e.price)&&(0,_.createElement)("div",{className:"woocommerce-add-products-modal__menu-item-description"},m(e.price))))))))))),Boolean(c.length)&&(0,_.createElement)("ul",{className:"woocommerce-add-products-modal__list"},c.map((e=>{return(0,_.createElement)("li",{key:e.id,className:"woocommerce-add-products-modal__list-item"},(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-image",style:dd(e)}),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-content"},(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-title"},e.name),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-description"},e.sku)),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-actions"},(0,_.createElement)(S.Button,{type:"button",variant:"tertiary",icon:eo,"aria-label":(0,D.__)("Remove product","woocommerce"),onClick:(t=e,function(){l((e=>e.filter((e=>e.id!==t.id))))})})));var t})))),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__actions"},(0,_.createElement)(S.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{variant:"primary",type:"submit"},(0,D.__)("Add","woocommerce")))))}function hd({products:e,onSubmit:t,onClose:o}){const[r,n]=(0,_.useState)([...e]),{container:a,draggable:c,handler:l}=function({onSort:e}){const t=(0,_.useRef)(-1),o=(0,_.useRef)(-1),r=(0,_.useRef)([]);function n(e){var t;null===(t=e.target.closest("[data-draggable=parent] [data-draggable=target]"))||void 0===t||t.removeAttribute("draggable")}return{container:{"data-draggable":"parent",className:"woocommerce-draggable__container"},draggable:{"data-draggable":"target",onDragStart:function(e){var o,n;const a=e.target;if("target"!==a.dataset.draggable)return void e.preventDefault();e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",a.classList.add("is-dragging");const c=a.closest("[data-draggable=parent]");r.current=Array.from(null!==(n=null===(o=null==c?void 0:c.querySelectorAll("[data-draggable=target]"))||void 0===o?void 0:o.values())&&void 0!==n?n:[]),t.current=r.current.indexOf(a)},onDragEnter:function(e){const n=e.target,a=e.relatedTarget;if("target"!==n.dataset.draggable||n.contains(a))return void e.preventDefault();const{draggable:c,index:l}=function(e,t){const o=e.findIndex((e=>e===t||e.contains(t)));return{draggable:o>=0?e[o]:void 0,index:o}}(r.current,n);o.current=l,t.current!==o.current&&(t.current<o.current?null==c||c.classList.add("is-dragging-after"):null==c||c.classList.add("is-dragging-before"))},onDragOver:function(e){return e.preventDefault(),!1},onDragLeave:function(e){const t=e.target,o=e.relatedTarget;"target"!==t.dataset.draggable||t.contains(o)?e.preventDefault():(t.classList.remove("is-dragging-before"),t.classList.remove("is-dragging-after"))},onDragEnd:function(e){const t=e.target;"target"===t.dataset.draggable?t.classList.remove("is-dragging"):e.preventDefault()},onDrop:function(r){r.preventDefault();const n=r.target,a="target"===n.dataset.draggable?n:n.closest("[data-draggable=parent] [data-draggable=target]");if(null==a||a.removeAttribute("draggable"),null==a||a.classList.remove("is-dragging-before"),null==a||a.classList.remove("is-dragging-after"),-1!==t.current&&-1!==o.current&&t.current!==o.current){const r=t.current,n=o.current;e((e=>function(e,t,o){const r=e[t],n=e.reduce(((e,n,a)=>(a!==t&&(a===o&&e.push(r),e.push(n)),e)),[]);return o>=e.length&&n.push(r),n}(e,r,n+Number(r<n))))}t.current=-1,o.current=-1}},handler:{"data-draggable":"handler",onMouseDown:function(e){var t;null===(t=e.target.closest("[data-draggable=parent] [data-draggable=target]"))||void 0===t||t.setAttribute("draggable","true")},onMouseUp:n,onMouseLeave:n}}}({onSort:n});return(0,_.createElement)(S.Modal,{title:(0,D.__)("Reorder products in this group","woocommerce"),className:"woocommerce-reorder-products-modal",onRequestClose:o},(0,_.createElement)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),t([...r])},className:"woocommerce-add-products-modal__form"},(0,_.createElement)("fieldset",{className:"woocommerce-add-products-modal__form-group"},(0,_.createElement)("legend",{className:"woocommerce-add-products-modal__form-group-title"},(0,D.__)("Click and drag to reorder on the product page.","woocommerce")),Boolean(r.length)&&(0,_.createElement)("ul",{...a,className:we()("woocommerce-add-products-modal__list",a.className)},r.map((e=>(0,_.createElement)("li",{...c,key:e.id,className:"woocommerce-add-products-modal__list-item"},(0,_.createElement)(S.Button,{...l,icon:Ki,variant:"tertiary",type:"button","aria-label":(0,D.__)("Sortable handler","woocommerce")}),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-image",style:dd(e)}),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-content"},(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-title"},e.name),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__list-item-description"},e.sku))))))),(0,_.createElement)("div",{className:"woocommerce-add-products-modal__actions"},(0,_.createElement)(S.Button,{variant:"tertiary",type:"button",onClick:function(){o()}},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{variant:"primary",type:"submit"},(0,D.__)("Done","woocommerce")))))}var _d,vd;!function(e){e.instock="instock",e.onbackorder="onbackorder",e.outofstock="outofstock"}(_d||(_d={})),function(e){e.instock="green",e.onbackorder="yellow",e.outofstock="red"}(vd||(vd={}));const wd={[_d.instock]:(0,D.__)("In stock","woocommerce"),[_d.onbackorder]:(0,D.__)("On backorder","woocommerce"),[_d.outofstock]:(0,D.__)("Out of stock","woocommerce")},gd=e=>e.manage_stock?e.stock_quantity||0:e.stock_status?wd[e.stock_status]:wd.instock,Ed=e=>{if(e.manage_stock){const t=e.stock_quantity||0;return t>=10?vd.instock:t<10&&t>2?vd.onbackorder:vd.outofstock}return e.stock_status?vd[e.stock_status]:""};function fd({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o=68,style:r={}}){return(0,_.createElement)(S.SVG,{width:o,height:Math.round(o/(68/56)),viewBox:"0 0 68 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,_.createElement)(S.Path,{d:"M43.0926 0.333984C41.0526 1.54732 37.5593 2.46732 34.2526 2.46732C30.946 2.46732 27.4526 1.54732 25.4126 0.333984L22.2793 10.5207H46.2126L43.106 0.333984H43.0926Z",fill:e}),(0,_.createElement)(S.Path,{d:"M43.0927 0.333984C43.0927 4.09398 40.306 8.80065 34.2527 8.80065C28.1994 8.80065 25.4127 4.08065 25.4127 0.333984C15.546 0.333984 3.81268 7.45398 0.666016 10.6006L9.73269 24.7606L14.986 23.414L15.066 55.5606H53.4394L53.5194 23.414L58.7727 24.7606L67.8394 10.6006C64.6927 7.45398 52.9594 0.333984 43.0927 0.333984Z",fill:t}))}function bd({colorOne:e="#DDDDDD",colorTwo:t="#F0F0F0",size:o=50,style:r={}}){const n=(0,w.useInstanceId)(bd,"pants");return(0,_.createElement)(S.SVG,{width:o,height:Math.round(o/(50/72)),viewBox:"0 0 50 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,_.createElement)(S.G,{clipPath:`url(#${n})`},(0,_.createElement)(S.Path,{d:"M44.6084 21.3845C40.788 21.6427 35.5059 20.8456 35.1404 16.333C34.8746 13.0889 34.5867 9.04771 34.3431 5.7811H42.9474L42.3273 0H8.34205L7.72192 5.7811H16.3262C16.0826 9.04771 15.8057 13.0889 15.5289 16.333C15.1635 20.8456 9.87022 21.6314 6.06086 21.3845L0.667969 72H14.0007C14.0007 72 21.7745 32.0711 22.904 26.0318C23.4909 22.9111 24.3989 22.2264 25.3291 22.2264C26.2593 22.2264 27.1673 22.9224 27.7543 26.0318C28.8948 32.0599 36.6575 72 36.6575 72H49.9903L44.5974 21.3845H44.6084Z",fill:t}),(0,_.createElement)(S.Path,{d:"M15.5383 16.3332C15.8041 13.089 16.092 9.04785 16.3356 5.78125H7.73137L6.07031 21.3846C9.89074 21.6428 15.1729 20.8458 15.5383 16.3332Z",fill:e}),(0,_.createElement)(S.Path,{d:"M35.1293 16.3332C35.4948 20.8458 40.788 21.6316 44.5974 21.3846L42.9363 5.78125H34.332C34.5757 9.04785 34.8525 13.089 35.1293 16.3332Z",fill:e})),(0,_.createElement)("defs",null,(0,_.createElement)("clipPath",{id:n},(0,_.createElement)(S.Rect,{width:"49.3334",height:"72",fill:"white",transform:"translate( 0.667969 )"}))))}function Cd({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o=72,style:r={}}){return(0,_.createElement)(S.SVG,{width:o,height:Math.round(o/(72/33)),viewBox:"0 0 72 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,_.createElement)(S.Path,{d:"M1.82318 26.2927C2.40837 25.6395 12.1796 15.8683 13.4588 14.6027C14.6156 13.4596 16.0853 12.9696 17.8409 12.8336C19.2426 12.7383 65.159 9.36328 65.159 9.36328L65.9075 12.9016C65.9075 12.9016 17.3782 17.7736 17.3509 17.7736C13.5132 22.8633 8.01523 30.7156 7.49809 31.3008C6.10999 32.8658 3.71482 33.0019 2.13618 31.6274C0.598377 30.2257 0.448677 27.8306 1.83679 26.2655L1.82318 26.2927Z",fill:t}),(0,_.createElement)(S.Path,{d:"M70.4378 26.2927C69.8526 25.6395 60.0815 15.8683 58.8022 14.6027C57.6455 13.4596 56.1757 12.9696 54.4202 12.8336C53.0184 12.7383 7.10201 9.36328 7.10201 9.36328L6.35352 12.9016C6.35352 12.9016 54.8829 17.7736 54.9101 17.7736C58.7478 22.8633 64.2458 30.7156 64.7629 31.3008C66.151 32.8658 68.5462 33.0019 70.1248 31.6274C71.6626 30.2257 71.8123 27.8306 70.4242 26.2655L70.4378 26.2927Z",fill:t}),(0,_.createElement)(S.Path,{d:"M53.3189 0C46.4328 0 41.6016 2.5993 38.4715 8.70969C38.1449 8.4103 37.1379 8.01564 36.1172 8.01564C35.0965 8.01564 34.1031 8.42391 33.7629 8.70969C30.6328 2.5993 25.8017 0 18.9156 0C12.0295 0 4.49012 4.53176 0.666016 6.38257V11.9078H4.77591C5.34748 15.4461 8.61362 25.68 19.0244 25.68C28.1288 25.68 30.9322 19.2838 32.9736 15.378C33.6812 14.0172 34.5658 12.0711 36.1172 12.0711C37.6686 12.0711 38.5532 14.0172 39.2609 15.378C41.2886 19.2838 44.092 25.68 53.21 25.68C63.6208 25.68 66.8869 15.4597 67.4585 11.9078H71.5684V6.38257C67.7443 4.54537 60.3683 0 53.3189 0ZM19.0517 22.3186C12.9277 22.3186 8.83136 16.9022 8.83136 11.4723C8.83136 5.53882 14.1797 3.2117 19.1605 3.2117C24.1414 3.2117 29.8027 5.811 29.8027 11.0912C29.8027 17.1336 25.3662 22.305 19.0517 22.305V22.3186ZM53.21 22.3186C46.9091 22.3186 42.459 17.1472 42.459 11.1049C42.459 5.83822 48.1066 3.22531 53.1011 3.22531C58.0956 3.22531 63.4303 5.55243 63.4303 11.4859C63.4303 16.9159 59.3204 22.3322 53.21 22.3322V22.3186Z",fill:e}))}function yd({tip:e,isDismissible:t=!0,dismissPreferenceId:o,className:r,children:n,onDismiss:a,...c}){const[l,i]=(0,_.useState)(!1),{updateUserPreferences:s,product_advice_card_dismissed:u}=(0,H.useUserPreferences)();if(t){if(o&&u&&"yes"===(null==u?void 0:u[o]))return null;if(l)return null}return(0,_.createElement)("div",{role:"group",...c,className:we()(r,"woocommerce-advice-card",{"is-dismissible":t})},t&&(0,_.createElement)("div",{className:"woocommerce-advice-card__header"},(0,_.createElement)(S.Button,{className:"woocommerce-advice-card__dismiss-button",onClick:function(){o?s({product_advice_card_dismissed:{...u,[o]:"yes"}}):i((e=>!e)),a&&a()},icon:Kt,label:(0,D.__)("Dismiss","woocommerce"),isSmall:!0})),(0,_.createElement)("div",{className:"woocommerce-advice-card__body"},n),e&&e.length>0&&(0,_.createElement)("div",{className:"woocommerce-advice-card__footer"},e))}const{name:Ad,...xd}=md,Sd={example:{},edit:function({attributes:e,context:{postType:t}}){const{property:o}=e,r=(0,E.useWooBlockProps)(e),[a,c]=(0,_.useState)(!1),[l,i]=(0,_.useState)(!1),[s,u]=(0,_.useState)(!1),[m,d]=(0,_.useState)(!1),[p,h]=(0,f.useEntityProp)("postType",t,o),[v,w]=(0,_.useState)([]),{formatAmount:g}=(0,_.useContext)(ee.CurrencyContext);function b(e){return function(){const t=v.filter((t=>t.id!==e.id));d(!0),w(t),h(t.map((e=>e.id)))}}return(0,_.useEffect)((function(){m||(p.length?(u(!1),(0,n.resolveSelect)(H.PRODUCTS_STORE_NAME).getProducts({include:p,orderby:"include"}).then(w).finally((()=>u(!1)))):w([]))}),[p,m]),(0,_.createElement)("div",{...r},(0,_.createElement)(Lr,null,!s&&v.length>0&&(0,_.createElement)(S.Button,{onClick:function(){i(!0)},variant:"tertiary"},(0,D.__)("Reorder","woocommerce")),(0,_.createElement)(S.Button,{onClick:function(){c(!0)},variant:"secondary"},(0,D.__)("Add products","woocommerce"))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__body"},!s&&0===v.length&&(0,_.createElement)(yd,{tip:(0,D.__)("Tip: Group together items that have a clear relationship or compliment each other well, e.g., garment bundles, camera kits, or skincare product sets.","woocommerce"),isDismissible:!1},(0,_.createElement)(fd,null),(0,_.createElement)(bd,null),(0,_.createElement)(Cd,null)),!s&&v.length>0&&(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table",role:"table"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-row",role:"rowheader"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,D.__)("Product","woocommerce")),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,D.__)("Price","woocommerce")),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"},(0,D.__)("Stock","woocommerce")),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-header-column",role:"columnheader"}))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-body",role:"rowgroup"},v.map((e=>(0,_.createElement)("div",{key:e.id,className:"wp-block-woocommerce-product-list-field__table-row",role:"row"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-image",style:dd(e)}),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-info"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-name"},(0,_.createElement)(S.Button,{variant:"link",href:(0,je.getNewPath)({},`/product/${e.id}`),target:"_blank"},e.name)),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__product-sku"},e.sku))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},e.on_sale&&(0,_.createElement)("span",null,e.sale_price?g(e.sale_price):g(e.price)),e.regular_price&&(0,_.createElement)("span",{className:we()({"wp-block-woocommerce-product-list-field__price--on-sale":e.on_sale})},g(e.regular_price))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,_.createElement)("span",{className:we()("woocommerce-product-variations__status-dot",Ed(e))},"●"),(0,_.createElement)("span",null,gd(e))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-list-field__table-cell",role:"cell"},(0,_.createElement)(S.Button,{variant:"tertiary",icon:It,"aria-label":(0,D.__)("Preview the product","woocommerce"),href:e.permalink,target:"_blank"}),(0,_.createElement)(S.Button,{type:"button",variant:"tertiary",icon:eo,"aria-label":(0,D.__)("Remove product","woocommerce"),onClick:b(e)})))))))),a&&(0,_.createElement)(pd,{initialValue:v,onSubmit:function(e){const t=[...v,...e];d(!0),w(t),h(t.map((e=>e.id))),c(!1)},onClose:function(){c(!1)}}),l&&(0,_.createElement)(hd,{products:v,onSubmit:function(e){w(e),h(e.map((e=>e.id))),i(!1)},onClose:function(){i(!1)}}))}};function kd(){return C({name:Ad,metadata:xd,settings:Sd})}const Pd=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-variation-items-field","title":"Product variations items","category":"woocommerce","description":"The product variations items.","keywords":["products","variations"],"textdomain":"default","attributes":{"description":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"usesContext":["isInSelectedTab"],"editorStyle":"file:./editor.css"}');function Bd({className:e,totalCount:t,perPageOptions:o=Y,defaultPerPage:r=5,onPageChange:n,onPerPageChange:a}){const c=(0,A.usePagination)({defaultPerPage:r,totalCount:t,onPageChange:n,onPerPageChange:a}),l=(0,D.__)("Viewing %d-%d of %d items","woocommerce");return(0,_.createElement)("div",{className:we()(e,"woocommerce-product-variations-pagination")},(0,_.createElement)("div",{className:"woocommerce-product-variations-pagination__info"},(0,D.sprintf)(l,c.start,c.end,t)),(0,_.createElement)("div",{className:"woocommerce-product-variations-pagination__current-page"},(0,_.createElement)(A.PaginationPageArrowsWithPicker,{...c})),(0,_.createElement)("div",{className:"woocommerce-product-variations-pagination__page-size"},(0,_.createElement)(A.PaginationPageSizePicker,{...c,total:t,perPageOptions:o,label:""})))}function Nd(){return(0,_.createElement)(S.SVG,{width:"90",height:"64",viewBox:"0 0 90 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(S.Path,{d:"M89.4707 32.0026L80.0137 38.0743L83.1112 48.872L71.7948 48.2247L69.3959 59.2741L59.1941 54.3068L53.3124 64L45.001 56.2691L36.6895 64L30.8078 54.3068L20.6061 59.2741L18.2072 48.2247L6.89067 48.872L9.98819 38.0743L0.53125 32.0026L9.98819 25.9257L6.89067 15.1332L18.2072 15.7804L20.6061 4.7259L30.8078 9.69837L36.6895 0L45.001 7.73096L53.3124 0L59.1889 9.69837L69.3959 4.7259L71.7948 15.7804L83.1112 15.1332L80.0137 25.9257L89.4707 32.0026Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M44.9266 16.8066C41.6031 16.8066 38.9062 19.5292 38.9062 26.0632C38.9062 34.051 44.9266 40.7187 44.9266 40.7187C44.9266 40.7187 50.947 34.0459 50.947 26.0632C50.947 19.5292 48.2502 16.8066 44.9266 16.8066Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M44.9218 49.9242C46.9389 49.9242 48.5741 48.289 48.5741 46.2719C48.5741 44.2548 46.9389 42.6196 44.9218 42.6196C42.9047 42.6196 41.2695 44.2548 41.2695 46.2719C41.2695 48.289 42.9047 49.9242 44.9218 49.9242Z",fill:"white"}))}function Md(e){const t=(0,w.useInstanceId)(S.G,"clip");return(0,_.createElement)(S.SVG,{width:"264",height:"167",...e,viewBox:"0 0 264 167",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,_.createElement)(S.G,{clipPath:`url(#${t})`},(0,_.createElement)(S.Path,{d:"M38.5556 0.164185C11.3783 0.164185 -3.89877 21.4091 1.5234 37.3916C7.43365 54.8517 25.6968 71.9169 25.6968 85.7696H51.4188C51.4188 71.908 69.6821 54.8517 75.5923 37.3916C81.0145 21.4091 65.7463 0.164185 38.5556 0.164185Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M50.5063 48.3114C44.2189 48.3114 40.5228 52.5755 40.5228 59.1735V59.9899C40.079 59.9899 39.6176 59.9899 39.1827 59.9944H38.3486C37.7141 59.9944 37.3325 59.9944 36.5915 59.9944V59.1779C36.5915 52.5755 32.8953 48.3114 26.6124 48.3114C21.0127 48.3114 17.8047 50.4812 17.8047 54.2616C17.8047 57.0969 20.4936 59.0137 25.7915 59.9589C29.0306 60.5357 32.1721 60.6777 35.2781 60.7087V85.7652H36.6003V60.7176C37.3413 60.722 37.7185 60.722 38.3574 60.7176C38.9919 60.7176 39.7906 60.7176 40.5316 60.7176V85.7652H41.8539V60.7132C44.9554 60.6777 48.0969 60.5401 51.3405 59.9633C56.6384 59.0182 59.3273 57.1013 59.3273 54.266C59.3273 50.4856 56.1192 48.3158 50.5196 48.3158L50.5063 48.3114ZM35.2781 59.9855C32.2032 59.95 29.106 59.8124 25.9202 59.2445C21.0172 58.3704 19.6905 56.2938 19.6905 54.1329C19.6905 50.2682 23.5996 49.0347 26.6124 49.0347C32.2342 49.0347 35.2781 53.0148 35.2781 59.169V59.981V59.9855ZM51.1985 59.2445C48.0126 59.8124 44.9155 59.9544 41.845 59.9855V59.1735C41.845 53.0148 44.8889 49.0391 50.5107 49.0391C53.528 49.0391 57.4326 50.2726 57.4326 54.1373C57.4326 56.2982 56.1015 58.3704 51.2029 59.2489L51.1985 59.2445Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M38.5585 101.872C45.5248 101.872 51.4173 96.1613 51.4173 89.834H25.6953C25.6953 96.1613 31.5923 101.872 38.5585 101.872Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M57.2858 89.9271H19.832V85.7695H57.2858V89.9271Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M69.5768 106.602H7.63895L0.4375 167L15.2974 151.328H64.2566L69.5768 106.602Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M119.436 122.749C113.97 115.072 110.828 111.394 104.652 111.394C97.8809 111.394 94.908 119.061 98.9724 123.853C103.445 129.125 118.993 134.627 118.993 134.627C118.993 134.627 94.0694 129.923 84.9112 129.923C79.8573 129.923 74.6836 131.96 74.6836 139.135C74.6836 146.31 79.8617 148.346 84.9112 148.346C94.0694 148.346 118.993 143.643 118.993 143.643C118.993 143.643 103.445 149.145 98.9724 154.416C94.908 159.208 97.8764 166.876 104.652 166.876C110.828 166.876 113.97 163.197 119.436 155.521C121.287 152.921 130.707 139.135 130.707 139.135C130.707 139.135 121.287 125.349 119.436 122.749Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M94.2838 102.671L169.715 102.671V80.4849L94.2838 80.4849V102.671Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M169.712 0H94.2812V75.4311H169.712V0Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M147.619 49.6336C147.619 44.4156 144.429 39.4194 138.168 36.0116H157.66L139.472 6.00781H124.524L106.336 36.0116H125.828C119.567 39.4194 116.377 44.4156 116.377 49.6336C116.377 55.5394 121.005 61.4985 127.106 64.6888C118.667 62.9849 117.344 69.4232 117.344 69.4232H146.661C146.661 69.4232 145.338 62.9849 136.899 64.6888C143 61.4985 147.628 55.5394 147.628 49.6336H147.619Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M147.86 80.7911H94.2812V85.2283H147.86V80.7911Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M169.712 89.8473H94.2812V94.2844H169.712V89.8473Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M136.82 98.9034H94.2812V103.341H136.82V98.9034Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M219.52 167C229.042 167 235.063 158.538 235.063 151.457H203.977C203.977 158.538 209.998 167 219.52 167Z",fill:"#DDDDDD"}),(0,_.createElement)(S.Path,{d:"M219.516 58.2018C185.027 58.2018 168.143 86.1557 178.522 110.613C185.541 127.141 202.225 125.264 202.225 138.505H236.826C236.826 125.264 253.514 127.141 260.529 110.613C270.903 86.1557 254.006 58.2018 219.516 58.2018Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M219.52 167C228.9 167 234.882 158.787 235.059 151.776C235.059 151.67 235.059 142.707 235.059 142.6H203.973C203.973 142.685 203.973 151.63 203.973 151.719C204.115 158.742 210.105 167.004 219.511 167.004L219.52 167Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M240.248 142.596H198.801V138.505H240.248V142.596Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M240.248 149.074H198.801V144.983H240.248V149.074Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M169.656 125.371H142.133V152.894H169.656V125.371Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M155.015 146.194L162.181 139.587L147.445 139.663V138.571L162.154 138.647L155.015 132.067L155.676 131.228L163.982 139.055V139.184L155.676 147.033L155.015 146.194Z",fill:"#DDDDDD"}),(0,_.createElement)(S.Path,{d:"M22.0977 126.533L27.44 141.921L53.5835 112.729",stroke:"white",strokeMiterlimit:"10"}),(0,_.createElement)(S.Path,{d:"M232.227 110.138C232.227 102.307 227.559 97.4392 220.042 97.4126C220.042 97.4126 220.025 97.4126 220.016 97.4126C220.007 97.4126 219.998 97.4126 219.989 97.4126C212.473 97.4392 207.805 102.928 207.805 110.138C207.805 117.349 212.22 120.774 218.516 125.287C214.704 128.858 212.663 134.516 212.663 138.505H215.867C215.867 134.809 216.572 129.56 220.016 126.462C223.463 129.56 224.164 134.809 224.164 138.505H227.368C227.368 134.516 225.322 128.858 221.515 125.287C227.812 120.778 232.227 116.958 232.227 110.138ZM220.016 124.435C213.773 119.989 209.242 117.158 209.242 110.138C209.242 103.119 213.546 98.7216 220.016 98.7082C226.485 98.7216 230.789 103.354 230.789 110.138C230.789 116.222 226.259 119.989 220.016 124.435Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M250.84 40.1516C250.84 45.9864 246.155 50.7297 240.342 50.8184H199.862C193.97 50.8184 189.195 46.0441 189.195 40.1516C189.195 34.2591 193.97 29.4847 199.862 29.4847H240.36C246.164 29.4847 250.84 34.3256 250.84 40.1516Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M240.122 47.7347C244.31 47.7347 247.705 44.3396 247.705 40.1516C247.705 35.9636 244.31 32.5686 240.122 32.5686C235.934 32.5686 232.539 35.9636 232.539 40.1516C232.539 44.3396 235.934 47.7347 240.122 47.7347Z",fill:"#E0E0E0"}),(0,_.createElement)(S.Path,{d:"M131.996 6.00781H124.524L106.332 36.0116H125.824H138.168H157.661L139.468 6.00781H131.996Z",fill:"#F0F0F0"}),(0,_.createElement)(S.Path,{d:"M151.608 26.0281H112.384L106.332 36.0116L151.608 26.0281Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M145.555 16.0446H118.435L112.383 26.0281L145.555 16.0446Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M139.469 6.00781H124.525L118.438 16.0446L139.469 6.00781Z",fill:"white"}),(0,_.createElement)(S.Path,{d:"M57.4297 42.9647H87.8994",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"}),(0,_.createElement)(S.Path,{d:"M61.8945 32.1914L83.4412 53.7381",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"}),(0,_.createElement)(S.Path,{d:"M72.668 27.7321V58.2018",stroke:"#DDDDDD",strokeWidth:"0.71",strokeMiterlimit:"10"})),(0,_.createElement)("defs",null,(0,_.createElement)("clipPath",{id:t},(0,_.createElement)(S.Rect,{width:"263.121",height:"167",fill:"white",transform:"translate(0.4375)"}))))}function Vd({message:e,actionText:t,isError:o,onActionClick:r}){return(0,_.createElement)("div",{className:"woocommerce-variations-table-error-or-empty-state"},o?(0,_.createElement)(Nd,null):(0,_.createElement)(Md,null),(0,_.createElement)("p",{className:"woocommerce-variations-table-error-or-empty-state__message"},o?(0,D.__)("We couldn’t load the variations","woocommerce"):null!=e?e:(0,D.__)("No variations yet","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-variations-table-error-or-empty-state__actions"},(0,_.createElement)(S.Button,{variant:"link",onClick:r},o?(0,D.__)("Try again","woocommerce"):null!=t?t:(0,D.__)("Generate from options","woocommerce"))))}function Td({initialValues:e,attribute:t,onFilter:o}){const[r,a]=(0,_.useState)(e),[c,l]=(0,_.useState)([]),[i,s]=(0,_.useState)(0),[u,m]=(0,_.useState)(!1),[d,p]=(0,_.useState)(""),[h,v]=(0,_.useState)(1),g=(0,P.useRef)(null),E=0===r.length;async function f(e,t="",o=1){try{m(!0);const{getProductAttributeTerms:r,getProductAttributeTermsTotalCount:a}=(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_ATTRIBUTE_TERMS_STORE_NAME),c={attribute_id:e,per_page:10,page:o,search:t},i=await r(c),u=await a(c);l(o>1?e=>[...e,...i]:i),s(u)}catch{}finally{m(!1)}}function b(e,o){return async function(){o(),e||await f(t.id)}}async function C(e){if(u||c.length>=i)return;const o=e.currentTarget,r=o.scrollHeight-o.clientHeight;if(o.scrollTop>=r){const e=h+1;await f(t.id,d,e),v(e)}}function y(e){return r.includes(e)}function A(e){return function(t){a((o=>t?[...o,e]:o.reduce((function(t,o){return o===e?t:[...t,o]}),[])))}}function x(e){"Enter"===e.code&&e.preventDefault()}(0,P.useEffect)((()=>a(e)),[e]);const k=(0,w.useDebounce)((function(e){p(e),l([]),v(1),f(t.id,e)}),300),B=(0,w.useInstanceId)(S.__experimentalInputControl,"search"),N=(0,w.useInstanceId)(S.CheckboxControl,"checkbox");return(0,_.createElement)(S.Dropdown,{className:"woocommerce-product-variations-filter",onClose:function(){p(""),v(1)},renderToggle:({isOpen:e,onToggle:o})=>(0,_.createElement)(S.Button,{"aria-expanded":e,icon:e?lr:ir,variant:"tertiary",onClick:b(e,o),className:"woocommerce-product-variations-filter__toggle"},(0,_.createElement)("span",null,(0,D.sprintf)((0,D.__)("Any %s","woocommerce"),t.name))),renderContent:({onClose:e})=>{return(0,_.createElement)("form",{className:"woocommerce-product-variations-filter__form",noValidate:!0,onSubmit:(n=e,function(e){e.preventDefault(),o(r),n()}),onReset:async function(e){var o;e.preventDefault(),E||(p(""),a([]),v(1),null===(o=g.current)||void 0===o||o.focus(),await f(t.id))}},t.options.length>10&&(0,_.createElement)("div",{className:"woocommerce-product-variations-filter__form-header"},(0,_.createElement)("label",{htmlFor:B,"aria-label":(0,D.__)("Search options","woocommerce")},(0,_.createElement)(S.__experimentalInputControl,{ref:g,id:B,type:"search",value:d,suffix:(0,_.createElement)(Ge,{icon:_m}),onChange:k,onKeyDown:x}))),(0,_.createElement)("div",{className:"woocommerce-product-variations-filter__form-body",onScroll:C},c.length>0?(0,_.createElement)("ul",{className:"woocommerce-product-variations-filter__form-list"},c.map((e=>(0,_.createElement)("li",{key:e.slug,className:"woocommerce-product-variations-filter__form-list-item"},(0,_.createElement)("label",{htmlFor:`${N}-${e.slug}`,className:"woocommerce-product-variations-filter__form-list-item-label"},(0,_.createElement)(S.CheckboxControl,{id:`${N}-${e.slug}`,checked:y(e.slug),onChange:A(e.slug)}),(0,_.createElement)("span",null,e.name)))))):!u&&(0,_.createElement)("div",{className:"woocommerce-product-variations-filter__form-list-empty"},(0,D.__)("No options were found for that search","woocommerce")),u&&(0,_.createElement)("div",{className:"woocommerce-product-variations-filter__loading"},(0,_.createElement)(S.Spinner,null))),(0,_.createElement)("div",{className:"woocommerce-product-variations-filter__form-footer"},(0,_.createElement)(S.Button,{type:"reset",variant:"secondary","aria-disabled":E},(0,D.__)("Reset","woocommerce")),(0,_.createElement)(S.Button,{type:"submit",variant:"primary"},(0,D.__)("Filter","woocommerce"))));var n}})}function Fd(){const[e]=(0,f.useEntityProp)("postType","product","id"),[t,o]=(0,_.useState)(!1),{isGeneratingVariations:r,generateError:a}=(0,n.useSelect)((t=>{const{isGeneratingVariations:o,generateProductVariationsError:r}=t(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{isGeneratingVariations:o({product_id:e}),generateError:r({product_id:e})}}),[e]),c=(0,_.useMemo)((()=>t||Boolean(r)),[t,r]);return{generateProductVariations:(0,_.useCallback)((async function(t,r){o(!0);const{status:a,variations:c}=await(0,n.resolveSelect)("core").getEditedEntityRecord("postType","product",e),l=t.some((e=>e.variation)),i=await async function(e){var t,o;try{const{attributes:r}=await(0,n.resolveSelect)("core").getEntityRecord("postType","product",e);if(!r.some((e=>e.variation)))return{};const a=await(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME).getProductVariations({product_id:e,per_page:1,has_price:!0});return a&&a.length>0&&a[0].regular_price?{regular_price:a[0].regular_price,stock_quantity:null!==(t=a[0].stock_quantity)&&void 0!==t?t:void 0,stock_status:a[0].stock_status,manage_stock:a[0].manage_stock,low_stock_amount:null!==(o=a[0].low_stock_amount)&&void 0!==o?o:void 0}:{}}catch{return{}}}(e);return await Promise.all(c.map((e=>(0,n.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product_variation",e])))),await(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME).invalidateResolutionForStore(),(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME).generateProductVariations({product_id:e},{type:l?"variable":"simple",attributes:t,default_attributes:r},{delete:!0,default_values:i}).then((async t=>(await(0,n.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product",e]),await(0,n.resolveSelect)("core").getEntityRecord("postType","product",e),await(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME).invalidateResolutionForStore(),t))).finally((()=>{if(o(!1),"auto-draft"===a&&(0,je.getPath)().endsWith("add-product")){const t=(0,je.getNewPath)({},`/product/${e}`);(0,je.navigateTo)({url:t})}}))}),[]),isGenerating:c,generateError:a}}function Dd(){return(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton woocommerce-product-variations__table-row","aria-hidden":"true"},(0,_.createElement)("div",{className:"woocommerce-sortable__handle"}),(0,_.createElement)("div",{className:"woocommerce-product-variations__selection"},(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__checkbox"})),(0,_.createElement)("div",{className:"woocommerce-product-variations__attributes"},Array(2).fill(0).map(((e,t)=>(0,_.createElement)("div",{key:t,className:"woocommerce-tag woocommerce-product-variations__attribute"},(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__attribute-option"}))))),(0,_.createElement)("div",{className:"woocommerce-product-variations__price"},(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__regular-price"})),(0,_.createElement)("div",{className:"woocommerce-product-variations__quantity"},(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__quantity"})),(0,_.createElement)("div",{className:"woocommerce-product-variations__actions"},(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__visibility-icon"}),(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__edit-link"}),(0,_.createElement)("div",{className:"woocommerce-table-row-skeleton__menu-toggle"})))}function Ld({width:e=24,height:t=24,className:o,...r}){return(0,_.createElement)("svg",{...r,width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:we()(o,"woocommerce-hidden-icon")},(0,_.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7226 6.2125C13.1641 6.0766 12.5883 6 11.9999 6C8.10055 6 4.75407 9.36447 3.31899 11.0546C2.8507 11.6061 2.8507 12.3939 3.31899 12.9454C4.17896 13.9582 5.72533 15.5723 7.66574 16.7033L8.41572 15.4043C8.13761 15.242 7.86389 15.0655 7.59553 14.8776C6.25019 13.9359 5.15775 12.7905 4.48406 12C5.15775 11.2095 6.25019 10.0641 7.59553 9.12235C8.96667 8.16257 10.4775 7.5 11.9999 7.5C12.3118 7.5 12.6231 7.5278 12.9329 7.58027L13.7226 6.2125ZM12.3504 8.58923C12.2352 8.57753 12.1182 8.57153 11.9999 8.57153C10.1063 8.57153 8.57132 10.1066 8.57132 12.0001C8.57132 12.7505 8.81237 13.4445 9.22126 14.0091L10.1233 12.4467C10.0893 12.3034 10.0713 12.1538 10.0713 12.0001C10.0713 11.1266 10.652 10.3888 11.4484 10.1515L12.3504 8.58923ZM12.8092 10.2491L13.5611 8.94679C14.6697 9.51479 15.4285 10.6688 15.4285 12.0001C15.4285 13.8937 13.8934 15.4287 11.9999 15.4287C11.3128 15.4287 10.6729 15.2266 10.1364 14.8785L10.8883 13.5763C11.2025 13.7983 11.5859 13.9287 11.9999 13.9287C13.065 13.9287 13.9285 13.0652 13.9285 12.0001C13.9285 11.224 13.4701 10.555 12.8092 10.2491ZM9.51376 15.957C10.3246 16.2986 11.1605 16.5 11.9999 16.5C13.5223 16.5 15.0331 15.8374 16.4043 14.8776C17.7496 13.9359 18.842 12.7905 19.5157 12C18.842 11.2095 17.7496 10.0641 16.4043 9.12235C15.6875 8.62066 14.9327 8.20018 14.1579 7.91308L14.917 6.59839C17.5164 7.64275 19.6204 9.80575 20.6808 11.0546C21.1491 11.6061 21.1491 12.3939 20.6808 12.9454C19.2457 14.6355 15.8992 18 11.9999 18C10.8611 18 9.76945 17.713 8.7588 17.2646L9.51376 15.957Z",fill:"currentColor"}),(0,_.createElement)("rect",{x:"16.0625",y:"4.61377",width:"1.22727",height:"16",transform:"rotate(30 16.0625 4.61377)",fill:"currentColor"}))}function Hd(e,t){return e.length>t?e.substring(0,t)+"…":e}async function Rd({message:e=(0,D.__)("Enter a value","woocommerce"),defaultValue:t,onOk:o,onCancel:r}){const n=window.prompt(e,t);null!==n?o(n):r&&r()}const zd="multiple-update",Id="single-update",Od="woocommerce-actions-menu-slot",$d="top-level",Gd=(e,t)=>e?`${Od}_${e}${t?`_${zd}`:`_${Id}`}`:Od,Ud=({children:e,order:t=20,group:o=$d,supportsMultipleSelection:r,onClick:n=(()=>{})})=>{const a=e=>()=>{const{selection:t,onChange:o,onClose:r}=e;n({selection:Array.isArray(t)?t:[t],onChange:o,onClose:r})},c=r=>(0,_.createElement)(S.Fill,{key:r,name:Gd(o,r===zd)},(o=>(0,A.createOrderedChildren)((0,_.createElement)(S.MenuItem,{onClick:a(o)},e),t,o))),l=r?[zd,Id].map(c):c(Id);return(0,_.createElement)(_.Fragment,null,l)};function jd({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map((({id:e})=>e));function a(o){t(e.map((({id:e,dimensions:t})=>({id:e,dimensions:{...t,...o}}))))}return(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_click",{source:W,variation_id:n}),t()},"aria-expanded":e,icon:ei,iconPosition:"right"},(0,D.__)("Shipping","woocommerce")),renderContent:()=>(0,_.createElement)("div",{className:"components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,window.wcAdminFeatures["product-virtual-downloadable"]&&(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_select",{source:W,action:"toggle_shipping",variation_id:n}),t(e.map((({id:e,virtual:t})=>({id:e,virtual:!t})))),(0,X.recordEvent)("product_variations_menu_shipping_update",{source:W,action:"toggle_shipping",variation_id:n}),o()}},(0,D.__)("Toggle shipping","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_select",{source:W,action:"dimensions_length_set",variation_id:n}),Rd({onOk(e){(0,X.recordEvent)("product_variations_menu_shipping_update",{source:W,action:"dimensions_length_set",variation_id:n}),a({length:e})}}),o()}},(0,D.__)("Set length","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_select",{source:W,action:"dimensions_width_set",variation_id:n}),Rd({onOk(e){(0,X.recordEvent)("product_variations_menu_shipping_update",{source:W,action:"dimensions_width_set",variation_id:n}),a({width:e})}}),o()}},(0,D.__)("Set width","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_select",{source:W,action:"dimensions_height_set",variation_id:n}),Rd({onOk(e){(0,X.recordEvent)("product_variations_menu_shipping_update",{source:W,action:"dimensions_height_set",variation_id:n}),a({height:e})}}),o()}},(0,D.__)("Set height","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_select",{source:W,action:"weight_set",variation_id:n}),Rd({onOk(o){(0,X.recordEvent)("product_variations_menu_shipping_update",{source:W,action:"weight_set",variation_id:n}),t(e.map((({id:e})=>({id:e,weight:o}))))}}),o()}},(0,D.__)("Set weight","woocommerce"))),(0,_.createElement)(Ud.Slot,{group:"shipping",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function qd({selection:e,onChange:t,onClose:o}){return(0,_.createElement)(S.MenuItem,{onClick:()=>{const r=e.map((({id:e})=>e));(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"stock_quantity_set",variation_id:r}),Rd({onOk(o){const n=Number(o);Number.isNaN(n)||((0,X.recordEvent)("product_variations_menu_inventory_update",{source:W,action:"stock_quantity_set",variation_id:r}),t(e.map((({id:e})=>({id:e,stock_quantity:n,manage_stock:!0})))))}}),o()}},(0,D.__)("Update stock","woocommerce"))}function Zd({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map((({id:e})=>e));return(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_click",{source:W,variation_id:n}),t()},"aria-expanded":e,icon:ei,iconPosition:"right"},(0,D.__)("Inventory","woocommerce")),renderContent:()=>(0,_.createElement)("div",{className:"components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(qd,{selection:e,onChange:t,onClose:o}),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"manage_stock_toggle",variation_id:n}),t(e.map((({id:e,manage_stock:t})=>({id:e,manage_stock:!t})))),o()}},(0,D.__)('Toggle "track quantity"',"woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"set_status_in_stock",variation_id:n}),t(e.map((({id:e})=>({id:e,stock_status:_d.instock,manage_stock:!1})))),o()}},(0,D.__)("Set status to In stock","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"set_status_out_of_stock",variation_id:n}),t(e.map((({id:e})=>({id:e,stock_status:_d.outofstock,manage_stock:!1})))),o()}},(0,D.__)("Set status to Out of stock","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"set_status_on_back_order",variation_id:n}),t(e.map((({id:e})=>({id:e,stock_status:_d.onbackorder,manage_stock:!1})))),o()}},(0,D.__)("Set status to On back order","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_inventory_select",{source:W,action:"low_stock_amount_set",variation_id:n}),Rd({onOk(o){(0,X.recordEvent)("product_variations_menu_inventory_update",{source:W,action:"low_stock_amount_set",variation_id:n});const r=Number(o);if(Number.isNaN(r))return null;t(e.map((({id:e})=>({id:e,low_stock_amount:r,manage_stock:!0}))))}}),o()}},(0,D.__)("Edit low stock threshold","woocommerce"))),(0,_.createElement)(Ud.Slot,{group:"inventory",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function Wd({selection:e,onChange:t,onClose:o}){return(0,_.createElement)(S.MenuItem,{onClick:()=>{const r=e.map((({id:e})=>e));(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"list_price_set",variation_id:r}),Rd({onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"list_price_set",variation_id:r}),t(e.map((({id:e})=>({id:e,regular_price:o}))))}}),o()}},(0,D.__)("Set list price","woocommerce"))}function Jd(e,t,o=1){if(function(e){return e.endsWith("%")}(t)){if(Number.isNaN(Number(e)))return 0;const r=function(e){const t=e.substring(0,e.length-1);if(!Number.isNaN(Number(t)))return Number(t)}(t);return void 0===r?Number(e):Number(e)+Number(e)*(r/100)*o}if(Number.isNaN(Number(e))){if(Number.isNaN(Number(t)))return;return Number(t)}return Number(e)+Number(t)*o}function Yd({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map((({id:e})=>e));return(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_click",{source:W,variation_id:n}),t()},"aria-expanded":e,icon:ei,iconPosition:"right"},(0,D.__)("Pricing","woocommerce")),renderContent:()=>(0,_.createElement)("div",{className:"components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,{label:(0,D.__)("List price","woocommerce")},(0,_.createElement)(Wd,{selection:e,onChange:t,onClose:o}),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"list_price_increase",variation_id:n}),Rd({message:(0,D.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"list_price_increase",variation_id:n}),t(e.map((({id:e,regular_price:t})=>{var r;return{id:e,regular_price:null===(r=Jd(t,o))||void 0===r?void 0:r.toFixed(2)}})))}}),o()}},(0,D.__)("Increase list price","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"list_price_decrease",variation_id:n}),Rd({message:(0,D.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"list_price_increase",variation_id:n}),t(e.map((({id:e,regular_price:t})=>{var r;return{id:e,regular_price:null===(r=Jd(t,o,-1))||void 0===r?void 0:r.toFixed(2)}})))}}),o()}},(0,D.__)("Decrease list price","woocommerce"))),(0,_.createElement)(S.MenuGroup,{label:(0,D.__)("Sale price","woocommerce")},(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"sale_price_set",variation_id:n}),Rd({onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"sale_price_set",variation_id:n}),t(e.map((({id:e})=>({id:e,sale_price:o}))))}}),o()}},(0,D.__)("Set sale price","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"sale_price_increase",variation_id:n}),Rd({message:(0,D.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"sale_price_increase",variation_id:n}),t(e.map((({id:e,sale_price:t})=>{var r;return{id:e,sale_price:null===(r=Jd(t,o))||void 0===r?void 0:r.toFixed(2)}})))}}),o()}},(0,D.__)("Increase sale price","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"sale_price_decrease",variation_id:n}),Rd({message:(0,D.__)("Enter a value (fixed or %)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"sale_price_decrease",variation_id:n}),t(e.map((({id:e,sale_price:t})=>{var r;return{id:e,sale_price:null===(r=Jd(t,o,-1))||void 0===r?void 0:r.toFixed(2)}})))}}),o()}},(0,D.__)("Decrease sale price","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_pricing_select",{source:W,action:"sale_price_schedule",variation_id:n}),Rd({message:(0,D.__)("Sale start date (YYYY-MM-DD format or leave blank)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"sale_price_schedule",variation_id:n}),t(e.map((({id:e})=>({id:e,date_on_sale_from_gmt:o}))))}}),Rd({message:(0,D.__)("Sale end date (YYYY-MM-DD format or leave blank)","woocommerce"),onOk(o){(0,X.recordEvent)("product_variations_menu_pricing_update",{source:W,action:"sale_price_schedule",variation_id:n}),t(e.map((({id:e})=>({id:e,date_on_sale_to_gmt:o}))))}}),o()}},(0,D.__)("Schedule sale","woocommerce"))),(0,_.createElement)(Ud.Slot,{group:"pricing",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function Xd({selection:e,onChange:t,onClose:o}){return(0,_.createElement)(S.MenuItem,{onClick:function(){const r=e.map((({id:e})=>e));(0,X.recordEvent)("product_variations_menu_toggle_visibility_select",{source:W,action:"status_set",variation_id:r}),t(e.map((({id:e,status:t})=>{return{id:e,status:(o=t,"private"===o?"publish":"private")};var o}))),(0,X.recordEvent)("product_variations_toggle_visibility_update",{source:W,action:"status_set",variation_id:r}),o()}},(0,D.__)("Toggle visibility","woocommerce"))}Ud.Slot=({fillProps:e,group:t=$d,onChange:o,onClose:r,selection:n,supportsMultipleSelection:a})=>(0,_.createElement)(S.Slot,{name:Gd(t,a),fillProps:{...e,onChange:o,onClose:r,selection:n}},(e=>A.sortFillsByOrder&&(null==e?void 0:e.length)?(0,_.createElement)(S.MenuGroup,null,(0,A.sortFillsByOrder)(e)):null));const Kd="downloads_menu_item__upload_files_modal",Qd="downloads_menu_item__upload_files_modal_wrapper";function ep(e){return{id:`${e.id}`,name:e.name,file:e.url}}function tp({selection:e,onChange:t,onClose:o,supportsMultipleSelection:r=!1}){const n=e.map((({id:e})=>e)),a=e[0].downloads.map((({id:e})=>Number.parseInt(e,10))),[c,l]=(0,_.useState)(!1);function i(r){const a={downloadable:!0,downloads:Array.isArray(r)?r.map(ep):ep(r)};t(e.map((({id:e})=>({...a,id:e})))),(0,X.recordEvent)("product_variations_menu_downloads_update",{source:W,action:"downloads_set",variation_id:n}),o()}function s(r,a){return function(){(0,X.recordEvent)("product_variations_menu_downloads_select",{source:W,action:`${r}_set`,variation_id:n}),Rd({message:a,onOk(o){t(e.map((({id:e})=>({id:e,downloadable:!0,[r]:o})))),(0,X.recordEvent)("product_variations_menu_downloads_update",{source:W,action:`${r}_set`,variation_id:n})}}),l(!1),o()}}return(0,_.useEffect)((function(){const e=document.querySelector(`.${Kd}`),t=null==e?void 0:e.closest('[role="dialog"]'),o=null==t?void 0:t.parentElement;return null==o||o.classList.add(Qd),()=>{null==o||o.classList.remove(Qd)}}),[c]),(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"right-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,_.createElement)(S.MenuItem,{onClick:()=>{(0,X.recordEvent)("product_variations_menu_shipping_click",{source:W,variation_id:n}),t()},"aria-expanded":e,icon:ei,iconPosition:"right"},(0,D.__)("Downloads","woocommerce")),renderContent:()=>(0,_.createElement)("div",{className:"components-dropdown-menu__menu"},(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(ht.MediaUpload,{modalClass:Kd,multiple:"add",value:a,onSelect:i,render:({open:e})=>{return(0,_.createElement)(S.MenuItem,{onClick:(t=e,function(){(0,X.recordEvent)("product_variations_menu_downloads_select",{source:W,action:"downloads_set",variation_id:n}),t(),l(!0)})},(0,D.__)("Upload files","woocommerce"));var t}}),(0,_.createElement)(S.MenuItem,{onClick:s("download_limit",(0,D.__)("Leave blank for unlimited re-downloads","woocommerce"))},(0,D.__)("Set download limit","woocommerce")),(0,_.createElement)(S.MenuItem,{onClick:s("download_expiry",(0,D.__)("Enter the number of days before a download link expires, or leave blank","woocommerce"))},(0,D.__)("Set download expiry","woocommerce"))),(0,_.createElement)(Ud.Slot,{group:"downloads",onChange:t,onClose:o,selection:e,supportsMultipleSelection:r}))})}function op({selection:e,onChange:t,onDelete:o,onClose:r,supportsMultipleSelection:n=!1}){const a=n||1!==e.length?null:e[0];return(0,_.createElement)("div",{className:we()({"components-dropdown-menu__menu":n})},(0,_.createElement)(S.MenuGroup,{label:n?void 0:(0,D.sprintf)((0,D.__)("Variation Id: %s","woocommerce"),null==a?void 0:a.id)},n?(0,_.createElement)(_.Fragment,null,(0,_.createElement)(qd,{selection:e,onChange:t,onClose:r}),(0,_.createElement)(Wd,{selection:e,onChange:t,onClose:r})):(0,_.createElement)(S.MenuItem,{href:null==a?void 0:a.permalink,target:"_blank",rel:"noreferrer",onClick:()=>{(0,X.recordEvent)("product_variations_preview",{source:W,variation_id:null==a?void 0:a.id})}},(0,D.__)("Preview","woocommerce")),(0,_.createElement)(Xd,{selection:e,onChange:t,onClose:r})),(0,_.createElement)(Ud.Slot,{group:"top-level",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}),(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(Yd,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),(0,_.createElement)(Zd,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),(0,_.createElement)(jd,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n}),window.wcAdminFeatures["product-virtual-downloadable"]&&(0,_.createElement)(tp,{selection:e,onChange:t,onClose:r,supportsMultipleSelection:n})),(0,_.createElement)(Ud.Slot,{group:"secondary",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}),(0,_.createElement)(S.MenuGroup,null,(0,_.createElement)(S.MenuItem,{isDestructive:!0,label:n?void 0:(0,D.__)("Delete variation","woocommerce"),variant:"link",onClick:()=>{o(e),r()},className:"woocommerce-product-variations__actions--delete"},(0,D.__)("Delete","woocommerce"))),(0,_.createElement)(Ud.Slot,{group:"tertiary",onChange:t,onClose:r,selection:e,supportsMultipleSelection:n}))}function rp({selection:e,onChange:t,onDelete:o}){return e&&1===e.length?(0,_.createElement)(S.DropdownMenu,{popoverProps:{placement:"left-start"},icon:Ce,label:(0,D.__)("Actions","woocommerce"),toggleProps:{onClick(){(0,X.recordEvent)("product_variations_menu_view",{source:W,variation_id:e[0].id})}}},(({onClose:r})=>(0,_.createElement)(op,{selection:e,onClose:r,onChange:t,onDelete:o,supportsMultipleSelection:!1}))):null}const np=(0,D.__)("Not visible to customers","woocommerce");function ap(e){return(0,je.getNewPath)({},`/product/${e.parent_id}/variation/${e.id}`,{})}function cp({variation:e,variableAttributes:t,isUpdating:o,isSelected:r,isSelectionDisabled:n,hideActionButtons:a,onChange:c,onDelete:l,onEdit:i,onSelect:s}){const{formatAmount:u}=(0,_.useContext)(ee.CurrencyContext),{matchesAny:m,tags:d}=(0,_.useMemo)((function(){let o=!1;const r=t.map((t=>{const r=e.attributes.find((e=>e.id===t.id));return r?{id:r.id,label:r.option}:(o=!0,{id:t.id,label:(0,D.sprintf)((0,D.__)("Any %s","woocommerce"),t.name)})}));return{matchesAny:o,tags:r}}),[t,e]);return(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{className:"woocommerce-product-variations__selection",role:"cell"},m&&(0,_.createElement)(A.__experimentalTooltip,{text:(0,D.__)("'Any' variations are no longer fully supported. Use regular variations instead","woocommerce"),helperText:(0,D.__)("View helper text","woocommerce"),position:"middle right"},(0,_.createElement)(Ge,{icon:Gs,size:24})),o?(0,_.createElement)(S.Spinner,null):(0,_.createElement)(S.CheckboxControl,{value:e.id,checked:r,onChange:s,disabled:n,"aria-label":r?(0,D.__)("Unselect variation","woocommerce"):(0,D.__)("Select variation","woocommerce")})),(0,_.createElement)("div",{className:"woocommerce-product-variations__attributes",role:"cell"},d.map((e=>{const t=(0,_.createElement)(A.Tag,{id:e.id,className:"woocommerce-product-variations__attribute",key:e.id,label:Hd(e.label,32),screenReaderLabel:e.label});return d.length<=32?t:(0,_.createElement)(A.__experimentalTooltip,{key:e.id,text:e.label,position:"top center"},(0,_.createElement)("span",null,t))}))),(0,_.createElement)("div",{className:we()("woocommerce-product-variations__price",{"woocommerce-product-variations__price--fade":"private"===e.status}),role:"cell"},e.on_sale&&(0,_.createElement)("span",{className:"woocommerce-product-variations__sale-price"},u(e.sale_price)),(0,_.createElement)("span",{className:we()("woocommerce-product-variations__regular-price",{"woocommerce-product-variations__regular-price--on-sale":e.on_sale})},u(e.regular_price))),(0,_.createElement)("div",{className:we()("woocommerce-product-variations__quantity",{"woocommerce-product-variations__quantity--fade":"private"===e.status}),role:"cell"},e.regular_price&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)("span",{className:we()("woocommerce-product-variations__status-dot",Ed(e))},"●"),gd(e))),(0,_.createElement)("div",{className:"woocommerce-product-variations__actions",role:"cell"},("private"===e.status||!e.regular_price)&&(0,_.createElement)(A.__experimentalTooltip,{className:"woocommerce-attribute-list-item__actions-tooltip",position:"top center",text:np},(0,_.createElement)("div",{className:"woocommerce-attribute-list-item__actions-icon-wrapper"},(0,_.createElement)(Ld,{className:"woocommerce-attribute-list-item__actions-icon-wrapper-icon"}))),a&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Button,{href:ap(e),onClick:i},(0,D.__)("Edit","woocommerce")),(0,_.createElement)(rp,{selection:[e],onChange:function(e){c(e[0])},onDelete:function(e){l(e[0])}}))))}function lp({selection:e,disabled:t,onChange:o,onDelete:r}){return e?(0,_.createElement)(S.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:o})=>(0,_.createElement)(S.Button,{disabled:t,"aria-expanded":e,icon:e?lr:ir,variant:"secondary",onClick:o,className:"variations-actions-menu__toogle"},(0,_.createElement)("span",null,(0,D.__)("Quick update","woocommerce"))),renderContent:({onClose:t})=>(0,_.createElement)(op,{selection:e,onClose:t,onChange:o,onDelete:r,supportsMultipleSelection:!0})}):null}function ip(e,t){if("id"in e){const e="update"===t?"updated":"deleted";return(0,D.sprintf)((0,D.__)("1 variation %s.","woocommerce"),e)}const{update:o=[],delete:r=[]}=e,n=o.length,a=r.length;return a>0?(0,D.sprintf)((0,D.__)("%s variations deleted.","woocommerce"),a):n>0?(0,D.sprintf)((0,D.__)("%s variations updated.","woocommerce"),n):""}const sp=(0,_.forwardRef)((function({noticeText:e,noticeActions:t=[],noticeStatus:o="error",onNoticeDismiss:r=(()=>{}),onVariationTableChange:a=(()=>{})},c){const l=(0,f.useEntityId)("postType","product"),[i]=(0,f.useEntityProp)("postType","product","attributes"),s=(0,_.useMemo)((()=>i.filter((e=>e.variation))),[i]),[u]=(0,f.useEntityProp)("postType","product","variations"),{createSuccessNotice:m,createErrorNotice:d}=(0,n.useDispatch)("core/notices"),{isLoading:p,variations:h,totalCount:v,onPageChange:w,onPerPageChange:g,onFilter:E,getFilters:b,hasFilters:C,clearFilters:y,selected:x,isSelectingAll:k,selectedCount:P,areAllSelected:B,areSomeSelected:N,isSelected:M,onSelect:V,onSelectPage:T,onSelectAll:F,onClearSelection:L,isUpdating:R,onUpdate:z,onDelete:I,onBatchUpdate:O,onBatchDelete:$,isGenerating:G,variationsError:U,onGenerate:j}=function({productId:e}){const[t,o]=(0,_.useState)([]),[r,a]=(0,_.useState)(0),[c,l]=(0,_.useState)(!1),[i,s]=(0,_.useState)(),[u,m]=(0,_.useState)([]),d=(0,_.useRef)(5);async function p(e,t=!1){const r={page:1,per_page:d.current,order:"asc",orderby:"menu_order",attributes:[],...e};try{const{invalidateResolution:e}=(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);t&&(await e("getProductVariations",[r]),await e("getProductVariationsTotalCount",[r]));const{getProductVariations:c,getProductVariationsTotalCount:i}=(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);l(!0),s(void 0);const u=await c(r),m=await i(r);o(u),a(m),l(!1)}catch(e){s(e),l(!1)}}const[h,v]=(0,_.useState)(0),[w,g]=(0,_.useState)(!1),E=(0,_.useRef)({}),f=(0,_.useMemo)((function(){return h>0?Object.values(E.current):[]}),[h]),b=(0,_.useCallback)((function(e){return h>0&&e.id in E.current}),[h]),C=(0,_.useMemo)((()=>h>0&&t.every(b)),[t,h,b]),y=(0,_.useMemo)((()=>h>0&&t.some(b)),[t,h,b]);function A(e){return function(t){t?(E.current[e.id]=e,v((e=>e+1))):(delete E.current[e.id],v((e=>e-1)))}}function x(){E.current={},v(0)}const[S,k]=(0,_.useState)({}),{isGenerating:P,generateProductVariations:B,generateError:N}=Fd(),M=(0,_.useRef)(!1);return(0,_.useEffect)((()=>{P&&(m([]),x());const t=!1===M.current&&!1===P,o=!0===M.current&&!1===P;(t||o)&&p({product_id:e},!0),M.current=Boolean(P)}),[e,P]),{isLoading:c,variations:t,totalCount:r,onPageChange:function(t){p({product_id:e,attributes:u,page:t})},onPerPageChange:function(t){d.current=t,p({product_id:e,attributes:u})},onFilter:function(t){return function(o){let r=!1;const n=u.reduce(((e,n)=>n.attribute===t.slug?(r=!0,0===o.length?e:[...e,{...n,terms:o}]):[...e,n]),[]);r||n.push({attribute:t.slug,terms:o}),x(),p({product_id:e,attributes:n}),m(n)}},getFilters:function(e){var t,o;return null!==(o=null===(t=u.find((t=>t.attribute===e.slug)))||void 0===t?void 0:t.terms)&&void 0!==o?o:[]},hasFilters:function(){return Boolean(u.length)},clearFilters:async function(){return m([]),p({product_id:e})},selected:f,isSelectingAll:w,selectedCount:h,areAllSelected:C,areSomeSelected:y,isSelected:b,onSelect:A,onSelectPage:function(e){e?t.forEach((e=>{E.current[e.id]=e})):t.forEach((e=>{delete E.current[e.id]})),v(Object.keys(E.current).length)},onSelectAll:async function(){g(!0);const{getProductVariations:t}=(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);let o=1,a=0;for(;a<r;){const r=await t({product_id:e,page:o++,per_page:50,order:"asc",orderby:"menu_order",attributes:u});a+=r.length,r.forEach((e=>{E.current[e.id]=e}))}return v(a),g(!1),a},onClearSelection:x,isUpdating:S,onUpdate:async function({id:t,...o}){if(S[t])return;const{updateProductVariation:r}=(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return r({product_id:e,id:t},o).then((async o=>(await(0,n.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product_variation",t]),await p({product_id:e,attributes:u}),o)))},onDelete:async function(t){if(S[t])return;const{deleteProductVariation:o,invalidateResolutionForStore:r}=(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return o({product_id:e,id:t}).then((async o=>(A(o)(!1),await(0,n.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product",e]),await(0,n.dispatch)("core").invalidateResolution("getEntityRecord",["postType","product_variation",t]),await r(),await p({product_id:e,attributes:u}),o)))},onBatchUpdate:async function(t){var o;const{invalidateResolution:r}=(0,n.dispatch)("core"),{batchUpdateProductVariations:a,invalidateResolutionForStore:c}=(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);E.current={},v(0);let l=1;const i=[];for(;50*(l-1)<t.length;){const n=50*(l-1),c=n+50,s=t.slice(n,c);k((e=>s.reduce(((e,t)=>({...e,[t.id]:!0})),0===n?{}:e)));const u=await a({product_id:e},{update:s});l++;const m=null!==(o=null==u?void 0:u.update)&&void 0!==o?o:[];i.push(...m);for(const e of m)await r("getEntityRecord",["postType","product_variation",e.id]),E.current[e.id]=e,v((e=>e+1))}return k({}),await c(),await p({product_id:e,attributes:u}),{update:i}},onBatchDelete:async function(t){var o,r;const{invalidateResolution:a}=(0,n.dispatch)("core"),{batchUpdateProductVariations:c,invalidateResolutionForStore:l}=(0,n.dispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);E.current={},v(0);let i=1;const s=[];for(;50*(i-1)<t.length;){const n=50*(i-1),l=n+50,u=t.slice(n,l);k((e=>u.reduce(((e,t)=>({...e,[t.id]:!0})),0===n?{}:e)));const m=await c({product_id:e},{delete:u.map((({id:e})=>e))});i++;const d=null!==(o=null==m?void 0:m.delete)&&void 0!==o?o:[];s.push(...null!==(r=null==m?void 0:m.delete)&&void 0!==r?r:[]);for(const e of d)await a("getEntityRecord",["postType","product_variation",e.id]),delete E.current[e.id],v((e=>e-1))}return k({}),await a("getEntityRecord",["postType","product",e]),await l(),await p({product_id:e,attributes:u}),{delete:s}},isGenerating:P,onGenerate:B,variationsError:null!=N?N:i}}({productId:l}),q=void 0!==U;if(!p&&!G&&(0===u.length||q))return(0,_.createElement)(Vd,{onActionClick:function(){j(i)},isError:q});function Z(e){I(e.id).then((t=>{(0,X.recordEvent)("product_variations_delete",{source:W,product_id:l,variation_id:e.id}),m(ip(t,"delete")),a("delete")})).catch((()=>{d((0,D.__)("Failed to delete variation.","woocommerce"))}))}function J(e){z(e).then((t=>{(0,X.recordEvent)("product_variations_change",{source:W,product_id:l,variation_id:e.id}),m(ip(t,"update")),a("update",[e])})).catch((()=>{d((0,D.__)("Failed to save variation.","woocommerce"))}))}function Y(e){const t=Date.now();O(e).then((o=>{(0,X.recordEvent)("product_variations_update_all",{source:W,product_id:l,variations_count:e.length,request_time:Date.now()-t}),m(ip(o)),a("update",e)})).catch((()=>{d((0,D.__)("Failed to update variations.","woocommerce"))}))}function K(e){const t=Date.now();$(e).then((o=>{(0,X.recordEvent)("product_variations_delete_all",{source:W,product_id:l,variations_count:e.length,request_time:Date.now()-t}),m(ip(o)),a("delete")})).catch((()=>{d((0,D.__)("Failed to delete variations.","woocommerce"))}))}function Q(e){return function(){(0,X.recordEvent)("product_variations_edit",{source:W,product_id:l,variation_id:e.id})}}return(0,_.createElement)("div",{className:"woocommerce-product-variations",ref:c},e&&(0,_.createElement)(S.Notice,{status:o,className:"woocommerce-product-variations__notice",onRemove:r,actions:t.map((e=>({...e,onClick:()=>{null==e||e.onClick(Y,K)}})))},e),(0,_.createElement)("div",{className:"woocommerce-product-variations__table",role:"table"},(C()||v>0)&&(0,_.createElement)("div",{className:"woocommerce-product-variations__table-header",role:"rowgroup"},(0,_.createElement)("div",{className:"woocommerce-product-variations__table-row",role:"rowheader"},(0,_.createElement)("div",{className:"woocommerce-product-variations__filters"},N?(0,_.createElement)(_.Fragment,null,(0,_.createElement)("span",null,(0,D.sprintf)((0,D.__)("%d selected","woocommerce"),P)),(0,_.createElement)(S.Button,{variant:"tertiary",onClick:()=>T(!0)},(0,D.sprintf)((0,D.__)("Select page (%d)","woocommerce"),h.length)),(0,_.createElement)(S.Button,{variant:"tertiary",isBusy:k,onClick:async function(){const e=Date.now();F().then((t=>{(0,X.recordEvent)("product_variations_select_all",{source:W,product_id:l,variations_count:t,request_time:Date.now()-e})}))}},(0,D.sprintf)((0,D.__)("Select all (%d)","woocommerce"),v)),(0,_.createElement)(S.Button,{variant:"tertiary",onClick:L},(0,D.__)("Clear selection","woocommerce"))):s.map((e=>(0,_.createElement)(Td,{key:e.id,initialValues:b(e),attribute:e,onFilter:E(e)})))),(0,_.createElement)("div",{className:"woocommerce-product-variations__actions"},(0,_.createElement)(lp,{selection:x,disabled:!N&&!k,onChange:Y,onDelete:K}))),v>0&&(0,_.createElement)("div",{className:"woocommerce-product-variations__table-row woocommerce-product-variations__table-rowheader",role:"rowheader"},(0,_.createElement)("div",{className:"woocommerce-product-variations__table-column woocommerce-product-variations__selection",role:"columnheader"},(0,_.createElement)(S.CheckboxControl,{value:"all",checked:B,indeterminate:!B&&N,onChange:T,"aria-label":(0,D.__)("Select all","woocommerce")})),(0,_.createElement)("div",{className:"woocommerce-product-variations__table-column",role:"columnheader"},(0,D.__)("Variation","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-product-variations__table-column woocommerce-product-variations__price",role:"columnheader"},(0,D.__)("Price","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-product-variations__table-column",role:"columnheader"},(0,D.__)("Stock","woocommerce")))),p||G?(0,_.createElement)("div",{className:"woocommerce-product-variations__table-body",role:"presentation","aria-label":G?(0,D.__)("Generating variations…","woocommerce"):(0,D.__)("Loading variations…","woocommerce")},Array.from({length:h.length||5}).map(((e,t)=>(0,_.createElement)(Dd,{key:t})))):v>0?(0,_.createElement)(A.Sortable,{className:"woocommerce-product-variations__table-body",role:"rowgroup"},h.map((e=>(0,_.createElement)(A.ListItem,{key:`${e.id}`,className:"woocommerce-product-variations__table-row",role:"row"},(0,_.createElement)(cp,{variation:e,variableAttributes:s,isUpdating:R[e.id],isSelected:M(e),isSelectionDisabled:k,hideActionButtons:!N,onChange:J,onDelete:Z,onEdit:Q(e),onSelect:V(e)}))))):(0,_.createElement)(Vd,{isError:!1,message:(0,D.__)("No variations were found","woocommerce"),actionText:(0,D.__)("Clear filters","woocommerce"),onActionClick:y}),v>5&&(0,_.createElement)("div",{className:"woocommerce-product-variations__table-footer",role:"row"},(0,_.createElement)(Bd,{totalCount:v,onPageChange:w,onPerPageChange:g}))))})),up=()=>{const[e,t]=(0,_.useState)(!1),o=(0,f.useEntityId)("postType","product"),r=(0,_.useRef)(),a=(0,_.useMemo)((()=>({product_id:o,page:1,per_page:5,order:"asc",orderby:"menu_order"})),[o]),{totalCount:c}=(0,n.useSelect)((e=>{const{getProductVariationsTotalCount:t}=e(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{totalCount:t(a)}}),[o]),{updateUserPreferences:l,variable_product_block_tour_shown:i}=(0,H.useUserPreferences)(),s={placement:"top",steps:[{referenceElements:{desktop:".wp-block-woocommerce-product-variation-items-field"},focusElement:{desktop:".wp-block-woocommerce-product-variation-items-field"},meta:{name:"product-variations-2",heading:(0,D.__)("⚡️ This product now has variations","woocommerce"),descriptions:{desktop:(0,D.__)("From now on, you’ll manage pricing, shipping, and inventory for each variation individually—just like any other product in your store.","woocommerce")},primaryButton:{text:(0,D.__)("Got it","woocommerce")}}}],options:{classNames:["variation-items-product-tour"],effects:{arrowIndicator:!0,spotlight:{interactivity:{enabled:!0}}},callbacks:{onStepViewOnce:()=>{(0,X.recordEvent)("variable_product_block_tour_shown",{variable_count:c})}},popperModifiers:[{name:"offset",options:{offset:[0,32]}}]},closeHandler:()=>{l({variable_product_block_tour_shown:"yes"}),t(!1),(0,X.recordEvent)("variable_product_block_tour_dismissed")}};(0,_.useEffect)((()=>{const o=r.current!==c&&c>0&&0===r.current;r.current=c,o&&!e&&t(!0)}),[c]);const{hasShownProductEditorTour:u}=(0,n.useSelect)((e=>{const{getOption:t}=e(H.OPTIONS_STORE_NAME);return{hasShownProductEditorTour:"yes"===t("woocommerce_block_product_tour_shown")}}));return"yes"!==i&&e&&u?(0,_.createElement)(A.TourKit,{config:s}):null};function mp(e){return(0,_.createElement)("div",{...e,role:"none",className:"wp-block-woocommerce-product-variation-items-field__empty-state"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-row"},(0,_.createElement)("div",null,(0,D.__)("Variation","woocommerce")),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-name"})),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-actions"}))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-row"},(0,_.createElement)("div",null,(0,D.__)("Colors","woocommerce")),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-name"})),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-actions"}))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-row"},(0,_.createElement)("div",null,(0,D.__)("Sizes","woocommerce")),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-name"})),(0,_.createElement)("div",null,(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variation-items-field__empty-state-actions"}))))}const{name:dp,...pp}=Pd,hp={example:{},edit:function({attributes:e,context:t}){const o=(0,_.useRef)(!1),{invalidateResolution:r}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),a=(0,f.useEntityId)("postType","product"),c=(0,E.useWooBlockProps)(e),[l]=(0,f.useEntityProp)("postType","product","status"),[i]=wt("attributes"),s=(0,_.useMemo)((function(){return null==i?void 0:i.some((e=>e.variation))}),[i]),u=(0,_.useMemo)((()=>({product_id:a,order:"asc",orderby:"menu_order",has_price:!1})),[a]),{totalCountWithoutPrice:m}=(0,n.useSelect)((e=>{const{getProductVariationsTotalCount:t}=e(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{totalCountWithoutPrice:t(u)}}),[u]),{updateUserPreferences:d,variable_items_without_price_notice_dismissed:p}=(0,H.useUserPreferences)(),{ref:h}=tn("variations",(async function(e,t){if(m>0&&!o.current&&"publish"!==l&&"publish"===(null==t?void 0:t.status))return"yes"!==p&&d({variable_items_without_price_notice_dismissed:{...p||{},[a]:"no"}}),(0,D.__)("Set variation prices before adding this product.","woocommerce")}),[m]),v=!p||"yes"!==p[a],w=m>0&&v?(0,D.sprintf)((0,D.__)("%d variations do not have prices. Variations that do not have prices will not be visible to customers.","woocommerce"),m):"";return s?(0,_.createElement)("div",{...c},(0,_.createElement)(sp,{ref:h,noticeText:w,onNoticeDismiss:()=>{o.current=!0,d({variable_items_without_price_notice_dismissed:{...p||{},[a]:"yes"}})},noticeActions:[{label:(0,D.__)("Set prices","woocommerce"),onClick:function(e){(0,X.recordEvent)("product_variations_set_prices_select",{source:W});const t=(0,n.resolveSelect)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME).getProductVariations({product_id:a,order:"asc",orderby:"menu_order",has_price:!1,_fields:["id"],per_page:m});Rd({onOk(o){(0,X.recordEvent)("product_variations_set_prices_update",{source:W}),t.then((t=>{e(t.map((({id:e})=>({id:e,regular_price:o}))))}))}})},className:"is-destructive"}],onVariationTableChange:(e,t)=>{("delete"===e||"update"===e&&t&&t.find((e=>"regular_price"in e||"sale_price"in e)))&&r("getProductVariationsTotalCount",[u])}}),t.isInSelectedTab&&(0,_.createElement)(up,null)):(0,_.createElement)(mp,null)}};function _p(){return C({name:dp,metadata:pp,settings:hp})}const vp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-variations-options-field","title":"Product variations options","category":"woocommerce","description":"The product variations options.","keywords":["products","variations"],"textdomain":"default","attributes":{"description":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');function gp(e){const t=(0,w.useInstanceId)(gp,"clip-path");return(0,_.createElement)("svg",{...e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:!1},(0,_.createElement)("g",{clipPath:`url(#${t})`},(0,_.createElement)("path",{d:"M18.7261 9.37008H26.8168V5.47626H28.4106C29.4938 5.47626 29.9499 4.92889 29.9499 3.91198C29.9499 2.89508 29.4938 2.34771 28.4106 2.34771C27.8689 2.34771 25.6325 2.32955 25.6325 2.32955V0L28.9263 0.0181591C31.2664 0.0181591 32.6244 1.59022 32.6244 3.91198C32.6244 6.23375 31.339 7.72539 29.1206 7.811V9.37008H37.2761C37.2761 9.37008 46.6289 13.7438 46.6289 14.0136H9.31112C9.31112 13.7438 18.7287 9.37008 18.7287 9.37008H18.7261Z",fill:"#F0F0F0"}),(0,_.createElement)("path",{d:"M0 21.0152C0 21.0152 9.19987 12.1613 10.6356 11.0484C11.8717 10.0912 13.3826 9.34668 16.3213 9.34668H18.7263C19.0943 14.2315 23.023 18.076 28.0013 18.076C32.9796 18.076 36.9083 14.2315 37.2763 9.34668H39.6812C42.62 9.34668 44.1309 10.0886 45.367 11.0484C46.8001 12.1613 56 21.0152 56 21.0152L52.8202 30.3541H44.3822L44.39 56.0025H11.6074L11.6152 30.3541H3.17719L-0.00259399 21.0152H0Z",fill:"currentColor"})),(0,_.createElement)("defs",null,(0,_.createElement)("clipPath",{id:t},(0,_.createElement)("rect",{width:"56",height:"56",fill:"white",transform:"matrix(-1 0 0 1 56 0)"}))))}const{name:Ep,...fp}=vp,bp={example:{},edit:function({attributes:e,context:t}){const o=(0,E.useWooBlockProps)(e),{generateProductVariations:r}=Fd(),{updateUserPreferences:n,local_attributes_notice_dismissed_ids:a=[]}=(0,H.useUserPreferences)(),[c,l]=(0,f.useEntityProp)("postType","product","attributes"),[i,s]=(0,f.useEntityProp)("postType","product","default_attributes"),{postType:u}=t,m=(0,f.useEntityId)("postType",u),{attributes:d,handleChange:p}=Uc({allAttributes:c,isVariationAttributes:!0,productId:(0,f.useEntityId)("postType","product"),onChange(e,t){l(e),s(t),r(e,t)}}),h=d.filter((e=>0===e.id)).map((e=>e.name));let v="";return h.length>0&&!(null==a?void 0:a.includes(m))&&(v=(0,_.createInterpolateElement)((0,D.__)("Buyers can’t search or filter by <attributeNames /> to find the variations. Consider adding them again as <globalAttributeLink>global attributes</globalAttributeLink> to make them easier to discover.","woocommerce"),{attributeNames:(0,_.createElement)("span",null,2===h.length?h.join((0,D.__)(" and ","woocommerce")):h.join(", ")),globalAttributeLink:(0,_.createElement)(A.Link,{href:(0,yt.getAdminLink)("edit.php?post_type=product&page=product_attributes"),type:"external",target:"_blank"})})),(0,_.createElement)("div",{...o},(0,_.createElement)(Oc,{value:(0,_.useMemo)((function(){return d.map((e=>({...e,isDefault:i.some((t=>t.id===e.id||t.name===e.name))})))}),[d,i]),onAdd:()=>{(0,X.recordEvent)("product_options_modal_add_button_click")},onChange:p,createNewAttributesAsGlobal:!0,useRemoveConfirmationModal:!0,onNoticeDismiss:()=>n({local_attributes_notice_dismissed_ids:[...a,m]}),onAddAnother:()=>{(0,X.recordEvent)("product_add_options_modal_add_another_option_button_click")},onNewModalCancel:()=>{(0,X.recordEvent)("product_options_modal_cancel_button_click")},onNewModalOpen:()=>{(0,X.recordEvent)("product_options_add_option")},onRemoveItem:()=>{(0,X.recordEvent)("product_add_options_modal_remove_option_button_click")},onRemove:()=>(0,X.recordEvent)("product_remove_option_confirmation_confirm_click"),onRemoveCancel:()=>(0,X.recordEvent)("product_remove_option_confirmation_cancel_click"),renderCustomEmptyState:function({addAttribute:e}){return(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state"},(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image"},(0,_.createElement)(gp,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"}),(0,_.createElement)(gp,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"}),(0,_.createElement)(gp,{className:"wp-block-woocommerce-product-variations-options-field__empty-state-image-product"})),(0,_.createElement)("p",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-description"},(0,D.__)("Sell your product in multiple variations like size or color.","woocommerce")),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-variations-options-field__empty-state-actions"},(0,_.createElement)(S.Button,{variant:"primary",onClick:()=>e()},(0,D.__)("Add options","woocommerce")),(0,_.createElement)(S.Button,{variant:"secondary",onClick:()=>e((0,D.__)("Size","woocommerce"))},(0,D.__)("Add sizes","woocommerce")),(0,_.createElement)(S.Button,{variant:"secondary",onClick:()=>e((0,D.__)("Color","woocommerce"))},(0,D.__)("Add colors","woocommerce"))))},disabledAttributeIds:c.filter((e=>!e.variation)).map((e=>e.id)),termsAutoSelection:"all",uiStrings:{notice:v,globalAttributeHelperMessage:"",customAttributeHelperMessage:"",newAttributeModalNotice:"",newAttributeModalTitle:(0,D.__)("Add variation options","woocommerce"),newAttributeModalDescription:(0,D.__)("Select from existing attributes or create new ones to add new variations for your product. You can change the order later.","woocommerce"),attributeRemoveLabel:(0,D.__)("Remove variation option","woocommerce"),attributeRemoveConfirmationModalMessage:(0,D.__)("If you continue, some variations of this product will be deleted and customers will no longer be able to purchase them.","woocommerce")}}))}};function Cp(){return C({name:Ep,metadata:fp,settings:bp})}const yp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-single-variation-notice","title":"Notice","category":"woocommerce","description":"Notice description","keywords":["products","notice"],"textdomain":"default","attributes":{"title":{"type":"string"},"content":{"type":"string"},"isDismissible":{"type":"boolean"},"type":{"type":"string"}},"supports":{"align":false,"html":true,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}');const{name:Ap,...xp}=yp,Sp={example:{},edit:function({attributes:e}){const t=(0,E.useWooBlockProps)(e),{content:o,isDismissible:r,title:a,type:c="info"}=e,[l]=(0,f.useEntityProp)("postType","product_variation","parent_id"),{dismissedNotices:i,dismissNotice:s,isResolving:u}=function(){const{updateOptions:e}=(0,n.useDispatch)(H.OPTIONS_STORE_NAME),{dismissedNotices:t,isResolving:o}=(0,n.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(H.OPTIONS_STORE_NAME);return{dismissedNotices:t(O)||[],isResolving:!o("getOption",[O])}}),[]);return{dismissedNotices:t,dismissNotice:async t=>{const{dismissedNoticesOption:o}=await(async()=>{const{getOption:e}=(0,n.resolveSelect)(H.OPTIONS_STORE_NAME);return{dismissedNoticesOption:await e(O)||[]}})();e({[O]:[...o,t]})},isResolving:o}}(),{parentName:m,isParentResolving:d}=(0,n.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:o}=e("core"),{name:r}=t("postType","product",l);return{parentName:r||"",isParentResolving:!o("getEditedEntityRecord",["postType","product",l])}}));return i.includes(l)||u||d||""===m?null:(0,_.createElement)("div",{...t},(0,_.createElement)(Sc,{title:a,type:c,isDismissible:r,handleDismiss:()=>{(0,X.recordEvent)("product_single_variation_notice_dismissed"),s(l)}},(0,_.createInterpolateElement)(o,{strong:(0,_.createElement)("strong",null),noticeLink:(0,_.createElement)(A.Link,{href:(0,je.getNewPath)({tab:"variations"},`/product/${l}`),onClick:()=>{(0,X.recordEvent)("product_single_variation_notice_click")}}),parentProductName:(0,_.createElement)("span",null,m)})))}};function kp(){return C({name:Ap,metadata:xp,settings:Sp})}const Pp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-has-variations-notice","title":"Notice","category":"woocommerce","description":"Notice description","keywords":["products","notice"],"textdomain":"default","attributes":{"title":{"type":"string"},"content":{"type":"string"},"buttonText":{"type":"string"},"type":{"type":"string"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),Bp=e=>!(!Array.isArray(e)||!e.length)&&e.some((({variation:e})=>e)),{name:Np,...Mp}=Pp,Vp={example:{},edit:function({attributes:e}){const t=(0,E.useWooBlockProps)(e),{buttonText:o,content:r,title:n,type:a="info"}=e,[c]=(0,f.useEntityProp)("postType","product","attributes"),l=Bp(c);return(0,_.createElement)("div",{...t},l&&(0,_.createElement)(Sc,{content:r,title:n,type:a},(0,_.createElement)(S.Button,{isSecondary:!0,onClick:()=>(0,je.navigateTo)({url:(0,je.getNewPath)({tab:"variations"})})},o)))}};function Tp(){return C({name:Np,metadata:Mp,settings:Vp})}const Fp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-taxonomy-field","title":"Taxonomy","category":"widgets","description":"A block that displays a taxonomy field, allowing searching, selection, and creation of new items","keywords":["taxonomy"],"textdomain":"default","attributes":{"slug":{"type":"string","__experimentalRole":"content"},"property":{"type":"string","__experimentalRole":"content"},"label":{"type":"string","__experimentalRole":"content"},"createTitle":{"type":"string","__experimentalRole":"content"},"dialogNameHelpText":{"type":"string","__experimentalRole":"content"},"parentTaxonomyText":{"type":"string","__experimentalRole":"content"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');async function Dp(e,t){const o=[],r={};return e.forEach((e=>{r[e.id]=e})),e.forEach((e=>{e.parent>0&&!r[e.parent]&&o.push(e.parent)})),o.length>0?(0,n.resolveSelect)("core").getEntityRecords("taxonomy",t,{include:o}).then((o=>Dp([...o,...e],t))):e}const Lp=(e,t={fetchParents:!0})=>{const[o,r]=(0,_.useState)(!1);return{searchEntity:async function(o){r(!0);let a=[];try{a=await(0,n.resolveSelect)("core").getEntityRecords("taxonomy",e,{per_page:30,search:(0,A.escapeHTML)(o)}),(null==t?void 0:t.fetchParents)&&(a=await Dp(a,e))}finally{r(!1)}return a},isResolving:o}},Hp=({onCancel:e,onCreate:t,initialName:o,slug:r,hierarchical:a,dialogNameHelpText:c,parentTaxonomyText:l,title:i})=>{const[s,u]=(0,_.useState)(""),[m,d]=(0,_.useState)([]),{searchEntity:p,isResolving:h}=Lp(r),v=(0,w.useDebounce)((0,_.useCallback)((e=>p(e||"").then(d)),[]),150);(0,_.useEffect)((()=>{v("")}),[]);const{saveEntityRecord:g}=(0,n.useDispatch)("core"),[E,f]=(0,_.useState)(!1),[b,C]=(0,_.useState)(null),[y,x]=(0,_.useState)(o||""),[k,P]=(0,_.useState)(null),B=(0,w.useInstanceId)(S.BaseControl,"taxonomy_name"),N=(0,w.useInstanceId)(A.__experimentalSelectTreeControl,"parent-taxonomy-select");return(0,_.createElement)(S.Modal,{title:i,onRequestClose:e,className:"woocommerce-create-new-taxonomy-modal"},(0,_.createElement)("div",{className:"woocommerce-create-new-taxonomy-modal__wrapper"},(0,_.createElement)(S.BaseControl,{id:B,label:(0,D.__)("Name","woocommerce"),help:b||c,className:we()({"has-error":b})},(0,_.createElement)(S.TextControl,{id:B,value:y,onChange:x})),a&&(0,_.createElement)(A.__experimentalSelectTreeControl,{isLoading:h,label:(0,_.createInterpolateElement)(`${l||(0,D.__)("Parent","woocommerce")} <optional/>`,{optional:(0,_.createElement)("span",{className:"woocommerce-create-new-taxonomy-modal__optional"},(0,D.__)("(optional)","woocommerce"))}),id:N,items:m.map((e=>({label:e.name,value:String(e.id),parent:e.parent>0?String(e.parent):void 0}))),shouldNotRecursivelySelect:!0,selected:k?{value:String(k.id),label:k.name}:void 0,onSelect:e=>e&&P({id:+e.value,name:e.label,parent:e.parent?+e.parent:0}),onRemove:()=>P(null),onInputChange:e=>{v(e),u(e||"")},createValue:s}),(0,_.createElement)("div",{className:"woocommerce-create-new-taxonomy-modal__buttons"},(0,_.createElement)(S.Button,{variant:"tertiary",onClick:e,disabled:E},(0,D.__)("Cancel","woocommerce")),(0,_.createElement)(S.Button,{variant:"primary",disabled:0===y.length||E,isBusy:E,onClick:async()=>{C(null),f(!0);try{const e=await g("taxonomy",r,{name:y,parent:k?k.id:null},{throwOnError:!0});f(!1),t(e)}catch(e){if(f(!1),!e.message)throw C((0,D.__)("Failed to create taxonomy","woocommerce")),e;C(e.message)}}},(0,D.__)("Create","woocommerce")))))},{name:Rp}=Fp,zp={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,E.useWooBlockProps)(e),{hierarchical:r}=(0,n.useSelect)((t=>t("core").getTaxonomy(e.slug)||{hierarchical:!1})),{label:a,slug:c,property:l,createTitle:i,dialogNameHelpText:s,parentTaxonomyText:u,disabled:m}=e,[d,p]=(0,_.useState)(""),[h,v]=(0,_.useState)([]),{searchEntity:g,isResolving:f}=Lp(c,{fetchParents:r}),b=(0,w.useDebounce)((0,_.useCallback)((e=>{p(e),g(e||"").then(v)}),[r]),150);(0,_.useEffect)((()=>{b("")}),[]);const[C,y]=wt(l,{postType:t,fallbackValue:[]}),x=(C||[]).map((e=>({value:String(e.id),label:e.name}))),[S,k]=(0,_.useState)(!1),P=h.map((e=>({parent:r&&e.parent&&e.parent>0?String(e.parent):void 0,label:e.name,value:String(e.id)})));return(0,_.createElement)("div",{...o},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(A.__experimentalSelectTreeControl,{id:(0,w.useInstanceId)(A.__experimentalSelectTreeControl,"woocommerce-taxonomy-select"),label:a,isLoading:f,disabled:m,multiple:!0,createValue:d,onInputChange:b,shouldNotRecursivelySelect:!0,shouldShowCreateButton:e=>!e||-1===P.findIndex((t=>t.label.toLowerCase()===e.toLowerCase())),onCreateNew:()=>k(!0),items:P,selected:x,onSelect:e=>{Array.isArray(e)?y([...e.map((e=>({id:+e.value,name:e.label,parent:+(e.parent||0)}))),...C||[]]):y([{id:+e.value,name:e.label,parent:+(e.parent||0)},...C||[]])},onRemove:e=>{Array.isArray(e)?y((C||[]).filter((t=>!e.find((e=>e.value===String(t.id)))))):y((C||[]).filter((t=>String(t.id)!==e.value)))}}),S&&(0,_.createElement)(Hp,{slug:c,hierarchical:r,title:i,dialogNameHelpText:s,parentTaxonomyText:u,onCancel:()=>k(!1),onCreate:e=>{k(!1),p(""),y([{id:e.id,name:e.name,parent:e.parent},...C||[]])},initialName:d})))}},Ip=()=>C({name:Rp,metadata:Fp,settings:zp}),Op=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-text-field","title":"Product text field","category":"woocommerce","description":"A text field for use in the product editor.","keywords":["products","text"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"property":{"type":"string"},"placeholder":{"type":"string"},"help":{"type":"string"},"tooltip":{"type":"string"},"suffix":{"type":"object"},"type":{"type":"object"},"required":{"type":"object"},"pattern":{"type":"object"},"minLength":{"type":"object"},"maxLength":{"type":"object"},"min":{"type":"object"},"max":{"type":"object"}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}'),$p=(0,_.forwardRef)((function({label:e,help:t,error:o,tooltip:r,className:n,required:a,onChange:c,onBlur:l,...i},s){return(0,_.createElement)(S.__experimentalInputControl,{...i,ref:s,className:we()(n,{"has-error":o}),label:(0,_.createElement)(_n,{label:e,required:a,tooltip:r}),required:a,help:o||t,onChange:c,onBlur:l})})),{name:Gp,...Up}=Op,jp={example:{},edit:function({attributes:e,context:{postType:t}}){var o;const r=(0,E.useWooBlockProps)(e),{property:n,label:a,placeholder:c,required:l,pattern:i,minLength:s,maxLength:u,min:m,max:d,help:p,tooltip:h,disabled:v,type:w,suffix:g}=e,[f,b]=wt(n,{postType:t,fallbackValue:""}),{hasEdit:C}=ft(),y=(0,_.useRef)(null),{error:x,validate:S}=tn(n,(async function(){var e,t,o,r,n,a;if(!y.current)return;const c=y.current;let p="";return c.validity.typeMismatch&&(p=null!==(e=null==w?void 0:w.message)&&void 0!==e?e:(0,D.__)("Invalid value for the field.","woocommerce")),c.validity.valueMissing&&(p="string"==typeof l?l:(0,D.__)("This field is required.","woocommerce")),c.validity.patternMismatch&&(p=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:(0,D.__)("Invalid value for the field.","woocommerce")),c.validity.tooShort&&(p=(0,D.sprintf)(null!==(o=null==s?void 0:s.message)&&void 0!==o?o:(0,D.__)("The minimum length of the field is %d","woocommerce"),null==s?void 0:s.value)),c.validity.tooLong&&(p=(0,D.sprintf)(null!==(r=null==u?void 0:u.message)&&void 0!==r?r:(0,D.__)("The maximum length of the field is %d","woocommerce"),null==u?void 0:u.value)),c.validity.rangeUnderflow&&(p=(0,D.sprintf)(null!==(n=null==m?void 0:m.message)&&void 0!==n?n:(0,D.__)("The minimum value of the field is %d","woocommerce"),null==m?void 0:m.value)),c.validity.rangeOverflow&&(p=(0,D.sprintf)(null!==(a=null==d?void 0:d.message)&&void 0!==a?a:(0,D.__)("The maximum value of the field is %d","woocommerce"),null==d?void 0:d.value)),c.setCustomValidity(p),c.validity.valid?void 0:c.validationMessage}),[w,l,i,s,u,m,d]);return(0,_.createElement)("div",{...r},(0,_.createElement)($p,{ref:y,type:null!==(o=null==w?void 0:w.value)&&void 0!==o?o:"text",value:f,disabled:v,label:a,onChange:b,onBlur:()=>{C(n)&&S()},error:x,help:p,placeholder:c,tooltip:h,suffix:function(){if(!g||!f||!y.current)return;const e="url"===y.current.type&&!y.current.validity.typeMismatch;return!0===g&&e?(0,_.createElement)(A.Link,{type:"external",href:f,target:"_blank",rel:"noreferrer",className:"wp-block-woocommerce-product-text-field__suffix-link"},(0,_.createElement)(Ge,{icon:It,size:20})):"string"==typeof g?g:void 0}(),required:Boolean(l),pattern:null==i?void 0:i.value,minLength:null==s?void 0:s.value,maxLength:null==u?void 0:u.value,min:null==m?void 0:m.value,max:null==d?void 0:d.value}))}},qp=()=>C({name:Gp,metadata:Up,settings:jp}),Zp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-number-field","title":"Product number control","category":"woocommerce","description":"A reusable number field for the product editor.","keywords":["products","number","input"],"textdomain":"default","attributes":{"label":{"type":"string","__experimentalRole":"content"},"property":{"type":"string"},"suffix":{"type":"string"},"help":{"type":"string"},"placeholder":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"tooltip":{"type":"string"},"required":{"type":"boolean","default":false},"step":{"type":"number","default":1}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css"}'),Wp=({value:e,onChange:t,label:o,suffix:r,help:n,error:a,onBlur:c,required:l,tooltip:i,placeholder:s,disabled:u,step:m=1})=>{const d=(0,w.useInstanceId)(S.BaseControl,"product_number_field"),[p,h]=(0,_.useState)(!1),v=e=>{var t,o;(null===(o=null===(t=document.getElementById(d))||void 0===t?void 0:t.parentElement)||void 0===o?void 0:o.contains(e.relatedTarget))||(h(!1),null==c||c())},g=yr({value:e||"",onChange:t,onFocus:()=>h(!0)}),[E,f]=(0,_.useState)(0),b=(0,_.useRef)(null),C=(0,_.useRef)(!1),y=()=>t(String(parseFloat(e||"0")+E));(0,_.useEffect)((()=>(0!==E?(b.current=setTimeout(y,C.current?500:100),C.current=!1):b.current&&clearTimeout(b.current),()=>{b.current&&clearTimeout(b.current)})),[E,e]);const A=()=>f(0);return(0,_.createElement)(S.BaseControl,{className:we()({"has-error":a}),id:d,label:(0,_.createElement)(_n,{label:o,required:l,tooltip:i}),help:a||n},(0,_.createElement)(S.__experimentalInputControl,{...g,step:m,disabled:u,autoComplete:"off",id:d,className:"woocommerce-number-control",suffix:(0,_.createElement)(_.Fragment,null,r,p&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.Button,{className:"woocommerce-number-control__increment",icon:Pt,onMouseDown:()=>{t(String(parseFloat(e||"0")+m)),f(m),C.current=!0},onMouseLeave:A,onMouseUp:A,onBlur:v,isSmall:!0,"aria-hidden":"true","aria-label":(0,D.__)("Increment","woocommerce"),tabIndex:-1}),(0,_.createElement)(S.Button,{icon:lm,className:"woocommerce-number-control__decrement",onBlur:v,onMouseDown:()=>{t(String(parseFloat(e||"0")-m)),f(-m),C.current=!0},onMouseLeave:A,onMouseUp:A,isSmall:!0,"aria-hidden":"true","aria-label":(0,D.__)("Decrement","woocommerce"),tabIndex:-1}))),placeholder:s,onBlur:v}))},{name:Jp,...Yp}=Zp,Xp={example:{},edit:function({attributes:e,context:{postType:t}}){const o=(0,E.useWooBlockProps)(e),{label:r,property:n,suffix:a,placeholder:c,help:l,min:i,max:s,required:u,tooltip:m,disabled:d,step:p}=e,[h,v]=wt(n,{postType:t,fallbackValue:""}),{hasEdit:w}=ft(),{error:g,validate:f}=tn(n,(async function(){return"number"==typeof i&&h&&parseFloat(h)<i?(0,D.sprintf)((0,D.__)("Value must be greater than or equal to %d","woocommerce"),i):"number"==typeof s&&h&&parseFloat(h)>s?(0,D.sprintf)((0,D.__)("Value must be less than or equal to %d","woocommerce"),s):u&&!h?(0,D.__)("This field is required.","woocommerce"):void 0}),[h]);return(0,_.createElement)("div",{...o},(0,_.createElement)(Wp,{label:r,onChange:v,value:h||"",help:l,suffix:a,placeholder:c,error:g,onBlur:()=>{w(n)&&f()},required:u,tooltip:m,disabled:d,step:p}))}},Kp=()=>C({name:Jp,metadata:Yp,settings:Xp}),Qp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-linked-list-field","title":"Linked product list","category":"widgets","description":"The linked product list.","keywords":["products","linked","list"],"textdomain":"default","attributes":{"property":{"type":"string","__experimentalRole":"content"},"emptyState":{"type":"object","default":{}}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorStyle":"file:./editor.css","usesContext":["postType"]}');function eh(){return(0,_.createElement)("div",{"aria-hidden":"true","aria-label":(0,D.__)("Loading linked products","woocommerce"),className:"woocommerce-product-list"},(0,_.createElement)("div",{role:"table"},(0,_.createElement)("div",{role:"rowgroup"},(0,_.createElement)("div",{role:"rowheader"},(0,_.createElement)("div",{role:"columnheader"},(0,_.createElement)("div",{className:"skeleton"})),(0,_.createElement)("div",{role:"columnheader"}))),(0,_.createElement)("div",{role:"rowgroup"},Array.from({length:3}).map(((e,t)=>(0,_.createElement)("div",{role:"row",key:t},(0,_.createElement)("div",{role:"cell"},(0,_.createElement)("div",{className:"woocommerce-product-list__product-image skeleton"}),(0,_.createElement)("div",{className:"woocommerce-product-list__product-info"},(0,_.createElement)("div",{className:"woocommerce-product-list__product-name skeleton"}),(0,_.createElement)("div",{className:"woocommerce-product-list__product-price skeleton"}))),(0,_.createElement)("div",{role:"cell",className:"woocommerce-product-list__actions"},(0,_.createElement)("div",{className:"skeleton"}),(0,_.createElement)("div",{className:"skeleton"}))))))))}function th({product:e,className:t,...o}){const{formatAmount:r}=(0,_.useContext)(ee.CurrencyContext);return(0,_.createElement)(_.Fragment,null,(Boolean(e.regular_price)||Boolean(e.price))&&(0,_.createElement)("span",{...o,className:we()("woocommerce-product-formatted-price",t)},e.on_sale&&(0,_.createElement)("span",null,e.sale_price?r(e.sale_price):r(e.price)),e.regular_price&&(0,_.createElement)("span",{className:we()({"woocommerce-product-formatted-price--on-sale":e.on_sale})},r(e.regular_price))))}function oh(e){return e.images.length>0?{backgroundImage:`url(${e.images[0].src})`}:void 0}function rh({product:e,className:t,style:o,...r}){return(0,_.createElement)("div",{"aria-hidden":"true",...r,className:we()("woocommerce-product-image",t),style:{...o,...oh(e)}})}function nh({products:e,onRemove:t,onEdit:o,onPreview:r,className:n,...a}){function c(e){return function(){o&&o(e)}}function l(e){return function(){r&&r(e)}}function i(e){return function(){t&&t(e)}}return(0,_.createElement)("div",{...a,className:we()("woocommerce-product-list",n)},(0,_.createElement)("div",{role:"table"},(0,_.createElement)("div",{role:"rowgroup"},(0,_.createElement)("div",{role:"rowheader"},(0,_.createElement)("div",{role:"columnheader"},(0,D.__)("Product","woocommerce")),(0,_.createElement)("div",{role:"columnheader","aria-label":(0,D.__)("Actions","woocommerce")}))),(0,_.createElement)("div",{role:"rowgroup"},e.map((e=>(0,_.createElement)("div",{role:"row",key:e.id},(0,_.createElement)("div",{role:"cell"},(0,_.createElement)(rh,{product:e,className:"woocommerce-product-list__product-image"}),(0,_.createElement)("div",{className:"woocommerce-product-list__product-info"},(0,_.createElement)("a",{className:"woocommerce-product-list__product-name",href:(0,je.getNewPath)({},`/product/${e.id}`,{}),target:"_blank",rel:"noreferrer",onClick:c(e)},e.name),(0,_.createElement)(th,{product:e,className:"woocommerce-product-list__product-price"}))),(0,_.createElement)("div",{role:"cell",className:"woocommerce-product-list__actions"},(0,_.createElement)(S.Button,{icon:It,size:24,"aria-label":(0,D.__)("See product page","woocommerce"),href:e.permalink,target:"_blank",rel:"noreferrer",onClick:l(e)}),(0,_.createElement)(S.Button,{icon:eo,size:24,"aria-label":(0,D.__)("Remove product","woocommerce"),onClick:i(e)}))))))))}function ah({className:e,filter:t,...o}){const{isFetching:r,...n}=(0,A.useAsyncFilter)({filter:t});return(0,_.createElement)(A.__experimentalSelectControl,{placeholder:(0,D.__)("Search for products","woocommerce"),label:"",__experimentalOpenMenuOnFocus:!0,...o,...n,className:we()("woocommerce-product-select",e)},(({items:e,isOpen:t,highlightedIndex:o,getMenuProps:n,getItemProps:a})=>(0,_.createElement)(A.__experimentalSelectControlMenu,{isOpen:t,getMenuProps:n,className:"woocommerce-product-select__menu"},r?(0,_.createElement)("div",{className:"woocommerce-product-select__menu-loading"},(0,_.createElement)(A.Spinner,null)):e.map(((e,t)=>(0,_.createElement)(A.__experimentalSelectControlMenuItem,{key:e.id,index:t,isActive:o===t,item:e,getItemProps:e=>({...a(e),className:"woocommerce-product-select__menu-item"})},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(rh,{product:e,className:"woocommerce-product-select__menu-item-image"}),(0,_.createElement)("div",{className:"woocommerce-product-select__menu-item-content"},(0,_.createElement)("div",{className:"woocommerce-product-select__menu-item-title"},e.name),(0,_.createElement)(th,{product:e,className:"woocommerce-product-select__menu-item-description"})))))))))}function ch({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o="88",style:r={}}){return(0,_.createElement)(S.SVG,{width:o,height:o,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,_.createElement)(S.Path,{d:"M59.5299 29.3511H6.48494C4.38544 44.6382 0.74386 74.8826 0.105058 79.5685C-0.505262 84.0386 1.48031 87.9998 7.72592 87.9998H58.293C64.5386 87.9998 66.5241 84.0386 65.9138 79.5685C65.275 74.8826 61.6294 44.6382 59.534 29.3511H59.5299Z",fill:e}),(0,_.createElement)(S.Path,{d:"M45.1549 17.5C42.7177 15.6069 39.3976 14.6787 35.0155 14.6665C34.987 14.6665 31.024 14.6665 30.9996 14.6665C26.6175 14.6787 23.3014 15.6069 20.8601 17.5C17.9916 19.7269 16.5391 23.106 16.5391 27.5476V40.2454H23.8629V28.5898C23.8629 25.569 25.2422 22.0393 30.9833 21.9986C31.0159 21.9986 35.0033 21.9986 35.0358 21.9986C40.7769 22.0393 42.1562 25.569 42.1562 28.5898V40.2454H49.4801V27.5476C49.4801 23.106 48.0275 19.7269 45.159 17.5H45.1549Z",fill:t}),(0,_.createElement)(S.Path,{d:"M47.3921 47.6711L44.0312 87.9998H87.9987L84.2676 47.6711H47.3921Z",fill:t}),(0,_.createElement)(S.Path,{d:"M66.0147 65.9912C60.2736 65.9912 56.8477 62.4738 56.8477 56.5828V51.3188H60.5096V56.5828C60.5096 62.3272 64.6516 62.3272 66.0147 62.3272C67.3777 62.3272 71.5197 62.3272 71.5197 56.5828V51.3188H75.1817V56.5828C75.1817 62.4738 71.7557 65.9912 66.0147 65.9912Z",fill:e}))}function lh({colorOne:e="#E0E0E0",colorTwo:t="#F0F0F0",size:o="88",style:r={}}){return(0,_.createElement)(S.SVG,{width:o,height:o,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r},(0,_.createElement)(S.G,{clipPath:"url(#clip0_13540_198076)"},(0,_.createElement)(S.Path,{d:"M77.2539 14.7807L39.9517 14.6667C35.4172 14.6667 32.8506 17.199 32.8506 21.718V36.7241L10.818 36.6997C6.29575 36.6997 3.76167 39.2645 3.76167 43.7957L3.66797 81.0294L84.3632 81.0742V21.8319C84.3632 17.313 81.7965 14.7807 77.262 14.7807H77.2539Z",fill:e}),(0,_.createElement)(S.Path,{d:"M47.5672 47.6794H40.2461V54.9953H47.5672V47.6794Z",fill:t}),(0,_.createElement)(S.Path,{d:"M62.3836 47.6794H55.0625V54.9953H62.3836V47.6794Z",fill:t}),(0,_.createElement)(S.Path,{d:"M77.0242 47.6794H69.7031V54.9953H77.0242V47.6794Z",fill:t}),(0,_.createElement)(S.Path,{d:"M47.5672 62.3232H40.2461V69.6391H47.5672V62.3232Z",fill:t}),(0,_.createElement)(S.Path,{d:"M62.3836 62.3232H55.0625V69.6391H62.3836V62.3232Z",fill:t}),(0,_.createElement)(S.Path,{d:"M76.9617 62.3232H69.6406V69.6391H76.9617V62.3232Z",fill:t}),(0,_.createElement)(S.Path,{d:"M77.0221 36.6795L40.3555 36.7243V22.0682L77.0221 22.0234V36.6795Z",fill:t}),(0,_.createElement)(S.Path,{d:"M88 80.8988V80.7034L0 80.6667V87.9581L88 87.9948V80.8988Z",fill:t}),(0,_.createElement)(S.Path,{d:"M29.4451 14.6667C27.844 14.6667 27.3225 16.6901 25.7621 16.6901C24.2018 16.6901 23.6844 14.6667 22.0832 14.6667C20.4821 14.6667 19.9607 16.6901 18.4003 16.6901C16.8399 16.6901 16.3225 14.6667 14.7173 14.6667C13.1121 14.6667 12.5947 16.6901 11.0344 16.6901C9.47399 16.6901 8.95658 14.6667 7.35547 14.6667V19.5643V62.3275H29.4451V14.6667Z",fill:t})))}function ih(e,t){switch(t.type){case"SELECT_SEARCHED_PRODUCT":case"REMOVE_LINKED_PRODUCT":return t.payload.selectedProduct?{...e,...t.payload,searchedProducts:[]}:e;default:return{...e,...t.payload}}}function sh({image:e,tip:t}){switch(e){case"CashRegister":return(0,_.createElement)(lh,null);case"ShoppingBags":return(0,_.createElement)(ch,null);default:return/^https?:\/\//.test(e)?(0,_.createElement)("img",{src:e,alt:t,height:88,width:88}):null}}const{name:uh,...mh}=Qp,dh={example:{},edit:function({attributes:e,context:{postType:t}}){const{property:o,emptyState:r}=e,a=(0,E.useWooBlockProps)(e),[c,l]=(0,_.useReducer)(ih,{linkedProducts:[],searchedProducts:[]}),i=(0,f.useEntityId)("postType",t),s=function(e){return async function(t){return 0===t.length?(e({type:"SET_LINKED_PRODUCTS",payload:{linkedProducts:[]}}),Promise.resolve([])):(e({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!0}}),(0,n.resolveSelect)(H.PRODUCTS_STORE_NAME).getProducts({include:t}).then((t=>(e({type:"SET_LINKED_PRODUCTS",payload:{linkedProducts:t}}),t))).finally((()=>{e({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!1}})})))}}(l),u=function(e){return async function(t,o=""){return(0,n.resolveSelect)(H.PRODUCTS_STORE_NAME).getProducts({search:o,orderby:"title",order:"asc",per_page:5,exclude:t}).then((t=>(e({type:"SET_SEARCHED_PRODUCTS",payload:{searchedProducts:t}}),t)))}}(l),m=function(e){return function(t,o){Array.isArray(t)||(t=[t]);const r=[...o,...t];return e({type:"SELECT_SEARCHED_PRODUCT",payload:{selectedProduct:t,linkedProducts:r}}),r.map((e=>e.id))}}(l),d=function(e){return function(t,o){const r=o.reduce(((e,o)=>o.id===t.id?e:[...e,o]),[]);return e({type:"REMOVE_LINKED_PRODUCT",payload:{selectedProduct:t,linkedProducts:r}}),r.map((e=>e.id))}}(l),[p,h]=wt(o,{postType:t});(0,_.useEffect)((()=>{c.selectedProduct||s(null!=p?p:[])}),[p,c.selectedProduct]);const v=(0,_.useCallback)(((e="")=>{const t=[i];return p&&t.push(...p),u(t,e)}),[p]);(0,_.useEffect)((()=>{v()}),[v]);const[w,g]=(0,_.useState)(!1);return(0,_.createElement)("div",{...a},(0,_.createElement)(Lr,null,(0,_.createElement)(S.Button,{variant:"tertiary",icon:sm,onClick:async function(){(0,X.recordEvent)("linked_products_choose_related_click",{source:W,field:o}),l({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!0}}),g(!0);const e=await async function({postId:e,postType:t="product",forceRequest:o=!1,exclude:r=[]}){const{getEditedEntityRecord:a}=(0,n.select)("core"),c=a("postType",t,e),l={categories:(null==c?void 0:c.categories)?c.categories.map((e=>e.id)):[],tags:(null==c?void 0:c.tags)?c.tags.map((e=>e.id)):[],exclude:(null==r?void 0:r.length)?r:[e]};return o&&await(0,n.dispatch)(H.PRODUCTS_STORE_NAME).invalidateResolution("getSuggestedProducts",[l]),await(0,n.resolveSelect)(H.PRODUCTS_STORE_NAME).getSuggestedProducts(l)}({postId:i,forceRequest:!0});if(l({type:"LOADING_LINKED_PRODUCTS",payload:{isLoading:!1}}),g(!1),!e)return;const t=m(e,[]);h(t)},isBusy:w,disabled:w},(0,D.__)("Choose products for me","woocommerce"))),(0,_.createElement)("div",{className:"wp-block-woocommerce-product-linked-list-field__form-group-content"},(0,_.createElement)(ah,{items:c.searchedProducts,selected:null,filter:v,onSelect:function(e){const t=m(e,c.linkedProducts);h(t),(0,X.recordEvent)("linked_products_product_add",{source:W,field:o,product_id:i,linked_product_id:e.id})}})),c.isLoading&&(0,_.createElement)(eh,null),!c.isLoading&&0===c.linkedProducts.length&&(0,_.createElement)(yd,{tip:r.tip,dismissPreferenceId:`woocommerce-product-${o}-advice-card-dismissed`,isDismissible:r.isDismissible,onDismiss:function(){(0,X.recordEvent)("linked_products_placeholder_dismiss",{source:W,field:o})}},(0,_.createElement)(sh,{...r})),!c.isLoading&&c.linkedProducts.length>0&&(0,_.createElement)(nh,{products:c.linkedProducts,onRemove:function(e){const t=d(e,c.linkedProducts);h(t),(0,X.recordEvent)("linked_products_product_remove",{source:W,field:o,product_id:i,linked_product_id:e.id})},onEdit:function(e){(0,X.recordEvent)("linked_products_product_select",{source:W,field:o,product_id:i,linked_product_id:e.id})},onPreview:function(e){(0,X.recordEvent)("linked_products_product_preview_click",{source:W,field:o,product_id:i,linked_product_id:e.id})}}))}};function ph(){return C({name:uh,metadata:mh,settings:dh})}const hh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-text-area-field","title":"Product textarea block","category":"woocommerce","description":"A text-area field for use in the product editor.","keywords":["textarea","rich-text"],"textdomain":"default","attributes":{"property":{"type":"string"},"label":{"type":"string","__experimentalRole":"content"},"placeholder":{"type":"string"},"help":{"type":"string"},"required":{"type":"string"},"disabled":{"type":"boolean"},"align":{"type":"string","enum":["left","center","right","justify"]},"mode":{"type":"string","enum":["plain-text","rich-text"],"default":"rich-text"},"allowedFormats":{"type":"array","default":["core/bold","core/code","core/italic","core/link","core/strikethrough","core/underline","core/text-color","core/subscript","core/superscript","core/unknown"]},"direction":{"type":"string","enum":["ltr","rtl"]}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":true}}');function _h({direction:e,onChange:t}){return(0,D.isRTL)()?(0,_.createElement)(S.ToolbarButton,{icon:La,title:(0,D._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:()=>null==t?void 0:t("ltr"===e?void 0:"ltr")}):null}const vh=[{icon:Ra,title:(0,D.__)("Align text left","woocommerce"),align:"left"},{icon:za,title:(0,D.__)("Align text center","woocommerce"),align:"center"},{icon:Ia,title:(0,D.__)("Align text right","woocommerce"),align:"right"},{icon:Oa,title:(0,D.__)("Align text justify","woocommerce"),align:"justify"}];function wh({align:e,setAlignment:t}){return(0,_.createElement)(vt.AlignmentControl,{alignmentControls:vh,value:e,onChange:t})}const{name:gh,...Eh}=hh,fh={example:{},edit:function e({attributes:t,setAttributes:o,context:{postType:r}}){const{property:n,label:a,placeholder:c,help:l,required:i,note:s,tooltip:u,disabled:m,align:d,allowedFormats:p,direction:h,mode:v="rich-text"}=t,g=(0,E.useWooBlockProps)(t,{className:"wp-block-woocommerce-product-text-area-field",style:{direction:h}}),f=(0,w.useInstanceId)(e,"wp-block-woocommerce-product-content-field__content");if(!n)throw new Error((0,D.__)("Property attribute is required.","woocommerce"));const[b,C]=wt(n,{postType:r}),{handleBlur:y}=Ga(),A="rich-text"===v,x="plain-text"===v;return(0,_.createElement)("div",{...g},A&&(0,_.createElement)(vt.BlockControls,{group:"block"},(0,_.createElement)(wh,{align:d,setAlignment:function(e){o({align:e})}}),(0,_.createElement)(_h,{direction:h,onChange:function(e){o({direction:e})}})),(0,_.createElement)(S.BaseControl,{id:f.toString(),label:(0,_.createElement)(_n,{label:a||"",required:i,note:s,tooltip:u}),help:l},A&&(0,_.createElement)(vt.RichText,{id:f.toString(),identifier:"content",tagName:"p",value:b||"",onChange:C,"data-empty":Boolean(b),className:we()("components-summary-control",{[`has-text-align-${d}`]:d}),dir:h,allowedFormats:p,placeholder:c,required:i,disabled:m,onBlur:y}),x&&(0,_.createElement)(S.TextareaControl,{value:b||"",onChange:C,placeholder:c,required:i,disabled:m,onBlur:y})))},icon:Wo},bh=()=>C({name:gh,metadata:Eh,settings:fh});function Ch(){const e=(0,yo.__experimentalGetCoreBlocks)().filter((e=>!(0,ie.getBlockType)(e.name)));(0,yo.registerCoreBlocks)(e);const t=Object.values(r).map((e=>e())),o=[...e,...t];return function(){o.forEach((e=>e&&(0,ie.unregisterBlockType)(e.name)))}}function yh({clientId:e}){const t=(0,n.useSelect)((t=>{const{getBlockAttributes:o,getBlockName:r}=t("core/block-editor"),n=o(e);if(null==n?void 0:n.icon)return n.icon;const{getBlockType:a}=t("core/blocks"),c=r(e),l=a(null!=c?c:void 0);return null==l?void 0:l.icon}),[e]);if(!t)return null;if("object"==typeof t){const{src:e,...o}=t;if(/^<(.)+>$/.test(e)){const t=(0,_.createElement)(_.RawHTML,{"aria-hidden":"true",...o},e);return(0,_.createElement)(vt.BlockIcon,{icon:t,showColors:!0})}if(/^https?:\/\/(.)+/.test(e)){const t=(0,_.createElement)("img",{src:e,alt:"","aria-hidden":"true",...o,height:24,width:24});return(0,_.createElement)(vt.BlockIcon,{icon:t,showColors:!0})}}return(0,_.createElement)(vt.BlockIcon,{icon:t,showColors:!0})}const Ah=window.wc.customerEffortScore,xh=e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase());function Sh({productType:e}){const{hideFeedbackBar:t,shouldShowFeedbackBar:o}=rt(),{showCesModal:r,showProductMVPFeedbackModal:n}=(0,Ah.useCustomerEffortScoreModal)(),a=()=>({product_type:e});return(0,_.createElement)(_.Fragment,null,o&&(0,_.createElement)("div",{className:"woocommerce-product-mvp-ces-footer"},(0,_.createElement)(A.Pill,null,"Beta"),(0,_.createElement)("div",{className:"woocommerce-product-mvp-ces-footer__message"},(0,_.createInterpolateElement)((0,D.__)("How is your experience with the new product form? <span><shareButton>Share feedback</shareButton> or <turnOffButton>turn it off</turnOffButton></span>","woocommerce"),{span:(0,_.createElement)("span",{className:"woocommerce-product-mvp-ces-footer__message-buttons"}),shareButton:(0,_.createElement)(S.Button,{variant:"link",onClick:()=>{(0,X.recordEvent)("product_editor_feedback_bar_share_feedback_click",{...a()}),r({action:z,showDescription:!1,title:(0,D.__)("What do you think of the new product form?","woocommerce"),firstQuestion:(0,D.__)("The product editing screen is easy to use","woocommerce"),secondQuestion:(0,D.__)("Product form is easy to use","woocommerce"),onsubmitLabel:(0,D.__)("Thanks for the feedback — we'll put it to good use!","woocommerce"),shouldShowComments:()=>!1,getExtraFieldsToBeShown:(e,t,o)=>(0,_.createElement)(_.Fragment,null,(0,_.createElement)(S.BaseControl,{id:"feedback_additional_thoughts",className:"woocommerce-product-feedback__additional-thoughts",label:(0,_.createInterpolateElement)((0,D.__)("ADDITIONAL THOUGHTS <optional />","woocommerce"),{optional:(0,_.createElement)("span",{className:"woocommerce-product-feedback__optional-input"},(0,D.__)("(OPTIONAL)","woocommerce"))})},(0,_.createElement)(S.TextareaControl,{value:e.additional_thoughts||"",onChange:o=>t({...e,additional_thoughts:o}),help:(null==o?void 0:o.additional_thoughts)||""})),(0,_.createElement)(S.BaseControl,{id:"feedback_email",className:"woocommerce-product-feedback__email",label:(0,_.createInterpolateElement)((0,D.__)("YOUR EMAIL ADDRESS <optional />","woocommerce"),{optional:(0,_.createElement)("span",{className:"woocommerce-product-feedback__optional-input"},(0,D.__)("(OPTIONAL)","woocommerce"))})},(0,_.createElement)(S.TextControl,{value:e.email||"",onChange:o=>t({...e,email:o}),help:(null==o?void 0:o.email)||""}),(0,_.createElement)("span",null,(0,D.__)("In case you want to participate in further discussion and future user research.","woocommerce")))),validateExtraFields:({email:e="",additional_thoughts:t=""})=>{const o={};return e.length>0&&!xh(e)&&(o.email=(0,D.__)("Please enter a valid email address.","woocommerce")),(null==t?void 0:t.length)>500&&(o.additional_thoughts=(0,D.__)("Please enter no more than 500 characters.","woocommerce")),o}},{},{type:"snackbar"})}}),turnOffButton:(0,_.createElement)(S.Button,{onClick:()=>{(0,X.recordEvent)("product_editor_feedback_bar_turnoff_editor_click",{...a()}),t(),n()},variant:"link"})})),(0,_.createElement)(S.Button,{className:"woocommerce-product-mvp-ces-footer__close-button",icon:eo,label:(0,D.__)("Hide this message","woocommerce"),onClick:()=>{(0,X.recordEvent)("product_editor_feedback_bar_dismiss_click",{...a()}),t()}})))}var kh=__webpack_require__(7862),Ph=__webpack_require__.n(kh);const Bh=window.wc.experimental;function Nh({recordScoreCallback:e,onCloseModal:t,onSkipFeedback:o}){const[r,a]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[i,s]=(0,_.useState)(!1),[u,m]=(0,_.useState)(!1),[d,p]=(0,_.useState)(!1),h=[{key:"missing-features",label:(0,D.__)("Missing features","woocommerce"),checked:r,onChange:a},{key:"missing-plugins",label:(0,D.__)("Missing plugins","woocommerce"),checked:c,onChange:l},{key:"difficult-to-use",label:(0,D.__)("It's difficult to use","woocommerce"),checked:i,onChange:s},{key:"slow-buggy-or-broken",label:(0,D.__)("It's slow, buggy, or broken","woocommerce"),checked:u,onChange:m},{key:"other",label:(0,D.__)("Other (describe below)","woocommerce"),checked:d,onChange:p}],[v,w]=(0,_.useState)(""),[g,E]=(0,_.useState)(""),f=h.filter((e=>e.checked)).map((e=>e.key)),{createSuccessNotice:b}=(0,n.useDispatch)("core/notices"),C=(0,_.createElement)("span",{className:"woocommerce-product-mvp-feedback-modal__optional"},(0,D.__)("(optional)","woocommerce"));return(0,_.createElement)(Ah.FeedbackModal,{title:(0,D.__)("Thanks for trying out the new product form!","woocommerce"),onSubmit:()=>{e(f,v,g),b((0,D.__)("Thanks for the feedback — we'll put it to good use!","woocommerce"))},onCancel:o,onModalClose:t,isSubmitButtonDisabled:!f.length,submitButtonLabel:(0,D.__)("Send","woocommerce"),cancelButtonLabel:(0,D.__)("Skip","woocommerce"),className:"woocommerce-product-mvp-feedback-modal"},(0,_.createElement)(_.Fragment,null,(0,_.createElement)(Bh.Text,{variant:"subtitle.small",as:"p",weight:"600",size:"14",lineHeight:"20px"}),(0,_.createElement)("fieldset",{className:"woocommerce-product-mvp-feedback-modal__reason"},(0,_.createElement)("legend",null,(0,D.__)("What made you turn off the new product form?","woocommerce")),(0,_.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__checkboxes"},h.map(((e,t)=>(0,_.createElement)(S.CheckboxControl,{key:t,label:e.label,name:e.key,checked:e.checked,onChange:e.onChange}))))),(0,_.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__comments"},(0,_.createElement)(S.TextareaControl,{label:(0,_.createInterpolateElement)((0,D.__)("Additional thoughts <optional/>","woocommerce"),{optional:C}),value:v,onChange:e=>w(e),rows:5})),(0,_.createElement)("div",{className:"woocommerce-product-mvp-feedback-modal__email"},(0,_.createElement)(S.TextControl,{label:(0,_.createInterpolateElement)((0,D.__)("Your email address <optional/>","woocommerce"),{optional:C}),value:g,onChange:e=>E(e),rows:5,help:(0,D.__)("In case you want to participate in further discussion and future user research.","woocommerce")}))))}Nh.propTypes={recordScoreCallback:Ph().func.isRequired,onCloseModal:Ph().func};const Mh=({productId:e})=>{const{values:t}=(0,A.useFormContext)(),{hideProductMVPFeedbackModal:o}=(0,n.useDispatch)(Ah.STORE_KEY),{isProductMVPModalVisible:r}=(0,n.useSelect)((e=>{const{isProductMVPFeedbackModalVisible:t}=e(Ah.STORE_KEY);return{isProductMVPModalVisible:t()}})),a=null!=e?e:null==t?void 0:t.id,{_feature_nonce:c}=(0,yt.getSetting)("admin",{}),l=a?(0,yt.getAdminLink)(`post.php?post=${a}&action=edit&product_block_editor=0&_feature_nonce=${c}`):(0,yt.getAdminLink)(`post-new.php?post_type=product&product_block_editor=0&_feature_nonce=${c}`);return r?(0,_.createElement)(Nh,{recordScoreCallback:(e,t,r)=>{(0,X.recordEvent)("product_mvp_feedback",{action:"disable",checked:e,comments:t||"",email:r}),o(),window.location.href=`${l}&new-product-experience-disabled=true`},onCloseModal:()=>{(0,X.recordEvent)("product_mvp_feedback",{action:"cancel",checked:"",comments:""}),o()},onSkipFeedback:()=>{(0,X.recordEvent)("product_mvp_feedback",{action:"disable",checked:"",comments:"Feedback skipped"}),o(),window.location.href=l}}):null};function Vh({position:e}){return(0,_.createElement)(S.Button,{"data-testid":"woocommerce-product-variation-switcher-footer-placeholder",className:"woocommerce-product-variation-switcher-footer__button is-placeholder",disabled:!0},"left"===e&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)(Ge,{icon:At,size:16,className:"woocommerce-product-variation-switcher-footer__arrow"}),(0,_.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__product-image"})),(0,_.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__item-label"}),"right"===e&&(0,_.createElement)(_.Fragment,null,(0,_.createElement)("div",{className:"woocommerce-product-variation-switcher-footer__product-image"}),(0,_.createElement)(Ge,{icon:hl,size:16,className:"woocommerce-product-variation-switcher-footer__arrow"})))}function Th({className:e}){return(0,_.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,style:{borderRadius:"3px",background:"var(--wp-gray-gray-0, #F6F7F7)"}},(0,_.createElement)("g",{clipPath:"url(#clip0_7819_478402)"},(0,_.createElement)("path",{d:"M22.9869 7.07134C19.8275 7.07134 17.9977 7.62377 16.9543 8.85386C17.6297 6.47326 18.8776 4.68605 21.1572 3.06738C18.4558 3.41616 16.8877 4.44261 16.1282 5.91147C15.3688 4.44378 13.8007 3.41733 11.0993 3.06738C13.3789 4.68605 14.6268 6.47209 15.3021 8.85386C14.2587 7.62377 12.429 7.07134 9.26953 7.07134C13.0354 8.83982 14.4761 10.263 15.7029 12.8133H16.5524C17.7792 10.263 19.2211 8.83982 22.9858 7.07134H22.9869Z",fill:"#BBBBBB"}),(0,_.createElement)("path",{d:"M18.6464 34.8438C19.8718 34.3897 24.3648 33.3925 24.3648 29.0402C24.3648 26.4551 22.0269 24.5052 19.3727 24.0527C20.5536 23.6669 22.278 21.9488 22.278 20.0211C22.278 17.5377 20.0307 16.5469 18.1934 16.1626C18.1934 15.5957 20.2357 12.6709 20.2357 12.6709H11.7932C11.7932 12.6709 13.8355 15.5957 13.8355 16.1626C11.9966 16.5485 9.75086 17.5377 9.75086 20.0211C9.75086 21.9488 11.4753 23.6669 12.6562 24.0527C10.0004 24.5068 7.66406 26.4567 7.66406 29.0402C7.66406 33.3941 12.1571 34.3913 13.3825 34.8438C10.4772 35.1154 9.02453 36.2491 8.79885 37.1558H23.2316C23.0043 36.2491 21.5517 35.1154 18.648 34.8438H18.6464Z",fill:"#DDDDDD"})),(0,_.createElement)("defs",null,(0,_.createElement)("clipPath",{id:"clip0_7819_478402"},(0,_.createElement)("rect",{width:"34.0881",height:"25.9994",fill:"white",transform:"translate(-1)"}))))}function Fh({variationId:e,parentId:t,parentProductType:o}){const{invalidateResolution:r}=(0,n.useDispatch)("core"),{invalidateResolutionForStoreSelector:a}=(0,n.useDispatch)(H.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),c=(0,n.useSelect)((r=>{if(void 0===t)return{};const{getEntityRecord:n}=r("core"),a=n("postType",o||"product",t);if(void 0!==e&&a&&a.variations){const t=a.variations.indexOf(e),o=t>0?t-1:null,r=t!==a.variations.length-1?t+1:null;return{activeVariationIndex:t,nextVariationIndex:r,previousVariationIndex:o,numberOfVariations:a.variations.length,previousVariationId:null!==o?a.variations[o]:null,nextVariationId:null!==r?a.variations[r]:null}}return{}}),[e,t]);function l(e){(0,je.navigateTo)({url:(0,je.getNewPath)({},`/product/${t}/variation/${e}`)})}return{...c,invalidateVariationList:function(){r("getEntityRecord",["postType",o||"product",t]),a("getProductVariations"),a("getProductVariationsTotalCount")},goToVariation:l,goToNextVariation:function(){return void 0!==c.nextVariationId&&null!==c.nextVariationId&&(l(c.nextVariationId),!0)},goToPreviousVariation:function(){return void 0!==c.previousVariationId&&null!==c.previousVariationId&&(l(c.previousVariationId),!0)}}}function Dh({parentProductType:e,variationId:t,parentId:o}){const{numberOfVariations:r,nextVariationId:a,previousVariationId:c,activeVariationIndex:l,nextVariationIndex:i,previousVariationIndex:s,goToNextVariation:u,goToPreviousVariation:m}=Fh({variationId:t,parentId:o,parentProductType:e}),{previousVariation:d,nextVariation:p}=(0,n.useSelect)((e=>{const{getEntityRecord:t}=e("core");return r&&r>0?{previousVariation:null!==c&&t("postType","product_variation",c),nextVariation:null!==a&&t("postType","product_variation",a)}:{}}),[a,c,r]);return!r||r<2?null:(0,_.createElement)("div",{className:"woocommerce-product-variation-switcher-footer"},d&&(0,_.createElement)(S.Button,{className:"woocommerce-product-variation-switcher-footer__button woocommerce-product-variation-switcher-footer__button-previous",label:(0,D.__)("Previous","woocommerce"),onClick:function(){d&&((0,X.recordEvent)("product_variation_switch_previous",{variation_length:r,variation_id:null==d?void 0:d.id,variation_index:l,previous_variation_index:s}),m())}},(0,_.createElement)(Ge,{icon:At,size:16}),d.image?(0,_.createElement)("img",{alt:d.image.alt||"",src:d.image.src,className:"woocommerce-product-variation-switcher-footer__product-image"}):(0,_.createElement)(Th,{className:"woocommerce-product-variation-switcher-footer__product-image"}),d.name),!d&&null!==c&&(0,_.createElement)(Vh,{position:"left"}),p&&(0,_.createElement)(S.Button,{className:"woocommerce-product-variation-switcher-footer__button woocommerce-product-variation-switcher-footer__button-next",label:(0,D.__)("Next","woocommerce"),onClick:function(){p&&((0,X.recordEvent)("product_variation_switch_next",{variation_length:r,variation_id:null==p?void 0:p.id,variation_index:l,next_variation_index:i}),u())}},p.name,p.image?(0,_.createElement)("img",{alt:p.image.alt||"",src:p.image.src,className:"woocommerce-product-variation-switcher-footer__product-image"}):(0,_.createElement)(Th,{className:"woocommerce-product-variation-switcher-footer__product-image"}),(0,_.createElement)(Ge,{icon:hl,size:16})),!p&&null!==a&&(0,_.createElement)(Vh,{position:"right"}))}const Lh=({text:e,dropdownButtonLabel:t=(0,D.__)("More options","woocommerce"),onButtonClick:o=(()=>{}),controls:r=[],variant:n="primary",defaultOpen:a=!1,popoverProps:{placement:c="bottom-end",position:l="bottom left left",offset:i=0}={placement:"bottom-end",position:"bottom left left",offset:0},className:s})=>(0,_.createElement)(S.Flex,{className:"woocommerce-button-with-dropdown-menu"+((null==s?void 0:s.length)?" "+s:""),justify:"left",gap:0,expanded:!1,role:"group"},(0,_.createElement)(S.FlexItem,{role:"none"},(0,_.createElement)(S.Button,{variant:n,onClick:o,className:"woocommerce-button-with-dropdown-menu__main-button"},e)),(0,_.createElement)(S.FlexItem,{role:"none"},(0,_.createElement)(S.DropdownMenu,{toggleProps:{className:"woocommerce-button-with-dropdown-menu__dropdown-button",variant:n},controls:r,icon:ir,label:t,popoverProps:{placement:c,position:l,offset:i},defaultOpen:a}))),Hh=e=>{const{symbol:t,symbolPosition:o}=e;return{[o.includes("left")?"prefix":"suffix"]:t}};var Rh;!function(e){e.unsaved="unsaved",e.draft="draft",e.instock="instock",e.outofstock="outofstock"}(Rh||(Rh={}));const zh={[Rh.unsaved]:(0,D.__)("Unsaved","woocommerce"),[Rh.draft]:(0,D.__)("Draft","woocommerce"),[Rh.instock]:(0,D.__)("In stock","woocommerce"),[Rh.outofstock]:(0,D.__)("Out of stock","woocommerce")},Ih=e=>e?"draft"===e.status?Rh.draft:"instock"===e.stock_status?Rh.instock:Rh.outofstock:Rh.unsaved,Oh=(e,t,o)=>(null==e?void 0:e.length)?e:o&&o!==oe?o:"simple"===t?(0,D.__)("New standard product","woocommerce"):(0,D.__)("New product","woocommerce"),$h=e=>{var t;return(null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.length)?e.attributes.map((e=>e.option)).join(", "):"#"+e.id},Gh=e=>{const t=$h(e);return t.length>32?t.substring(0,32)+"…":t};function Uh(e){if(xe()("initBlock()",{alternative:"registerProductEditorBlockType()"}),e)return C(e)}const jh=window.wp.apiFetch;var qh=__webpack_require__.n(jh);const Zh=[{matcher:new RegExp("^/wp/v2/product(?!_)"),getReplaceString:()=>"/wc/v3/products"},{matcher:new RegExp("^/wp/v2/product_variation"),replacement:"/wc/v3/products/0/variations",getReplaceString:()=>{const e=(0,je.getQuery)(),t=new RegExp("/product/([0-9]+)/variation/([0-9]+)"),o=(e.path||"").match(t);return o&&3===o.length?"/wc/v3/products/"+o[1]+"/variations":"/wc/v3/products/0/variations"}}],Wh=()=>{qh().use(((e,t)=>{if(e.path&&(()=>{const e=(0,je.getQuery)();return"wc-admin"===(null==e?void 0:e.page)&&["/add-product","/product/"].some((t=>{var o;return null===(o=null==e?void 0:e.path)||void 0===o?void 0:o.startsWith(t)}))})())for(const{matcher:t,getReplaceString:o}of Zh)if(t.test(e.path)){e.path=e.path.replace(t,o());break}return t(e)}))};function Jh(e){return`${e.id}:${e.menu_order}`}function Yh({key:e}){return"string"==typeof e?Number.parseInt(e.split(":")[1],10):Number.MAX_SAFE_INTEGER}function Xh(e,t,{variationsOrder:o}){if(!o||!o[t])return e;const r=o[t];return[...e].sort(((e,t)=>r[e.id]&&r[t.id]?r[e.id]-r[t.id]:0))}const Kh=({variations:e,currentPage:t})=>{const{setValue:o,values:r}=(0,A.useFormContext)();return{sortedVariations:Xh(e,t,r),getVariationKey:Jh,onOrderChange:function(e){const n=Math.min(...e.map(Yh));o("variationsOrder",{...r.variationsOrder,[t]:e.reduce(((e,t,o)=>{const r=function({key:e}){return"string"==typeof e?Number.parseInt(e.split(":")[0],10):0}(t);return{...e,[r]:n+o}}),{})})}}},Qh=function(e){const t=(null==e?void 0:e.postType)||"product",o=(0,f.useEntityId)("postType",t),r=(null==e?void 0:e.id)||o,{editEntityRecord:a}=(0,n.useDispatch)("core"),{isLoading:c,meta_data:l}=(0,n.useSelect)((e=>{const{getEditedEntityRecord:o,hasFinishedResolution:n}=e("core"),{meta_data:a}=o("postType",t,r);return{meta_data:a||[],isLoading:!n("getEditedEntityRecord",["postType",t,r])}}),[r]);return{metadata:l.reduce((function(e,t){return e[t.key]=t.value,e}),{}),update:e=>a("postType",t,r,{meta_data:[...l.filter((t=>-1===e.findIndex((e=>e.key===t.key)))),...e]}),isLoading:c}};(0,n.register)(h),(0,v.addFilter)("editor.BlockEdit","woocommerce/handle-hide-inventory-advanced-collapsible",y)})(),(window.wc=window.wc||{}).productEditor=__webpack_exports__})();