(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{getTecApiUrl:()=>r,registerMiddlewares:()=>d});const n=window.wp.apiFetch;var o=e.n(n);const i="/tec/v1";function r(e=""){return e&&!e.startsWith("/")&&(e="/"+e),`${i}${e}`}let a=!1;const d=()=>{a||(a=!0,o().use(((e,t)=>e.path&&e.path.startsWith(i)?t({...e,headers:{...e.headers||{},"X-TEC-EEA":"I understand that this endpoint is experimental and may change in a future release without maintaining backward compatibility. I also understand that I am using this endpoint at my own risk, while support is not provided for it."}}):t(e))))};window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.tecApi=t})();