slice-machine-ui 2.3.1-beta.1 → 2.3.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/chunks/{18539003-afe9213a677bd9f0.js → 18539003-059b491c0b76757a.js} +1 -1
- package/out/_next/static/chunks/{448-ae7b5e576a84b47d.js → 448-223aa39a27ae4c2d.js} +1 -1
- package/out/_next/static/chunks/{695-bfe7255199983590.js → 695-f2394b7e338ece38.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-e8e3dbdd3f4e75d9.js → _app-7ce7b98acb9f384f.js} +64 -64
- package/out/_next/static/css/{447984631bacb88c.css → 6320771a453f5a24.css} +1 -1
- package/out/_next/static/{ZrYfo07zqPYMaIT84uDeF → gl3ixMm6EmutiuB_os7bW}/_buildManifest.js +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +6 -6
- package/src/features/onboarding/OnboardingGuide.tsx +2 -2
- package/src/features/onboarding/OnboardingProgressStepper.tsx +1 -1
- package/src/features/onboarding/OnboardingStepDialog/OnboardingStepDialog.tsx +21 -6
- package/src/features/onboarding/OnboardingStepDialog/OnboardingStepDialogContent.tsx +6 -5
- package/src/features/onboarding/content.tsx +54 -40
- package/src/features/onboarding/types.ts +3 -2
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +1 -1
- /package/out/_next/static/{ZrYfo07zqPYMaIT84uDeF → gl3ixMm6EmutiuB_os7bW}/_ssgManifest.js +0 -0
package/out/_next/static/chunks/{18539003-afe9213a677bd9f0.js → 18539003-059b491c0b76757a.js}
RENAMED
|
@@ -4,7 +4,7 @@ ${e.map(e=>` - ${e}`).join(`
|
|
|
4
4
|
`)}
|
|
5
5
|
`}}function i(r){return t.exact(t.intersection([t.type({id:t.string,label:n.StringOrNull,repeatable:(0,Nq.withFallback)(t.boolean,!0),json:t.record(t.string,r),status:(0,Nq.withFallback)(t.boolean,!0)}),t.partial({hash:t.string,format:(0,Nq.withFallback)(t.keyof(e.CustomTypeFormat),"custom")})]))}function o(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function a(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}e.StaticCustomType=i(qx.StaticSection),e.CustomType=i(qx.DynamicSection),e.flattenWidgets=o,e.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},e.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:qx.Sections.toStatic(r,t)}),{});return{...e,json:n}},e.validateSlices=function(e,t){let n=(function(e){var t;let n=o(e).filter(([,e])=>"Slices"===e.type).reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return function(e){return n.map(e)}})(e)(e=>{if(!t.get(e))return e}).filter(Boolean);return n.length>0?(0,LD.left)(new r(n)):(0,LD.right)(e)},e.collectWidgets=a,e.filterMissingSharedSlices=function(e,t){return a(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},e.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},e.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}}(NN);var Qc,Qd,Qf={},Qp={};Object.defineProperty(Qc=Qp,"__esModule",{value:!0}),Qc.DiffOperation=void 0,(Qd=Qc.DiffOperation||(Qc.DiffOperation={})).Added="added",Qd.Removed="removed",Qd.Updated="updated";var QA={},Qh={},Qm={};Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.HexaColor=void 0;let Qg=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;Qm.HexaColor={is:e=>Qg.test(e)};var Qy={};Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.toRecord=void 0,Qy.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})};var Qv={};Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.mapValues=Qv.isObject=Qv.withOptionals=Qv.isNotEmpty=Qv.zipObjects=void 0;let Qx=(0,P.__importStar)(WZ);Qv.zipObjects=function(e,t){return[...new Set(Object.keys(e||{}).concat(Object.keys(t||{})))].reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},Qv.isNotEmpty=function(e){return!!Object.keys(e).length},Qv.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let Qb=Qx.record(Qx.string,Qx.unknown);Qv.isObject=function(e){return(0,LD.isRight)(Qb.decode(e))},Qv.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})},Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.Objects=Qh.Arrays=Qh.HexaColorCode=void 0,Qh.HexaColorCode=(0,P.__importStar)(Qm),Qh.Arrays=(0,P.__importStar)(Qy),Qh.Objects=(0,P.__importStar)(Qv);var QC={};function QS(e,t){let n=Qh.Objects.zipObjects(e,t),r=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{var e,t,r,i,o,a,u;if(!(!(null!=n&&n.left)&&!(null!=n&&n.right))){if(null!=n&&n.left&&!n.right)return{op:Qp.DiffOperation.Removed};if(!(null!=n&&n.left)&&null!=n&&n.right){if((null===(e=n.right)||void 0===e?void 0:e.type)===qC.GroupFieldType){let s={...n.right,config:{...n.right.config,fields:{}}};return s.config.fields=QS(void 0,null===(t=n.right.config)||void 0===t?void 0:t.fields)||{},{op:Qp.DiffOperation.Added,value:s}}return{op:Qp.DiffOperation.Added,value:n.right}}if((null===(r=n.right)||void 0===r?void 0:r.type)===qC.GroupFieldType){let l={...n.right,config:{...n.right.config,fields:{}}};return l.config.fields=QS((null===(i=n.left)||void 0===i?void 0:i.type)===qC.GroupFieldType?null===(a=null===(o=n.left)||void 0===o?void 0:o.config)||void 0===a?void 0:a.fields:void 0,null===(u=n.right.config)||void 0===u?void 0:u.fields)||{},{op:Qp.DiffOperation.Updated,value:l}}return{op:Qp.DiffOperation.Updated,value:n.right}}})();return r?{...e,[t]:r}:e},{});return Qh.Objects.isNotEmpty(r)?r:void 0}Object.defineProperty(QC,"__esModule",{value:!0}),QC.VariationComparator=void 0,QC.VariationComparator={compare(e,t){if(e&&!t)return{op:Qp.DiffOperation.Removed};if(!e&&t)return{op:Qp.DiffOperation.Added,value:t};let n=function(e,t){let n=Qh.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),r=QS(null==e?void 0:e.primary,null==t?void 0:t.primary),i=QS(null==e?void 0:e.items,null==t?void 0:t.items),o={...n,...r?{primary:r}:{},...i?{items:i}:{}};if(Qh.Objects.isNotEmpty(o))return{op:Qp.DiffOperation.Updated,value:o}}},Object.defineProperty(QA,"__esModule",{value:!0}),QA.SliceComparator=void 0,QA.SliceComparator={compare(e,t){if(!e&&t)return{op:Qp.DiffOperation.Added,value:t};if(e&&!t)return{op:Qp.DiffOperation.Removed};let n=function(e,t){let n=Qh.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),r=Qh.Objects.zipObjects(e&&Qh.Arrays.toRecord(e.variations,e=>e.id),t&&Qh.Arrays.toRecord(t.variations,e=>e.id)),i=Object.entries(r).reduce((e,[t,n])=>{if(!n)return e;let r=QC.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),o={...n,...Qh.Objects.isNotEmpty(i)?{variations:i}:{}};if(Qh.Objects.isNotEmpty(o))return{op:Qp.DiffOperation.Updated,value:o}}};var Qw,QI={};Object.defineProperty(QI,"__esModule",{value:!0}),Object.defineProperty(Qf,"__esModule",{value:!0}),(0,P.__exportStar)(Qp,Qf),(0,P.__exportStar)(QA,Qf),(0,P.__exportStar)(QC,Qf),(0,P.__exportStar)(QI,Qf);var Q_,QT,QO={},QR={};Q_=QR,QT=O&&O.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(Q_,"__esModule",{value:!0}),Q_.ImageConstraint=void 0,Object.defineProperty(Q_,"ImageConstraint",{enumerable:!0,get:function(){return QT(qk).default}});var Qk={},QE={};Object.defineProperty(QE,"__esModule",{value:!0});var QM={};Object.defineProperty(QM,"__esModule",{value:!0}),QM.SlicesTypes=void 0;let QF=(0,P.__importStar)(WZ);QM.SlicesTypes=QF.keyof({[q9.CompositeSliceType]:null,[q8.SharedSliceType]:null}),Object.defineProperty(Qj=Qk,"__esModule",{value:!0}),(0,P.__exportStar)(q9,Qj),(0,P.__exportStar)(q4,Qj),(0,P.__exportStar)(q8,Qj),(0,P.__exportStar)(Qr,Qj),(0,P.__exportStar)(QE,Qj),(0,P.__exportStar)(Qe,Qj),(0,P.__exportStar)(q3,Qj),(0,P.__exportStar)(QM,Qj),Object.defineProperty(QU=QO,"__esModule",{value:!0}),(0,P.__exportStar)(qC,QU),(0,P.__exportStar)(q5,QU),(0,P.__exportStar)(QR,QU),(0,P.__exportStar)(Qk,QU),(0,P.__exportStar)(Qo,QU),(0,P.__exportStar)(qb,QU),Object.defineProperty(QK=ND,"__esModule",{value:!0}),(0,P.__exportStar)(NN,QK),(0,P.__exportStar)(Qf,QK),(0,P.__exportStar)(qx,QK),(0,P.__exportStar)(QO,QK);var Qj,QU,QK,QL,QB,QP,QW,QD={},QN={},Qq={};function QQ(){if(QW)return Qq;QW=1,Object.defineProperty(Qq,"__esModule",{value:!0}),Qq.hasContentType=Qq.hasFieldContentType=void 0;let e=zy();function t(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}return Qq.hasFieldContentType=function(n){return t(n)&&n.__TYPE__===e.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,LD.isRight)(e.FieldType.decode(n.type))},Qq.hasContentType=t,Qq}function QV(){return QZ||(QZ=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyContent=e.EmptyLegacy=e.isEmptyContent=e.EmptyContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.EmptyContentType="EmptyContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.EmptyContentType;e.isEmptyContent=r;let i=t.union([t.null,t.type({value:t.null})]),o=n=>new t.Type("EmptyLegacy",e.isEmptyContent,t=>(0,LQ.pipe)(i.decode(t),LW.either.map(()=>({type:n,__TYPE__:e.EmptyContentType}))),()=>null);e.EmptyLegacy=o,e.EmptyContent=t.strict({type:t.string,__TYPE__:t.literal(e.EmptyContentType)})}(QN)),QN}var Qz={},QY={};Object.defineProperty(QY,"__esModule",{value:!0}),QY.defaultCtx=QY.getFieldCtx=QY.LegacyContentCtx=QY.FieldOrSliceType=void 0;let QH=(0,P.__importStar)(WZ);QY.FieldOrSliceType=QH.union([QO.FieldType,QO.SlicesTypes]);class QG{constructor(e,t,n){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=e,this.fieldPath=t||[],this.allTypes=n||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}QY.LegacyContentCtx=QG,QY.getFieldCtx=function(e,t,n){return new QG(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},QY.defaultCtx=function(e,t=new Map){return new QG(e,[],t)};var QZ,QJ,Q$={},QX={};function Q0(){return QJ||(QJ=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanContentDefaultValue=e.BooleanContent=e.BooleanLegacy=e.isBooleanContent=e.BooleanContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.BooleanContentType="BooleanContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.BooleanContentType;e.isBooleanContent=r;let i=n=>new t.Type("BooleanLegacy",e.isBooleanContent,n=>(0,LQ.pipe)(t.boolean.decode(n),LW.either.map(t=>e.BooleanContent.encode({value:t,__TYPE__:e.BooleanContentType}))),e=>({content:e.value,types:{[n.keyOfType]:"Boolean"}}));e.BooleanLegacy=i,e.BooleanContent=t.strict({__TYPE__:t.literal(e.BooleanContentType),value:t.boolean});let o=t=>{var n;return(null===(n=t.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:e.BooleanContentType,value:t.config.default_value||!1}:void 0};e.BooleanContentDefaultValue=o}(QX)),QX}var Q1,Q2={};function Q6(){return Q1||(Q1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmbedContent=e.EmbedLegacy=e.EmbedContentLegacy=e.isEmbedContent=e.EmbedContentType=void 0;let t=(0,P.__importStar)(WZ),n=qv(),r=QQ();e.EmbedContentType="EmbedContent";let i=t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.EmbedContentType;e.isEmbedContent=i,e.EmbedContentLegacy=t.exact(t.intersection([t.type({embed_url:t.string,type:t.string}),t.partial({version:t.union([t.string,t.number,t.null]),title:n.StringOrNull,author_name:n.StringOrNull,author_url:n.StringOrNull,provider_name:n.StringOrNull,provider_url:n.StringOrNull,cache_age:t.union([t.string,t.number,t.null]),thumbnail_url:n.StringOrNull,thumbnail_width:n.NumberOrNull,thumbnail_height:n.NumberOrNull,html:n.StringOrNull})]));let o=n=>new t.Type("EmbedLegacy",e.isEmbedContent,t=>(0,LQ.pipe)(e.EmbedContentLegacy.decode(t),LW.either.map(n=>({...n,all:t,__TYPE__:e.EmbedContentType}))),e=>({content:e.all,types:{[n.keyOfType]:"Embed"}}));e.EmbedLegacy=o,e.EmbedContent=t.intersection([e.EmbedContentLegacy,t.strict({__TYPE__:t.literal(e.EmbedContentType),all:t.unknown})])}(Q2)),Q2}var Q5={},Q3={},Q9={};Object.defineProperty(Q9,"__esModule",{value:!0});let Q4=(0,P.__importStar)(WZ);Q9.default=new Q4.Type("TrimmedString",Q4.string.is,(e,t)=>(0,W3.pipe)(Q4.string.validate(e,t),(0,N5.chain)(e=>Q4.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e);var Q7={};function Q8(){return Ve||(Ve=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContent=e.ColorLegacy=e.isColorContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Color"===e.type;e.isColorContent=i;let o=r=>new t.Type("ColorLegacy",e.isColorContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.ColorContent.encode({value:t,type:QO.ColorFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.ColorFieldType}}));e.ColorLegacy=o,e.ColorContent=t.strict({type:t.literal(QO.ColorFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(Q3)),Q3}Object.defineProperty(Q7,"__esModule",{value:!0}),Q7.FieldContentType=void 0,Q7.FieldContentType="FieldContent";var Ve,Vt,Vn={};function Vr(){return Vt||(Vt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DateContent=e.DateLegacy=e.isDateContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Date"===e.type;e.isDateContent=i;let o=r=>new t.Type("DateLegacy",e.isDateContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.DateContent.encode({value:t,type:QO.DateFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.DateFieldType}}));e.DateLegacy=o,e.DateContent=t.strict({type:t.literal(QO.DateFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(Vn)),Vn}var Vi,Vo={};function Va(){return Vi||(Vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberContent=e.NumberLegacy=e.isNumberContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Number"===e.type;e.isNumberContent=i;let o=r=>new t.Type("NumberLegacy",e.isNumberContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.NumberContent.encode({value:t,type:QO.NumberFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.NumberFieldType}}));e.NumberLegacy=o,e.NumberContent=t.strict({type:t.literal(QO.NumberFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(Vo)),Vo}var Vu,Vs={};function Vl(){return Vu||(Vu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RangeContent=e.RangeLegacy=e.isRangeContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Range"===e.type;e.isRangeContent=i;let o=r=>new t.Type("RangeLegacy",e.isRangeContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.RangeContent.encode({value:t,type:QO.RangeFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.RangeFieldType}}));e.RangeLegacy=o,e.RangeContent=t.strict({type:t.literal(QO.RangeFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(Vs)),Vs}var Vc,Vd={};function Vf(){return Vc||(Vc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectContentDefaultValue=e.SelectContent=e.SelectLegacy=e.isSelectContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Select"===e.type;e.isSelectContent=i;let o=r=>new t.Type("SelectLegacy",e.isSelectContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.SelectContent.encode({value:t,type:QO.SelectFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.SelectFieldType}}));e.SelectLegacy=o,e.SelectContent=t.strict({type:t.literal(QO.SelectFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)});let a=e=>{var t;return!(null===(t=e.config)||void 0===t)&&t.default_value?{__TYPE__:Q7.FieldContentType,type:QO.SelectFieldType,value:e.config.default_value||""}:void 0};e.SelectContentDefaultValue=a}(Vd)),Vd}var Vp,VA={};function Vh(){return Vp||(Vp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TextContent=e.TextLegacy=e.isTextContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Text"===e.type;e.isTextContent=i;let o=r=>new t.Type("TextLegacy",e.isTextContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.TextContent.encode({value:t,type:QO.TextFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.TextFieldType}}));e.TextLegacy=o,e.TextContent=t.strict({type:t.literal(QO.TextFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(VA)),VA}var Vm,Vg={};function Vy(){return Vm||(Vm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TimestampContent=e.TimestampLegacy=e.isTimestampContent=void 0;let t=(0,P.__importStar)(WZ),n=(0,P.__importDefault)(Q9),r=QQ(),i=e=>(0,r.hasContentType)(e)&&e.__TYPE__===Q7.FieldContentType&&(0,r.hasFieldContentType)(e)&&"Timestamp"===e.type;e.isTimestampContent=i;let o=r=>new t.Type("TimestampLegacy",e.isTimestampContent,t=>(0,LQ.pipe)(n.default.decode(t),LW.either.map(t=>e.TimestampContent.encode({value:t,type:QO.TimestampFieldType,__TYPE__:Q7.FieldContentType}))),e=>({content:e.value,types:{[r.keyOfType]:QO.TimestampFieldType}}));e.TimestampLegacy=o,e.TimestampContent=t.strict({type:t.literal(QO.TimestampFieldType),value:n.default,__TYPE__:t.literal(Q7.FieldContentType)})}(Vg)),Vg}function Vv(){return Vx||(Vx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FieldContent=e.FieldType=void 0;let t=(0,P.__importStar)(WZ),n=Q8(),r=Vr(),i=Va(),o=Vl(),a=Vf(),u=Vh(),s=Vy();e.FieldType=t.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),e.FieldContent=t.union([r.DateContent,n.ColorContent,i.NumberContent,o.RangeContent,a.SelectContent,u.TextContent,s.TimestampContent]),(0,P.__exportStar)(Q8(),e),(0,P.__exportStar)(Q7,e),(0,P.__exportStar)(Vr(),e),(0,P.__exportStar)(Va(),e),(0,P.__exportStar)(Vl(),e),(0,P.__exportStar)(Vf(),e),(0,P.__exportStar)(Vh(),e),(0,P.__exportStar)(Vy(),e)}(Q5)),Q5}var Vx,Vb,VC={};function VS(){return Vb||(Vb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GeoPointContent=e.GeoPointLegacy=e.isGeoPointContent=e.GeoPointContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.GeoPointContentType="GeoPointContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.GeoPointContentType;e.isGeoPointContent=r;let i=t.strict({position:t.strict({lat:t.number,lng:t.number})}),o=n=>new t.Type("GeoPointLegacy",e.isGeoPointContent,t=>(0,W3.pipe)(i.decode(t),LW.either.map(t=>e.GeoPointContent.encode({...t,__TYPE__:e.GeoPointContentType}))),e=>({content:{position:e.position},types:{[n.keyOfType]:"GeoPoint"}}));e.GeoPointLegacy=o,e.GeoPointContent=t.intersection([i,t.strict({__TYPE__:t.literal(e.GeoPointContentType)})])}(VC)),VC}var Vw,VI={};function V_(){return Vw||(Vw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImageContent=e.ImageLegacy=e.ImageContentView=e.isImageContent=e.ImageContentType=void 0;let t=(0,P.__importStar)(WZ),n=qv(),r=QQ();e.ImageContentType="ImageContent";let i=t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.ImageContentType;e.isImageContent=i;let o=t.exact(t.type({id:t.string,url:t.string,width:t.number,height:t.number}));e.ImageContentView=t.exact(t.intersection([t.type({origin:o,width:t.number,height:t.number,edit:t.type({zoom:t.number,crop:t.type({x:t.number,y:t.number}),background:t.string})}),t.partial({url:t.string,credits:n.NonEmptyStringOrNull,alt:n.NonEmptyStringOrNull,provider:n.StringOrNull})]));let a=t.intersection([e.ImageContentView,t.partial({thumbnails:t.record(t.string,e.ImageContentView)})]),u=n=>new t.Type("ImageLegacy",e.isImageContent,t=>(0,LQ.pipe)(a.decode(t),LW.either.map(t=>e.ImageContent.encode({...t,__TYPE__:e.ImageContentType}))),e=>({content:(0,Qv.withOptionals)({edit:e.edit,height:e.height,origin:e.origin,width:e.width},[["alt",e.alt],["credits",e.credits],["provider",e.provider],["thumbnails",e.thumbnails],["url",e.url]]),types:{[n.keyOfType]:"Image"}}));e.ImageLegacy=u,e.ImageContent=t.intersection([a,t.strict({__TYPE__:t.literal(e.ImageContentType)})])}(VI)),VI}var VT,VO={};function VR(){return VT||(VT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IntegrationFieldContent=e.IntegrationFieldLegacy=e.isIntegrationFieldContent=e.IntegrationFieldContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.IntegrationFieldContentType="IntegrationFieldsContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.IntegrationFieldContentType;e.isIntegrationFieldContent=r;let i=n=>new t.Type("IntegrationFieldLegacy",e.isIntegrationFieldContent,n=>(0,LQ.pipe)(t.string.decode(n),LW.either.map(t=>e.IntegrationFieldContent.encode({value:t,__TYPE__:e.IntegrationFieldContentType}))),e=>({content:e.value,types:{[n.keyOfType]:"IntegrationFields"}}));e.IntegrationFieldLegacy=i,e.IntegrationFieldContent=t.strict({__TYPE__:t.literal(e.IntegrationFieldContentType),value:t.string})}(VO)),VO}var Vk,VE={};function VM(){return Vk||(Vk=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkContent=e.Link=e.LinkContentLegacy=e.LinkLegacy=e.isLinkContent=e.LinkContentType=e.ExternalLinkContent=e.ExternalLinkType=e.DocumentLinkContent=e.DocumentLinkType=e.FileLinkContent=e.FileLinkType=e.ImageLinkContent=e.ImageLinkType=void 0;let t=(0,P.__importStar)(WZ),n=qv(),r=QQ();e.ImageLinkType="ImageLink";let i=t.exact(t.intersection([t.type({id:t.string,url:t.string,height:t.string,width:t.string,size:t.string,name:t.string,kind:t.string}),t.partial({date:n.StringOrNull})])),o=new t.Type("ImageLink",t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.ImageLinkType,t=>(0,LQ.pipe)(i.decode(t),LW.either.map(t=>e.ImageLinkContent.encode({...t,__TYPE__:e.ImageLinkType}))),e=>i.encode(e));e.ImageLinkContent=t.intersection([t.strict({__TYPE__:t.literal(e.ImageLinkType)}),i]),e.FileLinkType="FileLink";let a=t.exact(t.intersection([t.type({id:t.string,url:t.string,name:t.string,kind:t.string,size:(0,NK.withFallback)(t.string,"0")}),t.partial({date:(0,W5.nullable)(t.string)})])),u=new t.Type("FileLink",t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.FileLinkType,t=>(0,LQ.pipe)(a.decode(t),LW.either.map(t=>e.FileLinkContent.encode({...t,__TYPE__:e.FileLinkType}))),e=>a.encode(e));e.FileLinkContent=t.intersection([a,t.exact(t.intersection([t.type({__TYPE__:t.literal(e.FileLinkType)}),t.partial({size:(0,NK.withFallback)(t.string,"0")})]))]),e.DocumentLinkType="DocumentLink";let s=t.strict({id:n.NonEmptyString}),l=new t.Type("DocumentLink",t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.DocumentLinkType,t=>(0,LQ.pipe)(s.decode(t),LW.either.map(t=>e.DocumentLinkContent.encode({...t,__TYPE__:e.DocumentLinkType}))),e=>s.encode(e));e.DocumentLinkContent=t.intersection([t.strict({__TYPE__:t.literal(e.DocumentLinkType)}),s]),e.ExternalLinkType="ExternalLink";let c=t.exact(t.intersection([t.type({url:t.string}),t.partial({kind:t.literal("web"),target:n.StringOrNull,preview:(0,W5.nullable)(t.partial({title:t.string}))})])),d=new t.Type("ExternalLink",t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.ExternalLinkType,t=>(0,LQ.pipe)(c.decode(t),LW.either.map(t=>e.ExternalLinkContent.encode({...t,__TYPE__:e.ExternalLinkType}))),e=>c.encode(e));e.ExternalLinkContent=t.intersection([t.strict({__TYPE__:t.literal(e.ExternalLinkType)}),c]),e.LinkContentType="LinkContent";let f=t=>(0,r.hasContentType)(t)&&t.__TYPE__===e.LinkContentType;e.isLinkContent=f,e.LinkLegacy=t.union([o,u,l,d]);let p=n=>new t.Type("LinkLegacy",e.isLinkContent,t=>(0,LQ.pipe)(e.LinkLegacy.decode(t),LW.either.map(t=>e.LinkContent.encode({value:t,__TYPE__:e.LinkContentType}))),t=>({content:e.LinkLegacy.encode(t.value),types:{[n.keyOfType]:"Link"}}));e.LinkContentLegacy=p,e.Link=t.union([e.ImageLinkContent,e.FileLinkContent,e.DocumentLinkContent,e.ExternalLinkContent]),e.LinkContent=t.strict({__TYPE__:t.literal(e.LinkContentType),value:e.Link})}(VE)),VE}var VF,Vj={},VU={},VK={};function VL(){return VF||(VF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Block=e.BlockLegacy=e.TextBlock=e.checkEmbedBlock=e.EmbedBlock=e.checkImageBlock=e.ImageBlock=e.ValidatedSpans=e.SpanLegacy=e.Span=void 0;let t=(0,P.__importStar)(WZ),n=qv(),r=Q6(),i=V_(),o=VM(),a=e=>t.strict({data:e,start:t.number,end:t.number,type:t.literal(q5.RichTextNodeType.hyperlink)}),u=t.strict({data:(0,NK.withFallback)(t.string,""),start:t.number,end:t.number,type:t.literal("label")}),s=t.strict({start:t.number,end:t.number,type:t.keyof({[q5.RichTextNodeType.strong]:null,[q5.RichTextNodeType.em]:null,"list-item":null})});e.Span=t.union([a(o.Link),u,s]),e.SpanLegacy=t.union([a(o.LinkLegacy),u,s]);let l=e=>new t.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(n,r)=>{if(!Array.isArray(n))return t.failure(n,r);{let i=n.reduce((t,n)=>{let r=e.decode(n);return(0,LD.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return t.success(i)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));e.ValidatedSpans=l;let c=e=>t.exact(t.intersection([t.type({type:t.literal(q5.RichTextNodeType.image),data:t.intersection([i.ImageContentView,t.partial({linkTo:(0,W5.nullable)(e)})])}),t.partial({label:n.StringOrNull,direction:n.StringOrNull})]));e.ImageBlock=c(o.Link);let d=c(o.LinkLegacy);e.checkImageBlock=function(e){return e.type===q5.RichTextNodeType.image};let f=t.exact(t.intersection([t.type({type:t.literal(q5.RichTextNodeType.embed),data:t.unknown}),t.partial({label:n.StringOrNull,direction:n.StringOrNull})])),p=new t.Type("EmbedBlockLegacy",e=>"embed"===e.type,t=>(0,LQ.pipe)(f.decode(t),LW.either.chain(e=>LW.either.map(t=>[e,t])(r.EmbedContentLegacy.decode(e.data))),LW.either.map(([t,n])=>e.EmbedBlock.encode({...t,data:{...n,__TYPE__:r.EmbedContentType,all:t.data}}))),e=>({...f.encode(e),data:r.EmbedContentLegacy.encode(e.data)}));e.EmbedBlock=t.exact(t.intersection([t.type({type:t.literal(q5.RichTextNodeType.embed),data:r.EmbedContent}),t.partial({label:n.StringOrNull,direction:n.StringOrNull})])),e.checkEmbedBlock=function(e){return e.type===q5.RichTextNodeType.embed};let A=n=>t.exact(t.intersection([t.type({type:(0,W5.refineType)(q5.RichTextNodeTypeCodec,`string which isn't ${q5.RichTextNodeType.image} ${q5.RichTextNodeType.embed}`,e=>e!==q5.RichTextNodeType.image&&e!==q5.RichTextNodeType.embed),content:t.intersection([t.type({text:t.string}),t.partial({spans:(0,e.ValidatedSpans)(n)})])}),t.partial({label:t.string,direction:t.string})]));e.TextBlock=A(e.Span);let h=A(e.SpanLegacy),m=t.union([p,d,h]);e.BlockLegacy=new t.Type("BlockLegacy",e=>p.is(e)||d.is(e)||h.is(e),e=>m.decode(e),t=>e.ImageBlock.is(t)?d.encode(t):e.EmbedBlock.is(t)?p.encode(t):h.encode(t)),e.Block=t.union([e.ImageBlock,e.EmbedBlock,e.TextBlock])}(VK)),VK}function VB(){return VP||(VP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RichTextLegacy=e.RichTextContent=e.isRichTextContent=e.RichTextContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ(),r=VL();e.RichTextContentType="StructuredTextContent";let i=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.RichTextContentType;e.isRichTextContent=i;let o=t.array(r.BlockLegacy);e.RichTextContent=t.strict({__TYPE__:t.literal(e.RichTextContentType),value:t.array(r.Block)}),(0,P.__exportStar)(VL(),e);let a=n=>new t.Type("RichTextLegacy",e.isRichTextContent,t=>(0,LQ.pipe)(o.decode(t),LW.either.map(t=>({value:t,__TYPE__:e.RichTextContentType}))),e=>({content:o.encode(e.value),types:{[n.keyOfType]:"StructuredText"}}));e.RichTextLegacy=a}(VU)),VU}var VP,VW,VD={};function VN(){return VW||(VW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SeparatorContent=e.SeparatorLegacy=e.isSeparatorContent=e.SeparatorContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.SeparatorContentType="SeparatorContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.SeparatorContentType;e.isSeparatorContent=r;let i=n=>new t.Type("SeparatorLegacy",e.isSeparatorContent,()=>t.success(e.SeparatorContent.encode({__TYPE__:e.SeparatorContentType})),()=>({content:{},types:{[n.keyOfType]:"Separator"}}));e.SeparatorLegacy=i,e.SeparatorContent=t.strict({__TYPE__:t.literal(e.SeparatorContentType)})}(VD)),VD}function Vq(){var e;return VV||(VV=1,Object.defineProperty(Q$,"__esModule",{value:!0}),(0,P.__exportStar)(Q0(),Q$),(0,P.__exportStar)(Q6(),Q$),(0,P.__exportStar)(Vv(),Q$),(0,P.__exportStar)(VS(),Q$),(0,P.__exportStar)(V_(),Q$),(0,P.__exportStar)(VR(),Q$),(0,P.__exportStar)(VM(),Q$),(0,P.__exportStar)(function(){if(VQ)return Vj;VQ=1,Object.defineProperty(Vj,"__esModule",{value:!0}),Vj.NestableLegacy=Vj.isNestableContent=Vj.NestableContentDefaultValue=Vj.NestableContent=void 0;let e=(0,P.__importStar)(WZ),t=QV(),n=Q0(),r=Q6(),i=Vv(),o=VS(),a=V_(),u=VR(),s=VM(),l=VB(),c=VN();Vj.NestableContent=e.union([t.EmptyContent,n.BooleanContent,r.EmbedContent,i.TextContent,i.TimestampContent,i.SelectContent,i.RangeContent,i.NumberContent,i.DateContent,i.ColorContent,o.GeoPointContent,a.ImageContent,u.IntegrationFieldContent,s.LinkContent,l.RichTextContent,c.SeparatorContent]);let d=e=>{switch(e.type){case"Boolean":return(0,n.BooleanContentDefaultValue)(e);case"Select":return(0,i.SelectContentDefaultValue)(e);default:return}};Vj.NestableContentDefaultValue=d;let f=e=>(0,i.isTextContent)(e)||(0,i.isColorContent)(e)||(0,i.isDateContent)(e)||(0,i.isTimestampContent)(e)||(0,i.isNumberContent)(e)||(0,i.isRangeContent)(e)||(0,i.isSelectContent)(e)||(0,o.isGeoPointContent)(e)||(0,l.isRichTextContent)(e)||(0,n.isBooleanContent)(e)||(0,r.isEmbedContent)(e)||(0,a.isImageContent)(e)||(0,u.isIntegrationFieldContent)(e)||(0,s.isLinkContent)(e)||(0,c.isSeparatorContent)(e)||(0,t.isEmptyContent)(e);Vj.isNestableContent=f;let p=e=>({decode(d){if(!e.fieldType)return;let f=(0,t.EmptyLegacy)(e.fieldType).decode(d);if((0,LD.isRight)(f))return f;let p=(()=>{switch(e.fieldType){case"Text":return(0,i.TextLegacy)(e);case"Color":return(0,i.ColorLegacy)(e);case"Date":return(0,i.DateLegacy)(e);case"Timestamp":return(0,i.TimestampLegacy)(e);case"Number":return(0,i.NumberLegacy)(e);case"Range":return(0,i.RangeLegacy)(e);case"Select":return(0,i.SelectLegacy)(e);case"GeoPoint":return(0,o.GeoPointLegacy)(e);case"StructuredText":return(0,l.RichTextLegacy)(e);case"Boolean":return(0,n.BooleanLegacy)(e);case"Embed":return(0,r.EmbedLegacy)(e);case"Image":return(0,a.ImageLegacy)(e);case"IntegrationFields":return(0,u.IntegrationFieldLegacy)(e);case"Link":return(0,s.LinkContentLegacy)(e);case"Separator":return(0,c.SeparatorLegacy)(e);default:return}})();if(p)return p.decode(d)},encode(t){switch(t.__TYPE__){case Q7.FieldContentType:return"Text"===t.type?(0,i.TextLegacy)(e).encode(t):"Color"===t.type?(0,i.ColorLegacy)(e).encode(t):"Range"===t.type?(0,i.RangeLegacy)(e).encode(t):"Date"===t.type?(0,i.DateLegacy)(e).encode(t):"Number"===t.type?(0,i.NumberLegacy)(e).encode(t):"Timestamp"===t.type?(0,i.TimestampLegacy)(e).encode(t):"Select"===t.type?(0,i.SelectLegacy)(e).encode(t):void 0;case o.GeoPointContentType:return(0,o.GeoPointLegacy)(e).encode(t);case l.RichTextContentType:return(0,l.RichTextLegacy)(e).encode(t);case r.EmbedContentType:return(0,r.EmbedLegacy)(e).encode(t);case n.BooleanContentType:return(0,n.BooleanLegacy)(e).encode(t);case a.ImageContentType:return(0,a.ImageLegacy)(e).encode(t);case u.IntegrationFieldContentType:return(0,u.IntegrationFieldLegacy)(e).encode(t);case s.LinkContentType:return(0,s.LinkContentLegacy)(e).encode(t);case c.SeparatorContentType:return(0,c.SeparatorLegacy)(e).encode(t);default:return}}});return Vj.NestableLegacy=p,Vj}(),Q$),(0,P.__exportStar)(VB(),Q$),(0,P.__exportStar)(VN(),Q$)),Q$}var VQ,VV,Vz,VY={};function VH(){if(Vz)return VY;Vz=1,Object.defineProperty(VY,"__esModule",{value:!0}),VY.repeatableContentWithDefaultNestableContentValues=VY.withDefaultNestableContentValues=VY.withDefaultSlicePrimaryContentValues=void 0;let e=VG(),t=Vq();return VY.withDefaultSlicePrimaryContentValues=function(n,r){let i=r;for(let[o,a]of Object.entries(n)){let u=r[o];if(void 0===u){if(a.type===ND.GroupFieldType)i[o]=(0,e.groupContentWithDefaultValues)(a,e.GroupContentDefaultValue);else{let s=(0,t.NestableContentDefaultValue)(a);s&&(i[o]=s)}continue}a.type===ND.GroupFieldType&&(0,e.isGroupContent)(u)&&(i[o]=(0,e.groupContentWithDefaultValues)(a,u))}return i},VY.withDefaultNestableContentValues=function(e,n){return Object.entries(e).reduce((e,[r,i])=>{if(void 0===n[r]){let o=(0,t.NestableContentDefaultValue)(i);return void 0!==o?{...e,[r]:o}:e}return e},n)},VY.repeatableContentWithDefaultNestableContentValues=function(n,r){let i=Object.entries(n);return r.map(n=>i.reduce((r,[i,o])=>{var a;let u=n.value.find(([e])=>e===i);if("Group"===o.type){let s=(0,e.groupContentWithDefaultValues)(o,null!==(a=null==u?void 0:u[1])&&void 0!==a?a:{__TYPE__:e.GroupContentType,value:[]});return{...r,value:[...r.value.filter(([e])=>e!==i),...s?[[i,s]]:[]]}}if(!u){let l=(0,t.NestableContentDefaultValue)(o);return{...r,value:[...r.value,...l?[[i,l]]:[]]}}return r},n))},VY}function VG(){return VZ||(VZ=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.traverseGroupItemsContent=e.traverseGroupContent=e.groupContentWithDefaultValues=e.GroupLegacy=e.GroupItemLegacy=e.GroupContentDefaultValue=e.isGroupContent=e.GroupContent=e.GroupItemContent=e.GroupContentType=e.GroupItemContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ(),r=Vq(),i=VH();e.GroupItemContentType="GroupItemContent",e.GroupContentType="GroupContentType",e.GroupItemContent=t.recursion("GroupItemContent",()=>t.strict({__TYPE__:t.literal(e.GroupItemContentType),value:t.array(t.tuple([t.string,t.union([r.NestableContent,e.GroupContent])]))})),e.GroupContent=t.recursion("GroupContent",()=>t.strict({__TYPE__:t.literal(e.GroupContentType),value:t.array(e.GroupItemContent)})),e.isGroupContent=e.GroupContent.is,e.GroupContentDefaultValue={__TYPE__:e.GroupContentType,value:[]};let o=t.record(t.string,t.unknown),a=i=>new t.Type("GroupItemLegacy",t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.GroupItemContentType,t=>(0,LQ.pipe)(o.decode(t),LW.either.map(t=>({value:Object.entries(t).reduce((t,[n,o])=>{let a=(0,QY.getFieldCtx)(n,i),u=a.fieldType===ND.GroupFieldType?(0,e.GroupLegacy)(a).decode(o):(0,r.NestableLegacy)(a).decode(o);return!u||(0,LD.isLeft)(u)?t:[...t,[n,u.right]]},[]),__TYPE__:e.GroupItemContentType}))),t=>t.value.reduce((t,[n,o])=>{let a=(0,QY.getFieldCtx)(n,i),u=(0,e.isGroupContent)(o)?(0,e.GroupLegacy)(a).encode(o):(0,r.NestableLegacy)(a).encode(o);return u?{content:{...t.content,[n]:u.content},types:{...t.types,...u.types}}:t},{content:{},types:{}}));e.GroupItemLegacy=a;let u=n=>{let r=t.array(t.union([t.null,(0,e.GroupItemLegacy)(n)])),i=t.array((0,e.GroupItemLegacy)(n));return new t.Type("GroupLegacy",e.isGroupContent,t=>(0,LQ.pipe)(r.decode(t),LW.either.map(t=>({value:t.map(t=>null===t?{__TYPE__:e.GroupItemContentType,value:[]}:t),__TYPE__:e.GroupContentType}))),e=>{let t=i.encode(e.value);return{content:t.map(e=>e.content),types:t.reduce((e,t)=>({...e,...t.types}),{[n.keyOfType]:ND.GroupFieldType})}})};function s({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var a;let u=l({path:e,model:null===(a=null==r?void 0:r.config)||void 0===a?void 0:a.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:u}})}}function l({path:t,model:n,content:i}){return o=>i.map((i,a)=>{let u=t.concat([{key:a.toString(),type:"GroupItem"}]),l=i.value.reduce((t,[i,a])=>{let l=null==n?void 0:n[i],c;return(c=l&&(null==l?void 0:l.type)!==ND.GroupFieldType||a.__TYPE__!==e.GroupContentType?o({path:u.concat([{key:i,type:"Widget"}]),key:i,apiId:i,model:l,content:a}):s({path:u.concat([{key:i,type:"Widget"}]),key:i,apiId:i,model:l,content:a})(o))&&((0,r.isNestableContent)(c)||(0,e.isGroupContent)(c))?t.concat([[i,c]]):t},[]);return{__TYPE__:i.__TYPE__,value:l}})}e.GroupLegacy=u,e.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,i.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},e.traverseGroupContent=s,e.traverseGroupItemsContent=l}(Qz)),Qz}var VZ,VJ,V$={},VX={},V0={},V1={};function V2(){if(VJ)return V1;VJ=1,Object.defineProperty(V1,"__esModule",{value:!0}),V1.RepeatableWidgets=V1.RepeatableWidgetsLegacy=void 0;let e=(0,P.__importStar)(WZ),t=VG(),n=Vq(),r=n=>e.array((0,t.GroupItemLegacy)(n));V1.RepeatableWidgetsLegacy=r;let i=e.tuple([e.string,e.union([n.NestableContent,t.GroupContent])]),o=e.strict({__TYPE__:e.literal(t.GroupItemContentType),value:e.array(i)});return V1.RepeatableWidgets=e.array(o),V1}function V6(){return V5||(V5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.migrateCompositeSlice=e.traverseCompositeSliceContent=e.compositeSliceContentWithDefaultValues=e.CompositeSliceContent=e.CompositeSliceLegacy=e.isCompositeSliceContent=e.CompositeSliceContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ(),r=VG(),i=Vq(),o=VH(),a=V2();e.CompositeSliceContentType="CompositeSliceContent";let u=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.CompositeSliceContentType;e.isCompositeSliceContent=u;let s=t.exact(t.partial({repeat:t.array(t.unknown),"non-repeat":t.UnknownRecord})),l=n=>new t.Type("CompositeSliceLegacy",e.isCompositeSliceContent,t=>(0,LQ.pipe)(s.decode(t),LW.either.map(t=>{let r=(()=>{let e=(0,QY.getFieldCtx)("repeat",n),r=(0,a.RepeatableWidgetsLegacy)(e).decode(t.repeat);if(!(!r||(0,LD.isLeft)(r)))return r.right})()||[];return{nonRepeat:Object.entries(t["non-repeat"]||{}).reduce((e,[t,r])=>{let o=(0,QY.getFieldCtx)(t,n,["non-repeat"]);if(!o)return e;let a=(0,i.NestableLegacy)(o).decode(r);return!a||(0,LD.isLeft)(a)?e:{...e,[t]:a.right}},{}),repeat:r,__TYPE__:e.CompositeSliceContentType}})),e=>{let t=Object.entries(e.nonRepeat).reduce((e,[t,r])=>{let o=(0,QY.getFieldCtx)(t,n,["non-repeat"]),a=(0,i.NestableLegacy)(o).encode(r);return a?{content:{...e.content,[t]:a.content},types:{...e.types,...a.types}}:e},{content:{},types:{}}),r=(()=>{let t=(0,QY.getFieldCtx)("repeat",n);return(0,a.RepeatableWidgetsLegacy)(t).encode(e.repeat)})()||[];return{content:{"non-repeat":t.content,repeat:r.map(e=>e.content)},types:{[n.keyOfType]:"Slice",...t.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});e.CompositeSliceLegacy=l,e.CompositeSliceContent=t.strict({__TYPE__:t.literal(e.CompositeSliceContentType),nonRepeat:t.record(t.string,i.NestableContent),repeat:a.RepeatableWidgets}),e.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,o.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),a=(0,o.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:a}},e.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:o,content:a}){return(u,s)=>{let l=Object.entries(a.widget.nonRepeat).reduce((r,[a,s])=>{var l,c,d;let f=(null==o?void 0:o.type)==="SharedSlice"?null===(c=null===(l=null==o?void 0:o.fields)||void 0===l?void 0:l.primary)||void 0===c?void 0:c[a]:null===(d=null==o?void 0:o["non-repeat"])||void 0===d?void 0:d[a],p=u({path:e.concat([{key:"non-repeat",type:"primary"},{key:a,type:"Widget"}]),key:a,apiId:n,model:f,content:s});return p?(0,i.isNestableContent)(p)?{...r,[a]:p}:(console.warn(`Warn: Non nestable content with key [${a}] detected in a composite slice [${n}] with key [${t}]`),r):r},{}),c=(0,r.traverseGroupItemsContent)({path:e.concat([{key:"repeat",type:"items"}]),model:(null==o?void 0:o.type)==="SharedSlice"?null==o?void 0:o.fields.items:null==o?void 0:o.repeat,content:a.widget.repeat})(u);return s({key:t,apiId:n,path:e,model:o,content:{...a,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:l}}})}},e.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return!(null===(o=e.fields.primary)||void 0===o)&&o[r]?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return!(null===(o=e.fields.items)||void 0===o)&&o[r]?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}}(V0)),V0}var V5,V3,V9={},V4={};function V7(){if(V3)return V4;V3=1,Object.defineProperty(V4,"__esModule",{value:!0}),V4.isSlicePrimaryContent=V4.SlicePrimaryLegacy=V4.SlicePrimaryContent=void 0;let e=(0,P.__importStar)(WZ),t=VG(),n=Vq();V4.SlicePrimaryContent=e.union([n.NestableContent,t.GroupContent]);let r=e=>{let r=(0,t.GroupLegacy)(e),i=(0,n.NestableLegacy)(e);return{decode:t=>e.fieldType===ND.GroupFieldType?r.decode(t):i.decode(t),encode:e=>(0,t.isGroupContent)(e)?r.encode(e):i.encode(e)}};V4.SlicePrimaryLegacy=r;let i=e=>(0,n.isNestableContent)(e)||(0,t.isGroupContent)(e);return V4.isSlicePrimaryContent=i,V4}function V8(){return ze||(ze=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.traverseSharedSliceContent=e.sharedSliceContentWithDefaultValues=e.SharedSliceContent=e.SharedSliceLegacy=e.isSharedSliceContent=e.SharedSliceContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ(),r=VG(),i=Vq(),o=VH(),a=V2(),u=V7();e.SharedSliceContentType="SharedSliceContent";let s=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.SharedSliceContentType;e.isSharedSliceContent=s;let l=t.exact(t.type({variation:t.string,items:(0,NK.withFallback)(t.array(t.unknown),[]),primary:(0,NK.withFallback)(t.UnknownRecord,{})})),c=n=>new t.Type("SharedSliceLegacy",e.isSharedSliceContent,t=>(0,LQ.pipe)(l.decode(t),LW.either.map(t=>{let r=(()=>{let e=(0,QY.getFieldCtx)("items",n,["variations",t.variation]),r=(0,a.RepeatableWidgetsLegacy)(e).decode(t.items);if(!(!r||(0,LD.isLeft)(r)))return r.right})()||[],i=Object.entries(t.primary).reduce((e,[r,i])=>{let o=(0,QY.getFieldCtx)(r,n,["variations",t.variation,"primary"]),a=(0,u.SlicePrimaryLegacy)(o).decode(i);return!a||(0,LD.isLeft)(a)?e:{...e,[r]:a.right}},{});return{variation:t.variation,primary:i,items:r,__TYPE__:e.SharedSliceContentType}})),e=>{let t=Object.entries(e.primary).reduce((t,[r,i])=>{let o=(0,QY.getFieldCtx)(r,n,["variations",e.variation,"primary"]),a=(0,u.SlicePrimaryLegacy)(o).encode(i);return a?{content:{...t.content,[r]:a.content},types:{...t.types,...a.types}}:t},{content:{},types:{}}),r=(()=>{let t=(0,QY.getFieldCtx)("items",n,["variations",e.variation]);return(0,a.RepeatableWidgetsLegacy)(t).encode(e.items)})()||[];return{content:{primary:t.content,items:r.map(e=>e.content),variation:e.variation},types:{[n.keyOfType]:"SharedSlice",...t.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});e.SharedSliceLegacy=c,e.SharedSliceContent=t.strict({__TYPE__:t.literal(e.SharedSliceContentType),variation:t.string,primary:t.record(t.string,u.SlicePrimaryContent),items:a.RepeatableWidgets}),e.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),a=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},s=(0,o.withDefaultSlicePrimaryContentValues)(a,t.primary),l=(0,o.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:s,items:l}},e.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:o,content:a}){return(s,l)=>{let c=Object.entries(a.widget.primary).reduce((a,[l,c])=>{var d,f;let p=null===(f=null===(d=null==o?void 0:o.fields)||void 0===d?void 0:d.primary)||void 0===f?void 0:f[l],A=(0,r.isGroupContent)(c)?(0,r.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:l,type:"Widget"}]),key:l,apiId:l,content:c,model:(null==p?void 0:p.type)===ND.GroupFieldType?p:void 0})(s):(0,i.isNestableContent)(c)?s({path:e.concat([{key:"primary",type:"primary"},{key:l,type:"Widget"}]),key:l,apiId:l,model:p,content:c}):void 0;return A?((0,u.isSlicePrimaryContent)(A)||console.warn(`Warn: Non nestable or group content with key [${l}] detected in a shared slice [${n}] with key [${t}]`),{...a,[l]:A}):a},{}),d=(0,r.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==o?void 0:o.fields.items,content:a.widget.items})(s);return l({key:t,apiId:n,path:e,model:o,content:{...a,widget:{__TYPE__:"SharedSliceContent",variation:a.widget.variation,primary:c,items:d}}})}}}(V9)),V9}var ze,zt,zn={};function zr(){if(zt)return zn;zt=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.migrateSimpleSlice=zn.traverseSimpleSliceContent=zn.SimpleSliceLegacy=zn.isSimpleSliceContent=zn.SimpleSliceContent=void 0;let e=(0,P.__importStar)(WZ),t=VG(),n=Vq();zn.SimpleSliceContent=e.union([n.NestableContent,t.GroupContent]);let r=e=>(0,n.isNestableContent)(e)||(0,t.isGroupContent)(e);zn.isSimpleSliceContent=r;let i=e=>({decode:"Group"===e.fieldType?(0,t.GroupLegacy)(e).decode.bind(null):(0,n.NestableLegacy)(e).decode.bind(null),encode:r=>"GroupContentType"===r.__TYPE__?(0,t.GroupLegacy)(e).encode(r):(0,n.NestableLegacy)(e).encode(r)});return zn.SimpleSliceLegacy=i,zn.traverseSimpleSliceContent=function({path:e,sliceKey:n,sliceName:r,model:i,content:o}){return(a,u)=>{var s;if((0,t.isGroupContent)(o.widget)){let l=(0,t.traverseGroupContent)({path:e,key:o.key,apiId:o.name,model:(null==i?void 0:i.type)==="Group"?i:(null==i?void 0:i.type)==="SharedSlice"?{type:"Group",config:{fields:i.fields.items||{}}}:void 0,content:o.widget})(a);return l&&u({key:o.key,apiId:o.name,path:e,model:i,content:{...o,widget:l}})}let c=a({key:o.key,apiId:o.name,path:e,model:(null==i?void 0:i.type)==="SharedSlice"?null===(s=i.fields.primary)||void 0===s?void 0:s[o.name]:(null==i?void 0:i.type)!=="Group"?i:void 0,content:o.widget});return c&&u({key:n,apiId:r,path:e,model:i,content:{...o,widget:c}})}},zn.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return!(null===(i=e.fields.items)||void 0===i)&&i[n]?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:!(null===(n=e.fields.primary)||void 0===n)&&n[t.name]?{[t.name]:t.widget}:{},items:[]}}},zn}function zi(){return zo||(zo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SliceContent=e.SliceLegacy=void 0;let t=(0,P.__importStar)(WZ),n=V6(),r=V8(),i=zr(),o=e=>({decode:t=>(()=>{switch(e.fieldType){case"Slice":return(0,n.CompositeSliceLegacy)(e);case"SharedSlice":return(0,r.SharedSliceLegacy)(e);default:return(0,i.SimpleSliceLegacy)(e)}})().decode(t),encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,r.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,n.CompositeSliceLegacy)(e).encode(t);default:return(0,i.SimpleSliceLegacy)(e).encode(t)}}});e.SliceLegacy=o,e.SliceContent=t.union([n.CompositeSliceContent,r.SharedSliceContent,i.SimpleSliceContent]),(0,P.__exportStar)(V6(),e),(0,P.__exportStar)(V8(),e),(0,P.__exportStar)(zr(),e),(0,P.__exportStar)(V7(),e)}(VX)),VX}var zo,za,zu={};function zs(){if(za)return zu;za=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.migrateSliceItem=zu.SlicesItemLegacy=zu.sliceItemContentWithDefaultValues=zu.isSimpleSliceItemContent=zu.isCompositeSliceItemContent=zu.isSharedSliceItemContent=zu.SliceItemContent=void 0;let e=(0,P.__importStar)(WZ),t=VG(),n=Vq(),r=VH(),i=zi(),o=V6(),a=V8(),u=zr();function s(e){return(0,o.isCompositeSliceContent)(e.widget)}function l(e){return(0,t.isGroupContent)(e.widget)||(0,n.isNestableContent)(e.widget)}zu.SliceItemContent=e.type({key:e.string,name:e.string,maybeLabel:e.union([e.string,e.undefined]),widget:i.SliceContent}),zu.isSharedSliceItemContent=function(e){return(0,a.isSharedSliceContent)(e.widget)},zu.isCompositeSliceItemContent=s,zu.isSimpleSliceItemContent=l,zu.sliceItemContentWithDefaultValues=function(e,n){var u;if("SharedSlice"===e.type&&(0,a.isSharedSliceContent)(n))return(0,i.sharedSliceContentWithDefaultValues)(e,n);if("Slice"===e.type&&(0,o.isCompositeSliceContent)(n))return(0,i.compositeSliceContentWithDefaultValues)(e,n);if("Group"===e.type&&(0,t.isGroupContent)(n)&&!(null===(u=e.config)||void 0===u)&&u.fields){let s=(0,r.repeatableContentWithDefaultNestableContentValues)(e.config.fields,n.value);return{...n,value:s}}return n};let c=e.exact(e.intersection([e.type({key:e.string,value:e.unknown}),e.partial({label:(0,W5.nullable)(e.string)})])),d=t=>new e.Type("SlicesItemLegacy",e=>((0,a.isSharedSliceContent)(e.widget),(0,o.isCompositeSliceContent)(e.widget),(0,u.isSimpleSliceContent)(e.widget)),(n,r)=>(0,LQ.pipe)(c.decode(n),LW.either.chain(o=>{var a;let u=o.key.indexOf("$"),s=o.key.substring(0,u>0?u:void 0),l=(0,QY.getFieldCtx)(s,t),c=(0,i.SliceLegacy)(l).decode(o.value);return!c||(0,LD.isLeft)(c)?e.failure(n,r):e.success({key:o.key,name:s,maybeLabel:null!==(a=o.label)&&void 0!==a?a:void 0,widget:c.right})})),e=>{let n=(0,QY.getFieldCtx)(e.name,t),r=(0,i.SliceLegacy)(n).encode(e.widget);return{content:{key:e.key,label:e.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}});zu.SlicesItemLegacy=d;let f=({model:e,content:t})=>s(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,o.migrateCompositeSlice)(e,t):l(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,u.migrateSimpleSlice)(e,t):t;return zu.migrateSliceItem=f,zu}var zl,zc={};function zd(){var e;return zf||(zf=1,Object.defineProperty(V$,"__esModule",{value:!0}),(0,P.__exportStar)(zi(),V$),(0,P.__exportStar)(zs(),V$),(0,P.__exportStar)((zl||(zl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.traverseSlices=e.slicesContentWithDefaultValues=e.SlicesContent=e.SlicesLegacy=e.isSlicesContent=e.SlicesContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ(),r=V6(),i=V8(),o=zr(),a=zs();e.SlicesContentType="SliceContentType";let u=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.SlicesContentType;e.isSlicesContent=u;let s=n=>{let r=t.array((0,a.SlicesItemLegacy)(n));return new t.Type("SlicesLegacy",e.isSlicesContent,t=>(0,LQ.pipe)(r.decode(t),LW.either.map(t=>({__TYPE__:e.SlicesContentType,value:t}))),e=>{let t=r.encode(e.value);return{content:t.map(e=>e.content),types:t.reduce((e,t)=>({...e,...t.types}),{[n.keyOfType]:"Slices"})}})};e.SlicesLegacy=s,e.SlicesContent=t.type({__TYPE__:t.literal(e.SlicesContentType),value:t.array(a.SliceItemContent)}),e.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,a.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},e.traverseSlices=function({path:e,key:t,model:n,content:u}){return({transformWidget:s=({content:e})=>e,transformSlice:l=({content:e})=>e})=>{let c=u.value.reduce((t,u)=>{let c=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,a.isSharedSliceItemContent)(n)&&o&&(0,ND.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=WJ.ContentPath.append(WJ.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,ND.isStaticSharedSlice)(e)&&!!(!(null===(t=e.legacyPaths)||void 0===t)&&t[i])});if(!o)return;let a=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(a)return{type:"SharedSlice",sliceName:o.id,variationId:a.id,fields:{primary:a.primary||{},items:a.items||{}}}})()||(()=>{if(o){if((0,ND.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,ND.isLegacySlice)(o))return o}})()}(e,n,u),d=(0,a.isSharedSliceItemContent)(u)?(0,i.traverseSharedSliceContent)({path:e.concat({key:u.key,type:"SharedSlice"}),sliceKey:u.key,sliceName:u.name,model:(null==c?void 0:c.type)==="SharedSlice"?c:void 0,content:u})(s,l):(0,a.isCompositeSliceItemContent)(u)?(0,r.traverseCompositeSliceContent)({path:e.concat({key:u.key,type:"Slice"}),sliceKey:u.key,sliceName:u.name,model:(null==c?void 0:c.type)==="Slice"||(null==c?void 0:c.type)==="SharedSlice"?c:void 0,content:u})(s,l):(0,a.isSimpleSliceItemContent)(u)?(0,o.traverseSimpleSliceContent)({path:e.concat({key:u.key,type:"LegacySlice"}),sliceKey:u.key,sliceName:u.name,model:c&&(null==c?void 0:c.type)!=="Slice"?c:void 0,content:u})(s,l):void 0;return d?t.concat(d):t},[]);return s({path:e,key:t,apiId:t,model:n,content:{__TYPE__:u.__TYPE__,value:c}})}}}(zc)),zc),V$)),V$}var zf,zp,zA={};function zh(){return zp||(zp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UIDContent=e.UIDLegacy=e.isUIDContent=e.UIDContentType=void 0;let t=(0,P.__importStar)(WZ),n=QQ();e.UIDContentType="UIDContent";let r=t=>(0,n.hasContentType)(t)&&t.__TYPE__===e.UIDContentType;e.isUIDContent=r;let i=n=>new t.Type("UIDLegacy",e.isUIDContent,n=>(0,LQ.pipe)(t.string.decode(n),LW.either.map(t=>e.UIDContent.encode({value:t,__TYPE__:e.UIDContentType}))),e=>({content:e.value,types:{[n.keyOfType]:"UID"}}));e.UIDLegacy=i,e.UIDContent=t.type({__TYPE__:t.literal(e.UIDContentType),value:t.string})}(zA)),zA}var zm,zg={};function zy(){var e;return r||(r=1,Object.defineProperty(QD,"__esModule",{value:!0}),(0,P.__exportStar)(QV(),QD),(0,P.__exportStar)(VG(),QD),(0,P.__exportStar)(Vq(),QD),(0,P.__exportStar)(zd(),QD),(0,P.__exportStar)(zh(),QD),(0,P.__exportStar)(function(){if(zm)return zg;zm=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.WidgetLegacy=zg.isWidgetContent=zg.WidgetContent=void 0;let e=(0,P.__importStar)(WZ),t=VG(),n=Vq(),r=zd(),i=zh();zg.WidgetContent=e.union([t.GroupContent,n.NestableContent,i.UIDContent,r.SlicesContent]);let o=e=>(0,t.isGroupContent)(e)||(0,n.isNestableContent)(e)||(0,i.isUIDContent)(e)||(0,r.isSlicesContent)(e);zg.isWidgetContent=o;let a=e=>({decode(o){if(!e.fieldType)return;let a=(()=>{switch(e.fieldType){case"UID":return(0,i.UIDLegacy)(e);case"Group":return(0,t.GroupLegacy)(e);case"Choice":case"Slices":return(0,r.SlicesLegacy)(e);default:return(0,n.NestableLegacy)(e)}})();if(a)return a.decode(o)},encode(o){switch(o.__TYPE__){case i.UIDContentType:return(0,i.UIDLegacy)(e).encode(o);case t.GroupContentType:return(0,t.GroupLegacy)(e).encode(o);case r.SlicesContentType:return(0,r.SlicesLegacy)(e).encode(o);default:return(0,n.NestableLegacy)(e).encode(o)}}});return zg.WidgetLegacy=a,zg}(),QD)),QD}Object.defineProperty(W,"__esModule",{value:!0}),W.migrateDocument=W.collectWidgets=W.traverseDocument=W.fillDocumentWithDefaultValues=W.DocumentLegacy=W.Document=void 0;let zv=(0,P.__importStar)(WZ),zx=zy();W.Document=zv.record(W$.WidgetKey,zx.WidgetContent);let zb=zv.record(W$.WidgetKey,zv.unknown),zC=e=>new zv.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,LQ.pipe)(zb.decode(t),LW.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,QY.defaultCtx)(n,e),o=(0,zx.WidgetLegacy)(i).decode(r);return!o||(0,LD.isLeft)(o)?t:{...t,[n]:o.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,QY.defaultCtx)(n,e),o=(0,zx.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function zS(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=QY.FieldOrSliceType.decode(n);if((0,LD.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],o=e.uid;return{widgets:r,types:n,uid:o,slugs:i}}function zw(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,ND.flattenSections)(e))}}function zI({document:e,customType:t}){let n=t&&ND.StaticCustomType.is(t)?zw(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,a])=>{let u=i&&i[o],s=WJ.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"}]),l=(()=>{switch(a.__TYPE__){case"SliceContentType":return(0,zx.traverseSlices)({path:s,key:o,model:(null==u?void 0:u.type)==="Slices"||(null==u?void 0:u.type)==="Choice"?u:void 0,content:a})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,zx.traverseGroupContent)({path:s,key:o,apiId:o,model:(null==u?void 0:u.type)==="Group"?u:void 0,content:a})(t);default:return t({path:s,key:o,apiId:o,model:(null==u?void 0:u.type)!=="Group"&&(null==u?void 0:u.type)!=="Slices"&&(null==u?void 0:u.type)!=="Choice"?u:void 0,content:a})}})();return{...e,...l?{[o]:l}:{}}},{})}}function z_(e,t){let n=ND.StaticCustomType.is(t)?zw(t):t;return Object.values((0,ND.collectSharedSlices)(n)).some(e=>!!e.legacyPaths)?zI({document:e,customType:t})({transformSlice:zx.migrateSliceItem}):e}W.DocumentLegacy={_codec:zC,extractMetadata:zS,parse:function(e,t){let n=(0,LQ.pipe)(zv.record(W$.WidgetKey,zv.unknown).decode(e),LW.either.chain(e=>{let{types:t,widgets:n}=zS(e);return zC(t).decode(n)}));return(0,LD.isLeft)(n)?void 0:z_(n.right,t)},encode:function(e){let t=zC().encode(e);return{...t.content,...t.types}}},W.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&ND.StaticCustomType.is(e)?zw(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{switch(r.type){case"Group":return(0,zx.isGroupContent)(i)?(0,zx.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,zx.isSlicesContent)(i)?(0,zx.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&ND.NestableWidget.is(r)?(0,zx.NestableContentDefaultValue)(r):i}})();return o?{...e,[n]:o}:e},t)},W.traverseDocument=zI,W.collectWidgets=function(e,t){let n={};return zI({document:e})({transformWidget({content:e,path:r}){let i=WJ.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},W.migrateDocument=z_,Object.defineProperty(eiD=k,"__esModule",{value:!0}),(0,P.__exportStar)(W,eiD),(0,P.__exportStar)(zy(),eiD),(0,P.__exportStar)(QY,eiD);let zT={unclassified:{title:"Draft",color:"amber"},published:{title:"Live",color:"green"},release:{title:"Planned",color:"purple"},archived:{title:"Archived",color:"grey"}},zO={unclassified:["unclassified","published"],archived:["unclassified","published"],release:["release","published"],published:["published"]};function zR(e){let{documentId:t,versionId:n,baseUrl:r,status:i,releaseId:o}=e,a=(0,l.aO)({params:{s:i,v:n,r:o}}),u=new URLSearchParams(a).toString();return new URL(`pages/${t}?${u}`,r)}var zk={exports:{}},zE={};zk.exports=function(){if(i)return zE;i=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(t,i,a){var u,s={},l=null,c=null;for(u in void 0!==a&&(l=""+a),void 0!==i.key&&(l=""+i.key),void 0!==i.ref&&(c=i.ref),i)n.call(i,u)&&!o.hasOwnProperty(u)&&(s[u]=i[u]);if(t&&t.defaultProps)for(u in i=t.defaultProps)void 0===s[u]&&(s[u]=i[u]);return{$$typeof:e,type:t,key:l,ref:c,props:s,_owner:r.current}}return zE.Fragment=t,zE.jsx=a,zE.jsxs=a,zE}();var zM=zk.exports;let zF="media-library-newMediaLibraryFeaturesBannerClosed";function zj(e){let{maxWidth:t}=e,[n,r]=(0,c.useState)(()=>!(x.Xb.isAvailable()&&x.Xb.read(zF)));return n?zM.jsx(f.xu,{justifyContent:"center",padding:{inline:16,block:12},backgroundColor:"purple9",children:zM.jsxs(f.xu,{maxWidth:t,width:"100%",alignItems:"center",gap:8,children:[zM.jsx(f.xu,{borderRadius:"100%",alignItems:"center",justifyContent:"center",width:28,height:28,border:!0,borderColor:"purple8",flexShrink:0,children:zM.jsx(f.I5,{name:"autoFixHigh",color:"white",size:"small"})}),zM.jsxs("div",{children:[zM.jsx(f.xv,{color:"white",variant:"bold",children:"New features on the Media Library now available!"}),zM.jsxs(f.xu,{gap:4,flexWrap:"wrap",children:[zM.jsx(f.xv,{color:"white",children:"Media Tagging, Filtering, Improved Search & Bulk Deletion"}),zM.jsx(f.xv,{color:"white",variant:"bold",href:"https://prismic.io/lp/new-media-library",target:"_blank",rel:"noopener noreferrer",underline:!0,children:"Find out More →"})]})]}),zM.jsx(f.zx,{invisible:!0,color:"white",sx:{marginLeft:"auto",marginBottom:"auto",flexShrink:0},underline:!0,onClick:function(){r(!1),x.Xb.isAvailable()&&x.Xb.write(zF,String(Date.now()))},children:"Close"})]})}):null}let zU=(0,c.createContext)(void 0);function zK(){let e=(0,c.useContext)(zU);if(!e)throw Error("Missing EditorConfigContext.Provider");return e}class zL extends Error{}function zB(e){throw new zL(`Missing EditorConfig.${e}`)}let zP=(0,c.createContext)(void 0),zW={selectedIds:new Set,excludedIds:new Set,isAllSelected:!1};function zD(e){let{children:t,initialTotalItemCount:n,isSelectAllEnabled:r=!1}=e,[i,o]=(0,c.useState)(zW),a=(0,c.useRef)(),u=(0,c.useRef)(n||0),s=(0,c.useMemo)(()=>{let{selectedIds:e,excludedIds:t,isAllSelected:n}=i;return n?u.current-t.size:e.size},[i]),l=(0,c.useCallback)(e=>{let{isAllSelected:t,selectedIds:n,excludedIds:r}=i;return t?!r.has(e):n.has(e)},[i]),d=(0,p.R9)(()=>{let{isAllSelected:e,selectedIds:t,excludedIds:n}=i;return{selectedIds:[...t],excludedIds:[...n],isAllSelected:e,selectedCount:s}}),f=(0,p.R9)(()=>{r&&o({isAllSelected:!0,selectedIds:new Set,excludedIds:new Set})}),A=(0,p.R9)(()=>{o({isAllSelected:!1,selectedIds:new Set,excludedIds:new Set})});(0,c.useEffect)(()=>{let{isAllSelected:e,selectedIds:t,excludedIds:n}=i,o=u.current;if(!(0===o||!r)){if(e&&n.size===o){A();return}if(!e&&t.size===o){f();return}}},[i,r,f,A]);let h=(0,p.R9)(e=>{var t;let{id:n,isSingleSelection:r,metaKey:i,shiftKey:u,ids:c}=e;return u&&c&&c.length>0&&a.current?function(e,t,n){let r=function(e,t,n){let r=e.indexOf(t),i=e.indexOf(n);if(-1===r||-1===i)throw Error("Both startValue and endValue must be in the array");return r<=i?e.slice(r,i+1):e.slice(i,r+1)}(t,n,e),i=l(e);return i?y(r):g(r),i}(n,c,a.current):r&&!i?(t=n,l(t)&&1===s?o(e=>({...e,selectedIds:new Set})):o({isAllSelected:!1,selectedIds:new Set([t]),excludedIds:new Set})):l(n)?y([n]):g([n]),a.current=n,l(n)}),m=(0,p.R9)(()=>{s>0?A():f()});function g(e){let{isAllSelected:t}=i;if(t){o(t=>({...t,excludedIds:zq(t.excludedIds,e)}));return}o(t=>({...t,selectedIds:zQ(t.selectedIds,e)}))}function y(e){let{isAllSelected:t}=i;if(t){o(t=>({...t,excludedIds:zQ(t.excludedIds,e)}));return}o(t=>({...t,selectedIds:zq(t.selectedIds,e)}))}function v(e){u.current=e}let x=(0,c.useMemo)(()=>({selectedCount:s,state:i,totalItemCount:u.current,isSelected:l,isSelectAllEnabled:r,getSelectionState:d,toggleSelection:h,toggleSelectAll:m,clearSelection:A,setTotalItemCount:v}),[i,A,d,r,l,s,m,h]);return zM.jsx(zP.Provider,{value:x,children:t})}function zN(e){let t=(0,c.useContext)(zP);if(void 0===t)throw Error("useSelectionManagerContext must be used within a SelectionManagerProvider");let{totalItemCount:n,onChangeSelection:r}=e||{},{setTotalItemCount:i,totalItemCount:o,state:a,getSelectionState:u,...s}=t;void 0!==n&&n!==o&&i(n);let l=(0,p.R9)(r);return(0,c.useEffect)(()=>{null==l||l(u())},[u,l,a]),{...s,getSelectionState:u,isAllSelected:a.isAllSelected}}function zq(e,t){let n=new Set(e);return t.forEach(e=>n.delete(e)),n}function zQ(e,t){return new Set([...e,...t])}function zV(){return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",backgroundColor:"grey3",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:'"Oops!"'}),zM.jsx(f.nf,{width:360,children:'"We can\'t find any items with that name"'})]})})}let zz={warning:{uploadWhileUploading:{title:"Hang tight!",description:"Your current images are still being uploaded. Once they're all set, you'll be free to upload more."}}};(eiN=o||(o={})).assertEqual=e=>e,eiN.assertIs=function(e){},eiN.assertNever=function(e){throw Error()},eiN.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},eiN.getValidEnumValues=e=>{let t=eiN.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return eiN.objectValues(n)},eiN.objectValues=e=>eiN.objectKeys(e).map(function(t){return e[t]}),eiN.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},eiN.find=(e,t)=>{for(let n of e)if(t(n))return n},eiN.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eiN.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eiN.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(eiq=a||(a={})).mergeShapes=(e,t)=>({...e,...t});let zY=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),zH=e=>{switch(typeof e){case"undefined":return zY.undefined;case"string":return zY.string;case"number":return isNaN(e)?zY.nan:zY.number;case"boolean":return zY.boolean;case"function":return zY.function;case"bigint":return zY.bigint;case"symbol":return zY.symbol;case"object":return Array.isArray(e)?zY.array:null===e?zY.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?zY.promise:"u">typeof Map&&e instanceof Map?zY.map:"u">typeof Set&&e instanceof Set?zY.set:"u">typeof Date&&e instanceof Date?zY.date:zY.object;default:return zY.unknown}},zG=o.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),zZ=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class zJ extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let o=n,a=0;for(;a<i.path.length;){let u=i.path[a];a===i.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(t(i))):o[u]=o[u]||{_errors:[]},o=o[u],a++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}zJ.create=e=>new zJ(e);let z$=(e,t)=>{let n;switch(e.code){case zG.invalid_type:n=e.received===zY.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case zG.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,o.jsonStringifyReplacer)}`;break;case zG.unrecognized_keys:n=`Unrecognized key(s) in object: ${o.joinValues(e.keys,", ")}`;break;case zG.invalid_union:n="Invalid input";break;case zG.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${o.joinValues(e.options)}`;break;case zG.invalid_enum_value:n=`Invalid enum value. Expected ${o.joinValues(e.options)}, received '${e.received}'`;break;case zG.invalid_arguments:n="Invalid function arguments";break;case zG.invalid_return_type:n="Invalid function return type";break;case zG.invalid_date:n="Invalid date";break;case zG.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:o.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case zG.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case zG.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case zG.custom:n="Invalid input";break;case zG.invalid_intersection_types:n="Intersection results could not be merged";break;case zG.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case zG.not_finite:n="Number must be finite";break;default:n=t.defaultError,o.assertNever(e)}return{message:n}},zX=z$;function z0(e){zX=e}function z1(){return zX}let z2=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o},u="",s=r.filter(e=>!!e).slice().reverse();for(let l of s)u=l(a,{data:t,defaultError:u}).message;return{...i,path:o,message:i.message||u}};function z6(e,t){let n=z2({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,zX,z$].filter(e=>!!e)});e.common.issues.push(n)}class z5{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return z3;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let r of t)n.push({key:await r.key,value:await r.value});return z5.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:i,value:o}=r;if("aborted"===i.status||"aborted"===o.status)return z3;"dirty"===i.status&&e.dirty(),"dirty"===o.status&&e.dirty(),("u">typeof o.value||r.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}let z3=Object.freeze({status:"aborted"}),z9=e=>({status:"dirty",value:e}),z4=e=>({status:"valid",value:e}),z7=e=>"aborted"===e.status,z8=e=>"dirty"===e.status,Ye=e=>"valid"===e.status,Yt=e=>"u">typeof Promise&&e instanceof Promise;(eiQ=u||(u={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eiQ.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Yn{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let Yr=(e,t)=>{if(Ye(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new zJ(e.common.issues);return this._error=n,this._error}}};function Yi(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:typeof t.data>"u"?{message:r??t.defaultError}:{message:n??t.defaultError},description:i}}class Yo{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return zH(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:zH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new z5,ctx:{common:e.parent.common,data:e.data,parsedType:zH(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(Yt(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:zH(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Yr(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:zH(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await (Yt(r)?r:Promise.resolve(r));return Yr(n,i)}refine(e,t){let n=e=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),o=()=>r.addIssue({code:zG.custom,...n(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new Yz({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return YY.create(this,this._def)}nullable(){return YH.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return YR.create(this,this._def)}promise(){return YV.create(this,this._def)}or(e){return YE.create([this,e],this._def)}and(e){return Yj.create(this,e,this._def)}transform(e){return new Yz({...Yi(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new YG({...Yi(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new YX({typeName:s.ZodBranded,type:this,...Yi(this._def)})}catch(e){return new YZ({...Yi(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Y0.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let Ya=/^c[^\s-]{8,}$/i,Yu=/^[a-z][a-z0-9]*$/,Ys=/[0-9A-HJKMNP-TV-Z]{26}/,Yl=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Yc=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,Yd=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u"),Yf=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Yp=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,YA=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Yh(e,t){return!!(("v4"===t||!t)&&Yf.test(e)||("v6"===t||!t)&&Yp.test(e))}class Ym extends Yo{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:zG.invalid_string,...u.errToObj(n)}),this.nonempty=e=>this.min(1,u.errToObj(e)),this.trim=()=>new Ym({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Ym({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Ym({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==zY.string){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.string,received:t.parsedType}),z3}let n=new z5,r;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(z6(r=this._getOrReturnCtx(e,r),{code:zG.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if("max"===i.kind)e.data.length>i.value&&(z6(r=this._getOrReturnCtx(e,r),{code:zG.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if("length"===i.kind){let a=e.data.length>i.value,u=e.data.length<i.value;(a||u)&&(r=this._getOrReturnCtx(e,r),a?z6(r,{code:zG.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&z6(r,{code:zG.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if("email"===i.kind)Yc.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"email",code:zG.invalid_string,message:i.message}),n.dirty());else if("emoji"===i.kind)Yd.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"emoji",code:zG.invalid_string,message:i.message}),n.dirty());else if("uuid"===i.kind)Yl.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"uuid",code:zG.invalid_string,message:i.message}),n.dirty());else if("cuid"===i.kind)Ya.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"cuid",code:zG.invalid_string,message:i.message}),n.dirty());else if("cuid2"===i.kind)Yu.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"cuid2",code:zG.invalid_string,message:i.message}),n.dirty());else if("ulid"===i.kind)Ys.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"ulid",code:zG.invalid_string,message:i.message}),n.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{z6(r=this._getOrReturnCtx(e,r),{validation:"url",code:zG.invalid_string,message:i.message}),n.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{validation:"regex",code:zG.invalid_string,message:i.message}),n.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(z6(r=this._getOrReturnCtx(e,r),{code:zG.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(z6(r=this._getOrReturnCtx(e,r),{code:zG.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(z6(r=this._getOrReturnCtx(e,r),{code:zG.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):"datetime"===i.kind?YA(i).test(e.data)||(z6(r=this._getOrReturnCtx(e,r),{code:zG.invalid_string,validation:"datetime",message:i.message}),n.dirty()):"ip"===i.kind?Yh(e.data,i.version)||(z6(r=this._getOrReturnCtx(e,r),{validation:"ip",code:zG.invalid_string,message:i.message}),n.dirty()):o.assertNever(i);return{status:n.value,value:e.data}}_addCheck(e){return new Ym({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...u.errToObj(e)})}url(e){return this._addCheck({kind:"url",...u.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...u.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...u.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...u.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...u.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...u.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...u.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...u.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...u.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...u.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...u.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...u.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...u.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...u.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...u.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Yg(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}Ym.create=e=>{var t;return new Ym({checks:[],typeName:s.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Yi(e)})};class Yy extends Yo{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==zY.number){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.number,received:t.parsedType}),z3}let n,r=new z5;for(let i of this._def.checks)"int"===i.kind?o.isInteger(e.data)||(z6(n=this._getOrReturnCtx(e,n),{code:zG.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==Yg(e.data,i.value)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(z6(n=this._getOrReturnCtx(e,n),{code:zG.not_finite,message:i.message}),r.dirty()):o.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,n,r){return new Yy({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:u.toString(r)}]})}_addCheck(e){return new Yy({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:u.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:u.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:u.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:u.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&o.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Yy.create=e=>new Yy({checks:[],typeName:s.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...Yi(e)});class Yv extends Yo{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==zY.bigint){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.bigint,received:t.parsedType}),z3}let n,r=new z5;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(z6(n=this._getOrReturnCtx(e,n),{code:zG.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):o.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,n,r){return new Yv({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:u.toString(r)}]})}_addCheck(e){return new Yv({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Yv.create=e=>{var t;return new Yv({checks:[],typeName:s.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Yi(e)})};class Yx extends Yo{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==zY.boolean){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.boolean,received:t.parsedType}),z3}return z4(e.data)}}Yx.create=e=>new Yx({typeName:s.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...Yi(e)});class Yb extends Yo{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==zY.date){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.date,received:t.parsedType}),z3}if(isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return z6(n,{code:zG.invalid_date}),z3}let r=new z5,i;for(let a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(z6(i=this._getOrReturnCtx(e,i),{code:zG.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(z6(i=this._getOrReturnCtx(e,i),{code:zG.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):o.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Yb({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:u.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:u.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Yb.create=e=>new Yb({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:s.ZodDate,...Yi(e)});class YC extends Yo{_parse(e){if(this._getType(e)!==zY.symbol){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.symbol,received:t.parsedType}),z3}return z4(e.data)}}YC.create=e=>new YC({typeName:s.ZodSymbol,...Yi(e)});class YS extends Yo{_parse(e){if(this._getType(e)!==zY.undefined){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.undefined,received:t.parsedType}),z3}return z4(e.data)}}YS.create=e=>new YS({typeName:s.ZodUndefined,...Yi(e)});class Yw extends Yo{_parse(e){if(this._getType(e)!==zY.null){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.null,received:t.parsedType}),z3}return z4(e.data)}}Yw.create=e=>new Yw({typeName:s.ZodNull,...Yi(e)});class YI extends Yo{constructor(){super(...arguments),this._any=!0}_parse(e){return z4(e.data)}}YI.create=e=>new YI({typeName:s.ZodAny,...Yi(e)});class Y_ extends Yo{constructor(){super(...arguments),this._unknown=!0}_parse(e){return z4(e.data)}}Y_.create=e=>new Y_({typeName:s.ZodUnknown,...Yi(e)});class YT extends Yo{_parse(e){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.never,received:t.parsedType}),z3}}YT.create=e=>new YT({typeName:s.ZodNever,...Yi(e)});class YO extends Yo{_parse(e){if(this._getType(e)!==zY.undefined){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.void,received:t.parsedType}),z3}return z4(e.data)}}YO.create=e=>new YO({typeName:s.ZodVoid,...Yi(e)});class YR extends Yo{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==zY.array)return z6(t,{code:zG.invalid_type,expected:zY.array,received:t.parsedType}),z3;if(null!==r.exactLength){let i=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(i||o)&&(z6(t,{code:i?zG.too_big:zG.too_small,minimum:o?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(z6(t,{code:zG.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(z6(t,{code:zG.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Yn(t,e,t.path,n)))).then(e=>z5.mergeArray(n,e));let a=[...t.data].map((e,n)=>r.type._parseSync(new Yn(t,e,t.path,n)));return z5.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new YR({...this._def,minLength:{value:e,message:u.toString(t)}})}max(e,t){return new YR({...this._def,maxLength:{value:e,message:u.toString(t)}})}length(e,t){return new YR({...this._def,exactLength:{value:e,message:u.toString(t)}})}nonempty(e){return this.min(1,e)}}YR.create=(e,t)=>new YR({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...Yi(t)});class Yk extends Yo{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=o.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==zY.object){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.object,received:t.parsedType}),z3}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof YT&&"strip"===this._def.unknownKeys))for(let u in r.data)o.includes(u)||a.push(u);let s=[];for(let l of o){let c=i[l],d=r.data[l];s.push({key:{status:"valid",value:l},value:c._parse(new Yn(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof YT){let f=this._def.unknownKeys;if("passthrough"===f)for(let p of a)s.push({key:{status:"valid",value:p},value:{status:"valid",value:r.data[p]}});else if("strict"===f)a.length>0&&(z6(r,{code:zG.unrecognized_keys,keys:a}),n.dirty());else if("strip"!==f)throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let A=this._def.catchall;for(let h of a){let m=r.data[h];s.push({key:{status:"valid",value:h},value:A._parse(new Yn(r,m,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>z5.mergeObjectSync(n,e)):z5.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(e){return u.errToObj,new Yk({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;let s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=u.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new Yk({...this._def,unknownKeys:"strip"})}passthrough(){return new Yk({...this._def,unknownKeys:"passthrough"})}extend(e){return new Yk({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Yk({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Yk({...this._def,catchall:e})}pick(e){let t={};return o.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new Yk({...this._def,shape:()=>t})}omit(e){let t={};return o.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new Yk({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(!(t instanceof Yk))return t instanceof YR?new YR({...t._def,type:e(t.element)}):t instanceof YY?YY.create(e(t.unwrap())):t instanceof YH?YH.create(e(t.unwrap())):t instanceof YU?YU.create(t.items.map(t=>e(t))):t;{let n={};for(let r in t.shape){let i=t.shape[r];n[r]=YY.create(e(i))}return new Yk({...t._def,shape:()=>n})}}(this)}partial(e){let t={};return o.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new Yk({...this._def,shape:()=>t})}required(e){let t={};return o.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof YY;)r=r._def.innerType;t[n]=r}}),new Yk({...this._def,shape:()=>t})}keyof(){return YN(o.objectKeys(this.shape))}}Yk.create=(e,t)=>new Yk({shape:()=>e,unknownKeys:"strip",catchall:YT.create(),typeName:s.ZodObject,...Yi(t)}),Yk.strictCreate=(e,t)=>new Yk({shape:()=>e,unknownKeys:"strict",catchall:YT.create(),typeName:s.ZodObject,...Yi(t)}),Yk.lazycreate=(e,t)=>new Yk({shape:e,unknownKeys:"strip",catchall:YT.create(),typeName:s.ZodObject,...Yi(t)});class YE extends Yo{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let n of e)if("valid"===n.result.status)return n.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let i=e.map(e=>new zJ(e.ctx.common.issues));return z6(t,{code:zG.invalid_union,unionErrors:i}),z3});{let r,i=[];for(let o of n){let a={...t,common:{...t.common,issues:[]},parent:null},u=o._parseSync({data:t.data,path:t.path,parent:a});if("valid"===u.status)return u;"dirty"!==u.status||r||(r={result:u,ctx:a}),a.common.issues.length&&i.push(a.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;let s=i.map(e=>new zJ(e));return z6(t,{code:zG.invalid_union,unionErrors:s}),z3}}get options(){return this._def.options}}YE.create=(e,t)=>new YE({options:e,typeName:s.ZodUnion,...Yi(t)});let YM=e=>e instanceof YW?YM(e.schema):e instanceof Yz?YM(e.innerType()):e instanceof YD?[e.value]:e instanceof Yq?e.options:e instanceof YQ?Object.keys(e.enum):e instanceof YG?YM(e._def.innerType):e instanceof YS?[void 0]:e instanceof Yw?[null]:null;class YF extends Yo{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==zY.object)return z6(t,{code:zG.invalid_type,expected:zY.object,received:t.parsedType}),z3;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(z6(t,{code:zG.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),z3)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let i of t){let o=YM(i.shape[e]);if(!o)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(r.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,i)}}return new YF({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Yi(n)})}}class Yj extends Yo{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(z7(e)||z7(r))return z3;let i=function e(t,n){let r=zH(t),i=zH(n);if(t===n)return{valid:!0,data:t};if(r===zY.object&&i===zY.object){let a=o.objectKeys(n),u=o.objectKeys(t).filter(e=>-1!==a.indexOf(e)),s={...t,...n};for(let l of u){let c=e(t[l],n[l]);if(!c.valid)return{valid:!1};s[l]=c.data}return{valid:!0,data:s}}if(r!==zY.array||i!==zY.array)return r===zY.date&&i===zY.date&&+t==+n?{valid:!0,data:t}:{valid:!1};{if(t.length!==n.length)return{valid:!1};let d=[];for(let f=0;f<t.length;f++){let p=t[f],A=n[f],h=e(p,A);if(!h.valid)return{valid:!1};d.push(h.data)}return{valid:!0,data:d}}}(e.value,r.value);return i.valid?((z8(e)||z8(r))&&t.dirty(),{status:t.value,value:i.data}):(z6(n,{code:zG.invalid_intersection_types}),z3)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Yj.create=(e,t,n)=>new Yj({left:e,right:t,typeName:s.ZodIntersection,...Yi(n)});class YU extends Yo{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==zY.array)return z6(n,{code:zG.invalid_type,expected:zY.array,received:n.parsedType}),z3;if(n.data.length<this._def.items.length)return z6(n,{code:zG.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z3;!this._def.rest&&n.data.length>this._def.items.length&&(z6(n,{code:zG.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Yn(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>z5.mergeArray(t,e)):z5.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new YU({...this._def,rest:e})}}YU.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new YU({items:e,typeName:s.ZodTuple,rest:null,...Yi(t)})};class YK extends Yo{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==zY.object)return z6(n,{code:zG.invalid_type,expected:zY.object,received:n.parsedType}),z3;let r=[],i=this._def.keyType,o=this._def.valueType;for(let a in n.data)r.push({key:i._parse(new Yn(n,a,n.path,a)),value:o._parse(new Yn(n,n.data[a],n.path,a))});return n.common.async?z5.mergeObjectAsync(t,r):z5.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new YK(t instanceof Yo?{keyType:e,valueType:t,typeName:s.ZodRecord,...Yi(n)}:{keyType:Ym.create(),valueType:e,typeName:s.ZodRecord,...Yi(t)})}}class YL extends Yo{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==zY.map)return z6(n,{code:zG.invalid_type,expected:zY.map,received:n.parsedType}),z3;let r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([e,t],o)=>({key:r._parse(new Yn(n,e,n.path,[o,"key"])),value:i._parse(new Yn(n,t,n.path,[o,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let e of o){let n=await e.key,r=await e.value;if("aborted"===n.status||"aborted"===r.status)return z3;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),a.set(n.value,r.value)}return{status:t.value,value:a}})}{let u=new Map;for(let s of o){let l=s.key,c=s.value;if("aborted"===l.status||"aborted"===c.status)return z3;("dirty"===l.status||"dirty"===c.status)&&t.dirty(),u.set(l.value,c.value)}return{status:t.value,value:u}}}}YL.create=(e,t,n)=>new YL({valueType:t,keyType:e,typeName:s.ZodMap,...Yi(n)});class YB extends Yo{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==zY.set)return z6(n,{code:zG.invalid_type,expected:zY.set,received:n.parsedType}),z3;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(z6(n,{code:zG.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(z6(n,{code:zG.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return z3;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let a=[...n.data.values()].map((e,t)=>i._parse(new Yn(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new YB({...this._def,minSize:{value:e,message:u.toString(t)}})}max(e,t){return new YB({...this._def,maxSize:{value:e,message:u.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}YB.create=(e,t)=>new YB({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...Yi(t)});class YP extends Yo{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==zY.function)return z6(t,{code:zG.invalid_type,expected:zY.function,received:t.parsedType}),z3;function n(e,n){return z2({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,zX,z$].filter(e=>!!e),issueData:{code:zG.invalid_arguments,argumentsError:n}})}function r(e,n){return z2({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,zX,z$].filter(e=>!!e),issueData:{code:zG.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;return this._def.returns instanceof YV?z4(async(...e)=>{let t=new zJ([]),a=await this._def.args.parseAsync(e,i).catch(r=>{throw t.addIssue(n(e,r)),t}),u=await o(...a);return await this._def.returns._def.type.parseAsync(u,i).catch(e=>{throw t.addIssue(r(u,e)),t})}):z4((...e)=>{let t=this._def.args.safeParse(e,i);if(!t.success)throw new zJ([n(e,t.error)]);let a=o(...t.data),u=this._def.returns.safeParse(a,i);if(!u.success)throw new zJ([r(a,u.error)]);return u.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new YP({...this._def,args:YU.create(e).rest(Y_.create())})}returns(e){return new YP({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new YP({args:e||YU.create([]).rest(Y_.create()),returns:t||Y_.create(),typeName:s.ZodFunction,...Yi(n)})}}class YW extends Yo{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}YW.create=(e,t)=>new YW({getter:e,typeName:s.ZodLazy,...Yi(t)});class YD extends Yo{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return z6(t,{received:t.data,code:zG.invalid_literal,expected:this._def.value}),z3}return{status:"valid",value:e.data}}get value(){return this._def.value}}function YN(e,t){return new Yq({values:e,typeName:s.ZodEnum,...Yi(t)})}YD.create=(e,t)=>new YD({value:e,typeName:s.ZodLiteral,...Yi(t)});class Yq extends Yo{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return z6(t,{expected:o.joinValues(n),received:t.parsedType,code:zG.invalid_type}),z3}if(-1===this._def.values.indexOf(e.data)){let r=this._getOrReturnCtx(e),i=this._def.values;return z6(r,{received:r.data,code:zG.invalid_enum_value,options:i}),z3}return z4(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return Yq.create(e)}exclude(e){return Yq.create(this.options.filter(t=>!e.includes(t)))}}Yq.create=YN;class YQ extends Yo{_parse(e){let t=o.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==zY.string&&n.parsedType!==zY.number){let r=o.objectValues(t);return z6(n,{expected:o.joinValues(r),received:n.parsedType,code:zG.invalid_type}),z3}if(-1===t.indexOf(e.data)){let i=o.objectValues(t);return z6(n,{received:n.data,code:zG.invalid_enum_value,options:i}),z3}return z4(e.data)}get enum(){return this._def.values}}YQ.create=(e,t)=>new YQ({values:e,typeName:s.ZodNativeEnum,...Yi(t)});class YV extends Yo{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==zY.promise&&!1===t.common.async)return z6(t,{code:zG.invalid_type,expected:zY.promise,received:t.parsedType}),z3;let n=t.parsedType===zY.promise?t.data:Promise.resolve(t.data);return z4(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}YV.create=(e,t)=>new YV({type:e,typeName:s.ZodPromise,...Yi(t)});class Yz extends Yo{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let i=r.transform(n.data);return n.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:i,path:n.path,parent:n})}let a={addIssue(e){z6(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===r.type){let u=e=>{let t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"aborted"===e.status?z3:("dirty"===e.status&&t.dirty(),u(e.value).then(()=>({status:t.value,value:e.value}))));{let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===s.status?z3:("dirty"===s.status&&t.dirty(),u(s.value),{status:t.value,value:s.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>Ye(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ye(l))return l;let c=r.transform(l.value,a);if(c instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}}o.assertNever(r)}}Yz.create=(e,t,n)=>new Yz({schema:e,typeName:s.ZodEffects,effect:t,...Yi(n)}),Yz.createWithPreprocess=(e,t,n)=>new Yz({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...Yi(n)});class YY extends Yo{_parse(e){return this._getType(e)===zY.undefined?z4(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}YY.create=(e,t)=>new YY({innerType:e,typeName:s.ZodOptional,...Yi(t)});class YH extends Yo{_parse(e){return this._getType(e)===zY.null?z4(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}YH.create=(e,t)=>new YH({innerType:e,typeName:s.ZodNullable,...Yi(t)});class YG extends Yo{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===zY.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}YG.create=(e,t)=>new YG({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Yi(t)});class YZ extends Yo{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Yt(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new zJ(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new zJ(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}YZ.create=(e,t)=>new YZ({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Yi(t)});class YJ extends Yo{_parse(e){if(this._getType(e)!==zY.nan){let t=this._getOrReturnCtx(e);return z6(t,{code:zG.invalid_type,expected:zY.nan,received:t.parsedType}),z3}return{status:"valid",value:e.data}}}YJ.create=e=>new YJ({typeName:s.ZodNaN,...Yi(e)});let Y$=Symbol("zod_brand");class YX extends Yo{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Y0 extends Yo{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?z3:"dirty"===e.status?(t.dirty(),z9(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?z3:"dirty"===r.status?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(e,t){return new Y0({in:e,out:t,typeName:s.ZodPipeline})}}let Y1=(e,t={},n)=>e?YI.create().superRefine((r,i)=>{var o,a;if(!e(r)){let u="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=u.fatal)&&void 0!==o?o:n)||void 0===a||a;i.addIssue({code:"custom",..."string"==typeof u?{message:u}:u,fatal:s})}}):YI.create(),Y2={object:Yk.lazycreate};(eiV=s||(s={})).ZodString="ZodString",eiV.ZodNumber="ZodNumber",eiV.ZodNaN="ZodNaN",eiV.ZodBigInt="ZodBigInt",eiV.ZodBoolean="ZodBoolean",eiV.ZodDate="ZodDate",eiV.ZodSymbol="ZodSymbol",eiV.ZodUndefined="ZodUndefined",eiV.ZodNull="ZodNull",eiV.ZodAny="ZodAny",eiV.ZodUnknown="ZodUnknown",eiV.ZodNever="ZodNever",eiV.ZodVoid="ZodVoid",eiV.ZodArray="ZodArray",eiV.ZodObject="ZodObject",eiV.ZodUnion="ZodUnion",eiV.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eiV.ZodIntersection="ZodIntersection",eiV.ZodTuple="ZodTuple",eiV.ZodRecord="ZodRecord",eiV.ZodMap="ZodMap",eiV.ZodSet="ZodSet",eiV.ZodFunction="ZodFunction",eiV.ZodLazy="ZodLazy",eiV.ZodLiteral="ZodLiteral",eiV.ZodEnum="ZodEnum",eiV.ZodEffects="ZodEffects",eiV.ZodNativeEnum="ZodNativeEnum",eiV.ZodOptional="ZodOptional",eiV.ZodNullable="ZodNullable",eiV.ZodDefault="ZodDefault",eiV.ZodCatch="ZodCatch",eiV.ZodPromise="ZodPromise",eiV.ZodBranded="ZodBranded",eiV.ZodPipeline="ZodPipeline";let Y6=(e,t={message:`Input not instance of ${e.name}`})=>Y1(t=>t instanceof e,t),Y5=Ym.create,Y3=Yy.create,Y9=YJ.create,Y4=Yv.create,Y7=Yx.create,Y8=Yb.create,He=YC.create,Ht=YS.create,Hn=Yw.create,Hr=YI.create,Hi=Y_.create,Ho=YT.create,Ha=YO.create,Hu=YR.create,Hs=Yk.create,Hl=Yk.strictCreate,Hc=YE.create,Hd=YF.create,Hf=Yj.create,Hp=YU.create,HA=YK.create,Hh=YL.create,Hm=YB.create,Hg=YP.create,Hy=YW.create,Hv=YD.create,Hx=Yq.create,Hb=YQ.create,HC=YV.create,HS=Yz.create,Hw=YY.create,HI=YH.create,H_=Yz.createWithPreprocess,HT=Y0.create,HO=()=>Y5().optional(),HR=()=>Y3().optional(),Hk=()=>Y7().optional();var HE=Object.freeze({__proto__:null,defaultErrorMap:z$,setErrorMap:z0,getErrorMap:z1,makeIssue:z2,EMPTY_PATH:[],addIssueToContext:z6,ParseStatus:z5,INVALID:z3,DIRTY:z9,OK:z4,isAborted:z7,isDirty:z8,isValid:Ye,isAsync:Yt,get util(){return o},get objectUtil(){return a},ZodParsedType:zY,getParsedType:zH,ZodType:Yo,ZodString:Ym,ZodNumber:Yy,ZodBigInt:Yv,ZodBoolean:Yx,ZodDate:Yb,ZodSymbol:YC,ZodUndefined:YS,ZodNull:Yw,ZodAny:YI,ZodUnknown:Y_,ZodNever:YT,ZodVoid:YO,ZodArray:YR,ZodObject:Yk,ZodUnion:YE,ZodDiscriminatedUnion:YF,ZodIntersection:Yj,ZodTuple:YU,ZodRecord:YK,ZodMap:YL,ZodSet:YB,ZodFunction:YP,ZodLazy:YW,ZodLiteral:YD,ZodEnum:Yq,ZodNativeEnum:YQ,ZodPromise:YV,ZodEffects:Yz,ZodTransformer:Yz,ZodOptional:YY,ZodNullable:YH,ZodDefault:YG,ZodCatch:YZ,ZodNaN:YJ,BRAND:Y$,ZodBranded:YX,ZodPipeline:Y0,custom:Y1,Schema:Yo,ZodSchema:Yo,late:Y2,get ZodFirstPartyTypeKind(){return s},coerce:{string:e=>Ym.create({...e,coerce:!0}),number:e=>Yy.create({...e,coerce:!0}),boolean:e=>Yx.create({...e,coerce:!0}),bigint:e=>Yv.create({...e,coerce:!0}),date:e=>Yb.create({...e,coerce:!0})},any:Hr,array:Hu,bigint:Y4,boolean:Y7,date:Y8,discriminatedUnion:Hd,effect:HS,enum:Hx,function:Hg,instanceof:Y6,intersection:Hf,lazy:Hy,literal:Hv,map:Hh,nan:Y9,nativeEnum:Hb,never:Ho,null:Hn,nullable:HI,number:Y3,object:Hs,oboolean:Hk,onumber:HR,optional:Hw,ostring:HO,pipeline:HT,preprocess:H_,promise:HC,record:HA,set:Hm,strictObject:Hl,string:Y5,symbol:He,transformer:HS,tuple:Hp,undefined:Ht,union:Hc,unknown:Hi,void:Ha,NEVER:z3,ZodIssueCode:zG,quotelessJson:zZ,ZodError:zJ});let HM=HE.object({id:HE.string(),label:HE.string(),repeatable:HE.boolean(),status:HE.boolean()}),HF=HE.array(HM);function Hj(e,t,n){return(0,y.WY)(new URL("customtypes",e),{headers:{repository:t},credentials:(0,y.xb)(n),okType:HF})}let HU=HE.object({first_name:HE.string().optional(),last_name:HE.string().optional(),email:HE.string().optional()}),HK=HE.object({id:HE.string(),name:HE.string(),is_master:HE.boolean().optional()}),HL=HE.discriminatedUnion("status",[HE.object({status:HE.literal("unclassified")}),HE.object({status:HE.literal("published")}),HE.object({status:HE.literal("release"),release_id:HE.string()}),HE.object({status:HE.literal("archived")})]).and(HE.object({version_id:HE.string(),tags:HE.array(HE.string()),custom_type_label:HE.string(),preview_summary:HE.string().optional(),preview_image:HE.string().optional(),last_modified_date:HE.coerce.date(),author:HU,uid:HE.string().optional()})),HB=HE.object({id:HE.string(),title:HE.string().nullish().transform(e=>e??"Untitled"),custom_type_id:HE.string(),group_lang_id:HE.string(),language:HK,versions:HE.array(HL)}),HP=HE.object({total:HE.number(),cursor:HE.string().optional(),results:HE.array(HB)});function HW(e){return e.reduce((e,t)=>{if(t.values.every(e=>""===e))return e;let n=t.values.map(e=>[t.name,e]);return e.concat(n)},[])}function HD(e,t,n){return(0,y.WY)(new URL(`documents/${n}`,e),{credentials:(0,y.xb)(t),okType:HB})}HE.custom().transform((e,t)=>{let n=k.Document.decode(e);return"Left"===n._tag?(t.addIssue({code:HE.ZodIssueCode.custom,message:"Invalid document."}),HE.NEVER):n.right});let HN=HE.object({id:HE.string(),firstname:HE.string().optional(),lastname:HE.string().optional(),email:HE.string()}),Hq=HE.array(HN),HQ=HE.object({simulator_url:HE.string().url().nullish(),languages:HE.array(HK).transform(e=>(0,g.DY)(e,e=>e.name)),authors:Hq.optional().default([])}).transform(({simulator_url:e,...t})=>{let n=e&&function(e){let t=(0,l.ju)(e);return!!t&&t.pathname.endsWith("/slice-simulator")}(e)?e:void 0;return{...t,simulatorUrl:n}});function HV(e,t){return(0,y.WY)(new URL("repository",e),{credentials:(0,y.xb)(t),okType:HQ})}let Hz=HE.object({results:HE.array(HE.string())});function HY(e,t){return(0,y.WY)(new URL("repository/tags",e),{credentials:(0,y.xb)(t),okType:Hz})}function HH(){let e=zK();e.mediaLibrary||zB("mediaLibrary");let{assetsApiBaseUrl:t,authStrategy:n,repository:r}=e,{items:i}=(0,m.QT)(HG,[t,r,n]);return{tags:i}}function HG(e,t,n){return(0,y.WY)(new URL("tags",e),{credentials:(0,y.xb)(n),okType:H$,headers:{repository:t}})}let HZ=HE.string().min(3).max(20),HJ=HE.object({id:HE.string(),name:HZ,uploader_id:HE.string().optional(),created_at:HE.number(),last_modified:HE.number(),count:HE.number().optional().default(0)}),H$=HE.object({items:HE.array(HJ)});function HX(e){(0,m.YC)(HG,t=>{let{items:n}=t,r=e(n);if(r)return{items:r}})}let H0=HE.array(HE.string()).optional().transform(e=>null==e?void 0:e[0]),H1=HE.object({id:HE.string(),kind:HE.string(),extension:HE.string().optional(),filename:HE.string(),width:HE.number().optional(),height:HE.number().optional(),last_modified:HE.number(),url:HE.string(),alt:HE.string().optional(),size:HE.number(),notes:HE.string().optional(),credits:HE.string().optional(),search_highlight:HE.object({filename:H0,alt:H0,notes:H0,credits:H0}).optional(),tags:HE.array(HJ)}),H2={"X-Prismic-Source":"Wroom"},H6=HE.object({total:HE.number(),cursor:HE.string().optional(),items:HE.array(H1)});function H5(e,t,n,r,i,o,a,u,s){let l=e?new URL("assets",e):void 0,c=new URLSearchParams(HW([{name:"limit",values:["30"]},{name:"cursor",values:[s??""]},{name:"keyword",values:[i]},{name:"tags",values:o.split(",")},{name:"assetType",values:[r]},{name:"opensearch",values:a?["true"]:[]}])).toString(),d=H6.transform(e=>({...e,assetType:r,keyword:i,page:u,tags:o})),f=performance.now();return(0,y.WY)(`${(null==l?void 0:l.href)??""}?${c}`,{headers:{repository:t,...H2},credentials:(0,y.xb)(n),okType:d}).then(e=>({...e,time:(performance.now()-f).toFixed(0)}))}function H3(e){H8(t=>t.flatMap(t=>{let n=e.find(e=>e.id===t.id);return n?void 0===n.response?[]:{...t,...n.response}:t}))}function H9(e){H8(t=>t.filter(t=>!e.includes(t.id)))}function H4(e){let{keyword:t,tagIds:n}=e,r=null==n?void 0:n.join(",");(0,m.YC)(H5,e=>{if(!(t&&e.keyword===t)&&!(r&&e.tags===r))return e})}function H7(e,t,n,r){let i=e.filter(e=>e.assetType===t&&e.keyword===n&&e.tags===r),o=(0,g.DY)(i,e=>e.page).flatMap(e=>e.items);return n?(0,g.mN)(o,e=>e.id):o}function H8(e){(0,m.YC)(H5,t=>{let{items:n,total:r}=t,i=e(n,t);if(i)return{...t,total:r+(i.length-n.length),items:i}})}function Ge(e){let{config:t,assetType:n}=e;if(!t.mediaLibrary)throw Error("media library is not configured");let{assetsApiBaseUrl:r,authStrategy:i,repository:o}=t;(0,m.gw)(H5,Gn({assetsApiBaseUrl:r,repository:o,authStrategy:i,assetType:n,keyword:"",tagIds:[],useOpenSearch:!1,page:0}))}function Gt(e){let{config:t,assetType:n}=e;if(!t.mediaLibrary)throw Error("media library is not configured");(0,m.YC)(H5,e=>0===e.page?e:void 0),Ge({config:t,assetType:n})}function Gn(e){return[e.assetsApiBaseUrl,e.repository,e.authStrategy,e.assetType,e.keyword,e.tagIds.join(","),e.useOpenSearch,e.page,e.cursor]}m.Fs.registerFetcherConfig(H5,{revalidationStrategy:{type:"never"}});let Gr,Gi=new Uint8Array(16);function Go(){if(!Gr&&!(Gr="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gr(Gi)}let Ga=[];for(let Gu=0;Gu<256;++Gu)Ga.push((Gu+256).toString(16).slice(1));let Gs="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gl={randomUUID:Gs},Gc=(0,c.createContext)(void 0);function Gd(e){let{children:t,assetType:n="all",onSelectedChange:r,actionContainerRef:i}=e,[o,a]=(0,c.useTransition)(),[u,s]=(0,c.useTransition)(),l=zK(),{showAlert:d}=(0,f.VY)(),{keyword:p,setKeyword:A,tagIds:h,setTagIds:g,media:x,fetchNextPage:b,hasNextPage:C,updateMedia:S,unshiftMedia:w,deleteMedia:I,mediaTotal:_,deleteSearchData:T,revalidateFirstPage:O}=function(e){let{assetType:t="all",mode:n}=e,r=zK(),[i,o]=(0,c.useState)({keyword:"",page:0,tagIds:[]});r.mediaLibrary||zB("mediaLibrary");let{assetsApiBaseUrl:a,authStrategy:u,repository:s,useOpenSearch:l}=r,{keyword:d,page:f,cursor:p,tagIds:A}=i,h=(0,m.QT)(H5,Gn({assetsApiBaseUrl:a,authStrategy:u,repository:s,assetType:t,keyword:d,tagIds:A,useOpenSearch:l&&!!d,page:f,cursor:p}));!function(e){let{assetType:t,keyword:n,mode:r,tagIds:i}=e,o=zK();o.mediaLibrary||zB("mediaLibrary");let{useOpenSearch:a,onAnalyticsEvent:u}=o,s=(0,m.q_)(H5),l=s[s.length-1],d=(0,c.useRef)(l);d.current=l,(0,c.useEffect)(()=>{if(!u||!n||!d.current||d.current.keyword!==n)return;let e=String(n.split(" ").length),o=String(d.current.total),s=i.join(",");u("Media Library Search",{searchQuery:n,numberOfWords:e,numberOfResults:o,timeToGetResults:d.current.time,useOpenSearch:a&&n?"1":"0",assetType:t,mode:r,tags:s})},[n,a,t,r,u,i])}({assetType:t,keyword:d,tagIds:A,mode:n});let g=function(e,t,n){let r=(0,m.q_)(H5);return H7(r,e,t,n.join(","))}(t,d,A),y=h.total!==g.length;return{keyword:d,setKeyword:function(e){o(t=>({...t,keyword:e,page:0,cursor:void 0}))},tagIds:A,setTagIds:function(e){o(t=>({...t,tagIds:e,page:0,cursor:void 0}))},media:g,mediaTotal:h.total,limit:30,hasNextPage:y,fetchNextPage:function(){void 0!==h.cursor&&o(e=>({...e,page:e.page+1,cursor:h.cursor}))},updateMedia:H3,unshiftMedia:function(e){o(e=>({...e,page:0,cursor:void 0})),H8((t,n)=>{if(0===n.page)return[...e,...t]})},deleteMedia:H9,deleteSearchData:H4,revalidateFirstPage:Ge}}({assetType:n,mode:r?"select":"browse"}),[R,k]=(0,c.useState)(),{isMediaRevalidationInProgress:E,isMediaCacheInvalid:M,revalidateMedia:F}=function(e){let{revalidate:t,config:n,assetType:r}=e,{assetsApiBaseUrl:i,repository:o="",authStrategy:a="token"}=n.mediaLibrary?n:{},[u,s]=(0,c.useState)(!1),[l,d]=(0,c.useState)(!1);return(0,m.NN)({fetcher:H5,requestParams:Gn({assetsApiBaseUrl:i,repository:o,authStrategy:a,assetType:r,keyword:"",tagIds:[],useOpenSearch:!1,page:0}),validator(e,t){var n,r,i,o;let a=(null==(n=e.items[0])?void 0:n.id)??"",u=(null==(i=null==(r=t[0])?void 0:r.items[0])?void 0:i.id)??"";return a!==u||e.total!==(null==(o=t[0])?void 0:o.total)},onCacheInvalidated:()=>d(!0),every:6e4}),(0,c.useEffect)(()=>{u&&(d(!1),s(!1))},[u]),{isMediaRevalidationInProgress:u,isMediaCacheInvalid:l,revalidateMedia:function(){s(!0),t()}}}({assetType:n,config:l,revalidate:function(){A(""),Gt({config:l,assetType:n})}}),{isUploading:j,onFilesSelected:U,uploadingFiles:K,onRetry:L}=function(e){let{onBeforeUpload:t,onComplete:n}=e,[r,i]=(0,c.useState)([]),o=r.some(e=>"idle"===e.status||"uploading"===e.status),a=zK(),u=(0,c.useCallback)(e=>{let n=[{...e,status:"idle"},...r.filter(t=>t.id!==e.id)];i(n),t(n)},[t,r]);return(0,c.useEffect)(function(){if(!r.length||r.some(e=>"uploading"===e.status)||r.every(e=>"error"===e.status))return;let e=r.find(e=>"idle"===e.status);if(!e)return;let t=r;function o(e){t=e(t),i(t),t.every(e=>"success"===e.status||"error"===e.status)&&setTimeout(()=>{i([]),null==n||n(t)},1500)}o(t=>t.map(t=>t.id===e.id?{...t,status:"uploading"}:t)),(function(e){let{file:t,config:n}=e;if(!n.mediaLibrary)throw Error("Media Library not configured.");let{assetsApiBaseUrl:r,repository:i,authStrategy:o}=n,a=new FormData;return a.append(t.name,t),(0,y.WY)(new URL("assets",r),{headers:{repository:i,"Content-Type":"multipart/form-data",...H2},method:"POST",body:a,credentials:(0,y.xb)(o),okType:H1})})({file:e.file,config:a}).then(t=>{o(n=>n.map(n=>n.id===e.id?{...n,status:"success",response:t}:n))}).catch(()=>{o(t=>t.map(t=>t.id===e.id?{...t,status:"error"}:t))})},[a,r,n]),{isUploading:o,uploadingFiles:r,onFilesSelected:function(e){let n=e.map(e=>({id:`temp-${function(e,t,n){if(Gl.randomUUID&&!t&&!e)return Gl.randomUUID();e=e||{};let r=e.random||(e.rng||Go)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return function(e,t=0){return Ga[e[t+0]]+Ga[e[t+1]]+Ga[e[t+2]]+Ga[e[t+3]]+"-"+Ga[e[t+4]]+Ga[e[t+5]]+"-"+Ga[e[t+6]]+Ga[e[t+7]]+"-"+Ga[e[t+8]]+Ga[e[t+9]]+"-"+Ga[e[t+10]]+Ga[e[t+11]]+Ga[e[t+12]]+Ga[e[t+13]]+Ga[e[t+14]]+Ga[e[t+15]]}(r)}()}`,file:e,status:"idle"}));i(n),t(n)},onRetry:u}}({onBeforeUpload(e){A("");let t=e.filter(e=>"idle"===e.status).map(e=>({id:e.id,url:URL.createObjectURL(e.file),filename:e.file.name,size:e.file.size,extension:e.file.type,kind:e.file.type,last_modified:e.file.lastModified,tags:[]}));w(t);let[n]=t??[];n&&B.toggleSelection({id:n.id,isSingleSelection:!0})},onComplete(e){let t=e.flatMap(e=>"success"===e.status?e:(function(e){let t=(0,v.tx)(e.file.name,30);d({id:e.id,title:`The specified file "${t}" could not be uploaded.`,subtitle:zM.jsxs(f.xv,{color:"inherit",children:["Read more about our"," ",zM.jsx(f.xv,{color:"tomato11",href:"https://prismic.io/docs/guides/manage-images#supported-media",underline:!0,children:"supported media"}),"."]}),buttons:{action:{text:"Retry upload",icon:"cloudUpload",onClick:()=>L(e)}}})}(e),{id:e.id,response:void 0}));S(t),O({config:l,assetType:n});let r=t[0];r&&r.response&&B.isSelected(r.id)&&B.toggleSelection({id:r.response.id,isSingleSelection:!0})}}),B=zN({totalItemCount:_,onChangeSelection({selectedIds:e,selectedCount:t}){if(W(!1),r){if(1===t){let[n]=[...e];if(K.some(e=>e.id===n&&"success"!==e.status)){r(new Set);return}}r(new Set(e))}}}),[P,W]=(0,c.useState)(!1);return zM.jsx(Gc.Provider,{value:{isFetchingMedia:o,media:x,mediaTotal:_,onScrollToBottom:function(){C&&a(b)},actionContainerRef:i,onFilesUpload:function(e){j||U(e)},isUploading:j,uploadingFiles:K,isMediaRevalidationInProgress:E,isMediaCacheInvalid:M,revalidateMedia:F,deleteMedia:I,updateMedia:function(e,t){S([{id:e,response:t}])},keyword:p,onKeywordChange:function(e){e&&T({keyword:e}),s(()=>{A(e),B.clearSelection()})},isSearchingMedia:u,assetType:n,tagManagerOpen:P,setTagManagerOpen:W,tagIds:h,onTagIdsChange:function(e){e.length&&T({tagIds:e}),s(()=>{g(e),B.clearSelection()})},openMediaSection:R,setOpenMediaSection:k},children:t})}function Gf(){let e=(0,c.useContext)(Gc);if(!e)throw Error("useMediaLibrary must be used within a MediaLibraryProvider");return e}function Gp(){let{actionContainerRef:e,isUploading:t,onFilesUpload:n,assetType:r}=Gf(),i=null==e?void 0:e.current;return zM.jsx(Gh,{actionContainerRef:e,children:zM.jsxs(f.xu,{width:"100%",gap:16,children:[zM.jsx(GA,{}),zM.jsx(f.u,{title:zz.warning.uploadWhileUploading.title,content:zz.warning.uploadWhileUploading.description,visible:t,stableMount:!0,children:zM.jsx(f.KH,{disabled:t,onFilesSelected:n,startIcon:"cloudUpload",color:i?"purple":"grey",size:"large",assetType:r,children:"Upload media"})})]})})}function GA(){let{keyword:e,onKeywordChange:t,isFetchingMedia:n}=Gf(),[r,i]=(0,c.useState)(e);return(0,p.pQ)(e,()=>{""===e&&i("")}),(0,p.Nr)(r,300,(0,p.R9)(e=>t(e))),zM.jsx(f.xu,{width:"100%",flexDirection:"column",children:zM.jsx(f.CR,{value:r,placeholder:"Search",onValueChange:i,maxLength:200,isLoading:n&&e!==r})})}function Gh(e){let{children:t,actionContainerRef:n}=e,r=null==n?void 0:n.current,i=r?f.Uv:c.Fragment,o=r?{container:n.current,asChild:!0}:{};return zM.jsx(i,{...o,children:t})}function Gm(e){let{children:t}=e,{onFilesUpload:n,assetType:r}=Gf();return zM.jsx(f.Zz,{overlay:zM.jsx(Gg,{}),onFilesSelected:n,assetType:r,children:t})}function Gg(){let{isUploading:e}=Gf(),t=e?zz.warning.uploadWhileUploading.title:"Drop files here",n=e?zz.warning.uploadWhileUploading.description:"Drop your files to upload them instantly to the media library.";return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",backgroundColor:"grey3",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:e?"block":"cloudUpload",lineColor:e?"tomato11":"purple10",backgroundColor:e?"tomato2":"purple3",borderColor:e?"tomato6":"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:t}),zM.jsx(f.nf,{width:360,children:n})]})})}function Gy(){return zM.jsx(f.Iq,{title:"Oops! Something went wrong",description:"An error occurred while searching for your image.",errorImageSrc:f.Os,sx:{marginBlock:"auto",marginInline:"auto"}})}function Gv(e){let{mediaList:t,mediaActions:n,mediaToolbar:r,sidePane:i}=e,o=(0,f.ac)({min:"medium"});return zM.jsxs(f.xu,{display:"grid",gridTemplateRows:"auto auto 1fr",gridTemplateColumns:o?"1fr 380px":"1fr",width:"100%",height:"100%",children:[zM.jsxs(f.xu,{position:"relative",display:"grid",gap:16,gridColumn:"1",gridRow:"1",padding:{right:16,bottom:16},children:[n,r]}),zM.jsx(f.xu,{position:"relative",display:"grid",gridColumn:"1",gridRow:"2 / -1",children:t}),o&&i]})}function Gx(e){let{count:t}=e;return zM.jsxs(f.xv,{variant:"bold",children:[t," items"]})}function Gb(){var e;let{onScrollToBottom:t,media:n,isUploading:r,uploadingFiles:i,isSearchingMedia:o,isMediaRevalidationInProgress:a,setOpenMediaSection:u}=Gf(),s=zN(),l=zK(),d=l.mediaLibrary&&l.mediaLibraryTagsEnabled,p=(0,c.useRef)(null);function A(e,t,r){let i=t.shiftKey?n.map(({id:e})=>e):void 0;s.toggleSelection({id:e,isSingleSelection:"single"===r,metaKey:t.metaKey,shiftKey:t.shiftKey,ids:i})}return(r||o||a)&&(null==(e=p.current)||e.scrollTo({top:0,behavior:"instant"})),zM.jsx(GC,{onScrollToBottom:t,scrollAreaRef:p,children:n.map(e=>{var t,n;return zM.jsx(f.PB,{"aria-label":"media item",...e,filenameHighlight:null==(t=e.search_highlight)?void 0:t.filename,loading:o,status:null==(n=i.find(t=>t.id===e.id))?void 0:n.status,selected:s.isSelected(e.id),onCardClick:t=>A(e.id,t,"single"),onCheckedChange:(t,n)=>A(e.id,n,"multi"),onAddTagClick:d?()=>{var t;return t=e.id,void(s.toggleSelection({id:t,isSingleSelection:!0}),u("tags"))}:void 0},e.id)})})}function GC(e){let{children:t,scrollAreaRef:n,onScrollToBottom:r}=e,i="calc((100% - 48px) / 4)";return zM.jsx(f.xr,{"aria-label":"Media list",ref:n,style:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(max(250px, ${i}), 1fr))`,gridTemplateRows:"1fr 1fr 1fr ",gap:16,padding:2,paddingBottom:16,position:"relative"},onScrollToBottom:r,threshold:500,children:t})}function GS(e){let{children:t,hasSelectedMedia:n}=e;return zM.jsx(f.xu,{overflow:"hidden",gridColumn:"2 / -1",gridRow:"1 / -1",children:zM.jsx(f.xr,{style:{display:"grid",height:"100%"},children:zM.jsx(f.xu,{flexGrow:1,borderRadius:{topRight:8,topLeft:8},borderStyle:n?"solid":"dashed",border:{top:!0,right:!0,left:!0,bottom:!1},minWidth:0,children:t})})})}function Gw(e){let{onFilesUpload:t,isUploading:n,isInitialLoad:r=!1}=e,i=r||n;return zM.jsxs(f.xu,{flexDirection:"column",justifyContent:"center",alignItems:"center",padding:16,gap:16,width:"100%",children:[zM.jsx(f.av,{name:"cloudUpload",lineColor:"purple11",backgroundColor:"purple5",size:"large"}),zM.jsx(f.xu,{flexDirection:"column",gap:4,children:zM.jsxs(f.xv,{align:"center",children:["Select or"," ",zM.jsx(f.KH,{disabled:i,onFilesSelected:t,renderButton:e=>zM.jsx(f.u,{title:zz.warning.uploadWhileUploading.title,content:zz.warning.uploadWhileUploading.description,visible:n,children:zM.jsx(f.xu,{display:"inline-flex",as:"span",children:zM.jsx(f.zx,{disabled:i,onClick:e,invisible:!0,children:"upload"})})})})," ","media."]})}),zM.jsx(f.KH,{disabled:i,onFilesSelected:t,color:"grey",children:"Upload media"})]})}function GI(e){let{actionContainerRef:t}=e;return zM.jsx(Gv,{sidePane:zM.jsx(GO,{}),mediaActions:zM.jsx(GT,{actionContainerRef:t}),mediaToolbar:zM.jsx(f.Od,{color:"grey5",borderRadius:12,children:zM.jsx(Gx,{count:888})}),mediaList:zM.jsx(G_,{})})}function G_(){return zM.jsx(GC,{children:(0,g.w6)(1,24).map(e=>zM.jsx(GR,{},e))})}function GT(e){let{actionContainerRef:t}=e,n=(0,p.NW)();return(0,c.useLayoutEffect)(()=>{n()},[n]),zM.jsx(Gh,{actionContainerRef:t,children:zM.jsxs(f.xu,{width:"100%",gap:16,children:[zM.jsx(f.xu,{width:"100%",flexDirection:"column",children:zM.jsx(f.CR,{placeholder:"Search",maxLength:200,value:"",disabled:!0,onValueChange(){}})}),zM.jsx(f.KH,{disabled:!0,onFilesSelected(){},startIcon:"cloudUpload",color:t?"purple":"grey",size:"large",children:"Upload media"})]})})}function GO(){return zM.jsx(GS,{hasSelectedMedia:!1,children:zM.jsx(Gw,{onFilesUpload(){},isUploading:!1,isInitialLoad:!0})})}function GR(){return zM.jsxs(f.xu,{height:302,width:"100%",flexDirection:"column",padding:16,backgroundColor:"grey1",border:!0,borderStyle:"solid",borderRadius:6,children:[zM.jsx(f.Od,{height:164,width:"100%"}),zM.jsx(f.Od,{height:16,width:"100%",sx:{marginTop:12}}),zM.jsx(f.Od,{height:10,width:100,sx:{marginTop:8}}),zM.jsx(f.Od,{height:1,width:"100%",sx:{marginTop:20,marginBottom:16}}),zM.jsxs(f.xu,{flexDirection:"row",gap:8,children:[zM.jsx(f.Od,{height:24,width:54}),zM.jsx(f.Od,{height:24,width:45}),zM.jsx(f.Od,{height:24,width:62})]})]})}let Gk=(0,c.createContext)({showToast(){}});function GE(e){let{children:t}=e,{isFetchingMedia:n}=Gf(),[r,i]=(0,c.useState)({title:"",seconds:5}),[o,a]=(0,c.useState)(!1),{title:u,action:s,seconds:l=1,icon:d="check"}=r,p=(0,c.useMemo)(()=>({showToast(e){i({seconds:l,...e}),a(!0)}}),[l]);return zM.jsxs(zM.Fragment,{children:[zM.jsx(GF,{open:n}),zM.jsx(Gj,{}),zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"absolute",justifyContent:"center",width:"100%",bottom:72}),open:o,onOpenChange:a,title:u,action:s,seconds:l,icon:d}),zM.jsx(Gk.Provider,{value:p,children:t})]})}function GM(){return(0,c.useContext)(Gk)}function GF(e){let{open:t}=e;return zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"absolute",justifyContent:"center",width:"100%",bottom:72}),loadingIndicator:!0,open:t,title:"Loading more items ...",seconds:1})}function Gj(){let{revalidateMedia:e,isMediaCacheInvalid:t}=Gf(),[n,r]=(0,c.useState)(t);return(0,p.pQ)(t,r),zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"absolute",justifyContent:"center",width:"100%",bottom:72}),open:n,title:"There has been changes to your media library",action:{title:"Update",onClick:e},cancel:{onClick:()=>r(!1)}})}function GU(){let{media:e,mediaTotal:t,tagIds:n}=Gf(),r=zN(),i=zK(),o=i.mediaLibrary&&i.mediaLibraryTagsEnabled;return zM.jsxs(f.xu,{alignItems:"center",gap:16,children:[r.isSelectAllEnabled&&zM.jsx(f.XZ,{onCheckedChange:r.toggleSelectAll,checked:r.selectedCount>0,indeterminate:r.selectedCount!==t,onClick:e=>e.stopPropagation(),disabled:0===e.length}),0!==e.length&&zM.jsx(Gx,{count:t}),o&&zM.jsxs(f.xu,{gap:8,alignItems:"center",children:[zM.jsx(f.xv,{children:"Filter:"}),zM.jsx(GL,{}),n.length>0&&zM.jsx(f.SV,{children:zM.jsx(c.Suspense,{children:zM.jsx(GK,{})})})]})]})}function GK(){let{tagIds:e,onTagIdsChange:t}=Gf(),{tags:n}=HH(),r=(0,c.useMemo)(()=>(0,b.vM)(n,e=>e.id),[n]);return zM.jsx(zM.Fragment,{children:e.map(n=>{var i;let o=null==(i=r.get(n))?void 0:i[0];return o?zM.jsx(f.Ct,{title:o.name,size:"medium",color:"purple",onClose:()=>(function(n){let r=e.filter(e=>e!==n.id);t(r)})(o),selected:!0},o.id):null})})}function GL(){let{setTagManagerOpen:e,tagIds:t,onTagIdsChange:n}=Gf(),[r,i]=(0,c.useState)(""),[o,a]=(0,c.useState)(!1);return zM.jsxs(f.h_,{open:o,onOpenChange:function(e){a(e),e||i("")},children:[zM.jsx(f.$F,{children:zM.jsx(f.zx,{startIcon:"label",endIcon:"arrowDropDown",size:"small",color:"grey",children:"Tags"})}),zM.jsx(f.AW,{minWidth:256,align:"start",border:!1,childrenFocusScope:!0,children:zM.jsxs(f.BC,{variant:"attached",children:[zM.jsx(f.Ie,{value:r,onValueChange:i,placeholder:"Search for a tag",autoFocus:!0}),zM.jsx(f.KV,{children:zM.jsx(f.SV,{renderError:()=>zM.jsx(f.xv,{color:"grey9",variant:"small",sx:{marginBlock:8,marginInline:8},children:"Error getting tags"}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(f.xu,{padding:8,flexDirection:"column",gap:8,children:(0,g.w6)(1,6).map(e=>zM.jsx(f.Od,{height:24,width:85},e))}),children:zM.jsx(GB,{searchTerm:r,setSearchTerm:i,onTagToggle:function(e){let r=t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id];n(r),a(!1)}})})})}),zM.jsx(f.De,{children:zM.jsx(f.zx,{invisible:!0,startIcon:"edit",textWeight:"normal",color:"dark",onClick:function(){a(!1),e(!0)},children:"Manage tags"})})]})})]})}function GB(e){let{onTagToggle:t,searchTerm:n}=e,{tagIds:r}=Gf(),{tags:i}=HH(),o=(0,c.useMemo)(()=>{let e=n.toLowerCase();return i.filter(t=>t.name.toLowerCase().includes(e))},[i,n]);return zM.jsxs(zM.Fragment,{children:[!o.length&&zM.jsx(f.xv,{color:"grey9",variant:"small",sx:{marginBlock:8,marginInline:8},children:"No tags found"}),o.map((e,n)=>{let i=r.includes(e.id);return zM.jsx(f.c8,{value:e.id,onCheckedChange:()=>t(e),checked:i,children:zM.jsx(f.Ct,{title:e.name,color:"purple",sx:{marginLeft:8,marginBottom:n===o.length-1?8:4,marginTop:0===n?8:4},size:"medium"})},e.id)})]})}function GP(){let{media:e}=Gf(),t=zN();return e.filter(({id:e})=>t.isSelected(e))}function GW(){let[e,t]=(0,c.useState)(!1),n=GP(),r=zN(),i=(0,c.useMemo)(()=>n.some(({id:e})=>e.startsWith("temp")),[n]),[o]=n;return o?r.selectedCount>1?zM.jsxs(f.xu,{gap:8,alignItems:"center",children:[zM.jsxs(f.xv,{variant:"emphasized",noWrap:!0,sx:{flexGrow:1},children:[r.selectedCount," media selected"]}),zM.jsx(f.u,{content:"Open all selected media in new tabs",children:zM.jsx(f.hU,{icon:"openInFull",variant:"solid",size:"small",onClick:()=>n.forEach(e=>window.open(e.url,"_blank"))})}),zM.jsx(f.u,{content:"Remove selected media",children:zM.jsx(f.hU,{icon:"delete",variant:"solid",color:"tomato",size:"small",hiddenLabel:"Remove media",onClick:()=>t(!0),disabled:i})}),zM.jsx(GD,{open:e,onOpenChange:t,media:n})]}):zM.jsxs(f.xu,{gap:8,alignItems:"center",children:[zM.jsx(f.xv,{variant:"emphasized",noWrap:!0,sx:{flexGrow:1},children:o.filename}),zM.jsxs(f.xu,{gap:8,children:[zM.jsx(f.u,{content:"Open media in new tab",children:zM.jsx(f.hU,{icon:"openInFull",variant:"solid",size:"small",hiddenLabel:"Open media in new tab",onClick:()=>window.open(o.url,"_blank"),disabled:i})}),zM.jsx(f.u,{content:"Copy media URL",children:zM.jsx(f.hU,{icon:"link",variant:"solid",size:"small",hiddenLabel:"Copy media URL",onClick:()=>navigator.clipboard.writeText(o.url),disabled:i})}),zM.jsx(f.u,{content:"Remove media",children:zM.jsx(f.hU,{icon:"delete",variant:"solid",color:"tomato",size:"small",hiddenLabel:"Remove media",onClick:()=>t(!0),disabled:i})}),zM.jsx(GD,{open:e,onOpenChange:t,media:o})]})]}):null}function GD(e){let{open:t,onOpenChange:n,media:r}=e,i=zK(),{showAlert:o}=(0,f.VY)(),{deleteMedia:a}=Gf(),u=zN(),[s,l]=(0,c.useState)(!1),d=Array.isArray(r),p=d?"these items":"this item";return zM.jsxs(f.Vq,{onOpenChange:n,open:t,size:"small",children:[zM.jsx(f.fK,{icon:"alert",title:`Remove ${p} from your media library?`}),zM.jsx(f.cZ,{children:zM.jsx(f.xu,{padding:16,children:zM.jsxs(f.xv,{children:["You are about to delete ",p,": \xa0",d?zM.jsx(GN,{media:r}):zM.jsx("b",{children:r.filename})]})})}),zM.jsx(f.kX,{asFooter:!0,ok:{onClick:function(){l(!0);let e=u.getSelectionState().selectedIds;(function(e){let{ids:t,config:n}=e;if(!n.mediaLibrary)throw Error("Media Library not configured.");if(0===t.length)throw Error("No ids provided during media deletion");let{assetsApiBaseUrl:r,repository:i,authStrategy:o}=n;if(1===t.length){let[a]=t;return(0,y.WY)(new URL(`assets/${a}`,r),{headers:{repository:i},method:"DELETE",credentials:(0,y.xb)(o),okType:HE.unknown()})}return(0,y.WY)(new URL("assets/bulk-delete",r),{headers:{repository:i},method:"POST",credentials:(0,y.xb)(o),okType:HE.unknown(),body:{ids:t}})})({ids:e,config:i}).then(()=>{n(!1),a(e),u.clearSelection()}).catch(()=>{n(!1),o({title:"Error",subtitle:`Something went wrong when removing ${p}.`})}).finally(()=>{l(!1)})},text:`Yes, I want to remove ${p}`,color:"tomato",loading:s},cancel:{text:"Cancel"}})]})}function GN({media:e}){let t=e.slice(0,15),n=e.length>15,r=n?e.length-15:0;return zM.jsxs("ul",{children:[t.map((e,t)=>zM.jsx("li",{children:zM.jsx("b",{children:e.filename})},t)),n&&zM.jsxs("span",{children:[zM.jsx("br",{}),"And ",zM.jsx("b",{children:r})," more ",1===r?"item":"items","..."]})]})}function Gq(){var e;let t=GP(),{uploadingFiles:n}=Gf(),[r]=t;if(!r)return null;if(2===t.length)return zM.jsx(GQ,{children:t.map((e,t)=>zM.jsx("div",{style:{position:"absolute",transform:0===t?"translateX(25%) rotate(15deg) ":"translateX(-25%) rotate(-15deg) "},children:zM.jsx(GV,{media:e})},e.id))});if(t.length>2)return zM.jsx(GQ,{children:t.slice(-4).map((e,t)=>zM.jsx("div",{style:{position:"absolute",paddingRight:16*t},children:zM.jsx(GV,{media:e})},e.id))});let i=null==(e=n.find(e=>e.id===r.id))?void 0:e.status,o=r.kind.startsWith("image");return zM.jsx(f.xu,{flexDirection:"column",children:zM.jsx(f.hM,{children:zM.jsx(GQ,{uploadStatus:i,hasImage:o,children:o?zM.jsx(f.Ee,{src:r.url,alt:r.alt,sizing:"contain"}):zM.jsx(f.Sp,{extension:r.extension,filename:r.filename})})})})}function GQ(e){let{children:t,uploadStatus:n,hasImage:r}=e;return zM.jsxs(f.xu,{flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",height:200,width:"100%",backgroundColor:r?"transparent":"purple2",children:[t,n&&zM.jsx(f.xu,{position:"absolute",backgroundColor:"greyAlpha1",width:"100%",height:"100%",padding:{inline:16},justifyContent:"end",flexDirection:"column",children:zM.jsx(f.wI,{status:n})})]})}function GV(e){let{media:t}=e;return zM.jsx(f.xu,{width:111,height:152,children:"image"===t.kind?zM.jsx(f.Ee,{borderRadius:8,src:t.url,alt:t.alt,sizing:"cover"}):zM.jsx(f.Sp,{extension:t.extension,filename:t.filename})})}let Gz="__MAIN_THUMBNAIL__";function GY(e,t,n){let r=e.name===Gz?void 0:e.name,i;return[r,(i=t?(0,h.$)(n)?[n.width,n.height]:(0,h.$)(e.width)||(0,h.$)(e.height)?[e.width??void 0,e.height??void 0]:[t.origin.width,t.origin.height]:void 0)?`${i[0]??"auto"}x${i[1]??"auto"}px`:void 0]}function GH(e){let t=new URL(e);return t.searchParams.delete("q"),t.searchParams.set("w","800"),t.searchParams.set("h","800"),t.searchParams.set("auto","compress,format"),t.searchParams.set("fit","max"),t.toString()}function GG(e){return null!=e&&e.url?GH(e.url):void 0}function GZ(e,t){var n;let{width:r,height:i,rect:o}=function(e,t){let[n,r]=function(e,t){let{width:n,height:r}=t??{};return n&&r?[n,r]:n?[n,Math.round(e.height*(n/e.width))]:r?[Math.round(e.width*(r/e.height)),r]:[e.width,e.height]}(e,t),i=Math.max(n/e.width,r/e.height),o=Math.round((e.width-n/i)/2),a=Math.round((e.height-r/i)/2);return{width:n,height:r,rect:{x:o,y:a,width:Math.round(n/i),height:Math.round(r/i)}}}({...e,width:(null==e?void 0:e.width)??2e3,height:(null==e?void 0:e.height)??2e3},t),a=!!(null!=t&&t.width||null!=t&&t.height);return{url:function(e,t,n,r,i){let o=new URL(e);if(i){let{x:a,y:u,width:s,height:l}=t;o.searchParams.set("rect",[a,u,s,l].join(",")),o.searchParams.set("w",n.toString()),o.searchParams.set("h",r.toString())}return o.toString()}(e.url,o,r,i,a),alt:e.alt,..."kind"in e&&"extension"in e?{credits:e.credits}:{},origin:{id:e.id,url:e.url,width:e.width??2e3,height:e.height??2e3},width:r,height:i,edit:{background:"transparent",zoom:1,crop:{x:o.x,y:o.y}}}}function GJ(e){if(!e)return"";let{filename:t,extension:n}=e;if(!n)return t;let r=RegExp(`\\.${n}$`);return t.replace(r,"")}function G$(e){let{tags:t,toggleAssetTag:n,getTagsLabel:r}=e,{setTagManagerOpen:i}=Gf(),{showToast:o}=GM(),{showAlert:a}=(0,f.VY)(),[u,s]=(0,c.useState)("");async function l(e,t){s("");try{await n(e,t),o({title:"Media tags were updated",seconds:3})}catch{a({title:"Error",subtitle:"Something went wrong when updating media tags"})}}return zM.jsxs(f.xu,{flexDirection:"column",children:[zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsx(f.xv,{color:"grey12",variant:"bold",children:r()}),zM.jsx(f.zx,{startIcon:"edit",invisible:!0,color:"dark",onClick:()=>i(!0),children:"Manage tags"})]}),zM.jsxs(f.BC,{sx:{marginTop:4,marginBottom:8},children:[zM.jsx(GX,{searchTerm:u,setSearchTerm:s}),zM.jsx(f.KV,{children:zM.jsx(f.SV,{renderError:()=>zM.jsx(f.xv,{color:"grey9",variant:"small",sx:{marginBlock:8,marginInline:8},children:"Error getting tags"}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(f.xu,{padding:8,flexDirection:"column",gap:8,children:(0,g.w6)(1,6).map(e=>zM.jsx(f.Od,{height:24,width:85},e))}),children:zM.jsx(G0,{searchTerm:u,assignedTags:t,onToggleAssetTag:l})})})})]}),zM.jsx(f.xu,{flexDirection:"column",alignItems:"flex-start",gap:8,children:t.map(e=>zM.jsx(f.Ct,{title:e.name,size:"medium",color:"purple",selected:!0,onClose:()=>l(e,"remove")},e.id))})]})}function GX(e){let{searchTerm:t,setSearchTerm:n}=e,r=(0,c.useRef)(null),{openMediaSection:i,setOpenMediaSection:o}=Gf();return(0,c.useEffect)(()=>{var e;"tags"===i&&(null==(e=r.current)||e.focus(),o(void 0))},[i,o]),zM.jsx(f.Ie,{value:t,onValueChange:n,placeholder:"Add or create a new tag",ref:r})}function G0(e){let{searchTerm:t,assignedTags:n,onToggleAssetTag:r}=e,[i]=GP(),o=zK(),{showAlert:a}=(0,f.VY)(),{tags:u}=HH(),s=(0,c.useMemo)(()=>{let e=t.toLowerCase();return u.filter(t=>t.name.toLowerCase().includes(e))},[u,t]),l=HZ.safeParse(t).success&&u.every(e=>e.name!==t);async function d(){if(!t||!i)return;let e;try{e=await function(e){let{name:t,config:n}=e;n.mediaLibrary||zB("mediaLibrary");let{assetsApiBaseUrl:r,repository:i,authStrategy:o}=n;return(0,y.WY)(new URL("tags",r),{headers:{repository:i},body:{name:t},method:"POST",credentials:(0,y.xb)(o),okType:HJ})}({name:t,config:o}),HX(t=>[e,...t])}catch{a({title:"Error",subtitle:`Something went wrong when creating the tag ${t}`});return}await r(e,"add")}return i?zM.jsxs(zM.Fragment,{children:[!s.length&&zM.jsx(f.xv,{color:"grey9",variant:"small",sx:{marginBlock:8,marginInline:8},children:"No tags found"}),s.map((e,t)=>zM.jsx(f.c8,{value:e.id,onCheckedChange:t=>r(e,t?"add":"remove"),checked:n.some(t=>t.id===e.id),children:zM.jsx(f.Ct,{title:e.name,color:"purple",size:"medium",sx:{marginInline:8,marginBottom:t===s.length-1?8:4,marginTop:0===t?8:4}})},e.id)),l&&zM.jsx(f.c8,{value:"new",onCheckedChange:d,children:zM.jsxs(f.xu,{padding:8,flexDirection:"row",alignItems:"center",gap:4,children:[zM.jsx(f.I5,{name:"add",size:"small",color:"grey11"}),zM.jsxs(f.xv,{color:"grey12",children:['Create tag "',t,'"']})]})})]}):null}function G1(e){let{selectedMedia:t}=e,n=zK(),r=(0,c.useMemo)(()=>(function(e){let t=e.length,n={},r=[];return e.forEach(e=>{e.tags.forEach(e=>{n[e.id]||(n[e.id]=0,r.push(e)),n[e.id]++})}),r.filter(e=>n[e.id]===t)})(t),[t]);async function i(e,r){let i="remove"===r,o=t.map(e=>e.id),a=[];H8(t=>(a=t,t.map(t=>{var n,r;return o.includes(t.id)?i?function(e,t){let n=e.tags.filter(e=>e.id!==t.id);return{...e,tags:n}}(t,e):(n=t,r=e,n.tags.some(({id:e})=>e===r.id)?n:{...n,tags:[...n.tags,r]}):t})));try{await function(e){let{tagId:t,assetIds:n,config:r,operation:i}=e;if(!r.mediaLibrary)throw Error("Media Library not configured.");let{assetsApiBaseUrl:o,repository:a,authStrategy:u}=r;return(0,y.WY)(new URL(`tags/${t}/assets`,o),{headers:{repository:a},body:{assetIds:n},method:"add"===i?"POST":"DELETE",credentials:(0,y.xb)(u),okType:HE.unknown()})}({tagId:e.id,assetIds:o,operation:i?"remove":"add",config:n});let u=t.length*(i?-1:1);HX(t=>t.map(t=>t.id===e.id?{...t,count:t.count+u}:t))}catch(s){throw H8(()=>a),s}}return zM.jsx(G$,{tags:r,getTagsLabel:function(){let e=r.length;return e>1?`${e} tags in common`:1===e?"1 tag in common":"Common tags"},toggleAssetTag:i})}function G2(e){let{selectedMedia:t}=e,n=t.tags,r=zK(),{updateMedia:i}=Gf();async function o(e,n){let o=t.tags,a="remove"===n,u=a?o.filter(t=>t.id!==e.id):[...o,e];i(t.id,{tags:u});try{await function(e){let{mediaId:t,config:n,tags:r}=e;if(!n.mediaLibrary)throw Error("Media Library not configured.");let{assetsApiBaseUrl:i,repository:o,authStrategy:a}=n;return(0,y.WY)(new URL(`assets/${t}`,i),{headers:{repository:o},body:{tags:r},method:"PATCH",credentials:(0,y.xb)(a),okType:H1})}({mediaId:t.id,config:r,tags:u.map(e=>e.id)}),HX(t=>t.map(t=>t.id===e.id?{...t,count:t.count+(a?-1:1)}:t))}catch(s){throw i(t.id,{tags:o}),s}}return zM.jsx(G$,{tags:n,getTagsLabel:function(){let e=n.length;return e>1?`${e} tags`:1===e?"1 tag":"Tags"},toggleAssetTag:o})}function G6(){let[e,t]=(0,c.useState)("description");if(1!==GP().length)return zM.jsx(G4,{});let n="description"===e,r="more-info"===e;return zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.xu,{border:!0,borderStyle:"solid",borderRadius:8,backgroundColor:"grey2",children:[zM.jsx(f.OK,{title:"Description",selected:n,onSelect:()=>t("description"),outline:n,background:n?void 0:"transparent",sx:{flexGrow:1,flexBasis:0}}),zM.jsx(f.OK,{title:"More info",selected:r,onSelect:()=>t("more-info"),outline:r,background:r?void 0:"transparent",sx:{flexGrow:1,flexBasis:0}})]}),zM.jsx(G5,{tab:e})]})}function G5(e){let{tab:t}=e;switch(t){case"description":return zM.jsx(G3,{});case"more-info":return zM.jsx(G9,{})}}function G3(){let{title:e,alt:t,onBlur:n,isUploading:r,selectedMedia:i}=G7(),o=zK(),a=o.mediaLibrary&&o.mediaLibraryTagsEnabled;if(!i)return null;let{extension:u}=i;return zM.jsxs(f.xu,{flexDirection:"column",gap:16,children:[zM.jsx(f.yt,{value:e.value,onValueChange:e.set,label:"Media title",placeholder:"Media title",onBlur:n,disabled:r,suffix:u?`.${u}`:void 0}),zM.jsx(f.Wi,{label:"Alternative text",children:zM.jsx(f.f$,{content:t.displayValue,contentVersion:t.version,readOnly:r,placeholder:"A short description of the media for accessibility",multiline:!0,decorations:{em:"highlight"},onChange:t.onChange,onBlur:n})}),a&&!r&&zM.jsx(G2,{selectedMedia:i})]})}function G9(){let{credits:e,notes:t,onBlur:n,isUploading:r,selectedMedia:i}=G7();if(!i)return null;let o=function(e){let{width:t,height:n,last_modified:r,size:i,extension:o}=e,a=t&&n,u={label:"Date",value:(0,A._L)(new Date(r))},s={label:"File size",value:(0,v.td)(i)},l=a?{label:"Dimensions",value:`${t}x${n}`}:void 0,c=a?{label:"Ratio",value:((t??0)/(n??0)).toFixed(1)}:void 0,d=o?{label:"Extension",value:o.toUpperCase()}:void 0;return[u,s,l,c,d].filter(h.$)}(i);return zM.jsxs(f.xu,{gap:8,flexDirection:"column",children:[o.map(e=>zM.jsxs(f.xu,{gap:8,children:[zM.jsxs(f.xv,{color:"grey11",children:[e.label,":"]}),zM.jsx(f.xv,{children:e.value})]},e.label)),zM.jsx(f.Wi,{label:"Copyright",children:zM.jsx(f.f$,{content:e.displayValue,contentVersion:e.version,readOnly:r,placeholder:"Media copyrights or credits",multiline:!0,decorations:{em:"highlight"},onChange:e.onChange,onBlur:n})}),zM.jsx(f.Wi,{label:"Private notes",children:zM.jsx(f.f$,{content:t.displayValue,contentVersion:t.version,readOnly:r,placeholder:"Private notes are never shared publicly",multiline:!0,decorations:{em:"highlight"},onChange:t.onChange,onBlur:n})})]})}function G4(){let e=GP(),{uploadingFiles:t}=Gf(),n=zK(),r=(0,c.useMemo)(()=>t.some(t=>e.some(e=>t.id===e.id)&&"success"!==t.status),[e,t]),i=n.mediaLibrary&&n.mediaLibraryTagsEnabled;return zM.jsx(zM.Fragment,{children:i&&!r&&zM.jsx(G1,{selectedMedia:e})})}function G7(){let[e]=GP(),{updateMedia:t,uploadingFiles:n}=Gf(),r=zK(),{showToast:i}=GM(),o=(null==e?void 0:e.id)??"",a=G8(e,"alt"),u=G8(e,"notes"),s=G8(e,"credits"),l=G8(e,"filename",GJ),c=n.some(t=>t.id===(null==e?void 0:e.id)&&"success"!==t.status);return{selectedMedia:e,onBlur:function(){if(!e||!l.changed&&!a.changed&&!s.changed&&!u.changed)return;let{extension:n,search_highlight:c}=e,d=n?`${l.value}.${n}`:l.value;t(o,{filename:d,alt:a.value,credits:s.value,notes:u.value,search_highlight:{alt:a.changed||null==c?void 0:c.alt,credits:s.changed||null==c?void 0:c.credits,filename:l.changed||null==c?void 0:c.filename,notes:u.changed||null==c?void 0:c.notes}}),(function(e){let{id:t,config:n,metadata:r}=e;if(!n.mediaLibrary)throw Error("Media Library not configured.");let{assetsApiBaseUrl:i,repository:o,authStrategy:a}=n;return(0,y.WY)(new URL(`assets/${t}`,i),{headers:{repository:o},body:{...r},method:"PATCH",credentials:(0,y.xb)(a),okType:H1})})({id:o,config:r,metadata:{filename:d,alt:a.value,credits:s.value,notes:u.value}}).then(()=>{i({title:"Media metadata has been saved.",seconds:3})}).catch(e=>{console.error(e)})},isUploading:c,title:l,alt:a,credits:s,notes:u,extension:null==e?void 0:e.extension}}function G8(e,t,n=e=>null==e?void 0:e[t]){var r,i;let o=n(e)??"",[a,u]=(0,c.useState)(o);(0,p.pQ)(null==e?void 0:e.id,()=>u(o));let s=null==(r=null==e?void 0:e.search_highlight)?void 0:r[t];return{value:a,set:u,displayValue:(i=s??a,(null==i?void 0:i.replace(/\n/g,"<br>"))??""),onChange:function(e){let{from:t,to:n}=e.state.selection;e.commands.selectAll(),e.commands.unsetAllMarks(),e.commands.setTextSelection({from:t,to:n}),u(e.getText())},version:`${(null==e?void 0:e.id)??""}_${!!s}`,changed:a!==o}}function Ze(){let{setTagManagerOpen:e}=Gf(),[t,n]=(0,c.useState)("");return zM.jsxs(f.xu,{gap:20,flexDirection:"column",height:"100%",children:[zM.jsxs(f.xu,{alignItems:"center",gap:4,children:[zM.jsx(f.hU,{icon:"close",size:"small",hasPadding:!1,onClick:()=>e(!1)}),zM.jsx(f.xv,{variant:"bold",children:"Tags management"})]}),zM.jsxs(f.xu,{gap:16,flexDirection:"column",height:"100%",children:[zM.jsx(f.CR,{value:t,onValueChange:n,placeholder:"Search for tags",endAdornment:!1,autoFocus:!0}),zM.jsx(f.SV,{renderError:()=>zM.jsx(Zi,{}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(Zo,{}),children:zM.jsx(Zt,{searchTerm:t})})})]})]})}function Zt(e){let{searchTerm:t}=e,{tags:n}=HH(),r=n.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()));return 0===r.length?zM.jsx(f.xv,{color:"grey9",variant:"small",children:"No tags found"}):zM.jsx(f._M,{ariaLabel:"Tags list",getItemKey:e=>e.id,gap:16,items:r,children:e=>zM.jsx(Zn,{tag:e})})}function Zn(e){let{tag:t}=e,[n,r]=(0,c.useState)(!1),i=zK(),{showAlert:o}=(0,f.VY)(),{showToast:a}=(0,f.pm)(),{tags:u}=HH();async function s(e){if(!HZ.safeParse(e).success){o({title:"Error",subtitle:`Failed to rename tag "${t.name}" to "${e}". Tag name must be at least 3 and at maximum 20 characters long.`});return}if(u.some(t=>t.name===e)){o({title:"Error",subtitle:`Failed to rename tag "${t.name}" to "${e}". Tag with name "${e}" already exists.`});return}try{await function(e){let{id:t,name:n,config:r}=e;r.mediaLibrary||zB("mediaLibrary");let{assetsApiBaseUrl:i,repository:o,authStrategy:a}=r;return(0,y.WY)(new URL(`tags/${t}`,i),{headers:{repository:o},method:"PATCH",credentials:(0,y.xb)(a),body:{name:n},okType:HE.unknown()})}({id:t.id,name:e,config:i}),HX(n=>n.map(n=>n.id===t.id?{...n,name:e}:n)),H8(n=>n.map(n=>{if(-1!==n.tags.findIndex(e=>e.id===t.id)){let r=n.tags.map(n=>n.id===t.id?{...n,name:e}:n);return{...n,tags:r}}return n})),a({title:`Tag "${t.name}" renamed to "${e}"`,seconds:3})}catch{o({title:"Error",subtitle:"Something went wrong when renaming the tag."})}}return zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsx(f.Ct,{title:t.name,color:"purple",size:"medium",onEdit:s}),zM.jsx(f.zx,{invisible:!0,color:"tomato",textWeight:"normal",onClick:()=>r(!0),children:"Delete"})]}),zM.jsx(Zr,{open:n,onOpenChange:r,tag:t})]})}function Zr(e){let{open:t,onOpenChange:n,tag:r}=e,{id:i,name:o,count:a}=r,u=zK(),{showAlert:s}=(0,f.VY)(),[l,d]=(0,c.useState)(!1);async function p(){d(!0);try{await function(e){let{id:t,config:n}=e;n.mediaLibrary||zB("mediaLibrary");let{assetsApiBaseUrl:r,repository:i,authStrategy:o}=n;return(0,y.WY)(new URL(`tags/${t}`,r),{headers:{repository:i},method:"DELETE",credentials:(0,y.xb)(o),okType:HE.unknown()})}({id:i,config:u}),HX(e=>e.filter(e=>e.id!==i)),H8(e=>e.map(e=>{if(-1!==e.tags.findIndex(e=>e.id===i)){let t=e.tags.filter(e=>e.id!==i);return{...e,tags:t}}return e}))}catch{s({title:"Error",subtitle:"Something went wrong when removing the tag."})}finally{d(!1),n(!1)}}return zM.jsxs(f.Vq,{onOpenChange:n,open:t,size:"small",children:[zM.jsx(f.fK,{title:`This tag is being used on ${a} media item${1===a?"":"s"}`}),zM.jsx(f.cZ,{padding:16,children:zM.jsxs(f.xv,{children:["You are about to delete the tag name ",zM.jsx("b",{children:o}),"."," ",a>0&&`This tag is being
|
|
6
6
|
used on ${a} media item${1===a?"":"s"} and will be deleted
|
|
7
|
-
from ${1===a?"it":"them"}.`]})}),zM.jsx(f.kX,{asFooter:!0,ok:{onClick:p,text:"Yes, I want to delete",color:"tomato",loading:l},cancel:{text:"Cancel"}})]})}function Zi(){let e=(0,c.useContext)(m.Nk);return zM.jsx(f.xu,{flexDirection:"column",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:"We couldn't load your media tags."}),zM.jsx(f.Qj,{children:zM.jsx(f.zx,{onClick:null==e?void 0:e.reset,size:"medium",children:"Try again"})})]})})}function Zo(){return zM.jsx(f.xu,{flexDirection:"column",gap:16,children:(0,g.w6)(1,6).map(e=>zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsx(f.Od,{height:24,width:85}),zM.jsx(f.Od,{height:24,width:45})]},e))})}function Za(){let e=GP(),{onFilesUpload:t,isUploading:n,tagManagerOpen:r}=Gf();return 0===e.length&&!1===r?zM.jsx(Gw,{onFilesUpload:t,isUploading:n}):zM.jsx(f.xu,{flexDirection:"column",backgroundColor:"grey1",width:"100%",padding:16,gap:16,borderRadius:{topLeft:8,topRight:8},children:r?zM.jsx(Ze,{}):zM.jsxs(zM.Fragment,{children:[zM.jsx(GW,{}),zM.jsx(Gq,{}),zM.jsx(G6,{})]})})}function Zu(){let e=zN();return zM.jsx(GS,{hasSelectedMedia:0!==e.selectedCount,children:zM.jsx(Za,{})})}function Zs(e){var t;let{assetType:n,onSelectedChange:r,actionContainerRef:i}=e,o=zK(),a=(t=o,"assetsApiBaseUrl"in t&&t.assetsApiBaseUrl.host.includes("wroom-beta.com"));return zM.jsx(f.SV,{renderError:()=>zM.jsx(Gy,{}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(GI,{actionContainerRef:i}),children:zM.jsx(zD,{isSelectAllEnabled:a,children:zM.jsx(Gd,{assetType:n,actionContainerRef:i,onSelectedChange:r,children:zM.jsx(Gm,{children:zM.jsx(Zl,{})})})})})})}function Zl(){let{media:e}=Gf();return zM.jsx(GE,{children:zM.jsx(Gv,{sidePane:zM.jsx(Zu,{}),mediaActions:zM.jsx(Gp,{}),mediaToolbar:zM.jsx(GU,{}),mediaList:0===e.length?zM.jsx(zV,{}):zM.jsx(Gb,{})})})}(0,c.createContext)({editedUID:{current:!1},onEditUID(){}});let Zc=(0,c.createContext)({update(){}});function Zd(e){var t;return(null==(t=e.config)?void 0:t.label)??("Boolean"===e.type||"Separator"===e.type?void 0:e.fieldset)??e.type}function Zf(e,t){var n,r,i;return"Boolean"===e.type?(t?null==(n=e.config)?void 0:n.placeholder_true:null==(r=e.config)?void 0:r.placeholder_false)||"...":(null==(i=e.config)?void 0:i.placeholder)||"..."}function Zp(e){var t;let{content:n,field:r,id:i,readOnly:o,onContentChange:a}=e,u=(null==n?void 0:n.value)??(null==(t=r.config)?void 0:t.default_value)??!1;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"biToggle"}),zM.jsx(f.Qy,{htmlFor:i,children:Zd(r)}),zM.jsxs(f.JO,{children:[zM.jsx(f.xu,{padding:4,alignItems:"center",children:zM.jsx(f.xv,{children:Zf(r,u)})}),zM.jsx(f.rs,{id:i,sx:{alignSelf:"center",marginLeft:"auto",marginRight:12},checked:u,onCheckedChange(e){var t;o||a((t=e,{__TYPE__:"BooleanContent",value:t}))}})]})]})}function ZA(e){let{id:t,field:n,content:r,onContentChange:i}=e;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"colorLens"}),zM.jsx(f.Qy,{id:t,children:Zd(n)}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{padding:{left:4},alignItems:"center",children:zM.jsx(f.TC,{onValueChange(e){var t;return i((t=e,void 0===t?void 0:{__TYPE__:"FieldContent",type:"Color",value:t}))},value:null==r?void 0:r.value,"aria-labelledby":t,placeholder:Zf(n)})})})]})}function Zh(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=null!=i&&i.value?(0,A._O)(i.value):void 0;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"dateRange"}),zM.jsx(f.Qy,{id:t,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{padding:{left:4,right:12},width:"100%",flexDirection:"column",justifyContent:"center",children:zM.jsx(f.Wr,{mode:"date","aria-labelledby":t,disabled:n,value:a,onValueChange:e=>o(function(e){if(e)return{__TYPE__:"FieldContent",type:"Date",value:function(e){let t=`${e.getFullYear()}`.padStart(4,"0"),n=`${e.getMonth()+1}`.padStart(2,"0"),r=`${e.getDate()}`.padStart(2,"0");return`${t}-${n}-${r}`}(e)}}(e))})})})]})}let Zm=(0,c.forwardRef)(function(e,t){return zM.jsx(f.oi,{padding:Zg,...e,ref:t,sx:{...e.sx,alignSelf:"stretch"}})}),Zg={input:{inline:4},adornment:{inline:12}},Zy=({provider:e})=>Zv[e.toLowerCase()]??zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6524_22412)",children:zM.jsx("path",{d:"M7.99992 1.33333C4.31992 1.33333 1.33325 4.32 1.33325 8C1.33325 11.68 4.31992 14.6667 7.99992 14.6667C11.6799 14.6667 14.6666 11.68 14.6666 8C14.6666 4.32 11.6799 1.33333 7.99992 1.33333ZM2.66659 8C2.66659 7.59333 2.71992 7.19333 2.80659 6.81333L5.99325 10V10.6667C5.99325 11.4 6.59325 12 7.32658 12V13.2867C4.70658 12.9533 2.66659 10.7133 2.66659 8ZM11.9266 11.6C11.7533 11.06 11.2599 10.6667 10.6599 10.6667H9.99325V8.66667C9.99325 8.3 9.69325 8 9.32658 8H5.32658V6.66667H6.65992C7.02658 6.66667 7.32658 6.36667 7.32658 6V4.66667H8.65992C9.39325 4.66667 9.99325 4.06667 9.99325 3.33333V3.06C11.9466 3.84667 13.3333 5.76667 13.3333 8C13.3333 9.38667 12.7933 10.6533 11.9266 11.6Z",fill:"#6F6E77"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6524_22412",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),Zv={codepen:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22409)",children:zM.jsx("path",{d:"M15.9879 5.44292C15.9843 5.42352 15.981 5.40413 15.9759 5.38517C15.9726 5.37375 15.9688 5.36298 15.9651 5.35177C15.9597 5.33497 15.9541 5.31816 15.9474 5.30179C15.9427 5.29037 15.9373 5.27938 15.9321 5.26839C15.9248 5.25288 15.9173 5.23758 15.9086 5.22271C15.9026 5.21172 15.8957 5.20138 15.889 5.19082C15.8798 5.1766 15.8703 5.1626 15.8599 5.14902C15.8524 5.13889 15.8446 5.1292 15.8365 5.1195C15.8257 5.10657 15.8141 5.09429 15.8024 5.08223C15.7934 5.07318 15.7843 5.06413 15.7748 5.05529C15.7623 5.04387 15.7494 5.0331 15.7358 5.02276C15.7255 5.01479 15.7154 5.0066 15.7046 4.99927C15.7007 4.99647 15.6973 4.99324 15.6932 4.99065L8.38116 0.115543C8.15039 -0.0385144 7.84939 -0.0385144 7.61863 0.115543L0.306176 4.99044C0.302082 4.99302 0.29885 4.99626 0.294756 4.99906C0.283983 5.0066 0.273856 5.01457 0.263514 5.02254C0.250155 5.0331 0.237011 5.04387 0.224515 5.05486C0.215034 5.06348 0.205985 5.07253 0.19715 5.0818C0.185084 5.09386 0.17388 5.10614 0.162892 5.11907C0.154704 5.12877 0.146947 5.13846 0.139406 5.14924C0.129064 5.16281 0.119583 5.1766 0.110318 5.19104C0.103639 5.20159 0.0969593 5.21194 0.0907108 5.22293C0.0820922 5.23779 0.0745509 5.25309 0.0674405 5.26817C0.0622694 5.27916 0.0566673 5.29037 0.0521425 5.30157C0.0454631 5.31795 0.0396456 5.33475 0.0342589 5.35156C0.030596 5.36276 0.0267177 5.37375 0.0237011 5.38388C0.0187455 5.40284 0.0150825 5.42201 0.0116351 5.44162C0.00969592 5.45153 0.00732581 5.46123 0.00603302 5.47136C0.00215465 5.50109 0 5.53082 0 5.56121V10.4372C0 10.4673 0.00215465 10.4975 0.00646395 10.527C0.00797221 10.5378 0.0107733 10.5464 0.0129279 10.5568C0.0163753 10.5762 0.0193919 10.5955 0.0258558 10.6149C0.0288723 10.6257 0.0323198 10.6365 0.0366291 10.6483C0.0420157 10.6656 0.0474023 10.6828 0.0538662 10.6985C0.058391 10.7093 0.0646395 10.7201 0.0689488 10.7309C0.0760591 10.7459 0.0840314 10.761 0.09265 10.7768C0.098683 10.7875 0.105578 10.7983 0.112042 10.8082C0.121307 10.8233 0.131434 10.8362 0.142207 10.8491C0.149748 10.8599 0.157289 10.8685 0.165908 10.8789C0.176897 10.8918 0.187455 10.9047 0.200382 10.9162C0.209217 10.9248 0.21762 10.9355 0.228393 10.942C0.24089 10.9528 0.254249 10.9636 0.267177 10.9748C0.277519 10.9834 0.288723 10.9898 0.297342 10.9982C0.301436 11.0004 0.303806 11.0047 0.308115 11.0067L7.61863 15.8841C7.73412 15.9617 7.86641 16.0005 8 15.9998C8.13359 15.9992 8.26588 15.9611 8.38137 15.8841L15.6938 11.0092C15.6979 11.0067 15.7014 11.0036 15.7052 11.0008C15.716 10.9933 15.7261 10.9853 15.7365 10.9773C15.7498 10.9668 15.763 10.9558 15.7755 10.9446C15.785 10.9362 15.794 10.9269 15.8031 10.9179C15.8149 10.9058 15.8263 10.8935 15.8371 10.8806C15.8453 10.8709 15.8531 10.8612 15.8606 10.8509C15.8709 10.8373 15.8804 10.8233 15.8897 10.8091C15.8964 10.7987 15.903 10.7882 15.9093 10.7776C15.9179 10.7625 15.9254 10.7472 15.9328 10.7317C15.9379 10.7207 15.9433 10.7097 15.9481 10.6985C15.9548 10.6819 15.9604 10.6651 15.9657 10.6483C15.9694 10.6371 15.9733 10.6261 15.9765 10.6149C15.9815 10.596 15.9849 10.5766 15.9886 10.5572C15.9903 10.5473 15.9929 10.5376 15.994 10.5275C15.9978 10.4977 16 10.468 16 10.4376V5.5625C16 5.53212 15.9976 5.50238 15.994 5.47265C15.9922 5.46209 15.989 5.45347 15.9869 5.44292H15.9879ZM7.99978 9.62638L5.56826 8.00005L7.99978 6.37351L10.4315 8.00005L7.99978 9.62638ZM7.31245 5.17919L4.33171 7.17288L1.92561 5.56336L7.31245 1.97221V5.17919ZM3.09515 7.99984L1.37531 9.15021V6.84947L3.09515 7.99984ZM4.33171 8.82765L7.31245 10.8211V14.0281L1.92561 10.4365L4.33171 8.82722V8.82765ZM8.68733 10.8207L11.6681 8.82722L14.0744 10.4365L8.68733 14.0277V10.8207ZM12.9046 8.00027L14.6247 6.84969V9.15064L12.9046 7.99984V8.00027ZM11.6681 7.17288L8.68733 5.1794V1.97221L14.0744 5.56336L11.6681 7.17288Z",fill:"black"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22409",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),codesandbox:zM.jsxs("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22406)",children:zM.jsx("path",{d:"M6.24312 14.1129V8.35021L1.28724 5.49888V8.78388L3.55732 10.0999V12.5702L6.24312 14.1129ZM7.53036 14.1468L10.2658 12.571V10.0422L12.5506 8.71812V5.47426L7.53036 8.3727V14.1468ZM11.8904 4.36906L9.25164 2.83995L6.93472 4.18436L4.60022 2.8386L1.93795 4.38817L6.90626 7.24665L11.8904 4.36906ZM0 12.0115V4.02675L6.91821 0L13.8378 4.00984V11.9988L6.91805 15.985L0 12.0115Z",fill:"black"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22406",children:zM.jsx("rect",{width:"13.8378",height:"16",fill:"white"})})})]}),dailymotion:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22345)",children:[zM.jsx("path",{d:"M16 0H0V16H16V0Z",fill:"white"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.73038 10.3003C8.40789 10.6268 8.00377 10.7901 7.51804 10.7901C7.04025 10.7901 6.64411 10.6308 6.32956 10.3122C6.01503 9.99367 5.85776 9.58351 5.85776 9.08176C5.85776 8.60389 6.01901 8.20766 6.3415 7.89306C6.66401 7.57847 7.06016 7.42118 7.52998 7.42118C7.84849 7.42118 8.13715 7.49484 8.39594 7.64219C8.65474 7.78953 8.8558 7.99063 8.99913 8.2455C9.14246 8.50034 9.21412 8.77908 9.21412 9.08176C9.21412 9.56757 9.05287 9.97376 8.73038 10.3003ZM9.10662 3.58632V6.35792C8.82791 6.07918 8.53131 5.87808 8.21678 5.75463C7.90223 5.63118 7.54988 5.56946 7.1597 5.56946C6.53062 5.56946 5.96527 5.72476 5.4636 6.03538C4.96193 6.34597 4.57176 6.77007 4.29305 7.30768C4.01435 7.84528 3.875 8.44062 3.875 9.09369C3.875 9.76269 4.01236 10.366 4.28708 10.9036C4.5618 11.4412 4.95197 11.8653 5.45763 12.1759C5.96328 12.4865 6.54258 12.6418 7.19553 12.6418C8.14312 12.6418 8.80403 12.3312 9.17831 11.71H9.20218V12.5595H11.0894V3.15625L9.10662 3.58632Z",fill:"#232323"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22345",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),flickr:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("rect",{width:"16",height:"16",fill:"white"}),zM.jsxs("g",{clipPath:"url(#clip0_6523_22379)",children:[zM.jsx("path",{d:"M8.43286 7.78387C8.43286 9.321 9.67925 10.5674 11.2166 10.5674C12.7538 10.5674 13.9999 9.321 13.9999 7.78387C13.9999 6.24675 12.7538 5.00061 11.2166 5.00061C9.67925 5.00061 8.43286 6.24675 8.43286 7.78387Z",fill:"#FF0084"}),zM.jsx("path",{d:"M2 7.78408C2 9.32121 3.24614 10.5676 4.78352 10.5676C6.32089 10.5676 7.56703 9.32121 7.56703 7.78408C7.56703 6.24695 6.32089 5.00081 4.78352 5.00081C3.24614 5.00081 2 6.24695 2 7.78408Z",fill:"#0063DC"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22379",children:zM.jsx("rect",{width:"12",height:"5.568",fill:"white",transform:"translate(2 5)"})})})]}),giphy:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("rect",{width:"16",height:"16",fill:"#121212"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3.38889V12.2778H5.11111V3.38889H4Z",fill:"#00FF99"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6663 5.61111V12.2778H11.7774V5.61111H10.6663Z",fill:"#9933FF"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75 3H4V4.11111H8.83333V3H7.75Z",fill:"#FFF35C"}),zM.jsx("path",{d:"M9.00041 4.11111H7.33374H8.83374V3.77778L9.00041 4.11111Z",fill:"#999999"}),zM.jsx("path",{d:"M8.83374 4.11111H7.33374L8.44485 3L8.83374 3.77778V4.11111Z",fill:"#999237"}),zM.jsx("path",{d:"M10.6663 7.44444V5.77778L11.7774 6.33333L10.6663 7.44444Z",fill:"#5C1F99"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6667 11.8889H4V13H11.7778V11.8889H10.6667Z",fill:"#00CCFF"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6668 5.22222V4.11111H9.55569V3H8.44458V3.90739V5.0185V6.33333H9.55569H10.6668H11.7779V5.22222H10.6668Z",fill:"#FF6666"})]}),instagram:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22356)",children:[zM.jsx("mask",{id:"mask0_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:zM.jsx("path",{d:"M4.70325 0.0949238C3.85627 0.1349 3.27778 0.270564 2.77227 0.468642C2.24897 0.672648 1.80537 0.946046 1.36408 1.38914C0.922279 1.83249 0.650958 2.27688 0.448504 2.8007C0.252489 3.3075 0.119662 3.88627 0.0822604 4.73377C0.045126 5.58283 0.0366102 5.85363 0.0407495 8.01522C0.0448729 10.1765 0.0544124 10.4479 0.0949012 11.2972C0.135388 12.1439 0.270546 12.7222 0.468623 13.2279C0.672886 13.7512 0.946004 14.1946 1.38935 14.6361C1.83245 15.0777 2.27708 15.3487 2.80115 15.5515C3.30744 15.7472 3.88644 15.8806 4.73369 15.9177C5.58273 15.9551 5.85379 15.9634 8.01483 15.9592C10.1769 15.9551 10.448 15.9456 11.297 15.9053C12.144 15.8648 12.722 15.7292 13.228 15.5316C13.7513 15.3268 14.1949 15.0542 14.6362 14.6109C15.0775 14.1678 15.3488 13.7231 15.5512 13.199C15.7473 12.6927 15.8806 12.1137 15.9175 11.267C15.9546 10.4174 15.9634 10.1461 15.9593 7.98478C15.9551 5.8232 15.9453 5.55239 15.9051 4.7036C15.8649 3.85609 15.7292 3.27811 15.5314 2.77208C15.3269 2.24877 15.054 1.80567 14.6109 1.36387C14.1678 0.922574 13.7232 0.650729 13.1991 0.448785C12.6926 0.252768 12.1138 0.119166 11.2666 0.0825425C10.4175 0.0448876 10.1465 0.0366393 7.98465 0.0407642C5.82336 0.0448892 5.5523 0.0541772 4.70325 0.0949238ZM4.79611 14.485C4.02004 14.4512 3.59863 14.3222 3.31776 14.2142C2.94585 14.0703 2.68046 13.8977 2.40114 13.6205C2.12234 13.3422 1.94928 13.0776 1.80408 12.7064C1.69497 12.4255 1.5637 12.0046 1.52734 11.2286C1.48788 10.3896 1.47886 10.1378 1.47498 8.01237C1.47086 5.88742 1.47859 5.63569 1.51522 4.79593C1.54848 4.02038 1.67822 3.59843 1.78602 3.31782C1.92993 2.94539 2.10196 2.68051 2.37973 2.4012C2.65801 2.12187 2.92263 1.94933 3.29402 1.80412C3.57463 1.69451 3.99555 1.56426 4.77134 1.52738C5.61084 1.48766 5.8623 1.47915 7.98723 1.47502C10.1127 1.47089 10.3644 1.47838 11.2042 1.51526C11.9797 1.54904 12.4016 1.67749 12.682 1.78607C13.0541 1.92998 13.3195 2.1015 13.5986 2.37979C13.8777 2.65808 14.0507 2.92218 14.1959 3.29435C14.3055 3.57418 14.4358 3.99562 14.4724 4.77117C14.5124 5.61068 14.5214 5.8624 14.5253 7.98736C14.5294 10.1128 14.5217 10.3646 14.4848 11.2038C14.451 11.9799 14.3223 12.4016 14.214 12.6827C14.0701 13.0543 13.898 13.3197 13.62 13.5991C13.342 13.8773 13.0774 14.0509 12.7057 14.1961C12.4256 14.3055 12.0042 14.436 11.2289 14.4729C10.3894 14.5123 10.1379 14.5214 8.01225 14.5252C5.88732 14.5294 5.63586 14.5214 4.79611 14.485ZM11.2854 3.74493C11.2864 4.27211 11.7151 4.69896 12.2422 4.69792C12.7697 4.69689 13.1965 4.2685 13.1957 3.74132C13.1947 3.21414 12.7661 2.78704 12.2386 2.78807C11.7112 2.7891 11.2844 3.21775 11.2854 3.74493ZM3.91277 8.00773C3.91714 10.2653 5.75063 12.0913 8.0076 12.0869C10.2648 12.0825 12.0919 10.2495 12.0875 7.99201C12.0831 5.73526 10.2494 3.90819 7.99188 3.91257C5.73489 3.91696 3.90837 5.75073 3.91277 8.00773ZM5.34648 8.0049C5.3439 6.53969 6.52978 5.34942 7.99471 5.34683C9.45991 5.344 10.6504 6.52937 10.6533 7.99484C10.6561 9.46031 9.47022 10.6503 8.00477 10.6532C6.53984 10.656 5.34932 9.47037 5.34648 8.0049Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask0_6523_22356)",children:[zM.jsx("mask",{id:"mask1_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.5905 -0.583628H-0.603516V16.6106H16.5905V-0.583628Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask1_6523_22356)",children:[zM.jsx("mask",{id:"mask2_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.6701 -0.663237H-0.683105V16.6902H16.6701V-0.663237Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask2_6523_22356)",children:[zM.jsx("mask",{id:"mask3_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.6701 -0.663237H-0.683105V16.6902H16.6701V-0.663237Z",fill:"white"})}),zM.jsx("g",{mask:"url(#mask3_6523_22356)",children:zM.jsx("rect",{x:"-0.688721",y:"-0.665792",width:"17.3622",height:"17.3622",fill:"url(#pattern0)"})})]})]})]})]}),zM.jsxs("defs",{children:[zM.jsx("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:zM.jsx("use",{xlinkHref:"#image0_6523_22356",transform:"scale(0.000439947)"})}),zM.jsx("clipPath",{id:"clip0_6523_22356",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})}),zM.jsx("image",{id:"image0_6523_22356",width:"2273",height:"2275",xlinkHref:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAlgCWAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMAEAMCAwYAAFokAABijgAAd23/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoXHh4jJSclIx4vLzMzLy9AQEBAQEBAQEBAQEBAQEABEQ8PERMRFRISFRQRFBEUGhQWFhQaJhoaHBoaJjAjHh4eHiMwKy4nJycuKzU1MDA1NUBAP0BAQEBAQEBAQEBAQP/CABEICOMI4QMBIgACEQEDEQH/xADDAAEBAQEBAQEBAAAAAAAAAAAAAQUEBgMHAgEBAQADAQEAAAAAAAAAAAAAAAECAwUEBhAAAQIEBAcBAQEBAQAAAAAAAAMFcIA1FiIjMxQBEQIyEwQ0MRIGFZARAAADCAICAgEABwUJAQAAAAADo4ABcqLSBDREsXNDRcECESExQVGREjIQYdETM3GB8VJiksLiFBUSAAECBgEEAwABAwIHAAAAAAABAnCxcpIDM0QxMkN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QAAAAAAFSiACosUBKIBLLQIsUKgEsUKgVLALYBLLQICLLUogWLKSlgqBYsEq2AgtiwSxQqBYKSxUsUKgWCostSwSrYKgWC2LKSy1KILYspKWCospKWCostAgtSygIstAiygVKqAASy0AAKgAUAKAAAAA9d8Pv8OLwg15gAAAAAAgAsSgAAAAAAKgAAAQUAAAgCgAELKgACgAEgCgAAAogQAAKSgAACAFAAACURRFEWACUsWACVUCxYBbFglECpZQLBSWALBSWKBBalgCwVFipVQLAJZalgFsAlipZQLBUCpYJZaBBbAqWUlipVQWwEFsWUllqWKFQUlihUFqWAWwUlihUFqWAUlihSWAWgRZQAWwAACVUACgAABQAHrvh9/hxeEGvMAAAEAAAKgAAAAAABZUAAACFAAAEAUAAgUBABQAJAFAAABRAgABQABAABSUAgAAAAAAKiwABYsAIstAgEq2ASxQqASxQqBUsAtgEsUKgEstSwBYLYsEstAgWCksUKgWASy1LALYCC2ASy1KILYFiykstSykpYKgtSwC2CoLUsAtiykpYKgoFgpKWCgIKBUsoACLLQAAEqoAFAAAAA9d8Pv8ONwg15gAgAAACkAAAAAAAAKIAAEKAAAIAKAABFCAAKAASAUAACiBAACygAIAKSgEAAAAAAAAAJVQACWKAllAsWAWwCUQWxYAsFJYoEFRYqUQWwCWWpRAsFJYqVUCwCWWgQLFlJYqWUlLBbAQWxYJZaBBbAJZallqUQWwVBalgFsFJYoVBalgFQWpYBbABbABUAFqWAUAlloAAAUlgCgAAAAeu+H3+HG4Qa8wQAAABSAAAAAAAABQEAACKAAEAAUAAhZUAAFAAAkWUAAWVAAgAUABABQAIAAAAAAAAAACosAAWASqgVLALYsAIFSygWASygWCksUCC1LBLFCoFiyksUCC1LBKtgIFSyksUKgWC2Aiy1LBLLQILYBLLUstAgtgpLFSygtgpLFCoLUsAqC1LALUALYAKgAtSwCgEpYKAAASygUAAAAD13w+/w43CDXkAAAALAAAAAAAAACiAAALLAAAIAoAABFCAALKABIAoAAKIAEAUAAIBQABAAABRFJFEURSwAACWUACwAVAq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aca041pxrTjWnGtONaca0415xrzjXnGvONeca8415xrzjXnGvONeca8415xrzjXnGvONeca8415xrzjXnGvONeYa8w15hrzDXmGvMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMPBMNeYa8w15hrzDXnGvONeca8415xrzjXnGvONeca041pxrTjWnGtONaca041pxrTjWnGtONacas41ZxqzjVnGrONWcas41ZxqzjVnGrONScak41JxqTjUUGooNRQaig1FBqKDTUGmoNNQaag01BpqDTUGmoNNQaag0lBpKDSUGkoNJQaSg0lBpKDSUGioNFQaKg0VBoqDRVGiqNFUaKo0FRoKjQVGgqNBUaCo0FRoKjQVGgqPXqj16o9eqPXqj16o9eqPXqj16o9eqPXqj1yo9cqPXKj1yo9cqPXLD1yw9csPXLD1yw9csPWrD1qw9asPWrD1qw9asPWrD1qw9asPWrD1qw9YsPWLD1iw9YsPWLD1iw9YsPWLD1iw9YsPWLD1iw9YsPWLD1iw9YsPWLD1iw9YsPWLD1iw9YsPWLD1aw9WsPVrD1aw9WsPVrD1aw9WsPVrD1aw9WsPVrB34/8Ay/z/AH/53yHY/wDU/E/0v+P7/wCz/9k="})]})]}),pinterest:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6570_25513)",children:[zM.jsx("rect",{width:"15.996",height:"16",rx:"2",fill:"#CC2127"}),zM.jsx("path",{d:"M7.999 2C4.68555 2 2 4.68555 2 7.999C2 10.5406 3.58174 12.7102 5.81336 13.5861C5.76137 13.1121 5.71338 12.3843 5.83336 11.8644C5.94134 11.3964 6.53724 8.88285 6.53724 8.88285C6.53724 8.88285 6.35727 8.52291 6.35727 7.993C6.35727 7.15914 6.84119 6.53524 7.44309 6.53524C7.95501 6.53524 8.20297 6.91918 8.20297 7.3811C8.20297 7.89502 7.87502 8.66489 7.70705 9.37877C7.56507 9.97667 8.007 10.4626 8.5949 10.4626C9.66072 10.4626 10.4806 9.33878 10.4806 7.71505C10.4806 6.27929 9.44876 5.27345 7.975 5.27345C6.26729 5.27345 5.26546 6.55324 5.26546 7.87702C5.26546 8.39293 5.46342 8.94484 5.71138 9.24679C5.75937 9.30678 5.76737 9.35877 5.75337 9.41876C5.70738 9.60873 5.6074 10.0167 5.5874 10.0987C5.56141 10.2086 5.50142 10.2326 5.38743 10.1786C4.63756 9.83069 4.16964 8.73488 4.16964 7.85502C4.16964 5.96334 5.54541 4.22563 8.13298 4.22563C10.2146 4.22563 11.8304 5.70938 11.8304 7.69105C11.8304 9.75871 10.5266 11.4224 8.71688 11.4224C8.10898 11.4224 7.53708 11.1065 7.34111 10.7345C7.34111 10.7345 7.04116 11.8804 6.96717 12.1603C6.83119 12.6822 6.46526 13.3341 6.2213 13.732C6.7832 13.906 7.3791 14 7.997 14C11.3104 14 13.996 11.3144 13.996 8.001C13.998 4.68555 11.3124 2 7.999 2Z",fill:"white"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6570_25513",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),spotify:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22402)",children:zM.jsx("path",{d:"M12.6609 7.10585C10.121 5.59751 5.93158 5.45882 3.50697 6.1947C3.11759 6.31287 2.70584 6.09298 2.5879 5.70373C2.46988 5.31411 2.68945 4.90265 3.07911 4.78429C5.86241 3.93945 10.4892 4.1026 13.4132 5.83828C13.7634 6.04622 13.8782 6.49851 13.6707 6.84813C13.4629 7.19833 13.0103 7.31376 12.6609 7.10585ZM12.5777 9.33993C12.3995 9.62908 12.0215 9.71979 11.7327 9.54223C9.61522 8.24063 6.38637 7.86357 3.88123 8.624C3.55636 8.72218 3.21323 8.53899 3.11455 8.21475C3.01666 7.88989 3.19992 7.54738 3.5242 7.44859C6.38597 6.58018 9.9436 7.00081 12.3756 8.49536C12.6644 8.67322 12.7553 9.05146 12.5777 9.33993ZM11.6136 11.4855C11.472 11.7177 11.1697 11.7904 10.9383 11.6489C9.08801 10.518 6.75909 10.2627 4.01637 10.8891C3.75207 10.9497 3.48866 10.7841 3.42838 10.5198C3.36785 10.2556 3.53284 9.99217 3.79772 9.93186C6.79916 9.2457 9.37381 9.54101 11.4506 10.8101C11.6822 10.9515 11.7551 11.254 11.6136 11.4855ZM8.00002 0.120623C3.64839 0.120623 0.120605 3.64834 0.120605 7.99989C0.120605 12.352 3.64839 15.8794 8.00002 15.8794C12.3517 15.8794 15.8794 12.352 15.8794 7.99989C15.8794 3.64834 12.3517 0.120623 8.00002 0.120623Z",fill:"#1ED760"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22402",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),twitter:zM.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:zM.jsx("path",{d:"M14.3193 4.31285C14.329 4.45301 14.329 4.59317 14.329 4.73462C14.329 9.04475 11.0516 14.0156 5.05865 14.0156V14.0131C3.28832 14.0156 1.55478 13.508 0.0644531 12.5507C0.321873 12.5817 0.580582 12.5972 0.839937 12.5979C2.30703 12.5992 3.7322 12.1063 4.88639 11.1988C3.4922 11.1724 2.26961 10.2623 1.84252 8.93366C2.3309 9.02796 2.83413 9.00858 3.31349 8.87746C1.79349 8.57001 0.699937 7.23299 0.699937 5.68023C0.699937 5.66602 0.699937 5.65246 0.699937 5.63889C1.15284 5.89144 1.65994 6.0316 2.17865 6.0471C0.747034 5.08923 0.305743 3.18251 1.17026 1.69176C2.82445 3.7296 5.2651 4.96844 7.8851 5.09956C7.62252 3.96664 7.98123 2.77947 8.82768 1.98307C10.1399 0.748096 12.2038 0.811395 13.4374 2.12452C14.167 1.98048 14.8664 1.71243 15.5064 1.33264C15.2632 2.0877 14.7541 2.72909 14.0741 3.13665C14.7199 3.06044 15.3509 2.88734 15.9451 2.62316C15.5077 3.2794 14.9567 3.85103 14.3193 4.31285Z",fill:"#1D9BF0"})}),vimeo:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22340)",children:[zM.jsx("path",{d:"M16 14.4C16 15.28 15.28 16 14.4 16H1.6C0.72 16 0 15.28 0 14.4V1.6C0 0.72 0.72 0 1.6 0H14.4C15.28 0 16 0.72 16 1.6V14.4Z",fill:"#1AB7EA"}),zM.jsx("path",{d:"M13.9945 5.3084C13.9391 6.42815 13.1229 7.97447 11.5458 9.93402C9.91331 11.9736 8.52987 13 7.40928 13C6.70372 13 6.12267 12.3735 5.63846 11.1338C5.32027 9.98735 4.98824 8.85427 4.67005 7.70786C4.31036 6.46814 3.92299 5.84161 3.50796 5.84161C3.42495 5.84161 3.10676 6.02824 2.56721 6.38816L2 5.68165C2.59488 5.1751 3.17593 4.68187 3.75698 4.17532C4.54554 3.52214 5.14042 3.17555 5.54162 3.13556C6.46853 3.05557 7.04958 3.66877 7.27093 4.97514C7.50612 6.40149 7.67213 7.28129 7.75514 7.62788C8.01799 8.80095 8.32235 9.40081 8.64054 9.40081C8.88956 9.40081 9.26309 9.01423 9.77497 8.2544C10.273 7.49457 10.5497 6.90804 10.5774 6.50813C10.6465 5.85494 10.3837 5.52169 9.77497 5.52169C9.48444 5.52169 9.19392 5.58834 8.88956 5.70831C9.48444 3.84206 10.605 2.94893 12.2652 3.00225C13.4826 3.02891 14.0637 3.80207 13.9945 5.3084Z",fill:"white"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22340",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),youtube:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("path",{d:"M15.6656 3.75817C15.4816 3.06609 14.9395 2.5211 14.2511 2.33614C13.0034 2 8 2 8 2C8 2 2.99666 2 1.7489 2.33614C1.06051 2.5211 0.518324 3.06609 0.334339 3.75817C0 5.01251 0 7.62963 0 7.62963C0 7.62963 0 10.2467 0.334339 11.5012C0.518324 12.1932 1.06051 12.7381 1.7489 12.9232C2.99666 13.2593 8 13.2593 8 13.2593C8 13.2593 13.0034 13.2593 14.2511 12.9232C14.9395 12.7381 15.4816 12.1932 15.6656 11.5012C16 10.2467 16 7.62963 16 7.62963C16 7.62963 16 5.01251 15.6656 3.75817Z",fill:"#ED1D24"}),zM.jsx("path",{d:"M6.36353 10.0058L10.5453 7.62974L6.36353 5.25349V10.0058Z",fill:"white"})]})};function Zx(e){let{debouncedUrl:t,content:n,onContentChange:r,selected:i}=e,o=(0,c.useRef)(null),[a,u]=(0,c.useState)(!1);return(0,p.pQ)(t,()=>{var e;a&&(u(!1),null==(e=o.current)||e.reset())}),(0,l.ju)(t)?t===(null==n?void 0:n.embed_url)?zM.jsx(ZC,{content:n,selected:i}):zM.jsx(f.SV,{ref:o,renderError:Zb,onError:function(){u(!0),r(void 0)},children:zM.jsx(c.Suspense,{fallback:n&&zM.jsx(ZC,{content:n,selected:i}),children:zM.jsx(ZS,{url:t,selected:i,onContentChange:r})})}):null}function Zb(){return zM.jsxs(f.xu,{backgroundColor:"grey2",borderRadius:6,padding:16,gap:4,children:[zM.jsx(f.I5,{name:"alert",size:"small",color:"grey11"}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"There is no embed data available."})]})}function ZC(e){let{content:t,selected:n}=e,{thumbnail:r,provider:i,author:o,url:a,subtitle:u}=function(e){let t="";switch(e.type){case"video":t=e.title??"";break;case"photo":t=`View this post${e.provider_name?` on ${e.provider_name}`:""}`;break;default:t=`Open${e.provider_name?` on ${e.provider_name}`:""}`}return{url:e.embed_url,thumbnail:{url:e.thumbnail_url??"",aspectRatio:"video"===e.type?"16:9":"1:1"},provider:e.provider_name??"",author:e.author_name??"",subtitle:t}}(t);return zM.jsxs(f.oU,{selected:n,children:[zM.jsx(f.Sy,{src:r.url,aspectRatio:r.aspectRatio}),zM.jsxs(f.Tw,{children:[zM.jsxs(f.xu,{display:"flex",alignItems:"center",gap:4,children:[zM.jsx(Zy,{provider:i}),zM.jsx(f.xv,{variant:"smallBold",color:"grey12",noWrap:!0,children:i}),o&&zM.jsx(f.xv,{variant:"small",color:"grey11",noWrap:!0,children:o})]}),zM.jsx(f.xv,{variant:"smallBold",href:a,children:u})]})]})}function ZS(e){let{url:t,onContentChange:n,selected:r}=e,i=function(e){let{url:t,onContentChange:n}=e,{embedApiEndpoint:r}=zK(),i=(0,m.QT)(Zw,[t,r]),o=(0,p.R9)(n);return(0,c.useEffect)(()=>{let e=(0,f.rI)(()=>o(i));return()=>{clearTimeout(e)}},[i,o]),i}({url:t,onContentChange:n});return zM.jsx(ZC,{content:i,selected:r})}function Zw(e,t){var n;let r=new URL(t);return r.searchParams.set("url",e),(0,y.WY)(r,{okType:(n=e,HE.object({type:HE.string(),version:HE.string().or(HE.number()).nullish(),title:HE.string().nullish(),author_name:HE.string().nullish(),author_url:HE.string().nullish(),provider_name:HE.string().nullish(),provider_url:HE.string().nullish(),cache_age:HE.string().or(HE.number()).nullish(),thumbnail_url:HE.string().nullish(),thumbnail_width:HE.number().nullish(),thumbnail_height:HE.number().nullish(),html:HE.string().nullish()}).passthrough().transform(e=>{let t={embed_url:n};return{...t,__TYPE__:"EmbedContent",type:e.type,version:e.version,title:e.title,author_name:e.author_name,author_url:e.author_url,provider_name:e.provider_name,provider_url:e.provider_url,cache_age:e.cache_age,thumbnail_url:e.thumbnail_url,thumbnail_width:e.thumbnail_width,thumbnail_height:e.thumbnail_height,html:e.html,all:{...t,...e}}}))})}function ZI(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=(0,p.$P)({initialState:(null==i?void 0:i.embed_url)??"",startTransition:c.startTransition});function u(e){a.set(e),(0,l.ju)(e)||o(void 0)}return zM.jsxs(f.gN,{footer:(0,l.ju)(a.value)&&zM.jsx(f.mS,{children:zM.jsx(Zx,{debouncedUrl:a.debouncedValue,content:i,onContentChange:o})}),children:[zM.jsx(f.fw,{name:"cloud"}),zM.jsx(f.Qy,{htmlFor:t,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(Zm,{id:t,readOnly:n,placeholder:Zf(r),value:a.value,onValueChange:u,variant:(0,l.ju)(a.value)?"link":"normal",endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!a,onClick:()=>u("")})})})]})}function Z_(e){return!(e.lat>85||e.lat<-85||e.lng>180||e.lng<-180)}function ZT(e){let t=e.match(/^.*@(-?\d+.\d+),(-?\d+.\d+).*$/);if(!t)return;let n=parseFloat(t[1]??""),r=parseFloat(t[2]??"");if(isNaN(n)||isNaN(r))return;let i={lat:n,lng:r};if(Z_(i))return i}function ZO(e){return e?`${e.lat}, ${e.lng}`:""}function ZR(e){let t=e.match(/\(?([\d|.|-]*)[\s+]*,[\s]*([\d|.|-]*)\)?/);if(!t)return ZT(e);let n=parseFloat(t[1]??""),r=parseFloat(t[2]??"");if(isNaN(n)||isNaN(r))return ZT(e);let i={lat:n,lng:r};return Z_(i)?i:ZT(e)}function Zk(e){let{field:t,id:n,readOnly:r,...i}=e,{onValueChange:o,displayedValue:a,onBlur:u,clearValue:s,isValidCoordinates:l}=function(e){let{content:t,onContentChange:n}=e,r=ZO(null==t?void 0:t.position),[i,o]=(0,c.useState)(r),a=!!ZR(i);return{displayedValue:i,isValidCoordinates:a,onValueChange:o,onBlur:function(){let e=ZR(i);if(!e)return o(""),n(void 0);let{lat:t,lng:r}=e;o(ZO({lat:t,lng:r})),n({__TYPE__:"GeoPointContent",position:{lat:t,lng:r}})},clearValue:function(){o(""),n(void 0)}}}(i);return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"place"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(t)}),zM.jsx(f.JO,{children:zM.jsx(Zm,{id:n,onValueChange:o,placeholder:"...",readOnly:r,value:a,onBlur:u,variant:l?"link":"normal",endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!a,onClick:s})})})]})}let ZE=Hs({id:Y5(),width:Y3(),height:Y3(),urls:Hs({full:Y5(),small:Y5().transform(function(e){let t=new URL(e);return t.searchParams.delete("q"),t.searchParams.delete("fm"),t.searchParams.set("w","300"),t.searchParams.set("auto","compress,format"),t.toString()})}),alt_description:Y5().optional(),description:Y5().nullable()}),ZM=Hs({results:Hu(ZE)}).transform(e=>e.results);function ZF(e,t){let n=new URL("search/photos",e);return n.searchParams.set("page","1"),n.searchParams.set("per_page","28"),n.searchParams.set("query",t),(0,y.WY)(n,{okType:ZM})}function Zj(e){let{onSelectedChange:t}=e,[n,r]=(0,c.useTransition)(),i=(0,p.$P)({initialState:"",ms:300,startTransition:r});return zM.jsxs(f.xu,{flexDirection:"column",gap:16,width:"100%",position:"relative",children:[zM.jsx(f.CR,{value:i.value,placeholder:"Search on Unsplash.com",onValueChange:i.set}),zM.jsx(f.SV,{renderError:()=>zM.jsx(Gy,{}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(ZL,{}),children:zM.jsx(ZU,{term:i.debouncedValue,loading:n,onSelectedChange:t})})})]})}function ZU(e){let{term:t,onSelectedChange:n,loading:r}=e,{media:i,toggleSelected:o,selectedImageId:a}=function(e){var t;let{term:n,onSelectedChange:r}=e,{unsplashApiBaseUrl:i}=zK(),o=function(e,t){let n=(0,c.useRef)(),r=zK(),i=(0,m.QT)(ZF,[e,t]);return(0,p.Nr)(t,1e3,()=>{var e;n.current&&t!==n.current&&(null==(e=r.onAnalyticsEvent)||e.call(r,"Unsplash Image Searched")),n.current=t}),i}(i,n||"citrus fruit"),a=null==(t=null==o?void 0:o[0])?void 0:t.id,[u,s]=(0,c.useState)();return(0,c.useEffect)(()=>{null==r||r([]),s(void 0)},[a,r]),{media:o,toggleSelected:function(e){if(e.id===u)return s(void 0),null==r?void 0:r([]);s(e.id),null==r||r([{...e,url:e.urls.full,alt:e.alt_description}])},selectedImageId:u}}({term:t,onSelectedChange:n});return zM.jsxs(zM.Fragment,{children:[zM.jsx(ZK,{children:null==i?void 0:i.map(e=>{let t=new URL(e.urls.full).searchParams.get("fm")??"jpg";return zM.jsx(f.PB,{url:e.urls.small,filename:e.description??"Unsplash Image",selected:a===e.id,onCardClick:()=>o(e),onCheckedChange:()=>o(e),extension:t,width:e.width,height:e.height,loading:r},e.id)})}),0===i.length&&zM.jsx(zV,{})]})}function ZK(e){let{children:t}=e;return zM.jsx(f.xr,{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 250px), 1fr))",gap:16,paddingBottom:16,position:"relative",width:"100%"},children:t})}function ZL(){return zM.jsx(ZK,{children:(0,g.w6)(1,24).map(e=>zM.jsx(GR,{},e))})}function ZB(e){let{open:t,onOpenChange:n,onMediaSelected:r,assetType:i}=e,o=zK(),a=o.mediaLibrary,[u,s]=(0,c.useState)(()=>a?"media":"unsplash"),[l,d]=(0,c.useState)(new Set),[A,h]=(0,c.useState)([]),g=l.size+A.length,y=(0,m.q_)(H5);function v(e){e||d(new Set),n(e)}(0,c.useEffect)(()=>{t&&a&&Gt({config:o,assetType:i})},[t,o,i,a]);let x=function(e){let{assetType:t,mediaDialogOpen:n}=e,r=zK(),i=(0,m.q_)(H5),o=(0,c.useRef)(0);return(0,c.useEffect)(()=>{n&&(o.current=performance.now())},[n]),function(e){if(!r.onAnalyticsEvent||!r.mediaLibrary)return;let n=i[i.length-1];if(!n)return;let{keyword:a,tags:u}=n,s=H7(i,t,a,u),l=r.useOpenSearch&&a?"1":"0",c=String(a.split(" ").length),d=String(n.total),f=s.findIndex(t=>t.id===e),p=String(f+1),A=[e].join(","),h=(performance.now()-o.current).toFixed(0);r.onAnalyticsEvent("Media Added To Page",{useOpenSearch:l,assetType:t,searchQuery:a,numberOfWords:c,numberOfResults:d,searchPosition:p,mediaIds:A,timeToAddMediaToPage:h,tags:u})}}({assetType:i,mediaDialogOpen:t}),{containerRef:b}=(0,f.VY)();return zM.jsxs(f.Vq,{open:t,onOpenChange:v,size:{width:"min(calc(100% - 48px), 2000px)",height:"calc(100% - 30px)"},position:"center",onPointerDownOutside(e){b&&(0,p.DX)(b,e.target)&&e.preventDefault()},children:[zM.jsx(f.fK,{icon:"image",title:"Media library"}),zM.jsxs(f.Zp,{value:u,onValueChange:function(e){if("media"!==e&&"unsplash"!==e)throw Error(`Invalid option ${e}.`);s(e)},padding:"small",width:"auto",children:[a&&zM.jsx(f.T9,{value:"media",icon:"photo"}),zM.jsx(f.T9,{value:"unsplash",icon:"unsplash"})]}),zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",flexGrow:1,overflow:"hidden",children:[zM.jsx(zj,{}),zM.jsxs(f.xu,{overflow:"hidden",backgroundColor:"grey3",padding:{top:16,inline:16},flexGrow:1,children:["media"===u&&zM.jsx(Zs,{assetType:i,onSelectedChange:d}),"unsplash"===u&&zM.jsx(Zj,{onSelectedChange:h})]})]})}),zM.jsx(f.kX,{asFooter:!0,ok:{text:"Add to page",onClick:function(){var e;if("unsplash"===u){let t=A[0];if(!t)return;r(t),null==(e=o.onAnalyticsEvent)||e.call(o,"Unsplash Image Added")}else if("media"===u){let n=y.flatMap(e=>e.items).filter(e=>l.has(e.id))[0];if(!n)return;r(n),x(n.id)}v(!1)},disabled:1!==g,disabledTooltip:0===g?"Select a media item to add to the page":g>1?"Only one media item can be added to the page":void 0},cancel:{text:"Cancel"}})]})}function ZP(e){let{onMediaSelected:t,readOnly:n,isUpdating:r}=e,[i,o]=(0,c.useState)(!1);return zM.jsxs(f.aY,{children:[zM.jsx(f.Zb,{color:"grey3",variant:"outlined",radius:4,children:zM.jsx(f.aY,{children:zM.jsx(f.xu,{padding:{block:48},flexDirection:"column",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"cloudUpload"}),zM.jsx(f._T,{children:r?"Preparing your image...":"You haven't selected an image"}),!n&&zM.jsx(f.Qj,{children:zM.jsx(f.zx,{disabled:r,onClick:()=>o(!0),children:"Select image"})})]})})})}),zM.jsx(ZB,{open:i,onOpenChange:o,onMediaSelected:t,assetType:"image"})]})}function ZW(e){let{id:t,readOnly:n,altText:r,onValueChange:i,selected:o}=e;return zM.jsxs(f.gN,{selected:o,children:[zM.jsx(f.Qy,{htmlFor:t,children:"Alt text"}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{flexGrow:1,height:40,children:zM.jsx(Zm,{id:t,placeholder:"Short description for the visually impaired",readOnly:n,value:r,onValueChange:i,padding:{input:{inline:12}}})})})]})}function ZD(e){let{contentView:t,croppedImage:n}=e,{width:r,height:i,x:o,y:a,zoom:u}=n,s=function(e){let{origin:t,croppedImage:n}=e,{x:r,y:i,width:o,height:a,cropHeight:u,cropWidth:s}=n,l=new URL(t.url),c=t.height!==a||t.width!==o;if(0!==r||0!==i||u!==t.height||s!==t.width){let d=[r,i,s,u].map(Math.round).join(",");l.searchParams.set("rect",d),l.searchParams.set("w",o.toString()),l.searchParams.set("h",a.toString())}return c&&(l.searchParams.set("w",o.toString()),l.searchParams.set("h",a.toString())),l.toString()}({origin:t.origin,croppedImage:n});return{...t,width:r,height:i,url:s,edit:{...t.edit,zoom:u,crop:{x:o,y:a}}}}function ZN(e){let{content:t,croppedImage:n}=e,r=ZD({contentView:t,croppedImage:n});return r.url===t.url?t:{...t,...r}}function Zq(e){let{selectedImage:t,imageCrop:n,setImageCrop:r}=e,{width:i,height:o,zoom:a,cropHeight:u,cropWidth:s}=n,l=t.contentView,d={x:n.x,y:n.y,width:s,height:u},[p,A]=(0,c.useState)(),h=(null==l?void 0:l.origin.url)??"",m=!(null!=t&&t.thumbnail.height&&null!=t&&t.thumbnail.width);function g(e,t){let i=parseInt(t);isNaN(i)||i<=0||!m||r({...n,[e]:i})}function y(e){r({...n,zoom:e})}return zM.jsxs(f.xu,{padding:{inline:24,block:16},flexDirection:"column",gap:16,height:"100%",overflowY:"auto",alignItems:"center",children:[zM.jsxs(f.xu,{gap:8,height:32,alignItems:"flex-start",width:"100%",children:[zM.jsx(f.u,{content:"Center",children:zM.jsx(f.zx,{color:"grey",size:"medium",startIcon:"centerFocusWeak",onClick:function(){A(ZQ),r({...n,...ZQ})}})}),zM.jsx(f.u,{content:"Cover",children:zM.jsx(f.zx,{color:"grey",size:"medium",startIcon:"zoomOutMap",onClick:function(){l&&(A(ZQ),r({...n,...ZQ,zoom:1,cropWidth:l.width,cropHeight:l.height}))}})}),zM.jsx(f.Z0,{orientation:"vertical"}),zM.jsx(f.yt,{prefix:"W",prefixTooltip:"Width",placeholder:"width",type:"number",size:"medium",value:String(i),onValueChange:e=>g("width",e),sx:{width:100},disabled:!m}),zM.jsx(f.yt,{prefix:"H",prefixTooltip:"Height",placeholder:"height",type:"number",size:"medium",value:String(o),onValueChange:e=>g("height",e),sx:{width:100},disabled:!m})]}),zM.jsx(f.fl,{image:h,aspect:i/o,crop:p??{x:0,y:0},onCropChange:A,zoom:a,onZoomChange:y,onCropAreaChange(e,t){var i;r({...n,cropWidth:t.width,cropHeight:t.height,x:t.x,y:t.y})},initialCroppedAreaPixels:d}),zM.jsx(f.xu,{width:"100%",maxWidth:320,children:zM.jsx(f.iR,{min:1,max:3,step:.01,value:[a],onValueChange:([e])=>y(e??1)})})]})}m.Fs.registerFetcherConfig(ZF,{cacheCapacity:5,revalidationStrategy:{type:"never"}});let ZQ={x:0,y:0};function ZV(e){let{trigger:t,initialImages:n}=e,{open:r,onOpenChange:i,ready:o,option:a,selectedImage:u,croppedImage:s,setCroppedImage:l,setReady:d,setOption:p}=function(e){let{initialImages:t,initialOption:n,onClose:r}=e,[i,o]=(0,c.useState)(h),[a,u]=(0,c.useState)(!1),[s,l]=(0,c.useState)(!1),[d,f]=(0,c.useState)(n),p=t[d],A=i[(null==p?void 0:p.thumbnail.name)??""];function h(){return t.reduce((e,t)=>(t.contentView&&(e[t.thumbnail.name]=function(e){let{x:t,y:n}=e.edit.crop,r=e.edit.zoom,{width:i,height:o}=e,{width:a,height:u}=e.origin,s=i/o,l=Math.min(a,u*s/r);return{x:t,y:n,width:i,height:o,zoom:r,cropWidth:l,cropHeight:l/s}}(t.contentView)),e),{})}return{open:a,ready:s,option:d,selectedImage:p,croppedImage:A,setCroppedImage:function(e){if(!p)return;let t=p.thumbnail.name;o({...i,[t]:e})},setReady:l,setOption:f,onClose:r,onOpenChange:function(e){e?(f(n),o(h())):(l(!1),r({option:d,croppedImages:i})),u(e)}}}(e);return zM.jsxs(f.Vq,{trigger:t,onAnimationEnd:()=>d(!0),open:r,onOpenChange:i,children:[zM.jsx(f.fK,{icon:"photo",title:"Image editor"}),zM.jsx(f.Zp,{value:String(a),onValueChange:e=>p(Number(e)),children:n.map((e,t)=>zM.jsx(f.T9,{value:String(t),icon:"photo",title:e.labels[0]??"Main",subtitle:e.labels[1]??""},e.thumbnail.name))}),u&&zM.jsx(f.cZ,{children:o&&s&&zM.jsx(Zq,{selectedImage:u,imageCrop:s,setImageCrop:l},u.thumbnail.name)})]})}function Zz(e){var t;let{url:n,selected:r,fieldLabel:i,readOnly:o,imageLabel:a,onMediaSelected:u,initialImages:s,initialOption:l=0,onCropperDialogClose:d,onClear:p,children:A}=e,[h,m]=(0,c.useState)(!1),g=(null==(t=null==n?void 0:n.split("?")[0])?void 0:t.slice(-4))===".svg";return zM.jsxs(f.Zb,{color:r?"indigo2":"grey2",variant:r?"selected":"dashed",radius:4,children:[zM.jsxs(f.Ol,{sx:{flexWrap:"wrap"},children:[zM.jsxs(f.wP,{children:[zM.jsx(f.xv,{noWrap:!0,children:(0,v.tx)(i,30)}),0!==a.length&&zM.jsx(f.xv,{color:"grey11",noSelect:!0,children:` • ${a.join(" • ")}`})]}),zM.jsxs(f.Pf,{sx:{visibility:n&&!o?"visible":"hidden"},children:[zM.jsx(ZV,{trigger:zM.jsx(f.zx,{startIcon:"crop",disabled:g,children:"Crop & Resize"}),initialImages:s,initialOption:l,onClose:d}),zM.jsx(f.zx,{startIcon:"imageSearch",onClick:()=>m(!0),children:"Replace"}),zM.jsx(f.zx,{onClick:p,startIcon:"delete",children:"Clear"})]})]}),A,zM.jsx(ZB,{open:h,onOpenChange:m,onMediaSelected:u,assetType:"image"})]})}function ZY(e){let{content:t,field:n,id:r,onContentChange:i,readOnly:o}=e,a=t&&t.origin.url.length>0,{onCropperDialogClose:u,onPageChange:s,onMediaSelected:l,isUpdating:f,page:p,thumbnail:A,allThumbnails:m,allContentViews:g,contentView:y,onClear:v}=function(e){var t;let{content:n,onContentChange:r,field:i}=e,[o,a]=(0,c.useState)(0),[u,s]=(0,c.useTransition)(),l=(t=i,(0,c.useMemo)(()=>{var e,n,r;return[{...null==(n=t.config)?void 0:n.constraint,name:Gz}].concat((null==(r=t.config)?void 0:r.thumbnails)??[])},[t])),f=l[o],p=n?function(e,t){var n,r;let{__TYPE__:i,thumbnails:o,...a}=t,u=null==(r=null==(n=e.config)?void 0:n.thumbnails)?void 0:r.map(({name:e})=>null==o?void 0:o[e]);return[a,...u??[]]}(i,n):void 0,A=null==p?void 0:p[o];return{onCropperDialogClose:function({option:e,croppedImages:t}){if(a(e),!n)return;let o=Object.entries(t).reduce((e,[t,n])=>(function(e){var t,n,r;let{field:i,content:o,thumbnail:a,croppedImage:u}=e;if(a===Gz)return ZN({content:o,croppedImage:u});let s=null==(n=null==(t=null==i?void 0:i.config)?void 0:t.thumbnails)?void 0:n.find(e=>e.name===a),l=null==(r=o.thumbnails)?void 0:r[a];if(!s||!l)return o;let c=ZD({contentView:l,croppedImage:u});return c.url===l.url?o:{...o,thumbnails:{...o.thumbnails,[a]:c}}})({field:i,content:e,thumbnail:t,croppedImage:n}),n);o!==n&&s(()=>r(o))},onPageChange:function(e){s(()=>a(e))},onMediaSelected:function(e){if(!f)return;let t=function(e,t,n,r){var i,o,a,u,s;if(!n||e===Gz){let l=null==(i=t.config)?void 0:i.thumbnails,c=l&&Object.fromEntries(l.map(e=>[e.name,GZ(r,e)]));return{__TYPE__:"ImageContent",...GZ(r,null==(o=t.config)?void 0:o.constraint),thumbnails:c}}let f=null==(u=null==(a=t.config)?void 0:a.thumbnails)?void 0:u.find(t=>t.name===e);if(!f)return n;let p=null==(s=n.thumbnails)?void 0:s[e],A=GZ(r,f);return A.url===(null==p?void 0:p.url)?n:{...n,thumbnails:(0,d.Q8)(n.thumbnails??{},(t,n)=>n===e?A:t)}}(f.name,i,n,e);t!==n&&s(()=>r(t))},isUpdating:u,page:o,thumbnail:f,allThumbnails:l,allContentViews:p,contentView:A,onClear:function(){null==a||a(0),r(void 0)}}}({field:n,content:t,onContentChange:i}),x=Zd(n),b=m.map((e,n)=>{let r=null==g?void 0:g[n];return{thumbnail:e,contentView:r,labels:GY(e,t,r)}}),C=A&&a?GY(A,t,y).filter(h.$):[];return zM.jsx(Zz,{url:null==t?void 0:t.url,fieldLabel:x,imageLabel:C,initialOption:p,initialImages:b,readOnly:o,onMediaSelected:l,onCropperDialogClose:u,onClear:v,children:zM.jsx(c.Suspense,{fallback:zM.jsx("div",{style:{height:466}}),children:A&&t&&a&&g?zM.jsx(ZH,{allContentViews:g,content:t,contentView:y,id:r,onContentChange:i,onPageChange:s,page:p,readOnly:o,thumbnailName:A.name,isUpdating:f}):zM.jsx(ZP,{onMediaSelected:l,readOnly:o,isUpdating:f})})})}function ZH(e){let{allContentViews:t,content:n,contentView:r,id:i,onContentChange:o,onPageChange:a,page:u,readOnly:s,thumbnailName:l,isUpdating:c}=e;return zM.jsxs(f.aY,{children:[zM.jsx(f.lr,{getItemSource:GG,items:t,onPageChange:a,page:u,style:{height:400},children:e=>(null==e?void 0:e.url)&&zM.jsx(f.d$,{"aria-label":"Image Field Item",src:GH(e.url),alt:e.alt??void 0,isUpdating:c},`${l}_${e.url}`)}),zM.jsx(ZW,{id:i,readOnly:s||!r,altText:(null==r?void 0:r.alt)??"",onValueChange(e){r&&o(function(e,t,n,r){let i=0===r.length?void 0:r;return e===Gz?{...t,alt:i}:{...t,thumbnails:{...t.thumbnails,[e]:{...n,alt:i}}}}(l,n,r,e))}})]})}function ZG(e,t,n,r,i,o=1,a=30){let u=new URL(`if/search/${r}`,e);return u.searchParams.set("searchTerm",i),u.searchParams.set("limit",a.toString()),u.searchParams.set("page",o.toString()),(0,y.WY)(u,{headers:{repository:n},credentials:(0,y.xb)(t),okType:ZJ})}let ZZ=HE.object({id:HE.string(),title:HE.string(),imageURL:HE.string().nullish(),description:HE.string().nullish()}),ZJ=HE.object({items:HE.array(ZZ),totalPages:HE.number(),page:HE.number()});function Z$(e){let{itemId:t,catalogId:n}=e,r=zK();r.integrationFields||zB("integrationFields");let{integrationFieldsApiBaseUrl:i,repository:o,authStrategy:a}=r,u=(0,m.QT)(ZX,[i,a,o,n,t]).items[0];if(!u)throw Error("Item not found");return{item:u}}function ZX(e,t,n,r,i){let o=new URL(`if/read/${r}`,e);return o.searchParams.set("ids",[i].toString()),(0,y.WY)(o,{headers:{repository:n},credentials:(0,y.xb)(t),okType:Z0})}let Z0=HE.object({items:HE.array(ZZ)});function Z1(e){let{item:t,onClick:n,catalogId:r}=e;return zM.jsxs(f.oU,{variant:"large",onClick:n,children:[zM.jsx(Z2,{src:t.imageURL??"",alt:t.title}),zM.jsxs(f.Tw,{children:[zM.jsx(f.Ct,{title:`Catalog: ${r}`,icon:"multipleStop",size:"medium"}),zM.jsx(f.xv,{variant:"bold",color:"grey12",sx:{marginTop:4},children:t.title}),zM.jsx(f.xv,{variant:"small",color:"grey11",children:t.description??t.id})]})]})}function Z2(e){let{src:t,alt:n}=e;return t?zM.jsx(f.Sy,{src:t,alt:n,width:76,height:76,framed:!0}):zM.jsxs(f.xu,{borderRadius:6,backgroundColor:"grey2",height:76,width:76,flexDirection:"column",alignItems:"center",justifyContent:"center",border:!0,padding:{inline:4,block:8},children:[zM.jsx(f.I5,{name:"hideImage",size:"large",color:"grey11"}),zM.jsx(f.xv,{color:"grey11",variant:"small",noSelect:!0,align:"center",children:"No preview image"})]})}function Z6(){return zM.jsxs(f.oU,{variant:"large",children:[zM.jsx(f.Od,{height:76,width:76}),zM.jsxs(f.Tw,{children:[zM.jsx(f.Od,{height:24,width:168}),zM.jsx(f.Od,{height:24,width:240,sx:{marginTop:4}}),zM.jsx(f.Od,{height:16,width:144})]})]})}function Z5(e){let{open:t,onOpenChange:n,catalogId:r,onSelectItem:i}=e,o=(0,p.$P)({initialState:""}),a=zK();return zM.jsx(f.Vq,{open:t,onOpenChange:n,hasClose:!1,size:{width:612,height:724},children:zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",height:"100%",children:[zM.jsxs(f.xu,{padding:{top:16,inline:16},flexDirection:"column",gap:8,children:[zM.jsx(f.CR,{value:o.value,onValueChange:o.set,placeholder:"Search in your catalog"}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Select an item"})]}),a.integrationFields?zM.jsx(f.SV,{renderError:()=>zM.jsx(Z4,{message:"There was an error while fetching your catalog items."}),children:zM.jsx(c.Suspense,{fallback:zM.jsxs(f.xu,{flexDirection:"column",gap:12,padding:{top:10,inline:16,bottom:16},children:[zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{})]}),children:zM.jsx(Z9,{searchTerm:o.debouncedValue,catalogId:r,onItemClick:i})})}):zM.jsx(Z4,{message:"Slice Machine does not yet support mock data for integration field in the simulator."})]})})})}function Z3(e){let{isLoading:t}=e;return zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"relative",width:"100%",justifyContent:"center",bottom:72}),loadingIndicator:!0,open:t,title:"Loading more results ...",seconds:1})}function Z9(e){let{catalogId:t,searchTerm:n,onItemClick:r}=e,[i,o]=(0,c.useTransition)(),{items:a,hasNextPage:u,fetchNextPage:s}=function(e){var t,n;let{searchTerm:r,catalogId:i}=e,o=zK();o.integrationFields||zB("integrationFields");let{integrationFieldsApiBaseUrl:a,repository:u,authStrategy:s}=o,[l,d]=(0,c.useState)(1),[f,p]=(0,c.useState)([]),[A,h]=(0,c.useState)(""),y=(0,m.QT)(ZG,[a,s,u,i,r,r===A?l:1]);r!==A?(h(r),d(1),p(y.items)):y.items.length>0&&(null==(t=(0,g.Z$)(f))?void 0:t.id)!==(null==(n=(0,g.Z$)(y.items))?void 0:n.id)&&p(e=>e.concat(y.items));let v=l<y.totalPages;return{items:f,response:y,fetchNextPage:function(){v&&d(e=>e+1)},hasNextPage:v}}({catalogId:t,searchTerm:n});return zM.jsxs(zM.Fragment,{children:[zM.jsx(f.xr,{onScrollToBottom:()=>u&&o(s),style:{flexGrow:1,paddingTop:f.rS.space[10],paddingBottom:f.rS.space[16],paddingInline:f.rS.space[16],display:"flex",flexDirection:"column",gap:f.rS.space[12]},threshold:252,children:0===a.length?zM.jsx(Z4,{}):a.map(e=>zM.jsx(Z1,{item:e,catalogId:t,onClick:()=>r(e)},e.id))}),zM.jsx(Z3,{isLoading:i})]})}function Z4(e){let{message:t="We can't find any items matching your search"}=e;return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:t})]})})}function Z7(e){let{itemId:t,item:n}=e,r=zK();return t&&n&&n.id===t?zM.jsx(Jt,{...e,value:n.title}):t&&r.integrationFields?zM.jsx(f.SV,{renderError:()=>zM.jsx(Jt,{...e,value:t}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(Jt,{...e,value:t}),children:zM.jsx(Jn,{...e,itemId:t})},t)},t):t&&!r.integrationFields?zM.jsx(Jt,{...e,value:t}):zM.jsx(Jt,{...e,value:""})}function Z8(e){let{catalogId:t,itemId:n,item:r}=e,i=zK();return n&&r&&r.id===n?zM.jsx(f.mS,{children:zM.jsx(Z1,{catalogId:t,item:r})}):n&&i.integrationFields?zM.jsx(f.SV,{renderError:()=>null,children:zM.jsx(f.mS,{children:zM.jsx(c.Suspense,{fallback:zM.jsx(Z6,{}),children:zM.jsx(Je,{catalogId:t,itemId:n})},n)})},n):null}function Je(e){let{itemId:t,catalogId:n}=e,{item:r}=Z$({catalogId:n,itemId:t});return zM.jsx(Z1,{catalogId:n,item:r})}function Jt(e){let{id:t,field:n,readOnly:r,value:i,onFocus:o,onClearItem:a}=e;return zM.jsx(Zm,{id:t,placeholder:Zf(n),readOnly:!0,variant:"link",value:i,...!r&&{cursor:"pointer",onFocus:o},endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!i,onClick:a})})}function Jn(e){let{itemId:t,catalogId:n}=e,{item:r}=Z$({catalogId:n,itemId:t});return zM.jsx(Jt,{...e,value:r.title})}function Jr(e){var t;let{id:n,field:r,content:i,readOnly:o,onContentChange:a}=e,[u,s]=(0,c.useState)(!1),[l,d]=(0,c.useState)(),p=null==(t=r.config)?void 0:t.catalog;return p?zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.gN,{footer:zM.jsx(Z8,{catalogId:p,item:l,itemId:null==i?void 0:i.value}),children:[zM.jsx(f.fw,{name:"multipleStop"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(Z7,{id:n,field:r,readOnly:o,catalogId:p,item:l,itemId:null==i?void 0:i.value,onFocus:()=>s(!0),onClearItem:function(){a(void 0),d(void 0)}})})]}),zM.jsx(Z5,{open:u,onOpenChange:s,catalogId:p,onSelectItem:function(e){a({value:e.id,__TYPE__:"IntegrationFieldsContent"}),d(e),s(!1)}})]}):null}function Ji(e){let{content:t,field:n,id:r,onContentChange:i,readOnly:o}=e;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"notes"}),zM.jsx(f.Qy,{htmlFor:r,children:Zd(n)}),zM.jsx(f.JO,{children:zM.jsx(f.Kx,{id:r,placeholder:Zf(n),readOnly:o,paddingLeft:4,paddingRight:12,sx:{flexGrow:1},value:(null==t?void 0:t.value)??"",onChange(e){var t;i((t=e,0===t.length?void 0:{__TYPE__:"FieldContent",type:"Text",value:t}))}})})]})}function Jo(e){let{documentType:t,documentUrl:n,title:r,statusColor:i,description:o,tags:a,tagsFilter:u,previewImageUrl:s,onSelect:l}=e;return zM.jsxs(f.Zb,{paddingBlock:16,onSelect:function(e){return e.nativeEvent instanceof MouseEvent&&(e.metaKey||e.ctrlKey)?window.open(n,"_blank"):l()},children:[zM.jsx(f.aY,{children:zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsxs(f.xu,{flexDirection:"column",gap:4,alignItems:"flex-start",flexGrow:1,children:[zM.jsx(Ja,{documentType:t}),zM.jsx(Ju,{title:r,statusColor:i}),zM.jsx(Js,{description:o})]}),zM.jsx(Jl,{previewImageUrl:s})]})}),a.length>0&&zM.jsx(Jc,{tags:a,tagsFilter:u})]})}function Ja(e){let{documentType:t}=e;return zM.jsx(f.Ct,{maxWidth:150,size:"medium",title:`Type: ${t}`,icon:"description"})}function Ju(e){let{title:t,statusColor:n}=e;return zM.jsxs(f.xu,{gap:8,alignItems:"center",children:[zM.jsx(f.oT,{color:n}),zM.jsx(f.xv,{variant:"bold",children:t})]})}function Js(e){let{description:t}=e,n=null==t?void 0:t.substring(0,150);return n?zM.jsx(f.xv,{variant:"small",color:"grey11",children:`${n}${n!==t?"...":""}`}):zM.jsx(f.xv,{variant:"smallItalic",color:"grey11",children:"No description available"})}function Jl(e){let{previewImageUrl:t}=e;return zM.jsx(f.xu,{width:142,height:90,backgroundColor:"grey2",border:!0,borderRadius:6,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4,flexShrink:0,padding:8,children:t?zM.jsx(f.Ee,{src:t,sizing:"cover"}):zM.jsxs(zM.Fragment,{children:[zM.jsx(f.I5,{name:"hideImage",size:"large",color:"grey11"}),zM.jsx(f.xv,{color:"grey11",variant:"small",children:"No preview available"})]})})}function Jc(e){let{tags:t}=e;return zM.jsxs(f.eW,{children:[zM.jsxs(f.xu,{gap:4,alignItems:"center",children:[zM.jsx(f.I5,{name:"label",size:"small",color:"grey11"}),zM.jsx(f.xv,{variant:"small",color:"grey11",children:"Tags:"})]}),zM.jsx(f.lG,{children:t.map(e=>zM.jsx(f.Ct,{size:"medium",title:e,sx:{marginRight:8}},e))})]})}function Jd(e,t,n,r){return function(e,t,n,r,i){let o=new URL("documents",e);return r&&o.searchParams.set("limit",r.toString()),i&&o.searchParams.set("cursor",i),o.search+=`&${n}`,(0,y.WY)(o,{credentials:(0,y.xb)(t),okType:HP})}(e,n,r,30,t)}function Jf(){let e=zK();e.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:t,authStrategy:n}=e,r=(0,m.QT)(HV,[t,n]);return new Set(r.languages.map(e=>({id:e.id,label:e.name})))}function Jp(){let e=zK();e.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:t,authStrategy:n}=e,r=(0,m.QT)(HY,[t,n]);return new Set(r.results.map(e=>({id:e,label:e})))}function JA(){let e=zK();e.searchDocuments||zB("searchDocuments");let{customTypesApiBaseUrl:t,repository:n,authStrategy:r}=e,i=(0,m.QT)(Hj,[t,n,r]);return new Set(i)}function Jh(e){return e?(0,C.UI)(e,e=>({id:e,label:e})):new Set}function Jm(e){let{filteredLocales:t,setFilteredLocales:n,filteredTags:r,setFilteredTags:i,filteredCustomTypes:o,setFilteredCustomTypes:a,fixedTags:u,fixedCustomTypes:s}=e;return zM.jsxs(zM.Fragment,{children:[zM.jsx(Jv,{selectedValues:t,onSelectedValuesChange:n}),zM.jsx(Jg,{selectedValues:r,fixedSelectedValues:Jh(u),onSelectedValuesChange:i,label:"Tags",icon:"label",fetchFilters:Jp}),zM.jsx(Jg,{selectedValues:o,fixedSelectedValues:Jh(s),onSelectedValuesChange:a,label:"Type",icon:"description",fetchFilters:JA})]})}function Jg(e){let[t,n]=(0,c.useState)(!1),r=(0,c.useRef)(null);return zM.jsx(f.SV,{ref:r,renderError(){var i;return zM.jsx(f.R0,{mode:"error",onErrorRetry:null==(i=r.current)?void 0:i.reset,open:t,setOpen:n,values:new Set,...e})},children:zM.jsx(c.Suspense,{fallback:zM.jsx(f.R0,{mode:"loading",open:t,setOpen:n,values:new Set,...e}),children:zM.jsx(Jy,{open:t,setOpen:n,...e})})})}function Jy(e){let{open:t,setOpen:n,onSelectedValuesChange:r,fixedSelectedValues:i,selectedValues:o,label:a,icon:u,fetchFilters:s,multiple:l}=e,c=s();return zM.jsx(f.R0,{open:t,setOpen:n,label:a,icon:u,selectedValues:o,values:new Set(c),fixedSelectedValues:i,onSelectedValuesChange:r,multiple:l})}function Jv(e){let{selectedValues:t,onSelectedValuesChange:n}=e,[r,i]=(0,c.useState)((0,C.Ps)(t)),o=(0,C.sE)(Jf(),e=>{var n;return e.id===(null==(n=(0,C.Ps)(t))?void 0:n.id)});return(null==o?void 0:o.label)!==(null==r?void 0:r.label)&&i(o),zM.jsx(Jg,{selectedValues:new Set(r?[r]:[]),onSelectedValuesChange:function(e){n(e),i((0,C.Ps)(e))},label:"Locale",icon:"public",fetchFilters:Jf,multiple:!1})}function Jx(e){let{onSelectDocument:t,fixedCustomTypes:n,fixedTags:r,...i}=e,o=zK(),{searchTerm:a,filteredTags:u,setFilteredTags:s,filteredCustomTypes:l,setFilteredCustomTypes:d,filteredLocales:A,setFilteredLocales:h,typesFilter:m,tagsFilter:g}=function(e,t){let n=zK(),r=(0,p.$P)({initialState:""}),[i,o]=(0,c.useState)(new Set),[a,u]=(0,c.useState)(new Set),[s,l]=(0,c.useState)(function(){return n.searchDocuments&&n.localeId?new Set([{id:n.localeId,label:n.localeId}]):new Set}),d=(0,C.G0)(a,Jh(e)),f=(0,C.G0)(i,Jh(t));return{searchTerm:r,filteredTags:i,setFilteredTags:o,filteredCustomTypes:a,setFilteredCustomTypes:u,filteredLocales:s,setFilteredLocales:l,typesFilter:d,tagsFilter:f}}(n,r),[y,v]=(0,c.useTransition)();return zM.jsx(f.Vq,{size:{height:727,width:656},hasClose:!1,...i,children:zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",height:"100%",children:[zM.jsxs(f.xu,{padding:{top:16,inline:16,bottom:8},flexDirection:"column",gap:12,children:[zM.jsx(f.yt,{value:a.value,onValueChange:a.set,placeholder:"Search a page",icon:"search"}),o.searchDocuments&&zM.jsx(Jm,{filteredTags:u,setFilteredTags:s,filteredCustomTypes:l,setFilteredCustomTypes:d,filteredLocales:A,setFilteredLocales:h,fixedTags:r,fixedCustomTypes:n}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Link to a document"})]}),o.searchDocuments?zM.jsx(f.SV,{renderError:JC,children:zM.jsx(c.Suspense,{fallback:zM.jsx(JI,{}),children:zM.jsx(JS,{searchTerm:a.debouncedValue,tagsFilter:g,typesFilter:m,localesFilter:A,startTransition:v,onSelectDocument:t})})}):zM.jsx(Jw,{message:"Slice Machine does not yet support mock data for linked documents in the simulator."}),zM.jsx(Jb,{isLoading:y})]})})})}function Jb(e){let{isLoading:t}=e;return zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"relative",width:"100%",justifyContent:"center",bottom:72}),loadingIndicator:!0,open:t,title:"Loading more results ...",seconds:1})}function JC(){return zM.jsx(f.xu,{height:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",children:zM.jsx(f.Iq,{title:"Request failed",description:"An error occurred while fetching documents.",errorImageSrc:f.Os})})}function JS(e){let{searchTerm:t,tagsFilter:n,typesFilter:r,localesFilter:i,startTransition:o,onSelectDocument:a}=e,{documents:u,hasNextPage:s,fetchNextPage:l}=function(e){var t,n;let{searchTerm:r,tagsFilter:i,typesFilter:o,localesFilter:a}=e,u=zK();u.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:s,authStrategy:l,status:d}=u,[f,p]=(0,c.useState)(""),[A,h]=(0,c.useState)([]),[y,v]=(0,c.useState)(""),x=new URLSearchParams(HW([{name:"tags",values:[...(0,C.UI)(i,e=>e.id)]},{name:"customTypes",values:[...(0,C.UI)(o,e=>e.id)]},{name:"language",values:[...(0,C.UI)(a,e=>e.id)]},{name:"status",values:zO[d]},{name:"term",values:[r]}])).toString(),b=(0,m.QT)(Jd,[s,x===y?f:"",l,x]);x!==y?(v(x),p(""),h(b.results)):b.results.length>0&&(null==(t=(0,g.Z$)(A))?void 0:t.id)!==(null==(n=(0,g.Z$)(b.results))?void 0:n.id)&&h(e=>e.concat(b.results));let S=b.total!==A.length;return{documents:A,hasNextPage:S,fetchNextPage:function(){void 0!==b.cursor&&p(b.cursor)},response:b}}({searchTerm:t,tagsFilter:n,localesFilter:i,typesFilter:r}),d=zK();return zM.jsxs(f.xr,{onScrollToBottom:()=>s&&o(l),style:{flexGrow:1,paddingTop:f.rS.space[10],paddingBottom:f.rS.space[16],paddingInline:f.rS.space[16],display:"flex",flexDirection:"column",gap:f.rS.space[12]},children:[0===u.length&&zM.jsx(Jw,{}),u.map(e=>{let t=e.versions[0];if(!t)return null;let r=zR({documentId:e.id,versionId:"archived"===t.status?t.version_id:void 0,releaseId:"release"===t.status?t.release_id:void 0,status:t.status,baseUrl:d.baseUrl}),i=function(e){let{tags:t,tagsFilter:n}=e,r=[...n].map(e=>e.label).reverse();return(0,g.DY)(t,e=>-r.indexOf(e))}({tags:t.tags,tagsFilter:n});return zM.jsx(Jo,{documentType:t.custom_type_label,documentUrl:r,description:t.preview_summary,tags:i,title:e.title,previewImageUrl:t.preview_image,onSelect:()=>a(e.id),statusColor:zT[t.status].color},`${e.id}-${t.status}`)})]})}function Jw(e){let{message:t="We can't find any versions matching this request"}=e;return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:t})]})})}function JI(){return zM.jsx(f.xu,{flexDirection:"column",gap:12,padding:{top:10,inline:16,bottom:16},children:(0,g.w6)(1,5).map(e=>zM.jsx(f.Od,{height:150},e))})}function J_(e){let{hasLink:t,onUnlink:n,selectEnabled:r,selectedType:i,onValueChange:o,openInNewTab:a=!0,setOpenInNewTab:u}=e;return zM.jsxs(zM.Fragment,{children:[u&&"web"===i&&zM.jsx(f.zx,{startIcon:a?"checkBox":"checkBoxOutlinedBlank",color:"grey",size:"small",onClick:()=>u(!a),children:"Open in new tab"}),zM.jsxs(f.Ph,{value:i,color:"grey",size:"small",boldTriggerText:!0,startIcon:function(e){if(e)switch(e){case"document":return"description";case"web":return"public";case"media":return"image"}}(i),disabled:!r,onValueChange:o,placeholder:"Choose link type",children:[zM.jsx(f.Ql,{value:"web",icon:"public",children:"Link to web page"}),zM.jsx(f.Ql,{value:"document",icon:"description",children:"Link to Prismic page"}),zM.jsx(f.Ql,{value:"media",icon:"image",children:"Link to media"})]}),zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!t,onClick:n})]})}m.Fs.registerFetcherConfig(Jd,{cacheCapacity:500,revalidationStrategy:{type:"never"}});let JT={DocumentLink:"document",ExternalLink:"web",FileLink:"media",ImageLink:"media"},JO={document:"DocumentLink",web:"ExternalLink",media:"FileLink"},JR=Hs({id:Y5(),title:Y5()});function Jk(e,t,n){return(0,y.WY)(new URL(`documents/${n}`,e),{credentials:(0,y.xb)(t),okType:JR})}function JE(e){var t,n,r,i,o,a;let{media:u}=e,s="kind"in u;return s&&"image"===u.kind?{__TYPE__:"LinkContent",value:{__TYPE__:"ImageLink",id:u.id,name:u.filename,url:u.url,kind:u.kind,size:u.size.toString(),height:(null==(t=u.height)?void 0:t.toString())??"2000",width:(null==(n=u.width)?void 0:n.toString())??"2000",date:(null==(r=u.last_modified)?void 0:r.toString())??""}}:s?{__TYPE__:"LinkContent",value:{__TYPE__:"FileLink",id:u.id,name:u.filename,kind:u.kind,url:u.url,size:u.size.toString(),date:(null==(i=u.last_modified)?void 0:i.toString())??""}}:{__TYPE__:"LinkContent",value:{__TYPE__:"ImageLink",id:u.id,name:(null==u?void 0:u.alt)??u.url,kind:"image",url:u.url,size:"0",height:(null==(o=u.height)?void 0:o.toString())??"2000",width:(null==(a=u.width)?void 0:a.toString())??"2000"}}}function JM(e){var t,n;let{content:r,field:i,id:o,onContentChange:a,readOnly:u=!1}=e,[s,d]=(0,c.useState)(!1),[A,h]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[y,v]=(0,c.useState)(!1),{contentType:x,fieldValue:b,errorBoundaryRef:C,onDocumentSelected:S,onError:w,onMediaSelected:I,..._}=function(e){var t;let{field:n,content:r,onContentChange:i}=e,o=r?"DocumentLink"===r.value.__TYPE__?r.value.id:"ExternalLink"===r.value.__TYPE__?r.value.url:r.value.name:"",[a,u]=(0,c.useState)(function(){var e,t;return!(null!=(e=n.config)&&e.select)||null!=r&&r.value.__TYPE__?null==r?void 0:r.value.__TYPE__:JO[null==(t=n.config)?void 0:t.select]}),[s,l]=(0,c.useState)(()=>(null==r?void 0:r.value.__TYPE__)==="ExternalLink"?r.value.target:""),[d,f]=(0,c.useState)(!1),A=(0,c.useRef)(null);(0,p.pQ)(o,function(){var e;d&&(f(!1),null==(e=A.current)||e.reset())});let h=a?JT[a]:void 0;function m(e){if(!e)return i(void 0);switch(a){case"ExternalLink":return i({__TYPE__:"LinkContent",value:{__TYPE__:"ExternalLink",url:e,target:s}});case"DocumentLink":return i({__TYPE__:"LinkContent",value:{__TYPE__:"DocumentLink",id:e}});case"FileLink":case"ImageLink":case void 0:return i(void 0)}}function g(e){m(e)}return{contentType:a,selectType:h,fieldValue:o,onValueChange:m,onTypeChange:function(e){u(JO[e]),m("")},placeholder:Zf(n),isTypeSelectEnabled:!(null!=(t=n.config)&&t.select),onDocumentSelected:g,onError:function(){f(!0)},errorBoundaryRef:A,isTargetNewTab:"_blank"===s,updateWebLinkTarget:function(e){let t=e?"_blank":null;l(t),i({__TYPE__:"LinkContent",value:{__TYPE__:"ExternalLink",url:o,target:t}})},onMediaSelected:function(e){i(JE({media:e}))}}}({content:r,field:i,onContentChange:a}),T="ExternalLink"===x&&(0,l.ju)(b),O={id:o,contentType:x,onBlur:()=>d(!1),onFocus(){d(!0),"DocumentLink"===x&&g(!0),"FileLink"===x&&v(!0),"ImageLink"===x&&v(!0)},readOnly:u||!x,textType:T||"ImageLink"===x||"FileLink"===x?"link":"normal",value:b,..._},{searchDocuments:R}=zK();return zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.J2,{onMouseOverChange:h,open:s||A,align:"start",sideOffset:-3,openDelay:100,closeDelay:200,focusOnEnter:!1,anchor:zM.jsxs(f.gN,{onMouseOverChange:d,children:[zM.jsx(f.fw,{name:"link"}),zM.jsx(f.Qy,{htmlFor:o,children:Zd(i)}),zM.jsx(f.JO,{children:"DocumentLink"===x&&""!==b&&R?zM.jsx(JU,{errorBoundaryRef:C,onError:w,fallback:zM.jsx(JF,{...O,value:"..."}),renderError(){var e;return e=O,zM.jsx(JF,{...e,textType:"link"})},children:zM.jsx(Jj,{...O,documentId:b,openDocumentListModal:()=>g(!0)})}):zM.jsx(JF,{...O})})]}),children:[T&&zM.jsx(f.oZ,{url:T,title:(0,l.S$)(T)??"",subTitle:T.toString()}),(null==r?void 0:r.value.__TYPE__)==="ImageLink"&&zM.jsx(f.Qi,{url:r.value.url,title:r.value.name,subTitle:`${r.value.width} x ${r.value.height} pixels`})]}),zM.jsx(ZB,{open:y,onOpenChange:v,onMediaSelected:I,assetType:"all"}),zM.jsx(Jx,{open:m,onOpenChange:g,onSelectDocument(e){g(!1),S(e)},fixedCustomTypes:new Set(null==(t=i.config)?void 0:t.customtypes),fixedTags:new Set(null==(n=i.config)?void 0:n.tags)})]})}function JF(e){let{id:t,onValueChange:n,placeholder:r,readOnly:i,value:o,textType:a,onFocus:u,onBlur:s,contentType:l,isTypeSelectEnabled:c,selectType:d,onTypeChange:f,isTargetNewTab:p,updateWebLinkTarget:A}=e,h="DocumentLink"===l||"ImageLink"===l||"FileLink"===l;return zM.jsx(Zm,{id:t,onValueChange:n,placeholder:r,readOnly:i||h,value:o,variant:a,onFocus:u,onBlur:s,cursor:h?"pointer":"text",endAdornment:zM.jsx(J_,{hasLink:!!o,onUnlink:()=>n(""),selectEnabled:c,selectedType:d,onValueChange:f,openInNewTab:p,setOpenInNewTab:A})})}function Jj(e){let{id:t,documentId:n,openDocumentListModal:r,onValueChange:i,isTypeSelectEnabled:o,selectType:a,onTypeChange:u}=e,s=function(e){let t=zK();t.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:n,authStrategy:r}=t;return(0,m.QT)(Jk,[n,r,e]).title}(n);return zM.jsx(Zm,{id:t,readOnly:!0,value:s,variant:"link",onFocus:r,cursor:"pointer",endAdornment:zM.jsx(J_,{hasLink:!0,onUnlink:()=>i(""),selectEnabled:o,selectedType:a,onValueChange:u})})}function JU(e){let{errorBoundaryRef:t,onError:n,children:r,fallback:i,renderError:o}=e;return zM.jsx(f.SV,{ref:t,onError:n,renderError:o,children:zM.jsx(c.Suspense,{fallback:i,children:r})})}m.Fs.registerFetcherConfig(Jk,{concurrency:50});let JK=({content:e,field:t,id:n,onContentChange:r,readOnly:i})=>{var o,a;let u=Number(null==e?void 0:e.value),s=Number.isFinite(u)?u:void 0;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"pin"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(t)}),zM.jsx(f.JO,{children:zM.jsx(f.Y2,{id:n,value:s,min:null==(o=t.config)?void 0:o.min,max:null==(a=t.config)?void 0:a.max,padding:Zg,placeholder:Zf(t),readOnly:i,onValueChange(e){var t;return r((t=e,void 0===t?void 0:{__TYPE__:"FieldContent",type:"Number",value:String(t)}))}})})]})};function JL(e){this.content=e}JL.prototype={constructor:JL,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return -1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new JL(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new JL(n)},addToStart:function(e,t){return new JL([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new JL(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(-1==o?i.length:o,0,t,n),new JL(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=JL.from(e)).size?new JL(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=JL.from(e)).size?new JL(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=JL.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},JL.from=function(e){if(e instanceof JL)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new JL(t)};class JB{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,a=0;a<t;o++){let u=this.content[o],s=a+u.nodeSize;if(s>e&&!1!==n(u,r+a,i||null,o)&&u.content.size){let l=a+1;u.nodesBetween(Math.max(0,e-l),Math.min(u.content.size,t-l),n,r+l)}a=s}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(a,u)=>{a.isText?(i+=a.text.slice(Math.max(e,u)-u,t-u),o=!n):a.isLeaf?(r?i+="function"==typeof r?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),o=!n):!o&&a.isBlock&&(i+=n,o=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new JB(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let a=this.content[i],u=o+a.nodeSize;u>e&&((o<e||u>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=u}return new JB(n,r)}cutByIndex(e,t){return e==t?JB.empty:0==e&&t==this.content.length?this:new JB(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new JB(r,i)}addToStart(e){return new JB([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new JB(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),a=n.child(i);if(o==a){r+=o.nodeSize;continue}if(!o.sameMarkup(a))return r;if(o.isText&&o.text!=a.text){for(let u=0;o.text[u]==a.text[u];u++)r++;return r}if(o.content.size||a.content.size){let s=e(o.content,a.content,r+1);if(null!=s)return s}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,a=n.childCount;;){if(0==o||0==a)return o==a?null:{a:r,b:i};let u=t.child(--o),s=n.child(--a),l=u.nodeSize;if(u==s){r-=l,i-=l;continue}if(!u.sameMarkup(s))return{a:r,b:i};if(u.isText&&u.text!=s.text){let c=0,d=Math.min(u.text.length,s.text.length);for(;c<d&&u.text[u.text.length-c-1]==s.text[s.text.length-c-1];)c++,r--,i--;return{a:r,b:i}}if(u.content.size||s.content.size){let f=e(u.content,s.content,r-1,i-1);if(f)return f}r-=l,i-=l}}(this,e,t,n)}findIndex(e,t=-1){if(0==e)return JW(0,e);if(e==this.size)return JW(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=e)return i==e||t>0?JW(n+1,i):JW(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return JB.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new JB(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return JB.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new JB(t||e,n)}static from(e){if(!e)return JB.empty;if(e instanceof JB)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new JB([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}JB.empty=new JB([],0);let JP={index:0,offset:0};function JW(e,t){return JP.index=e,JP.offset=t,JP}function JD(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!JD(e[r],t[r]))return!1}else{for(let i in e)if(!(i in t)||!JD(e[i],t[i]))return!1;for(let o in t)if(!(o in e))return!1}return!0}let JN=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&JD(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};JN.none=[];class Jq extends Error{}class JQ{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:a}=t.findIndex(n),u=t.maybeChild(o);if(a==n||u.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let s=e(u.content,n-a-1,r);return s&&t.replaceChild(o,u.copy(s))}(this.content,e+this.openStart,t);return n&&new JQ(n,this.openStart,this.openEnd)}removeBetween(e,t){return new JQ(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),a=t.maybeChild(i),{index:u,offset:s}=t.findIndex(r);if(o==n||a.isText){if(s!=r&&!t.child(u).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=u)throw RangeError("Removing non-flat range");return t.replaceChild(i,a.copy(e(a.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return JQ.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new JQ(JB.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new JQ(e,n,r)}}function JV(e,t){if(!t.type.compatibleContent(e.type))throw new Jq("Cannot join "+t.type.name+" onto "+e.type.name)}function Jz(e,t,n){let r=e.node(n);return JV(r,t.node(n)),r}function JY(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function JH(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(JY(e.nodeAfter,r),o++));for(let u=o;u<a;u++)JY(i.child(u),r);t&&t.depth==n&&t.textOffset&&JY(t.nodeBefore,r)}function JG(e,t){return e.type.checkContent(t),e.copy(t)}function JZ(e,t,n){let r=[];return JH(null,e,n,r),e.depth>n&&JY(JG(Jz(e,t,n+1),JZ(e,t,n+1)),r),JH(t,null,n,r),new JB(r)}JQ.empty=new JQ(JB.empty,0,0);class JJ{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return JN.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let i=n;n=r,r=i}let o=n.marks;for(var a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new J1(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:a,offset:u}=o.content.findIndex(i),s=i-u;if(n.push(o,a,r+u),!s||(o=o.child(a)).isText)break;i=s-1,r+=u+1}return new JJ(t,n,i)}static resolveCached(e,t){for(let n=0;n<J$.length;n++){let r=J$[n];if(r.pos==t&&r.doc==e)return r}let i=J$[JX]=JJ.resolve(e,t);return JX=(JX+1)%J0,i}}let J$=[],JX=0,J0=12;class J1{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let J2=Object.create(null),J6=class e{constructor(e,t,n,r=JN.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||JB.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&JD(this.attrs,t||e.defaultAttrs||J2)&&JN.sameSet(this.marks,n||JN.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return JQ.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),u=r.node(o).content.cut(r.pos-a,i.pos-a);return new JQ(u,r.depth-o,i.depth-o)}replace(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new Jq("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Jq("Inconsistent open depths");return function e(t,n,r,i){let o=t.index(i),a=t.node(i);if(o==n.index(i)&&i<t.depth-r.openStart){let u=e(t,n,r,i+1);return a.copy(a.content.replaceChild(o,u))}if(!r.content.size)return JG(a,JZ(t,n,i));if(r.openStart||r.openEnd||t.depth!=i||n.depth!=i){let{start:s,end:l}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(JB.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return JG(a,function e(t,n,r,i,o){let a=t.depth>o&&Jz(t,n,o+1),u=i.depth>o&&Jz(r,i,o+1),s=[];return JH(null,t,o,s),a&&u&&n.index(o)==r.index(o)?(JV(a,u),JY(JG(a,e(t,n,r,i,o+1)),s)):(a&&JY(JG(a,JZ(t,n,o+1)),s),JH(n,r,o,s),u&&JY(JG(u,JZ(r,i,o+1)),s)),JH(i,null,o,s),new JB(s)}(t,s,l,n,i))}{let c=t.parent,d=c.content;return JG(c,d.cut(0,t.parentOffset).append(r.content).append(d.cut(n.parentOffset)))}}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return JJ.resolveCached(this,e)}resolveNoCache(e){return JJ.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),J3(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=JB.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let u=r;u<i;u++)if(!this.type.allowsMarks(n.child(u).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=JN.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!JN.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=JB.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};J6.prototype.text=void 0;class J5 extends J6{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):J3(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new J5(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new J5(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function J3(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class J9{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r=new J4(e,t);if(null==r.next)return J9.empty;let i=J7(r);r.next&&r.err("Unexpected trailing text");let o,a=(n=function(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(o(n,t)),[]);if("seq"==e.type)for(let a=0;;a++){let u=o(e.exprs[a],t);if(a==e.exprs.length-1)return u;i(u,t=n())}else if("star"==e.type){let s=n();return r(t,s),i(o(e.expr,s),s),[r(s)]}else if("plus"==e.type){let l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}else{if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let c=t;for(let d=0;d<e.min;d++){let f=n();i(o(e.expr,c),f),c=f}if(-1==e.max)i(o(e.expr,c),c);else for(let p=e.min;p<e.max;p++){let A=n();r(c,A),i(o(e.expr,c),A),c=A}return[r(c)]}if("name"==e.type)return[r(t,void 0,e.value)];throw Error("Unknown expr type")}}}(i),o=Object.create(null),function e(t){let r=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{if(!e)return;let i;for(let o=0;o<r.length;o++)r[o][0]==e&&(i=r[o][1]);$o(n,t).forEach(t=>{i||r.push([e,i=[]]),-1==i.indexOf(t)&&i.push(t)})})});let i=o[t.join(",")]=new J9(t.indexOf(n.length-1)>-1);for(let a=0;a<r.length;a++){let u=r[a][1].sort($i);i.next.push({type:r[a][0],next:o[u.join(",")]||e(u)})}return i}($o(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],o=!i.validEnd,a=[];for(let u=0;u<i.next.length;u++){let{type:s,next:l}=i.next[u];a.push(s.name),o&&!(s.isText||s.hasRequiredAttrs())&&(o=!1),-1==r.indexOf(l)&&r.push(l)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,a){let u=o.matchFragment(e,n);if(u&&(!t||u.validEnd))return JB.from(a.map(e=>e.createAndFill()));for(let s=0;s<o.next.length;s++){let{type:l,next:c}=o.next[s];if(!(l.isText||l.hasRequiredAttrs())&&-1==r.indexOf(c)){r.push(c);let d=i(c,a.concat(l));if(d)return d}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let o=[];for(let a=r;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let u=0;u<i.next.length;u++){let{type:s,next:l}=i.next[u];s.isLeaf||s.hasRequiredAttrs()||s.name in t||r.type&&!l.validEnd||(n.push({match:s.contentMatch,type:s,via:r}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i<t.next.length;i++)r+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return r}).join(`
|
|
7
|
+
from ${1===a?"it":"them"}.`]})}),zM.jsx(f.kX,{asFooter:!0,ok:{onClick:p,text:"Yes, I want to delete",color:"tomato",loading:l},cancel:{text:"Cancel"}})]})}function Zi(){let e=(0,c.useContext)(m.Nk);return zM.jsx(f.xu,{flexDirection:"column",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:"We couldn't load your media tags."}),zM.jsx(f.Qj,{children:zM.jsx(f.zx,{onClick:null==e?void 0:e.reset,size:"medium",children:"Try again"})})]})})}function Zo(){return zM.jsx(f.xu,{flexDirection:"column",gap:16,children:(0,g.w6)(1,6).map(e=>zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsx(f.Od,{height:24,width:85}),zM.jsx(f.Od,{height:24,width:45})]},e))})}function Za(){let e=GP(),{onFilesUpload:t,isUploading:n,tagManagerOpen:r}=Gf();return 0===e.length&&!1===r?zM.jsx(Gw,{onFilesUpload:t,isUploading:n}):zM.jsx(f.xu,{flexDirection:"column",backgroundColor:"grey1",width:"100%",padding:16,gap:16,borderRadius:{topLeft:8,topRight:8},children:r?zM.jsx(Ze,{}):zM.jsxs(zM.Fragment,{children:[zM.jsx(GW,{}),zM.jsx(Gq,{}),zM.jsx(G6,{})]})})}function Zu(){let e=zN();return zM.jsx(GS,{hasSelectedMedia:0!==e.selectedCount,children:zM.jsx(Za,{})})}function Zs(e){var t;let{assetType:n,onSelectedChange:r,actionContainerRef:i}=e,o=zK(),a=(t=o,"assetsApiBaseUrl"in t&&t.assetsApiBaseUrl.host.includes("wroom-beta.com"));return zM.jsx(f.SV,{renderError:()=>zM.jsx(Gy,{}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(GI,{actionContainerRef:i}),children:zM.jsx(zD,{isSelectAllEnabled:a,children:zM.jsx(Gd,{assetType:n,actionContainerRef:i,onSelectedChange:r,children:zM.jsx(Gm,{children:zM.jsx(Zl,{})})})})})})}function Zl(){let{media:e}=Gf();return zM.jsx(GE,{children:zM.jsx(Gv,{sidePane:zM.jsx(Zu,{}),mediaActions:zM.jsx(Gp,{}),mediaToolbar:zM.jsx(GU,{}),mediaList:0===e.length?zM.jsx(zV,{}):zM.jsx(Gb,{})})})}(0,c.createContext)({editedUID:{current:!1},onEditUID(){}});let Zc=(0,c.createContext)({update(){}});function Zd(e){var t;return(null==(t=e.config)?void 0:t.label)??("Boolean"===e.type||"Separator"===e.type?void 0:e.fieldset)??e.type}function Zf(e,t){var n,r,i;return"Boolean"===e.type?(t?null==(n=e.config)?void 0:n.placeholder_true:null==(r=e.config)?void 0:r.placeholder_false)||"...":(null==(i=e.config)?void 0:i.placeholder)||"..."}function Zp(e){var t;let{content:n,field:r,id:i,readOnly:o,onContentChange:a}=e,u=(null==n?void 0:n.value)??(null==(t=r.config)?void 0:t.default_value)??!1;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"biToggle"}),zM.jsx(f.Qy,{htmlFor:i,children:Zd(r)}),zM.jsxs(f.JO,{children:[zM.jsx(f.xu,{padding:4,alignItems:"center",children:zM.jsx(f.xv,{children:Zf(r,u)})}),zM.jsx(f.rs,{id:i,sx:{alignSelf:"center",marginLeft:"auto",marginRight:12},checked:u,onCheckedChange(e){var t;o||a((t=e,{__TYPE__:"BooleanContent",value:t}))}})]})]})}function ZA(e){let{id:t,field:n,content:r,onContentChange:i}=e;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"colorLens"}),zM.jsx(f.Qy,{id:t,children:Zd(n)}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{padding:{left:4},alignItems:"center",children:zM.jsx(f.TC,{onValueChange(e){var t;return i((t=e,void 0===t?void 0:{__TYPE__:"FieldContent",type:"Color",value:t}))},value:null==r?void 0:r.value,"aria-labelledby":t,placeholder:Zf(n)})})})]})}function Zh(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=null!=i&&i.value?(0,A._O)(i.value):void 0;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"dateRange"}),zM.jsx(f.Qy,{id:t,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{padding:{left:4,right:12},width:"100%",flexDirection:"column",justifyContent:"center",children:zM.jsx(f.Wr,{mode:"date","aria-labelledby":t,disabled:n,value:a,onValueChange:e=>o(function(e){if(e)return{__TYPE__:"FieldContent",type:"Date",value:function(e){let t=`${e.getFullYear()}`.padStart(4,"0"),n=`${e.getMonth()+1}`.padStart(2,"0"),r=`${e.getDate()}`.padStart(2,"0");return`${t}-${n}-${r}`}(e)}}(e))})})})]})}let Zm=(0,c.forwardRef)(function(e,t){return zM.jsx(f.oi,{padding:Zg,...e,ref:t,sx:{...e.sx,alignSelf:"stretch"}})}),Zg={input:{inline:4},adornment:{inline:12}},Zy=({provider:e})=>Zv[e.toLowerCase()]??zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6524_22412)",children:zM.jsx("path",{d:"M7.99992 1.33333C4.31992 1.33333 1.33325 4.32 1.33325 8C1.33325 11.68 4.31992 14.6667 7.99992 14.6667C11.6799 14.6667 14.6666 11.68 14.6666 8C14.6666 4.32 11.6799 1.33333 7.99992 1.33333ZM2.66659 8C2.66659 7.59333 2.71992 7.19333 2.80659 6.81333L5.99325 10V10.6667C5.99325 11.4 6.59325 12 7.32658 12V13.2867C4.70658 12.9533 2.66659 10.7133 2.66659 8ZM11.9266 11.6C11.7533 11.06 11.2599 10.6667 10.6599 10.6667H9.99325V8.66667C9.99325 8.3 9.69325 8 9.32658 8H5.32658V6.66667H6.65992C7.02658 6.66667 7.32658 6.36667 7.32658 6V4.66667H8.65992C9.39325 4.66667 9.99325 4.06667 9.99325 3.33333V3.06C11.9466 3.84667 13.3333 5.76667 13.3333 8C13.3333 9.38667 12.7933 10.6533 11.9266 11.6Z",fill:"#6F6E77"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6524_22412",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),Zv={codepen:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22409)",children:zM.jsx("path",{d:"M15.9879 5.44292C15.9843 5.42352 15.981 5.40413 15.9759 5.38517C15.9726 5.37375 15.9688 5.36298 15.9651 5.35177C15.9597 5.33497 15.9541 5.31816 15.9474 5.30179C15.9427 5.29037 15.9373 5.27938 15.9321 5.26839C15.9248 5.25288 15.9173 5.23758 15.9086 5.22271C15.9026 5.21172 15.8957 5.20138 15.889 5.19082C15.8798 5.1766 15.8703 5.1626 15.8599 5.14902C15.8524 5.13889 15.8446 5.1292 15.8365 5.1195C15.8257 5.10657 15.8141 5.09429 15.8024 5.08223C15.7934 5.07318 15.7843 5.06413 15.7748 5.05529C15.7623 5.04387 15.7494 5.0331 15.7358 5.02276C15.7255 5.01479 15.7154 5.0066 15.7046 4.99927C15.7007 4.99647 15.6973 4.99324 15.6932 4.99065L8.38116 0.115543C8.15039 -0.0385144 7.84939 -0.0385144 7.61863 0.115543L0.306176 4.99044C0.302082 4.99302 0.29885 4.99626 0.294756 4.99906C0.283983 5.0066 0.273856 5.01457 0.263514 5.02254C0.250155 5.0331 0.237011 5.04387 0.224515 5.05486C0.215034 5.06348 0.205985 5.07253 0.19715 5.0818C0.185084 5.09386 0.17388 5.10614 0.162892 5.11907C0.154704 5.12877 0.146947 5.13846 0.139406 5.14924C0.129064 5.16281 0.119583 5.1766 0.110318 5.19104C0.103639 5.20159 0.0969593 5.21194 0.0907108 5.22293C0.0820922 5.23779 0.0745509 5.25309 0.0674405 5.26817C0.0622694 5.27916 0.0566673 5.29037 0.0521425 5.30157C0.0454631 5.31795 0.0396456 5.33475 0.0342589 5.35156C0.030596 5.36276 0.0267177 5.37375 0.0237011 5.38388C0.0187455 5.40284 0.0150825 5.42201 0.0116351 5.44162C0.00969592 5.45153 0.00732581 5.46123 0.00603302 5.47136C0.00215465 5.50109 0 5.53082 0 5.56121V10.4372C0 10.4673 0.00215465 10.4975 0.00646395 10.527C0.00797221 10.5378 0.0107733 10.5464 0.0129279 10.5568C0.0163753 10.5762 0.0193919 10.5955 0.0258558 10.6149C0.0288723 10.6257 0.0323198 10.6365 0.0366291 10.6483C0.0420157 10.6656 0.0474023 10.6828 0.0538662 10.6985C0.058391 10.7093 0.0646395 10.7201 0.0689488 10.7309C0.0760591 10.7459 0.0840314 10.761 0.09265 10.7768C0.098683 10.7875 0.105578 10.7983 0.112042 10.8082C0.121307 10.8233 0.131434 10.8362 0.142207 10.8491C0.149748 10.8599 0.157289 10.8685 0.165908 10.8789C0.176897 10.8918 0.187455 10.9047 0.200382 10.9162C0.209217 10.9248 0.21762 10.9355 0.228393 10.942C0.24089 10.9528 0.254249 10.9636 0.267177 10.9748C0.277519 10.9834 0.288723 10.9898 0.297342 10.9982C0.301436 11.0004 0.303806 11.0047 0.308115 11.0067L7.61863 15.8841C7.73412 15.9617 7.86641 16.0005 8 15.9998C8.13359 15.9992 8.26588 15.9611 8.38137 15.8841L15.6938 11.0092C15.6979 11.0067 15.7014 11.0036 15.7052 11.0008C15.716 10.9933 15.7261 10.9853 15.7365 10.9773C15.7498 10.9668 15.763 10.9558 15.7755 10.9446C15.785 10.9362 15.794 10.9269 15.8031 10.9179C15.8149 10.9058 15.8263 10.8935 15.8371 10.8806C15.8453 10.8709 15.8531 10.8612 15.8606 10.8509C15.8709 10.8373 15.8804 10.8233 15.8897 10.8091C15.8964 10.7987 15.903 10.7882 15.9093 10.7776C15.9179 10.7625 15.9254 10.7472 15.9328 10.7317C15.9379 10.7207 15.9433 10.7097 15.9481 10.6985C15.9548 10.6819 15.9604 10.6651 15.9657 10.6483C15.9694 10.6371 15.9733 10.6261 15.9765 10.6149C15.9815 10.596 15.9849 10.5766 15.9886 10.5572C15.9903 10.5473 15.9929 10.5376 15.994 10.5275C15.9978 10.4977 16 10.468 16 10.4376V5.5625C16 5.53212 15.9976 5.50238 15.994 5.47265C15.9922 5.46209 15.989 5.45347 15.9869 5.44292H15.9879ZM7.99978 9.62638L5.56826 8.00005L7.99978 6.37351L10.4315 8.00005L7.99978 9.62638ZM7.31245 5.17919L4.33171 7.17288L1.92561 5.56336L7.31245 1.97221V5.17919ZM3.09515 7.99984L1.37531 9.15021V6.84947L3.09515 7.99984ZM4.33171 8.82765L7.31245 10.8211V14.0281L1.92561 10.4365L4.33171 8.82722V8.82765ZM8.68733 10.8207L11.6681 8.82722L14.0744 10.4365L8.68733 14.0277V10.8207ZM12.9046 8.00027L14.6247 6.84969V9.15064L12.9046 7.99984V8.00027ZM11.6681 7.17288L8.68733 5.1794V1.97221L14.0744 5.56336L11.6681 7.17288Z",fill:"black"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22409",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),codesandbox:zM.jsxs("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22406)",children:zM.jsx("path",{d:"M6.24312 14.1129V8.35021L1.28724 5.49888V8.78388L3.55732 10.0999V12.5702L6.24312 14.1129ZM7.53036 14.1468L10.2658 12.571V10.0422L12.5506 8.71812V5.47426L7.53036 8.3727V14.1468ZM11.8904 4.36906L9.25164 2.83995L6.93472 4.18436L4.60022 2.8386L1.93795 4.38817L6.90626 7.24665L11.8904 4.36906ZM0 12.0115V4.02675L6.91821 0L13.8378 4.00984V11.9988L6.91805 15.985L0 12.0115Z",fill:"black"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22406",children:zM.jsx("rect",{width:"13.8378",height:"16",fill:"white"})})})]}),dailymotion:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22345)",children:[zM.jsx("path",{d:"M16 0H0V16H16V0Z",fill:"white"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.73038 10.3003C8.40789 10.6268 8.00377 10.7901 7.51804 10.7901C7.04025 10.7901 6.64411 10.6308 6.32956 10.3122C6.01503 9.99367 5.85776 9.58351 5.85776 9.08176C5.85776 8.60389 6.01901 8.20766 6.3415 7.89306C6.66401 7.57847 7.06016 7.42118 7.52998 7.42118C7.84849 7.42118 8.13715 7.49484 8.39594 7.64219C8.65474 7.78953 8.8558 7.99063 8.99913 8.2455C9.14246 8.50034 9.21412 8.77908 9.21412 9.08176C9.21412 9.56757 9.05287 9.97376 8.73038 10.3003ZM9.10662 3.58632V6.35792C8.82791 6.07918 8.53131 5.87808 8.21678 5.75463C7.90223 5.63118 7.54988 5.56946 7.1597 5.56946C6.53062 5.56946 5.96527 5.72476 5.4636 6.03538C4.96193 6.34597 4.57176 6.77007 4.29305 7.30768C4.01435 7.84528 3.875 8.44062 3.875 9.09369C3.875 9.76269 4.01236 10.366 4.28708 10.9036C4.5618 11.4412 4.95197 11.8653 5.45763 12.1759C5.96328 12.4865 6.54258 12.6418 7.19553 12.6418C8.14312 12.6418 8.80403 12.3312 9.17831 11.71H9.20218V12.5595H11.0894V3.15625L9.10662 3.58632Z",fill:"#232323"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22345",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),flickr:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("rect",{width:"16",height:"16",fill:"white"}),zM.jsxs("g",{clipPath:"url(#clip0_6523_22379)",children:[zM.jsx("path",{d:"M8.43286 7.78387C8.43286 9.321 9.67925 10.5674 11.2166 10.5674C12.7538 10.5674 13.9999 9.321 13.9999 7.78387C13.9999 6.24675 12.7538 5.00061 11.2166 5.00061C9.67925 5.00061 8.43286 6.24675 8.43286 7.78387Z",fill:"#FF0084"}),zM.jsx("path",{d:"M2 7.78408C2 9.32121 3.24614 10.5676 4.78352 10.5676C6.32089 10.5676 7.56703 9.32121 7.56703 7.78408C7.56703 6.24695 6.32089 5.00081 4.78352 5.00081C3.24614 5.00081 2 6.24695 2 7.78408Z",fill:"#0063DC"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22379",children:zM.jsx("rect",{width:"12",height:"5.568",fill:"white",transform:"translate(2 5)"})})})]}),giphy:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("rect",{width:"16",height:"16",fill:"#121212"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3.38889V12.2778H5.11111V3.38889H4Z",fill:"#00FF99"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6663 5.61111V12.2778H11.7774V5.61111H10.6663Z",fill:"#9933FF"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.75 3H4V4.11111H8.83333V3H7.75Z",fill:"#FFF35C"}),zM.jsx("path",{d:"M9.00041 4.11111H7.33374H8.83374V3.77778L9.00041 4.11111Z",fill:"#999999"}),zM.jsx("path",{d:"M8.83374 4.11111H7.33374L8.44485 3L8.83374 3.77778V4.11111Z",fill:"#999237"}),zM.jsx("path",{d:"M10.6663 7.44444V5.77778L11.7774 6.33333L10.6663 7.44444Z",fill:"#5C1F99"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6667 11.8889H4V13H11.7778V11.8889H10.6667Z",fill:"#00CCFF"}),zM.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6668 5.22222V4.11111H9.55569V3H8.44458V3.90739V5.0185V6.33333H9.55569H10.6668H11.7779V5.22222H10.6668Z",fill:"#FF6666"})]}),instagram:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22356)",children:[zM.jsx("mask",{id:"mask0_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:zM.jsx("path",{d:"M4.70325 0.0949238C3.85627 0.1349 3.27778 0.270564 2.77227 0.468642C2.24897 0.672648 1.80537 0.946046 1.36408 1.38914C0.922279 1.83249 0.650958 2.27688 0.448504 2.8007C0.252489 3.3075 0.119662 3.88627 0.0822604 4.73377C0.045126 5.58283 0.0366102 5.85363 0.0407495 8.01522C0.0448729 10.1765 0.0544124 10.4479 0.0949012 11.2972C0.135388 12.1439 0.270546 12.7222 0.468623 13.2279C0.672886 13.7512 0.946004 14.1946 1.38935 14.6361C1.83245 15.0777 2.27708 15.3487 2.80115 15.5515C3.30744 15.7472 3.88644 15.8806 4.73369 15.9177C5.58273 15.9551 5.85379 15.9634 8.01483 15.9592C10.1769 15.9551 10.448 15.9456 11.297 15.9053C12.144 15.8648 12.722 15.7292 13.228 15.5316C13.7513 15.3268 14.1949 15.0542 14.6362 14.6109C15.0775 14.1678 15.3488 13.7231 15.5512 13.199C15.7473 12.6927 15.8806 12.1137 15.9175 11.267C15.9546 10.4174 15.9634 10.1461 15.9593 7.98478C15.9551 5.8232 15.9453 5.55239 15.9051 4.7036C15.8649 3.85609 15.7292 3.27811 15.5314 2.77208C15.3269 2.24877 15.054 1.80567 14.6109 1.36387C14.1678 0.922574 13.7232 0.650729 13.1991 0.448785C12.6926 0.252768 12.1138 0.119166 11.2666 0.0825425C10.4175 0.0448876 10.1465 0.0366393 7.98465 0.0407642C5.82336 0.0448892 5.5523 0.0541772 4.70325 0.0949238ZM4.79611 14.485C4.02004 14.4512 3.59863 14.3222 3.31776 14.2142C2.94585 14.0703 2.68046 13.8977 2.40114 13.6205C2.12234 13.3422 1.94928 13.0776 1.80408 12.7064C1.69497 12.4255 1.5637 12.0046 1.52734 11.2286C1.48788 10.3896 1.47886 10.1378 1.47498 8.01237C1.47086 5.88742 1.47859 5.63569 1.51522 4.79593C1.54848 4.02038 1.67822 3.59843 1.78602 3.31782C1.92993 2.94539 2.10196 2.68051 2.37973 2.4012C2.65801 2.12187 2.92263 1.94933 3.29402 1.80412C3.57463 1.69451 3.99555 1.56426 4.77134 1.52738C5.61084 1.48766 5.8623 1.47915 7.98723 1.47502C10.1127 1.47089 10.3644 1.47838 11.2042 1.51526C11.9797 1.54904 12.4016 1.67749 12.682 1.78607C13.0541 1.92998 13.3195 2.1015 13.5986 2.37979C13.8777 2.65808 14.0507 2.92218 14.1959 3.29435C14.3055 3.57418 14.4358 3.99562 14.4724 4.77117C14.5124 5.61068 14.5214 5.8624 14.5253 7.98736C14.5294 10.1128 14.5217 10.3646 14.4848 11.2038C14.451 11.9799 14.3223 12.4016 14.214 12.6827C14.0701 13.0543 13.898 13.3197 13.62 13.5991C13.342 13.8773 13.0774 14.0509 12.7057 14.1961C12.4256 14.3055 12.0042 14.436 11.2289 14.4729C10.3894 14.5123 10.1379 14.5214 8.01225 14.5252C5.88732 14.5294 5.63586 14.5214 4.79611 14.485ZM11.2854 3.74493C11.2864 4.27211 11.7151 4.69896 12.2422 4.69792C12.7697 4.69689 13.1965 4.2685 13.1957 3.74132C13.1947 3.21414 12.7661 2.78704 12.2386 2.78807C11.7112 2.7891 11.2844 3.21775 11.2854 3.74493ZM3.91277 8.00773C3.91714 10.2653 5.75063 12.0913 8.0076 12.0869C10.2648 12.0825 12.0919 10.2495 12.0875 7.99201C12.0831 5.73526 10.2494 3.90819 7.99188 3.91257C5.73489 3.91696 3.90837 5.75073 3.91277 8.00773ZM5.34648 8.0049C5.3439 6.53969 6.52978 5.34942 7.99471 5.34683C9.45991 5.344 10.6504 6.52937 10.6533 7.99484C10.6561 9.46031 9.47022 10.6503 8.00477 10.6532C6.53984 10.656 5.34932 9.47037 5.34648 8.0049Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask0_6523_22356)",children:[zM.jsx("mask",{id:"mask1_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.5905 -0.583628H-0.603516V16.6106H16.5905V-0.583628Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask1_6523_22356)",children:[zM.jsx("mask",{id:"mask2_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.6701 -0.663237H-0.683105V16.6902H16.6701V-0.663237Z",fill:"white"})}),zM.jsxs("g",{mask:"url(#mask2_6523_22356)",children:[zM.jsx("mask",{id:"mask3_6523_22356",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"-1",y:"-1",width:"18",height:"18",children:zM.jsx("path",{d:"M16.6701 -0.663237H-0.683105V16.6902H16.6701V-0.663237Z",fill:"white"})}),zM.jsx("g",{mask:"url(#mask3_6523_22356)",children:zM.jsx("rect",{x:"-0.688721",y:"-0.665792",width:"17.3622",height:"17.3622",fill:"url(#pattern0)"})})]})]})]})]}),zM.jsxs("defs",{children:[zM.jsx("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:zM.jsx("use",{xlinkHref:"#image0_6523_22356",transform:"scale(0.000439947)"})}),zM.jsx("clipPath",{id:"clip0_6523_22356",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})}),zM.jsx("image",{id:"image0_6523_22356",width:"2273",height:"2275",xlinkHref:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAlgCWAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMAEAMCAwYAAFokAABijgAAd23/2wCEABALCwsMCxAMDBAXDw0PFxsUEBAUGx8XFxcXFx8eFxoaGhoXHh4jJSclIx4vLzMzLy9AQ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SxUqoFgIstSy1KILYKixUspLLQqBYspLLQILUsoFgpLLQILUsoBKtgEsoFCoAKSxQApKIALQAEogAAAAPXfD7/DjcMNWQAAAACgAAAACABBQAAAAAogAAAsAAAgoAALEogAAoAAEgoAAAKSiABAAApFEUAJRFEURRFEAAlVFigRRAJVsAlgFsWALAJZQLBSWKFQKlglWwEWKlVAsFRYqUQWxYJZalECxZSWKlEFsBFlqWCVbAQWwVFipZalVBbARZallAsFJZaBBallAQWpZQLBQEFqVUChUWAAWwAAUlgCgBQAEURYAAeu+H3+HF4Ya8gCiKAAAAAAQAWJQAAAAAFJRAAAgUAABBQAAIUQAAoACQAUAAAUQAIAAAKAAAQAAAAAAFSiACosUBKIBLLQIsUKgEsUKgVLALYBLLQICLLUogWLKSlgqBYsEq2AgtiwSxQqBYKSxUsUKgWCostSwSrYKgWC2LKSy1KILYspKWCospKWCostAgtSygIstAiygVKqAASy0AAKgAUAKAAAAA9d8Pv8OLwg15gAAAAAAgAsSgAAAAAAKgAAAQUAAAgCgAELKgACgAEgCgAAAogQAAKSgAACAFAAACURRFEWACUsWACVUCxYBbFglECpZQLBSWALBSWKBBalgCwVFipVQLAJZalgFsAlipZQLBUCpYJZaBBbAqWUlipVQWwEFsWUllqWKFQUlihUFqWAWwUlihUFqWAUlihSWAWgRZQAWwAACVUACgAABQAHrvh9/hxeEGvMAAAEAAAKgAAAAAABZUAAACFAAAEAUAAgUBABQAJAFAAABRAgABQABAABSUAgAAAAAAKiwABYsAIstAgEq2ASxQqASxQqBUsAtgEsUKgEstSwBYLYsEstAgWCksUKgWASy1LALYCC2ASy1KILYFiykstSykpYKgtSwC2CoLUsAtiykpYKgoFgpKWCgIKBUsoACLLQAAEqoAFAAAAA9d8Pv8ONwg15gAgAAACkAAAAAAAAKIAAEKAAAIAKAABFCAAKAASAUAACiBAACygAIAKSgEAAAAAAAAAJVQACWKAllAsWAWwCUQWxYAsFJYoEFRYqUQWwCWWpRAsFJYqVUCwCWWgQLFlJYqWUlLBb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DU/E/0v+P7/wCz/9k="})]})]}),pinterest:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6570_25513)",children:[zM.jsx("rect",{width:"15.996",height:"16",rx:"2",fill:"#CC2127"}),zM.jsx("path",{d:"M7.999 2C4.68555 2 2 4.68555 2 7.999C2 10.5406 3.58174 12.7102 5.81336 13.5861C5.76137 13.1121 5.71338 12.3843 5.83336 11.8644C5.94134 11.3964 6.53724 8.88285 6.53724 8.88285C6.53724 8.88285 6.35727 8.52291 6.35727 7.993C6.35727 7.15914 6.84119 6.53524 7.44309 6.53524C7.95501 6.53524 8.20297 6.91918 8.20297 7.3811C8.20297 7.89502 7.87502 8.66489 7.70705 9.37877C7.56507 9.97667 8.007 10.4626 8.5949 10.4626C9.66072 10.4626 10.4806 9.33878 10.4806 7.71505C10.4806 6.27929 9.44876 5.27345 7.975 5.27345C6.26729 5.27345 5.26546 6.55324 5.26546 7.87702C5.26546 8.39293 5.46342 8.94484 5.71138 9.24679C5.75937 9.30678 5.76737 9.35877 5.75337 9.41876C5.70738 9.60873 5.6074 10.0167 5.5874 10.0987C5.56141 10.2086 5.50142 10.2326 5.38743 10.1786C4.63756 9.83069 4.16964 8.73488 4.16964 7.85502C4.16964 5.96334 5.54541 4.22563 8.13298 4.22563C10.2146 4.22563 11.8304 5.70938 11.8304 7.69105C11.8304 9.75871 10.5266 11.4224 8.71688 11.4224C8.10898 11.4224 7.53708 11.1065 7.34111 10.7345C7.34111 10.7345 7.04116 11.8804 6.96717 12.1603C6.83119 12.6822 6.46526 13.3341 6.2213 13.732C6.7832 13.906 7.3791 14 7.997 14C11.3104 14 13.996 11.3144 13.996 8.001C13.998 4.68555 11.3124 2 7.999 2Z",fill:"white"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6570_25513",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),spotify:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("g",{clipPath:"url(#clip0_6523_22402)",children:zM.jsx("path",{d:"M12.6609 7.10585C10.121 5.59751 5.93158 5.45882 3.50697 6.1947C3.11759 6.31287 2.70584 6.09298 2.5879 5.70373C2.46988 5.31411 2.68945 4.90265 3.07911 4.78429C5.86241 3.93945 10.4892 4.1026 13.4132 5.83828C13.7634 6.04622 13.8782 6.49851 13.6707 6.84813C13.4629 7.19833 13.0103 7.31376 12.6609 7.10585ZM12.5777 9.33993C12.3995 9.62908 12.0215 9.71979 11.7327 9.54223C9.61522 8.24063 6.38637 7.86357 3.88123 8.624C3.55636 8.72218 3.21323 8.53899 3.11455 8.21475C3.01666 7.88989 3.19992 7.54738 3.5242 7.44859C6.38597 6.58018 9.9436 7.00081 12.3756 8.49536C12.6644 8.67322 12.7553 9.05146 12.5777 9.33993ZM11.6136 11.4855C11.472 11.7177 11.1697 11.7904 10.9383 11.6489C9.08801 10.518 6.75909 10.2627 4.01637 10.8891C3.75207 10.9497 3.48866 10.7841 3.42838 10.5198C3.36785 10.2556 3.53284 9.99217 3.79772 9.93186C6.79916 9.2457 9.37381 9.54101 11.4506 10.8101C11.6822 10.9515 11.7551 11.254 11.6136 11.4855ZM8.00002 0.120623C3.64839 0.120623 0.120605 3.64834 0.120605 7.99989C0.120605 12.352 3.64839 15.8794 8.00002 15.8794C12.3517 15.8794 15.8794 12.352 15.8794 7.99989C15.8794 3.64834 12.3517 0.120623 8.00002 0.120623Z",fill:"#1ED760"})}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22402",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),twitter:zM.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:zM.jsx("path",{d:"M14.3193 4.31285C14.329 4.45301 14.329 4.59317 14.329 4.73462C14.329 9.04475 11.0516 14.0156 5.05865 14.0156V14.0131C3.28832 14.0156 1.55478 13.508 0.0644531 12.5507C0.321873 12.5817 0.580582 12.5972 0.839937 12.5979C2.30703 12.5992 3.7322 12.1063 4.88639 11.1988C3.4922 11.1724 2.26961 10.2623 1.84252 8.93366C2.3309 9.02796 2.83413 9.00858 3.31349 8.87746C1.79349 8.57001 0.699937 7.23299 0.699937 5.68023C0.699937 5.66602 0.699937 5.65246 0.699937 5.63889C1.15284 5.89144 1.65994 6.0316 2.17865 6.0471C0.747034 5.08923 0.305743 3.18251 1.17026 1.69176C2.82445 3.7296 5.2651 4.96844 7.8851 5.09956C7.62252 3.96664 7.98123 2.77947 8.82768 1.98307C10.1399 0.748096 12.2038 0.811395 13.4374 2.12452C14.167 1.98048 14.8664 1.71243 15.5064 1.33264C15.2632 2.0877 14.7541 2.72909 14.0741 3.13665C14.7199 3.06044 15.3509 2.88734 15.9451 2.62316C15.5077 3.2794 14.9567 3.85103 14.3193 4.31285Z",fill:"#1D9BF0"})}),vimeo:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsxs("g",{clipPath:"url(#clip0_6523_22340)",children:[zM.jsx("path",{d:"M16 14.4C16 15.28 15.28 16 14.4 16H1.6C0.72 16 0 15.28 0 14.4V1.6C0 0.72 0.72 0 1.6 0H14.4C15.28 0 16 0.72 16 1.6V14.4Z",fill:"#1AB7EA"}),zM.jsx("path",{d:"M13.9945 5.3084C13.9391 6.42815 13.1229 7.97447 11.5458 9.93402C9.91331 11.9736 8.52987 13 7.40928 13C6.70372 13 6.12267 12.3735 5.63846 11.1338C5.32027 9.98735 4.98824 8.85427 4.67005 7.70786C4.31036 6.46814 3.92299 5.84161 3.50796 5.84161C3.42495 5.84161 3.10676 6.02824 2.56721 6.38816L2 5.68165C2.59488 5.1751 3.17593 4.68187 3.75698 4.17532C4.54554 3.52214 5.14042 3.17555 5.54162 3.13556C6.46853 3.05557 7.04958 3.66877 7.27093 4.97514C7.50612 6.40149 7.67213 7.28129 7.75514 7.62788C8.01799 8.80095 8.32235 9.40081 8.64054 9.40081C8.88956 9.40081 9.26309 9.01423 9.77497 8.2544C10.273 7.49457 10.5497 6.90804 10.5774 6.50813C10.6465 5.85494 10.3837 5.52169 9.77497 5.52169C9.48444 5.52169 9.19392 5.58834 8.88956 5.70831C9.48444 3.84206 10.605 2.94893 12.2652 3.00225C13.4826 3.02891 14.0637 3.80207 13.9945 5.3084Z",fill:"white"})]}),zM.jsx("defs",{children:zM.jsx("clipPath",{id:"clip0_6523_22340",children:zM.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),youtube:zM.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zM.jsx("path",{d:"M15.6656 3.75817C15.4816 3.06609 14.9395 2.5211 14.2511 2.33614C13.0034 2 8 2 8 2C8 2 2.99666 2 1.7489 2.33614C1.06051 2.5211 0.518324 3.06609 0.334339 3.75817C0 5.01251 0 7.62963 0 7.62963C0 7.62963 0 10.2467 0.334339 11.5012C0.518324 12.1932 1.06051 12.7381 1.7489 12.9232C2.99666 13.2593 8 13.2593 8 13.2593C8 13.2593 13.0034 13.2593 14.2511 12.9232C14.9395 12.7381 15.4816 12.1932 15.6656 11.5012C16 10.2467 16 7.62963 16 7.62963C16 7.62963 16 5.01251 15.6656 3.75817Z",fill:"#ED1D24"}),zM.jsx("path",{d:"M6.36353 10.0058L10.5453 7.62974L6.36353 5.25349V10.0058Z",fill:"white"})]})};function Zx(e){let{debouncedUrl:t,content:n,onContentChange:r,selected:i}=e,o=(0,c.useRef)(null),[a,u]=(0,c.useState)(!1);return(0,p.pQ)(t,()=>{var e;a&&(u(!1),null==(e=o.current)||e.reset())}),(0,l.ju)(t)?t===(null==n?void 0:n.embed_url)?zM.jsx(ZC,{content:n,selected:i}):zM.jsx(f.SV,{ref:o,renderError:Zb,onError:function(){u(!0),r(void 0)},children:zM.jsx(c.Suspense,{fallback:n&&zM.jsx(ZC,{content:n,selected:i}),children:zM.jsx(ZS,{url:t,selected:i,onContentChange:r})})}):null}function Zb(){return zM.jsxs(f.xu,{backgroundColor:"grey2",borderRadius:6,padding:16,gap:4,children:[zM.jsx(f.I5,{name:"alert",size:"small",color:"grey11"}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"There is no embed data available."})]})}function ZC(e){let{content:t,selected:n}=e,{thumbnail:r,provider:i,author:o,url:a,subtitle:u}=function(e){let t="";switch(e.type){case"video":t=e.title??"";break;case"photo":t=`View this post${e.provider_name?` on ${e.provider_name}`:""}`;break;default:t=`Open${e.provider_name?` on ${e.provider_name}`:""}`}return{url:e.embed_url,thumbnail:{url:e.thumbnail_url??"",aspectRatio:"video"===e.type?"16:9":"1:1"},provider:e.provider_name??"",author:e.author_name??"",subtitle:t}}(t);return zM.jsxs(f.oU,{selected:n,children:[zM.jsx(f.Sy,{src:r.url,aspectRatio:r.aspectRatio}),zM.jsxs(f.Tw,{children:[zM.jsxs(f.xu,{display:"flex",alignItems:"center",gap:4,children:[zM.jsx(Zy,{provider:i}),zM.jsx(f.xv,{variant:"smallBold",color:"grey12",noWrap:!0,children:i}),o&&zM.jsx(f.xv,{variant:"small",color:"grey11",noWrap:!0,children:o})]}),zM.jsx(f.xv,{variant:"smallBold",href:a,children:u})]})]})}function ZS(e){let{url:t,onContentChange:n,selected:r}=e,i=function(e){let{url:t,onContentChange:n}=e,{embedApiEndpoint:r}=zK(),i=(0,m.QT)(Zw,[t,r]),o=(0,p.R9)(n);return(0,c.useEffect)(()=>{let e=(0,f.rI)(()=>o(i));return()=>{clearTimeout(e)}},[i,o]),i}({url:t,onContentChange:n});return zM.jsx(ZC,{content:i,selected:r})}function Zw(e,t){var n;let r=new URL(t);return r.searchParams.set("url",e),(0,y.WY)(r,{okType:(n=e,HE.object({type:HE.string(),version:HE.string().or(HE.number()).nullish(),title:HE.string().nullish(),author_name:HE.string().nullish(),author_url:HE.string().nullish(),provider_name:HE.string().nullish(),provider_url:HE.string().nullish(),cache_age:HE.string().or(HE.number()).nullish(),thumbnail_url:HE.string().nullish(),thumbnail_width:HE.number().nullish(),thumbnail_height:HE.number().nullish(),html:HE.string().nullish()}).passthrough().transform(e=>{let t={embed_url:n};return{...t,__TYPE__:"EmbedContent",type:e.type,version:e.version,title:e.title,author_name:e.author_name,author_url:e.author_url,provider_name:e.provider_name,provider_url:e.provider_url,cache_age:e.cache_age,thumbnail_url:e.thumbnail_url,thumbnail_width:e.thumbnail_width,thumbnail_height:e.thumbnail_height,html:e.html,all:{...t,...e}}}))})}function ZI(e){let{id:t,readOnly:n,field:r,content:i,onContentChange:o}=e,a=(0,p.$P)({initialState:(null==i?void 0:i.embed_url)??"",startTransition:c.startTransition});function u(e){a.set(e),(0,l.ju)(e)||o(void 0)}return zM.jsxs(f.gN,{footer:(0,l.ju)(a.value)&&zM.jsx(f.mS,{children:zM.jsx(Zx,{debouncedUrl:a.debouncedValue,content:i,onContentChange:o})}),children:[zM.jsx(f.fw,{name:"cloud"}),zM.jsx(f.Qy,{htmlFor:t,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(Zm,{id:t,readOnly:n,placeholder:Zf(r),value:a.value,onValueChange:u,variant:(0,l.ju)(a.value)?"link":"normal",endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!a,onClick:()=>u("")})})})]})}function Z_(e){return!(e.lat>85||e.lat<-85||e.lng>180||e.lng<-180)}function ZT(e){let t=e.match(/^.*@(-?\d+.\d+),(-?\d+.\d+).*$/);if(!t)return;let n=parseFloat(t[1]??""),r=parseFloat(t[2]??"");if(isNaN(n)||isNaN(r))return;let i={lat:n,lng:r};if(Z_(i))return i}function ZO(e){return e?`${e.lat}, ${e.lng}`:""}function ZR(e){let t=e.match(/\(?([\d|.|-]*)[\s+]*,[\s]*([\d|.|-]*)\)?/);if(!t)return ZT(e);let n=parseFloat(t[1]??""),r=parseFloat(t[2]??"");if(isNaN(n)||isNaN(r))return ZT(e);let i={lat:n,lng:r};return Z_(i)?i:ZT(e)}function Zk(e){let{field:t,id:n,readOnly:r,...i}=e,{onValueChange:o,displayedValue:a,onBlur:u,clearValue:s,isValidCoordinates:l}=function(e){let{content:t,onContentChange:n}=e,r=ZO(null==t?void 0:t.position),[i,o]=(0,c.useState)(r),a=!!ZR(i);return{displayedValue:i,isValidCoordinates:a,onValueChange:o,onBlur:function(){let e=ZR(i);if(!e)return o(""),n(void 0);let{lat:t,lng:r}=e;o(ZO({lat:t,lng:r})),n({__TYPE__:"GeoPointContent",position:{lat:t,lng:r}})},clearValue:function(){o(""),n(void 0)}}}(i);return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"place"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(t)}),zM.jsx(f.JO,{children:zM.jsx(Zm,{id:n,onValueChange:o,placeholder:"...",readOnly:r,value:a,onBlur:u,variant:l?"link":"normal",endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!a,onClick:s})})})]})}let ZE=Hs({id:Y5(),width:Y3(),height:Y3(),urls:Hs({full:Y5(),small:Y5().transform(function(e){let t=new URL(e);return t.searchParams.delete("q"),t.searchParams.delete("fm"),t.searchParams.set("w","300"),t.searchParams.set("auto","compress,format"),t.toString()})}),alt_description:Y5().optional(),description:Y5().nullable()}),ZM=Hs({results:Hu(ZE)}).transform(e=>e.results);function ZF(e,t){let n=new URL("search/photos",e);return n.searchParams.set("page","1"),n.searchParams.set("per_page","28"),n.searchParams.set("query",t),(0,y.WY)(n,{okType:ZM})}function Zj(e){let{onSelectedChange:t}=e,[n,r]=(0,c.useTransition)(),i=(0,p.$P)({initialState:"",ms:300,startTransition:r});return zM.jsxs(f.xu,{flexDirection:"column",gap:16,width:"100%",position:"relative",children:[zM.jsx(f.CR,{value:i.value,placeholder:"Search on Unsplash.com",onValueChange:i.set}),zM.jsx(f.SV,{renderError:()=>zM.jsx(Gy,{}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(ZL,{}),children:zM.jsx(ZU,{term:i.debouncedValue,loading:n,onSelectedChange:t})})})]})}function ZU(e){let{term:t,onSelectedChange:n,loading:r}=e,{media:i,toggleSelected:o,selectedImageId:a}=function(e){var t;let{term:n,onSelectedChange:r}=e,{unsplashApiBaseUrl:i}=zK(),o=function(e,t){let n=(0,c.useRef)(),r=zK(),i=(0,m.QT)(ZF,[e,t]);return(0,p.Nr)(t,1e3,()=>{var e;n.current&&t!==n.current&&(null==(e=r.onAnalyticsEvent)||e.call(r,"Unsplash Image Searched")),n.current=t}),i}(i,n||"citrus fruit"),a=null==(t=null==o?void 0:o[0])?void 0:t.id,[u,s]=(0,c.useState)();return(0,c.useEffect)(()=>{null==r||r([]),s(void 0)},[a,r]),{media:o,toggleSelected:function(e){if(e.id===u)return s(void 0),null==r?void 0:r([]);s(e.id),null==r||r([{...e,url:e.urls.full,alt:e.alt_description}])},selectedImageId:u}}({term:t,onSelectedChange:n});return zM.jsxs(zM.Fragment,{children:[zM.jsx(ZK,{children:null==i?void 0:i.map(e=>{let t=new URL(e.urls.full).searchParams.get("fm")??"jpg";return zM.jsx(f.PB,{url:e.urls.small,filename:e.description??"Unsplash Image",selected:a===e.id,onCardClick:()=>o(e),onCheckedChange:()=>o(e),extension:t,width:e.width,height:e.height,loading:r},e.id)})}),0===i.length&&zM.jsx(zV,{})]})}function ZK(e){let{children:t}=e;return zM.jsx(f.xr,{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 250px), 1fr))",gap:16,paddingBottom:16,position:"relative",width:"100%"},children:t})}function ZL(){return zM.jsx(ZK,{children:(0,g.w6)(1,24).map(e=>zM.jsx(GR,{},e))})}function ZB(e){let{open:t,onOpenChange:n,onMediaSelected:r,assetType:i}=e,o=zK(),a=o.mediaLibrary,[u,s]=(0,c.useState)(()=>a?"media":"unsplash"),[l,d]=(0,c.useState)(new Set),[A,h]=(0,c.useState)([]),g=l.size+A.length,y=(0,m.q_)(H5);function v(e){e||d(new Set),n(e)}(0,c.useEffect)(()=>{t&&a&&Gt({config:o,assetType:i})},[t,o,i,a]);let x=function(e){let{assetType:t,mediaDialogOpen:n}=e,r=zK(),i=(0,m.q_)(H5),o=(0,c.useRef)(0);return(0,c.useEffect)(()=>{n&&(o.current=performance.now())},[n]),function(e){if(!r.onAnalyticsEvent||!r.mediaLibrary)return;let n=i[i.length-1];if(!n)return;let{keyword:a,tags:u}=n,s=H7(i,t,a,u),l=r.useOpenSearch&&a?"1":"0",c=String(a.split(" ").length),d=String(n.total),f=s.findIndex(t=>t.id===e),p=String(f+1),A=[e].join(","),h=(performance.now()-o.current).toFixed(0);r.onAnalyticsEvent("Media Added To Page",{useOpenSearch:l,assetType:t,searchQuery:a,numberOfWords:c,numberOfResults:d,searchPosition:p,mediaIds:A,timeToAddMediaToPage:h,tags:u})}}({assetType:i,mediaDialogOpen:t}),{containerRef:b}=(0,f.VY)();return zM.jsxs(f.Vq,{open:t,onOpenChange:v,size:{width:"min(calc(100% - 48px), 2000px)",height:"calc(100% - 30px)"},position:"center",onPointerDownOutside(e){b&&(0,p.DX)(b,e.target)&&e.preventDefault()},children:[zM.jsx(f.fK,{icon:"image",title:"Media library"}),zM.jsxs(f.Zp,{value:u,onValueChange:function(e){if("media"!==e&&"unsplash"!==e)throw Error(`Invalid option ${e}.`);s(e)},padding:"small",width:"auto",children:[a&&zM.jsx(f.T9,{value:"media",icon:"photo"}),zM.jsx(f.T9,{value:"unsplash",icon:"unsplash"})]}),zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",flexGrow:1,overflow:"hidden",children:[zM.jsx(zj,{}),zM.jsxs(f.xu,{overflow:"hidden",backgroundColor:"grey3",padding:{top:16,inline:16},flexGrow:1,children:["media"===u&&zM.jsx(Zs,{assetType:i,onSelectedChange:d}),"unsplash"===u&&zM.jsx(Zj,{onSelectedChange:h})]})]})}),zM.jsx(f.kX,{asFooter:!0,ok:{text:"Add to page",onClick:function(){var e;if("unsplash"===u){let t=A[0];if(!t)return;r(t),null==(e=o.onAnalyticsEvent)||e.call(o,"Unsplash Image Added")}else if("media"===u){let n=y.flatMap(e=>e.items).filter(e=>l.has(e.id))[0];if(!n)return;r(n),x(n.id)}v(!1)},disabled:1!==g,disabledTooltip:0===g?"Select a media item to add to the page":g>1?"Only one media item can be added to the page":void 0},cancel:{text:"Cancel"}})]})}function ZP(e){let{onMediaSelected:t,readOnly:n,isUpdating:r}=e,[i,o]=(0,c.useState)(!1);return zM.jsxs(f.aY,{children:[zM.jsx(f.Zb,{color:"grey3",variant:"outlined",radius:4,children:zM.jsx(f.aY,{children:zM.jsx(f.xu,{padding:{block:48},flexDirection:"column",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"cloudUpload"}),zM.jsx(f._T,{children:r?"Preparing your image...":"You haven't selected an image"}),!n&&zM.jsx(f.Qj,{children:zM.jsx(f.zx,{disabled:r,onClick:()=>o(!0),children:"Select image"})})]})})})}),zM.jsx(ZB,{open:i,onOpenChange:o,onMediaSelected:t,assetType:"image"})]})}function ZW(e){let{id:t,readOnly:n,altText:r,onValueChange:i,selected:o}=e;return zM.jsxs(f.gN,{selected:o,children:[zM.jsx(f.Qy,{htmlFor:t,children:"Alt text"}),zM.jsx(f.JO,{children:zM.jsx(f.xu,{flexGrow:1,height:40,children:zM.jsx(Zm,{id:t,placeholder:"Short description for the visually impaired",readOnly:n,value:r,onValueChange:i,padding:{input:{inline:12}}})})})]})}function ZD(e){let{contentView:t,croppedImage:n}=e,{width:r,height:i,x:o,y:a,zoom:u}=n,s=function(e){let{origin:t,croppedImage:n}=e,{x:r,y:i,width:o,height:a,cropHeight:u,cropWidth:s}=n,l=new URL(t.url),c=t.height!==a||t.width!==o;if(0!==r||0!==i||u!==t.height||s!==t.width){let d=[r,i,s,u].map(Math.round).join(",");l.searchParams.set("rect",d),l.searchParams.set("w",o.toString()),l.searchParams.set("h",a.toString())}return c&&(l.searchParams.set("w",o.toString()),l.searchParams.set("h",a.toString())),l.toString()}({origin:t.origin,croppedImage:n});return{...t,width:r,height:i,url:s,edit:{...t.edit,zoom:u,crop:{x:o,y:a}}}}function ZN(e){let{content:t,croppedImage:n}=e,r=ZD({contentView:t,croppedImage:n});return r.url===t.url?t:{...t,...r}}function Zq(e){let{selectedImage:t,imageCrop:n,setImageCrop:r}=e,{width:i,height:o,zoom:a,cropHeight:u,cropWidth:s}=n,l=t.contentView,d={x:n.x,y:n.y,width:s,height:u},[p,A]=(0,c.useState)(),h=(null==l?void 0:l.origin.url)??"",m=!(null!=t&&t.thumbnail.height&&null!=t&&t.thumbnail.width);function g(e,t){let i=parseInt(t);isNaN(i)||i<=0||!m||r({...n,[e]:i})}function y(e){r({...n,zoom:e})}return zM.jsxs(f.xu,{padding:{inline:24,block:16},flexDirection:"column",gap:16,height:"100%",overflowY:"auto",alignItems:"center",children:[zM.jsxs(f.xu,{gap:8,height:32,alignItems:"flex-start",width:"100%",children:[zM.jsx(f.u,{content:"Center",children:zM.jsx(f.zx,{color:"grey",size:"medium",startIcon:"centerFocusWeak",onClick:function(){A(ZQ),r({...n,...ZQ})}})}),zM.jsx(f.u,{content:"Cover",children:zM.jsx(f.zx,{color:"grey",size:"medium",startIcon:"zoomOutMap",onClick:function(){l&&(A(ZQ),r({...n,...ZQ,zoom:1,cropWidth:l.width,cropHeight:l.height}))}})}),zM.jsx(f.Z0,{orientation:"vertical"}),zM.jsx(f.yt,{prefix:"W",prefixTooltip:"Width",placeholder:"width",type:"number",size:"medium",value:String(i),onValueChange:e=>g("width",e),sx:{width:100},disabled:!m}),zM.jsx(f.yt,{prefix:"H",prefixTooltip:"Height",placeholder:"height",type:"number",size:"medium",value:String(o),onValueChange:e=>g("height",e),sx:{width:100},disabled:!m})]}),zM.jsx(f.fl,{image:h,aspect:i/o,crop:p??{x:0,y:0},onCropChange:A,zoom:a,onZoomChange:y,onCropAreaChange(e,t){var i;r({...n,cropWidth:t.width,cropHeight:t.height,x:t.x,y:t.y})},initialCroppedAreaPixels:d}),zM.jsx(f.xu,{width:"100%",maxWidth:320,children:zM.jsx(f.iR,{min:1,max:3,step:.01,value:[a],onValueChange:([e])=>y(e??1)})})]})}m.Fs.registerFetcherConfig(ZF,{cacheCapacity:5,revalidationStrategy:{type:"never"}});let ZQ={x:0,y:0};function ZV(e){let{trigger:t,initialImages:n}=e,{open:r,onOpenChange:i,ready:o,option:a,selectedImage:u,croppedImage:s,setCroppedImage:l,setReady:d,setOption:p}=function(e){let{initialImages:t,initialOption:n,onClose:r}=e,[i,o]=(0,c.useState)(h),[a,u]=(0,c.useState)(!1),[s,l]=(0,c.useState)(!1),[d,f]=(0,c.useState)(n),p=t[d],A=i[(null==p?void 0:p.thumbnail.name)??""];function h(){return t.reduce((e,t)=>(t.contentView&&(e[t.thumbnail.name]=function(e){let{x:t,y:n}=e.edit.crop,r=e.edit.zoom,{width:i,height:o}=e,{width:a,height:u}=e.origin,s=i/o,l=Math.min(a,u*s/r);return{x:t,y:n,width:i,height:o,zoom:r,cropWidth:l,cropHeight:l/s}}(t.contentView)),e),{})}return{open:a,ready:s,option:d,selectedImage:p,croppedImage:A,setCroppedImage:function(e){if(!p)return;let t=p.thumbnail.name;o({...i,[t]:e})},setReady:l,setOption:f,onClose:r,onOpenChange:function(e){e?(f(n),o(h())):(l(!1),r({option:d,croppedImages:i})),u(e)}}}(e);return zM.jsxs(f.Vq,{trigger:t,onAnimationEnd:()=>d(!0),open:r,onOpenChange:i,children:[zM.jsx(f.fK,{icon:"photo",title:"Image editor"}),zM.jsx(f.Zp,{value:String(a),onValueChange:e=>p(Number(e)),children:n.map((e,t)=>zM.jsx(f.T9,{value:String(t),icon:"photo",title:e.labels[0]??"Main",subtitle:e.labels[1]??""},e.thumbnail.name))}),u&&zM.jsx(f.cZ,{children:o&&s&&zM.jsx(Zq,{selectedImage:u,imageCrop:s,setImageCrop:l},u.thumbnail.name)})]})}function Zz(e){var t;let{url:n,selected:r,fieldLabel:i,readOnly:o,imageLabel:a,onMediaSelected:u,initialImages:s,initialOption:l=0,onCropperDialogClose:d,onClear:p,children:A}=e,[h,m]=(0,c.useState)(!1),g=(null==(t=null==n?void 0:n.split("?")[0])?void 0:t.slice(-4))===".svg";return zM.jsxs(f.Zb,{color:r?"indigo2":"grey2",variant:r?"selected":"dashed",radius:4,children:[zM.jsxs(f.Ol,{sx:{flexWrap:"wrap"},children:[zM.jsxs(f.wP,{children:[zM.jsx(f.xv,{noWrap:!0,children:(0,v.tx)(i,30)}),0!==a.length&&zM.jsx(f.xv,{color:"grey11",noSelect:!0,children:` • ${a.join(" • ")}`})]}),zM.jsxs(f.Pf,{sx:{visibility:n&&!o?"visible":"hidden"},children:[zM.jsx(ZV,{trigger:zM.jsx(f.zx,{startIcon:"crop",disabled:g,children:"Crop & Resize"}),initialImages:s,initialOption:l,onClose:d}),zM.jsx(f.zx,{startIcon:"imageSearch",onClick:()=>m(!0),children:"Replace"}),zM.jsx(f.zx,{onClick:p,startIcon:"delete",children:"Clear"})]})]}),A,zM.jsx(ZB,{open:h,onOpenChange:m,onMediaSelected:u,assetType:"image"})]})}function ZY(e){let{content:t,field:n,id:r,onContentChange:i,readOnly:o}=e,a=t&&t.origin.url.length>0,{onCropperDialogClose:u,onPageChange:s,onMediaSelected:l,isUpdating:f,page:p,thumbnail:A,allThumbnails:m,allContentViews:g,contentView:y,onClear:v}=function(e){var t;let{content:n,onContentChange:r,field:i}=e,[o,a]=(0,c.useState)(0),[u,s]=(0,c.useTransition)(),l=(t=i,(0,c.useMemo)(()=>{var e,n,r;return[{...null==(n=t.config)?void 0:n.constraint,name:Gz}].concat((null==(r=t.config)?void 0:r.thumbnails)??[])},[t])),f=l[o],p=n?function(e,t){var n,r;let{__TYPE__:i,thumbnails:o,...a}=t,u=null==(r=null==(n=e.config)?void 0:n.thumbnails)?void 0:r.map(({name:e})=>null==o?void 0:o[e]);return[a,...u??[]]}(i,n):void 0,A=null==p?void 0:p[o];return{onCropperDialogClose:function({option:e,croppedImages:t}){if(a(e),!n)return;let o=Object.entries(t).reduce((e,[t,n])=>(function(e){var t,n,r;let{field:i,content:o,thumbnail:a,croppedImage:u}=e;if(a===Gz)return ZN({content:o,croppedImage:u});let s=null==(n=null==(t=null==i?void 0:i.config)?void 0:t.thumbnails)?void 0:n.find(e=>e.name===a),l=null==(r=o.thumbnails)?void 0:r[a];if(!s||!l)return o;let c=ZD({contentView:l,croppedImage:u});return c.url===l.url?o:{...o,thumbnails:{...o.thumbnails,[a]:c}}})({field:i,content:e,thumbnail:t,croppedImage:n}),n);o!==n&&s(()=>r(o))},onPageChange:function(e){s(()=>a(e))},onMediaSelected:function(e){if(!f)return;let t=function(e,t,n,r){var i,o,a,u,s;if(!n||e===Gz){let l=null==(i=t.config)?void 0:i.thumbnails,c=l&&Object.fromEntries(l.map(e=>[e.name,GZ(r,e)]));return{__TYPE__:"ImageContent",...GZ(r,null==(o=t.config)?void 0:o.constraint),thumbnails:c}}let f=null==(u=null==(a=t.config)?void 0:a.thumbnails)?void 0:u.find(t=>t.name===e);if(!f)return n;let p=null==(s=n.thumbnails)?void 0:s[e],A=GZ(r,f);return A.url===(null==p?void 0:p.url)?n:{...n,thumbnails:(0,d.Q8)(n.thumbnails??{},(t,n)=>n===e?A:t)}}(f.name,i,n,e);t!==n&&s(()=>r(t))},isUpdating:u,page:o,thumbnail:f,allThumbnails:l,allContentViews:p,contentView:A,onClear:function(){null==a||a(0),r(void 0)}}}({field:n,content:t,onContentChange:i}),x=Zd(n),b=m.map((e,n)=>{let r=null==g?void 0:g[n];return{thumbnail:e,contentView:r,labels:GY(e,t,r)}}),C=A&&a?GY(A,t,y).filter(h.$):[];return zM.jsx(Zz,{url:null==t?void 0:t.url,fieldLabel:x,imageLabel:C,initialOption:p,initialImages:b,readOnly:o,onMediaSelected:l,onCropperDialogClose:u,onClear:v,children:zM.jsx(c.Suspense,{fallback:zM.jsx("div",{style:{height:466}}),children:A&&t&&a&&g?zM.jsx(ZH,{allContentViews:g,content:t,contentView:y,id:r,onContentChange:i,onPageChange:s,page:p,readOnly:o,thumbnailName:A.name,isUpdating:f}):zM.jsx(ZP,{onMediaSelected:l,readOnly:o,isUpdating:f})})})}function ZH(e){let{allContentViews:t,content:n,contentView:r,id:i,onContentChange:o,onPageChange:a,page:u,readOnly:s,thumbnailName:l,isUpdating:c}=e;return zM.jsxs(f.aY,{children:[zM.jsx(f.lr,{getItemSource:GG,items:t,onPageChange:a,page:u,style:{height:400},children:e=>(null==e?void 0:e.url)&&zM.jsx(f.d$,{"aria-label":"Image Field Item",src:GH(e.url),alt:e.alt??void 0,isUpdating:c},`${l}_${e.url}`)}),zM.jsx(ZW,{id:i,readOnly:s||!r,altText:(null==r?void 0:r.alt)??"",onValueChange(e){r&&o(function(e,t,n,r){let i=0===r.length?void 0:r;return e===Gz?{...t,alt:i}:{...t,thumbnails:{...t.thumbnails,[e]:{...n,alt:i}}}}(l,n,r,e))}})]})}function ZG(e,t,n,r,i,o=1,a=30){let u=new URL(`if/search/${r}`,e);return u.searchParams.set("searchTerm",i),u.searchParams.set("limit",a.toString()),u.searchParams.set("page",o.toString()),(0,y.WY)(u,{headers:{repository:n},credentials:(0,y.xb)(t),okType:ZJ})}let ZZ=HE.object({id:HE.string(),title:HE.string(),imageURL:HE.string().optional(),description:HE.string().optional()}),ZJ=HE.object({items:HE.array(ZZ),totalPages:HE.number(),page:HE.number()});function Z$(e){let{itemId:t,catalogId:n}=e,r=zK();r.integrationFields||zB("integrationFields");let{integrationFieldsApiBaseUrl:i,repository:o,authStrategy:a}=r,u=(0,m.QT)(ZX,[i,a,o,n,t]).items[0];if(!u)throw Error("Item not found");return{item:u}}function ZX(e,t,n,r,i){let o=new URL(`if/read/${r}`,e);return o.searchParams.set("ids",[i].toString()),(0,y.WY)(o,{headers:{repository:n},credentials:(0,y.xb)(t),okType:Z0})}let Z0=HE.object({items:HE.array(ZZ)});function Z1(e){let{item:t,onClick:n,catalogId:r}=e;return zM.jsxs(f.oU,{variant:"large",onClick:n,children:[zM.jsx(Z2,{src:t.imageURL??"",alt:t.title}),zM.jsxs(f.Tw,{children:[zM.jsx(f.Ct,{title:`Catalog: ${r}`,icon:"multipleStop",size:"medium"}),zM.jsx(f.xv,{variant:"bold",color:"grey12",sx:{marginTop:4},children:t.title}),zM.jsx(f.xv,{variant:"small",color:"grey11",children:t.description??t.id})]})]})}function Z2(e){let{src:t,alt:n}=e;return t?zM.jsx(f.Sy,{src:t,alt:n,width:76,height:76,framed:!0}):zM.jsxs(f.xu,{borderRadius:6,backgroundColor:"grey2",height:76,width:76,flexDirection:"column",alignItems:"center",justifyContent:"center",border:!0,padding:{inline:4,block:8},children:[zM.jsx(f.I5,{name:"hideImage",size:"large",color:"grey11"}),zM.jsx(f.xv,{color:"grey11",variant:"small",noSelect:!0,align:"center",children:"No preview image"})]})}function Z6(){return zM.jsxs(f.oU,{variant:"large",children:[zM.jsx(f.Od,{height:76,width:76}),zM.jsxs(f.Tw,{children:[zM.jsx(f.Od,{height:24,width:168}),zM.jsx(f.Od,{height:24,width:240,sx:{marginTop:4}}),zM.jsx(f.Od,{height:16,width:144})]})]})}function Z5(e){let{open:t,onOpenChange:n,catalogId:r,onSelectItem:i}=e,o=(0,p.$P)({initialState:""}),a=zK();return zM.jsx(f.Vq,{open:t,onOpenChange:n,hasClose:!1,size:{width:612,height:724},children:zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",height:"100%",children:[zM.jsxs(f.xu,{padding:{top:16,inline:16},flexDirection:"column",gap:8,children:[zM.jsx(f.CR,{value:o.value,onValueChange:o.set,placeholder:"Search in your catalog"}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Select an item"})]}),a.integrationFields?zM.jsx(f.SV,{renderError:()=>zM.jsx(Z4,{message:"There was an error while fetching your catalog items."}),children:zM.jsx(c.Suspense,{fallback:zM.jsxs(f.xu,{flexDirection:"column",gap:12,padding:{top:10,inline:16,bottom:16},children:[zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{}),zM.jsx(Z6,{})]}),children:zM.jsx(Z9,{searchTerm:o.debouncedValue,catalogId:r,onItemClick:i})})}):zM.jsx(Z4,{message:"Slice Machine does not yet support mock data for integration field in the simulator."})]})})})}function Z3(e){let{isLoading:t}=e;return zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"relative",width:"100%",justifyContent:"center",bottom:72}),loadingIndicator:!0,open:t,title:"Loading more results ...",seconds:1})}function Z9(e){let{catalogId:t,searchTerm:n,onItemClick:r}=e,[i,o]=(0,c.useTransition)(),{items:a,hasNextPage:u,fetchNextPage:s}=function(e){var t,n;let{searchTerm:r,catalogId:i}=e,o=zK();o.integrationFields||zB("integrationFields");let{integrationFieldsApiBaseUrl:a,repository:u,authStrategy:s}=o,[l,d]=(0,c.useState)(1),[f,p]=(0,c.useState)([]),[A,h]=(0,c.useState)(""),y=(0,m.QT)(ZG,[a,s,u,i,r,r===A?l:1]);r!==A?(h(r),d(1),p(y.items)):y.items.length>0&&(null==(t=(0,g.Z$)(f))?void 0:t.id)!==(null==(n=(0,g.Z$)(y.items))?void 0:n.id)&&p(e=>e.concat(y.items));let v=l<y.totalPages;return{items:f,response:y,fetchNextPage:function(){v&&d(e=>e+1)},hasNextPage:v}}({catalogId:t,searchTerm:n});return zM.jsxs(zM.Fragment,{children:[zM.jsx(f.xr,{onScrollToBottom:()=>u&&o(s),style:{flexGrow:1,paddingTop:f.rS.space[10],paddingBottom:f.rS.space[16],paddingInline:f.rS.space[16],display:"flex",flexDirection:"column",gap:f.rS.space[12]},threshold:252,children:0===a.length?zM.jsx(Z4,{}):a.map(e=>zM.jsx(Z1,{item:e,catalogId:t,onClick:()=>r(e)},e.id))}),zM.jsx(Z3,{isLoading:i})]})}function Z4(e){let{message:t="We can't find any items matching your search"}=e;return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:t})]})})}function Z7(e){let{itemId:t,item:n}=e,r=zK();return t&&n&&n.id===t?zM.jsx(Jt,{...e,value:n.title}):t&&r.integrationFields?zM.jsx(f.SV,{renderError:()=>zM.jsx(Jt,{...e,value:t}),children:zM.jsx(c.Suspense,{fallback:zM.jsx(Jt,{...e,value:t}),children:zM.jsx(Jn,{...e,itemId:t})},t)},t):t&&!r.integrationFields?zM.jsx(Jt,{...e,value:t}):zM.jsx(Jt,{...e,value:""})}function Z8(e){let{catalogId:t,itemId:n,item:r}=e,i=zK();return n&&r&&r.id===n?zM.jsx(f.mS,{children:zM.jsx(Z1,{catalogId:t,item:r})}):n&&i.integrationFields?zM.jsx(f.SV,{renderError:()=>null,children:zM.jsx(f.mS,{children:zM.jsx(c.Suspense,{fallback:zM.jsx(Z6,{}),children:zM.jsx(Je,{catalogId:t,itemId:n})},n)})},n):null}function Je(e){let{itemId:t,catalogId:n}=e,{item:r}=Z$({catalogId:n,itemId:t});return zM.jsx(Z1,{catalogId:n,item:r})}function Jt(e){let{id:t,field:n,readOnly:r,value:i,onFocus:o,onClearItem:a}=e;return zM.jsx(Zm,{id:t,placeholder:Zf(n),readOnly:!0,variant:"link",value:i,...!r&&{cursor:"pointer",onFocus:o},endAdornment:zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!i,onClick:a})})}function Jn(e){let{itemId:t,catalogId:n}=e,{item:r}=Z$({catalogId:n,itemId:t});return zM.jsx(Jt,{...e,value:r.title})}function Jr(e){var t;let{id:n,field:r,content:i,readOnly:o,onContentChange:a}=e,[u,s]=(0,c.useState)(!1),[l,d]=(0,c.useState)(),p=null==(t=r.config)?void 0:t.catalog;return p?zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.gN,{footer:zM.jsx(Z8,{catalogId:p,item:l,itemId:null==i?void 0:i.value}),children:[zM.jsx(f.fw,{name:"multipleStop"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(r)}),zM.jsx(f.JO,{children:zM.jsx(Z7,{id:n,field:r,readOnly:o,catalogId:p,item:l,itemId:null==i?void 0:i.value,onFocus:()=>s(!0),onClearItem:function(){a(void 0),d(void 0)}})})]}),zM.jsx(Z5,{open:u,onOpenChange:s,catalogId:p,onSelectItem:function(e){a({value:e.id,__TYPE__:"IntegrationFieldsContent"}),d(e),s(!1)}})]}):null}function Ji(e){let{content:t,field:n,id:r,onContentChange:i,readOnly:o}=e;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"notes"}),zM.jsx(f.Qy,{htmlFor:r,children:Zd(n)}),zM.jsx(f.JO,{children:zM.jsx(f.Kx,{id:r,placeholder:Zf(n),readOnly:o,paddingLeft:4,paddingRight:12,sx:{flexGrow:1},value:(null==t?void 0:t.value)??"",onChange(e){var t;i((t=e,0===t.length?void 0:{__TYPE__:"FieldContent",type:"Text",value:t}))}})})]})}function Jo(e){let{documentType:t,documentUrl:n,title:r,statusColor:i,description:o,tags:a,tagsFilter:u,previewImageUrl:s,onSelect:l}=e;return zM.jsxs(f.Zb,{paddingBlock:16,onSelect:function(e){return e.nativeEvent instanceof MouseEvent&&(e.metaKey||e.ctrlKey)?window.open(n,"_blank"):l()},children:[zM.jsx(f.aY,{children:zM.jsxs(f.xu,{justifyContent:"space-between",children:[zM.jsxs(f.xu,{flexDirection:"column",gap:4,alignItems:"flex-start",flexGrow:1,children:[zM.jsx(Ja,{documentType:t}),zM.jsx(Ju,{title:r,statusColor:i}),zM.jsx(Js,{description:o})]}),zM.jsx(Jl,{previewImageUrl:s})]})}),a.length>0&&zM.jsx(Jc,{tags:a,tagsFilter:u})]})}function Ja(e){let{documentType:t}=e;return zM.jsx(f.Ct,{maxWidth:150,size:"medium",title:`Type: ${t}`,icon:"description"})}function Ju(e){let{title:t,statusColor:n}=e;return zM.jsxs(f.xu,{gap:8,alignItems:"center",children:[zM.jsx(f.oT,{color:n}),zM.jsx(f.xv,{variant:"bold",children:t})]})}function Js(e){let{description:t}=e,n=null==t?void 0:t.substring(0,150);return n?zM.jsx(f.xv,{variant:"small",color:"grey11",children:`${n}${n!==t?"...":""}`}):zM.jsx(f.xv,{variant:"smallItalic",color:"grey11",children:"No description available"})}function Jl(e){let{previewImageUrl:t}=e;return zM.jsx(f.xu,{width:142,height:90,backgroundColor:"grey2",border:!0,borderRadius:6,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4,flexShrink:0,padding:8,children:t?zM.jsx(f.Ee,{src:t,sizing:"cover"}):zM.jsxs(zM.Fragment,{children:[zM.jsx(f.I5,{name:"hideImage",size:"large",color:"grey11"}),zM.jsx(f.xv,{color:"grey11",variant:"small",children:"No preview available"})]})})}function Jc(e){let{tags:t}=e;return zM.jsxs(f.eW,{children:[zM.jsxs(f.xu,{gap:4,alignItems:"center",children:[zM.jsx(f.I5,{name:"label",size:"small",color:"grey11"}),zM.jsx(f.xv,{variant:"small",color:"grey11",children:"Tags:"})]}),zM.jsx(f.lG,{children:t.map(e=>zM.jsx(f.Ct,{size:"medium",title:e,sx:{marginRight:8}},e))})]})}function Jd(e,t,n,r){return function(e,t,n,r,i){let o=new URL("documents",e);return r&&o.searchParams.set("limit",r.toString()),i&&o.searchParams.set("cursor",i),o.search+=`&${n}`,(0,y.WY)(o,{credentials:(0,y.xb)(t),okType:HP})}(e,n,r,30,t)}function Jf(){let e=zK();e.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:t,authStrategy:n}=e,r=(0,m.QT)(HV,[t,n]);return new Set(r.languages.map(e=>({id:e.id,label:e.name})))}function Jp(){let e=zK();e.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:t,authStrategy:n}=e,r=(0,m.QT)(HY,[t,n]);return new Set(r.results.map(e=>({id:e,label:e})))}function JA(){let e=zK();e.searchDocuments||zB("searchDocuments");let{customTypesApiBaseUrl:t,repository:n,authStrategy:r}=e,i=(0,m.QT)(Hj,[t,n,r]);return new Set(i)}function Jh(e){return e?(0,C.UI)(e,e=>({id:e,label:e})):new Set}function Jm(e){let{filteredLocales:t,setFilteredLocales:n,filteredTags:r,setFilteredTags:i,filteredCustomTypes:o,setFilteredCustomTypes:a,fixedTags:u,fixedCustomTypes:s}=e;return zM.jsxs(zM.Fragment,{children:[zM.jsx(Jv,{selectedValues:t,onSelectedValuesChange:n}),zM.jsx(Jg,{selectedValues:r,fixedSelectedValues:Jh(u),onSelectedValuesChange:i,label:"Tags",icon:"label",fetchFilters:Jp}),zM.jsx(Jg,{selectedValues:o,fixedSelectedValues:Jh(s),onSelectedValuesChange:a,label:"Type",icon:"description",fetchFilters:JA})]})}function Jg(e){let[t,n]=(0,c.useState)(!1),r=(0,c.useRef)(null);return zM.jsx(f.SV,{ref:r,renderError(){var i;return zM.jsx(f.R0,{mode:"error",onErrorRetry:null==(i=r.current)?void 0:i.reset,open:t,setOpen:n,values:new Set,...e})},children:zM.jsx(c.Suspense,{fallback:zM.jsx(f.R0,{mode:"loading",open:t,setOpen:n,values:new Set,...e}),children:zM.jsx(Jy,{open:t,setOpen:n,...e})})})}function Jy(e){let{open:t,setOpen:n,onSelectedValuesChange:r,fixedSelectedValues:i,selectedValues:o,label:a,icon:u,fetchFilters:s,multiple:l}=e,c=s();return zM.jsx(f.R0,{open:t,setOpen:n,label:a,icon:u,selectedValues:o,values:new Set(c),fixedSelectedValues:i,onSelectedValuesChange:r,multiple:l})}function Jv(e){let{selectedValues:t,onSelectedValuesChange:n}=e,[r,i]=(0,c.useState)((0,C.Ps)(t)),o=(0,C.sE)(Jf(),e=>{var n;return e.id===(null==(n=(0,C.Ps)(t))?void 0:n.id)});return(null==o?void 0:o.label)!==(null==r?void 0:r.label)&&i(o),zM.jsx(Jg,{selectedValues:new Set(r?[r]:[]),onSelectedValuesChange:function(e){n(e),i((0,C.Ps)(e))},label:"Locale",icon:"public",fetchFilters:Jf,multiple:!1})}function Jx(e){let{onSelectDocument:t,fixedCustomTypes:n,fixedTags:r,...i}=e,o=zK(),{searchTerm:a,filteredTags:u,setFilteredTags:s,filteredCustomTypes:l,setFilteredCustomTypes:d,filteredLocales:A,setFilteredLocales:h,typesFilter:m,tagsFilter:g}=function(e,t){let n=zK(),r=(0,p.$P)({initialState:""}),[i,o]=(0,c.useState)(new Set),[a,u]=(0,c.useState)(new Set),[s,l]=(0,c.useState)(function(){return n.searchDocuments&&n.localeId?new Set([{id:n.localeId,label:n.localeId}]):new Set}),d=(0,C.G0)(a,Jh(e)),f=(0,C.G0)(i,Jh(t));return{searchTerm:r,filteredTags:i,setFilteredTags:o,filteredCustomTypes:a,setFilteredCustomTypes:u,filteredLocales:s,setFilteredLocales:l,typesFilter:d,tagsFilter:f}}(n,r),[y,v]=(0,c.useTransition)();return zM.jsx(f.Vq,{size:{height:727,width:656},hasClose:!1,...i,children:zM.jsx(f.cZ,{children:zM.jsxs(f.xu,{flexDirection:"column",height:"100%",children:[zM.jsxs(f.xu,{padding:{top:16,inline:16,bottom:8},flexDirection:"column",gap:12,children:[zM.jsx(f.yt,{value:a.value,onValueChange:a.set,placeholder:"Search a page",icon:"search"}),o.searchDocuments&&zM.jsx(Jm,{filteredTags:u,setFilteredTags:s,filteredCustomTypes:l,setFilteredCustomTypes:d,filteredLocales:A,setFilteredLocales:h,fixedTags:r,fixedCustomTypes:n}),zM.jsx(f.xv,{variant:"smallBold",color:"grey11",children:"Link to a document"})]}),o.searchDocuments?zM.jsx(f.SV,{renderError:JC,children:zM.jsx(c.Suspense,{fallback:zM.jsx(JI,{}),children:zM.jsx(JS,{searchTerm:a.debouncedValue,tagsFilter:g,typesFilter:m,localesFilter:A,startTransition:v,onSelectDocument:t})})}):zM.jsx(Jw,{message:"Slice Machine does not yet support mock data for linked documents in the simulator."}),zM.jsx(Jb,{isLoading:y})]})})})}function Jb(e){let{isLoading:t}=e;return zM.jsx(f.FN,{anchor:zM.jsx(f.xu,{position:"relative",width:"100%",justifyContent:"center",bottom:72}),loadingIndicator:!0,open:t,title:"Loading more results ...",seconds:1})}function JC(){return zM.jsx(f.xu,{height:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",children:zM.jsx(f.Iq,{title:"Request failed",description:"An error occurred while fetching documents.",errorImageSrc:f.Os})})}function JS(e){let{searchTerm:t,tagsFilter:n,typesFilter:r,localesFilter:i,startTransition:o,onSelectDocument:a}=e,{documents:u,hasNextPage:s,fetchNextPage:l}=function(e){var t,n;let{searchTerm:r,tagsFilter:i,typesFilter:o,localesFilter:a}=e,u=zK();u.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:s,authStrategy:l,status:d}=u,[f,p]=(0,c.useState)(""),[A,h]=(0,c.useState)([]),[y,v]=(0,c.useState)(""),x=new URLSearchParams(HW([{name:"tags",values:[...(0,C.UI)(i,e=>e.id)]},{name:"customTypes",values:[...(0,C.UI)(o,e=>e.id)]},{name:"language",values:[...(0,C.UI)(a,e=>e.id)]},{name:"status",values:zO[d]},{name:"term",values:[r]}])).toString(),b=(0,m.QT)(Jd,[s,x===y?f:"",l,x]);x!==y?(v(x),p(""),h(b.results)):b.results.length>0&&(null==(t=(0,g.Z$)(A))?void 0:t.id)!==(null==(n=(0,g.Z$)(b.results))?void 0:n.id)&&h(e=>e.concat(b.results));let S=b.total!==A.length;return{documents:A,hasNextPage:S,fetchNextPage:function(){void 0!==b.cursor&&p(b.cursor)},response:b}}({searchTerm:t,tagsFilter:n,localesFilter:i,typesFilter:r}),d=zK();return zM.jsxs(f.xr,{onScrollToBottom:()=>s&&o(l),style:{flexGrow:1,paddingTop:f.rS.space[10],paddingBottom:f.rS.space[16],paddingInline:f.rS.space[16],display:"flex",flexDirection:"column",gap:f.rS.space[12]},children:[0===u.length&&zM.jsx(Jw,{}),u.map(e=>{let t=e.versions[0];if(!t)return null;let r=zR({documentId:e.id,versionId:"archived"===t.status?t.version_id:void 0,releaseId:"release"===t.status?t.release_id:void 0,status:t.status,baseUrl:d.baseUrl}),i=function(e){let{tags:t,tagsFilter:n}=e,r=[...n].map(e=>e.label).reverse();return(0,g.DY)(t,e=>-r.indexOf(e))}({tags:t.tags,tagsFilter:n});return zM.jsx(Jo,{documentType:t.custom_type_label,documentUrl:r,description:t.preview_summary,tags:i,title:e.title,previewImageUrl:t.preview_image,onSelect:()=>a(e.id),statusColor:zT[t.status].color},`${e.id}-${t.status}`)})]})}function Jw(e){let{message:t="We can't find any versions matching this request"}=e;return zM.jsx(f.xu,{justifyContent:"center",flexDirection:"column",height:"100%",children:zM.jsxs(f.R$,{children:[zM.jsx(f.av,{name:"close",lineColor:"purple10",backgroundColor:"purple3",borderColor:"purple6",borderStyle:"dashed",size:"xlarge"}),zM.jsx(f._T,{size:"big",children:"Oops!"}),zM.jsx(f.nf,{width:360,children:t})]})})}function JI(){return zM.jsx(f.xu,{flexDirection:"column",gap:12,padding:{top:10,inline:16,bottom:16},children:(0,g.w6)(1,5).map(e=>zM.jsx(f.Od,{height:150},e))})}function J_(e){let{hasLink:t,onUnlink:n,selectEnabled:r,selectedType:i,onValueChange:o,openInNewTab:a=!0,setOpenInNewTab:u}=e;return zM.jsxs(zM.Fragment,{children:[u&&"web"===i&&zM.jsx(f.zx,{startIcon:a?"checkBox":"checkBoxOutlinedBlank",color:"grey",size:"small",onClick:()=>u(!a),children:"Open in new tab"}),zM.jsxs(f.Ph,{value:i,color:"grey",size:"small",boldTriggerText:!0,startIcon:function(e){if(e)switch(e){case"document":return"description";case"web":return"public";case"media":return"image"}}(i),disabled:!r,onValueChange:o,placeholder:"Choose link type",children:[zM.jsx(f.Ql,{value:"web",icon:"public",children:"Link to web page"}),zM.jsx(f.Ql,{value:"document",icon:"description",children:"Link to Prismic page"}),zM.jsx(f.Ql,{value:"media",icon:"image",children:"Link to media"})]}),zM.jsx(f.zx,{startIcon:"close",color:"grey",size:"small",disabled:!t,onClick:n})]})}m.Fs.registerFetcherConfig(Jd,{cacheCapacity:500,revalidationStrategy:{type:"never"}});let JT={DocumentLink:"document",ExternalLink:"web",FileLink:"media",ImageLink:"media"},JO={document:"DocumentLink",web:"ExternalLink",media:"FileLink"},JR=Hs({id:Y5(),title:Y5()});function Jk(e,t,n){return(0,y.WY)(new URL(`documents/${n}`,e),{credentials:(0,y.xb)(t),okType:JR})}function JE(e){var t,n,r,i,o,a;let{media:u}=e,s="kind"in u;return s&&"image"===u.kind?{__TYPE__:"LinkContent",value:{__TYPE__:"ImageLink",id:u.id,name:u.filename,url:u.url,kind:u.kind,size:u.size.toString(),height:(null==(t=u.height)?void 0:t.toString())??"2000",width:(null==(n=u.width)?void 0:n.toString())??"2000",date:(null==(r=u.last_modified)?void 0:r.toString())??""}}:s?{__TYPE__:"LinkContent",value:{__TYPE__:"FileLink",id:u.id,name:u.filename,kind:u.kind,url:u.url,size:u.size.toString(),date:(null==(i=u.last_modified)?void 0:i.toString())??""}}:{__TYPE__:"LinkContent",value:{__TYPE__:"ImageLink",id:u.id,name:(null==u?void 0:u.alt)??u.url,kind:"image",url:u.url,size:"0",height:(null==(o=u.height)?void 0:o.toString())??"2000",width:(null==(a=u.width)?void 0:a.toString())??"2000"}}}function JM(e){var t,n;let{content:r,field:i,id:o,onContentChange:a,readOnly:u=!1}=e,[s,d]=(0,c.useState)(!1),[A,h]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[y,v]=(0,c.useState)(!1),{contentType:x,fieldValue:b,errorBoundaryRef:C,onDocumentSelected:S,onError:w,onMediaSelected:I,..._}=function(e){var t;let{field:n,content:r,onContentChange:i}=e,o=r?"DocumentLink"===r.value.__TYPE__?r.value.id:"ExternalLink"===r.value.__TYPE__?r.value.url:r.value.name:"",[a,u]=(0,c.useState)(function(){var e,t;return!(null!=(e=n.config)&&e.select)||null!=r&&r.value.__TYPE__?null==r?void 0:r.value.__TYPE__:JO[null==(t=n.config)?void 0:t.select]}),[s,l]=(0,c.useState)(()=>(null==r?void 0:r.value.__TYPE__)==="ExternalLink"?r.value.target:""),[d,f]=(0,c.useState)(!1),A=(0,c.useRef)(null);(0,p.pQ)(o,function(){var e;d&&(f(!1),null==(e=A.current)||e.reset())});let h=a?JT[a]:void 0;function m(e){if(!e)return i(void 0);switch(a){case"ExternalLink":return i({__TYPE__:"LinkContent",value:{__TYPE__:"ExternalLink",url:e,target:s}});case"DocumentLink":return i({__TYPE__:"LinkContent",value:{__TYPE__:"DocumentLink",id:e}});case"FileLink":case"ImageLink":case void 0:return i(void 0)}}function g(e){m(e)}return{contentType:a,selectType:h,fieldValue:o,onValueChange:m,onTypeChange:function(e){u(JO[e]),m("")},placeholder:Zf(n),isTypeSelectEnabled:!(null!=(t=n.config)&&t.select),onDocumentSelected:g,onError:function(){f(!0)},errorBoundaryRef:A,isTargetNewTab:"_blank"===s,updateWebLinkTarget:function(e){let t=e?"_blank":null;l(t),i({__TYPE__:"LinkContent",value:{__TYPE__:"ExternalLink",url:o,target:t}})},onMediaSelected:function(e){i(JE({media:e}))}}}({content:r,field:i,onContentChange:a}),T="ExternalLink"===x&&(0,l.ju)(b),O={id:o,contentType:x,onBlur:()=>d(!1),onFocus(){d(!0),"DocumentLink"===x&&g(!0),"FileLink"===x&&v(!0),"ImageLink"===x&&v(!0)},readOnly:u||!x,textType:T||"ImageLink"===x||"FileLink"===x?"link":"normal",value:b,..._},{searchDocuments:R}=zK();return zM.jsxs(zM.Fragment,{children:[zM.jsxs(f.J2,{onMouseOverChange:h,open:s||A,align:"start",sideOffset:-3,openDelay:100,closeDelay:200,focusOnEnter:!1,anchor:zM.jsxs(f.gN,{onMouseOverChange:d,children:[zM.jsx(f.fw,{name:"link"}),zM.jsx(f.Qy,{htmlFor:o,children:Zd(i)}),zM.jsx(f.JO,{children:"DocumentLink"===x&&""!==b&&R?zM.jsx(JU,{errorBoundaryRef:C,onError:w,fallback:zM.jsx(JF,{...O,value:"..."}),renderError(){var e;return e=O,zM.jsx(JF,{...e,textType:"link"})},children:zM.jsx(Jj,{...O,documentId:b,openDocumentListModal:()=>g(!0)})}):zM.jsx(JF,{...O})})]}),children:[T&&zM.jsx(f.oZ,{url:T,title:(0,l.S$)(T)??"",subTitle:T.toString()}),(null==r?void 0:r.value.__TYPE__)==="ImageLink"&&zM.jsx(f.Qi,{url:r.value.url,title:r.value.name,subTitle:`${r.value.width} x ${r.value.height} pixels`})]}),zM.jsx(ZB,{open:y,onOpenChange:v,onMediaSelected:I,assetType:"all"}),zM.jsx(Jx,{open:m,onOpenChange:g,onSelectDocument(e){g(!1),S(e)},fixedCustomTypes:new Set(null==(t=i.config)?void 0:t.customtypes),fixedTags:new Set(null==(n=i.config)?void 0:n.tags)})]})}function JF(e){let{id:t,onValueChange:n,placeholder:r,readOnly:i,value:o,textType:a,onFocus:u,onBlur:s,contentType:l,isTypeSelectEnabled:c,selectType:d,onTypeChange:f,isTargetNewTab:p,updateWebLinkTarget:A}=e,h="DocumentLink"===l||"ImageLink"===l||"FileLink"===l;return zM.jsx(Zm,{id:t,onValueChange:n,placeholder:r,readOnly:i||h,value:o,variant:a,onFocus:u,onBlur:s,cursor:h?"pointer":"text",endAdornment:zM.jsx(J_,{hasLink:!!o,onUnlink:()=>n(""),selectEnabled:c,selectedType:d,onValueChange:f,openInNewTab:p,setOpenInNewTab:A})})}function Jj(e){let{id:t,documentId:n,openDocumentListModal:r,onValueChange:i,isTypeSelectEnabled:o,selectType:a,onTypeChange:u}=e,s=function(e){let t=zK();t.searchDocuments||zB("searchDocuments");let{coreApiBaseUrl:n,authStrategy:r}=t;return(0,m.QT)(Jk,[n,r,e]).title}(n);return zM.jsx(Zm,{id:t,readOnly:!0,value:s,variant:"link",onFocus:r,cursor:"pointer",endAdornment:zM.jsx(J_,{hasLink:!0,onUnlink:()=>i(""),selectEnabled:o,selectedType:a,onValueChange:u})})}function JU(e){let{errorBoundaryRef:t,onError:n,children:r,fallback:i,renderError:o}=e;return zM.jsx(f.SV,{ref:t,onError:n,renderError:o,children:zM.jsx(c.Suspense,{fallback:i,children:r})})}m.Fs.registerFetcherConfig(Jk,{concurrency:50});let JK=({content:e,field:t,id:n,onContentChange:r,readOnly:i})=>{var o,a;let u=Number(null==e?void 0:e.value),s=Number.isFinite(u)?u:void 0;return zM.jsxs(f.gN,{children:[zM.jsx(f.fw,{name:"pin"}),zM.jsx(f.Qy,{htmlFor:n,children:Zd(t)}),zM.jsx(f.JO,{children:zM.jsx(f.Y2,{id:n,value:s,min:null==(o=t.config)?void 0:o.min,max:null==(a=t.config)?void 0:a.max,padding:Zg,placeholder:Zf(t),readOnly:i,onValueChange(e){var t;return r((t=e,void 0===t?void 0:{__TYPE__:"FieldContent",type:"Number",value:String(t)}))}})})]})};function JL(e){this.content=e}JL.prototype={constructor:JL,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return -1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new JL(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new JL(n)},addToStart:function(e,t){return new JL([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new JL(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(-1==o?i.length:o,0,t,n),new JL(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=JL.from(e)).size?new JL(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=JL.from(e)).size?new JL(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=JL.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},JL.from=function(e){if(e instanceof JL)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new JL(t)};class JB{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,a=0;a<t;o++){let u=this.content[o],s=a+u.nodeSize;if(s>e&&!1!==n(u,r+a,i||null,o)&&u.content.size){let l=a+1;u.nodesBetween(Math.max(0,e-l),Math.min(u.content.size,t-l),n,r+l)}a=s}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(a,u)=>{a.isText?(i+=a.text.slice(Math.max(e,u)-u,t-u),o=!n):a.isLeaf?(r?i+="function"==typeof r?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),o=!n):!o&&a.isBlock&&(i+=n,o=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new JB(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let a=this.content[i],u=o+a.nodeSize;u>e&&((o<e||u>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=u}return new JB(n,r)}cutByIndex(e,t){return e==t?JB.empty:0==e&&t==this.content.length?this:new JB(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new JB(r,i)}addToStart(e){return new JB([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new JB(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),a=n.child(i);if(o==a){r+=o.nodeSize;continue}if(!o.sameMarkup(a))return r;if(o.isText&&o.text!=a.text){for(let u=0;o.text[u]==a.text[u];u++)r++;return r}if(o.content.size||a.content.size){let s=e(o.content,a.content,r+1);if(null!=s)return s}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,a=n.childCount;;){if(0==o||0==a)return o==a?null:{a:r,b:i};let u=t.child(--o),s=n.child(--a),l=u.nodeSize;if(u==s){r-=l,i-=l;continue}if(!u.sameMarkup(s))return{a:r,b:i};if(u.isText&&u.text!=s.text){let c=0,d=Math.min(u.text.length,s.text.length);for(;c<d&&u.text[u.text.length-c-1]==s.text[s.text.length-c-1];)c++,r--,i--;return{a:r,b:i}}if(u.content.size||s.content.size){let f=e(u.content,s.content,r-1,i-1);if(f)return f}r-=l,i-=l}}(this,e,t,n)}findIndex(e,t=-1){if(0==e)return JW(0,e);if(e==this.size)return JW(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=e)return i==e||t>0?JW(n+1,i):JW(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return JB.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new JB(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return JB.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new JB(t||e,n)}static from(e){if(!e)return JB.empty;if(e instanceof JB)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new JB([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}JB.empty=new JB([],0);let JP={index:0,offset:0};function JW(e,t){return JP.index=e,JP.offset=t,JP}function JD(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!JD(e[r],t[r]))return!1}else{for(let i in e)if(!(i in t)||!JD(e[i],t[i]))return!1;for(let o in t)if(!(o in e))return!1}return!0}let JN=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&JD(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};JN.none=[];class Jq extends Error{}class JQ{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:a}=t.findIndex(n),u=t.maybeChild(o);if(a==n||u.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let s=e(u.content,n-a-1,r);return s&&t.replaceChild(o,u.copy(s))}(this.content,e+this.openStart,t);return n&&new JQ(n,this.openStart,this.openEnd)}removeBetween(e,t){return new JQ(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),a=t.maybeChild(i),{index:u,offset:s}=t.findIndex(r);if(o==n||a.isText){if(s!=r&&!t.child(u).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=u)throw RangeError("Removing non-flat range");return t.replaceChild(i,a.copy(e(a.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return JQ.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new JQ(JB.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new JQ(e,n,r)}}function JV(e,t){if(!t.type.compatibleContent(e.type))throw new Jq("Cannot join "+t.type.name+" onto "+e.type.name)}function Jz(e,t,n){let r=e.node(n);return JV(r,t.node(n)),r}function JY(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function JH(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(JY(e.nodeAfter,r),o++));for(let u=o;u<a;u++)JY(i.child(u),r);t&&t.depth==n&&t.textOffset&&JY(t.nodeBefore,r)}function JG(e,t){return e.type.checkContent(t),e.copy(t)}function JZ(e,t,n){let r=[];return JH(null,e,n,r),e.depth>n&&JY(JG(Jz(e,t,n+1),JZ(e,t,n+1)),r),JH(t,null,n,r),new JB(r)}JQ.empty=new JQ(JB.empty,0,0);class JJ{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return JN.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let i=n;n=r,r=i}let o=n.marks;for(var a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new J1(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:a,offset:u}=o.content.findIndex(i),s=i-u;if(n.push(o,a,r+u),!s||(o=o.child(a)).isText)break;i=s-1,r+=u+1}return new JJ(t,n,i)}static resolveCached(e,t){for(let n=0;n<J$.length;n++){let r=J$[n];if(r.pos==t&&r.doc==e)return r}let i=J$[JX]=JJ.resolve(e,t);return JX=(JX+1)%J0,i}}let J$=[],JX=0,J0=12;class J1{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let J2=Object.create(null),J6=class e{constructor(e,t,n,r=JN.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||JB.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&JD(this.attrs,t||e.defaultAttrs||J2)&&JN.sameSet(this.marks,n||JN.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return JQ.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),u=r.node(o).content.cut(r.pos-a,i.pos-a);return new JQ(u,r.depth-o,i.depth-o)}replace(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new Jq("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Jq("Inconsistent open depths");return function e(t,n,r,i){let o=t.index(i),a=t.node(i);if(o==n.index(i)&&i<t.depth-r.openStart){let u=e(t,n,r,i+1);return a.copy(a.content.replaceChild(o,u))}if(!r.content.size)return JG(a,JZ(t,n,i));if(r.openStart||r.openEnd||t.depth!=i||n.depth!=i){let{start:s,end:l}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(JB.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return JG(a,function e(t,n,r,i,o){let a=t.depth>o&&Jz(t,n,o+1),u=i.depth>o&&Jz(r,i,o+1),s=[];return JH(null,t,o,s),a&&u&&n.index(o)==r.index(o)?(JV(a,u),JY(JG(a,e(t,n,r,i,o+1)),s)):(a&&JY(JG(a,JZ(t,n,o+1)),s),JH(n,r,o,s),u&&JY(JG(u,JZ(r,i,o+1)),s)),JH(i,null,o,s),new JB(s)}(t,s,l,n,i))}{let c=t.parent,d=c.content;return JG(c,d.cut(0,t.parentOffset).append(r.content).append(d.cut(n.parentOffset)))}}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return JJ.resolveCached(this,e)}resolveNoCache(e){return JJ.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),J3(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=JB.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let u=r;u<i;u++)if(!this.type.allowsMarks(n.child(u).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=JN.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!JN.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=JB.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};J6.prototype.text=void 0;class J5 extends J6{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):J3(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new J5(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new J5(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function J3(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class J9{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r=new J4(e,t);if(null==r.next)return J9.empty;let i=J7(r);r.next&&r.err("Unexpected trailing text");let o,a=(n=function(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(o(n,t)),[]);if("seq"==e.type)for(let a=0;;a++){let u=o(e.exprs[a],t);if(a==e.exprs.length-1)return u;i(u,t=n())}else if("star"==e.type){let s=n();return r(t,s),i(o(e.expr,s),s),[r(s)]}else if("plus"==e.type){let l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}else{if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let c=t;for(let d=0;d<e.min;d++){let f=n();i(o(e.expr,c),f),c=f}if(-1==e.max)i(o(e.expr,c),c);else for(let p=e.min;p<e.max;p++){let A=n();r(c,A),i(o(e.expr,c),A),c=A}return[r(c)]}if("name"==e.type)return[r(t,void 0,e.value)];throw Error("Unknown expr type")}}}(i),o=Object.create(null),function e(t){let r=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{if(!e)return;let i;for(let o=0;o<r.length;o++)r[o][0]==e&&(i=r[o][1]);$o(n,t).forEach(t=>{i||r.push([e,i=[]]),-1==i.indexOf(t)&&i.push(t)})})});let i=o[t.join(",")]=new J9(t.indexOf(n.length-1)>-1);for(let a=0;a<r.length;a++){let u=r[a][1].sort($i);i.next.push({type:r[a][0],next:o[u.join(",")]||e(u)})}return i}($o(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],o=!i.validEnd,a=[];for(let u=0;u<i.next.length;u++){let{type:s,next:l}=i.next[u];a.push(s.name),o&&!(s.isText||s.hasRequiredAttrs())&&(o=!1),-1==r.indexOf(l)&&r.push(l)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,a){let u=o.matchFragment(e,n);if(u&&(!t||u.validEnd))return JB.from(a.map(e=>e.createAndFill()));for(let s=0;s<o.next.length;s++){let{type:l,next:c}=o.next[s];if(!(l.isText||l.hasRequiredAttrs())&&-1==r.indexOf(c)){r.push(c);let d=i(c,a.concat(l));if(d)return d}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let o=[];for(let a=r;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let u=0;u<i.next.length;u++){let{type:s,next:l}=i.next[u];s.isLeaf||s.hasRequiredAttrs()||s.name in t||r.type&&!l.validEnd||(n.push({match:s.contentMatch,type:s,via:r}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i<t.next.length;i++)r+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return r}).join(`
|
|
8
8
|
`)}}J9.empty=new J9(!0);class J4{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function J7(e){let t=[];do t.push(J8(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function J8(e){let t=[];do t.push($e(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function $e(e){let t=$r(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=$n(e,t);else break;return t}function $t(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function $n(e,t){let n=$t(e),r=n;return e.eat(",")&&(r="}"!=e.next?$t(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function $r(e){if(e.eat("(")){let t=J7(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let n=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}}function $i(e,t){return t-e}function $o(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let o=0;o<i.length;o++){let{term:a,to:u}=i[o];a||-1!=n.indexOf(u)||t(u)}}(t),n.sort($i)}function $a(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function $u(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let o=e[r];if(o.hasDefault)i=o.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function $s(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new $c(e[n]);return t}let $l=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=$s(n.attrs),this.defaultAttrs=$a(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==J9.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:$u(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new J6(this,this.computeAttrs(e),JB.from(t),JN.setFrom(n))}createChecked(e=null,t,n){return t=JB.from(t),this.checkContent(t),new J6(this,this.computeAttrs(e),t,JN.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=JB.from(t)).size){let r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}let i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(JB.empty,!0);return o?new J6(this,e,t.append(o),JN.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:JN.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||"doc";if(!r[i])throw RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}};class $c{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class $d{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=$s(r.attrs),this.excluded=null;let i=$a(this.attrs);this.instance=i?new JN(this,i):null}create(e=null){return!e&&this.instance?this.instance:new JN(this,$u(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new $d(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class $f{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=JL.from(e.nodes),t.marks=JL.from(e.marks||{}),this.nodes=$l.compile(this.spec.nodes,this),this.marks=$d.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",u=o.spec.marks;o.contentMatch=r[a]||(r[a]=J9.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==u?null:u?$p(this,u.split(" ")):""!=u&&o.inlineContent?null:[]}for(let s in this.marks){let l=this.marks[s],c=l.spec.excludes;l.excluded=null==c?[l]:""==c?[]:$p(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof $l){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new J5(n,n.defaultAttrs,e,JN.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return J6.fromJSON(this,e)}markFromJSON(e){return JN.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function $p(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(let u in e.marks){let s=e.marks[u];("_"==i||s.spec.group&&s.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=s)}if(!a)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class $A{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new $x(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new $x(this,t,!0);return n.addAll(e,t.from,t.to),JQ.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if($b(e,i.tag)&&(void 0===i.namespace||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(!1===o)continue;i.attrs=o||void 0}return i}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let o=this.styles[i],a=o.style;if(!(0!=a.indexOf(e)||o.context&&!n.matchesContext(o.context)||a.length>e.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(o.getAttrs){let u=o.getAttrs(t);if(!1===u)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let i=t[r];if((null==i.priority?50:i.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(e=>{n(e=$C(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)})}for(let o in e.nodes){let a=e.nodes[o].spec.parseDOM;a&&a.forEach(e=>{n(e=$C(e)),e.node||e.ignore||e.mark||(e.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new $A(e,$A.schemaRules(e)))}}let $h={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$m={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},$g={ol:!0,ul:!0};function $y(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class $v{constructor(e,t,n,r,i,o,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=JN.none,this.stashMarks=[],this.match=o||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(JB.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let t=this.content[this.content.length-1],n;t&&t.isText&&(n=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-n[0].length)))}let r=JB.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(JB.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):$S(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!$h.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class $x{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r=t.topNode,i,o=$y(null,t.preserveWhitespace,0)|(n?4:0);i=r?new $v(r.type,r.attrs,JN.none,JN.none,!0,t.topMatch||r.type.contentMatch,o):n?new $v(null,null,JN.none,JN.none,!0,null,o):new $v(e.schema.topNodeType,null,JN.none,JN.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){let t=e.getAttribute("style");if(t){let n=this.readStyles(function(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}(t));if(!n)return;let[r,i]=n,o=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],o);for(let u=0;u<r.length;u++)this.addPendingMark(r[u]);this.addElement(e);for(let s=0;s<r.length;s++)this.removePendingMark(r[s],o);for(let l=0;l<i.length;l++)this.addPendingMark(i[l])}else this.addElement(e)}}addTextNode(e){let t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,`
|
|
9
9
|
`):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&"BR"==i.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n=e.nodeName.toLowerCase(),r;$g.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&$g.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,t));if(i?i.ignore:$m.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let o,a=this.top,u=this.needsBlock;if($h.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),o=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}this.addAll(e),o&&this.sync(a),this.needsBlock=u}else this.addElementByRule(e,i,!1===i.consuming?r:void 0)}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
10
10
|
`))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=JN.none,n=JN.none;e:for(let r=0;r<e.length;r+=2)for(let i;;){let o=this.parser.matchStyle(e[r],e[r+1],this,i);if(!o)continue e;if(o.ignore)return null;if(o.clearMark?this.top.pendingMarks.forEach(e=>{o.clearMark(e)&&(n=e.addToSet(n))}):t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1===o.consuming)i=o;else break}return[t,n]}addElementByRule(e,t,n){let r,i,o;t.node?(i=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):r=this.enter(i,t.attrs||null,t.preserveWhitespace):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e));else{let u=e;"string"==typeof t.contentElement?u=e.querySelector(t.contentElement):"function"==typeof t.contentElement?u=t.contentElement(e):t.contentElement&&(u=t.contentElement),this.findAround(e,u,!0),this.addAll(u)}r&&this.sync(a)&&this.open--,o&&this.removePendingMark(o,a)}addAll(e,t,n){let r=t||0;for(let i=t?e.childNodes[t]:e.firstChild,o=null==n?null:e.childNodes[n];i!=o;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length)||i.solid)break}if(!t)return!1;this.sync(n);for(let a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let i=0;i<e.marks.length;i++)(!n.type||n.type.allowsMarkType(e.marks[i].type))&&(r=e.marks[i].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let o=$y(e,r,i.options);4&i.options&&0==i.content.length&&(o|=4),this.nodes.push(new $v(e,t,i.activeMarks,i.pendingMarks,n,null,o)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,a)=>{for(;e>=0;e--){let u=t[e];if(""==u){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let s=a>0||0==a&&r?this.nodes[a].type:n&&a>=i?n.node(a-i).type:null;if(!s||s.name!=u&&-1==s.groups.indexOf(u))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let r in this.parser.schema.nodes){let i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let i=r.popFromStashMark(e);i&&r.type&&r.type.allowsMarkType(i.type)&&(r.activeMarks=i.addToSet(r.activeMarks))}if(r==t)break}}}function $b(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function $C(e){let t={};for(let n in e)t[n]=e[n];return t}function $S(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&a(i))return!0}};if(a(i.contentMatch))return!0}}class $w{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=$_(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let a=e.marks[o];if(!this.marks[a.type.name]){o++;continue}if(!a.eq(i[n][0])||!1===a.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let u=e.marks[o++],s=this.serializeMark(u,e.isInline,t);s&&(i.push([u,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=$w.renderSpec($_(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&$w.renderSpec($_(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let o,a=n?e.createElementNS(n,r):e.createElement(r),u=t[1],s=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){for(let l in s=2,u)if(null!=u[l]){let c=l.indexOf(" ");c>0?a.setAttributeNS(l.slice(0,c),l.slice(c+1),u[l]):a.setAttribute(l,u[l])}}for(let d=s;d<t.length;d++){let f=t[d];if(0===f){if(d<t.length-1||d>s)throw RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:p,contentDOM:A}=$w.renderSpec(e,f,n);if(a.appendChild(p),A){if(o)throw RangeError("Multiple content holes");o=A}}}return{dom:a,contentDOM:o}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new $w(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=$I(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return $I(e.marks)}}function $I(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function $_(e){return e.document||window.document}function $T(e,t){return e+65536*t}function $O(e){return 65535&e}let $R=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}},$k=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){var t;let n=0,r=$O(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[3*i+2]-this.ranges[3*i+1];return this.ranges[3*r]+n+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let u=this.ranges[a]-(this.inverted?r:0);if(u>e)break;let s=this.ranges[a+i],l=this.ranges[a+o],c=u+s;if(e<=c){let d=s?e==u?-1:e==c?1:t:t,f=u+r+(d<0?0:l);if(n)return f;let p=e==(t<0?u:c)?null:$T(a/3,e-u),A=e==u?2:e==c?1:4;return(t<0?e!=u:e!=c)&&(A|=8),new $R(f,A,p)}r+=l-s}return n?e+r:new $R(e+r,0,null)}touches(e,t){let n=0,r=$O(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let u=this.ranges[a]-(this.inverted?n:0);if(u>e)break;let s=this.ranges[a+i];if(e<=u+s&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],a=o-(this.inverted?i:0),u=o+(this.inverted?0:i),s=this.ranges[r+t],l=this.ranges[r+n];e(a,a+s,u,u+l),i+=l-s}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};$k.empty=new $k([]);class $E{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new $E(this.maps,this.mirror,e,t)}copy(){return new $E(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new $E;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let i=this.from;i<this.to;i++){let o=this.maps[i].mapResult(e,t);if(null!=o.recover){let a=this.getMirror(i);if(null!=a&&a>i&&a<this.to){i=a,e=this.maps[a].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new $R(e,r,null)}}let $M=Object.create(null),$F=class{getMap(){return $k.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=$M[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in $M)throw RangeError("Duplicate use of step JSON ID "+e);return $M[e]=t,t.prototype.jsonID=e,t}},$j=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(o){if(o instanceof Jq)return e.fail(o.message);throw o}}};function $U(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy($U(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return JB.fromArray(r)}let $K=class e extends $F{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new JQ($U(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return $j.fromReplace(e,this.from,this.to,i)}invert(){return new $L(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new e(n.from,n.to,t.markFromJSON(n.mark))}};$F.jsonID("addMark",$K);let $L=class e extends $F{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new JQ($U(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return $j.fromReplace(e,this.from,this.to,n)}invert(){return new $K(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new e(n.from,n.to,t.markFromJSON(n.mark))}};$F.jsonID("removeMark",$L);let $B=class e extends $F{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return $j.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return $j.fromReplace(e,this.pos,this.pos+1,new JQ(JB.from(n),0,t.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new e(this.pos,n.marks[i]);return new e(this.pos,this.mark)}}return new $P(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new e(n.pos,t.markFromJSON(n.mark))}};$F.jsonID("addNodeMark",$B);let $P=class e extends $F{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return $j.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return $j.fromReplace(e,this.pos,this.pos+1,new JQ(JB.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new $B(this.pos,this.mark):this}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new e(n.pos,t.markFromJSON(n.mark))}};$F.jsonID("removeNodeMark",$P);let $W=class e extends $F{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&$N(e,this.from,this.to)?$j.fail("Structure replace would overwrite content"):$j.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new $k([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new e(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;{let n=this.slice.size+t.slice.size==0?JQ.empty:new JQ(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}}{let r=this.slice.size+t.slice.size==0?JQ.empty:new JQ(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),r,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new e(n.from,n.to,JQ.fromJSON(t,n.slice),!!n.structure)}};$F.jsonID("replace",$W);let $D=class e extends $F{constructor(e,t,n,r,i,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=a}apply(e){if(this.structure&&($N(e,this.from,this.gapFrom)||$N(e,this.gapTo,this.to)))return $j.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return $j.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?$j.fromReplace(e,this.from,this.to,n):$j.fail("Content does not fit in gap")}getMap(){return new $k([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=t.map(this.gapFrom,-1),o=t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new e(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new e(n.from,n.to,n.gapFrom,n.gapTo,JQ.fromJSON(t,n.slice),n.insert,!!n.structure)}};function $N(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function $q(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $Q(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(0==n||r.type.spec.isolating||!$q(r,i,o))break}return null}function $V(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let u=(a.length?a[a.length-1]:t).contentMatch;for(let s=r;u&&s<i;s++)u=u.matchType(n.child(s).type);return u&&u.validEnd?a:null}(r,t);return o?i.map($z).concat({type:t,attrs:n}).concat(o.map($z)):null}function $z(e){return{type:e,attrs:null}}function $Y(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,s=n-2;u>o;u--,s--){let l=i.node(u),c=i.index(u);if(l.type.spec.isolating)return!1;let d=l.content.cutByIndex(c,l.childCount),f=r&&r[s+1];f&&(d=d.replaceChild(0,f.type.create(f.attrs)));let p=r&&r[s]||l;if(!l.canReplace(c+1,l.childCount)||!p.type.validContent(d))return!1}let A=i.indexAfter(o),h=r&&r[0];return i.node(o).canReplaceWith(A,A,h?h.type:i.node(o+1).type)}function $H(e,t){let n=e.resolve(t),r=n.index();return $G(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function $G(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function $Z(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let o,a,u=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),u++,a=r.node(i).maybeChild(u)):(o=r.node(i).maybeChild(u-1),a=r.node(i+1)),o&&!o.isTextblock&&$G(o,a)&&r.node(i).canReplace(u,u+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function $J(e,t,n=t,r=JQ.empty){var i,o,a;if(t==n&&!r.size)return null;let u=e.resolve(t),s=e.resolve(n);return(i=u,o=s,a=r,!a.openStart&&!a.openEnd&&i.start()==o.start()&&i.parent.canReplace(i.index(),o.index(),a.content))?new $W(t,n,r):new $$(u,s,r).fit()}$F.jsonID("replaceAround",$D);class $${constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=JB.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let o=e.depth;o>0;o--)this.placed=JB.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,a=r.depth,u=i.depth;for(;a&&u&&1==o.childCount;)o=o.firstChild.content,a--,u--;let s=new JQ(o,a,u);return t>-1?new $D(r.pos,t,this.$to.pos,this.$to.end(),s,n):s.size||r.pos!=this.$to.pos?new $W(r.pos,i.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let o=1;o<=2;o++)for(let a=1==o?e:this.unplaced.openStart;a>=0;a--){let u,s=null,l=(a?(s=$1(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild;for(let c=this.depth;c>=0;c--){let{type:d,match:f}=this.frontier[c],p,A=null;if(1==o&&(l?f.matchType(l.type)||(A=f.fillBefore(JB.from(l),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:c,parent:s,inject:A};if(2==o&&l&&(p=f.findWrapping(l.type)))return{sliceDepth:a,frontierDepth:c,parent:s,wrap:p};if(s&&f.matchType(s.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=$1(e,t);return!!r.childCount&&!r.firstChild.isLeaf&&(this.unplaced=new JQ(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=$1(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new JQ($X(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new JQ($X(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let o=0;o<i.length;o++)this.openFrontierNode(i[o]);let a=this.unplaced,u=n?n.content:a.content,s=a.openStart-e,l=0,c=[],{match:d,type:f}=this.frontier[t];if(r){for(let p=0;p<r.childCount;p++)c.push(r.child(p));d=d.matchFragment(r)}let A=u.size+e-(a.content.size-a.openEnd);for(;l<u.childCount;){let h=u.child(l),m=d.matchType(h.type);if(!m)break;(++l>1||0==s||h.content.size)&&(d=m,c.push($2(h.mark(f.allowedMarks(h.marks)),1==l?s:0,l==u.childCount?A:-1)))}let g=l==u.childCount;g||(A=-1),this.placed=$0(this.placed,t,JB.from(c)),this.frontier[t].match=d,g&&A<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,v=u;y<A;y++){let x=v.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),v=x.content}this.unplaced=g?0==e?JQ.empty:new JQ($X(a.content,e-1,1),e-1,A<0?a.openEnd:e-1):new JQ($X(a.content,e,l),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!$6(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=$6(e,t,r,n,i);if(o){for(let a=t-1;a>=0;a--){let{match:u,type:s}=this.frontier[a],l=$6(e,a,s,u,!0);if(!l||l.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=$0(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=$0(this.placed,this.depth,JB.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(JB.empty,!0);e.childCount&&(this.placed=$0(this.placed,this.frontier.length,e))}}function $X(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy($X(e.firstChild.content,t-1,n)))}function $0(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($0(e.lastChild.content,t-1,n)))}function $1(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function $2(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,$2(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(JB.empty,!0)))),e.copy(r)}function $6(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let u=r.fillBefore(o.content,!0,a);return u&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,a)?u:null}let $5=class e extends $F{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return $j.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return $j.fromReplace(e,this.pos,this.pos+1,new JQ(JB.from(i),0,t.isLeaf?0:1))}getMap(){return $k.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if("number"!=typeof n.pos||"string"!=typeof n.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new e(n.pos,n.attr,n.value)}};$F.jsonID("attr",$5);let $3=class extends Error{};($3=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),$3.prototype.constructor=$3,$3.prototype.name="TransformError";let $9=Object.create(null);class $4{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new $7(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=JQ.empty){let n=t.content.lastChild,r=null;for(let i=0;i<t.openEnd;i++)r=n,n=n.lastChild;let o=e.steps.length,a=this.ranges;for(let u=0;u<a.length;u++){let{$from:s,$to:l}=a[u],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),u?JQ.empty:t),0==u&&Xs(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:a}=r[i],u=e.mapping.slice(n),s=u.map(o.pos),l=u.map(a.pos);i?e.deleteRange(s,l):(e.replaceRangeWith(s,l,t),Xs(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Xt(e):Xu(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let o=t<0?Xu(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):Xu(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Xo(e.node(0))}static atStart(e){return Xu(e,e,0,0,1)||new Xo(e)}static atEnd(e){return Xu(e,e,e.content.size,e.childCount,-1)||new Xo(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=$9[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in $9)throw RangeError("Duplicate use of selection JSON ID "+e);return $9[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Xt.between(this.$anchor,this.$head).getBookmark()}}$4.prototype.visible=!0;class $7{constructor(e,t){this.$from=e,this.$to=t}}let $8=!1;function Xe(e){$8||e.parent.inlineContent||($8=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Xt extends $4{constructor(e,t=e){Xe(e),Xe(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return $4.near(n);let r=e.resolve(t.map(this.anchor));return new Xt(r.parent.inlineContent?r:n,n)}replace(e,t=JQ.empty){if(super.replace(e,t),t==JQ.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof Xt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Xn(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new Xt(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let i=$4.findFrom(t,n,!0)||$4.findFrom(t,-n,!0);if(!i)return $4.near(t,n);t=i.$head}return e.parent.inlineContent||(0==r?e=t:(e=($4.findFrom(e,-n,!0)||$4.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new Xt(e,t)}}$4.jsonID("text",Xt);class Xn{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Xn(e.map(this.anchor),e.map(this.head))}resolve(e){return Xt.between(e.resolve(this.anchor),e.resolve(this.head))}}class Xr extends $4{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?$4.near(i):new Xr(i)}content(){return new JQ(JB.from(this.node),0,0)}eq(e){return e instanceof Xr&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Xi(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new Xr(e.resolve(t.anchor))}static create(e,t){return new Xr(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Xr.prototype.visible=!1,$4.jsonID("node",Xr);class Xi{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new Xn(n,n):new Xi(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Xr.isSelectable(n)?new Xr(t):$4.near(t)}}class Xo extends $4{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=JQ.empty){if(t==JQ.empty){e.delete(0,e.doc.content.size);let n=$4.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Xo(e)}map(e){return new Xo(e)}eq(e){return e instanceof Xo}getBookmark(){return Xa}}$4.jsonID("all",Xo);let Xa={map(){return this},resolve:e=>new Xo(e)};function Xu(e,t,n,r,i,o=!1){if(t.inlineContent)return Xt.create(e,n);for(let a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let u=t.child(a);if(u.isAtom){if(!o&&Xr.isSelectable(u))return Xr.create(e,n-(i<0?u.nodeSize:0))}else{let s=Xu(e,u,n+i,i<0?u.childCount:0,i,o);if(s)return s}n+=u.nodeSize*i}return null}function Xs(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof $W||i instanceof $D))return;let o;e.mapping.maps[r].forEach((e,t,n,r)=>{null==o&&(o=r)}),e.setSelection($4.near(e.doc.resolve(o),n))}function Xl(e,t){return t&&e?e.bind(t):e}class Xc{constructor(e,t,n){this.name=e,this.init=Xl(t.init,n),this.apply=Xl(t.apply,n)}}new Xc("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new Xc("selection",{init:(e,t)=>e.selection||$4.atStart(t.doc),apply:e=>e.selection}),new Xc("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new Xc("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t});class Xd{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:Xp("plugin")}getState(e){return e[this.key]}}let Xf=Object.create(null);function Xp(e){return e in Xf?e+"$"+ ++Xf[e]:(Xf[e]=0,e+"$")}class XA{constructor(e="key"){this.key=Xp(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}let Xh=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Xm=function(e,t,n,r){return n&&(Xy(e,t,n,r,-1)||Xy(e,t,n,r,1))},Xg=/^(img|br|input|textarea|hr)$/i;function Xy(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Xv(e))){let o=e.parentNode;if(!o||1!=o.nodeType||Xx(e)||Xg.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Xh(e)+(i<0?0:1),e=o}else{if(1!=e.nodeType||"false"==(e=e.childNodes[t+(i<0?-1:0)]).contentEditable)return!1;t=i<0?Xv(e):0}}}function Xv(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Xx(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let Xb=function(e){return e.focusNode&&Xm(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function XC(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}let XS="u">typeof navigator?navigator:null,Xw="u">typeof document?document:null,XI=XS&&XS.userAgent||"",X_=/Edge\/(\d+)/.exec(XI),XT=/MSIE \d/.exec(XI),XO=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(XI),XR=!!(XT||XO||X_),Xk=XT?document.documentMode:XO?+XO[1]:X_?+X_[1]:0,XE=!XR&&/gecko\/(\d+)/i.test(XI);XE&&(/Firefox\/(\d+)/.exec(XI)||[0,0])[1];let XM=!XR&&/Chrome\/(\d+)/.exec(XI),XF=!!XM,Xj=XM?+XM[1]:0,XU=!XR&&!!XS&&/Apple Computer/.test(XS.vendor),XK=XU&&(/Mobile\/\w+/.test(XI)||!!XS&&XS.maxTouchPoints>2),XL=XK||!!XS&&/Mac/.test(XS.platform),XB=!!XS&&/Win/.test(XS.platform),XP=/Android \d/.test(XI),XW=!!Xw&&"webkitFontSmoothing"in Xw.documentElement.style,XD=XW?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function XN(e){return e.editable?e.hasFocus():function(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch{return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Xq(e,t=!1){let n=e.state.selection;if(function(e,t){if(t instanceof Xr){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(XH(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else XH(e)}(e,n),XN(e)){var r,i;if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&XF){let o=e.domSelectionRange(),a=e.domObserver.currentSelection;if(o.anchorNode&&a.anchorNode&&Xm(o.anchorNode,o.anchorOffset,a.anchorNode,a.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper){let u,s,l,c;r=e,u=r.domSelection(),s=document.createRange(),l=r.cursorWrapper.dom,c="IMG"==l.nodeName,c?s.setEnd(l.parentNode,Xh(l)+1):s.setEnd(l,0),s.collapse(!1),u.removeAllRanges(),u.addRange(s),!c&&!r.state.selection.visible&&XR&&Xk<=11&&(l.disabled=!0,l.disabled=!1)}else{let{anchor:d,head:f}=n,p,A,h,m,g,y;!XQ||n instanceof Xt||(n.$from.parent.inlineContent||(p=XV(e,n.from)),n.empty||n.$from.parent.inlineContent||(A=XV(e,n.to))),e.docView.setSelection(d,f,e.root,t),XQ&&(p&&XY(p),A&&XY(A)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&(i=e,h=i.dom.ownerDocument,h.removeEventListener("selectionchange",i.input.hideSelectionGuard),m=i.domSelectionRange(),g=m.anchorNode,y=m.anchorOffset,h.addEventListener("selectionchange",i.input.hideSelectionGuard=()=>{(m.anchorNode!=g||m.anchorOffset!=y)&&(h.removeEventListener("selectionchange",i.input.hideSelectionGuard),setTimeout(()=>{(!XN(i)||i.state.selection.visible)&&i.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}let XQ=XU||XF&&Xj<63;function XV(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(XU&&i&&"false"==i.contentEditable)return Xz(i);if((!i||"false"==i.contentEditable)&&(!o||"false"==o.contentEditable)){if(i)return Xz(i);if(o)return Xz(o)}}function Xz(e){return e.contentEditable="true",XU&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function XY(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function XH(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function XG(e,t,n,r){return e.someProp("createSelectionBetween",r=>r(e,t,n))||Xt.between(t,n,r)}function XZ(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&$4.findFrom(o,t)}function XJ(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function X$(e,t,n){let r=e.state.selection;if(r instanceof Xt){if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return XJ(e,new Xt(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let u=XZ(e.state,t);return!!u&&u instanceof Xr&&XJ(e,u)}if(!(XL&&n.indexOf("m")>-1)){let s=r.$head,l=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter,c;if(!l||l.isText)return!1;let d=t<0?s.pos-l.nodeSize:s.pos;return!!(l.isAtom||(c=e.docView.descAt(d))&&!c.contentDOM)&&(Xr.isSelectable(l)?XJ(e,new Xr(t<0?e.state.doc.resolve(s.pos-l.nodeSize):s)):!!XW&&XJ(e,new Xt(e.state.doc.resolve(t<0?d:d+l.nodeSize))))}}else{if(r instanceof Xr&&r.node.isInline)return XJ(e,new Xt(t>0?r.$to:r.$from));{let f=XZ(e.state,t);return!!f&&XJ(e,f)}}}function XX(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function X0(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function X1(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(XE&&1==n.nodeType&&r<XX(n)&&X0(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(1!=n.nodeType)break;{let u=n.childNodes[r-1];if(X0(u,-1))i=n,o=--r;else if(3==u.nodeType)r=(n=u).nodeValue.length;else break}}else{if(X2(n))break;{let s=n.previousSibling;for(;s&&X0(s,-1);)i=n.parentNode,o=Xh(s),s=s.previousSibling;if(s)r=XX(n=s);else{if((n=n.parentNode)==e.dom)break;r=0}}}a?X6(e,n,r):i&&X6(e,i,o)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=XX(n),o,a;for(;;)if(r<i){if(1!=n.nodeType)break;if(X0(n.childNodes[r],1))o=n,a=++r;else break}else{if(X2(n))break;{let u=n.nextSibling;for(;u&&X0(u,1);)o=u.parentNode,a=Xh(u)+1,u=u.nextSibling;if(u)r=0,i=XX(n=u);else{if((n=n.parentNode)==e.dom)break;r=i=0}}}o&&X6(e,o,a)}(e)}function X2(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function X6(e,t,n){if(3!=t.nodeType){let r,i;(i=function(e,t){for(;e&&t==e.childNodes.length&&!Xx(e);)t=Xh(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=i,n=0):(r=function(e,t){for(;e&&!t&&!Xx(e);)t=Xh(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=r,n=r.nodeValue.length)}let o=e.domSelection();if(Xb(o)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),o.removeAllRanges(),o.addRange(a)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:u}=e;setTimeout(()=>{e.state==u&&Xq(e)},50)}function X5(e,t){let n=e.state.doc.resolve(t);if(!(XF||XB)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),u=(a.top+a.bottom)/2;if(u>r.top&&u<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function X3(e,t,n){let r=e.state.selection;if(r instanceof Xt&&!r.empty||n.indexOf("s")>-1||XL&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=XZ(e.state,t);if(a&&a instanceof Xr)return XJ(e,a)}if(!i.parent.inlineContent){let u=t<0?i:o,s=r instanceof Xo?$4.near(u,t):$4.findFrom(u,t);return!!s&&XJ(e,s)}return!1}function X9(e,t){if(!(e.state.selection instanceof Xt))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function X4(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function X7(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,o--;let a=r.firstChild;n.push(a.type.name,a.attrs!=a.type.defaultAttrs?a.attrs:null),r=a.content}let u=e.someProp("clipboardSerializer")||$w.fromSchema(e.state.schema),s=ees(),l=s.createElement("div");l.appendChild(u.serializeFragment(r,{document:s}));let c=l.firstChild,d,f=0;for(;c&&1==c.nodeType&&(d=eea[c.nodeName.toLowerCase()]);){for(let p=d.length-1;p>=0;p--){let A=s.createElement(d[p]);for(;l.firstChild;)A.appendChild(l.firstChild);l.appendChild(A),f++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${i} ${o}${f?` -${f}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,`
|