/*! For license information please see edit.js.LICENSE.txt */
(self.webpackChunkcode_snippets_pro=self.webpackChunkcode_snippets_pro||[]).push([[8739],{5485:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>Ee,hasStandardBrowserEnv:()=>Ce,hasStandardBrowserWebWorkerEnv:()=>ke,navigator:()=>Pe,origin:()=>Ae});var o=n(1609),i=n(5338),s=n(3453),c=n(6942),a=n.n(c),l=function(){return window.pagenow.endsWith("-network")},u=function(){return null!==/mac/i.exec(window.navigator.userAgent)},p=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)},d=["css","js"],f=function(){return{id:0,name:"",desc:"",code:"",tags:[],scope:"global",modified:"",active:!1,network:l(),shared_network:null,priority:10}},h=function(e){var t="string"==typeof e?e:e.scope;switch(!0){case t.endsWith("-css"):return"css";case t.endsWith("-js"):return"js";case t.endsWith("content"):return"html";default:return"php"}},m=function(e){return d.includes(e)},y=n(2284);function b(e,t){return function(){return e.apply(t,arguments)}}const{toString:g}=Object.prototype,{getPrototypeOf:v}=Object,j=(w=Object.create(null),e=>{const t=g.call(e);return w[t]||(w[t]=t.slice(8,-1).toLowerCase())});var w;const O=e=>(e=e.toLowerCase(),t=>j(t)===e),_=e=>t=>typeof t===e,{isArray:x}=Array,S=_("undefined"),E=O("ArrayBuffer"),P=_("string"),C=_("function"),k=_("number"),A=e=>null!==e&&"object"==typeof e,N=e=>{if("object"!==j(e))return!1;const t=v(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},D=O("Date"),R=O("File"),T=O("Blob"),L=O("FileList"),F=O("URLSearchParams"),[I,B,U,q]=["ReadableStream","Request","Response","Headers"].map(O);function M(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),x(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,H=e=>!S(e)&&e!==z,G=(J="undefined"!=typeof Uint8Array&&v(Uint8Array),e=>J&&e instanceof J);var J;const K=O("HTMLFormElement"),$=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),V=O("RegExp"),X=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Y="abcdefghijklmnopqrstuvwxyz",Z="0123456789",Q={DIGIT:Z,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+Z},ee=O("AsyncFunction"),te=(ne="function"==typeof setImmediate,re=C(z.postMessage),ne?setImmediate:re?(oe=`axios@${Math.random()}`,ie=[],z.addEventListener("message",(({source:e,data:t})=>{e===z&&t===oe&&ie.length&&ie.shift()()}),!1),e=>{ie.push(e),z.postMessage(oe,"*")}):e=>setTimeout(e));var ne,re,oe,ie;const se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||te,ce={isArray:x,isArrayBuffer:E,isBuffer:function(e){return null!==e&&!S(e)&&null!==e.constructor&&!S(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||C(e.append)&&("formdata"===(t=j(e))||"object"===t&&C(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&E(e.buffer),t},isString:P,isNumber:k,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:N,isReadableStream:I,isRequest:B,isResponse:U,isHeaders:q,isUndefined:S,isDate:D,isFile:R,isBlob:T,isRegExp:V,isFunction:C,isStream:e=>A(e)&&C(e.pipe),isURLSearchParams:F,isTypedArray:G,isFileList:L,forEach:M,merge:function e(){const{caseless:t}=H(this)&&this||{},n={},r=(r,o)=>{const i=t&&W(n,o)||o;N(n[i])&&N(r)?n[i]=e(n[i],r):N(r)?n[i]=e({},r):x(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e(M(t,((t,r)=>{n&&C(t)?e[r]=b(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:j,kindOfTest:O,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!k(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:K,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:X,freezeMethods:e=>{X(e,((t,n)=>{if(C(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];C(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return x(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:W,global:z,isContextDefined:H,ALPHABET:Q,generateString:(e=16,t=Q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&C(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=x(e)?[]:{};return M(e,((e,t)=>{const i=n(e,r+1);!S(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ee,isThenable:e=>e&&(A(e)||C(e))&&C(e.then)&&C(e.catch),setImmediate:te,asap:se};function ae(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ce.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ae.prototype,ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}})),Object.defineProperties(ae,ue),Object.defineProperty(le,"isAxiosError",{value:!0}),ae.from=(e,t,n,r,o,i)=>{const s=Object.create(le);return ce.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ae.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const pe=ae;function de(e){return ce.isPlainObject(e)||ce.isArray(e)}function fe(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function he(e,t,n){return e?e.concat(t).map((function(e,t){return e=fe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const me=ce.toFlatObject(ce,{},null,(function(e){return/^is[A-Z]/.test(e)})),ye=function(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ce.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(o))throw new TypeError("visitor must be a function");function a(e){if(null===e)return"";if(ce.isDate(e))return e.toISOString();if(!c&&ce.isBlob(e))throw new pe("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(e)||ce.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let c=e;if(e&&!o&&"object"==typeof e)if(ce.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ce.isArray(e)&&function(e){return ce.isArray(e)&&!e.some(de)}(e)||(ce.isFileList(e)||ce.endsWith(n,"[]"))&&(c=ce.toArray(e)))return n=fe(n),c.forEach((function(e,r){!ce.isUndefined(e)&&null!==e&&t.append(!0===s?he([n],r,i):null===s?n:n+"[]",a(e))})),!1;return!!de(e)||(t.append(he(o,n,i),a(e)),!1)}const u=[],p=Object.assign(me,{defaultVisitor:l,convertValue:a,isVisitable:de});if(!ce.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ce.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ce.forEach(n,(function(n,i){!0===(!(ce.isUndefined(n)||null===n)&&o.call(t,n,ce.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ge(e,t){this._pairs=[],e&&ye(e,this,t)}const ve=ge.prototype;ve.append=function(e,t){this._pairs.push([e,t])},ve.toString=function(e){const t=e?function(t){return e.call(this,t,be)}:be;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const je=ge;function we(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oe(e,t,n){if(!t)return e;const r=n&&n.encode||we,o=n&&n.serialize;let i;if(i=o?o(t,n):ce.isURLSearchParams(t)?t.toString():new je(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const _e=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Se={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:je,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ee="undefined"!=typeof window&&"undefined"!=typeof document,Pe="object"==typeof navigator&&navigator||void 0,Ce=Ee&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),ke="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ae=Ee&&window.location.href||"http://localhost",Ne={...r,...Se},De=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),c=o>=e.length;return i=!i&&ce.isArray(r)?r.length:i,c?(ce.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&ce.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&ce.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Re={transitional:xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ce.isObject(e);if(o&&ce.isHTMLForm(e)&&(e=new FormData(e)),ce.isFormData(e))return r?JSON.stringify(De(e)):e;if(ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)||ce.isReadableStream(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ye(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ne.isNode&&ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ye(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(ce.isString(e))try{return(0,JSON.parse)(e),ce.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Re.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ce.isResponse(e)||ce.isReadableStream(e))return e;if(e&&ce.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw pe.from(e,pe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],(e=>{Re.headers[e]={}}));const Te=Re,Le=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fe=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Be(e){return!1===e||null==e?e:ce.isArray(e)?e.map(Be):String(e)}function Ue(e,t,n,r,o){return ce.isFunction(r)?r.call(this,t,n):(o&&(t=n),ce.isString(t)?ce.isString(r)?-1!==t.indexOf(r):ce.isRegExp(r)?r.test(t):void 0:void 0)}class qe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const i=ce.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Be(e))}const i=(e,t)=>ce.forEach(e,((e,n)=>o(e,n,t)));if(ce.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ce.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(ce.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=ce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ce.isFunction(t))return t.call(this,e,n);if(ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=ce.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=ce.findKey(n,e);!o||t&&!Ue(0,n[o],o,t)||(delete n[o],r=!0)}}return ce.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ce.forEach(this,((r,o)=>{const i=ce.findKey(n,o);if(i)return t[i]=Be(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Be(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ce.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ce.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Fe]=this[Fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(function(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ce.isArray(e)?e.forEach(r):r(e),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(qe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ce.freezeMethods(qe);const Me=qe;function We(e,t){const n=this||Te,r=t||n,o=Me.from(r.headers);let i=r.data;return ce.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ze(e){return!(!e||!e.__CANCEL__)}function He(e,t,n){pe.call(this,null==e?"canceled":e,pe.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(He,pe,{__CANCEL__:!0});const Ge=He;function Je(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new pe("Request failed with status code "+n.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ke=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(c){const a=Date.now(),l=r[s];o||(o=a),n[i]=c,r[i]=a;let u=s,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),a-o{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),c=t-o;c>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-c)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,c=i-r,a=o(c);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:a||void 0,estimated:a&&s&&i<=s?(s-i)/a:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},$e=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ve=e=>(...t)=>ce.asap((()=>e(...t))),Xe=Ne.hasStandardBrowserEnv?function(){const e=Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ce.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ye=Ne.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&s.push("path="+r),ce.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ze(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qe=e=>e instanceof Me?{...e}:e;function et(e,t){t=t||{};const n={};function r(e,t,n){return ce.isPlainObject(e)&&ce.isPlainObject(t)?ce.merge.call({caseless:n},e,t):ce.isPlainObject(t)?ce.merge({},t):ce.isArray(t)?t.slice():t}function o(e,t,n){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ce.isUndefined(t))return r(void 0,t)}function s(e,t){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t)=>o(Qe(e),Qe(t),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=a[r]||o,s=i(e[r],t[r],r);ce.isUndefined(s)&&i!==c||(n[r]=s)})),n}const tt=e=>{const t=et({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:c,auth:a}=t;if(t.headers=c=Me.from(c),t.url=Oe(Ze(t.baseURL,t.url),e.params,e.paramsSerializer),a&&c.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),ce.isFormData(r))if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(n=c.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ne.hasStandardBrowserEnv&&(o&&ce.isFunction(o)&&(o=o(t)),o||!1!==o&&Xe(t.url))){const e=i&&s&&Ye.read(s);e&&c.set(i,e)}return t},nt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=tt(e);let o=r.data;const i=Me.from(r.headers).normalize();let s,c,a,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Me.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Je((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new pe("Request aborted",pe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new pe("Network Error",pe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||xe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new pe(t,o.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ce.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),ce.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([a,u]=Ke(f,!0),m.addEventListener("progress",a)),d&&m.upload&&([c,l]=Ke(d),m.upload.addEventListener("progress",c),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ge(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Ne.protocols.indexOf(b)?n(new pe("Unsupported protocol "+b+":",pe.ERR_BAD_REQUEST,e)):m.send(o||null)}))},rt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof pe?t:new Ge(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new pe(`timeout ${t} of ms exceeded`,pe.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:c}=r;return c.unsubscribe=s,[c,()=>{i&&clearTimeout(i),i=null}]},ot=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t,n){for await(const r of e)yield*ot(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let s,c=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=c+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},st="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ct=st&&"function"==typeof ReadableStream,at=st&&("function"==typeof TextEncoder?(lt=new TextEncoder,e=>lt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var lt;const ut=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},pt=ct&&ut((()=>{let e=!1;const t=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),dt=ct&&ut((()=>ce.isReadableStream(new Response("").body))),ft={stream:dt&&(e=>e.body)};var ht;st&&(ht=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ft[e]&&(ft[e]=ce.isFunction(ht[e])?t=>t[e]():(t,n)=>{throw new pe(`Response type '${e}' is not supported`,pe.ERR_NOT_SUPPORT,n)})})));const mt=st&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:c,onUploadProgress:a,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:d}=tt(e);l=l?(l+"").toLowerCase():"text";let f,h,[m,y]=o||i||s?rt([o,i],s):[];const b=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let g;try{if(a&&pt&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:ce.isBlob(e)?e.size:ce.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ce.isArrayBufferView(e)||ce.isArrayBuffer(e)?e.byteLength:(ce.isURLSearchParams(e)&&(e+=""),ce.isString(e)?(await at(e)).byteLength:void 0))(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ce.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=$e(g,Ke(Ve(a)));r=it(n.body,65536,e,t,at)}}ce.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(h);const s=dt&&("stream"===l||"response"===l);if(dt&&(c||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=ce.toFiniteNumber(i.headers.get("content-length")),[n,r]=c&&$e(t,Ke(Ve(c),!0))||[];i=new Response(it(i.body,65536,n,(()=>{r&&r(),s&&b()}),at),e)}l=l||"text";let f=await ft[ce.findKey(ft,l)||"text"](i,e);return!s&&b(),y&&y(),await new Promise(((t,n)=>{Je(t,n,{data:f,headers:Me.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(b(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new pe("Network Error",pe.ERR_NETWORK,e,h),{cause:t.cause||t});throw pe.from(t,t&&t.code,e,h)}}),yt={http:null,xhr:nt,fetch:mt};ce.forEach(yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const bt=e=>`- ${e}`,gt=e=>ce.isFunction(e)||null===e||!1===e,vt=e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(bt).join("\n"):" "+bt(e[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function jt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function wt(e){return jt(e),e.headers=Me.from(e.headers),e.data=We.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vt(e.adapter||Te.adapter)(e).then((function(t){return jt(e),t.data=We.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return ze(t)||(jt(e),t&&t.response&&(t.response.data=We.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const Ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const _t={};Ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.5] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new pe(r(o," has been removed"+(t?" in "+t:"")),pe.ERR_DEPRECATED);return t&&!_t[o]&&(_t[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const xt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new pe("option "+i+" must be "+n,pe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pe("Unknown option "+i,pe.ERR_BAD_OPTION)}},validators:Ot},St=xt.validators;class Et{constructor(e){this.defaults=e,this.interceptors={request:new _e,response:new _e}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=et(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&xt.assertOptions(n,{silentJSONParsing:St.transitional(St.boolean),forcedJSONParsing:St.transitional(St.boolean),clarifyTimeoutError:St.transitional(St.boolean)},!1),null!=r&&(ce.isFunction(r)?t.paramsSerializer={serialize:r}:xt.assertOptions(r,{encode:St.function,serialize:St.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ce.merge(o.common,o[t.method]);o&&ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Me.concat(i,o);const s=[];let c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const a=[];let l;this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)}));let u,p=0;if(!c){const e=[wt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,a),u=e.length,l=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ge(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ct((function(t){e=t})),cancel:e}}}const kt=Ct,At={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(At).forEach((([e,t])=>{At[t]=e}));const Nt=At,Dt=function e(t){const n=new Pt(t),r=b(Pt.prototype.request,n);return ce.extend(r,Pt.prototype,n,{allOwnKeys:!0}),ce.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(et(t,n))},r}(Te);Dt.Axios=Pt,Dt.CanceledError=Ge,Dt.CancelToken=kt,Dt.isCancel=ze,Dt.VERSION="1.7.5",Dt.toFormData=ye,Dt.AxiosError=pe,Dt.Cancel=Dt.CanceledError,Dt.all=function(e){return Promise.all(e)},Dt.spread=function(e){return function(t){return e.apply(null,t)}},Dt.isAxiosError=function(e){return ce.isObject(e)&&!0===e.isAxiosError},Dt.mergeConfig=et,Dt.AxiosHeaders=Me,Dt.formToJSON=e=>De(ce.isHTMLForm(e)?new FormData(e):e),Dt.getAdapter=vt,Dt.HttpStatusCode=Nt,Dt.default=Dt;const Rt=Dt,{Axios:Tt,AxiosError:Lt,CanceledError:Ft,isCancel:It,CancelToken:Bt,VERSION:Ut,all:qt,Cancel:Mt,isAxiosError:Wt,spread:zt,toFormData:Ht,AxiosHeaders:Gt,HttpStatusCode:Jt,formToJSON:Kt,getAdapter:$t,mergeConfig:Vt}=Rt;var Xt=n(9922);function Yt(e,t,n){return(t=(0,Xt.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e,t,n,r,o,i,s){try{var c=e[i](s),a=c.value}catch(e){return void n(e)}c.done?t(a):Promise.resolve(a).then(r,o)}function Qt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Zt(i,r,o,s,c,"next",e)}function c(e){Zt(i,r,o,s,c,"throw",e)}s(void 0)}))}}var en=n(4756),tn=n.n(en);const nn=window.wp.i18n;function rn(e){try{return decodeURIComponent(e)}catch(t){return e}}function on(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(function(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(rn);return n&&function(e,t,n){const r=t.length,o=r-1;for(let i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var En=["id","children","className","name","primary","small","large","type","onClick"];function Pn(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 Cn(e){for(var t=1;t".concat(e.desc,"
"):"")})}))},children:(0,nn.__)("Add Description","code-snippets")}),(0,jn.jsx)("h2",{children:(0,jn.jsx)("label",{htmlFor:vr,children:(0,nn.__)("Description","code-snippets")})}),(0,jn.jsx)("textarea",{id:vr,className:"wp-editor-area",onChange:function(e){return c(e.target.value)},autoComplete:"off",disabled:s,rows:window.CODE_SNIPPETS_EDIT.descEditorOptions.rows,cols:40,children:n.desc})]}):null};function Or(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 _r(e){for(var t=1;t section.","code-snippets"),"footer-content":(0,nn.__)("Display at the end of the section, in the footer.","code-snippets"),"site-css":(0,nn.__)("Site front-end styles","code-snippets"),"admin-css":(0,nn.__)("Administration area styles","code-snippets"),"site-footer-js":(0,nn.__)("Load JS at the end of the section","code-snippets"),"site-head-js":(0,nn.__)("Load JS in the section","code-snippets")},Wr=function(e){var t=e.atts;return(0,jn.jsxs)("p",{children:[(0,jn.jsx)("code",{className:"shortcode-tag",children:Rr(Ur,t)}),(0,jn.jsx)(Fr,{title:(0,nn.__)("Copy shortcode to clipboard","code-snippets"),text:Rr(Ur,t)})]})},zr=function(e){var t=e.optionLabels,n=e.options,r=e.setOptions,o=e.isReadOnly;return(0,jn.jsxs)("p",{className:"html-shortcode-options",children:[(0,jn.jsx)("strong",{children:(0,nn.__)("Shortcode Options: ","code-snippets")}),t.map((function(e){var t=(0,s.A)(e,2),i=t[0],c=t[1];return(0,jn.jsxs)("label",{children:[(0,jn.jsx)("input",{type:"checkbox",value:i,checked:n[i],disabled:o,onChange:function(e){return r((function(t){return Br(Br({},t),{},Yt({},i,e.target.checked))}))}})," ".concat(c)]},i)}))]})},Hr=function(){var e,t=On(),n=t.snippet,r=t.isReadOnly,i=(0,o.useState)((function(){return{php:n.code.includes(""),format:!0,shortcodes:!1}})),c=(0,s.A)(i,2),a=c[0],u=c[1];return"content"===n.scope?(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsxs)("p",{className:"description",children:[(0,nn.__)("There are multiple options for inserting this snippet into a post, page or other content.","code-snippets")," ",n.id?(0,nn.__)("You can copy the below shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).","code-snippets"):(0,nn.__)("After saving, you can copy a shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).","code-snippets")," ",(0,jn.jsx)(xn.ExternalLink,{href:(0,nn.__)("https://help.codesnippets.pro/article/50-inserting-snippets","code-snippets"),children:(0,nn.__)("Learn more","code-snippets")})]}),n.id?(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)(Wr,{atts:Br({id:n.id,network:null!==(e=n.network)&&void 0!==e?e:l()},a)}),(0,jn.jsx)(zr,{options:a,setOptions:u,isReadOnly:r,optionLabels:[["php",(0,nn.__)("Evaluate PHP code","code-snippets")],["format",(0,nn.__)("Add paragraphs and formatting","code-snippets")],["shortcodes",(0,nn.__)("Evaluate additional shortcode tags","code-snippets")]]})]}):null]}):null},Gr=function(){var e=On(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return(0,jn.jsxs)(jn.Fragment,{children:[(0,jn.jsx)("h2",{className:"screen-reader-text",children:(0,nn.__)("Scope","code-snippets")}),Nr.filter((function(e){return!t.id||e===h(t)})).map((function(e){return(0,jn.jsxs)("p",{className:"snippet-scope ".concat(e,"-scopes-list"),children:[Dr[e].map((function(e){return(0,jn.jsxs)("label",{children:[(0,jn.jsx)("input",{type:"radio",name:"snippet_scope",value:e,checked:e===t.scope,onChange:function(t){return t.target.checked&&n((function(t){return Br(Br({},t),{},{scope:e})}))},disabled:r})," ",(0,jn.jsx)("span",{className:"dashicons dashicons-".concat(qr[e])})," ".concat(Mr[e])]},e)})),"html"===e?(0,jn.jsx)(Hr,{}):null]},e)}))]})},Jr=n(5501),Kr=n(3662),$r=function(e){var t=e.id,n=e.suggestions,r=e.onSelect;return(0,jn.jsx)("div",{className:"tagger-completion",children:(0,jn.jsx)("datalist",{id:t,children:n.map((function(e){return(0,jn.jsx)("option",{value:e,onClick:function(){return r(e)}},e)}))})})},Vr=function(e){var t=e.tags,n=e.onRemove;return(0,jn.jsx)(jn.Fragment,{children:t.map((function(e){return(0,jn.jsx)("li",{children:(0,jn.jsxs)("span",{children:[(0,jn.jsx)("span",{className:"label",children:e}),(0,jn.jsx)("a",{href:"#",className:"close",onClick:function(t){n(e),t.preventDefault()},children:"×"})]})},e)}))})},Xr=["id","tags","onChange","tagLimit","completions","addOnBlur","allowSpaces","allowDuplicates","completionMinLength"];function Yr(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 Zr(e){for(var t=1;t]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,y.A)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Qr.apply(this,arguments)}var eo,to=Qr(/([-\\^$[\]()+{}?*.|])/g,{specialChar:1}),no=function(e){var t=e.id,n=e.tags,r=e.onChange,i=e.tagLimit,c=e.completions,a=e.addOnBlur,l=void 0!==a&&a,u=e.allowSpaces,p=void 0===u||u,d=e.allowDuplicates,f=void 0!==d&&d,h=e.completionMinLength,m=void 0===h?2:h,y=Sn(e,Xr),b=(0,o.useRef)(null),g=(0,o.useState)(""),v=(0,s.A)(g,2),j=v[0],w=v[1],O=(0,o.useState)(!1),_=(0,s.A)(O,2),x=_[0],S=_[1],E=(0,o.useState)([]),P=(0,s.A)(E,2),C=P[0],k=P[1],A=(0,o.useState)(),N=(0,s.A)(A,2),D=N[0],R=N[1],T=function(){return Boolean(i&&0=i)},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.trim(),t=!["",'""',"''","``",void 0,null].includes(e)&&!T()&&(f||!n.includes(e));return t&&r([].concat(an(n),[e])),w(""),t},F=function(e){return r(e?n.filter((function(t){return t!==e})):n.slice(0,-1))},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j.length>=m;e&&function(e,t){return e?"function"==typeof e?e(t):Promise.resolve(e):Promise.resolve(void 0)}(c,j).then((function(e){R(C),null!=e&&e.length&&k(f?e:e.filter((function(e){return!n.includes(e)})))})).catch(Ln),S(e)};return(0,jn.jsx)("div",{className:"tagger",children:(0,jn.jsxs)("ul",{onClick:function(){var e;return null===(e=b.current)||void 0===e?void 0:e.focus()},children:[(0,jn.jsx)(Vr,{tags:n,onRemove:F}),(0,jn.jsxs)("li",{className:"tagger-new",children:[(0,jn.jsx)("input",Zr(Zr({},y),{},{id:t,type:"text",ref:b,value:j,list:"tagger-completion-".concat(x?"":"-disabled").concat(t),onBlur:function(){return l?L():void 0},onChange:function(e){return w(e.target.value)},onKeyDown:function(e){var t=e.key,n=e.ctrlKey,r=e.metaKey;switch(t){case"Enter":case",":L();break;case"Backspace":j||F();break;case" ":n||r?I(!0):p||L();break;case"Tab":if(!T())return}e.preventDefault(),e.stopPropagation()},onInput:function(){x&&D&&function(e,t){if(!e.includes(t))return!1;var n=new RegExp("^".concat(t.replace(to,"\\$1")));return 1===e.filter((function(e){return n.test(e)})).length}(D,j.trim())?L()&&S(!1):I()}})),(0,jn.jsx)($r,{id:"tagger-completion-".concat(t),suggestions:C.filter((function(e){return!n.includes(e)})),onSelect:function(e){L(e),k([]),S(!1)}})]})]})})};function ro(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 oo(e){for(var t=1;t{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!a.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:c.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",p=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof j?t:j,i=Object.create(o.prototype),s=new R(r||[]);return c(i,"_invoke",{value:k(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",y="suspendedYield",b="executing",g="completed",v={};function j(){}function w(){}function O(){}var _={};d(_,l,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(T([])));S&&S!==i&&s.call(S,l)&&(_=S);var E=O.prototype=j.prototype=Object.create(_);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,c,a){var l=h(e[o],e,i);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,c,a)}),(function(e){n("throw",e,c,a)})):t.resolve(p).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,a)}))}a(l.arg)}var o;c(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=m;return function(i,s){if(o===b)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var c=r.delegate;if(c){var a=A(c,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var l=h(e,n,r);if("normal"===l.type){if(o=r.done?g:y,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=s.call(i,"catchLoc"),l=s.call(i,"finallyLoc");if(a&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),v}},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 o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738: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},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})}},e=>{e(e.s=5485)}]);