1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[517],{9710:function(e,t,i){var n=i(8788),r=i(930),a=i(5163);t.Z=function(e){var t=e.query,i=e.queryFn,o=e.transformResponse;return(0,n.Z)((function(){var e,n,s,l,c=arguments;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:for(e=c.length,n=new Array(e),s=0;s<e;s++)n[s]=c[s];return[4,i(t.apply(void 0,(0,r.Z)(n)))];case 1:return l=a.sent(),"function"===typeof o?[2,o(l)]:[2,l]}}))}))}},599:function(e,t,i){i.d(t,{Z:function(){return c}});var n=i(8788),r=i(7328),a=i(6297),o=i(5163),s=i(162),l=i(3945);function c(e){var t=e.baseUrl;return function(){var e=(0,n.Z)((function(e){var i,n,c,d,p,_,E,N,A,S,y,I;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:i=e.body,n=e.headers,c=(0,a.Z)(e,["body","headers"]),o.label=1;case 1:return o.trys.push([1,3,,4]),d=Object.assign({"Content-Type":"application/json"},n),[4,s.Z.post(t,i,(0,r.Z)({headers:d},c))];case 2:return p=o.sent(),_=p.data,E=_.data,N=_.errors,A={data:E},N&&(A.errors=(0,l.I)(N[0])),[2,A];case 3:return S=o.sent(),I=(null===(y=S.response)||void 0===y?void 0:y.status)||500,console.log({error:S}),[2,{data:null,errors:[u({code:I,message:S.message})]}];case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}()}function u(e){var t=e.message,i=e.code;return{message:"Internal Server Error",extensions:{message:t,error:!0,code:String(i)}}}s.Z.defaults.timeout=3e4},3517:function(e,t,i){i.d(t,{vb:function(){return Y},aC:function(){return M},NG:function(){return D},Cx:function(){return b},aU:function(){return U},iM:function(){return h},Io:function(){return G}});var n=i(7328),r=i(6670),a=i(2784),o=i(5632),s=i.n(o),l=i(9898),c=i(2350),u=i(5830),d=i(8943),p=i(6383),_=i(4029),E=i(4701),N=i(9710),A=i(4409),S=i(599),y=(0,S.Z)({baseUrl:A.j?E.Bp.NEXT_API_PATH:E.Bp.API_URL}),I=(0,S.Z)({baseUrl:A.j?E.Rm.NEXT_API_PATH:E.Rm.API_URL}),R=(0,N.Z)({queryFn:y,query:function(e){var t={queryName:"refreshToken",args:{siteId:{value:e.siteId,type:"ID"},ownerId:{value:e.ownerId,type:"ID!"},platform:{value:"cms",type:"Platform"}},select:"token expiresAt success message user { id email role name }"};return{body:(0,_.Z)(t,!0)}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.refreshToken),t}}),T=(0,N.Z)({queryFn:y,query:function(e){var t={queryName:"acceptInvitation",args:{token:{value:e,type:"String!"}},select:"user { id email role name } token message success expiresAt"};return{body:(0,_.Z)(t,!0)}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.acceptInvitation),t}}),f=(0,N.Z)({queryFn:y,query:function(e){var t={queryName:"loginWith",args:{siteId:{type:"ID!",value:e.siteId},provider:{type:"String",value:e.provider},platform:{type:"Platform!",value:"cms"},passthrough:{type:"String",value:e.passthrough},ownerId:{type:"ID!",value:e.ownerId},source:{type:"SourceEnum",value:"PORTAL"}},select:"user {id email role name} token message success expiresAt"};return{body:(0,_.Z)(t,!0)}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.loginWith),t}}),v=(0,N.Z)({queryFn:y,query:function(e){var t=e.queryKey,i=(0,p.Z)(t,2),n=i[0],r=i[1],a=r.siteId,o=r.redirectTo,s=r.domain,l=r.tempUser,c=r.email,u=r.siteType,d={queryName:n,args:{siteId:{type:"ID!",value:a},email:{type:"String!",value:c},domain:{type:"String!",value:s},platform:{type:"Platform!",value:"cms"},passthrough:{type:"String",value:r.passthrough},isCustomDomain:{type:"Boolean",value:!1},siteType:{type:"String!",value:u},redirectTo:{type:"String",value:o},user:{type:"TempUserInput",value:l},source:{type:"SourceEnum",value:"PORTAL"}},select:"status message success"};return{body:(0,_.Z)(d)}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.sendMagicLink),t}}),g=(0,N.Z)({queryFn:y,query:function(){return{body:(0,_.Z)({queryName:"logout",args:{}},!0)}}}),m=(0,N.Z)({queryFn:I,query:function(e){var t=e.userId,i=e.token,n={queryName:"updateInvitedUser",args:{userId:{type:"ID!",value:t},name:{type:"String",value:e.name}},select:"name email id userId"};return{body:(0,_.Z)(n,!0),headers:{authorization:"Bearer ".concat(i)}}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.updateInvitedUser),t}}),O=(0,N.Z)({queryFn:y,query:function(e){var t=e.queryKey,i=(0,p.Z)(t,2),n={queryName:i[0],args:{owner:{type:"ID!",value:i[1].id}},select:"isFreeUser"};return{body:(0,_.Z)(n)}},transformResponse:function(e){var t=(0,n.Z)({},e);return e.data&&(t.data=e.data.getUserStatsPublic),t}}),L=i(2202),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,c.D)(f,{onSuccess:function(i){var n=i.data;(null===n||void 0===n?void 0:n.success)&&(e.setQueryData(["auth"],n),localStorage.setItem("authData",JSON.stringify(n)),s().push("".concat(location.origin).concat(t)))}})},Y=function(){var e=(0,u.NL)();return(0,c.D)(T,{onSuccess:function(t){var i=t.data;(null===i||void 0===i?void 0:i.success)&&(e.setQueryData(["auth"],i),localStorage.setItem("authData",JSON.stringify(i)))}})},C=function(e){return(0,c.D)(R,{onSuccess:function(t){var i=t.data;(null===i||void 0===i?void 0:i.success)?(localStorage.setItem("authData",JSON.stringify(i)),e.setQueryData(["auth"],i)):(localStorage.removeItem("authData"),e.setQueryData(["auth"],{}))}})},h=function(e){return(0,d.a)(["sendMagicLink",e],v,{enabled:!1,onSuccess:function(e){var t=e.data,i=document.querySelector(".magic-link-response");if(i){var n=(null===t||void 0===t?void 0:t.success)?"green":"red";i.style.color=n,i.textContent=null===t||void 0===t?void 0:t.message}}})},P=12e4,M=function(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.skip,s=void 0!==o&&o,c=(0,u.NL)(),d=c.getQueryData(["auth"]),p=C(c),_=p.mutate,E=p.isLoading,N=(0,l.W)(),A=N.data,S=N.isLoading,y=null===A||void 0===A||null===(e=A.data)||void 0===e?void 0:e.id,I=null===A||void 0===A||null===(t=A.data)||void 0===t?void 0:t.owner,R=!!(null===d||void 0===d?void 0:d.user),T=!(null===d||void 0===d?void 0:d.expiresAt)||1e3*d.expiresAt-P<Date.now();return(0,a.useEffect)((function(){!s&&R&&T&&y&&I&&_({siteId:y,ownerId:I})}),[T,_,y,s,R,I]),(0,a.useEffect)((function(){c.setQueryData(["auth"],JSON.parse(localStorage.getItem("authData")||"{}"))}),[]),(0,r.Z)((0,n.Z)({isTokenExpired:T,isAuth:!!(null===d||void 0===d?void 0:d.success)},d),{isLoading:S||E})}
1,U=function(e){return(0,c.D)(g,{onSuccess:function(t){e.invalidateQueries(["getUserMembership"]),t&&(e.setQueryData(["auth"],{}),localStorage.removeItem("authData"))}})},G=function(e){return(0,c.D)(m,{onSuccess:function(e){var t=e.data;(null===t||void 0===t?void 0:t.id)?(s().push("#"),(0,L.ZP)(t.message||"User updated successfully",{type:"success"}),function(e){var t=e.name;try{var i=JSON.parse(localStorage.getItem("authData")||null);(null===i||void 0===i?void 0:i.user)&&(i.user.name=t,localStorage.setItem("authData",JSON.stringify(i)))}catch(n){console.log({error:n})}}(t)):(0,L.ZP)("Something went wrong!",{type:"error"})}})},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.a)(["getUserStatsPublic",e],O,{enabled:!!(null===e||void 0===e?void 0:e.id)})}},9898:function(e,t,i){i.d(t,{W:function(){return R}});var n=i(5632),r=i(1856),a=i(5830),o=i(8943),s=i(7328),l=i(6670),c=i(6383),u=i(4029),d=i(4701),p=i(9710),_=i(4409),E=i(599),N=["title","description","keywords"];function A(e){if(!e||"string"!==typeof e)return e;try{var t,i=JSON.parse(e),n=null===i||void 0===i||null===(t=i.settings)||void 0===t?void 0:t.meta;return n&&"object"===typeof n&&N.some((function(e){return e in n}))?(N.forEach((function(e){delete n[e]})),JSON.stringify(i)):e}catch(r){return e}}var S=(0,E.Z)({baseUrl:_.j?d.Rm.NEXT_API_PATH:d.Rm.API_URL}),y=(0,p.Z)({queryFn:S,query:function(e){var t=e.queryKey,i=(0,c.Z)(t,2),n=i[0],r=i[1],a=r.domain,o=r.customDomain,s=r.select,l=void 0===s?"":s;return{body:(0,u.Z)({queryName:n,select:"id status name domain owner domainType dorikSitePrefix postSlug categorySlug siteType globalStyle isURLRedirectEnabled isAnalyticsEnabled analyticsSiteId owner "+l,args:{domain:{value:a,type:"String!"},customDomain:{value:o,type:"Boolean!"}}})}},transformResponse:function(e){var t=(0,s.Z)({},e);if(e.data){var i=e.data.getSiteByDomain;t.data=i&&(0,l.Z)((0,s.Z)({},i),{globalStyle:A(i.globalStyle)})}return t}}),I=(0,r.e)("production"),R=function(e,t){var i=(0,a.NL)(),s=(0,n.useRouter)().query.domain||d._o;r.jU&&(s&&window.localStorage.setItem("__SIMULATE_DOMAIN",s),s=window.localStorage.getItem("__SIMULATE_DOMAIN")),e=r.jU?window.location.host:i.getQueryData(["host"]);var l=I.resolveHost(e||"",s),c=l.domain,u=l.isCustomDomain;return(0,o.a)(["getSiteByDomain",{domain:c,customDomain:u,select:t}],y)}},3945:function(e,t,i){i.d(t,{I:function(){return a}});var n=i(7328),r=i(930),a=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce((function(e,t){return t.apply(void 0,(0,r.Z)(e))}),[e])}}((function(e){var t=e.code,i=e.extensions;return[{message:e.message,extensions:(0,n.Z)({code:t},i)}]}),(function(e){var t=e.extensions,i=e.message;return[{extensions:(0,n.Z)({message:i},t)}]}),(function(e){var t=e.extensions,i=t.code,n=t.message,r=n;return 422===Number(i)&&"[object Object]"===Object.prototype.toString.call(n)&&(r=Object.values(n).join(",")),[{extensions:{code:i,message:{401:n,404:n,500:n,422:r,BAD_USER_INPUT:"Input is not valid",INTERNAL_SERVER_ERROR:"Internal Server Error"}[i]}}]}))},1856:function(e,t,i){i.d(t,{e:function(){return a},jU:function(){return n}});const n=typeof window<"u",r={test:{AGENCY:"cmsfly.com",LTD_AGENCY:"cmsfly.com",REGULAR:"dcms.site",REGULAR_LEGACY:"read.gd"},production:{AGENCY:"cmsfly.com",LTD_AGENCY:"cmsfly.com",REGULAR:"dcms.site",REGULAR_LEGACY:"read.gd"},development:{AGENCY:"agency.dorik.autos",LTD_AGENCY:"agency.dorik.autos",REGULAR:"dorik.autos",REGULAR_LEGACY:"dorik.autos"},staging:{AGENCY:"agency.dorikio.com",LTD_AGENCY:"agency.dorikio.com",REGULAR:"dorikio.com",REGULAR_LEGACY:"dorikio.com"},getAll:function(e){return Object.values(e)}},a=e=>{const{AGENCY:t,REGULAR:i,REGULAR_LEGACY:n,LTD_AGENCY:a}=r[e];return{AGENCY:t,REGULAR:i,LTD_AGENCY:a,REGULAR_LEGACY:n,resolveHost:(e,r="localhost:3000")=>{e=e.includes("localhost")?r:e;const o=[t,i,n].join("|"),s=new RegExp(`\\.(${o})$`),l=s.test(e);return{domain:l?e.replace(s,""):e,shouldResolveSite:i=>{const n={AGENCY:e.includes(t),REGULAR:!e.includes(t),LTD_AGENCY:e.includes(a)};return!l||n[i]},isCustomDomain:!l}}}},o=Object.freeze({owner:"owner",admin:"admin",author:"author",editor:"editor",sysAdm
1in:"sys_admin",developer:"developer",superUser:"super_user",publicApi:"public_api",subscriber:"subscriber",sysReviewer:"sys_reviewer"}),s=Object.freeze({TAG:"TAG",SITE:"SITE",POST:"POST",PAGE:"PAGE",THEME:"THEME",TOPIC:"TOPIC",API_KEY:"API_KEY",SITEMAP:"SITEMAP",LICENSE:"LICENSE",PAYMENT:"PAYMENT",CAMPAIGN:"CAMPAIGN",CATEGORY:"CATEGORY",RE_INDEX:"RE_INDEX",USER_META:"USER_META",All_SITES:"All_SITES",PUBLIC_API:"PUBLIC_API",MEMBERSHIP:"MEMBERSHIP",WEBHOOK_URL:"WEBHOOK_URL",CUSTOM_ROLE:"CUSTOM_ROLE",URL_REDIRECT:"URL_REDIRECT",ACTIVITY_LOG:"ACTIVITY_LOG",AGENCY_CONFIG:"AGENCY_CONFIG",MEDIA_LIBRARY:"MEDIA_LIBRARY",PRESIGNED_URL:"PRESIGNED_URL",CLIENT_BILLING:"CLIENT_BILLING",PUBLIC_API_KEY:"PUBLIC_API_KEY"}),l=Object.freeze({EXPORT_JSON:"EXPORT_JSON",INVITE_USER:"INVITE_USER",SITE_LIMITS:"SITE_LIMITS"});o.sysAdmin,o.sysReviewer;var c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof i.g<"u"?i.g:typeof self<"u"?self:{},u={exports:{}},d={},p={},_={},E={},N=c&&c.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(E,"__esModule",{value:!0});var A=function(e){function t(i){void 0===i&&(i="");var n=e.call(this,i)||this;
1return n.message=i,n.name="AccessControlError",Object.setPrototypeOf(n,t.prototype),n}return N(t,e),t}(Error);E.AccessControlError=A;var S={},y={},I={};Object.defineProperty(I,"__esModule",{value:!0});I.Action={CREATE:"create",READ:"read",UPDATE:"update",DELETE:"delete"};var R={};Object.defineProperty(R,"__esModule",{value:!0});R.Possession={OWN:"own",ANY:"any"},Object.defineProperty(y,"__esModule",{value:!0});var T=I;y.Action=T.Action;var f=R;y.Possession=f.Possession;var v=Object.keys(T.Action).map((function(e){return T.Action[e]}));y.actions=v;var g=Object.keys(f.Possession).map((function(e){return f.Possession[e]}));y.possessions=g;var m={},O={exports:{}};typeof self<"u"&&self,O.exports=function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="lib/",t(t.s=2)}([function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.prototype.toString,r={isObject:function(e){return"[object Object]"===n.call(e)},isArray:function(e){return"[object Array]"===n.call(e)},ensureArray:function(e){return r.isArray(e)?e:null==e?[]:[e]},hasOwn:function(e,t){return e&&"function"==typeof e.hasOwnProperty&&e.hasOwnProperty(t)},deepCopy:function(e){if(!r.isObject(e))return e;var t=void 0,i=void 0,n={};for(t in e)r.hasOwn(e,t)&&(i=e[t],n[t]=r.isObject(i)?r.deepCopy(i):i);return n},each:function(e,t,i){for(var n=e.length,r=-1;++r<n&&!1!==t.call(i,e[r],r,e););},eachRight:function(e,t){for(var i=e.length;i--&&!1!==t(e[i],i,e););},pregQuote:function(e,t){return String(e).replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+(t||"")+"-]","g"),"\\$&")},stringOrArrayOf:function(e,t){return"string"==typeof e&&e===t||r.isArray(e)&&1===e.length&&e[0]===t},hasSingleItemOf:function(e,t){return 1===e.length&&(2!==arguments.length||e[0]===t)}};t.default=r},function(e,t,i){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";n(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.name=i.constructor.name,Object.defineProperty(i,"name",{enumerable:!1,writable:!1,value:"NotationError"}),Object.defineProperty(i,"message",{enumerable:!1,writable:!0,value:e}),Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(i,i.constructor):Object.defineProperty(i,"stack",{enumerable:!1,writable:!1,value:new Error(e).stack}),i}return a(t,Error),t}();t.default=o},function(e,t,i){var n,r=i(3),a=(n=r)&&n.__esModule?n:{default:n};e.exports=a.default},function(e,t,i){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=n(i(0)),s=n(i(4)),l=n(i(1)),c={SOURCE:"Invalid source object.",DEST:"Invalid destination object.",NOTATION:"Invalid notation: ",NOTA_OBJ:"Invalid notations object: "},u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r(this,e),!o.default.isObject(t))throw new l.default(c.SOURCE);this._source=t}return a(e,[{key:"each",value:function(t){var i=this,n=this._source,r=Object.keys(n);o.default.each(r,(function(r,a,s){var l=n[r],c=void 0;o.default.isObject(l)?(c=new e(l)).each((function(e,i,a,o){var s=r+"."+e;t.call(c,s,i,a,n)})):t.call(i,r,r,l,n)}))}},{key:"eachKey",value:function(e){return this.each(e)}},{key:"eachValue",value:function(t,i){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");var n=this._source;e.eachNote(t,(function(e,t,r,a){if(n=o.default.hasOwn(n,t)?n[t]:void 0,!1===i(n,e,t,r,a))return!1}))}},{key:"getNotations",value:function(){var e=[];return this.each((function(t,i,n,r){e.push(t)})),e}},{key:"flatten",value:function(){var e={};return this.each((function(t,i,n,r){e[t]=n})),this._source=e,this}},{key:"expand",value:function(){return this._source=e.create({}).merge(this._source).value,this}},{key:"aggregate",value:function(){return this.expand()}},{key:"inspect",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");var i=this._source,n={has:!1,value:void 0};return e.eachNote(t,(function(e,t,r,a){if(!o.default.hasOwn(i,t))return n={has:!1,value:void 0},!1;i=i[t],n={has:!0,value:i}}
1)),n}},{key:"inspectRemove",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");var i=void 0,n=void 0;if(t.indexOf(".")<0)n=t,i=this._source;else{var r=e.parent(t);n=e.last(t),i=this.inspect(r).value}var a=void 0;return o.default.hasOwn(i,n)?(a={has:!0,value:i[n]},delete i[n]):a={has:!1,value:void 0},a}},{key:"has",value:function(e){return this.inspect(e).has}},{key:"hasDefined",value:function(e){return void 0!==this.inspect(e).value}},{key:"get",value:function(e,t){var i=this.inspect(e);return i.has?i.value:t}},{key:"set",value:function(t,i){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");var r=this._source,a=void 0;return e.eachNote(t,(function(e,t,s,l){a=s===l.length-1,o.default.hasOwn(r,t)?a?n&&(r[t]=i):r=r[t]:r=r[t]=a?i:{}})),this}},{key:"merge",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!o.default.isObject(e))throw new l.default(c.NOTA_OBJ+"`"+e+"`");var n=void 0;return o.default.each(Object.keys(e),(function(r,a,o){n=e[r],t.set(r,n,i)})),this}},{key:"separate",value:function(t){var i=this;if(!o.default.isArray(t))throw new l.default(c.NOTA_OBJ+"`"+t+"`");var n=new e({});return o.default.each(t,(function(e,t,r){var a=i.inspectRemove(e);n.set(e,a.value)})),this._source=n._source,this}},{key:"filter",value:function(t){var i=this,n=this.value,r=o.default.deepCopy(n),a=s.default.normalize(t).concat();if(o.default.stringOrArrayOf(a,"*"))return this._source=r,this;if(0===arguments.length||o.default.stringOrArrayOf(a,"")||o.default.stringOrArrayOf(a,"!*"))return this._source={},this;var l=void 0;"*"===a[0]?(l=new e(r),a.shift()):l=new e({});var c=void 0,u=void 0,d=void 0;return o.default.each(a,(function(t,r,a){if(c=new s.default(t),u=".*"===c.absGlob.slice(-2),(d=u?c.absGlob.slice(0,-2):c.absGlob).indexOf("*")<0)return c.isNegated?(l.remove(d),u&&l.set(d,{},!0)):l.copyFrom(n,d,null,!0),!0;i.each((function(t,i,n,r){e.eachNote(t,(function(e,t,i,r){if(c.test(e)){if(c.isNegated)return l.remove(e),!1;l.set(e,n,!0)}}))}))})),this._source=l.value,this}},{key:"remove",value:function(e){return this.inspectRemove(e),this}},{key:"delete",value:function(e){return this.remove(e),this}},{key:"clone",value:function(){return new e(o.default.deepCopy(this.value))}},{key:"copyTo",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!o.default.isObject(t))throw new l.default(c.DEST);var a=this.inspect(i);return a.has&&new e(t).set(n||i,a.value,r),this}},{key:"copyFrom",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!o.default.isObject(t))throw new l.default(c.DEST);var a=new e(t).inspect(i);return a.has&&this.set(n||i,a.value,r),this}},{key:"moveTo",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!o.default.isObject(t))throw new l.default(c.DEST);var a=this.inspectRemove(i);return a.has&&new e(t).set(n||i,a.value,r),this}},{key:"moveFrom",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!o.default.isObject(t))throw new l.default(c.DEST);var a=new e(t).inspectRemove(i);return a.has&&this.set(n||i,a.value,r),this}},{key:"rename",value:function(e,t,i){return t?this.moveTo(this._source,e,t,i):this}},{key:"renote",value:function(e,t,i){return this.rename(e,t,i)}},{key:"extract",value:function(e,t){var i={};return this.copyTo(i,e,t),i}},{key:"copyToNew",value:function(e,t){return this.extract(e,t)}},{key:"extrude",value:function(e,t){var i={};return this.moveTo(i,e,t),i}},{key:"moveToNew",value:function(e,t){return this.extrude(e,t)}},{key:"value",get:function(){return this._source}}],[{key:"create",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"isValid",value:function(e){return"string"==typeof e&&/^[^\s.!]+(\.[^\s.!]+)*$/.test(e)}},{key:"countNotes",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");return t.split(".").length}},{key:"countLevels",value:function(t){return e.countNotes(t)}},{key:"first",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");return t.split(".")[0]}},{key:"last",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");return t.split(".").reverse()[0]}},{key:"parent",value:function(t){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");return t.indexOf(".")>=0?t.replace(/\.[^.]*$/,""):null}},{key:"eachNote",value:function(t,i){if(!e.isValid(t))throw new l.default(c.NOTATION+"`"+t+"`");var n=t.split("."),r=[],a=void 0;o.default.each(n,(function(e,t,o){if(r.push(e),a=r.join("."),!1===i(a,e,t,n))return!1}),e)}},{key:"eachLevel",value:function(t,i){e.eachNote(t,i)}}]),e}();u.Error=l.default,u.Glob=s.default,t.default=u}
1,function(e,t,i){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=n(i(0)),s=n(i(1)),l=function(){function e(t){if(r(this,e),!e.isValid(t))throw new s.default('Invalid notation glob: "'+t+'"');var i=e.inspect(t);this._={glob:t,absGlob:i.absGlob,isNegated:i.isNegated,regexp:e.toRegExp(i.absGlob),levels:i.absGlob.split(".")}}return a(e,[{key:"test",value:function(e){return"*"===this.absGlob||""!==this.absGlob&&""!==e&&this.regexp.test(e)}},{key:"glob",get:function(){return this._.glob}},{key:"absGlob",get:function(){return this._.absGlob}},{key:"isNegated",get:function(){return this._.isNegated}},{key:"regexp",get:function(){return this._.regexp}},{key:"notes",get:function(){return this._.levels}},{key:"levels",get:function(){return this._.levels}}],[{key:"create",value:function(t){return new e(t)}},{key:"toRegExp",value:function(e){return 0===e.indexOf("!")&&(e=e.slice(1)),e=o.default.pregQuote(e).replace(/\\\*/g,"[^\\s\\.]*").replace(/\\\?/g,"."),new RegExp("^"+e+"(\\..+|$)")}},{key:"inspect",value:function(e){var t="!"===e.slice(0,1);return{absGlob:e=t?e.slice(1):e,isNegated:t}}},{key:"isValid",value:function(e){return"string"==typeof e&&/^(!?([^\s.!*]+|\*)(\.([^\s.!*]+|\*))*)$/.test(e)}},{key:"compare",value:function(e,t){if(e===t)return 0;var i=e.split("."),n=t.split(".");if(i.length===n.length){var r=/(?:^|\.)\*(?:$|\.)/g,a=e.match(r),o=t.match(r),s=a?a.length:0,l=o?o.length:0;if(s===l){var c=0===e.indexOf("!"),u=0===t.indexOf("!");if(c===u)return e<t?-1:1;var d=c?e.slice(1):e,p=u?t.slice(1):t;return d===p?c?1:-1:d<p?-1:1}return s>l?-1:1}return i.length<n.length?-1:1}},{key:"sort",value:function(t){return t.sort(e.compare)}},{key:"normalize",value:function(t){t=o.default.ensureArray(t).map((function(e){return e.trim()})),t=e.sort(t),o.default.eachRight(t,(function(i,n){var r=e.inspect(i),a=!1,s=!1,l=!1,c=!0,u=!1,d=!0;o.default.eachRight(t,(function(t,o){if(o!==n){var p=e.inspect(t),_=e.toRegExp(p.absGlob);if(i===t)return a=!0,!1;if(p.isNegated&&i===p.absGlob)return s=!0,!1;if(r.isNegated){if(p.isNegated&&_.test(r.absGlob))return l=!0,!1;c&&_.test(r.absGlob)&&(c=!1)}else!p.isNegated&&_.test(r.absGlob)?u=!0:d&&_.test(r.absGlob)&&(d=!1)}}));var p=r.isNegated?l||c:u&&d;(a||s||p)&&t.splice(n,1)}));var i=t.indexOf("!*");return i>=0&&t.splice(i,1),t}},{key:"union",value:function(t,i){if(o.default.hasSingleItemOf(t,"*")||o.default.hasSingleItemOf(i,"*"))return["*"];var n=t.concat(),r=i.concat(),a=void 0,s=void 0,l=void 0,c=void 0,u=[];o.default.eachRight(n,(function(t,i){l=e.inspect(t),a=e.toRegExp(l.absGlob),o.default.eachRight(r,(function(o,d){if(c=e.inspect(o),s=e.toRegExp(c.absGlob),l.isNegated&&!c.isNegated&&(l.absGlob===c.absGlob||s.test(l.absGlob)&&-1===r.indexOf(t)&&-1===u.indexOf(t)))return n.splice(i,1),!1;if(l.isNegated||!c.isNegated||!(l.absGlob===c.absGlob||a.test(c.absGlob)&&-1===n.indexOf(o)&&-1===u.indexOf(o))){if(l.isNegated&&c.isNegated&&t!==o){if(s.test(l.absGlob))return r.splice(d,1),void u.push(t);if(a.test(c.absGlob))return n.splice(i,1),u.push(o),!1}return l.isNegated||c.isNegated||t!==o?void 0:(n.splice(i,1),!1)}r.splice(d,1)}))}));var d=n.concat(r);return e.normalize(d)}}]),e}();t.default=l}]);var L,b,Y=O.exports;function C(){if(L)return m;L=1,Object.defineProperty(m,"__esModule",{value:!0});var e=Y,t=y,i=D(),n=["*","!","$","$extend"];m.RESERVED_KEYWORDS=n;m.ERR_LOCK="Cannot alter the underlying grants model. AccessControl instance is locked.";var r={type:function(e){return Object.prototype.toString.call(e).match(/\s(\w+)/i)[1].toLowerCase()},hasDefined:function(e,t){return e.hasOwnProperty(t)&&void 0!==e[t]},toStringArray:function(e){return Array.isArray(e)?e:"string"==typeof e?e.trim().split(/\s*[;,]\s*/):[]},isFilledStringArray:function(e){if(!e||!Array.isArray(e))return!1;for(var t=0,i=e;t<i.length;t++){var n=i[t];if("string"!=typeof n||""===n.trim())return!1}return!0},isEmptyArray:function(e){return Array.isArray(e)&&0===e.length},pushUniq:function(e,t){return e.indexOf(t)<0&&e.push(t),e},uniqConcat:function(e,t){var i=e.concat();return t.forEach((function(e){r.pushUniq(i,e)})),i},subtractArray:function(e,t){return e.concat().filter((function(e){return-1===t.indexOf(e)}))},deepFreeze:function(e){if("object"===r.type(e))return Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];Array.isArray(i)&&Object.freeze(i),"object"===r.type(i)&&r.deepFreeze(i)})),Object.freeze(e)},each:function(e,t,i){void 0===i&&(i=null);for(var n=e.length,r=-1;++r<n&&!1!==t.call(i,e[r],r,e););},eachKey:function(e,t,i){void 0===i&&(i=null),r.each(Object.keys(e),t,i)},eachRole:function(e,t){r.eachKey(e,(function(i){return t(e[i],i)}))},eachRoleResource:function(e,t){var i,n;r.eachKey(e,(function(a){i=e[a],r.eachKey(i,(function(e){n=a[e],t(a,e,n)}))}))},isInfoFulfilled:function(e){return r.hasDefined(e,"role")&&r.hasDefined(e,"action")&&r.hasDefined(e,"resource")},validName:function(e,t){if(void 0===t&&(t=!0),"string"!=typeof e||""===e.trim()){if(!t)return!1;throw new i.AccessControlError("Invalid name, expected a valid string.")}if(n.indexOf(e)>=0){if(!t)return!1;throw new i.AccessControlError('Cannot use reserved name: "'+e+'"')}return!0},hasValidNames:function(e,t){void 0===t&&(t=!0);var i=!0;return r.each(r.toStringArray(e),(function(e){return!!r.validName(e,t)||(i=!1,!1)})),i},validResourceObject:function(e){if("object"!==r.type(e))throw new i.AccessControlError("Invalid resource definition.");return r.eachKey(e,(function(n){var a=n.split(":");if(-1===t.actions.indexOf(a[0]))throw new i.AccessControlError('Invalid action: "'+n+'"');if(a[1]&&-1===t.possessions.indexOf(a[1]))throw new i.AccessControlError('Invalid action possession: "'+n+'"');var o=e[n];if(!r.isEmptyArray(o)&&!r.isFilledStringArray(o))throw new i.AccessControlError('Invalid resource attributes for action "'+n+'".')})),!0},validRoleObject:function(e,t){var n=e[t];if(!n||"object"!==r.type(n))throw new i.AccessControlError("Invalid role definition.");
1return r.eachKey(n,(function(a){if(r.validName(a,!1))r.validResourceObject(n[a]);else{if("$extend"!==a)throw new i.AccessControlError('Cannot use reserved name "'+a+'" for a resource.');var o=n[a];if(!r.isFilledStringArray(o))throw new i.AccessControlError('Invalid extend value for role "'+t+'": '+JSON.stringify(o));r.extendRole(e,t,o)}})),!0},getInspectedGrants:function(e){var t={},n=r.type(e);if("object"===n)r.eachKey(e,(function(t){return!!r.validName(t)&&r.validRoleObject(e,t)})),t=e;else{if("array"!==n)throw new i.AccessControlError("Invalid grants object. Expected an array or object.");e.forEach((function(e){return r.commitToGrants(t,e,!0)}))}return t},getResources:function(e){var t={};return r.eachRoleResource(e,(function(e,i,n){t[i]=null})),Object.keys(t)},normalizeActionPossession:function(e,n){if(void 0===n&&(n=!1),"string"!=typeof e.action)throw new i.AccessControlError("Invalid action: "+JSON.stringify(e));var r=e.action.split(":");if(t.actions.indexOf(r[0].trim().toLowerCase())<0)throw new i.AccessControlError("Invalid action: "+r[0]);e.action=r[0].trim().toLowerCase();var a=e.possession||r[1];if(a){if(t.possessions.indexOf(a.trim().toLowerCase())<0)throw new i.AccessControlError("Invalid action possession: "+a);e.possession=a.trim().toLowerCase()}else e.possession=t.Possession.ANY;return n?e.action+":"+e.possession:e},normalizeQueryInfo:function(e){if("object"!==r.type(e))throw new i.AccessControlError("Invalid IQueryInfo: "+typeof e);if((e=Object.assign({},e)).role=r.toStringArray(e.role),!r.isFilledStringArray(e.role))throw new i.AccessControlError("Invalid role(s): "+JSON.stringify(e.role));if("string"!=typeof e.resource||""===e.resource.trim())throw new i.AccessControlError('Invalid resource: "'+e.resource+'"');return e.resource=e.resource.trim(),e=r.normalizeActionPossession(e)},normalizeAccessInfo:function(e,t){if(void 0===t&&(t=!1),"object"!==r.type(e))throw new i.AccessControlError("Invalid IAccessInfo: "+typeof e);if((e=Object.assign({},e)).role=r.toStringArray(e.role),0===e.role.length||!r.isFilledStringArray(e.role))throw new i.AccessControlError("Invalid role(s): "+JSON.stringify(e.role));if(e.resource=r.toStringArray(e.resource),0===e.resource.length||!r.isFilledStringArray(e.resource))throw new i.AccessControlError("Invalid resource(s): "+JSON.stringify(e.resource));return e.denied||Array.isArray(e.attributes)&&0===e.attributes.length?e.attributes=[]:e.attributes=e.attributes?r.toStringArray(e.attributes):["*"],t&&(e=r.normalizeActionPossession(e)),e},resetAttributes:function(e){return e.denied?(e.attributes=[],e):((!e.attributes||r.isEmptyArray(e.attributes))&&(e.attributes=["*"]),e)},getRoleHierarchyOf:function(e,t,n){var a=e[t];if(!a)throw new i.AccessControlError('Role not found: "'+t+'"');var o=[t];return!Array.isArray(a.$extend)||0===a.$extend.length||a.$extend.forEach((function(a){if(!e[a])throw new i.AccessControlError('Role not found: "'+e[a]+'"');if(a===t)throw new i.AccessControlError('Cannot extend role "'+t+'" by itself.');if(n&&n===a)throw new i.AccessControlError('Cross inheritance is not allowed. Role "'+a+'" already extends "'+n+'".');var s=r.getRoleHierarchyOf(e,a,n||t);o=r.uniqConcat(o,s)})),o},getFlatRoles:function(e,t){var n=r.toStringArray(t);if(0===n.length)throw new i.AccessControlError("Invalid role(s): "+JSON.stringify(t));var a=r.uniqConcat([],n);return n.forEach((function(t){a=r.uniqConcat(a,r.getRoleHierarchyOf(e,t))})),a},getNonExistentRoles:function(e,t){var i=[];if(r.isEmptyArray(t))return i;for(var n=0,a=t;n<a.length;n++){var o=a[n];e.hasOwnProperty(o)||i.push(o)}return i},getCrossExtendingRole:function(e,t,i){var n=r.toStringArray(i),a=null;return r.each(n,(function(i){if(a||t===i)return!1;var n=r.getRoleHierarchyOf(e,i);return r.each(n,(function(e){return e!==t||(a=i,!1)})),!0})),a},extendRole:function(e,t,n){if(0===(t=r.toStringArray(t)).length)throw new i.AccessControlError("Invalid role(s): "+JSON.stringify(t));if(!r.isEmptyArray(n)){var a=r.toStringArray(n).concat();if(0===a.length)throw new i.AccessControlError("Cannot inherit invalid role(s): "+JSON.stringify(n));var o=r.getNonExistentRoles(e,a);if(o.length>0)throw new i.AccessControlError('Cannot inherit non-existent role(s): "'+o.join(", ")+'"');t.forEach((function(t){if(!e[t])throw new i.AccessControlError('Role not found: "'+t+'"');if(a.indexOf(t)>=0)throw new i.AccessControlError('Cannot extend role "'+t+'" by itself.');var n=r.getCrossExtendingRole(e,t,a);if(n)throw new i.AccessControlError('Cross inheritance is not allowed. Role "'+n+'" already extends "'+t+'".');r.validName(t);var o=e[t];Array.isArray(o.$extend)?o.$extend=r.uniqConcat(o.$extend,a):o.$extend=a}))}},preCreateRoles:function(e,t){if("string"==typeof t&&(t=r.toStringArray(t)),!Array.isArray(t)||0===t.length)throw new i.AccessControlError("Invalid role(s): "+JSON.stringify(t));t.forEach((function(t){r.validName(t)&&!e.hasOwnProperty(t)&&(e[t]={})}))},commitToGrants:function(e,t,i){void 0===i&&(i=!1),(t=r.normalizeAccessInfo(t,i)).role.forEach((function(i){r.validName(i)&&!e.hasOwnProperty(i)&&(e[i]={});var n=e[i],a=t.action+":"+t.possession;t.resource.forEach((function(e){r.validName(e)&&!n.hasOwnProperty(e)&&(n[e]={}),n[e][a]=r.toStringArray(t.attributes)}))}))},getUnionAttrsOfRoles:function(t,i){i=r.normalizeQueryInfo(i);var n,a,o=[];
1r.getFlatRoles(t,i.role).forEach((function(e,r){n=t[e],(a=n[i.resource])&&o.push((a[i.action+":"+i.possession]||a[i.action+":any"]||[]).concat())}));var s=[],l=o.length;if(l>0){s=o[0];for(var c=1;c<l;)s=e.Glob.union(s,o[c]),c++}return s},lockAC:function(e){var t=e;if(!t._grants||0===Object.keys(t._grants).length)throw new i.AccessControlError("Cannot lock empty or invalid grants model.");var n=e.isLocked&&Object.isFrozen(t._grants);if(n||(n=!!r.deepFreeze(t._grants)),!n)throw new i.AccessControlError("Could not lock grants: "+typeof t._grants);t._isLocked=n},filter:function(t,i){return Array.isArray(i)&&0!==i.length?new e(t).filter(i).value:{}},filterAll:function(e,t){return Array.isArray(e)?e.map((function(e){return r.filter(e,t)})):r.filter(e,t)}};return m.utils=r,m}var h,P={};var M,U,G={};function D(){return U||(U=1,function(e){function t(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0}),t(E),t(function(){if(b)return S;b=1,Object.defineProperty(S,"__esModule",{value:!0});var e=D(),t=y,i=C(),n=function(){function n(t,n,r){if(void 0===r&&(r=!1),this._={},this._ac=t,this._grants=t._grants,this._.denied=r,"string"==typeof n||Array.isArray(n))this.role(n);else if("object"===i.utils.type(n)){if(0===Object.keys(n).length)throw new e.AccessControlError("Invalid IAccessInfo: {}");n.denied=r,this._=i.utils.resetAttributes(n),i.utils.isInfoFulfilled(this._)&&i.utils.commitToGrants(this._grants,this._,!0)}else if(void 0!==n)throw new e.AccessControlError("Invalid role(s), expected a valid string, string[] or IAccessInfo.")}return Object.defineProperty(n.prototype,"denied",{get:function(){return this._.denied},enumerable:!0,configurable:!0}),n.prototype.role=function(e){return i.utils.preCreateRoles(this._grants,e),this._.role=e,this},n.prototype.resource=function(e){return i.utils.hasValidNames(e,!0),this._.resource=e,this},n.prototype.attributes=function(e){return this._.attributes=e,this},n.prototype.extend=function(e){return i.utils.extendRole(this._grants,this._.role,e),this},n.prototype.inherit=function(e){return this.extend(e),this},n.prototype.grant=function(e){return new n(this._ac,e,!1).attributes(["*"])},n.prototype.deny=function(e){return new n(this._ac,e,!0).attributes([])},n.prototype.lock=function(){return i.utils.lockAC(this._ac),this},n.prototype.createOwn=function(e,i){return this._prepareAndCommit(t.Action.CREATE,t.Possession.OWN,e,i)},n.prototype.createAny=function(e,i){return this._prepareAndCommit(t.Action.CREATE,t.Possession.ANY,e,i)},n.prototype.create=function(e,t){return this.createAny(e,t)},n.prototype.readOwn=function(e,i){return this._prepareAndCommit(t.Action.READ,t.Possession.OWN,e,i)},n.prototype.readAny=function(e,i){return this._prepareAndCommit(t.Action.READ,t.Possession.ANY,e,i)},n.prototype.read=function(e,t){return this.readAny(e,t)},n.prototype.updateOwn=function(e,i){return this._prepareAndCommit(t.Action.UPDATE,t.Possession.OWN,e,i)},n.prototype.updateAny=function(e,i){return this._prepareAndCommit(t.Action.UPDATE,t.Possession.ANY,e,i)},n.prototype.update=function(e,t){return this.updateAny(e,t)},n.prototype.deleteOwn=function(e,i){return this._prepareAndCommit(t.Action.DELETE,t.Possession.OWN,e,i)},n.prototype.deleteAny=function(e,i){return this._prepareAndCommit(t.Action.DELETE,t.Possession.ANY,e,i)},n.prototype.delete=function(e,t){return this.deleteAny(e,t)},n.prototype._prepareAndCommit=function(e,t,n,r){return this._.action=e,this._.possession=t,n&&(this._.resource=n),this._.denied?this._.attributes=[]:this._.attributes=r?i.utils.toStringArray(r):["*"],i.utils.commitToGrants(this._grants,this._,!1),this._.attributes=void 0,this},n}();return S.Access=n,S}()),t(function(){if(h)return P;h=1,Object.defineProperty(P,"__esModule",{value:!0});var e=D(),t=y,i=C(),n=function(){function n(t,n){if(this._={},this._grants=t,"string"==typeof n||Array.isArray(n))this.role(n);else if("object"===i.utils.type(n)){if(0===Object.keys(n).length)throw new e.AccessControlError("Invalid IQueryInfo: {}");this._=n}else if(void 0!==n)throw new e.AccessControlError("Invalid role(s), expected a valid string, string[] or IQueryInfo.")}return n.prototype.role=function(e){return this._.role=e,this},n.prototype.resource=function(e){return this._.resource=e,this},n.prototype.createOwn=function(e){return this._getPermission(t.Action.CREATE,t.Possession.OWN,e)},n.prototype.createAny=function(e){return this._getPermission(t.Action.CREATE,t.Possession.ANY,e)},n.prototype.create=function(e){return this.createAny(e)},n.prototype.readOwn=function(e){return this._getPermission(t.Action.READ,t.Possession.OWN,e)},n.prototype.readAny=function(e){return this._getPermission(t.Action.READ,t.Possession.ANY,e)},n.prototype.read=function(e){return this.readAny(e)},n.prototype.updateOwn=function(e){return this._getPermission(t.Action.UPDATE,t.Possession.OWN,e)},n.prototype.updateAny=function(e){return this._getPermission(t.Action.UPDATE,t.Possession.ANY,e)},n.prototype.update=function(e){return this.updateAny(e)}
1,n.prototype.deleteOwn=function(e){return this._getPermission(t.Action.DELETE,t.Possession.OWN,e)},n.prototype.deleteAny=function(e){return this._getPermission(t.Action.DELETE,t.Possession.ANY,e)},n.prototype.delete=function(e){return this.deleteAny(e)},n.prototype._getPermission=function(t,i,n){return this._.action=t,this._.possession=i,n&&(this._.resource=n),new e.Permission(this._grants,this._)},n}();return P.Query=n,P}()),t(function(){if(M)return G;M=1,Object.defineProperty(G,"__esModule",{value:!0});var e=C(),t=function(){function t(t,i){this._={},this._.attributes=e.utils.getUnionAttrsOfRoles(t,i),this._.role=i.role,this._.resource=i.resource}return Object.defineProperty(t.prototype,"roles",{get:function(){return this._.role},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resource",{get:function(){return this._.resource},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this._.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"granted",{get:function(){return!(!this.attributes||0===this.attributes.length)&&this.attributes.some((function(e){return"!"!==e.trim().slice(0,1)}))},enumerable:!0,configurable:!0}),t.prototype.filter=function(t){return e.utils.filterAll(t,this.attributes)},t}();return G.Permission=t,G}())}(_)),_}Object.defineProperty(p,"__esModule",{value:!0});var w=D(),B=y,H=C(),j=function(){function e(e){this._isLocked=!1,0===arguments.length&&(e={}),this.setGrants(e)}return Object.defineProperty(e.prototype,"isLocked",{get:function(){return this._isLocked&&Object.isFrozen(this._grants)},enumerable:!0,configurable:!0}),e.prototype.getGrants=function(){return this._grants},e.prototype.setGrants=function(e){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);return this._grants=H.utils.getInspectedGrants(e),this},e.prototype.reset=function(){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);return this._grants={},this},e.prototype.lock=function(){return H.utils.lockAC(this),this},e.prototype.extendRole=function(e,t){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);return H.utils.extendRole(this._grants,e,t),this},e.prototype.removeRoles=function(e){var t=this;if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);var i=H.utils.toStringArray(e);if(0===i.length||!H.utils.isFilledStringArray(i))throw new w.AccessControlError("Invalid role(s): "+JSON.stringify(e));return i.forEach((function(e){if(!t._grants[e])throw new w.AccessControlError('Cannot remove a non-existing role: "'+e+'"');delete t._grants[e]})),H.utils.eachRole(this._grants,(function(e,t){Array.isArray(e.$extend)&&(e.$extend=H.utils.subtractArray(e.$extend,i))})),this},e.prototype.removeResources=function(e,t){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);return this._removePermission(e,t),this},e.prototype.getRoles=function(){return Object.keys(this._grants)},e.prototype.getInheritedRolesOf=function(e){var t=H.utils.getRoleHierarchyOf(this._grants,e);return t.shift(),t},e.prototype.getExtendedRolesOf=function(e){return this.getInheritedRolesOf(e)},e.prototype.getResources=function(){return H.utils.getResources(this._grants)},e.prototype.hasRole=function(e){var t=this;return Array.isArray(e)?e.every((function(e){return t._grants.hasOwnProperty(e)})):this._grants.hasOwnProperty(e)},e.prototype.hasResource=function(e){var t=this.getResources();return Array.isArray(e)?e.every((function(e){return t.indexOf(e)>=0})):"string"==typeof e&&""!==e&&t.indexOf(e)>=0},e.prototype.can=function(e){if(0!==arguments.length&&void 0===e)throw new w.AccessControlError("Invalid role(s): undefined");return new w.Query(this._grants,e)},e.prototype.query=function(e){return this.can(e)},e.prototype.permission=function(e){return new w.Permission(this._grants,e)},e.prototype.grant=function(e){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);if(0!==arguments.length&&void 0===e)throw new w.AccessControlError("Invalid role(s): undefined");return new w.Access(this,e,!1)},e.prototype.allow=function(e){return this.grant(e)},e.prototype.deny=function(e){if(this.isLocked)throw new w.AccessControlError(H.ERR_LOCK);if(0!==arguments.length&&void 0===e)throw new w.AccessControlError("Invalid role(s): undefined");return new w.Access(this,e,!0)},e.prototype.reject=function(e){return this.deny(e)},e.prototype._removePermission=function(e,t,i){var n=this;if(0===(e=H.utils.toStringArray(e)).length||!H.utils.isFilledStringArray(e))throw new w.AccessControlError("Invalid resource(s): "+JSON.stringify(e));if(void 0!==t&&(0===(t=H.utils.toStringArray(t)).length||!H.utils.isFilledStringArray(t)))throw new w.AccessControlError("Invalid role(s): "+JSON.stringify(t));H.utils.eachRoleResource(this._grants,(function(r,a,o){if(e.indexOf(a)>=0&&(!t||t.indexOf(r)>=0))if(i){var s=H.utils.normalizeActionPossession({action:i},!0);delete n._grants[r][a][s]}else delete n._grants[r][a]}))},Object.defineProperty(e,"Action",{get:function(){return B.Action},enumerable:!0,configurable:!0}),Object.defineProperty(e,"Possession",{get:function(){return B.Possession},enumerable:!0,configurable:!0}),Object.defineProperty(e,"Error",{get:function(){return w.AccessControlError},enumerable:!0,configurable:!0}),e.filter=function(e,t){return H.utils.filterAll(e,t)},e.isACError=function(e){return e instanceof w.AccessControlError},e.isAccessControlError=function(t){return e.isACError(t)},e}();
1p.AccessControl=j,function(e){function t(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0}),t(p),t(D())}(d);var k=d.AccessControl;u.exports=k;var x=u.exports.AccessControl=k;const{EXPORT_JSON:F,SITE_LIMITS:K}=l,{publicApi:z,owner:q,admin:V,editor:W,author:$,sysAdmin:Z,developer:J,superUser:Q,subscriber:X,sysReviewer:ee}=o,{TAG:te,SITE:ie,POST:ne,PAGE:re,TOPIC:ae,API_KEY:oe,SITEMAP:se,LICENSE:le,PAYMENT:ce,CATEGORY:ue,USER_META:de,CAMPAIGN:pe,RE_INDEX:_e,All_SITES:Ee,MEMBERSHIP:Ne,PUBLIC_API:Ae,CUSTOM_ROLE:Se,URL_REDIRECT:ye,WEBHOOK_URL:Ie,ACTIVITY_LOG:Re,PRESIGNED_URL:Te,MEDIA_LIBRARY:fe,AGENCY_CONFIG:ve,CLIENT_BILLING:ge}=s,me=new x,Oe=Object.values(s);me.grant($).create([ne,ae,Te,fe]).read([ne,ae,ue,te,Te,fe,ie]).update([ne,ae,fe]).grant(W).extend($).create([ue,te]).read([re]).update([ue,te]).delete([ne,ae,ue,te,fe]).grant(J).extend(W).create([re]).read([oe,pe]).update([ie,re,pe]).delete([re]).grant(V).extend(W).create([re,Ne,de,ye,oe,se,pe,Se,Ie,Ae]).read([re,Ne,de,ye,oe,pe,Se,Ie,Ae]).update([ie,re,le,ce,Ne,de,ye,oe,pe,Se,ve,Ie,Ae]).delete([re,Ne,de,ae,ye,oe,pe,Se,Ie,Ae]).grant(q).extend(V).create([ie,ge,Ae]).read([ge,Ae,Re]).update([ge]).delete([ie,ge,Ae,Re]).grant(Q).extend(q),me.grant(z).create([ae]).read([ae]).update([ae]).delete([ae]),me.grant(X).read([de,Ne]).update([Ne]),me.grant(Z).create([...Oe,F]).read(Oe).update([...Oe,K]).delete(Oe),me.grant(ee).create([te,ne,ie,re,ae,le,se,ce,oe,ue,pe,_e,Ee,de,Ne,Ae,Se,F,Ie,ye,Te,fe,ve,ge]).read(Oe).update([te,ie,ne,re,ae,le,ce,oe,se,ue,pe,_e,de,Ee,Ae,Ne,Se,K,F,Ie,ye,fe,Te,ve,ge]).deleteOwn([te,ie,ne,re,ae,oe,se,ue,pe,_e,de,Ne,Ae,Se,Ie,ye,Re,Te,ve,fe,ge]);const Le={billingType:{MONTHLY:"MONTHLY",YEARLY:"YEARLY",FOREVER:"FOREVER",TWO_YEARLY:"TWO_YEARLY"},siteTypes:{STATIC:"STATIC",AGENCY:"AGENCY"},product:{STARTER:"STARTER",PERSONAL:"PERSONAL",AGENCY:"AGENCY",FREE:"FREE",BUSINESS:"BUSINESS",PREMIUM:"PREMIUM",AGENCY_PLUS:"AGENCY_PLUS"},planType:{REGULAR:"REGULAR",AGENCY:"AGENCY"},plan:{CMS:"CMS",FREE:"FREE",PLAN_1:"PLAN_1",PLAN_2:"PLAN_2",PLAN_3:"PLAN_3",STARTER_25:"STARTER_25",PREMIUM_10:"PREMIUM_10",PREMIUM_25:"PREMIUM_25",PREMIUM_100:"PREMIUM_100",STARTER:"STARTER",PERSONAL:"PERSONAL",PERSONAL_MONTHLY:"PERSONAL_MONTHLY",BUSINESS:"BUSINESS",BUSINESS_3:"BUSINESS_3",BUSINESS_10:"BUSINESS_10",BUSINESS_MONTHLY:"BUSINESS_MONTHLY",BUSINESS_MONTHLY_10:"BUSINESS_MONTHLY_10",AGENCY:"AGENCY",AGENCY_10:"AGENCY_10",AGENCY_25:"AGENCY_25",AGENCY_100:"AGENCY_100",AGENCY_250:"AGENCY_250",AGENCY_PLUS:"AGENCY_PLUS",AGENCY_MONTHLY_10:"AGENCY_MONTHLY_10",AGENCY_MONTHLY_25:"AGENCY_MONTHLY_25",AGENCY_MONTHLY_100:"AGENCY_MONTHLY_100",AGENCY_MONTHLY_250:"AGENCY_MONTHLY_250",LTD_AGENCY_NCF:"LTD_AGENCY_NCF",LTD_AGENCY_PRIME:"LTD_AGENCY_PRIME",DORIK_PRO:"DORIK_PRO",DORIK_PRO_MONTHLY:"DORIK_PRO_MONTHLY",DORIK_AGENCY:"DORIK_AGENCY",DORIK_AGENCY_MONTHLY:"DORIK_AGENCY_MONTHLY"}},{billingType:be,product:Ye,planType:Ce,plan:he}=Le,{YEARLY:Pe,MONTHLY:Me,TWO_YEARLY:Ue,FOREVER:Ge}=be,De={};De[he.FREE]={price:0,planId:0,provider:"",billingType:"",displayName:"Free",planKey:he.FREE,planType:Ce.REGULAR,productType:Ye.FREE,limits:{domain:0}},De[he.PERSONAL_MONTHLY]={limits:{domain:1},price:{[Me]:{IN:{original:1199,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:29,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}}},billingType:Me,discountPrice:{[Me]:5.6},discountAllowed:!1,coupon:"BLF30",discountRatio:.3,planKey:he.PERSONAL_MONTHLY,planType:Ce.REGULAR,productType:Ye.PERSONAL,displayName:"Personal (1 Domain) - Monthly"},De[he.PERSONAL]={price:{[Pe]:{IN:{original:8999,discount:33.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:216,discount:33.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}},[Ge]:{DEFAULT:{original:249,domain:199,discount:33.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}}},limits:{domain:1},coupon:"BLF30",billingType:Pe,displayName:"Personal (1 Domain) - Yearly",ltdDisplayName:"Personal (LTD)",planKey:he.PERSONAL,planType:Ce.REGULAR,productType:Ye.PERSONAL},De[he.PLAN_1]={price:36,provider:"PADDLE",billingType:"YEARLY",dis
1playName:"Starter ( 25 Domains )",planKey:he.PLAN_1,planType:Ce.REGULAR,productType:Ye.STARTER,limits:{domain:25}},De[he.PLAN_2]={price:50,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium (25 Domains)",planKey:he.PLAN_2,planType:Ce.REGULAR,productType:Le.product.PREMIUM,limits:{domain:25}},De[he.PLAN_3]={provider:"PADDLE",billingType:be.FOREVER,displayName:"Lifetime",planKey:Le.plan.PLAN_3,planType:Ce.REGULAR,productType:Le.product.PREMIUM,price:{[Ge]:{DEFAULT:{domain:149,currency:"USD",currencySign:"$"}}},limits:{domain:3}},De[he.LTD_AGENCY_PRIME]={displayName:"DORIK CMS - PRIME LTD",billingType:be.FOREVER,planType:Ce.AGENCY,planKey:he.LTD_AGENCY_PRIME,productType:Ye.AGENCY,price:{[Ge]:{DEFAULT:{domain:149,currency:"USD",currencySign:"$"}}},limits:{pageViews:1e5,staffLimit:1e3,category:1e3,tag:1e3,post:1e3,members:5e4,teamMembers:1e3}},De[he.LTD_AGENCY_NCF]={displayName:"DORIK CMS - NoCodeFrance",billingType:be.FOREVER,planType:Ce.AGENCY,planKey:he.LTD_AGENCY_NCF,productType:Ye.AGENCY,price:{[Ge]:{DEFAULT:{domain:149,currency:"USD",currencySign:"$"}}},limits:{pageViews:1e5,staffLimit:1e3,category:1e3,tag:1e3,post:1e3,members:5e4,teamMembers:1e3}},De[he.STARTER_25]={price:79,provider:"PADDLE",billingType:"YEARLY",displayName:"Starter (25 Domains)",planKey:he.STARTER_25,planType:Ce.REGULAR,productType:Ye.STARTER,limits:{domain:25}},De[he.PREMIUM_10]={price:79,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium 10",planKey:he.PREMIUM_10,planType:Ce.REGULAR,productType:Ye.PREMIUM,limits:{domain:100}},De[he.PREMIUM_25]={price:79,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium 25",planKey:he.PREMIUM_25,planType:Ce.REGULAR,productType:Ye.PREMIUM,limits:{domain:100}},De[he.PREMIUM_100]={price:199,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium",planKey:he.PREMIUM_100,planType:Ce.REGULAR,productType:Ye.PREMIUM,limits:{domain:100}},De[he.BUSINESS_MONTHLY]={provider:"PADDLE",billingType:Me,displayName:"Business (3 Domains) - Monthly",planKey:he.BUSINESS_MONTHLY,price:{[Me]:{IN:{original:2399,discount:13.3,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:59,discount:13.3,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}}},coupon:"BLF30",discountRatio:.3,planType:Ce.REGULAR,productType:Ye.BUSINESS,limits:{domain:3}},De[he.BUSINESS_3]={price:{[Pe]:{IN:{original:19188,discount:90.3,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:468,discount:90.3,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}},[Ge]:{DEFAULT:{original:599,domain:149,discount:90.3,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}}},coupon:"BLF30",discountRatio:.3,billingType:Pe,planKey:he.BUSINESS_3,planType:Ce.REGULAR,displayName:"Business (3 Domains) - Yearly",ltdDisplayName:"Business (LTD)",productType:Ye.BUSINESS,limits:{domain:3}},De[he.BUSINESS_10]={price:{[Pe]:{IN:{original:59988,discount:13.3,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:1428,discount:244.3,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$"}}},coupon:"BLF30",discountRatio:.3,billingType:Pe,displayName:"Business (10 Domains) - Yearly",planKey:he.BUSINESS_10,planType:Ce.REGULAR,productType:Ye.BUSINESS,limits:{domain:10}},De[he.BUSINESS_MONTHLY_10]={price:{[Me]:{IN:{original:6599,discount:13.3,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9"},DEFAULT:{original:159,discount:34.3,discountAllowed:!1,discountRatio:.3,coupon:"BLF30",currency:"USD",currencySign:"$"}}},coupon:"BLF30",discountRatio:.3,billingType:Me,displayName:"Business (10 Domains) - Monthly",planKey:he.BUSINESS_MONTHLY_10,planType:Ce.REGULAR,productType:Ye.BUSINESS,limits:{domain:10}},De[he.AGENCY_25]={billingType:Pe,displayName:"Agency (25 Domains)",planKey:he.AGENCY_25,planType:Ce.AGENCY,productType:Ye.AGENCY,discountAllowed:!0,coupon:"BLF30",price:{[Pe]:2868,[Ue]:699},discountPrice:{[Pe]:314.3,[Ue]:489.3},discountRatio:.3,limits:{domain:25}},De[he.AGENCY_100]={billingType:Pe,displayName:"Agency (100 Domains)",planType:Ce.AGENCY,planKey:he.AGENCY_100,productType:Ye.AGENCY,discountAllowed:!0,coupon:"BLF30",limits:{domain:100},price:{[Pe]:849,[Ue]:1299},discountPrice:{[Pe]:594.3,[Ue]:909.3},discountRatio:.3}
1,De[he.AGENCY_250]={displayName:"Agency (250 Domains)",billingType:Pe,planType:Ce.AGENCY,planKey:he.AGENCY_250,productType:Ye.AGENCY,discountAllowed:!0,coupon:"BLF30",limits:{domain:250},price:{[Pe]:1199,[Ue]:1999},discountPrice:{[Pe]:839.3,[Ue]:1399.3},discountRatio:.3},De[he.AGENCY_MONTHLY_25]={billingType:Me,displayName:"Agency (25 Domains) - Monthly",planKey:he.AGENCY_MONTHLY_25,planType:Ce.AGENCY,productType:Ye.AGENCY,discountAllowed:!1,coupon:"BLF30",price:{[Me]:299},discountPrice:{[Me]:41.3},discountRatio:.3,limits:{domain:25}},De[he.AGENCY_MONTHLY_100]={billingType:Me,displayName:"Agency (100 Domains) - Monthly",planType:Ce.AGENCY,planKey:he.AGENCY_MONTHLY_100,productType:Ye.AGENCY,discountAllowed:!1,coupon:"BLF30",limits:{domain:100},price:{[Me]:119},discountPrice:{[Me]:83.3},discountRatio:.3},De[he.AGENCY_MONTHLY_250]={displayName:"Agency (250 Domains) - Monthly",billingType:Me,planType:Ce.AGENCY,planKey:he.AGENCY_MONTHLY_250,productType:Ye.AGENCY,discountAllowed:!1,coupon:"BLF30",limits:{domain:250},price:{[Me]:159},discountPrice:{[Me]:111.3},discountRatio:.3};const we=new Map,{plan:Be}=Le;we.set(Be.FREE,De.FREE),we.set(Be.PERSONAL_MONTHLY,{...De.PERSONAL_MONTHLY,planId:19384}),we.set(Be.PERSONAL,{...De.PERSONAL,planId:19385}),we.set(Be.PLAN_1,{...De.PLAN_1,planId:9389}),we.set(Be.PLAN_2,{...De.PLAN_2,planId:7844}),we.set(Be.PLAN_3,{...De.PLAN_3,planId:7845}),we.set(Be.LTD_AGENCY_PRIME,{...De.LTD_AGENCY_PRIME,planId:31936}),we.set(Be.LTD_AGENCY_NCF,{...De.LTD_AGENCY_NCF,planId:19389}),we.set(Be.STARTER_25,{...De.STARTER_25,planId:9387}),we.set(Be.PREMIUM_100,{...De.PREMIUM_100,planId:9388}),we.set(Be.BUSINESS_MONTHLY,{...De.BUSINESS_MONTHLY,planId:19388}),we.set(Be.BUSINESS_3,{planId:48465,...De.BUSINESS_3}),we.set(Be.BUSINESS_10,{...De.BUSINESS_10,planId:48466}),we.set(Be.BUSINESS_MONTHLY_10,{...De.BUSINESS_MONTHLY_10,planId:65357}),we.set(Be.AGENCY_25,{...De.AGENCY_25,planId:48467}),we.set(Be.AGENCY_100,{...De.AGENCY_100,planId:48468}),we.set(Be.AGENCY_250,{...De.AGENCY_250,planId:48469}),we.set(Be.AGENCY_MONTHLY_25,{...De.AGENCY_MONTHLY_25,planId:65358}),we.set(Be.AGENCY_MONTHLY_100,{...De.AGENCY_MONTHLY_100,planId:65359}),we.set(Be.AGENCY_MONTHLY_250,{...De.AGENCY_MONTHLY_250,planId:65360});const He=new Map,{plan:je}=Le;He.set(je.FREE,De.FREE),He.set(je.PERSONAL_MONTHLY,{...De.PERSONAL_MONTHLY,planId:743159}),He.set(je.PERSONAL,{...De.PERSONAL,planId:743160}),He.set(je.PLAN_1,{...De.PLAN_1,planId:591501}),He.set(je.PLAN_2,{...De.PLAN_2,planId:592743}),He.set(je.PLAN_3,{...De.PLAN_3,planId:599617}),He.set(je.STARTER_25,{...De.STARTER_25,planId:744473}),He.set(je.PREMIUM_10,{...De.PREMIUM_10,planId:647853}),He.set(je.PREMIUM_25,{...De.PREMIUM_25,planId:647857}),He.set(je.PREMIUM_100,{...De.PREMIUM_100,planId:647859}),He.set(je.BUSINESS_MONTHLY,{...De.BUSINESS_MONTHLY,planId:743162}),He.set(je.BUSINESS_3,{...De.BUSINESS_3,planId:743161}),He.set(je.BUSINESS_10,{...De.BUSINESS_10,planId:823088}),He.set(je.BUSINESS_MONTHLY_10,{...De.BUSINESS_MONTHLY_10,planId:857028}),He.set(je.AGENCY_25,{...De.AGENCY_25,planId:774988}),He.set(je.AGENCY_100,{...De.AGENCY_100,planId:774989}),He.set(je.AGENCY_250,{...De.AGENCY_250,planId:823732}),He.set(je.AGENCY_MONTHLY_25,{...De.AGENCY_MONTHLY_25,planId:857029}),He.set(je.AGENCY_MONTHLY_100,{...De.AGENCY_MONTHLY_100,planId:857030}),He.set(je.AGENCY_MONTHLY_250,{...De.AGENCY_MONTHLY_250,planId:857031}),He.set(je.LTD_AGENCY_PRIME,{...De.LTD_AGENCY_PRIME,planId:779882}),He.set(je.LTD_AGENCY_NCF,{...De.LTD_AGENCY_NCF,planId:795160});const{product:ke,plan:xe}=Le,Fe=new Map;Fe.set(xe.PERSONAL,{provider:"",plans:[xe.PERSONAL,xe.PERSONAL_MONTHLY],displayName:"Personal",productType:ke.PERSONAL,features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"25 Pages",active:!0},{label:"200 Blog Posts",active:!0},{label:"0 Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"5 CMS Collections",active:!0},{label:"200 Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"3,000 Members",active:!0},{label:"Export Site",active:!1},{label:"White Label Dashboard",active:!1},{label:"Client Billing",active:!1},{label:"Agency Branding",active:!1},{label:"White Label Documentation",active:!1}]}),Fe.set(xe.BUSINESS,{provider:"",plans:[xe.BUSINESS_3,xe.BUSINESS_10,xe.BUSINESS_MONTHLY,xe.BUSINESS_MONTHLY_10],displayName:"Business",productType:ke.BUSINESS,features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Unlimited Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"10 Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Unlimited Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"10,000 Members",active:!0},{label:"Export Site 15 Times Per Month",active:!0},{label:"White Label Dashboard",active:!0},{label:"Client Billing",active:!1},{label:"Agency Branding",active:!1},{label:"White Label Documentation",active:!1}]}),Fe.set(xe.AGENCY,{provider:"",plans:[xe.AGENCY_25,xe.AGENCY_100,xe.AGENCY_250,xe.AGENCY_MONTHLY_25,xe.AGENCY_MONTHLY_100,xe.AGENCY_MONTHLY_250],displayName:"Agency",productType:ke.AGENCY,features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Unlimited Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Unlimited Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"Unlimted Members",active:!0},{label:"Export Site 15 Times Per Month",active:!0},{label:"White Label Dashboard",active:!0},{label:"Client Billing",active:!0},{label:"Agency Branding",active:!0},{label:"White Label Documentation",active:!0}]});const Ke=new Map;Ke.set(xe.BUSINESS,{plans:[xe.BUSINESS_MONTHLY,xe.LTD_AGENCY_PRIME,xe.LTD_AGENCY_NCF],displayName:"Business",features:Fe.get(xe.BUSINESS).features||[]}),Ke.set(xe.PERSONAL,{displayName:"Personal",plans:[xe.PERSONAL_MONTHLY],features:Fe.get(xe.PERSONAL).features||[]}),Ke.set(Le.product.FREE,{displayName:"Free",plans:[xe.FREE],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0}]}),Ke.set(Le.product.STARTER,{displayName:"Starter",plans:[xe.PLAN_1,xe.PLAN_2,xe.STARTER_25],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0},{label:"Remove Branding",active:!0},{label:"Custom Code",active:!0}]}),Ke.set(Le.product.PREMIUM,{displayName:"Premium",plans:[xe.PLAN_3,xe.PREMIUM_10,xe.PREMIUM_25,xe.PREMIUM_100],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0},{label:"Remove Branding",active:!0},{label:"Custom Code",active:!0},{label:"Custom Form",active:!0},{label:"Payment Button",active:!0},{label:"Export HTML/CSS/JS",active:!0}]});const ze=["production","staging"].includes({VITE_AIRTABLE_API_URL:"https://rkqj7859q4.execute-api.us-east-2.amazonaws.com/Prod",VITE_SUBSCRIPTION_API_URL:"https://41f5pv771f.execute-api.us-east-2.amazonaws.com/Prod/create-contact",VITE_TURNSTILE_SITE_KEY:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_STAGE),{siteTypes:{STATIC:qe},plan:{FREE:Ve,STARTER:We,PERSONAL:$e,AGENCY:Ze,PLAN_1:Je,PLAN_2:Qe,PLAN_3:Xe,STARTER_25:et,AGENCY_PLUS:tt,BUSINESS_3:it,BUSINESS_10:nt,AGENCY_25:rt,AGENCY_100:at,AGENCY_250:ot,LTD_AGENCY_NCF:st,BUSINESS_MONTHLY:lt,LTD_AGENCY_PRIME:ct,PERSONAL_MONTHLY:ut,BUSINESS_MONTHLY_10:dt,AGENCY_MONTHLY_25:pt,AGENCY_MONTHLY_100:_t,AGENCY_MONTHLY_250:Et},billingType:{TWO_YEARLY:Nt,FOREVER:At}}=Le,St=ze?He:we,yt=(e=0)=>[...St.values()].find((t=>t.planId===e)),It=[Ve,Je,Qe,We,ut,lt,dt,pt,_t,Et,$e,et,it,nt,rt,at,Ze,tt,ot,Xe,st,ct];Symbol.toStringTag;const Rt={development:{FREE:"FREE",PERSONAL:"pri_01jy4b71xka7n30en1f1wax5j4",PERSONAL_LTD:"pri_01jye8vp3vcdazwf39jaqnsj1e",PERSONAL_INDIAN:"pri_01jye9bagpsy441zxz3x24nb9n",PERSONAL_MONTHLY:"pri_01jy6h72zahxwkhgn50srbz5k6",PERSONAL_TWO_YEARLY:"pri_01k94p7xkj364scvm1t03mneex",PERSONAL_MONTHLY_INDIAN:"pri_01jye9a9aq808bjr03gp6wc5md",BUSINESS_3:"pri_01jy6hdkkjdtngey3gzf766caa",BUSINESS_3_LTD:"pri_01jye9gad1yfhrvx2c86xm9nky",BUSINESS_3_INDIA:"pri_01jye9q4ryfr79wc9q953pnkzb",BUSINESS_3_TWO_YEARLY:"pri_01k94pdpzn0k7bvthnxg9q16xr",BUSINESS_10:"pri_01jy6hfnr44nwdjadv0j6a5nyk",BUSINESS_10_INDIA:"pri_01jye9sxy2hapcv08gdg3vnv66",BUSINESS_MONTHLY:"pri_01jy6hk1kq6d8rvp2pkxnvy2e0",BUSINESS_MONTHLY_INDIA:"pri_01jye9k4fbxjvgsfbzpkdbc41c",BUSINESS_MONTHLY_10:"pri_01jy6hgzvs79djnswv61b25x9t",BUSINESS_MONTHLY_10_INDIA:"pri_01jye9m7s0s1xqyfz4ghjghgvb",AGENCY_10:"pri_01ke3w0331bwxpa733x56neaqq",AGENCY_25:"pri_01jy6j4dqr39fpt15ssy3qqwdb",AGENCY_100:"pri_01jy6j66zc7hw57da8hrf4djrw",AGENCY_250:"pri_01jy6j7ewewbaph2exk36d4b3h",AGENCY_MONTHLY_10:"pri_01ke3w6m5kev9h1mr7dg5dwn1y",AGENCY_MONTHLY_25:"pri_01jy6hzxyt7fnxx55024394196",AGENCY_MONTHLY_100:"pri_01jy6j116z0mtgbt5jzwen8q09",AGENCY_MONTHLY_250:"pri_01jy6j1x7qfpe7fam420f099pb",PERSONAL_LTD_DOMAIN:"pri_01jz7wht81j2sr3z45q0yb1x0q",BUSINESS_LTD_DOMAIN:"pri_01jz7wsd5hsdxb0h6z4f3be999",STARTER_25:"pri_01jzqpmaj
1788kgkz9xsjfye2xa",PREMIUM_25:"pri_01k016w330sxh5mzh4y372z731",STATIC_LTD:"pri_01k016snvgwbwcg1fdamk0epr7",STARTER_25_V2:"pri_01jz2e8a93f5dzw4dp8mkw1ss5",PREMIUM_100:"pri_01k016xganbj88eartmwhdzr16",PREMIUM_100_V2:"pri_01k016yaa25vrgdfqfz66v2ckp",LTD_AGENCY_NCF:"pri_01k016ryqzmffpxmxn587w884y",LTD_AGENCY_PRIME:"pri_01k016r3610w88e837rmd9adjd",AGENCY_NCF_LTD_DOMAIN:"pri_01k01ahf72dyx92s4b4k8dqybb",AGENCY_PRIME_LTD_DOMAIN:"pri_01k01akn3x92hk228s2vgphpd3",DORIK_PRO:"pri_01khny246357qy2zt6p5rfqb83",DORIK_PRO_MONTHLY:"pri_01khny43rhpn5vzpw7hzpk96q0",DORIK_AGENCY:"pri_01khny79tbpewa11crqt4cdn44",DORIK_AGENCY_MONTHLY:"pri_01khny8tmvsrj98ndtbtxd8j2r"},production:{FREE:"FREE",PERSONAL:"pri_01jzqwrngzwkxpgq04hc2sda8h",PERSONAL_LTD:"pri_01jzssqw9f6re7b1w57b4rzx4m",PERSONAL_INDIAN:"pri_01jzssvadexr9yppfkazfgv4j9",PERSONAL_MONTHLY:"pri_01jzssn51ec7w8vt20vya5tvy0",PERSONAL_TWO_YEARLY:"pri_01k7nsrjabwnaexpys8z81b31y",PERSONAL_MONTHLY_INDIAN:"pri_01jzsssx9a5jdy4nqr97xrc8mq",BUSINESS_3:"pri_01jzst5c4gdmp3d5se50r3dq4e",BUSINESS_3_LTD:"pri_01jzst9k448jns52xbajkqhb7j",BUSINESS_3_INDIA:"pri_01jzstbmcpw5z6nz2ah2f12m1r",BUSINESS_3_TWO_YEARLY:"pri_01k7nsy9vxfxqnqr6jw8agj1a7",BUSINESS_10:"pri_01jzst6hwdy1mgz42mshxj7khf",BUSINESS_10_INDIA:"pri_01jzstdd856m25106cxvcpnvjq",BUSINESS_MONTHLY:"pri_01jzst7fzsasjjnwbzwbws8kn9",BUSINESS_MONTHLY_INDIA:"pri_01jzstfa8p77x4kv78reked0b8",BUSINESS_MONTHLY_10:"pri_01jzst8azn7q2tv02ckj9jarrn",BUSINESS_MONTHLY_10_INDIA:"pri_01jzstgm2q62sg4g6vmskacwp9",AGENCY_10:"pri_01ke4a5jnn8vfgqmwkx67s8sjc",AGENCY_25:"pri_01jzstt4cav4zmefpb81a8q1bk",AGENCY_100:"pri_01jzsttvqzc8s1rzy8zm3p7pc1",AGENCY_250:"pri_01jzstvqg3rhabhpga9z08bm7m",AGENCY_MONTHLY_10:"pri_01ke4a4febe80a42c7pged5w2f",AGENCY_MONTHLY_25:"pri_01jzstppvcbe3h2erhmgjy9h8x",AGENCY_MONTHLY_100:"pri_01jzstqsxqr0t2jhc7b5gmyahk",AGENCY_MONTHLY_250:"pri_01jzstrs7hd65wr0t4h8zv7364",PERSONAL_LTD_DOMAIN:"pri_01jzst169xmw58n4p38ybf8dwd",BUSINESS_LTD_DOMAIN:"pri_01jzstk7e4j1a5yaqv0q2wy0y0",STARTER_25:"pri_01k015r66mvtsgj080fmqgb3p3",PREMIUM_25:"pri_01k015v6aq1zm30vmntwmctmwm",STATIC_LTD:"pri_01jzsv3m66yfx9fzn7aa14tbz5",STARTER_25_V2:"pri_01k015yksypd9q56pxwy579xy6",PREMIUM_100:"pri_01k0162q0mdy9h75pcvtppztj3",PREMIUM_100_V2:"pri_01k0164m39zcm2vg6a77va447f",LTD_AGENCY_NCF:"pri_01jzsx3748qzmtep35nkh79s2r",LTD_AGENCY_PRIME:"pri_01jzsx5ds4n1rhkqg1qryvc11d",AGENCY_NCF_LTD_DOMAIN:"pri_01k01awtsb5bjmz6ba8vf9rs49",AGENCY_PRIME_LTD_DOMAIN:"pri_01k01avqe24v7gd8vxs855b7c3",DORIK_PRO:"pri_01kj27kdwk0z7s2tystqdyq1bs",DORIK_PRO_MONTHLY:"pri_01kj27jf5tsg9mh8nhrfr81av6",DORIK_AGENCY:"pri_01kj27gwa73grrvrqjv7ry1c2t",DORIK_AGENCY_MONTHLY:"pri_01kj279zjcvh9jv9q26pj9cxb9"}},Tt=["production","staging"].includes({VITE_AIRTABLE_API_URL:"https://rkqj7859q4.execute-api.us-east-2.amazonaws.com/Prod",VITE_SUBSCRIPTION_API_URL:"https://41f5pv771f.execute-api.us-east-2.amazonaws.com/Prod/create-contact",VITE_TURNSTILE_SITE_KEY:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}.VITE_APP_STAGE)?Rt.production:Rt.development,ft={billingType:{MONTHLY:"MONTHLY",YEARLY:"YEARLY",FOREVER:"FOREVER",TWO_YEARLY:"TWO_YEARLY"},siteTypes:{STATIC:"STATIC",AGENCY:"AGENCY"},product:{STARTER:"STARTER",PERSONAL:"PERSONAL",AGENCY:"AGENCY",FREE:"FREE",BUSINESS:"BUSINESS",PREMIUM:"PREMIUM",AGENCY_PLUS:"AGENCY_PLUS"},planType:{REGULAR:"REGULAR",AGENCY:"AGENCY"},plan:{CMS:"CMS",FREE:"FREE",PLAN_1:"PLAN_1",PLAN_2:"PLAN_2",PLAN_3:"PLAN_3",STATIC_LTD:"STATIC_LTD",STARTER_25:"STARTER_25",STARTER_25_V2:"STARTER_25_V2",PREMIUM_10:"PREMIUM_10",PREMIUM_25:"PREMIUM_25",PREMIUM_100:"PREMIUM_100",PREMIUM_100_V2:"PREMIUM_100_V2",STARTER:"STARTER",PERSONAL:"PERSONAL",PERSONAL_LTD:"PERSONAL_LTD",PERSONAL_INDIAN:"PERSONAL_INDIAN",PERSONAL_MONTHLY:"PERSONAL_MONTHLY",PERSONAL_TWO_YEARLY:"PERSONAL_TWO_YEARLY",PERSONAL_MONTHLY_INDIAN:"PERSONAL_MONTHLY_INDIAN",BUSINESS:"BUSINESS",BUSINESS_LTD:"BUSINESS_LTD",BUSINESS_3:"BUSINESS_3",BUSINESS_3_TWO_YEARLY:"BUSINESS_3_TWO_YEARLY",BUSINESS_3_INDIA:"BUSINESS_3_INDIA",BUSINESS_3_LTD:"BUSINESS_3_LTD",BUSINESS_10:"BUSINESS_10",BUSINESS_10_INDIA:"BUSINESS_10_INDIA",BUSINESS_MONTHLY:"BUSINESS_MONTHLY",BUSINESS_MONTHLY_INDIA:"BUSINESS_MONTHLY_INDIA",BUSINESS_MONTHLY_10:"BUSINESS_MONTHLY_10",BUSINESS_MONTHLY_10_INDIA:"BUSINESS_MONTHLY_10_INDIA",AGENCY:"AGENCY",AGENCY_10:"AGENCY_10",AGENCY_25:"AGENCY_25",AGENCY_100:"AGENCY_100",AGENCY_250:"AGENCY_250",AGENCY_PLUS:"AGENCY_PLUS",AGENCY_MONTHLY_10:"AGENCY_MONTHLY_10",AGENCY_MONTHLY_25:"AGENCY_MONTHLY_25",AGENCY_MONTHLY_100:"AGENCY_MONTHLY_100",AGENCY_MONTHLY_250:"AGENCY_MONTHLY_250",LTD_AGENCY_NCF:"LTD_AGENCY_NCF",LTD_AGENCY_PRIME:"LTD_AGENCY_PRIME",DORIK_PRO:"DORIK_PRO",DORIK_PRO_MONTHLY:"DORIK_PRO_MONTHLY",DORIK_AGENCY:"DORIK_AGENCY",DORIK_AGENCY_MONTHLY:"DORIK_AGENCY_MONTHLY"}},{billingType:vt,product:gt,planType:mt,plan:Ot}=ft,{YEARLY:Lt,TWO_YEARLY:bt,MONTHLY:Yt,FOREVER:Ct}=vt,ht=new Map;
1ht.set(Ot.FREE,{originalPrice:0,discount:0,discountAllowed:!1,discountRatio:0,currency:"USD",currencySign:"$",priceId:"FREE",planKey:Ot.FREE,planType:mt.REGULAR,productType:gt.FREE,displayName:"Free"}),ht.set(Ot.PERSONAL_MONTHLY,{originalPrice:29,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:1},billingType:Yt,planKey:Ot.PERSONAL_MONTHLY,planType:mt.REGULAR,productType:gt.PERSONAL,displayName:"Personal (1 Domain) - Monthly"}),ht.set(Ot.PERSONAL_MONTHLY_INDIAN,{originalPrice:1199,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:1},billingType:Yt,planType:mt.REGULAR,productType:gt.PERSONAL,planKey:Ot.PERSONAL_MONTHLY,displayName:"Personal (1 Domain) - Monthly"}),ht.set(Ot.PERSONAL,{originalPrice:249,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:1},billingType:Lt,planKey:Ot.PERSONAL,planType:mt.REGULAR,productType:gt.PERSONAL,displayName:"Personal (1 Domain) - Yearly"}),ht.set(Ot.PERSONAL_INDIAN,{originalPrice:8999,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:1},billingType:Lt,planType:mt.REGULAR,planKey:Ot.PERSONAL,productType:gt.PERSONAL,displayName:"Personal (1 Domain) - Yearly"}),ht.set(Ot.PERSONAL_LTD,{originalPrice:249,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:1},billingType:Ct,planType:mt.REGULAR,planKey:Ot.PERSONAL,productType:gt.PERSONAL,displayName:"Personal (1 Domain) - (LTD)",additionalDomain:{price:199,currency:"USD",currencySign:"$",priceId:Tt.PERSONAL_LTD_DOMAIN}}),ht.set(Ot.PERSONAL_TWO_YEARLY,{originalPrice:399,discount:5.6,discountAllowed:!1,discountRatio:.5,currency:"USD",currencySign:"$",limits:{domain:1},billingType:bt,planType:mt.REGULAR,productType:gt.PERSONAL,planKey:Ot.PERSONAL_TWO_YEARLY,displayName:"Personal (1 Domain) - Two Yearly"}),ht.set(Ot.BUSINESS_MONTHLY,{originalPrice:59,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:3},billingType:Yt,planType:mt.REGULAR,planKey:Ot.BUSINESS_MONTHLY,productType:gt.BUSINESS,displayName:"Business (3 Domains) - Monthly"}),ht.set(Ot.BUSINESS_MONTHLY_10,{originalPrice:159,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:10},billingType:Yt,planType:mt.REGULAR,productType:gt.BUSINESS,planKey:Ot.BUSINESS_MONTHLY_10,displayName:"Business (10 Domains) - Monthly"}),ht.set(Ot.BUSINESS_MONTHLY_INDIA,{originalPrice:2399,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:3},billingType:Yt,planType:mt.REGULAR,productType:gt.BUSINESS,planKey:Ot.BUSINESS_MONTHLY,displayName:"Business (3 Domains) - Monthly"}),ht.set(Ot.BUSINESS_MONTHLY_10_INDIA,{originalPrice:6599,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:10},billingType:Yt,planType:mt.REGULAR,productType:gt.BUSINESS,planKey:Ot.BUSINESS_MONTHLY_10,displayName:"Business (10 Domains) - Monthly"}),ht.set(Ot.BUSINESS_3,{originalPrice:498,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:3},billingType:Lt,planKey:Ot.BUSINESS_3,planType:mt.REGULAR,productType:gt.BUSINESS,displayName:"Business (3 Domains) - Yearly"}),ht.set(Ot.BUSINESS_10,{originalPrice:1428,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:10},billingType:Lt,planKey:Ot.BUSINESS_10,planType:mt.REGULAR,productType:gt.BUSINESS,displayName:"Business (10 Domains) - Yearly"}),ht.set(Ot.BUSINESS_3_INDIA,{originalPrice:19188,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:3},billingType:Lt,planType:mt.REGULAR,productType:gt.BUSINESS,planKey:Ot.BUSINESS_3,displayName:"Business (3 Domains) - Yearly"}),ht.set(Ot.BUSINESS_10_INDIA,{originalPrice:59988,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"INR",currencySign:"\u20b9",limits:{domain:10},billingType:Lt,planType:mt.REGULAR,productType:gt.BUSINESS,planKey:Ot.BUSINESS_10,displayName:"Business (10 Domains) - Yearly"}
1),ht.set(Ot.BUSINESS_3_LTD,{originalPrice:599,discount:5.6,discountAllowed:!1,discountRatio:.3,currency:"USD",currencySign:"$",limits:{domain:3},billingType:Ct,planType:mt.REGULAR,planKey:Ot.BUSINESS_3,productType:gt.BUSINESS,displayName:"Business (3 Domains) - (LTD)",additionalDomain:{price:149,currency:"USD",currencySign:"$",priceId:Tt.BUSINESS_LTD_DOMAIN}}),ht.set(Ot.BUSINESS_3_TWO_YEARLY,{originalPrice:899,discount:5.6,discountAllowed:!1,discountRatio:.5,currency:"USD",currencySign:"$",limits:{domain:3},billingType:bt,planKey:Ot.BUSINESS_3_TWO_YEARLY,planType:mt.REGULAR,productType:gt.BUSINESS,displayName:"Business (3 Domains) - Two Yearly"}),ht.set(Ot.AGENCY_10,{billingType:Lt,displayName:"Agency (10 Domains)",planKey:Ot.AGENCY_10,planType:mt.AGENCY,productType:gt.AGENCY,originalPrice:999,limits:{domain:10},discountRatio:.3,discount:5.6,discountAllowed:!1,currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_25,{billingType:Lt,displayName:"Agency (25 Domains)",planKey:Ot.AGENCY_25,planType:mt.AGENCY,productType:gt.AGENCY,originalPrice:2868,limits:{domain:25},discountRatio:.3,discount:5.6,discountAllowed:!1,currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_100,{billingType:Lt,displayName:"Agency (100 Domains)",planType:mt.AGENCY,planKey:Ot.AGENCY_100,productType:gt.AGENCY,discountAllowed:!0,limits:{domain:100},discountRatio:.3,originalPrice:849,discount:5.6,currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_250,{displayName:"Agency (250 Domains)",billingType:Lt,planType:mt.AGENCY,planKey:Ot.AGENCY_250,productType:gt.AGENCY,discountAllowed:!1,limits:{domain:250},originalPrice:1199,discountRatio:.3,currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_MONTHLY_10,{billingType:Yt,displayName:"Agency (10 Domains) - Monthly",planKey:Ot.AGENCY_MONTHLY_10,planType:mt.AGENCY,productType:gt.AGENCY,discountAllowed:!1,originalPrice:129,discountRatio:.3,limits:{domain:10},currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_MONTHLY_25,{billingType:Yt,displayName:"Agency (25 Domains) - Monthly",planKey:Ot.AGENCY_MONTHLY_25,planType:mt.AGENCY,productType:gt.AGENCY,discountAllowed:!1,originalPrice:299,discountRatio:.3,limits:{domain:25},currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_MONTHLY_100,{billingType:Yt,displayName:"Agency (100 Domains) - Monthly",planType:mt.AGENCY,planKey:Ot.AGENCY_MONTHLY_100,productType:gt.AGENCY,discountAllowed:!1,limits:{domain:100},originalPrice:119,discountRatio:.3,currency:"USD",currencySign:"$"}),ht.set(Ot.AGENCY_MONTHLY_250,{displayName:"Agency (250 Domains) - Monthly",billingType:Yt,planType:mt.AGENCY,planKey:Ot.AGENCY_MONTHLY_250,productType:gt.AGENCY,discountAllowed:!1,limits:{domain:250},originalPrice:159,discountRatio:.3,currency:"USD",currencySign:"$"}),ht.set(Ot.STARTER_25,{originalPrice:36,provider:"PADDLE",billingType:"YEARLY",displayName:"Starter ( 25 Domains )",planKey:Ot.STARTER_25,planType:mt.REGULAR,productType:gt.STARTER,limits:{domain:25},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.PREMIUM_25,{originalPrice:50,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium (25 Domains)",planKey:Ot.PREMIUM_25,planType:mt.REGULAR,productType:gt.PREMIUM,limits:{domain:25},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.STATIC_LTD,{provider:"PADDLE",billingType:vt.FOREVER,displayName:"Lifetime",planKey:Ot.STATIC_LTD,planType:mt.REGULAR,productType:gt.PREMIUM,originalPrice:149,limits:{domain:3},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.LTD_AGENCY_PRIME,{displayName:"DORIK CMS - PRIME LTD",billingType:vt.FOREVER,planType:mt.AGENCY,planKey:Ot.LTD_AGENCY_PRIME,productType:gt.AGENCY,originalPrice:149,currency:"USD",currencySign:"$",limits:{domain:149},isLegacy:!0,additionalDomain:{price:149,currency:"USD",currencySign:"$",priceId:Tt.AGENCY_PRIME_LTD_DOMAIN}}),ht.set(Ot.LTD_AGENCY_NCF,{displayName:"DORIK CMS - NoCodeFrance",billingType:vt.FOREVER,planType:mt.AGENCY,planKey:Ot.LTD_AGENCY_NCF,productType:gt.AGENCY,originalPrice:12400,currency:"USD",currencySign:"$",limits:{domain:149},isLegacy:!0,additionalDomain:{price:149,currency:"USD",currencySign:"$",priceId:Tt.AGENCY_NCF_LTD_DOMAIN}}
1),ht.set(Ot.STARTER_25_V2,{originalPrice:79,provider:"PADDLE",billingType:"YEARLY",displayName:"Starter (25 Domains)",planKey:Ot.STARTER_25_V2,planType:mt.REGULAR,productType:gt.STARTER,limits:{domain:25},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.PREMIUM_100,{originalPrice:79,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium 100",planKey:Ot.PREMIUM_100,planType:mt.REGULAR,productType:gt.PREMIUM,limits:{domain:100},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.PREMIUM_100_V2,{originalPrice:199,provider:"PADDLE",billingType:"YEARLY",displayName:"Premium",planKey:Ot.PREMIUM_100_V2,planType:mt.REGULAR,productType:gt.PREMIUM,limits:{domain:100},currency:"USD",currencySign:"$",isLegacy:!0}),ht.set(Ot.DORIK_PRO_MONTHLY,{originalPrice:49,discount:0,discountAllowed:!1,discountRatio:0,currency:"USD",currencySign:"$",billingType:Yt,planKey:Ot.DORIK_PRO_MONTHLY,planType:mt.REGULAR,productType:gt.BUSINESS,displayName:"Dorik Pro - Monthly"}),ht.set(Ot.DORIK_PRO,{originalPrice:468,discount:0,discountAllowed:!1,discountRatio:0,currency:"USD",currencySign:"$",billingType:Lt,planKey:Ot.DORIK_PRO,planType:mt.REGULAR,productType:gt.BUSINESS,displayName:"Dorik Pro - Yearly"}),ht.set(Ot.DORIK_AGENCY_MONTHLY,{originalPrice:99,discount:0,discountAllowed:!1,discountRatio:0,currency:"USD",currencySign:"$",billingType:Yt,planKey:Ot.DORIK_AGENCY_MONTHLY,planType:mt.AGENCY,productType:gt.AGENCY,displayName:"Dorik Agency - Monthly"}),ht.set(Ot.DORIK_AGENCY,{originalPrice:948,discount:0,discountAllowed:!1,discountRatio:0,currency:"USD",currencySign:"$",billingType:Lt,planKey:Ot.DORIK_AGENCY,planType:mt.AGENCY,productType:gt.AGENCY,displayName:"Dorik Agency - Yearly"});const Pt=new Map,{plan:Mt}=ft;Pt.set(Tt.FREE,{...ht.get(Mt.FREE)}),Pt.set(Tt.PERSONAL_MONTHLY,{...ht.get(Mt.PERSONAL_MONTHLY),priceId:Tt.PERSONAL_MONTHLY}),Pt.set(Tt.PERSONAL_MONTHLY_INDIAN,{...ht.get(Mt.PERSONAL_MONTHLY_INDIAN),priceId:Tt.PERSONAL_MONTHLY_INDIAN}),Pt.set(Tt.PERSONAL,{...ht.get(Mt.PERSONAL),priceId:Tt.PERSONAL}),Pt.set(Tt.PERSONAL_INDIAN,{...ht.get(Mt.PERSONAL_INDIAN),priceId:Tt.PERSONAL_INDIAN}),Pt.set(Tt.PERSONAL_LTD,{...ht.get(Mt.PERSONAL_LTD),priceId:Tt.PERSONAL_LTD}),Pt.set(Tt.PERSONAL_TWO_YEARLY,{...ht.get(Mt.PERSONAL_TWO_YEARLY),priceId:Tt.PERSONAL_TWO_YEARLY}),Pt.set(Tt.BUSINESS_MONTHLY,{...ht.get(Mt.BUSINESS_MONTHLY),priceId:Tt.BUSINESS_MONTHLY}),Pt.set(Tt.BUSINESS_MONTHLY_10,{...ht.get(Mt.BUSINESS_MONTHLY_10),priceId:Tt.BUSINESS_MONTHLY_10}),Pt.set(Tt.BUSINESS_MONTHLY_INDIA,{...ht.get(Mt.BUSINESS_MONTHLY_INDIA),priceId:Tt.BUSINESS_MONTHLY_INDIA}),Pt.set(Tt.BUSINESS_MONTHLY_10_INDIA,{...ht.get(Mt.BUSINESS_MONTHLY_10_INDIA),priceId:Tt.BUSINESS_MONTHLY_10_INDIA}),Pt.set(Tt.BUSINESS_3,{...ht.get(Mt.BUSINESS_3),priceId:Tt.BUSINESS_3}),Pt.set(Tt.BUSINESS_10,{...ht.get(Mt.BUSINESS_10),priceId:Tt.BUSINESS_10}),Pt.set(Tt.BUSINESS_3_INDIA,{...ht.get(Mt.BUSINESS_3_INDIA),priceId:Tt.BUSINESS_3_INDIA}),Pt.set(Tt.BUSINESS_10_INDIA,{...ht.get(Mt.BUSINESS_10_INDIA),priceId:Tt.BUSINESS_10_INDIA}),Pt.set(Tt.BUSINESS_3_LTD,{...ht.get(Mt.BUSINESS_3_LTD),priceId:Tt.BUSINESS_3_LTD}),Pt.set(Tt.BUSINESS_3_TWO_YEARLY,{...ht.get(Mt.BUSINESS_3_TWO_YEARLY),priceId:Tt.BUSINESS_3_TWO_YEARLY}),Pt.set(Tt.AGENCY_10,{...ht.get(Mt.AGENCY_10),priceId:Tt.AGENCY_10}),Pt.set(Tt.AGENCY_25,{...ht.get(Mt.AGENCY_25),priceId:Tt.AGENCY_25}),Pt.set(Tt.AGENCY_100,{...ht.get(Mt.AGENCY_100),priceId:Tt.AGENCY_100}),Pt.set(Tt.AGENCY_250,{...ht.get(Mt.AGENCY_250),priceId:Tt.AGENCY_250}),Pt.set(Tt.AGENCY_MONTHLY_10,{...ht.get(Mt.AGENCY_MONTHLY_10),priceId:Tt.AGENCY_MONTHLY_10}),Pt.set(Tt.AGENCY_MONTHLY_25,{...ht.get(Mt.AGENCY_MONTHLY_25),priceId:Tt.AGENCY_MONTHLY_25}),Pt.set(Tt.AGENCY_MONTHLY_100,{...ht.get(Mt.AGENCY_MONTHLY_100),priceId:Tt.AGENCY_MONTHLY_100}),Pt.set(Tt.AGENCY_MONTHLY_250,{...ht.get(Mt.AGENCY_MONTHLY_250),priceId:Tt.AGENCY_MONTHLY_250}),Pt.set(Tt.STARTER_25,{...ht.get(Mt.STARTER_25),priceId:Tt.STARTER_25}),Pt.set(Tt.PREMIUM_25,{...ht.get(Mt.PREMIUM_25),priceId:Tt.PREMIUM_25}),Pt.set(Tt.STATIC_LTD,{...ht.get(Mt.STATIC_LTD),priceId:Tt.STATIC_LTD}),Pt.set(Tt.LTD_AGENCY_PRIME,{...ht.get(Mt.LTD_AGENCY_PRIME),priceId:Tt.LTD_AGENCY_PRIME}),Pt.set(Tt.LTD_AGENCY_NCF,{...ht.get(Mt.LTD_AGENCY_NCF),priceId:Tt.LTD_AGENCY_NCF}),Pt.set(Tt.STARTER_25_V2,{...ht.get(Mt.STARTER_25_V2),priceId:Tt.STARTER_25_V2}),Pt.set(Tt.PREMIUM_100_V2,{...ht.get(Mt.PREMIUM_100_V2),priceId:Tt.PREMIUM_100_V2}),Pt.set(Tt.PREMIUM_100,{...ht.get(Mt.PREMIUM_100),priceId:Tt.PREMIUM_100}),Pt.set(Tt.DORIK_PRO_MONTHLY,{...ht.get(Mt.DORIK_PRO_MONTHLY),priceId:Tt.DORIK_PRO_MONTHLY}),Pt.set(Tt.DORIK_PRO,{...ht.get(Mt.DORIK_PRO),priceId:Tt.DORIK_PRO}),Pt.set(Tt.DORIK_AGENCY_MONTHLY,{...ht.get(Mt.DORIK_AGENCY_MONTHLY),priceId:Tt.DORIK_AGENCY_MONTHLY}),Pt.set(Tt.DORIK_AGENCY,{...ht.get(Mt.DORIK_AGENCY),priceId:Tt.DORIK_AGENCY});const{product:Ut,plan:Gt}=ft,Dt=new Map;Dt.set(Gt.PERSONAL,{provider:"",planIds:[Tt.PERSONAL,Tt.PERSONAL_INDIAN,Tt.PERSONAL_MONTHLY,Tt.PERSONAL_MONTHLY_INDIAN,Tt.PERSONAL_LTD,Tt.PERSONAL_TWO_YEARLY],planKeys:[Gt.PERSONAL,Gt.PERSONAL_TWO_YEARLY,Gt.PERSONAL_MONTHLY],displayName:"Personal",productType:Ut.PERSONAL,tagline:"For personal sites & portfolios",sectionHeader:null,cardFeatures:[{label:"Custom Domain",active:!0,badge:"1"},{label:"25 Pages per Site",active:!0},{label:"AI Website Generation",active:!0},{label:"AI Text & Image Generation",active:!0},{label:"CMS Collections",active:!0,badge:"5"},{label:"200 Blog Posts",active:!0},{label:"3,000 Members",active:!0},{label:"Templates & UI Blocks",active:!0},{label:"SSL Included",active:!0}],features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"25 Pages",active:!0},{label:"200 Blog Posts",active:!0},{label:"0 Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"5 CMS Collections",active:!0},{label:"200 Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"3,000 Members",active:!0},{label:"Export Site",active:!1},{label:"White Label Dashboard",active:!1},{label:"Client Billing",active:!1},{label:"Agency Branding",active:!1},{label:"White Label Documentation",active:!1}]}),Dt.set(Gt.BUSINESS,{provider:"",planIds:[Tt.BUSINESS_3,Tt.BUSINESS_3_INDIA,Tt.BUSINESS_MONTHLY,Tt.BUSINESS_MONTHLY_INDIA,Tt.BUSINESS_3_LTD,Tt.BUSINESS_3_TWO_YEARLY],planKeys:[Gt.BUSINESS,Gt.BUSINESS_10,Gt.BUSINESS_MONTHLY,Gt.BUSINESS_MONTHLY_10,Gt.BUSINESS_3_TWO_YEARLY],displayName:"Business",productType:Ut.BUSINESS,tagline:"For growing businesses",sectionHeader:"EVERYTHING IN PERSONAL, PLUS:",cardFeatures:[{label:"Custom Domains",active:!0,badge:"3"},{label:"Unlimited Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Collaborators",active:!0,badge:"10"},{label:"White Label Dashboard",active:!0},{label:"Code Export",active:!0,badge:"15/mo"},{label:"10,000 Members",active:!0}],features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Unlimited Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"10 Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Unlimited Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"10,000 Members",active:!0},{label:"Export Site 15 Times Per Month",active:!0},{label:"White Label Dashboard",active:!0},{label:"Client Billing",active:!1},{label:"Agency Branding",active:!1},{label:"White Label Documentation",active:!1}]}),Dt.set(Gt.AGENCY,{provider:"",planIds:[Tt.AGENCY_10,Tt.AGENCY_25,Tt.AGENCY_100,Tt.AGENCY_250,Tt.AGENCY_MONTHLY_10,Tt.AGENCY_MONTHLY_25,Tt.AGENCY_MONTHLY_100,Tt.AGENCY_MONTHLY_250],planKeys:[Gt.AGENCY_10,Gt.AGENCY_25,Gt.AGENCY_100,Gt.AGENCY_250,Gt.AGENCY_MONTHLY_10,Gt.AGENCY_MONTHLY_25,Gt.AGENCY_MONTHLY_100,Gt.AGENCY_MONTHLY_250],displayName:"Agency",productType:Ut.AGENCY,features:[{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Unlimited Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited Collaborator",active:!0},{label:"Unlimited Storage",active:!0},{label:"Unlimited Bandwidth",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Unlimited Collection Items",active:!0},{active:!0,label:"Custom Fields & Collections"},{label:"Templates & UI Blocks",active:!0},{label:"Unlimited Members",active:!0},{label:"Export Site 15 Times Per Month",active:!0},{label:"White Label Dashboard",active:!0},{label:"Client Billing",active:!0},{label:"Agency Branding",active:!0},{label:"White Label Documentation",active:!0}]}),Dt.set(Gt.FREE,{provider:"",planIds:[Tt.FREE],planKeys:[Gt.FREE],displayName:"Free",productType:Ut.FREE,tagline:"Perfect for personal sites and portfolios",sectionHeader:null,features:[{label:"Unlimited Sites & Pages",active:!0},{label:"Unlimited Custom Domains",active:!0},{label:"Unlimited Pageviews",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited Collection Items",active:!0},{label:"CMS Collections (10/site)",active:!0},{label:"AI Website Generation (2)",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Custom Forms",active:!0},{label:"Contact Forms",active:!0},{label:"Subscription Forms",active:!0},{label:"Payment Button",active:!0},{label:"Airtable Integration",active:!0},{label:"Templates & UI Blocks",active:!0},{label:"Sitemap Controls",active:!0},{label:"URL Redirection",active:!0},{label:"Open Graph Meta Tags",active:!0},{label:"Import Posts",active:!0},{label:"Custom Code in Posts",active:!0}]}),Dt.set(Gt.DORIK_PRO,{provider:"",planIds:[Tt.DORIK_PRO,Tt.DORIK_PRO_MONTHLY],planKeys:[Gt.DORIK_PRO,Gt.DORIK_PRO_MONTHLY],displayName:"Dorik Pro",productType:Ut.BUSINESS,tagline:"Everything you need to grow",sectionHeader:"EVERYTHING IN FREE, PLUS:",features:[{label:"Remove Dorik Branding",active:!0},{label:"Live Chat Support",active:!0},{label:"Code Export (60/mo)",active:!0},{label:"Unlimited Pages",active:!0},{label:"Templates & UI Blocks",active:!0},{label:"Contact Forms",active:!0},{label:"Subscription Forms",active:!0},{label:"Payment Button",active:!0},{label:"Custom Forms",active:!0},{label:"Airtable Integration",active:!0},{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Custom Code",active:!0},{label:"Custom 404 Page",active:!0},{label:"Password Protected Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited Collection Items",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"10 Collaborators",active:!0},{label:"RSS Feeds",active:!0},{label:"Import Posts",active:!0},{label:"Custom Code in Posts",active:!0},{label:"Sitemap Controls",active:!0},{label:"URL Redirection",active:!0},{label:"Open Graph Meta Tags",active:!0},{label:"Custom Schema",active:!0},{label:"Edit Robots.txt",active:!0},{label:"Edit LLMs.txt",active:!0}]}),Dt.set(Gt.DORIK_AGENCY,{provider:"",planIds:[Tt.DORIK_AGENCY,Tt.DORIK_AGENCY_MONTHLY],planKeys:[Gt.DORIK_AGENCY,Gt.DORIK_AGENCY_MONTHLY],displayName:"Dorik Agency",productType:Ut.AGENCY,tagline:"White-label everything for your clients",sectionHeader:"EVERYTHING IN PRO, PLUS:",cardFeatures:[{label:"Collaborators",active:!0,badge:"Unlimited"},{label:"Code Export",active:!0,badge:"Unlimited"},{label:"API Access",active:!0},{label:"Site Analytics Included",active:!0},{label:"White Label CMS Dashboard",active:!0},{label:"Client Billing",active:!0},{label:"Agency Branding",active:!0},{label:"Agency Chat Integration",active:!0},{label:"White-Label Documentation",active:!0},{label:"Priority Customer Support",active:!0},{label:"Dedicated Onboarding Call",active:!0}],features:[{label:"Remove Dorik Branding",active:!0},{label:"Live Chat Support",active:!0},{label:"Code Export (Unlimited)",active:!0},{label:"Site Analytics",active:!0},{label:"Unlimited Pages",active:!0},{label:"Templates & UI Blocks",active:!0},{label:"Contact Forms",active:!0},{label:"Subscription Forms",active:!0},{label:"Payment Button",active:!0},{label:"Custom Forms",active:!0},{label:"Airtable Integration",active:!0},{label:"AI Site Generation",active:!0},{label:"AI Text Generation",active:!0},{label:"AI Image Generation",active:!0},{label:"Custom Code",active:!0},{label:"Custom 404 Page",active:!0},{label:"Password Protected Pages",active:!0},{label:"Unlimited Blog Posts",active:!0},{label:"Unlimited Collection Items",active:!0},{label:"Unlimited CMS Collections",active:!0},{label:"Unlimited Collaborators",active:!0},{label:"RSS Feeds",active:!0},{label:"API Access",active:!0},{label:"White Label CMS Dashboard",active:!0},{label:"Import Posts",active:!0},{label:"Custom Code in Posts",active:!0},{label:"Sitemap Controls",active:!0},{label:"URL Redirection",active:!0},{label:"Open Graph Meta Tags",active:!0},{label:"Custom Schema",active:!0},{label:"Edit Robots.txt",active:!0},{label:"Edit LLMs.txt",active:!0},{label:"Client Billing",active:!0},{label:"Agency Chat Integration",active:!0},{label:"Priority Customer Support",active:!0},{label:"White-Label Documentation",active:!0},{label:"Agency Branding",active:!0},{label:"Dedicated Onboarding Call",active:!0}]});const wt=new Map;wt.set(Gt.BUSINESS,{planKeys:[Gt.BUSINESS_MONTHLY,Gt.LTD_AGENCY_PRIME,Gt.LTD_AGENCY_NCF],displayName:"Business",features:Dt.get(Gt.BUSINESS).features||[]}),wt.set(Gt.PERSONAL,{displayName:"Personal",planKeys:[Gt.PERSONAL_MONTHLY],features:Dt.get(Gt.PERSONAL).features||[]}),wt.set(ft.product.FREE,{displayName:"Free",planKeys:[Gt.FREE],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0}]}),wt.set(ft.product.STARTER,{displayName:"Starter",planKeys:[Gt.STARTER_25,Gt.STATIC_LTD,Gt.PREMIUM_25],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0},{label:"Remove Branding",active:!0},{label:"Custom Code",active:!0}]}),wt.set(ft.product.PREMIUM,{displayName:"Premium",planKeys:[Gt.STATIC_LTD,Gt.PREMIUM_10,Gt.PREMIUM_25,Gt.PREMIUM_100_V2],features:[{label:"\u221e Published Projects*",active:!0},{label:"Integrations",active:!0},{label:"SEO & Social Settings",active:!0},{label:"Custom CSS",active:!0},{label:"Contact Form",active:!0},{label:"Subscription Form",active:!0},{label:"Remove Branding",active:!0},{label:"Custom Code",active:!0},{label:"Custom Form",active:!0},{label:"Payment Button",active:!0},{label:"Export HTML/CSS/JS",active:!0}]});const{plan:{AGENCY:Bt}}=ft,Ht=e=>Pt.get(e||"FREE"),jt=[Tt.FREE,Tt.PERSONAL_MONTHLY,Tt.PERSONAL_MONTHLY_INDIAN,Tt.BUSINESS_MONTHLY,Tt.BUSINESS_MONTHLY_INDIA,Tt.BUSINESS_MONTHLY_10,Tt.BUSINESS_MONTHLY_10_INDIA,Tt.PERSONAL,Tt.PERSONAL_INDIAN,Tt.BUSINESS_3,Tt.BUSINESS_3_INDIA,Tt.BUSINESS_10,Tt.BUSINESS_10_INDIA,Tt.PERSONAL_TWO_YEARLY,Tt.BUSINESS_3_TWO_YEARLY,Tt.DORIK_PRO_MONTHLY,Tt.DORIK_PRO,Tt.AGENCY_MONTHLY_10,Tt.AGENCY_MONTHLY_25,Tt.AGENCY_MONTHLY_100,Tt.AGENCY_MONTHLY_250,Tt.AGENCY_10,Tt.AGENCY_25,Tt.AGENCY_100,Tt.AGENCY_250,Tt.PERSONAL_LTD,Tt.BUSINESS_3_LTD,Tt.DORIK_AGENCY_MONTHLY,Tt.DORIK_AGENCY],kt=[Tt.DORIK_PRO,Tt.DORIK_PRO_MONTHLY,Tt.DORIK_AGENCY,Tt.DORIK_AGENCY_MONTHLY];Symbol.toStringTag}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.