/*! For license information please see index.js.LICENSE.txt */ (()=>{var __webpack_modules__={48358:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},91048:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},12873:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var r=o(69307);const n=(0,r.forwardRef)((function({icon:e,size:t=24,...o},n){return(0,r.cloneElement)(e,{width:t,height:t,...o,ref:n})}))},70521:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})})},19562:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},52123:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})})},40670:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},42358:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})})},17184:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},77095:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},72006:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})})},87461:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},77942:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});const r=o(84913).Z},4423:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},52:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})})},37285:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})},262:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},28275:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})})},72384:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,n.jsx)(r.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,n.jsx)(r.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,n.jsx)(r.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]})},84913:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},71713:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})})},85063:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},50185:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},63641:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},31357:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})})},40953:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})})},78423:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})})},20770:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(r.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"})})},78281:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{d:"M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.348.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.051 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.05-1.18l1.021 1.7.858-.514-1.034-1.723c.442-.313.837-.646 1.184-.977.703-.669 1.22-1.337 1.563-1.839l.002-.003 1.61.914.493-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005a8.29 8.29 0 0 1-.422.689 10.097 10.097 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.544 2.293-2.503 0-4.327-1.132-5.546-2.293a10.099 10.099 0 0 1-1.359-1.599 8.267 8.267 0 0 1-.422-.689l-.003-.005Z"})})},20264:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var r=o(70444),n=o(81514);const a=(0,n.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,n.jsx)(r.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"})})},95590:(e,t,o)=>{"use strict";o.d(t,{tC:()=>$,Vi:()=>Q,v4:()=>re,Ox:()=>Y,h:()=>I});var r={};o.r(r),o.d(r,{closeModal:()=>N,disableComplementaryArea:()=>A,enableComplementaryArea:()=>y,openModal:()=>M,pinItem:()=>k,setDefaultComplementaryArea:()=>x,setFeatureDefaults:()=>B,setFeatureValue:()=>V,toggleFeature:()=>P,unpinItem:()=>S});var n={};o.r(n),o.d(n,{getActiveComplementaryArea:()=>T,isComplementaryAreaLoading:()=>L,isFeatureActive:()=>R,isItemPinned:()=>F,isModalActive:()=>D});var a=o(80225),i=o(55609),c=o(9818),l=o(65736),s=o(48358),u=o(70444),d=o(81514);const m=(0,d.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(u.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"})}),p=(0,d.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(u.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"})});var h=o(69307);const _=window.wp.viewport;var v=o(55815),w=o(94333),g=o(91048),f=o(37180),E=o.n(f);function b(e){return["core/edit-post","core/edit-site"].includes(e)?(E()(`${e} interface scope`,{alternative:"core interface scope",hint:"core/edit-post and core/edit-site are merging.",version:"6.6"}),"core"):e}function C(e,t){return"core"===e&&"edit-site/template"===t?(E()("edit-site/template sidebar",{alternative:"edit-post/document",version:"6.6"}),"edit-post/document"):"core"===e&&"edit-site/block-inspector"===t?(E()("edit-site/block-inspector sidebar",{alternative:"edit-post/block",version:"6.6"}),"edit-post/block"):t}const x=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e=b(e),area:t=C(e,t)}),y=(e,t)=>({registry:o,dispatch:r})=>{t&&(e=b(e),t=C(e,t),o.select(v.store).get(e,"isComplementaryAreaVisible")||o.dispatch(v.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},A=e=>({registry:t})=>{e=b(e),t.select(v.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(v.store).set(e,"isComplementaryAreaVisible",!1)},k=(e,t)=>({registry:o})=>{if(!t)return;e=b(e),t=C(e,t);const r=o.select(v.store).get(e,"pinnedItems");!0!==r?.[t]&&o.dispatch(v.store).set(e,"pinnedItems",{...r,[t]:!0})},S=(e,t)=>({registry:o})=>{if(!t)return;e=b(e),t=C(e,t);const r=o.select(v.store).get(e,"pinnedItems");o.dispatch(v.store).set(e,"pinnedItems",{...r,[t]:!1})};function P(e,t){return function({registry:o}){E()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),o.dispatch(v.store).toggle(e,t)}}function V(e,t,o){return function({registry:r}){E()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(v.store).set(e,t,!!o)}}function B(e,t){return function({registry:o}){E()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),o.dispatch(v.store).setDefaults(e,t)}}function M(e){return{type:"OPEN_MODAL",name:e}}function N(){return{type:"CLOSE_MODAL"}}const T=(0,c.createRegistrySelector)((e=>(t,o)=>{o=b(o);const r=e(v.store).get(o,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[o]})),L=(0,c.createRegistrySelector)((e=>(t,o)=>{o=b(o);const r=e(v.store).get(o,"isComplementaryAreaVisible"),n=t?.complementaryAreas?.[o];return r&&void 0===n})),F=(0,c.createRegistrySelector)((e=>(t,o,r)=>{var n;r=C(o=b(o),r);const a=e(v.store).get(o,"pinnedItems");return null===(n=a?.[r])||void 0===n||n})),R=(0,c.createRegistrySelector)((e=>(t,o,r)=>(E()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(v.store).get(o,r))));function D(e,t){return e.activeModal===t}const H=(0,c.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:o,area:r}=t;return e[o]?e:{...e,[o]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:o,area:r}=t;return{...e,[o]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),I=(0,c.createReduxStore)("core/interface",{reducer:H,actions:r,selectors:n});(0,c.register)(I);const j=(0,o(98817).withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`}))),z=j((function({as:e=i.Button,scope:t,identifier:o,icon:r,selectedIcon:n,name:a,...l}){const s=e,u=(0,c.useSelect)((e=>e(I).getActiveComplementaryArea(t)===o),[o,t]),{enableComplementaryArea:m,disableComplementaryArea:p}=(0,c.useDispatch)(I);return(0,d.jsx)(s,{icon:n&&u?n:r,"aria-controls":o.replace("/",":"),onClick:()=>{u?p(t):m(t,o)},...l})})),O=({smallScreenTitle:e,children:t,className:o,toggleButtonProps:r})=>{const n=(0,d.jsx)(z,{icon:g.Z,...r});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"components-panel__header interface-complementary-area-header__small",children:[e&&(0,d.jsx)("h2",{className:"interface-complementary-area-header__small-title",children:e}),n]}),(0,d.jsxs)("div",{className:(0,a.Z)("components-panel__header","interface-complementary-area-header",o),tabIndex:-1,children:[t,n]})]})},G=()=>{};function Z({name:e,as:t=i.Button,onClick:o,...r}){return(0,d.jsx)(i.Fill,{name:e,children:({onClick:e})=>(0,d.jsx)(t,{onClick:o||e?(...t)=>{(o||G)(...t),(e||G)(...t)}:void 0,...r})})}Z.Slot=function({name:e,as:t=i.ButtonGroup,fillProps:o={},bubblesVirtually:r,...n}){return(0,d.jsx)(i.Slot,{name:e,bubblesVirtually:r,fillProps:o,children:e=>{if(!h.Children.toArray(e).length)return null;const o=[];h.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&o.push(t)}));const r=h.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&o.includes(e.props.__unstableTarget)?null:e));return(0,d.jsx)(t,{...n,children:r})}})};const $=Z,U=({__unstableExplicitMenuItem:e,__unstableTarget:t,...o})=>(0,d.jsx)(i.MenuItem,{...o});function q({scope:e,target:t,__unstableExplicitMenuItem:o,...r}){return(0,d.jsx)(z,{as:r=>(0,d.jsx)($,{__unstableExplicitMenuItem:o,__unstableTarget:`${e}/${t}`,as:U,name:`${e}/plugin-more-menu`,...r}),role:"menuitemcheckbox",selectedIcon:s.Z,name:t,scope:e,...r})}function W({scope:e,...t}){return(0,d.jsx)(i.Fill,{name:`PinnedItems/${e}`,...t})}W.Slot=function({scope:e,className:t,...o}){return(0,d.jsx)(i.Slot,{name:`PinnedItems/${e}`,...o,children:e=>e?.length>0&&(0,d.jsx)("div",{className:(0,a.Z)(t,"interface-pinned-items"),children:e})})};const Y=W,J={open:{width:280},closed:{width:0},mobileOpen:{width:"100vw"}};function X({activeArea:e,isActive:t,scope:o,children:r,className:n,id:a}){const c=(0,w.useReducedMotion)(),l=(0,w.useViewportMatch)("medium","<"),s=(0,w.usePrevious)(e),u=(0,w.usePrevious)(t),[,m]=(0,h.useState)({});(0,h.useEffect)((()=>{m({})}),[t]);const p={type:"tween",duration:c||l||s&&e&&e!==s?0:.3,ease:[.6,0,.4,1]};return(0,d.jsx)(i.Fill,{name:`ComplementaryArea/${o}`,children:(0,d.jsx)(i.__unstableAnimatePresence,{initial:!1,children:(u||t)&&(0,d.jsx)(i.__unstableMotion.div,{variants:J,initial:"closed",animate:l?"mobileOpen":"open",exit:"closed",transition:p,className:"interface-complementary-area__fill",children:(0,d.jsx)("div",{id:a,className:n,style:{width:l?"100vw":280},children:r})})})})}const K=j((function({children:e,className:t,closeLabel:o=(0,l.__)("Close plugin"),identifier:r,header:n,headerClassName:u,icon:w,isPinnable:g=!0,panelClassName:f,scope:E,name:b,smallScreenTitle:C,title:x,toggleShortcut:y,isActiveByDefault:A}){const[k,S]=(0,h.useState)(!1),{isLoading:P,isActive:V,isPinned:B,activeArea:M,isSmall:N,isLarge:T,showIconLabels:L}=(0,c.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:o,isItemPinned:n}=e(I),{get:a}=e(v.store),i=t(E);return{isLoading:o(E),isActive:i===r,isPinned:n(E,r),activeArea:i,isSmall:e(_.store).isViewportMatch("< medium"),isLarge:e(_.store).isViewportMatch("large"),showIconLabels:a("core","showIconLabels")}}),[r,E]);!function(e,t,o,r,n){const a=(0,h.useRef)(!1),i=(0,h.useRef)(!1),{enableComplementaryArea:l,disableComplementaryArea:s}=(0,c.useDispatch)(I);(0,h.useEffect)((()=>{r&&n&&!a.current?(s(e),i.current=!0):i.current&&!n&&a.current?(i.current=!1,l(e,t)):i.current&&o&&o!==t&&(i.current=!1),n!==a.current&&(a.current=n)}),[r,n,e,t,o,s,l])}(E,r,M,V,N);const{enableComplementaryArea:F,disableComplementaryArea:R,pinItem:D,unpinItem:H}=(0,c.useDispatch)(I);if((0,h.useEffect)((()=>{A&&void 0===M&&!N?F(E,r):void 0===M&&N&&R(E,r),S(!0)}),[M,A,E,r,N,F,R]),k)return(0,d.jsxs)(d.Fragment,{children:[g&&(0,d.jsx)(Y,{scope:E,children:B&&(0,d.jsx)(z,{scope:E,identifier:r,isPressed:V&&(!L||T),"aria-expanded":V,"aria-disabled":P,label:x,icon:L?s.Z:w,showTooltip:!L,variant:L?"tertiary":void 0,size:"compact"})}),b&&g&&(0,d.jsx)(q,{target:b,scope:E,icon:w,children:x}),(0,d.jsxs)(X,{activeArea:M,isActive:V,className:(0,a.Z)("interface-complementary-area",t),scope:E,id:r.replace("/",":"),children:[(0,d.jsx)(O,{className:u,closeLabel:o,onClose:()=>R(E),smallScreenTitle:C,toggleButtonProps:{label:o,size:"small",shortcut:y,scope:E,identifier:r},children:n||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h2",{className:"interface-complementary-area-header__title",children:x}),g&&(0,d.jsx)(i.Button,{className:"interface-complementary-area__pin-unpin-item",icon:B?m:p,label:B?(0,l.__)("Unpin from toolbar"):(0,l.__)("Pin to toolbar"),onClick:()=>(B?H:D)(E,r),isPressed:B,"aria-expanded":B,size:"compact"})]})}),(0,d.jsx)(i.Panel,{className:f,children:e})]})]})}));K.Slot=function({scope:e,...t}){return(0,d.jsx)(i.Slot,{name:`ComplementaryArea/${e}`,...t})};const Q=K;function ee({children:e,className:t,ariaLabel:o,as:r="div",...n}){return(0,d.jsx)(r,{className:(0,a.Z)("interface-navigable-region",t),"aria-label":o,role:"region",tabIndex:"-1",...n,children:e})}const te={type:"tween",duration:.25,ease:[.6,0,.4,1]},oe={hidden:{opacity:1,marginTop:-60},visible:{opacity:1,marginTop:0},distractionFreeHover:{opacity:1,marginTop:0,transition:{...te,delay:.2,delayChildren:.2}},distractionFreeHidden:{opacity:0,marginTop:-60},distractionFreeDisabled:{opacity:0,marginTop:0,transition:{...te,delay:.8,delayChildren:.8}}},re=(0,h.forwardRef)((function({isDistractionFree:e,footer:t,header:o,editorNotices:r,sidebar:n,secondarySidebar:c,content:s,actions:u,labels:m,className:p,enableRegionNavigation:_=!0,shortcuts:v},g){const[f,E]=(0,w.useResizeObserver)(),b=(0,w.useViewportMatch)("medium","<"),C={type:"tween",duration:(0,w.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},x=(0,i.__unstableUseNavigateRegions)(v);!function(e){(0,h.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 y={header:(0,l._x)("Header","header landmark area"),body:(0,l.__)("Content"),secondarySidebar:(0,l.__)("Block Library"),sidebar:(0,l.__)("Settings"),actions:(0,l.__)("Publish"),footer:(0,l.__)("Footer"),...m};return(0,d.jsxs)("div",{..._?x:{},ref:(0,w.useMergeRefs)([g,_?x.ref:void 0]),className:(0,a.Z)(p,"interface-interface-skeleton",x.className,!!t&&"has-footer"),children:[(0,d.jsxs)("div",{className:"interface-interface-skeleton__editor",children:[(0,d.jsx)(i.__unstableAnimatePresence,{initial:!1,children:!!o&&(0,d.jsx)(ee,{as:i.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":y.header,initial:e?"distractionFreeHidden":"hidden",whileHover:e?"distractionFreeHover":"visible",animate:e?"distractionFreeDisabled":"visible",exit:e?"distractionFreeHidden":"hidden",variants:oe,transition:C,children:o})}),e&&(0,d.jsx)("div",{className:"interface-interface-skeleton__header",children:r}),(0,d.jsxs)("div",{className:"interface-interface-skeleton__body",children:[(0,d.jsx)(i.__unstableAnimatePresence,{initial:!1,children:!!c&&(0,d.jsx)(ee,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:y.secondarySidebar,as:i.__unstableMotion.div,initial:"closed",animate:b?"mobileOpen":"open",exit:"closed",variants:{open:{width:E.width},closed:{width:0},mobileOpen:{width:"100vw"}},transition:C,children:(0,d.jsxs)("div",{style:{position:"absolute",width:b?"100vw":"fit-content",height:"100%",right:0},children:[f,c]})})}),(0,d.jsx)(ee,{className:"interface-interface-skeleton__content",ariaLabel:y.body,children:s}),!!n&&(0,d.jsx)(ee,{className:"interface-interface-skeleton__sidebar",ariaLabel:y.sidebar,children:n}),!!u&&(0,d.jsx)(ee,{className:"interface-interface-skeleton__actions",ariaLabel:y.actions,children:u})]})]}),!!t&&(0,d.jsx)(ee,{className:"interface-interface-skeleton__footer",ariaLabel:y.footer,children:t})]})}))},37141:(e,t,o)=>{"use strict";o.d(t,{c:()=>c});var r=o(69307),n=o(19562),a=o(55609),i=o(65736);function c({dropdownButtonLabel:e=(0,i.__)("More options","woocommerce"),controls:t,defaultOpen:o=!1,popoverProps:{placement:c="bottom-end",position:l="bottom left left",offset:s=0}={placement:"bottom-end",position:"bottom left left",offset:0},className:u,renderMenu:d,onToggle:m,...p}){return(0,r.createElement)(a.Flex,{className:"woocommerce-button-with-dropdown-menu"+((null==u?void 0:u.length)?" "+u:""),justify:"left",gap:0,expanded:!1,role:"group"},(0,r.createElement)(a.FlexItem,{role:"none"},(0,r.createElement)(a.Button,{...p,className:"woocommerce-button-with-dropdown-menu__main-button"})),(0,r.createElement)(a.FlexItem,{role:"none"},(0,r.createElement)(a.DropdownMenu,{toggleProps:{className:"woocommerce-button-with-dropdown-menu__dropdown-button",variant:p.variant},controls:t,icon:n.Z,label:e,popoverProps:{placement:c,position:l,offset:s},defaultOpen:o,onToggle:m},d)))}},4362:(e,t,o)=>{"use strict";o.d(t,{H:()=>y});var r=o(55609),n=o(37798),a=o(9818),i=o(69307),c=o(10431),l=o(14599),s=o(81747),u=o(86492),d=o(54428),m=o(77295),p=o(46664),h=o(65736),_=o(24705),v=o(30979),w=o(56930),g=o(74617),f=o(37141),E=o(43586),b=o(77888);function C(e,t){const{createSuccessNotice:o}=(0,a.dispatch)("core/notices"),r=function(e,t){return"future"===e.status?(0,h.sprintf)((0,h.__)("Product scheduled for %s.","woocommerce"),(0,b.xI)(`${e.date_created_gmt}+00:00`)):"publish"===t||"future"===t?(0,h.__)("Product updated.","woocommerce"):(0,h.__)("Product published.","woocommerce")}(e,t);o(r,{icon:"🎉",actions:[{label:(0,h.__)("View in store","woocommerce"),url:e.permalink,onClick(t){t.preventDefault(),window.open(e.permalink,"_blank")}}]})}function x({postType:e,visibleTab:t="general",...o}){const{isScheduling:s,isScheduled:m,schedule:_,date:b,formattedDate:x}=(0,w.Q)(e),[y,A]=(0,i.useState)(),{copyToDraft:k,trash:S}=(0,v.j)(e),{createErrorNotice:P,createSuccessNotice:V}=(0,a.useDispatch)("core/notices"),[,,B]=(0,n.useEntityProp)("postType",e,"status"),{getProductErrorMessageAndProps:M}=(0,u.U)();function N(e){_(e).then((e=>{(0,d.E)("product_schedule",e),C(e)})).catch((async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)})).finally((()=>{A(void 0)}))}return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.c,{...o,onToggle:e=>{var t;e&&(0,l.recordEvent)("product_publish_dropdown_open",{source:p.RG}),null===(t=o.onToggle)||void 0===t||t.call(o,e)},renderMenu:function({onClose:e}){return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(r.MenuGroup,null,m?(0,i.createElement)(i.Fragment,null,(0,i.createElement)(r.MenuItem,{onClick:()=>{N(),e&&e()}},(0,h.__)("Publish now","woocommerce")),(0,i.createElement)(r.MenuItem,{info:x,onClick:()=>{A("edit"),e&&e()}},(0,h.__)("Edit schedule","woocommerce"))):(0,i.createElement)(r.MenuItem,{onClick:()=>{(0,l.recordEvent)("product_schedule_publish",{source:p.RG}),A("schedule"),e&&e()}},(0,h.__)("Schedule publish","woocommerce"))),"trash"!==B&&(0,i.createElement)(r.MenuGroup,null,(0,i.createElement)(r.MenuItem,{onClick:()=>{k().then((e=>{(0,d.E)("product_copied_to_draft",e),V((0,h.__)("Product successfully duplicated","woocommerce"));const t=(0,c.getNewPath)({},`/product/${e.id}`);(0,c.navigateTo)({url:t})})).catch((async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)})),e&&e()}},(0,h.__)("Copy to a new draft","woocommerce")),(0,i.createElement)(r.MenuItem,{isDestructive:!0,onClick:()=>{S().then((e=>{(0,d.E)("product_delete",e),V((0,h.__)("Product successfully deleted","woocommerce"));const t=(0,g.getAdminLink)("edit.php?post_type=product");(0,c.navigateTo)({url:t})})).catch((async e=>{const{message:o,errorProps:r}=await M(e,t);P(o,r)})),e&&e()}},(0,h.__)("Move to trash","woocommerce"))))}}),y&&(0,i.createElement)(E.m,{postType:e,value:"edit"===y?b:void 0,isScheduling:s,onCancel:()=>A(void 0),onSchedule:N}))}function y({productType:e="product",isMenuButton:t,isPrePublishPanelVisible:o=!0,visibleTab:g="general",...f}){const{createErrorNotice:E}=(0,a.useDispatch)("core/notices"),{maybeShowFeedbackBar:b}=(0,m.U)(),{openPrepublishPanel:y}=(0,a.useDispatch)(s.h),{getProductErrorMessageAndProps:A}=(0,u.U)(),[k,,S]=(0,n.useEntityProp)("postType",e,"status"),P=function({productType:e="product",disabled:t,onClick:o,onPublishSuccess:r,onPublishError:a,...i}){const{isValidating:c,isDirty:l,isPublishing:s,publish:u}=(0,v.j)(e),[,,d]=(0,n.useEntityProp)("postType",e,"status"),{isScheduled:m}=(0,w.Q)(e),p=s||c,g="draft"!==d&&(t||p||!l),f=()=>u().then(r).catch(a);return(0,_.useShortcut)("core/editor/save",(e=>{e.preventDefault(),g||"publish"!==d&&"future"!==d||f()})),{children:m?(0,h.__)("Schedule","woocommerce"):"publish"===d||"future"===d?(0,h.__)("Update","woocommerce"):(0,h.__)("Publish","woocommerce"),...i,isBusy:p,"aria-disabled":g,variant:"primary",onClick:function(e){var t;g?null===(t=e.preventDefault)||void 0===t||t.call(e):(o&&o(e),f())}}}({productType:e,...f,onPublishSuccess(e){if(("publish"===e.status||"future"===e.status)&&(0,d.E)("product_update",e),C(e,S),b(),"auto-draft"===S||"draft"===S){const t=(0,c.getNewPath)({},`/product/${e.id}`);(0,c.navigateTo)({url:t})}},async onPublishError(e){const{message:t,errorProps:o}=await A(e,g);E(t,o)}});if("product"===e&&t){function V(t){return(0,i.createElement)(x,{...t,postType:e,visibleTab:g})}if("publish"!==k&&"future"!==k&&window.wcAdminFeatures["product-pre-publish-modal"]&&o){function B(e){P["aria-disabled"]?e.preventDefault():((0,l.recordEvent)("product_prepublish_panel",{source:p.RG,action:"view"}),y())}return(0,i.createElement)(x,{...P,postType:e,controls:void 0,onClick:B,renderMenu:V,visibleTab:g})}return(0,i.createElement)(x,{...P,postType:e,controls:void 0,renderMenu:V,visibleTab:g})}return(0,i.createElement)(r.Button,{...P})}},88061:(e,t,o)=>{"use strict";o.d(t,{ZX:()=>r,ai:()=>n,hB:()=>a});const r="woocommerce-product-editor-settings-sidebar",n="woocommerce/product-editor/modal-block-editor/sidebar",a=`${n}/plugin-more-menu`},66029:(e,t,o)=>{"use strict";o.d(t,{Q:()=>i});var r=o(69307),n=o(95590),a=o(88061);function i({className:e,...t}){return(0,r.createElement)(n.Vi,{panelClassName:e,className:"woocommerce-iframe-editor__sidebar",scope:a.ai,...t})}},948:(e,t,o)=>{"use strict";o.d(t,{E:()=>s});var r=o(17855),n=o.n(r),a=o(55609),i=o(69307),c=o(65736),l=o(37285);const s=({as:e=a.DropdownMenu,className:t,label:o=(0,c.__)("Options","woocommerce"),popoverProps:r,toggleProps:s,children:u})=>(0,i.createElement)(e,{className:n()("interface-more-menu-dropdown",t),icon:l.Z,label:o,popoverProps:{placement:"bottom-end",...r,className:n()("interface-more-menu-dropdown__content",null==r?void 0:r.className)},toggleProps:{tooltipPosition:"bottom",...s,size:"compact"}},(({onClose:e})=>u(e)))},43586:(e,t,o)=>{"use strict";o.d(t,{m:()=>u});var r=o(55609),n=o(69307),a=o(65736),i=o(17855),c=o.n(i),l=o(18466),s=o(22234);function u({postType:e,title:t=(0,a.__)("Schedule product","woocommerce"),description:o=(0,a.__)("Decide when this product should become visible to customers.","woocommerce"),value:i,className:u,onCancel:d,onSchedule:m,isScheduling:p,...h}){const[_,v]=(0,n.useState)((()=>null!=i?i:(0,l.L)()));function w(e){v(null!=e?e:"")}return(0,n.createElement)(r.Modal,{...h,title:t,className:c()(u,"woocommerce-schedule-publish-modal"),onRequestClose:()=>null==d?void 0:d()},(0,n.createElement)("p",{className:"woocommerce-schedule-publish-modal__description"},o),(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__content"},(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__button-now"},(0,n.createElement)("strong",null,(0,a.__)("Publish","woocommerce")),(0,n.createElement)(r.Button,{variant:"link",onClick:()=>w((0,l.L)())},(0,a.__)("Now","woocommerce"))),(0,n.createElement)(r.DateTimePicker,{currentDate:_,onChange:w,is12Hour:(0,s.$)()})),(0,n.createElement)("div",{className:"woocommerce-schedule-publish-modal__buttons"},(0,n.createElement)(r.Button,{variant:"tertiary",onClick:d},(0,a.__)("Cancel","woocommerce")),(0,n.createElement)(r.Button,{variant:"primary",isBusy:p,disabled:p,onClick:()=>null==m?void 0:m(_)},(0,a.__)("Schedule","woocommerce"))))}},46664:(e,t,o)=>{"use strict";o.d(t,{B1:()=>s,D9:()=>_,EI:()=>n,QO:()=>w,RG:()=>h,UM:()=>l,Ux:()=>v,VY:()=>u,at:()=>i,dE:()=>a,ec:()=>c,ii:()=>p,o0:()=>m,rJ:()=>r,zi:()=>d});const r="woocommerce_product_editor_show_feedback_bar",n="product_editor",a="woocommerce_single_variation_notice_dismissed",i="woocommerce_show_prepublish_checks_enabled",c="[^-\\d\\%s]+",l="[%s](?=%s*[%s])",s="__ADD_NEW_SHIPPING_CLASS_OPTION__",u=32,d="tab/general",m=`${d}/details`,p="product-details",h="product-block-editor-v1",_="woocommerce/product-editor",v=5,w=[5,10,25]},31260:(e,t,o)=>{"use strict";o.d(t,{M:()=>a});var r=o(69307),n=o(95657);function a(){const e=(0,r.useContext)(n._),[t,o]=(0,r.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)}))),focusByValidatorId:async function(t){const o=await e.getFieldByValidatorId(t);if(!o)return;const r=o.closest(".wp-block-woocommerce-product-tab__content"),n=new MutationObserver((()=>{r&&"none"!==getComputedStyle(r).display&&(o.focus(),n.disconnect())}));r&&n.observe(r,{attributes:!0})},getFieldByValidatorId:e.getFieldByValidatorId}}},95657:(e,t,o)=>{"use strict";o.d(t,{_:()=>r});const r=(0,o(69307).createContext)({errors:{},getFieldByValidatorId:()=>({}),registerValidator:()=>()=>{},unRegisterValidator:()=>()=>{},validateField:()=>Promise.resolve(void 0),validateAll:()=>Promise.resolve({})})},86492:(e,t,o)=>{"use strict";o.d(t,{U:()=>s});var r=o(65736),n=o(69307),a=o(10431),i=o(31260),c=o(9818);function l(e="",t,o,n=(0,r.__)("View error","woocommerce")){return{explicitDismiss:!0,actions:[{label:n,onClick:async()=>{var r;await o(t),(0,a.navigateTo)({url:(r=e,(0,a.getNewPath)({tab:r}))})}}]}}const s=()=>{const{focusByValidatorId:e,getFieldByValidatorId:t}=(0,i.M)(),{getClientIdByField:o,getParentTabId:a,getParentTabIdByBlockName:s}=function(){function e(e){const[t]=(0,c.select)("core/block-editor").getBlockParentsByBlockName(e,"woocommerce/product-tab",!0);if(!t)return null;const{attributes:o}=(0,c.select)("core/block-editor").getBlock(t);return null==o?void 0:o.id}return{getClientIdByField:function(e){const t=e.closest("[data-block]");return null==t?void 0:t.dataset.block},getParentTabId:function(t){return t?e(t):null},getParentTabIdByBlockName:function(t){const o=(0,c.select)("core/block-editor").getBlocksByName(t);return o.length?e(o[0]):null}}}();return{getProductErrorMessageAndProps:(0,n.useCallback)((async(n,i)=>{const c={message:"",errorProps:{}},{code:u,message:d,validatorId:m=""}=n,p=await async function(e){if(!e)return null;const r=await t(e);return r?o(r):null}(m),h=a(p);switch(u){case"variable_product_no_variation_prices":c.message=d,"variations"!==i&&null!==h&&(c.errorProps=l(h,m,e));break;case"product_form_field_error":c.message=d,i!==h&&null!==h&&(c.errorProps=l(h,m,e));break;case"product_invalid_sku":c.message=(0,r.__)("Invalid or duplicated SKU.","woocommerce");const t=s("woocommerce/product-sku-field");i!==t&&null!==t&&(c.errorProps=l(t,"sku",e,(0,r.__)("View SKU field","woocommerce")));break;case"product_invalid_global_unique_id":c.message=(0,r.__)("Invalid or duplicated GTIN, UPC, EAN or ISBN.","woocommerce");const o=h||"inventory";i!==o&&(c.errorProps=l(o,"global_unique_id",e,(0,r.__)("View identifier field","woocommerce")));break;case"product_create_error":c.message=(0,r.__)("Failed to create product.","woocommerce");break;case"product_publish_error":c.message=(0,r.__)("Failed to publish product.","woocommerce");break;case"product_preview_error":c.message=(0,r.__)("Failed to preview product.","woocommerce");break;default:c.message=(0,r.__)("Failed to save product.","woocommerce")}return c}),[])}}},77295:(e,t,o)=>{"use strict";o.d(t,{U:()=>i});var r=o(9818),n=o(67221),a=o(46664);const i=()=>{const{updateOptions:e}=(0,r.useDispatch)(n.OPTIONS_STORE_NAME),{shouldShowFeedbackBar:t}=(0,r.useSelect)((e=>{var t;const{getOption:o,hasFinishedResolution:r}=e(n.OPTIONS_STORE_NAME),i=o(a.rJ);return{shouldShowFeedbackBar:!!r("getOption",[a.rJ])&&(null===(t=window.wcTracks)||void 0===t?void 0:t.isEnabled)&&"yes"===i}}),[]);return{shouldShowFeedbackBar:t,maybeShowFeedbackBar:async()=>{var t;const{showFeedbackBarOption:o}=await(async()=>{const{getOption:e}=(0,r.resolveSelect)(n.OPTIONS_STORE_NAME);return{showFeedbackBarOption:await e(a.rJ)}})();(null===(t=window.wcTracks)||void 0===t?void 0:t.isEnabled)&&"no"!==o&&e({[a.rJ]:"yes"})},hideFeedbackBar:()=>{e({[a.rJ]:"no"})}}}},30979:(e,t,o)=>{"use strict";o.d(t,{j:()=>u});var r=o(37798),n=o(9818),a=o(69307),i=o(67221),c=o(31260),l=o(90462),s=o(99655);function u(e){const[t]=(0,r.useEntityProp)("postType",e,"id"),[o,,u]=(0,r.useEntityProp)("postType",e,"name"),[d]=(0,r.useEntityProp)("postType",e,"status"),[m,p]=(0,a.useState)(!1),[h,_]=(0,a.useState)(!1),{isValidating:v,validate:w}=(0,c.M)(),{isDirty:g}=(0,n.useSelect)((o=>({isDirty:o("core").hasEditsForEntityRecord("postType",e,t)})),[e,t]);async function f(o={}){try{p(!0),await w(o);const{saveEntityRecord:a}=(0,n.dispatch)(r.store),{blocks:i,content:c,selection:l,...s}=(0,n.select)(r.store).getEntityRecordEdits("postType",e,t);return await a("postType",e,{...s,...o,id:t},{throwOnError:!0})}catch(e){throw(0,s.U)(e,d)}finally{p(!1)}}return{isValidating:v,isDirty:g,isSaving:m,isPublishing:m,isTrashing:h,save:f,publish:async function(e={}){return f("publish"===d||"future"===d?e:{status:"publish",...e})},trash:async function(o=!1){try{_(!0),await w();const{deleteEntityRecord:r,saveEditedEntityRecord:a}=(0,n.dispatch)("core");return await a("postType",e,t,{throwOnError:!0}),await r("postType",e,t,{force:o,throwOnError:!0})}catch(e){throw(0,s.U)(e,d)}finally{_(!1)}},copyToDraft:async function(){try{const e=l.Ie===u&&o!==u?{name:o}:{};return p(!0),await(0,n.dispatch)(i.PRODUCTS_STORE_NAME).duplicateProduct(t,e)}catch(e){throw(0,s.U)(e,d)}finally{p(!1)}}}}},56930:(e,t,o)=>{"use strict";o.d(t,{Q:()=>s});var r=o(37798),n=o(69771),a=o(18466),i=o(77888),c=o(30979);const l="Y-m-d\\TH:i:s";function s(e){const{isSaving:t,save:o}=(0,c.j)(e),[s,u]=(0,r.useEntityProp)("postType",e,"date_created_gmt"),[d,m,p]=(0,r.useEntityProp)("postType",e,"status"),h=`${s}+00:00`,_=(0,a.L)(h);function v(e){const t=(0,n.getDate)(null!=e?e:null),o=(0,n.date)(l,t,"GMT");let r=p;return(0,n.isInTheFuture)(t.toISOString())?r="future":"future"===p&&(r="publish"),{status:r,date_created_gmt:o}}return{isScheduling:t,isScheduled:"future"===d||(0,n.isInTheFuture)(_),date:_,formattedDate:(0,i.xI)(h),setDate:async function(e){const t=v(e);u(t.date_created_gmt),m(t.status)},schedule:async function(e){const t=v(e);return o(t)}}}},81747:(e,t,o)=>{"use strict";o.d(t,{Z:()=>h,h:()=>m});var r=o(9818);const n="MODAL_EDITOR_OPEN",a="MODAL_EDITOR_CLOSE",i="MODAL_EDITOR_SET_BLOCKS",c="MODAL_EDITOR_CONTENT_HAS_CHANGED",l="PANEL_PREPUBLISH_OPEN",s="PANEL_PREPUBLISH_CLOSE",u={openModalEditor:()=>({type:n}),closeModalEditor:()=>({type:a}),setModalEditorBlocks:e=>({type:i,blocks:e}),setModalEditorContentHasChanged:e=>({type:c,hasChanged:e}),isModalEditorOpen:()=>({type:Boolean}),openPrepublishPanel:()=>({type:l}),closePrepublishPanel:()=>({type:s})},d={modalEditor:{isOpen:!1,blocks:[],hasChanged:!1},prepublishPanel:{isOpen:!1}},m="woo/product-editor-ui",p=(0,r.createReduxStore)(m,{actions:u,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 n:return{...e,modalEditor:{...e.modalEditor,isOpen:!0}};case a:return{...e,modalEditor:{...e.modalEditor,isOpen:!1}};case i:return{...e,modalEditor:{...e.modalEditor,blocks:t.blocks||[]}};case c:return{...e,modalEditor:{...e.modalEditor,hasChanged:(null==t?void 0:t.hasChanged)||!1}};case l:return{...e,prepublishPanel:{isOpen:!0}};case s:return{...e,prepublishPanel:{isOpen:!1}}}return e}});function h(){(0,r.register)(p)}},90462:(e,t,o)=>{"use strict";o.d(t,{Ie:()=>a,VY:()=>n,aT:()=>r});const r="[^-0-9%s1%s2]",n=32,a="AUTO-DRAFT"},77888:(e,t,o)=>{"use strict";o.d(t,{X2:()=>u,e1:()=>s,u1:()=>l,xI:()=>d});var r=o(69771),n=o(65736),a=o(14780),i=o(49400),c=o(55846);const l="Y-m-d\\TH:i:s";function s(e,t){const{formats:o}=(0,r.__experimentalGetSettings)(),a=(0,n.sprintf)((0,n._x)("F j, Y %s","product schedule full date format","woocommerce"),o.time);return(0,r.dateI18n)(null!=t?t:a,e,void 0)}function u(e){const t=(0,a.s)(),o=s(e);return(0,n.isRTL)()?`${t} ${o}`:`${o} ${t}`}function d(e){const{formats:t}=(0,r.__experimentalGetSettings)(),o=(0,r.getDate)(e),a=(0,r.getDate)(null);if((0,i.K)(o,a)&&!(0,r.isInTheFuture)(e))return(0,n.__)("Immediately","woocommerce");if(!(0,c.Z)(a))return u(e);if((0,i.K)(o,a))return(0,n.sprintf)((0,n.__)("Today at %s","woocommerce"),s(e,t.time));const l=new Date(a);return l.setDate(l.getDate()+1),(0,i.K)(o,l)?(0,n.sprintf)((0,n.__)("Tomorrow at %s","woocommerce"),s(e,t.time)):o.getFullYear()===a.getFullYear()?s(o,(0,n.sprintf)((0,n._x)("F j %s","product schedule date format without year","woocommerce"),t.time)):s(e)}},18466:(e,t,o)=>{"use strict";o.d(t,{L:()=>n});var r=o(69771);function n(e){const t=(0,r.getDate)(null!=e?e:null);return(0,r.date)("Y-m-d\\TH:i:s",t,void 0)}},14780:(e,t,o)=>{"use strict";o.d(t,{s:()=>n});var r=o(69771);function n(){var e;const{timezone:t}=(0,r.__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}`}},49400:(e,t,o)=>{"use strict";function r(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}o.d(t,{K:()=>r})},22234:(e,t,o)=>{"use strict";o.d(t,{$:()=>n});var r=o(69771);function n(){const e=(0,r.__experimentalGetSettings)();return/a(?!\\)/i.test(e.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""))}},55846:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var r=o(69771);function n(e){const{timezone:t}=(0,r.__experimentalGetSettings)();return Number(t.offset)===e.getTimezoneOffset()/60*-1}},99655:(e,t,o)=>{"use strict";function r(e,t){if(e.code)return e;const o=Object.values(e).find((e=>void 0!==e));return"variations"in e&&e.variations?{...o,code:"variable_product_no_variation_prices"}:void 0!==o?{...o,code:"product_form_field_error"}:{code:"publish"===t||"future"===t?"product_publish_error":"product_create_error"}}o.d(t,{U:()=>r})},85547:(e,t,o)=>{"use strict";o.d(t,{B:()=>n});var r=o(74617);function n(){const e=(0,r.getSetting)("admin");return e.gutenberg_version?parseFloat(null==e?void 0:e.gutenberg_version):0}},54428:(e,t,o)=>{"use strict";o.d(t,{E:()=>i});var r=o(14599);const n={cross_sell_ids:"cross_sells",reviews_allowed:"enable_reviews",downloadable:"is_downloadable",virtual:"is_virtual",images:"product_gallery",upsell_ids:"upsells"},a=["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 i(e,t){const{id:o,type:i}=t,c={product_id:o,source:"product-blocks-editor-v1",product_type:i};t.parent_id>0&&(t.note=t.description,delete t.description);for(const e of Object.keys(t))if(a.includes(e)){const o=n[e]||e;Array.isArray(t[e])||"string"==typeof t[e]?c[o]=t[e].length?"yes":"no":c[o]=t[e]?"yes":"no"}if(t.downloadable||t.virtual){const{downloadable:e,virtual:o}=t,r={virtual:o,downloadable:e};c.product_type_options=Object.keys(r).filter((e=>r[e])).join(",")}"images"in t&&(c.product_image=t.images.length?"yes":"no"),t.dimensions&&(c.dimensions=t.dimensions.length.length||t.dimensions.width.length||t.dimensions.height.length?"yes":"no"),(0,r.recordEvent)(e,c)}},17855:(e,t)=>{var o;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;te.length)&&(t=e.length);for(var o=0,r=new Array(t);o1?o-1:0),n=1;n/gm),$=d(/\${[\w\W]*}/gm),U=d(/^data-[\-\w.\u00B7-\uFFFF]/),q=d(/^aria-[\-\w]+$/),W=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=d(/^(?:\w+script|data):/i),J=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),K=d(/^[a-z][.\w]*(-[.\w]+)+$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return t(e)};if(n.version="2.5.7",n.removed=[],!o||!o.document||9!==o.document.nodeType)return n.isSupported=!1,n;var a=o.document,i=o.document,c=o.DocumentFragment,l=o.HTMLTemplateElement,s=o.Node,d=o.Element,m=o.NodeFilter,p=o.NamedNodeMap,h=void 0===p?o.NamedNodeMap||o.MozNamedAttrMap:p,_=o.HTMLFormElement,v=o.DOMParser,P=o.trustedTypes,ee=d.prototype,te=M(ee,"cloneNode"),oe=M(ee,"nextSibling"),re=M(ee,"childNodes"),ne=M(ee,"parentNode");if("function"==typeof l){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=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=ie?ie.createHTML(""):"",le=i,se=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,me=le.getElementsByTagName,pe=a.importNode,he={};try{he=B(i).documentMode?i.documentMode:{}}catch(e){}var _e={};n.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==he;var ve,we,ge=G,fe=Z,Ee=$,be=U,Ce=q,xe=Y,ye=J,Ae=K,ke=W,Se=null,Pe=V({},[].concat(r(N),r(T),r(L),r(R),r(H))),Ve=null,Be=V({},[].concat(r(I),r(j),r(z),r(O))),Me=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,Te=null,Le=!0,Fe=!0,Re=!1,De=!0,He=!1,Ie=!0,je=!1,ze=!1,Oe=!1,Ge=!1,Ze=!1,$e=!1,Ue=!0,qe=!1,We=!0,Ye=!1,Je={},Xe=null,Ke=V({},["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"]),Qe=null,et=V({},["audio","video","img","source","image","track"]),tt=null,ot=V({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",it=at,ct=!1,lt=null,st=V({},[rt,nt,at],b),ut=["application/xhtml+xml","text/html"],dt=null,mt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=B(t),ve=ve=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,we="application/xhtml+xml"===ve?b:E,Se="ALLOWED_TAGS"in t?V({},t.ALLOWED_TAGS,we):Pe,Ve="ALLOWED_ATTR"in t?V({},t.ALLOWED_ATTR,we):Be,lt="ALLOWED_NAMESPACES"in t?V({},t.ALLOWED_NAMESPACES,b):st,tt="ADD_URI_SAFE_ATTR"in t?V(B(ot),t.ADD_URI_SAFE_ATTR,we):ot,Qe="ADD_DATA_URI_TAGS"in t?V(B(et),t.ADD_DATA_URI_TAGS,we):et,Xe="FORBID_CONTENTS"in t?V({},t.FORBID_CONTENTS,we):Ke,Ne="FORBID_TAGS"in t?V({},t.FORBID_TAGS,we):{},Te="FORBID_ATTR"in t?V({},t.FORBID_ATTR,we):{},Je="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Fe=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,He=t.SAFE_FOR_TEMPLATES||!1,Ie=!1!==t.SAFE_FOR_XML,je=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,Ze=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,Oe=t.FORCE_BODY||!1,Ue=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,We=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,it=t.NAMESPACE||at,Me=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(Fe=!1),Ze&&(Ge=!0),Je&&(Se=V({},r(H)),Ve=[],!0===Je.html&&(V(Se,N),V(Ve,I)),!0===Je.svg&&(V(Se,T),V(Ve,j),V(Ve,O)),!0===Je.svgFilters&&(V(Se,L),V(Ve,j),V(Ve,O)),!0===Je.mathMl&&(V(Se,R),V(Ve,z),V(Ve,O))),t.ADD_TAGS&&(Se===Pe&&(Se=B(Se)),V(Se,t.ADD_TAGS,we)),t.ADD_ATTR&&(Ve===Be&&(Ve=B(Ve)),V(Ve,t.ADD_ATTR,we)),t.ADD_URI_SAFE_ATTR&&V(tt,t.ADD_URI_SAFE_ATTR,we),t.FORBID_CONTENTS&&(Xe===Ke&&(Xe=B(Xe)),V(Xe,t.FORBID_CONTENTS,we)),We&&(Se["#text"]=!0),je&&V(Se,["html","head","body"]),Se.table&&(V(Se,["tbody"]),delete Ne.tbody),u&&u(t),dt=t)},_t=V({},["mi","mo","mn","ms","mtext"]),vt=V({},["annotation-xml"]),wt=V({},["title","style","font","a","script"]),gt=V({},T);V(gt,L),V(gt,F);var ft=V({},R);V(ft,D);var Et=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ce}catch(t){e.remove()}}},bt=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ve[e])if(Ge||Ze)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ct=function(e){var t,o;if(Oe)e=""+e;else{var r=C(e,/^[\r\n\t ]+/);o=r&&r[0]}"application/xhtml+xml"===ve&&it===at&&(e=''+e+"");var n=ie?ie.createHTML(e):e;if(it===at)try{t=(new v).parseFromString(n,ve)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(it,"template",null);try{t.documentElement.innerHTML=ct?ce:n}catch(e){}}var a=t.body||t.documentElement;return e&&o&&a.insertBefore(i.createTextNode(o),a.childNodes[0]||null),it===at?me.call(t,je?"html":"body")[0]:je?t.documentElement:a},xt=function(e){return ue.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},yt=function(e){return e instanceof _&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,o){_e[e]&&w(_e[e],(function(e){e.call(n,t,o,dt)}))},St=function(e){var t;if(kt("beforeSanitizeElements",e,null),yt(e))return Et(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var o=we(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:o,allowedTags:Se}),e.hasChildNodes()&&!At(e.firstElementChild)&&(!At(e.content)||!At(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===o&&k(/