Wordpress-plugin-Gutenberg-.../dist/blocks.build.js

1 line
50 KiB
JavaScript

!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var a=t[i](o),u=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)});e(u)}return r("next")})}}n.d(t,"b",function(){return u}),n.d(t,"a",function(){return s});var i=n(1),o=n.n(i),a=n(9),u=(n.n(a),function(){var e=r(o.a.mark(function e(t){var n,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t+"/.well-known/nodeinfo/2.1");case 3:if(n=e.sent,!n.ok){e.next=13;break}return e.next=7,n.json();case 7:if(r=e.sent,"Mobilizon"!==r.software.name){e.next=12;break}return e.abrupt("return",!0);case 12:return e.abrupt("return",!1);case 13:e.next=18;break;case 15:return e.prev=15,e.t0=e.catch(0),e.abrupt("return",!1);case 18:case"end":return e.stop()}},e,this,[[0,15]])}));return function(_x){return e.apply(this,arguments)}}()),s=function(){var e=r(o.a.mark(function e(t,n){var r,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t+"/api",i="\n query ($groupName: String!) {\n group(preferredUsername: $groupName) {\n type\n }\n }\n ",e.prev=2,e.next=5,Object(a.request)(r,i,{groupName:n});case 5:return e.abrupt("return",!0);case 8:return e.prev=8,e.t0=e.catch(2),e.abrupt("return",!1);case 11:case"end":return e.stop()}},e,this,[[2,8]])}));return function(t,n){return e.apply(this,arguments)}}()},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,i=r;t.default=i},function(e,t,n){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){return"undefined"!==typeof File&&e instanceof File||"undefined"!==typeof Blob&&e instanceof Blob||e instanceof r}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function __(){this.constructor=t}if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return i=e.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(0),n(22)},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(8),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),u=new d(r||[]);return a._invoke=c(e,n,u),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function u(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,i,o,a){var u=r(e[n],e,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"===typeof c&&b.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){s.value=e,o(s)},a)}a(u.arg)}function n(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(e,t,n){var i=B;return function(o,a){if(i===D)throw new Error("Generator is already running");if(i===j){if("throw"===o)throw a;return y()}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=l(u,n);if(s){if(s===I)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===B)throw i=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=D;var c=r(e,t,n);if("normal"===c.type){if(i=n.done?j:T,c.arg===I)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=j,n.method="throw",n.arg=c.arg)}}}function l(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,l(e,t),"throw"===t.method))return I;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,I;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,I):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,I)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[A];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(b.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:y}}function y(){return{value:v,done:!0}}var v,m=Object.prototype,b=m.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},A=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",x=g.toStringTag||"@@toStringTag",O="object"===typeof e,E=t.regeneratorRuntime;if(E)return void(O&&(e.exports=E));E=t.regeneratorRuntime=O?e.exports:{},E.wrap=n;var B="suspendedStart",T="suspendedYield",D="executing",j="completed",I={},P={};P[A]=function(){return this};var S=Object.getPrototypeOf,F=S&&S(S(h([])));F&&F!==m&&b.call(F,A)&&(P=F);var H=a.prototype=i.prototype=Object.create(P);o.prototype=H.constructor=a,a.constructor=o,a[x]=o.displayName="GeneratorFunction",E.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},E.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,x in e||(e[x]="GeneratorFunction")),e.prototype=Object.create(H),e},E.awrap=function(e){return{__await:e}},u(s.prototype),s.prototype[w]=function(){return this},E.AsyncIterator=s,E.async=function(e,t,r,i){var o=new s(n(e,t,r,i));return E.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},u(H),H[x]="Generator",H[A]=function(){return this},H.toString=function(){return"[object Generator]"},E.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},E.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=b.call(i,"catchLoc"),u=b.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,I):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),I},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),I}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),I}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e){var t=e.url,n=e.query,r=e.variables,i=e.headers,o=e.operationName,u=e.fetch,s=e.method,c=void 0===s?"POST":s,f=e.fetchOptions;return h(this,void 0,void 0,function(){var e,s,p,d,h,v;return y(this,function(y){switch(y.label){case 0:return e="POST"===c.toUpperCase()?B:T,[4,e({url:t,query:n,variables:r,operationName:o,headers:i,fetch:u,fetchOptions:f})];case 1:return s=y.sent(),[4,a(s)];case 2:if(p=y.sent(),s.ok&&!p.errors&&p.data)return d=s.headers,h=s.status,[2,l(l({},p),{headers:d,status:h})];throw v="string"===typeof p?{error:p}:p,new x.ClientError(l(l({},v),{status:s.status,headers:s.headers}),{query:n,variables:r})}})})}function i(e,t,n,r){return h(this,void 0,void 0,function(){var i;return y(this,function(o){return i=new D(e),[2,i.rawRequest(t,n,r)]})})}function o(e,t,n,r){return h(this,void 0,void 0,function(){var i;return y(this,function(o){return i=new D(e),[2,i.request(t,n,r)]})})}function a(e){var t=e.headers.get("Content-Type");return t&&t.startsWith("application/json")?e.json():e.text()}function u(e){var t;if("string"===typeof e)return{query:e};var n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),{query:A.print(e),operationName:n}}function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce(function(e,n,r){return""+e+n+(r in t?t[r]:"")},"")}function c(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}var l=this&&this.__assign||function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},l.apply(this,arguments)},f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return p(t,e),t},h=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())})},y=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&n[0]?o.return:n[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,n[1])).done)return a;switch(o=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){s.label=n[1];break}if(6===n[0]&&s.label<a[1]){s.label=a[1],a=n;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(n);break}a[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],o=0}finally{i=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,a,u,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},v=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var b=d(n(10)),g=b,A=n(11),w=m(n(18)),x=n(5),O=n(5);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return O.ClientError}});var E=function(e){var t={};return e&&("undefined"!==typeof Headers&&e instanceof Headers||e instanceof g.Headers?t=c(e):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];t[n]=r}):t=e),t},B=function(e){var t=e.url,n=e.query,r=e.variables,i=e.operationName,o=e.headers,a=e.fetch,u=e.fetchOptions;return h(void 0,void 0,void 0,function(){var e;return y(this,function(s){switch(s.label){case 0:return e=w.default(n,r,i),[4,a(t,l({method:"POST",headers:l(l({},"string"===typeof e?{"Content-Type":"application/json"}:{}),o),body:e},u))];case 1:return[2,s.sent()]}})})},T=function(e){var t=e.url,n=e.query,r=e.variables,i=e.operationName,o=e.headers,a=e.fetch,u=e.fetchOptions;return h(void 0,void 0,void 0,function(){var e;return y(this,function(s){switch(s.label){case 0:return e=["query="+encodeURIComponent(n.replace(/([\s,]|#[^\n\r]+)+/g," ").trim())],r&&e.push("variables="+encodeURIComponent(JSON.stringify(r))),i&&e.push("operationName="+encodeURIComponent(i)),[4,a(t+"?"+e.join("&"),l({method:"GET",headers:o},u))];case 1:return[2,s.sent()]}})})},D=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,n){var i=this.options,o=i.headers,a=i.fetch,u=void 0===a?b.default:a,s=i.method,c=void 0===s?"POST":s,f=v(i,["headers","fetch","method"]);return r({url:this.url,query:e,variables:t,headers:l(l({},E(o)),E(n)),operationName:void 0,fetch:u,method:c,fetchOptions:f})},e.prototype.request=function(e,t,n){return h(this,void 0,void 0,function(){var i,o,a,s,c,f,p,d,h,m,g,A;return y(this,function(y){switch(y.label){case 0:return i=this.options,o=i.headers,a=i.fetch,s=void 0===a?b.default:a,c=i.method,f=void 0===c?"POST":c,p=v(i,["headers","fetch","method"]),d=this.url,h=u(e),m=h.query,g=h.operationName,[4,r({url:d,query:m,variables:t,headers:l(l({},E(o)),E(n)),operationName:g,fetch:s,method:f,fetchOptions:p})];case 1:return A=y.sent().data,[2,A]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=(n={},n[e]=t,n),this},e}();t.GraphQLClient=D,t.rawRequest=i,t.request=o,t.default=o,t.gql=s},function(e,t){var n="undefined"!==typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){function n(e){return e&&DataView.prototype.isPrototypeOf(e)}function r(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function i(e){return"string"!==typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return A.iterable&&(t[Symbol.iterator]=function(){return t}),t}function a(e){this.map={},e instanceof a?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function c(e){var t=new FileReader,n=s(t);return t.readAsArrayBuffer(e),n}function l(e){var t=new FileReader,n=s(t);return t.readAsText(e),n}function f(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:A.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:A.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():A.arrayBuffer&&A.blob&&n(e)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||x(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e){var t=e.toUpperCase();return O.indexOf(t)>-1?t:e}function y(e,t){t=t||{};var n=t.body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new a(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new a(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function m(e){var t=new a;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}function g(e,n){return new Promise(function(r,i){function o(){u.abort()}var a=new y(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:m(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;r(new b(t,e))},u.onerror=function(){i(new TypeError("Network request failed"))},u.ontimeout=function(){i(new TypeError("Network request failed"))},u.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},u.open(a.method,a.url,!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&A.blob&&(u.responseType="blob"),a.headers.forEach(function(e,t){u.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",o)}),u.send("undefined"===typeof a._bodyInit?null:a._bodyInit)})}var A={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(A.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};a.prototype.append=function(e,t){e=r(e),t=i(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},a.prototype.delete=function(e){delete this.map[r(e)]},a.prototype.get=function(e){return e=r(e),this.has(e)?this.map[e]:null},a.prototype.has=function(e){return this.map.hasOwnProperty(r(e))},a.prototype.set=function(e,t){this.map[r(e)]=i(t)},a.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},a.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),o(e)},a.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},a.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),o(e)},A.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var O=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];b.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}g.polyfill=!0,e.fetch||(e.fetch=g,e.Headers=a,e.Request=y,e.Response=b),t.Headers=a,t.Request=y,t.Response=b,t.fetch=g,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},function(e,t,n){"use strict";function r(e){return(0,f.visit)(e,{leave:d})}function i(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function a(e){return u("{\n",s(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function s(e){return u(" ",e.replace(/\n/g,"\n "))}function c(e){return-1!==e.indexOf("\n")}function l(e){return null!=e&&e.some(c)}Object.defineProperty(t,"__esModule",{value:!0}),t.print=r;var f=n(12),p=n(17),d={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?o([t,o([n,r]),i,a]," "):a},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",o(i," "))},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,c=u("",t,": ")+n,l=c+u("(",o(r,", "),")");return l.length>80&&(l=c+u("(\n",s(o(r,"\n")),"\n)")),o([l,o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",u("on ",t),o(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(u("(",o(r,", "),")")," ")+"on ".concat(n," ").concat(u("",o(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,p.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:i(function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),a(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:i(function(e){return o(["scalar",e.name,o(e.directives," ")]," ")}),ObjectTypeDefinition:i(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")}),FieldDefinition:i(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(l(n)?u("(\n",s(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))}),InputValueDefinition:i(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")}),InterfaceTypeDefinition:i(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")}),UnionTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")}),EnumTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),a(r)]," ")}),EnumValueDefinition:i(function(e){return o([e.name,o(e.directives," ")]," ")}),InputObjectTypeDefinition:i(function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),a(r)]," ")}),DirectiveDefinition:i(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(l(n)?u("(\n",s(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return o(["extend schema",o(t," "),a(n)]," ")},ScalarTypeExtension:function(e){return o(["extend scalar",e.name,o(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["extend type",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["extend interface",t,u("implements ",o(n," & ")),o(r," "),a(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return o(["extend union",t,o(n," "),r&&0!==r.length?"= "+o(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return o(["extend enum",t,o(n," "),a(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["extend input",t,o(n," "),a(r)]," ")}}},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,r=void 0,i=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,y=void 0,v=[],m=[],b=e;do{f++;var g=f===l.length,A=g&&0!==p.length;if(g){if(h=0===m.length?void 0:v[v.length-1],d=y,y=m.pop(),A){if(i)d=d.slice();else{for(var w={},x=0,O=Object.keys(d);x<O.length;x++){var E=O[x];w[E]=d[E]}d=w}for(var B=0,T=0;T<p.length;T++){var D=p[T][0],j=p[T][1];i&&(D-=B),i&&null===j?(d.splice(D,1),B++):d[D]=j}}f=r.index,l=r.keys,p=r.edits,i=r.inArray,r=r.prev}else{if(h=y?i?f:l[f]:void 0,null===(d=y?y[h]:b)||void 0===d)continue;y&&v.push(h)}var I=void 0;if(!Array.isArray(d)){if(!(0,u.isNode)(d))throw new Error("Invalid AST Node: ".concat((0,a.default)(d),"."));var P=o(t,d.kind,g);if(P){if((I=P.call(t,d,h,y,v,m))===c)break;if(!1===I){if(!g){v.pop();continue}}else if(void 0!==I&&(p.push([h,I]),!g)){if(!(0,u.isNode)(I)){v.pop();continue}d=I}}}if(void 0===I&&A&&p.push([h,d]),g)v.pop();else{var S;r={inArray:i,index:f,keys:l,edits:p,prev:r},i=Array.isArray(d),l=i?d:null!==(S=n[d.kind])&&void 0!==S?S:[],f=-1,p=[],y&&m.push(y),y=d}}while(void 0!==r);return 0!==p.length&&(b=p[p.length-1][1]),b}function i(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=o(e[r],n.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)t[r]=n;else if(a===c)t[r]=c;else if(void 0!==a)return a}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=o(e[r],n.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===c)t[r]=c;else if(void 0!==a&&!1!==a)return a}}else t[r]===n&&(t[r]=null)}}}function o(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}Object.defineProperty(t,"__esModule",{value:!0}),t.visit=r,t.visitInParallel=i,t.getVisitFn=o,t.BREAK=t.QueryDocumentKeys=void 0;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),u=n(14),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=s;var c=Object.freeze({});t.BREAK=c},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return o(e,[])}function o(e,t){switch(r(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":a(e,t);default:return String(e)}}function a(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=c(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"===typeof i?i:o(i,n)}else if(Array.isArray(e))return s(e,n);return u(e,n)}function u(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>d?"["+l(e)+"]":"{ "+n.map(function(n){return n+": "+o(e[n],t)}).join(", ")+" }"}function s(e,t){if(0===e.length)return"[]";if(t.length>d)return"[Array]";for(var n=Math.min(p,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push(o(e[a],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function c(e){var t=e[String(f.default)];return"function"===typeof t?t:"function"===typeof e.inspect?e.inspect:void 0}function l(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var f=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),p=10,d=2},function(e,t,n){"use strict";function r(e){return null!=e&&"string"===typeof e.kind}Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=r,t.Token=t.Location=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.prototype.toJSON;"function"===typeof t||(0,o.default)(0),e.prototype.inspect=t,a.default&&(e.prototype[a.default]=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n(16)),a=r(n(2))},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var u=t.length;u>a&&i(t[u-1]);)--u;return t.slice(a,u).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],u=!r||o||a||n,s="";return!u||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,u&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=r,t.getBlockStringIndentation=o,t.printBlockString=a},function(e,t,n){"use strict";function r(e,t,n){var r=o.extractFiles({query:e,variables:t,operationName:n},"",u),i=r.clone,s=r.files;if(0===s.size)return JSON.stringify(i);var c="undefined"===typeof FormData?a.default:FormData,l=new c;l.append("operations",JSON.stringify(i));var f={},p=0;return s.forEach(function(e){f[++p]=e}),l.append("map",JSON.stringify(f)),p=0,s.forEach(function(e,t){l.append(""+ ++p,t)}),l}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),a=i(n(21)),u=function(e){return o.isExtractableFile(e)||null!==e&&"object"===typeof e&&"function"===typeof e.pipe};t.default=r},function(e,t,n){"use strict";t.ReactNativeFile=n(3),t.extractFiles=n(20),t.isExtractableFile=n(4)},function(e,t,n){"use strict";var r=n(4);e.exports=function e(t,n,i){function o(e,t){var n=u.get(t);n?n.push.apply(n,e):u.set(t,e)}void 0===n&&(n=""),void 0===i&&(i=r);var a,u=new Map;if(i(t))a=null,o([n],t);else{var s=n?n+".":"";if("undefined"!==typeof FileList&&t instanceof FileList)a=Array.prototype.map.call(t,function(e,t){return o([""+s+t],e),null});else if(Array.isArray(t))a=t.map(function(t,n){var r=e(t,""+s+n,i);return r.files.forEach(o),r.clone});else if(t&&t.constructor===Object){a={};for(var c in t){var l=e(t[c],""+s+c,i);l.files.forEach(o),a[c]=l.clone}}else a=t}return{clone:a,files:u}}},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var a=t[i](o),u=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)});e(u)}return r("next")})}}var i=n(1),o=n.n(i),a=n(0),u=n(23),s=(n.n(u),n(24)),__=(n.n(s),wp.i18n.__),c=wp.blocks.registerBlockType,l=wp.blockEditor,f=(l.RichText,l.InspectorControls),p=wp.components,d=p.Placeholder,h=p.PanelBody,y=p.PanelRow,v=p.CheckboxControl,m=p.RangeControl,b=(p.ColorPicker,p.TextControl),g=wp.element.createElement,A=g("img",{class:"wp-block-cgb-mobilizon-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAXfklEQVR42u2dB3gVVRbHAyYUUYoLgiI9oqQ3QnrvkS4qUqQGRSywtCglghKKYERaQDoBpVhQ2bVQVjeKIKLLigULKIIIWIGQ5A1n73/ePPcZg5+QuW/mzTvn+/4fsKv4Ju//m3vuuefe6+XFwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHx50HkVYs29rmCdiZ5U3G4D8uDBQ/AC8IT1je99rD8CuCo1iOOl6KVYHAY/48P69+C1vv507rAQJYHCx4QXviDP6wAAhV41YZ++/N6/xRlg/9TFzb4lwodETonVCFUzvJI4bsv07xQCm/AIxfzj9sNZ7/9/tlOCeIBdwpRdVLWszxVF/HETnimOi+5nfmVEr+CKg9nEw9us7FYUImf4vg9fOHslfI1fo+4HQTOQ5aW7jgeqFz8+YJ4UGKxLi6/CwIEpEfqn39a2WmhsFKtqt4y74TX/iFrOb35L+Ctz18s6xKF0eBC2Ro/Orqg4wx4Sp0TmHlirFV7apWtvTnJOeXhL5NVAwjo1LKb6f2ZHbJVCKqpKJrm7a/9trb44LscaQ9/iayaCOnQmVWd6LOiG98R3vJRITDjKOB4+59Z2Sn9t+oO5/wsfeYE9M3CjrRrSpue8Nh7xeE+pgNgZ4EKwBXn1/ot4tSHpafgJaRBu6e3XwuPaV4zXfqDya9PxTq/3VptnwFg6QbA2dWdaP/M9h8Ij10JrxWYqSLkePuXPtquja3E/xuthMUAsPSaB9jEi5UOzOlw7PHBLfzgteI8E6VBGwv86+Dtf2BW+wiR959nAFh6V4MwDzhU5Ht+dV7LZHht/n2+dU0DwDb7h6nz7jTfaK2/gyrXdVL4i2PpIXgJnjpU1LGy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HNSy00b5ku/aluFPib0A1X1/G6uUEdr0A8iFDnSb2a5a+6t9VrL41vc2j7pHan9hV2KN8/u4Pt/ULfSpYHalYHm8gOKnZNaXdq6/jWh1bd0+r1h3o2e1h4JRKegXfgIXhJ85Qp3/5VRwGs0F2Nei1m7XXrenW8trFKMiAIFQrz9vaOzgxt1Dsv/Zphd6c2HcHyTI1IaXp3Xso1w+AFeALegEfgFXgG3oGHNC9drXnLlG//360JaMNUQwcEQr516nj5N2vsE9Ks8ZWAIMQBA4uleUH1hvBIKLwCzziZv6HmKW8zm98BQO0qEGDigspQW5SyhG4WDxjYuIFPSNNGPmHXNfIJF4pgeaTC4QHhhWB4At7QPNJW80zTKuavbXYAqkKAIQurdqjdXqs1MrURaqcRjoftyPJo3ah5oZ3mjZaaV5po3qnrTuavCsEVWs22vpbDNdGoxgNep1HekuXRul7zwrWaN5poXqmveecKdzP/xUaDOtpQ1kAju6FW1mrspCYsj5Dzd95I88JVmjfqaV7xdmfjV4XAeUTw1kpZdbThra720CzPk+P7r6N5wrvKG9/tzX8xEGo7AcFiOXvCcsb/K1CwPFscHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBw1j/8B3ubwo0V0jNIAAAAASUVORK5CYII="});c("cgb/block-mobilizon",{title:__("Mobilizon"),icon:A,category:"common",keywords:[__("mobilizon"),__("events")],attributes:{mobilizonInputField:{type:"string",default:""},mobilizonInputFieldIsValid:{type:"boolean",default:!1},mobilizonInputFieldHelpText:{type:"string",default:""},mobilizonBaseURL:{type:"string",default:""},mobilizonGroupName:{type:"string",default:""},mobilizonEventLimit:{type:"int",default:0},mobilizonShowHeaderImage:{type:"boolean",default:!0},myRichText:{type:"string",source:"html",selector:"p"},toggle:{type:"boolean",default:!0},favoriteAnimal:{type:"string",default:"dogs"},favoriteColor:{type:"string",default:"#DDDDDD"},activateLasers:{type:"boolean",default:!1}},edit:function(e){var t=function(){var e=r(o.a.mark(function e(t){var n,r,u,s;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i({mobilizonInputField:t}),t=t.trim(),!(t.length>7)){e.next=41;break}if(!t.includes("@")){e.next=25;break}if(n=t.split("@"),!(n.length<=3)){e.next=23;break}if(3===n.length&&""===n[0]?(r=n[2],u=n[1]):(r=n[0],u=n[1]),!(r.includes(".")&&r.length>5)){e.next=23;break}return r.startsWith("https://")||(r="https://"+r),e.next=11,a.b(r);case 11:if(!e.sent){e.next=23;break}return e.next=14,a.a(r,u);case 14:if(!e.sent){e.next=21;break}i({mobilizonBaseURL:r}),i({mobilizonGroupName:u}),i({mobilizonInputFieldHelpText:""}),i({mobilizonInputFieldIsValid:!0}),e.next=23;break;case 21:s="The group "+u+" does not exist on "+r,i({mobilizonInputFieldHelpText:s});case 23:e.next=39;break;case 25:if(!(t.includes(".")&&t.substring(t.indexOf(".")).length>2)){e.next=39;break}return r=t,r.startsWith("https://")||(r="https://"+r),e.next=30,a.b(r);case 30:if(!e.sent){e.next=37;break}i({mobilizonBaseURL:r}),i({mobilizonGroupName:""}),i({mobilizonInputFieldHelpText:""}),i({mobilizonInputFieldIsValid:!0}),e.next=39;break;case 37:s=r+" is not a mobilizon instance",i({mobilizonInputFieldHelpText:s});case 39:e.next=43;break;case 41:s=t+" is no valid mobilizon actor",i({mobilizonInputFieldHelpText:s});case 43:case"end":return e.stop()}},e,this)}));return function(_x){return e.apply(this,arguments)}}(),n=e.attributes,i=e.setAttributes;return wp.element.createElement("div",{className:e.className},wp.element.createElement(f,null,wp.element.createElement(h,{title:"Settings",initialOpen:!0},wp.element.createElement(y,null,wp.element.createElement(m,{label:"Limit how many events are shown (0 means no limit)",value:n.mobilizonEventLimit,onChange:function(e){return i({mobilizonEventLimit:e})},min:0,max:20})),wp.element.createElement(y,null,wp.element.createElement(v,{label:"Header Images",help:"Set if the header images for each event are shown in the list?",checked:n.mobilizonShowHeaderImage,onChange:function(e){return i({mobilizonShowHeaderImage:e})}})))),wp.element.createElement(d,{icon:A,label:"Mobilizon Event List"},wp.element.createElement(b,{tagName:"h2",placeholder:"@example@mobilizon.fr",label:"Fediverse handle or URL of a Mobilizon-group or Mobilizon-Instance-URL",help:n.mobilizonInputFieldHelpText,value:n.mobilizonInputField,onChange:function(e){return t(e)}})))},save:function(e){return null}})},function(e,t){},function(e,t){}]);